openat: use stdnoreturn.h
[gnulib.git] / ChangeLog
1 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2
3         openat: use stdnoreturn.h
4         * lib/openat.h: Include <stdnoreturn.h>.
5         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6         * modules/openat (Depends-on): Add stdnoreturn.
7
8         * lib/openat-die.c (openat_save_fail): Modernize comment.
9
10         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11
12         * lib/glthread/thread.h: Modernize comment.
13
14         obstack: use _Noreturn
15         * lib/obstack.c (__attribute__): Remove macro.
16         (print_and_abort): Use _Noreturn.
17
18         c-stack: use _Noreturn
19         * lib/c-stack.c (die, overflow_handler, segv_handler):
20         Use _Noreturn rather than __attribute__((noreturn)).
21
22         argmatch-tests, exclude_tests: use _Noreturn
23         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
24         Remove.
25         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
26
27         stdlib: use _Noreturn
28         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
29         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
30         * modules/stdlib (Depends-on): Add _Noreturn.
31         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
32
33         stdnoreturn-tests: new module
34         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
35
36         stdnoreturn: new module
37         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
38         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
39
40         _Noreturn-tests: new module
41         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
42
43         _Noreturn: new module
44         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
45         New section, mentioning it.
46         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
47
48         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
49
50 2011-07-11  Eric Blake  <eblake@redhat.com>
51
52         ffs: new module
53         * modules/ffs: New file.
54         * m4/ffs.m4: Likewise.
55         * lib/ffs.c: Likewise.
56         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
57         * modules/strings (Makefile.am): Substitute witness.
58         (Depends-on): Add c++defs.
59         * lib/strings.in.h (ffs): Declare.
60         * modules/ffs-tests: New test file.
61         * tests/test-ffs.c: Test new module.
62         * MODULES.html.sh (Integer arithmetic functions): Mention it.
63         * doc/posix-functions/ffs.texi (ffs): Likewise.
64
65         regex: avoid compiler warning
66         * lib/regex.c (includes): Include <strings.h>, for use of
67         strcasecmp in regcomp.c.
68         Reported by Joachim Schmitz.
69
70 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71
72         stdint: respect system's intmax_t if INTMAX_MAX
73         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
74         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
75         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
76         long but int64_t is long long, and where we will clash with the
77         system intmax_t if we override it.  See
78         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
79         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
80         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
81         similarly for UINTMAX_C.
82
83 2011-07-08  Bruno Haible  <bruno@clisp.org>
84
85         pthread_sigmask tests: Avoid a compiler warning.
86         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
87         non-zero.
88
89         sigprocmask tests: A better way to avoid a compiler warning.
90         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
91         (main): Complain if system() returns non-zero.
92         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
93
94 2011-07-08  Bruno Haible  <bruno@clisp.org>
95
96         pthread_sigmask: Work around IRIX bug.
97         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
98         bug.
99         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
100         there may be unblocked pending signals.
101         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
102
103 2011-07-08  Bruno Haible  <bruno@clisp.org>
104
105         pthread_sigmask: Work around Cygwin bug.
106         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
107         bug.
108         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
109         the system's pthread_sigmask function.
110         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
111
112 2011-07-08  Bruno Haible  <bruno@clisp.org>
113
114         pthread_sigmask: Work around bug in single-threaded implementation.
115         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
116         FreeBSD, HP-UX, Solaris bug.
117         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
118         * lib/pthread_sigmask.c: Include <stddef.h>.
119         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
120         the system's pthread_sigmask function.
121         * modules/pthread_sigmask (configure.ac): Invoke
122         gl_PREREQ_PTHREAD_SIGMASK.
123         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
124         HP-UX, Solaris.
125
126 2011-07-08  Eric Blake  <eblake@redhat.com>
127
128         test-sigprocmask: avoid compiler warning
129         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
130         * tests/test-sigprocmask.c (main): Use it to silence warning.
131         Reported by Jim Meyering.
132
133         test-snprintf: avoid compiler warning
134         * tests/test-snprintf.c (main): Avoid shadowed declaration.
135         * tests/test-vsnprintf.c (main): Likewise.
136         Reported by Jim Meyering.
137
138 2011-07-08  Bruno Haible  <bruno@clisp.org>
139
140         Tests for module 'pthread_sigmask'.
141         * modules/pthread_sigmask-tests: New file.
142         * tests/test-pthread_sigmask1.c: New file, based on
143         tests/test-sigprocmask.c.
144         * tests/test-pthread_sigmask2.c: New file.
145
146 2011-07-08  Jim Meyering  <meyering@redhat.com>
147
148         test-getopt.h: avoid warning about an unused variable
149         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
150
151 2011-07-07  Jim Meyering  <meyering@redhat.com>
152
153         maint: reduce list of files exempt from sc_prohibit_leading_TABs
154         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
155         now that it no longer contains leading TABs.
156         Remove unused "url=FIXME" statement.
157
158 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
159
160         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
161         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
162         When gl_THREADLIB is not in use, assume that the POSIX sematics
163         are desired.  This is better for Emacs, which uses POSIX semantics
164         on GNUish and/or POSIXish platforms, and does not use threads at
165         all otherwise.
166
167         pthread_sigmask: fix typo when testing for libraries
168         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
169         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
170
171 2011-07-08  Eric Blake  <eblake@redhat.com>
172
173         fts: introduce FTS_NOATIME
174         * lib/fts_.h (FTS_NOATIME): New bit flag.
175         (FTS_OPTIONMASK): Adjust.
176         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
177         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
178
179 2011-07-08  Bruno Haible  <bruno@clisp.org>
180
181         Tests for module 'thread'.
182         * modules/thread-tests: New file.
183         * tests/test-thread_self.c: New file.
184         * tests/test-thread_create.cc: New file.
185
186 2011-07-08  Bruno Haible  <bruno@clisp.org>
187
188         thread: Avoid gcc warnings when using gl_thread_self().
189         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
190         'void *'.
191         (gl_thread_self_pointer): Update.
192
193 2011-07-07  Bruno Haible  <bruno@clisp.org>
194
195         signal-c++-tests: Check declaration of pthread_sigmask.
196         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
197         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
198         $(LIB_PTHREAD_SIGMASK).
199
200 2011-07-07  Bruno Haible  <bruno@clisp.org>
201
202         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
203         * lib/signal.in.h (pthread_sigmask): Override if
204         REPLACE_PTHREAD_SIGMASK is 1.
205         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
206         REPLACE_PTHREAD_SIGMASK.
207         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
208         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
209         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
210         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
211         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
212
213 2011-07-07  Bruno Haible  <bruno@clisp.org>
214
215         pthread_sigmask: Ensure declaration in <signal.h>.
216         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
217         include <pthread.h>.
218         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
219         problem.
220
221 2011-07-07  Bruno Haible  <bruno@clisp.org>
222
223         pthread_sigmask: Document the module.
224         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
225
226 2011-07-07  Bruno Haible  <bruno@clisp.org>
227
228         pthread_sigmask: Follow gnulib conventions.
229         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
230         gl_PTHREAD_SIGMASK.
231         * modules/pthread_sigmask (configure.ac): Update.
232
233 2011-07-07  Bruno Haible  <bruno@clisp.org>
234
235         pthread_sigmask: Make declaration C++ safe.
236         * lib/signal.in.h: In two special conditions, just do an #include_next.
237         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
238         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
239         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
240         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
241         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
242         not REPLACE_PTHREAD_MASK.
243         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
244         not REPLACE_PTHREAD_MASK.
245         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
246
247 2011-07-07  Bruno Haible  <bruno@clisp.org>
248
249         pthread_sigmask: Fix return value.
250         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
251         * lib/pthread_sigmask.c: New file.
252         * modules/pthread_sigmask (Files): Add it.
253         (configure.ac): Invoke AC_LIBOBJ.
254
255 2011-07-07  Eric Blake  <eblake@redhat.com>
256
257         getopt: more portable argv creation
258         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
259         const, use char arrays rather than strings.
260         Suggested by Paul Eggert.
261
262 2011-07-07  Bruno Haible  <bruno@clisp.org>
263
264         Tests for module 'sigprocmask'.
265         * modules/sigprocmask-tests: New file.
266         * tests/test-sigprocmask.c: New file.
267
268 2011-07-07  Bruno Haible  <bruno@clisp.org>
269
270         float tests: Tweak.
271         * tests/test-float.c (main): Tweak skip message.
272
273 2011-07-07  Eric Blake  <eblake@redhat.com>
274
275         getopt: avoid compiler warning during configure
276         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
277         assigning string literals to non-const pointer.
278
279         getopt-gnu: avoid crash in glibc getopt
280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
281         * tests/test-getopt.h (test_getopt): Enhance test.
282         * tests/test-getopt_long.h (test_getopt_long): Likewise.
283         * doc/posix-functions/getopt.texi (getopt): Document it.
284         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
285         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
286         Likewise.
287
288 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
289
290         getopt: handle W; without long options in getopt [BZ #12922]
291         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
292         but no long options are defined, just return 'W'.
293
294 2011-07-07  Bruno Haible  <bruno@clisp.org>
295
296         Avoid literal tabs.
297         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
298         variable containing a tab instead of a literal tab.
299         Reported by Jim Meyering.
300
301 2011-07-07  Bruno Haible  <bruno@clisp.org>
302
303         Comments.
304         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
305
306 2011-07-06  Bruno Haible  <bruno@clisp.org>
307
308         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
309         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
310         <winsock2.h>.
311         (rpl_fd_isset, FD_ISSET): New definitions, copied from
312         lib/sys_socket.in.h.
313         (close, gethostname): Hide declarations from <winsock2.h>.
314         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
315         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
316         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
317         (select): Don't override if gnulib's <sys/select.h> was already
318         included.
319         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
320         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
321         setsockopt, shutdown, select): Tweak indentation.
322
323 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
324
325         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
326         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
327         in an application that does not use the sys_select module.
328
329 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
330
331         poll: do not return 0 on timeout=-1
332         * lib/poll.c: Loop with yield if no events occured
333
334 2011-07-06  Eric Blake  <eblake@redhat.com>
335
336         pthread_sigmask: always replace when not using pthread
337         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
338         replacement when using some threading other than pthread.  Fix
339         logic bug.
340
341 2011-07-06  Bruno Haible  <bruno@clisp.org>
342
343         Comments.
344         * m4/printf.m4: Update comments about mingw.
345
346 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
347
348         sys_select: define sigset_t more portably
349         * lib/sys_select.in.h: Always include <sys/types.h>, since
350         we now need sigset_t and mingw defines it there.
351         Include <signal.h> before split inclusion guard, to avoid
352         mishaps on Solaris, whose <signal.h> eventually includes us.
353         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
354         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
355         which come from ...
356         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
357         gl_CHECK_TYPE_SIGSET_T.
358         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
359         does the real work.
360         * modules/sys_select (Depends-on): Add 'signal'.
361
362         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
363         Suggested by Bruno Haible.
364
365         pselect: Use pthread_sigmask, not sigprocmask.
366         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
367         multithreaded apps better than sigprocmask does.
368         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
369         sigprocmask directly.
370
371 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
372
373         * lib/pselect.c (pselect): Use plain name, without "rpl_".
374         Don't #undef,  since we don't need any underlying pselect.
375         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
376         (Depends-on): Add select.
377         (Link): Add $(LIBSOCKET).
378         These changes suggested by Bruno Haible.
379
380         pselect: document better
381         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
382         * doc/posix-functions/pselect.texi (pselect): Document new module.
383
384         pthread_sigmask: new module
385         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
386         * doc/posix-functions/pthread_sigmask.texi: Document new module.
387         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
388         This is done only as a macro; I don't know how well that'll
389         work for C++.  Move <sys/types.h> include before the include_next,
390         to avoid mishap on Solaris.
391         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
392         * modules/signal (Makefile.am): Substitute the check's results.
393         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
394
395         test-pselect: new module
396         * modules/pselect-tests, tests/test-pselect.c: New files.
397         * tests/test-select.c, tests/test-sys_select-c++.cc:
398         If TEST_PSELECT is defined, test pselect instead of testing select.
399
400         * tests/test-sys_select.c (sigset_t): Test for it, too.
401         Suggested by Bruno Haible.
402
403 2011-07-05  Eric Blake  <eblake@redhat.com>
404
405         snprintf: guarantee %1$d, for libintl
406         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
407         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
408         * doc/posix-functions/snprintf.texi (snprintf): Update.
409         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
410         * tests/test-snprintf.c (main): Enhance test.
411         * tests/test-vsnprintf.c (main): Likewise.
412
413 2011-07-05  Jim Meyering  <meyering@redhat.com>
414
415         maint: exempt stdio-read.c and stdio-write.c from the cppi check
416         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
417         per Bruno's request, to accommodate this idiom (no space after "#")
418         even when the function is inside an #if block:
419         char *
420         gets (char *s)
421         #undef gets
422         {
423           ...
424         }
425
426 2011-07-04  Jim Meyering  <meyering@redhat.com>
427
428         maint: indent with spaces, not TABs, and add a rule to check this
429         * tests/test-userspec.c: Indent with spaces, not TABs.
430         * tests/test-argp.c: Likewise.
431         * tests/test-c-stack2.sh: Likewise.
432         * tests/test-parse-duration.sh: Likewise
433         * m4/strtod.m4: Likewise.
434         * m4/alloca.m4: Likewise.
435         * m4/pselect.m4: Likewise.
436         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
437
438 2011-07-03  Jim Meyering  <meyering@redhat.com>
439
440         maint.mk: correct omissions in prohibit_argmatch_without_use check
441         This rule would mistakenly report that argmatch.h is included without
442         use even when both the argmatch and invalid_arg macro were used.
443         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
444         of argmatch and invalid_arg.
445
446 2011-07-03  Bruno Haible  <bruno@clisp.org>
447
448         Comments about EINTR.
449         * lib/safe-read.h: Explain the purpose of this module.
450         * lib/safe-write.h: Likewise.
451         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
452         module.
453         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
454         module.
455         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
456
457 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
458
459         xnanosleep: Rewrite to use new dtotimespec module.
460         It has the conversion code that used to be in xnanosleep.
461         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
462         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
463         (TIME_T_MAX): Remove.
464         (xnanosleep): Rewrite in terms of dtotimespec.
465         * modules/xnanosleep (Depends-on): Add dtotimespec.
466         Remove intprops, stdbool.
467
468         timespec-add, timespec-sub: new modules
469         * lib/timespec.h (timespec_add, timespec_sub): New decls.
470         * lib/timespec-add.c, lib/timespec-sub.c:
471         * modules/timespec-add, modules/timespec-sub: New files.
472
473         dtotimespec: new module
474         * lib/timespec.h (dtotimespec): New decl.
475         * lib/dtotimespec.c, modules/dtotimespec: New files.
476
477         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
478
479         pselect: new module
480         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
481         (pselect): New decls.
482         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
483         since the standard pselect decl uses 'restrict'.
484         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
485         HAVE_PSELECT, REPLACE_PSELECT.
486         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
487         HAVE_PSELECT, REPLACE_PSELECT.
488         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
489
490         sys_select: don't depend on sys_socket
491         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
493         This fix works on GNU and GNU-like platforms, but has not been tested
494         on native Windows.
495         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
496         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
497         gl_HEADER_SYS_SOCKET.
498         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
499         gl_PREREQ_SYS_H_WINSOCK2.
500
501 2011-06-29  Eric Blake  <eblake@redhat.com>
502
503         pipe2: fix C89 compile problem
504         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
505         Reported by Bruno Haible.
506
507         pipe, pipe2: don't corrupt fd on error
508         * lib/pipe.c (pipe): Leave fd unchanged on error.
509         * lib/pipe2.c (pipe2): Likewise.
510         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
511         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
512
513 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
514
515         mmap-anon: do not use regular expressions inadvertently
516         * m4/mmap-anon.m4: Remove trailing period from strings sought
517         in the output.
518
519 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
520
521         nanosleep: fix integer overflow problem
522         * lib/nanosleep.c (my_usleep): Don't assume signed integer
523         arithmetic wraps around on overflow.
524
525         nanosleep: simplify carrying
526         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
527         first call to the underyling nanosleep, not for the last one.
528         This doesn't fix any bugs, but it simplifies the computation of
529         the remaining delay.  Found while auditing integer overflow issues.
530
531         dup2: remove test for existence of fcntl
532         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
533         "#if HAVE_FCNTL", in the configure-time test program.
534         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
535         and therefore speeds up "configure" a bit.  Found while
536         adding the dup2 module to Emacs.
537
538 2011-06-24  Eric Blake  <eblake@redhat.com>
539
540         maint.mk: enhance useless header checks
541         * top/maint.mk (_sc_header_without_use): Check both include
542         styles.
543         (sc_prohibit_assert_without_use)
544         (sc_prohibit_close_stream_without_use)
545         (sc_prohibit_getopt_without_use)
546         (sc_prohibit_quotearg_without_use)
547         (sc_prohibit_quote_without_use)
548         (sc_prohibit_long_options_without_use)
549         (sc_prohibit_inttostr_without_use)
550         (sc_prohibit_ignore_value_without_use)
551         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
552         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
553         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
554         (sc_prohibit_hash_pjw_without_use)
555         (sc_prohibit_safe_read_without_use)
556         (sc_prohibit_argmatch_without_use)
557         (sc_prohibit_canonicalize_without_use)
558         (sc_prohibit_root_dev_ino_without_use)
559         (sc_prohibit_openat_without_use)
560         (sc_prohibit_c_ctype_without_use)
561         (sc_prohibit_signal_without_use)
562         (sc_prohibit_stdio--_without_use)
563         (sc_prohibit_stdio-safer_without_use)
564         (sc_prohibit_strings_without_use)
565         (sc_prohibit_intprops_without_use)
566         (sc_prohibit_stddef_without_use)
567         (sc_prohibit_xfreopen_without_use): Update clients.
568
569 2011-06-24  Jim Meyering  <meyering@redhat.com>
570
571         syntax-check: keep one maint.mk rule in sync with its header
572         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
573         of the bug Eric has just fixed, with today's commit 25e4c2ec.
574         I prefer to avoid temporary files here, so use <(...), but that
575         is not supported by /bin/sh, so...
576         (SHELL): Define to /bin/bash.
577
578 2011-06-24  Eric Blake  <eblake@redhat.com>
579
580         maint.mk: update sc_prohibit_intprops_without_use
581         * top/maint.mk (_intprops_names): Match recent changes.
582
583 2011-06-24  Bruno Haible  <bruno@clisp.org>
584
585         strerror-override: No-op tweak.
586         * lib/strerror-override.h (strerror_override): Reorder conditions,
587         for consistency with lib/strerror-override.c.
588
589 2011-06-23  Eric Blake  <eblake@redhat.com>
590
591         maint.mk: test further PATH_MAX issues
592         * top/maint.mk (sc_prohibit_path_max_array): Rename...
593         (sc_prohibit_path_max_allocation): ...and also test alloca.
594         Suggested by Jim Meyering.
595
596 2011-06-22  Eric Blake  <eblake@redhat.com>
597
598         maint.mk: add syntax-check to avoid char[PATH_MAX]
599         * top/maint.mk (sc_prohibit_path_max_array): New rule.
600
601         stat: be robust to PATH_MAX definition
602         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
603         * modules/stat (Depends-on): Add verify.
604
605         link: work around IRIX bug
606         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
607         * lib/link.c (rpl_link): Work around it.
608         * tests/test-link.h (test_link): Enhance test.
609         * doc/posix-functions/link.texi (link): Document the bug.
610
611         getopt: silence clang warning
612         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
613         dereference.
614         Reported by Gustavo Martin Domato.
615
616 2011-06-22  Jim Meyering  <meyering@redhat.com>
617
618         bootstrap: do not insert a blank line into each .gitignore file
619         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
620
621 2011-06-21  Eric Blake  <eblake@redhat.com>
622
623         perror: test for output mismatch
624         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
625         perror on IRIX.
626
627         strerror_r: fix OpenBSD behavior on out-of-range
628         * lib/strerror_r.c (strerror_r): Always use maximal string.
629         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
630
631         strerror_r: fix OpenBSD behavior on 0
632         * lib/strerror-override.c (strerror_override): Also override 0
633         when needed.
634         * lib/strerror-override.h (strerror_override): Likewise.
635         * lib/strerror.c (strerror): Simplify, now that 0 override is done
636         earlier.
637         * lib/strerror_r.c (strerror_r): Likewise.
638         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
639         behavior...
640         (gl_FUNC_STRERROR_0): ...into new macro.
641         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
642         is overridden.
643         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
644         * modules/strerror-override (Files): Add strerror.m4.
645         (configure.ac): Also provide override for 0 when needed.
646         * doc/posix-functions/strerror.texi (strerror): Document this.
647         * doc/posix-functions/perror.texi (perror): Likewise.
648
649         perror: adjust array size
650         * modules/perror (Depends-on): Add strerror-override.
651         * lib/perror.c (perror): Use it to avoid magic number.
652
653         strerror-override: reduce size
654         * lib/strerror-override.c (strerror_override): Use fewer lines.
655
656 2011-06-20  Bruno Haible  <bruno@clisp.org>
657
658         pathmax: Ensure correct value for PATH_MAX on HP-UX.
659         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
660
661 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
662
663         alloca: port to compilers that can optimize like GCC 4.6.0
664         * lib/alloca.c (find_stack_direction): New signature, taken from
665         Autoconf git.  This works with GCC 4.6.0.  This code should never
666         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
667         be used with other compilers that optimize as well as GCC 4.6.0 does.
668         (alloca): Adjust to new signature.
669         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
670         New macro, which patches Autoconf in a similar way.
671
672         c-stack: stop worrying about stack direction
673         * lib/c-stack.c (find_stack_direction): Remove.
674         (segv_handler): Don't worry about stack direction growth, as it's
675         too much of a pain to configure this correctly, given how compilers
676         are optimizing-away our stack-growth detection code.  Instead, assume
677         that any access to just before or just after the stack is OK.
678         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
679         Don't require AC_FUNC_ALLOCA; no longer needed.
680
681 2011-06-20  Eric Blake  <eblake@redhat.com>
682
683         test-stat: don't allocate PATH_MAX bytes
684         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
685         PATH_MAX-sized buffer.
686         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
687         * modules/stat-tests (Depends-on): Likewise.
688         * tests/test-fstatat.c (includes): Drop pathmax.h.
689         * tests/test-stat.c (includes): Likewise.
690         Reported by Bruno Haible.
691
692 2011-06-20  Bruno Haible  <bruno@clisp.org>
693
694         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
695         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
696         * lib/float.c: New file.
697         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
698         REPLACE_FLOAT_LDBL.
699         * modules/float (Files): Add lib/float.c.
700         (configure.ac): Invoke AC_LIBOBJ.
701         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
702
703 2011-06-20  Bruno Haible  <bruno@clisp.org>
704
705         Tests for module 'float'.
706         * modules/float-tests: New file.
707         * tests/test-float.c: New file.
708
709 2011-06-19  Bruno Haible  <bruno@clisp.org>
710
711         isinf: Coding style.
712         * lib/isinf.c: Use GNU coding style.
713
714 2011-06-19  Bruno Haible  <bruno@clisp.org>
715
716         linkat test: Avoid test failure on AIX 7.1.
717         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
718         * tests/test-link.h (test_link): Likewise.
719
720 2011-06-19  Bruno Haible  <bruno@clisp.org>
721
722         pread test: Avoid test failure on OpenBSD 4.9.
723         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
724
725 2011-06-19  Bruno Haible  <bruno@clisp.org>
726
727         sprintf-posix: Fix test failure on AIX 7.1.
728         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
729         * doc/posix-functions/dprintf.texi: Mention limited precision problem
730         on AIX.
731         * doc/posix-functions/fprintf.texi: Likewise.
732         * doc/posix-functions/printf.texi: Likewise.
733         * doc/posix-functions/snprintf.texi: Likewise.
734         * doc/posix-functions/sprintf.texi: Likewise.
735         * doc/posix-functions/vdprintf.texi: Likewise.
736         * doc/posix-functions/vfprintf.texi: Likewise.
737         * doc/posix-functions/vprintf.texi: Likewise.
738         * doc/posix-functions/vsnprintf.texi: Likewise.
739         * doc/posix-functions/vsprintf.texi: Likewise.
740
741 2011-06-19  Bruno Haible  <bruno@clisp.org>
742
743         roundl-ieee: Fix test failure on AIX 7.1.
744         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
745         * doc/posix-functions/roundl.texi: Mention problem with negative
746         arguments.
747
748 2011-06-19  Bruno Haible  <bruno@clisp.org>
749
750         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
751         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
752         * doc/posix-functions/round.texi: Mention problem with negative
753         arguments.
754         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
755
756 2011-06-19  Bruno Haible  <bruno@clisp.org>
757
758         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
759         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
760         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
761         * doc/posix-functions/roundf.texi: Mention problem with negative
762         arguments.
763         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
764
765 2011-06-19  Bruno Haible  <bruno@clisp.org>
766
767         ceilf-ieee: Work around bug on MacOS X 10.5.
768         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
769
770         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
771         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
772         IEEE compliant, avoid compiler optimizations.
773         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
774         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
775         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
776         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
777         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
778         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
779         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
780         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
781         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
782         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
783
784 2011-06-19  Bruno Haible  <bruno@clisp.org>
785
786         ceilf-ieee: Work around bug on AIX 7.1.
787         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
788         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
789
790 2011-06-19  Bruno Haible  <bruno@clisp.org>
791
792         ceil-ieee: Work around bug on AIX 7.1.
793         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
794         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
795
796 2011-06-18  Bruno Haible  <bruno@clisp.org>
797
798         fsync test: Avoid test failure on MacOS X and AIX.
799         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
800         EINVAL.
801
802 2011-06-18  Bruno Haible  <bruno@clisp.org>
803
804         openat, fdopendir tests: Fix link errors.
805         * modules/openat-tests (Depends-on): Add progname.
806         * modules/fdopendir-tests (Depends-on): Likewise.
807         * tests/test-fchownat.c: Include progname.h.
808         (main): Call set_program_name.
809         * tests/test-fstatat.c: Include progname.h.
810         (main): Call set_program_name.
811         * tests/test-mkdirat.c: Include progname.h.
812         (main): Call set_program_name.
813         * tests/test-openat.c: Include progname.h.
814         (main): Call set_program_name.
815         * tests/test-unlinkat.c: Include progname.h.
816         (main): Call set_program_name.
817         * tests/test-fdopendir.c: Include progname.h.
818         (main): Call set_program_name.
819
820 2011-06-18  Bruno Haible  <bruno@clisp.org>
821
822         Doc update.
823         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
824         HP-UX.
825         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
826
827 2011-06-18  Bruno Haible  <bruno@clisp.org>
828
829         getcwd tests: Avoid compilation error on HP-UX 11.31.
830         * modules/getcwd-tests (Depends-on): Add pathmax.
831         * tests/test-getcwd.c: Include pathmax.h.
832
833 2011-06-18  Bruno Haible  <bruno@clisp.org>
834
835         isfinite, isinf: Fix link error on AIX 6 and 7.
836         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
837         needed, also test the macro with a 'float' argument.
838         * m4/isinf.m4 (gl_ISINF): Likewise.
839
840 2011-06-18  Bruno Haible  <bruno@clisp.org>
841
842         getloadavg: Don't clobber LIBS. Regression from previous commit.
843         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
844         AC_CHECK_LIB from here...
845         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
846         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
847         gl_func_getloadavg_done.
848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
849
850 2011-06-18  Bruno Haible  <bruno@clisp.org>
851
852         clean-temp: Improve documentation.
853         * lib/clean-temp.h: Explain better how to use this module.
854         Reported by John Darrington <john@darrington.wattle.id.au>.
855
856 2011-06-17  Bruno Haible  <bruno@clisp.org>
857
858         pread, pwrite: Avoid cc warning on AIX.
859         * lib/unistd.in.h (pread): Undefine before defining as a macro.
860         (pwrite): Likewise.
861
862 2011-06-17  Bruno Haible  <bruno@clisp.org>
863
864         spawn-pipe tests: Fix link error.
865         * tests/test-spawn-pipe-child.c: Undefine fprintf.
866         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
867
868 2011-06-17  Bruno Haible  <bruno@clisp.org>
869
870         Tests: Remove unnecessary dependency.
871         * modules/canonicalize-tests (Depends-on): Remove progname.
872         * modules/chown-tests (Depends-on): Likewise.
873         * modules/dirname-tests (Depends-on): Likewise.
874         * modules/fdopendir-tests (Depends-on): Likewise.
875         * modules/fdutimensat-tests (Depends-on): Likewise.
876         * modules/hash-tests (Depends-on): Likewise.
877         * modules/lchown-tests (Depends-on): Likewise.
878         * modules/linkat-tests (Depends-on): Likewise.
879         * modules/renameat-tests (Depends-on): Likewise.
880         * modules/spawn-pipe-tests (Depends-on): Likewise.
881         * modules/utimensat-tests (Depends-on): Likewise.
882
883 2011-06-17  Bruno Haible  <bruno@clisp.org>
884
885         spawn-pipe tests: Fix link error.
886         * tests/test-spawn-pipe-child.c: Undefine fflush.
887
888 2011-06-17  Bruno Haible  <bruno@clisp.org>
889
890         Fix tests link errors.
891         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
892         * modules/chown-tests (Makefile.am): Don't link test-chown with
893         LIBINTL.
894         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
895         LIBINTL.
896         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
897         LIBINTL.
898         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
899         LIBINTL.
900
901 2011-06-16  Bruno Haible  <bruno@clisp.org>
902
903         crypto/gc-sha1: Fix recent regression.
904         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
905         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
906
907         crypto/gc-md5: Fix recent regression.
908         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
909
910         crypto/gc-md4: Fix recent regression.
911         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
912         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
913
914         crypto/gc-arctwo: Fix recent regression.
915         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
916         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
917
918         crypto/gc-rijndael: Fix recent regression.
919         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
920         (configure.ac): Invoke AC_LIBOBJ here.
921         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
922         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
923
924         crypto/gc-hmac-sha1: Fix recent regression.
925         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
926         (configure.ac): Invoke AC_LIBOBJ here.
927         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
928         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
929
930         crypto/gc-hmac-md5: Fix recent regression.
931         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
932         (configure.ac): Invoke AC_LIBOBJ here.
933         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
934         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
935
936         crypto/gc-des: Fix recent regression.
937         * modules/crypto/gc-des (Files): Remove m4/des.m4.
938         (configure.ac): Invoke AC_LIBOBJ here.
939         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
940         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
941
942         crypto/gc-arcfour: Fix recent regression.
943         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
944         (configure.ac): Invoke AC_LIBOBJ here.
945         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
946         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
947
948 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
949
950         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
951         After the 2011-05-21 change, this macro requires
952         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
953         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
954
955 2011-06-16  Bruno Haible  <bruno@clisp.org>
956
957         fprintftime: Move AC_LIBOBJ invocations to module description.
958         * m4/fprintftime.m4: Remove file.
959         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
960         (configure.ac): Remove gl_FPRINTFTIME call.
961         (Makefile.am): Augment lib_SOURCES.
962         Reported by Jim Meyering.
963
964 2011-06-16  Bruno Haible  <bruno@clisp.org>
965
966         tmpfile-safer: Finish 2011-05-23 commit.
967         * m4/stdio-safer.m4: Really remove file.
968         Reported by Jim Meyering.
969
970 2011-06-16  Bruno Haible  <bruno@clisp.org>
971
972         syntax-check: Fix typo.
973         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
974         printf-posix.m4.
975         Reported by Jim Meyering.
976
977 2011-06-13  Jim Meyering  <meyering@redhat.com>
978
979         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
980         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
981
982 2011-05-23  Bruno Haible  <bruno@clisp.org>
983
984         yesno: Move AC_LIBOBJ invocations to module description.
985         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
986         * modules/yesno (Makefile.am): Augment lib_SOURCES.
987
988 2011-05-23  Bruno Haible  <bruno@clisp.org>
989
990         xstrtol: Move AC_LIBOBJ invocations to module description.
991         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
992         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
993
994 2011-05-23  Bruno Haible  <bruno@clisp.org>
995
996         xstrtold: Move AC_LIBOBJ invocations to module description.
997         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
998         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
999
1000 2011-05-23  Bruno Haible  <bruno@clisp.org>
1001
1002         xstrtod: Move AC_LIBOBJ invocations to module description.
1003         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
1004         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
1005
1006 2011-05-23  Bruno Haible  <bruno@clisp.org>
1007
1008         xnanosleep: Move AC_LIBOBJ invocations to module description.
1009         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
1010         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
1011
1012 2011-05-23  Bruno Haible  <bruno@clisp.org>
1013
1014         xgetcwd: Move AC_LIBOBJ invocations to module description.
1015         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
1016         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
1017
1018 2011-05-23  Bruno Haible  <bruno@clisp.org>
1019
1020         xalloc: Move AC_LIBOBJ invocations to module description.
1021         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1022         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1023
1024 2011-05-23  Bruno Haible  <bruno@clisp.org>
1025
1026         write-any-file: Move AC_LIBOBJ invocations to module description.
1027         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1028         invocation.
1029         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1030
1031 2011-05-23  Bruno Haible  <bruno@clisp.org>
1032
1033         utimens: Move AC_LIBOBJ invocations to module description.
1034         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1035         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1036
1037 2011-05-23  Bruno Haible  <bruno@clisp.org>
1038
1039         utimecmp: Move AC_LIBOBJ invocations to module description.
1040         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1041         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1042
1043 2011-05-23  Bruno Haible  <bruno@clisp.org>
1044
1045         userspec: Move AC_LIBOBJ invocations to module description.
1046         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1047         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1048
1049 2011-05-23  Bruno Haible  <bruno@clisp.org>
1050
1051         unlinkdir: Move AC_LIBOBJ invocations to module description.
1052         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1053         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1054
1055 2011-05-23  Bruno Haible  <bruno@clisp.org>
1056
1057         unistd-safer: Move AC_LIBOBJ invocations to module description.
1058         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1059         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1060
1061 2011-05-23  Bruno Haible  <bruno@clisp.org>
1062
1063         tempname: Move AC_LIBOBJ invocations to module description.
1064         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1065         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1066
1067 2011-05-23  Bruno Haible  <bruno@clisp.org>
1068
1069         strftime: Move AC_LIBOBJ invocations to module description.
1070         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1071         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1072
1073 2011-05-23  Bruno Haible  <bruno@clisp.org>
1074
1075         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1076         * m4/stdlib-safer.m4: Remove file.
1077         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1078         (configure.ac): Remove gl_STDLIB_SAFER call.
1079         (Makefile.am): Augment lib_SOURCES.
1080
1081 2011-05-23  Bruno Haible  <bruno@clisp.org>
1082
1083         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1084         * m4/stdio-safer.m4: Remove file.
1085         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1086         (configure.ac): Remove gl_TMPFILE_SAFER call.
1087         (Makefile.am): Augment lib_SOURCES.
1088
1089 2011-05-23  Bruno Haible  <bruno@clisp.org>
1090
1091         popen-safer: Move AC_LIBOBJ invocations to module description.
1092         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1093         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1094         (configure.ac): Remove gl_POPEN_SAFER call.
1095         (Makefile.am): Augment lib_SOURCES.
1096
1097 2011-05-23  Bruno Haible  <bruno@clisp.org>
1098
1099         freopen-safer: Move AC_LIBOBJ invocations to module description.
1100         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1101         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1102         (configure.ac): Remove gl_FREOPEN_SAFER call.
1103         (Makefile.am): Augment lib_SOURCES.
1104
1105 2011-05-23  Bruno Haible  <bruno@clisp.org>
1106
1107         fopen-safer: Move AC_LIBOBJ invocations to module description.
1108         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1109         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1110         (configure.ac): Remove gl_FOPEN_SAFER call.
1111         (Makefile.am): Augment lib_SOURCES.
1112
1113 2011-05-23  Bruno Haible  <bruno@clisp.org>
1114
1115         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1116         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1117         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1118
1119 2011-05-23  Bruno Haible  <bruno@clisp.org>
1120
1121         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1122         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1123         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1124
1125 2011-05-23  Bruno Haible  <bruno@clisp.org>
1126
1127         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1128         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1129         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1130
1131 2011-05-23  Bruno Haible  <bruno@clisp.org>
1132
1133         settime: Move AC_LIBOBJ invocations to module description.
1134         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1135         * modules/settime (Makefile.am): Augment lib_SOURCES.
1136
1137 2011-05-23  Bruno Haible  <bruno@clisp.org>
1138
1139         savedir: Move AC_LIBOBJ invocations to module description.
1140         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1141         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1142
1143 2011-05-23  Bruno Haible  <bruno@clisp.org>
1144
1145         save-cwd: Move AC_LIBOBJ invocations to module description.
1146         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1147         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1148
1149 2011-05-23  Bruno Haible  <bruno@clisp.org>
1150
1151         same: Move AC_LIBOBJ invocations to module description.
1152         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1153         * modules/same (Makefile.am): Augment lib_SOURCES.
1154
1155 2011-05-23  Bruno Haible  <bruno@clisp.org>
1156
1157         safe-write: Move AC_LIBOBJ invocations to module description.
1158         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1159         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1160         instead of gl_SAFE_WRITE.
1161         (Makefile.am): Augment lib_SOURCES.
1162
1163 2011-05-23  Bruno Haible  <bruno@clisp.org>
1164
1165         safe-read: Move AC_LIBOBJ invocations to module description.
1166         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1167         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1168         of gl_SAFE_READ.
1169         (Makefile.am): Augment lib_SOURCES.
1170
1171 2011-05-23  Bruno Haible  <bruno@clisp.org>
1172
1173         safe-alloc: Move AC_LIBOBJ invocations to module description.
1174         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1175         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1176
1177 2011-05-23  Bruno Haible  <bruno@clisp.org>
1178
1179         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1180         * m4/rijndael.m4: Remove file.
1181         * modules/crypto/rijndael (Files): Remove it.
1182         (configure.ac): Remove gl_RIJNDAEL call.
1183         (Makefile.am): Augment lib_SOURCES.
1184
1185 2011-05-23  Bruno Haible  <bruno@clisp.org>
1186
1187         readtokens: Move AC_LIBOBJ invocations to module description.
1188         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1189         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1190
1191 2011-05-23  Bruno Haible  <bruno@clisp.org>
1192
1193         read-file: Move AC_LIBOBJ invocations to module description.
1194         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1195         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1196         of gl_FUNC_READ_FILE.
1197         (Makefile.am): Augment lib_SOURCES.
1198
1199 2011-05-23  Bruno Haible  <bruno@clisp.org>
1200
1201         quotearg: Move AC_LIBOBJ invocations to module description.
1202         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1203         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1204
1205 2011-05-23  Bruno Haible  <bruno@clisp.org>
1206
1207         quote: Move AC_LIBOBJ invocations to module description.
1208         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1209         * modules/quote (Makefile.am): Augment lib_SOURCES.
1210
1211 2011-05-23  Bruno Haible  <bruno@clisp.org>
1212
1213         posixver: Move AC_LIBOBJ invocations to module description.
1214         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1215         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1216
1217 2011-05-23  Bruno Haible  <bruno@clisp.org>
1218
1219         posixtm: Move AC_LIBOBJ invocations to module description.
1220         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1221         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1222
1223 2011-05-23  Bruno Haible  <bruno@clisp.org>
1224
1225         physmem: Move AC_LIBOBJ invocations to module description.
1226         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1227         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1228
1229 2011-05-23  Bruno Haible  <bruno@clisp.org>
1230
1231         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1232         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1233         invocation.
1234         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1235
1236 2011-05-23  Bruno Haible  <bruno@clisp.org>
1237
1238         mpsort: Move AC_LIBOBJ invocations to module description.
1239         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
1240         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
1241
1242 2011-05-23  Bruno Haible  <bruno@clisp.org>
1243
1244         modechange: Move AC_LIBOBJ invocations to module description.
1245         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
1246         * modules/modechange (Makefile.am): Augment lib_SOURCES.
1247
1248 2011-05-23  Bruno Haible  <bruno@clisp.org>
1249
1250         mkdir-p: Move AC_LIBOBJ invocations to module description.
1251         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
1252         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
1253
1254 2011-05-23  Bruno Haible  <bruno@clisp.org>
1255
1256         mkancesdirs: Move AC_LIBOBJ invocations to module description.
1257         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
1258         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
1259
1260 2011-05-23  Bruno Haible  <bruno@clisp.org>
1261
1262         mgetgroups: Move AC_LIBOBJ invocations to module description.
1263         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
1264         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
1265
1266 2011-05-23  Bruno Haible  <bruno@clisp.org>
1267
1268         memxor: Move AC_LIBOBJ invocations to module description.
1269         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
1270         * modules/memxor (Makefile.am): Augment lib_SOURCES.
1271
1272 2011-05-23  Bruno Haible  <bruno@clisp.org>
1273
1274         memcoll: Move AC_LIBOBJ invocations to module description.
1275         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
1276         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
1277
1278 2011-05-23  Bruno Haible  <bruno@clisp.org>
1279
1280         memcasecmp: Move AC_LIBOBJ invocations to module description.
1281         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
1282         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
1283
1284 2011-05-23  Bruno Haible  <bruno@clisp.org>
1285
1286         crypto/md5: Move AC_LIBOBJ invocations to module description.
1287         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
1288         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
1289
1290 2011-05-23  Bruno Haible  <bruno@clisp.org>
1291
1292         crypto/md4: Move AC_LIBOBJ invocations to module description.
1293         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
1294         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
1295
1296 2011-05-23  Bruno Haible  <bruno@clisp.org>
1297
1298         crypto/md2: Move AC_LIBOBJ invocations to module description.
1299         * m4/md2.m4: Remove file.
1300         * modules/crypto/md2 (Files): Remove it.
1301         (configure.ac): Remove gl_MD2 call.
1302         (Makefile.am): Augment lib_SOURCES.
1303
1304 2011-05-23  Bruno Haible  <bruno@clisp.org>
1305
1306         long-options: Move AC_LIBOBJ invocations to module description.
1307         * m4/long-options.m4: Remove file.
1308         * modules/long-options (Files): Remove it.
1309         (configure.ac): Remove gl_LONG_OPTIONS call.
1310         (Makefile.am): Augment lib_SOURCES.
1311
1312 2011-05-23  Bruno Haible  <bruno@clisp.org>
1313
1314         i-ring: Move AC_LIBOBJ invocations to module description.
1315         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
1316         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
1317
1318 2011-05-23  Bruno Haible  <bruno@clisp.org>
1319
1320         idcache: Move AC_LIBOBJ invocations to module description.
1321         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
1322         * modules/idcache (Makefile.am): Augment lib_SOURCES.
1323
1324 2011-05-23  Bruno Haible  <bruno@clisp.org>
1325
1326         human: Move AC_LIBOBJ invocations to module description.
1327         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1328         * modules/human (Makefile.am): Augment lib_SOURCES.
1329
1330 2011-05-23  Bruno Haible  <bruno@clisp.org>
1331
1332         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1333         * m4/hmac-sha1.m4: Remove file.
1334         * modules/crypto/hmac-sha1 (Files): Remove it.
1335         (configure.ac): Remove gl_HMAC_SHA1 call.
1336         (Makefile.am): Augment lib_SOURCES.
1337
1338 2011-05-23  Bruno Haible  <bruno@clisp.org>
1339
1340         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1341         * m4/hmac-md5.m4: Remove file.
1342         * modules/crypto/hmac-md5 (Files): Remove it.
1343         (configure.ac): Remove gl_HMAC_MD5 call.
1344         (Makefile.am): Augment lib_SOURCES.
1345
1346 2011-05-23  Bruno Haible  <bruno@clisp.org>
1347
1348         hash: Move AC_LIBOBJ invocations to module description.
1349         * m4/hash.m4: Remove file.
1350         * modules/hash (Files): Remove it.
1351         (configure.ac): Remove gl_HASH call.
1352         (Makefile.am): Augment lib_SOURCES.
1353
1354 2011-05-23  Bruno Haible  <bruno@clisp.org>
1355
1356         hard-locale: Move AC_LIBOBJ invocations to module description.
1357         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1358         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1359
1360 2011-05-23  Bruno Haible  <bruno@clisp.org>
1361
1362         getugroups: Move AC_LIBOBJ invocations to module description.
1363         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1364         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1365
1366 2011-05-23  Bruno Haible  <bruno@clisp.org>
1367
1368         gettime: Move AC_LIBOBJ invocations to module description.
1369         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1370         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1371
1372 2011-05-23  Bruno Haible  <bruno@clisp.org>
1373
1374         getndelim2: Move AC_LIBOBJ invocations to module description.
1375         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1376         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1377
1378 2011-05-23  Bruno Haible  <bruno@clisp.org>
1379
1380         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1381         * m4/gc-pbkdf2-sha1.m4: Remove file.
1382         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1383         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1384         (Makefile.am): Augment lib_SOURCES.
1385
1386 2011-05-23  Bruno Haible  <bruno@clisp.org>
1387
1388         fts: Move AC_LIBOBJ invocations to module description.
1389         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1390         * modules/fts (configure.ac): ... to here.
1391
1392 2011-05-23  Bruno Haible  <bruno@clisp.org>
1393
1394         file-type: Move AC_LIBOBJ invocations to module description.
1395         * m4/file-type.m4: Remove file.
1396         * modules/file-type (Files): Remove it.
1397         (configure.ac): Remove gl_FILE_TYPE call.
1398         (Makefile.am): Augment lib_SOURCES.
1399
1400 2011-05-23  Bruno Haible  <bruno@clisp.org>
1401
1402         filenamecat*: Respect rules for use of AC_LIBOBJ.
1403         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
1404         Remove AC_LIBOBJ invocation.
1405         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
1406         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
1407
1408 2011-05-23  Bruno Haible  <bruno@clisp.org>
1409
1410         filemode: Move AC_LIBOBJ invocations to module description.
1411         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
1412         * modules/filemode (Makefile.am): Augment lib_SOURCES.
1413
1414 2011-05-23  Bruno Haible  <bruno@clisp.org>
1415
1416         openat-safer: Move AC_LIBOBJ invocations to module description.
1417         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
1418         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
1419
1420 2011-05-23  Bruno Haible  <bruno@clisp.org>
1421
1422         fcntl-safer: Move AC_LIBOBJ invocations to module description.
1423         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
1424         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
1425
1426 2011-05-23  Bruno Haible  <bruno@clisp.org>
1427
1428         exclude: Move AC_LIBOBJ invocations to module description.
1429         * m4/exclude.m4: Remove file.
1430         * modules/exclude (Files): Remove it.
1431         (configure.ac): Remove gl_EXCLUDE call.
1432         (Makefile.am): Augment lib_SOURCES.
1433
1434 2011-05-23  Bruno Haible  <bruno@clisp.org>
1435
1436         dirname*: Respect rules for use of AC_LIBOBJ.
1437         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
1438         invocations.
1439         * modules/dirname (Makefile.am): Augment lib_SOURCES.
1440         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
1441
1442 2011-05-23  Bruno Haible  <bruno@clisp.org>
1443
1444         dirent-safer: Move AC_LIBOBJ invocations to module description.
1445         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
1446         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
1447
1448 2011-05-23  Bruno Haible  <bruno@clisp.org>
1449
1450         crypto/des: Move AC_LIBOBJ invocations to module description.
1451         * m4/des.m4: Remove file.
1452         * modules/crypto/des (Files): Remove it.
1453         (configure.ac): Remove gl_DES call.
1454         (Makefile.am): Augment lib_SOURCES.
1455
1456 2011-05-23  Bruno Haible  <bruno@clisp.org>
1457
1458         cycle-check: Move AC_LIBOBJ invocations to module description.
1459         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
1460         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
1461
1462 2011-05-23  Bruno Haible  <bruno@clisp.org>
1463
1464         c-strtold: Move AC_LIBOBJ invocations to module description.
1465         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
1466         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
1467
1468 2011-05-23  Bruno Haible  <bruno@clisp.org>
1469
1470         c-strtod: Move AC_LIBOBJ invocations to module description.
1471         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
1472         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
1473
1474 2011-05-23  Bruno Haible  <bruno@clisp.org>
1475
1476         crc: Move AC_LIBOBJ invocations to module description.
1477         * m4/crc.m4: Remove file.
1478         * modules/crc (Files): Remove it.
1479         (configure.ac): Remove gl_CRC call.
1480         (Makefile.am): Augment lib_SOURCES.
1481
1482 2011-05-23  Bruno Haible  <bruno@clisp.org>
1483
1484         close-stream: Move AC_LIBOBJ invocations to module description.
1485         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
1486         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
1487
1488 2011-05-23  Bruno Haible  <bruno@clisp.org>
1489
1490         closeout: Move AC_LIBOBJ invocations to module description.
1491         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
1492         * modules/closeout (Makefile.am): Augment lib_SOURCES.
1493
1494 2011-05-23  Bruno Haible  <bruno@clisp.org>
1495
1496         closein: Move AC_LIBOBJ invocations to module description.
1497         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
1498         * modules/closein (Makefile.am): Augment lib_SOURCES.
1499
1500 2011-05-23  Bruno Haible  <bruno@clisp.org>
1501
1502         cloexec: Move AC_LIBOBJ invocations to module description.
1503         * m4/cloexec.m4: Remove file.
1504         * modules/cloexec (Files): Remove it.
1505         (configure.ac): Remove gl_CLOEXEC call.
1506         (Makefile.am): Augment lib_SOURCES.
1507
1508 2011-05-23  Bruno Haible  <bruno@clisp.org>
1509
1510         check-version: Move AC_LIBOBJ invocations to module description.
1511         * m4/check-version.m4: Remove file.
1512         * modules/check-version (Files): Remove it.
1513         (configure.ac): Remove gl_CHECK_VERSION call.
1514         (Makefile.am): Augment lib_SOURCES.
1515
1516 2011-05-23  Bruno Haible  <bruno@clisp.org>
1517
1518         chdir-safer: Move AC_LIBOBJ invocations to module description.
1519         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
1520         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
1521
1522 2011-05-23  Bruno Haible  <bruno@clisp.org>
1523
1524         canonicalize: Move AC_LIBOBJ invocations to module description.
1525         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
1526         AC_LIBOBJ invocation.
1527         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
1528
1529 2011-05-23  Bruno Haible  <bruno@clisp.org>
1530
1531         canon-host: Move AC_LIBOBJ invocations to module description.
1532         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
1533         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
1534         instead of gl_CANON_HOST.
1535         (Makefile.am): Augment lib_SOURCES.
1536
1537 2011-05-23  Bruno Haible  <bruno@clisp.org>
1538
1539         backupfile: Move AC_LIBOBJ invocations to module description.
1540         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
1541         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
1542
1543 2011-05-23  Bruno Haible  <bruno@clisp.org>
1544
1545         argmatch: Move AC_LIBOBJ invocations to module description.
1546         * m4/argmatch.m4: Remove file.
1547         * modules/argmatch (Files): Remove it.
1548         (configure.ac): Remove gl_ARGMATCH call.
1549         (Makefile.am): Augment lib_SOURCES.
1550
1551 2011-05-23  Bruno Haible  <bruno@clisp.org>
1552
1553         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
1554         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
1555         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
1556
1557 2011-05-23  Bruno Haible  <bruno@clisp.org>
1558
1559         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
1560         * m4/arcfour.m4: Remove file.
1561         * modules/crypto/arcfour (Files): Remove it.
1562         (configure.ac): Remove gl_ARCFOUR call.
1563         (Makefile.am): Augment lib_SOURCES.
1564
1565 2011-05-22  Bruno Haible  <bruno@clisp.org>
1566
1567         write: Move AC_LIBOBJ invocations to module description.
1568         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
1569         * modules/write (configure.ac): ... to here.
1570
1571 2011-05-22  Bruno Haible  <bruno@clisp.org>
1572
1573         wmemset: Move AC_LIBOBJ invocations to module description.
1574         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
1575         here...
1576         * modules/wmemset (configure.ac): ... to here.
1577
1578 2011-05-22  Bruno Haible  <bruno@clisp.org>
1579
1580         wmemmove: Move AC_LIBOBJ invocations to module description.
1581         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
1582         here...
1583         * modules/wmemmove (configure.ac): ... to here.
1584
1585 2011-05-22  Bruno Haible  <bruno@clisp.org>
1586
1587         wmemcpy: Move AC_LIBOBJ invocations to module description.
1588         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
1589         here...
1590         * modules/wmemcpy (configure.ac): ... to here.
1591
1592 2011-05-22  Bruno Haible  <bruno@clisp.org>
1593
1594         wmemcmp: Move AC_LIBOBJ invocations to module description.
1595         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
1596         here...
1597         * modules/wmemcmp (configure.ac): ... to here.
1598
1599 2011-05-22  Bruno Haible  <bruno@clisp.org>
1600
1601         wmemchr: Move AC_LIBOBJ invocations to module description.
1602         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
1603         here...
1604         * modules/wmemchr (configure.ac): ... to here.
1605
1606 2011-05-22  Bruno Haible  <bruno@clisp.org>
1607
1608         wcswidth: Move AC_LIBOBJ invocations to module description.
1609         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
1610         here...
1611         * modules/wcswidth (configure.ac): ... to here.
1612
1613 2011-05-22  Bruno Haible  <bruno@clisp.org>
1614
1615         wcwidth: Respect rules for use of AC_LIBOBJ.
1616         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
1617         invocation from here...
1618         * modules/wcwidth (configure.ac): ... to here.
1619         (Depends-on): Update conditions.
1620
1621 2011-05-22  Bruno Haible  <bruno@clisp.org>
1622
1623         wctype: Move AC_LIBOBJ invocations to module description.
1624         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
1625         invocation from here...
1626         * modules/wctype (configure.ac): ... to here.
1627         (Depends-on): Update conditions.
1628
1629 2011-05-22  Bruno Haible  <bruno@clisp.org>
1630
1631         wctrans: Move AC_LIBOBJ invocations to module description.
1632         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
1633         invocation from here...
1634         * modules/wctrans (configure.ac): ... to here.
1635
1636 2011-05-22  Bruno Haible  <bruno@clisp.org>
1637
1638         wctomb: Move AC_LIBOBJ invocations to module description.
1639         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
1640         invocations from here...
1641         * modules/wctomb (configure.ac): ... to here.
1642
1643 2011-05-22  Bruno Haible  <bruno@clisp.org>
1644
1645         wctob: Move AC_LIBOBJ invocations to module description.
1646         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
1647         gl_PREREQ_WCTOB invocations from here...
1648         * modules/wctob (configure.ac): ... to here.
1649         (Depends-on): Update conditions.
1650
1651 2011-05-22  Bruno Haible  <bruno@clisp.org>
1652
1653         wcsxfrm: Move AC_LIBOBJ invocations to module description.
1654         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
1655         here...
1656         * modules/wcsxfrm (configure.ac): ... to here.
1657
1658 2011-05-22  Bruno Haible  <bruno@clisp.org>
1659
1660         wcstok: Move AC_LIBOBJ invocations to module description.
1661         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
1662         * modules/wcstok (configure.ac): ... to here.
1663
1664 2011-05-22  Bruno Haible  <bruno@clisp.org>
1665
1666         wcsstr: Move AC_LIBOBJ invocations to module description.
1667         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
1668         * modules/wcsstr (configure.ac): ... to here.
1669
1670 2011-05-22  Bruno Haible  <bruno@clisp.org>
1671
1672         wcsspn: Move AC_LIBOBJ invocations to module description.
1673         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
1674         * modules/wcsspn (configure.ac): ... to here.
1675
1676 2011-05-22  Bruno Haible  <bruno@clisp.org>
1677
1678         wcsrtombs: Move AC_LIBOBJ invocations to module description.
1679         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
1680         gl_PREREQ_WCSRTOMBS invocations from here...
1681         * modules/wcsrtombs (configure.ac): ... to here.
1682
1683 2011-05-22  Bruno Haible  <bruno@clisp.org>
1684
1685         wcsrchr: Move AC_LIBOBJ invocations to module description.
1686         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
1687         here...
1688         * modules/wcsrchr (configure.ac): ... to here.
1689
1690 2011-05-22  Bruno Haible  <bruno@clisp.org>
1691
1692         wcspbrk: Move AC_LIBOBJ invocations to module description.
1693         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
1694         here...
1695         * modules/wcspbrk (configure.ac): ... to here.
1696
1697 2011-05-22  Bruno Haible  <bruno@clisp.org>
1698
1699         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
1700         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
1701         gl_PREREQ_WCSNRTOMBS invocations from here...
1702         * modules/wcsnrtombs (configure.ac): ... to here.
1703
1704 2011-05-22  Bruno Haible  <bruno@clisp.org>
1705
1706         wcsnlen: Move AC_LIBOBJ invocations to module description.
1707         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
1708         here...
1709         * modules/wcsnlen (configure.ac): ... to here.
1710
1711 2011-05-22  Bruno Haible  <bruno@clisp.org>
1712
1713         wcsncpy: Move AC_LIBOBJ invocations to module description.
1714         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
1715         here...
1716         * modules/wcsncpy (configure.ac): ... to here.
1717
1718 2011-05-22  Bruno Haible  <bruno@clisp.org>
1719
1720         wcsncmp: Move AC_LIBOBJ invocations to module description.
1721         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
1722         here...
1723         * modules/wcsncmp (configure.ac): ... to here.
1724
1725 2011-05-22  Bruno Haible  <bruno@clisp.org>
1726
1727         wcsncat: Move AC_LIBOBJ invocations to module description.
1728         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
1729         here...
1730         * modules/wcsncat (configure.ac): ... to here.
1731
1732 2011-05-22  Bruno Haible  <bruno@clisp.org>
1733
1734         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
1735         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
1736         from here...
1737         * modules/wcsncasecmp (configure.ac): ... to here.
1738
1739 2011-05-22  Bruno Haible  <bruno@clisp.org>
1740
1741         wcslen: Move AC_LIBOBJ invocations to module description.
1742         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
1743         * modules/wcslen (configure.ac): ... to here.
1744
1745 2011-05-22  Bruno Haible  <bruno@clisp.org>
1746
1747         wcsdup: Move AC_LIBOBJ invocations to module description.
1748         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
1749         * modules/wcsdup (configure.ac): ... to here.
1750
1751 2011-05-22  Bruno Haible  <bruno@clisp.org>
1752
1753         wcscspn: Move AC_LIBOBJ invocations to module description.
1754         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
1755         here...
1756         * modules/wcscspn (configure.ac): ... to here.
1757
1758 2011-05-22  Bruno Haible  <bruno@clisp.org>
1759
1760         wcscpy: Move AC_LIBOBJ invocations to module description.
1761         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
1762         * modules/wcscpy (configure.ac): ... to here.
1763
1764 2011-05-22  Bruno Haible  <bruno@clisp.org>
1765
1766         wcscoll: Move AC_LIBOBJ invocations to module description.
1767         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
1768         here...
1769         * modules/wcscoll (configure.ac): ... to here.
1770
1771 2011-05-22  Bruno Haible  <bruno@clisp.org>
1772
1773         wcscmp: Move AC_LIBOBJ invocations to module description.
1774         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
1775         * modules/wcscmp (configure.ac): ... to here.
1776
1777 2011-05-22  Bruno Haible  <bruno@clisp.org>
1778
1779         wcschr: Move AC_LIBOBJ invocations to module description.
1780         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
1781         * modules/wcschr (configure.ac): ... to here.
1782
1783 2011-05-22  Bruno Haible  <bruno@clisp.org>
1784
1785         wcscat: Move AC_LIBOBJ invocations to module description.
1786         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
1787         * modules/wcscat (configure.ac): ... to here.
1788
1789 2011-05-22  Bruno Haible  <bruno@clisp.org>
1790
1791         wcscasecmp: Move AC_LIBOBJ invocations to module description.
1792         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
1793         here...
1794         * modules/wcscasecmp (configure.ac): ... to here.
1795
1796 2011-05-22  Bruno Haible  <bruno@clisp.org>
1797
1798         wcrtomb: Move AC_LIBOBJ invocations to module description.
1799         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
1800         invocations from here...
1801         * modules/wcrtomb (configure.ac): ... to here.
1802
1803 2011-05-22  Bruno Haible  <bruno@clisp.org>
1804
1805         wcpncpy: Move AC_LIBOBJ invocations to module description.
1806         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
1807         here...
1808         * modules/wcpncpy (configure.ac): ... to here.
1809
1810 2011-05-22  Bruno Haible  <bruno@clisp.org>
1811
1812         wcpcpy: Move AC_LIBOBJ invocations to module description.
1813         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
1814         * modules/wcpcpy (configure.ac): ... to here.
1815
1816 2011-05-22  Bruno Haible  <bruno@clisp.org>
1817
1818         waitpid: Move AC_LIBOBJ invocations to module description.
1819         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
1820         invocation from here...
1821         * modules/waitpid (configure.ac): ... to here.
1822
1823 2011-05-22  Bruno Haible  <bruno@clisp.org>
1824
1825         utimensat: Move AC_LIBOBJ invocations to module description.
1826         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
1827         here...
1828         * modules/utimensat (configure.ac): ... to here.
1829
1830 2011-05-22  Bruno Haible  <bruno@clisp.org>
1831
1832         usleep: Move AC_LIBOBJ invocations to module description.
1833         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
1834         here...
1835         * modules/usleep (configure.ac): ... to here.
1836
1837 2011-05-22  Bruno Haible  <bruno@clisp.org>
1838
1839         unlockpt: Move AC_LIBOBJ invocations to module description.
1840         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
1841         gl_PREREQ_UNLOCKPT invocations from here...
1842         * modules/unlockpt (configure.ac): ... to here.
1843
1844 2011-05-22  Bruno Haible  <bruno@clisp.org>
1845
1846         unlink: Respect rules for use of AC_LIBOBJ.
1847         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
1848         * modules/unlink (configure.ac): ... to here.
1849
1850 2011-05-22  Bruno Haible  <bruno@clisp.org>
1851
1852         uname: Move AC_LIBOBJ invocations to module description.
1853         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
1854         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
1855         here...
1856         * modules/uname (configure.ac): ... to here.
1857
1858 2011-05-22  Bruno Haible  <bruno@clisp.org>
1859
1860         ttyname_r: Move AC_LIBOBJ invocations to module description.
1861         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
1862         gl_PREREQ_TTYNAME_R invocations from here...
1863         * modules/ttyname_r (configure.ac): ... to here.
1864
1865 2011-05-22  Bruno Haible  <bruno@clisp.org>
1866
1867         tsearch: Move AC_LIBOBJ invocations to module description.
1868         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
1869         invocations from here...
1870         * modules/tsearch (configure.ac): ... to here.
1871
1872 2011-05-22  Bruno Haible  <bruno@clisp.org>
1873
1874         towctrans: Move AC_LIBOBJ invocations to module description.
1875         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
1876         AC_LIBOBJ invocation from here...
1877         * modules/towctrans (configure.ac): ... to here.
1878
1879 2011-05-22  Bruno Haible  <bruno@clisp.org>
1880
1881         tmpfile: Move AC_LIBOBJ invocations to module description.
1882         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
1883         invocations from here...
1884         * modules/tmpfile (configure.ac): ... to here.
1885
1886 2011-05-22  Bruno Haible  <bruno@clisp.org>
1887
1888         times: Move AC_LIBOBJ invocations to module description.
1889         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
1890         * modules/times (configure.ac): ... to here.
1891
1892 2011-05-22  Bruno Haible  <bruno@clisp.org>
1893
1894         time_r: Move AC_LIBOBJ invocations to module description.
1895         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
1896         invocations from here...
1897         * modules/time_r (configure.ac): ... to here.
1898
1899 2011-05-22  Bruno Haible  <bruno@clisp.org>
1900
1901         timegm: Move AC_LIBOBJ invocations to module description.
1902         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
1903         invocations from here...
1904         * modules/timegm (configure.ac): ... to here.
1905
1906 2011-05-22  Bruno Haible  <bruno@clisp.org>
1907
1908         tcgetsid: Move AC_LIBOBJ invocations to module description.
1909         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
1910         and gl_PREREQ_TCGETSID invocations from here...
1911         * modules/tcgetsid (configure.ac): ... to here.
1912         (Depends-on): Update conditions.
1913
1914 2011-05-22  Bruno Haible  <bruno@clisp.org>
1915
1916         symlinkat: Move AC_LIBOBJ invocations to module description.
1917         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
1918         here...
1919         * modules/symlinkat (configure.ac): ... to here.
1920
1921 2011-05-22  Bruno Haible  <bruno@clisp.org>
1922
1923         symlink: Move AC_LIBOBJ invocations to module description.
1924         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
1925         here...
1926         * modules/symlink (configure.ac): ... to here.
1927
1928 2011-05-22  Bruno Haible  <bruno@clisp.org>
1929
1930         strverscmp: Move AC_LIBOBJ invocations to module description.
1931         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
1932         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
1933         from here...
1934         * modules/strverscmp (configure.ac): ... to here.
1935
1936 2011-05-22  Bruno Haible  <bruno@clisp.org>
1937
1938         strtok_r: Move AC_LIBOBJ invocations to module description.
1939         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
1940         and gl_PREREQ_STRTOK_R invocations from here...
1941         * modules/strtok_r (configure.ac): ... to here.
1942         (Depends-on): Update conditions.
1943
1944 2011-05-22  Bruno Haible  <bruno@clisp.org>
1945
1946         strtoumax: Move AC_LIBOBJ invocations to module description.
1947         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
1948         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
1949         from here...
1950         * modules/strtoumax (configure.ac): ... to here.
1951
1952 2011-05-22  Bruno Haible  <bruno@clisp.org>
1953
1954         strtoimax: Move AC_LIBOBJ invocations to module description.
1955         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
1956         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
1957         from here...
1958         * modules/strtoimax (configure.ac): ... to here.
1959
1960 2011-05-22  Bruno Haible  <bruno@clisp.org>
1961
1962         strtoull: Move AC_LIBOBJ invocations to module description.
1963         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
1964         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
1965         from here...
1966         * modules/strtoull (configure.ac): ... to here.
1967
1968 2011-05-22  Bruno Haible  <bruno@clisp.org>
1969
1970         strtoll: Move AC_LIBOBJ invocations to module description.
1971         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
1972         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
1973         here...
1974         * modules/strtoll (configure.ac): ... to here.
1975
1976 2011-05-22  Bruno Haible  <bruno@clisp.org>
1977
1978         strtoul: Move AC_LIBOBJ invocations to module description.
1979         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
1980         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1981         * modules/strtoul (configure.ac): ... to here.
1982
1983 2011-05-22  Bruno Haible  <bruno@clisp.org>
1984
1985         strtol: Move AC_LIBOBJ invocations to module description.
1986         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
1987         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1988         * modules/strtol (configure.ac): ... to here.
1989
1990 2011-05-22  Bruno Haible  <bruno@clisp.org>
1991
1992         strtod: Move AC_LIBOBJ invocations to module description.
1993         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
1994         invocations from here...
1995         * modules/strtod (configure.ac): ... to here.
1996
1997 2011-05-22  Bruno Haible  <bruno@clisp.org>
1998
1999         strstr*: Move AC_LIBOBJ invocations to module description.
2000         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
2001         invocations from here...
2002         * modules/strstr-simple (configure.ac): ... to here.
2003         * modules/strstr (configure.ac): ... and here.
2004
2005 2011-05-22  Bruno Haible  <bruno@clisp.org>
2006
2007         strsignal: Move AC_LIBOBJ invocations to module description.
2008         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
2009         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
2010         * modules/strsignal (configure.ac): ... to here.
2011         (Depends-on): Update conditions.
2012
2013 2011-05-22  Bruno Haible  <bruno@clisp.org>
2014
2015         strsep: Move AC_LIBOBJ invocations to module description.
2016         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
2017         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
2018         here...
2019         * modules/strsep (configure.ac): ... to here.
2020
2021 2011-05-22  Bruno Haible  <bruno@clisp.org>
2022
2023         strptime: Move AC_LIBOBJ invocations to module description.
2024         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2025         gl_PREREQ_STRPTIME invocations from here...
2026         * modules/strptime (configure.ac): ... to here.
2027
2028 2011-05-22  Bruno Haible  <bruno@clisp.org>
2029
2030         strpbrk: Move AC_LIBOBJ invocations to module description.
2031         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2032         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2033         here...
2034         * modules/strpbrk (configure.ac): ... to here.
2035
2036 2011-05-22  Bruno Haible  <bruno@clisp.org>
2037
2038         strnlen: Move AC_LIBOBJ invocations to module description.
2039         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2040         invocations from here...
2041         * modules/strnlen (configure.ac): ... to here.
2042
2043 2011-05-22  Bruno Haible  <bruno@clisp.org>
2044
2045         strndup: Move AC_LIBOBJ invocations to module description.
2046         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2047         invocations from here...
2048         * modules/strndup (configure.ac): ... to here.
2049         (Depends-on): Update conditions.
2050
2051 2011-05-22  Bruno Haible  <bruno@clisp.org>
2052
2053         strncat: Move AC_LIBOBJ invocations to module description.
2054         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2055         invocations from here...
2056         * modules/strncat (configure.ac): ... to here.
2057
2058 2011-05-22  Bruno Haible  <bruno@clisp.org>
2059
2060         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2061         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2062         invocations from here...
2063         * modules/strdup (configure.ac): ... to here.
2064         * modules/strdup-posix (configure.ac): ... and here.
2065
2066 2011-05-22  Bruno Haible  <bruno@clisp.org>
2067
2068         strcspn: Move AC_LIBOBJ invocations to module description.
2069         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2070         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2071         here...
2072         * modules/strcspn (configure.ac): ... to here.
2073
2074 2011-05-22  Bruno Haible  <bruno@clisp.org>
2075
2076         strchrnul: Move AC_LIBOBJ invocations to module description.
2077         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2078         gl_PREREQ_STRCHRNUL invocations from here...
2079         * modules/strchrnul (configure.ac): ... to here.
2080
2081 2011-05-22  Bruno Haible  <bruno@clisp.org>
2082
2083         strcasestr*: Move AC_LIBOBJ invocations to module description.
2084         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2085         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2086         * modules/strcasestr-simple (configure.ac): ... to here.
2087         * modules/strcasestr (configure.ac): ... and here.
2088
2089 2011-05-22  Bruno Haible  <bruno@clisp.org>
2090
2091         strcase: Move AC_LIBOBJ invocations to module description.
2092         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2093         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2094         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2095         gl_PREREQ_STRNCASECMP invocations from here...
2096         * modules/strcase (configure.ac): ... to here.
2097
2098 2011-05-22  Bruno Haible  <bruno@clisp.org>
2099
2100         stpncpy: Move AC_LIBOBJ invocations to module description.
2101         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2102         here...
2103         * modules/stpncpy (configure.ac): ... to here.
2104
2105 2011-05-22  Bruno Haible  <bruno@clisp.org>
2106
2107         stpcpy: Move AC_LIBOBJ invocations to module description.
2108         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2109         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2110         here...
2111         * modules/stpcpy (configure.ac): ... to here.
2112
2113 2011-05-21  Bruno Haible  <bruno@clisp.org>
2114
2115         stat: Move AC_LIBOBJ invocations to module description.
2116         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2117         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2118         here...
2119         * modules/stat (configure.ac): ... to here.
2120
2121 2011-05-21  Bruno Haible  <bruno@clisp.org>
2122
2123         sleep: Move AC_LIBOBJ invocations to module description.
2124         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2125         * modules/sleep (configure.ac): ... to here.
2126
2127 2011-05-21  Bruno Haible  <bruno@clisp.org>
2128
2129         signbit: Move AC_LIBOBJ invocations to module description.
2130         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2131         * modules/signbit (configure.ac): ... to here.
2132
2133 2011-05-21  Bruno Haible  <bruno@clisp.org>
2134
2135         sigprocmask: Move AC_LIBOBJ invocations to module description.
2136         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2137         gl_PREREQ_SIGPROMASK invocations from here...
2138         * modules/sigprocmask (configure.ac): ... to here.
2139
2140 2011-05-21  Bruno Haible  <bruno@clisp.org>
2141
2142         sigaction: Move AC_LIBOBJ invocations to module description.
2143         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2144         gl_PREREQ_SIGACTION invocations from here...
2145         * modules/sigaction (configure.ac): ... to here.
2146
2147 2011-05-21  Bruno Haible  <bruno@clisp.org>
2148
2149         sig2str: Move AC_LIBOBJ invocations to module description.
2150         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2151         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2152         here...
2153         * modules/sig2str (configure.ac): ... to here.
2154
2155 2011-05-21  Bruno Haible  <bruno@clisp.org>
2156
2157         setlocale: Move AC_LIBOBJ invocations to module description.
2158         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2159         gl_PREREQ_SETLOCALE invocations from here...
2160         * modules/setlocale (configure.ac): ... to here.
2161
2162 2011-05-21  Bruno Haible  <bruno@clisp.org>
2163
2164         unsetenv: Move AC_LIBOBJ invocations to module description.
2165         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2166         and gl_PREREQ_UNSETENV invocations from here...
2167         * modules/unsetenv (configure.ac): ... to here.
2168         (Depends-on): Update.
2169
2170 2011-05-21  Bruno Haible  <bruno@clisp.org>
2171
2172         setenv: Move AC_LIBOBJ invocations to module description.
2173         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2174         here...
2175         * modules/setenv (configure.ac): ... to here.
2176
2177 2011-05-21  Bruno Haible  <bruno@clisp.org>
2178
2179         selinux-h: Move AC_LIBOBJ invocations to module description.
2180         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2181         AC_LIBOBJ invocation from here...
2182         * modules/selinux-h (configure.ac): ... to here.
2183
2184 2011-05-21  Bruno Haible  <bruno@clisp.org>
2185
2186         select: Respect rules for use of AC_LIBOBJ.
2187         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2188         here...
2189         * modules/select (configure.ac): ... to here.
2190
2191 2011-05-21  Bruno Haible  <bruno@clisp.org>
2192
2193         scandir: Move AC_LIBOBJ invocations to module description.
2194         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2195         invocations from here...
2196         * modules/scandir (configure.ac): ... to here.
2197
2198 2011-05-21  Bruno Haible  <bruno@clisp.org>
2199
2200         rpmatch: Move AC_LIBOBJ invocations to module description.
2201         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2202         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2203         here...
2204         * modules/rpmatch (configure.ac): ... to here.
2205
2206 2011-05-21  Bruno Haible  <bruno@clisp.org>
2207
2208         rmdir: Respect rules for use of AC_LIBOBJ.
2209         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2210         * modules/rmdir (configure.ac): ... to here.
2211
2212 2011-05-21  Bruno Haible  <bruno@clisp.org>
2213
2214         renameat: Move AC_LIBOBJ invocations to module description.
2215         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2216         here...
2217         * modules/renameat (configure.ac): ... to here.
2218
2219 2011-05-21  Bruno Haible  <bruno@clisp.org>
2220
2221         rename: Respect rules for use of AC_LIBOBJ.
2222         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2223         here...
2224         * modules/rename (configure.ac): ... to here.
2225
2226 2011-05-21  Bruno Haible  <bruno@clisp.org>
2227
2228         remove: Move AC_LIBOBJ invocations to module description.
2229         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2230         here...
2231         * modules/remove (configure.ac): ... to here.
2232
2233 2011-05-21  Bruno Haible  <bruno@clisp.org>
2234
2235         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2236         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
2237         macro.
2238         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
2239         * modules/relocatable-lib (configure.ac): ... to here.
2240         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2241         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
2242
2243 2011-05-21  Bruno Haible  <bruno@clisp.org>
2244
2245         relocatable-prog: Move AC_LIBOBJ invocations to module description.
2246         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
2247         here...
2248         * modules/relocatable-prog (configure.ac): ... to here.
2249
2250 2011-05-21  Bruno Haible  <bruno@clisp.org>
2251
2252         regex: Move AC_LIBOBJ invocations to module description.
2253         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
2254         invocations from here...
2255         * modules/regex (configure.ac): ... to here.
2256
2257 2011-05-21  Bruno Haible  <bruno@clisp.org>
2258
2259         realloc-*: Move AC_LIBOBJ invocations to module description.
2260         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
2261         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
2262         AC_LIBOBJ invocations from here...
2263         * modules/realloc-gnu (configure.ac): ... to here.
2264         * modules/realloc-posix (configure.ac): ... and here.
2265
2266 2011-05-21  Bruno Haible  <bruno@clisp.org>
2267
2268         readutmp: Move AC_LIBOBJ invocations to module description.
2269         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
2270         * modules/readutmp (configure.ac): ... to here.
2271
2272 2011-05-21  Bruno Haible  <bruno@clisp.org>
2273
2274         readlinkat: Move AC_LIBOBJ invocations to module description.
2275         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
2276         here...
2277         * modules/readlinkat (configure.ac): ... to here.
2278
2279 2011-05-21  Bruno Haible  <bruno@clisp.org>
2280
2281         readlink: Move AC_LIBOBJ invocations to module description.
2282         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
2283         gl_PREREQ_READLINK invocations from here...
2284         * modules/readlink (configure.ac): ... to here.
2285
2286 2011-05-21  Bruno Haible  <bruno@clisp.org>
2287
2288         readline: Move AC_LIBOBJ invocations to module description.
2289         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
2290         gl_PREREQ_READLINE invocations from here...
2291         * modules/readline (configure.ac): ... to here.
2292
2293 2011-05-21  Bruno Haible  <bruno@clisp.org>
2294
2295         read: Move AC_LIBOBJ invocations to module description.
2296         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
2297         * modules/read (configure.ac): ... to here.
2298
2299 2011-05-21  Bruno Haible  <bruno@clisp.org>
2300
2301         rawmemchr: Move AC_LIBOBJ invocations to module description.
2302         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
2303         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
2304         from here...
2305         * modules/rawmemchr (configure.ac): ... to here.
2306
2307 2011-05-21  Bruno Haible  <bruno@clisp.org>
2308
2309         random_r: Move AC_LIBOBJ invocations to module description.
2310         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
2311         gl_PREREQ_RANDOM_R invocations from here...
2312         * modules/random_r (configure.ac): ... to here.
2313
2314 2011-05-21  Bruno Haible  <bruno@clisp.org>
2315
2316         pwrite: Move AC_LIBOBJ invocations to module description.
2317         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
2318         * modules/pwrite (configure.ac): ... to here.
2319
2320 2011-05-21  Bruno Haible  <bruno@clisp.org>
2321
2322         putenv: Move AC_LIBOBJ invocations to module description.
2323         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
2324         * modules/putenv (configure.ac): ... to here.
2325
2326 2011-05-21  Bruno Haible  <bruno@clisp.org>
2327
2328         login_tty: Move AC_LIBOBJ invocations to module description.
2329         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2330         * modules/login_tty (configure.ac): ... to here.
2331
2332 2011-05-21  Bruno Haible  <bruno@clisp.org>
2333
2334         openpty: Move AC_LIBOBJ invocations to module description.
2335         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2336         * modules/openpty (configure.ac): ... to here.
2337
2338 2011-05-21  Bruno Haible  <bruno@clisp.org>
2339
2340         forkpty: Move AC_LIBOBJ invocations to module description.
2341         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2342         * modules/forkpty (configure.ac): ... to here.
2343
2344 2011-05-21  Bruno Haible  <bruno@clisp.org>
2345
2346         ptsname: Move AC_LIBOBJ invocations to module description.
2347         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2348         invocations from here...
2349         * modules/ptsname (configure.ac): ... to here.
2350
2351 2011-05-21  Bruno Haible  <bruno@clisp.org>
2352
2353         pread: Move AC_LIBOBJ invocations to module description.
2354         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2355         * modules/pread (configure.ac): ... to here.
2356
2357 2011-05-21  Bruno Haible  <bruno@clisp.org>
2358
2359         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2360         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2361         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2362         * modules/posix_spawn (configure.ac): ... to here.
2363         * modules/posix_spawnp (configure.ac): ... and here.
2364
2365 2011-05-21  Bruno Haible  <bruno@clisp.org>
2366
2367         popen: Move AC_LIBOBJ invocations to module description.
2368         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2369         invocations from here...
2370         * modules/popen (configure.ac): ... to here.
2371
2372 2011-05-21  Bruno Haible  <bruno@clisp.org>
2373
2374         poll: Move AC_LIBOBJ invocations to module description.
2375         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2376         invocations from here...
2377         * modules/poll (configure.ac): ... to here.
2378
2379 2011-05-21  Bruno Haible  <bruno@clisp.org>
2380
2381         pipe-posix: Move AC_LIBOBJ invocations to module description.
2382         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2383         * modules/pipe-posix (configure.ac): ... to here.
2384
2385 2011-05-21  Bruno Haible  <bruno@clisp.org>
2386
2387         openat: Respect rules for use of AC_LIBOBJ.
2388         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2389         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2390         * modules/openat (configure.ac): ... to here.
2391
2392 2011-05-21  Bruno Haible  <bruno@clisp.org>
2393
2394         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2395         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2396         invocation from here...
2397         * modules/obstack-printf (configure.ac): ... to here.
2398         * modules/obstack-printf-posix (configure.ac): ... and here.
2399
2400 2011-05-21  Bruno Haible  <bruno@clisp.org>
2401
2402         nl_langinfo: Move AC_LIBOBJ invocations to module description.
2403         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
2404         from here...
2405         * modules/nl_langinfo (configure.ac): ... to here.
2406
2407 2011-05-21  Bruno Haible  <bruno@clisp.org>
2408
2409         nanosleep: Move AC_LIBOBJ invocations to module description.
2410         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
2411         gl_PREREQ_NANOSLEEP invocations from here...
2412         * modules/nanosleep (configure.ac): ... to here.
2413
2414 2011-05-21  Bruno Haible  <bruno@clisp.org>
2415
2416         mountlist: Move AC_LIBOBJ invocations to module description.
2417         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
2418         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
2419         * modules/mountlist (configure.ac): ... to here.
2420
2421 2011-05-21  Bruno Haible  <bruno@clisp.org>
2422
2423         mktime: Respect rules for use of AC_LIBOBJ.
2424         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
2425         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
2426         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
2427         (gl_FUNC_MKTIME_INTERNAL): ... and here...
2428         * modules/mktime (configure.ac): ... to here.
2429         * modules/mktime-internal (configure.ac): ... and here.
2430         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
2431
2432 2011-05-21  Bruno Haible  <bruno@clisp.org>
2433
2434         mkstemps: Move AC_LIBOBJ invocations to module description.
2435         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
2436         here...
2437         * modules/mkstemps (configure.ac): ... to here.
2438
2439 2011-05-21  Bruno Haible  <bruno@clisp.org>
2440
2441         mkstemp: Move AC_LIBOBJ invocations to module description.
2442         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
2443         gl_PREREQ_MKSTEMP invocations from here...
2444         * modules/mkstemp (configure.ac): ... to here.
2445
2446 2011-05-21  Bruno Haible  <bruno@clisp.org>
2447
2448         mkostemps: Move AC_LIBOBJ invocations to module description.
2449         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
2450         here...
2451         * modules/mkostemps (configure.ac): ... to here.
2452
2453 2011-05-21  Bruno Haible  <bruno@clisp.org>
2454
2455         mkostemp: Move AC_LIBOBJ invocations to module description.
2456         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
2457         gl_PREREQ_MKOSTEMP invocations from here...
2458         * modules/mkostemp (configure.ac): ... to here.
2459
2460 2011-05-21  Bruno Haible  <bruno@clisp.org>
2461
2462         mknod: Move AC_LIBOBJ invocations to module description.
2463         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
2464         * modules/mknod (configure.ac): ... to here.
2465
2466 2011-05-21  Bruno Haible  <bruno@clisp.org>
2467
2468         mkfifoat: Move AC_LIBOBJ invocations to module description.
2469         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
2470         here...
2471         * modules/mkfifoat (configure.ac): ... to here.
2472
2473 2011-05-21  Bruno Haible  <bruno@clisp.org>
2474
2475         mkfifo: Respect rules for use of AC_LIBOBJ.
2476         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
2477         here...
2478         * modules/mkfifo (configure.ac): ... to here.
2479
2480 2011-05-21  Bruno Haible  <bruno@clisp.org>
2481
2482         mkdtemp: Move AC_LIBOBJ invocations to module description.
2483         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
2484         invocations from here...
2485         * modules/mkdtemp (configure.ac): ... to here.
2486
2487 2011-05-21  Bruno Haible  <bruno@clisp.org>
2488
2489         mkdir: Move AC_LIBOBJ invocations to module description.
2490         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
2491         * modules/mkdir (configure.ac): ... to here.
2492
2493 2011-05-21  Bruno Haible  <bruno@clisp.org>
2494
2495         memset: Move AC_LIBOBJ invocations to module description.
2496         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
2497         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
2498         here...
2499         * modules/memset (configure.ac): ... to here.
2500
2501 2011-05-21  Bruno Haible  <bruno@clisp.org>
2502
2503         memrchr: Move AC_LIBOBJ invocations to module description.
2504         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
2505         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
2506         here...
2507         * modules/memrchr (configure.ac): ... to here.
2508
2509 2011-05-21  Bruno Haible  <bruno@clisp.org>
2510
2511         mempcpy: Move AC_LIBOBJ invocations to module description.
2512         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
2513         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
2514         here...
2515         * modules/mempcpy (configure.ac): ... to here.
2516
2517 2011-05-21  Bruno Haible  <bruno@clisp.org>
2518
2519         memmove: Move AC_LIBOBJ invocations to module description.
2520         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
2521         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
2522         here...
2523         * modules/memmove (configure.ac): ... to here.
2524
2525 2011-05-21  Bruno Haible  <bruno@clisp.org>
2526
2527         memmem*: Move AC_LIBOBJ invocations to module description.
2528         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
2529         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
2530         here...
2531         (gl_FUNC_MEMMEM): ... and here...
2532         * modules/memmem-simple (configure.ac): ... to here.
2533         * modules/memmem (configure.ac): ... and here.
2534
2535 2011-05-21  Bruno Haible  <bruno@clisp.org>
2536
2537         memcpy: Move AC_LIBOBJ invocations to module description.
2538         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
2539         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
2540         here...
2541         * modules/memcpy (configure.ac): ... to here.
2542
2543 2011-05-21  Bruno Haible  <bruno@clisp.org>
2544
2545         memcmp: Simplify autoconf macro.
2546         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
2547         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
2548         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
2549
2550 2011-05-21  Bruno Haible  <bruno@clisp.org>
2551
2552         memcmp: Move AC_LIBOBJ invocations to module description.
2553         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
2554         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
2555         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
2556         * modules/memcmp (configure.ac): ... to here.
2557         (Depends-on): Update conditions.
2558
2559 2011-05-21  Bruno Haible  <bruno@clisp.org>
2560
2561         memchr: Respect rules for use of AC_LIBOBJ.
2562         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
2563         invocations from here...
2564         * modules/memchr (configure.ac): ... to here.
2565
2566 2011-05-21  Bruno Haible  <bruno@clisp.org>
2567
2568         mbtowc: Move AC_LIBOBJ invocations to module description.
2569         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
2570         invocations from here...
2571         * modules/mbtowc (configure.ac): ... to here.
2572
2573 2011-05-21  Bruno Haible  <bruno@clisp.org>
2574
2575         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
2576         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
2577         gl_PREREQ_MBSRTOWCS invocations from here...
2578         * modules/mbsrtowcs (configure.ac): ... to here.
2579
2580 2011-05-21  Bruno Haible  <bruno@clisp.org>
2581
2582         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
2583         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
2584         gl_PREREQ_MBSNRTOWCS invocations from here...
2585         * modules/mbsnrtowcs (configure.ac): ... to here.
2586
2587 2011-05-21  Bruno Haible  <bruno@clisp.org>
2588
2589         mbsinit: Move AC_LIBOBJ invocations to module description.
2590         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
2591         invocations from here...
2592         * modules/mbsinit (configure.ac): ... to here.
2593
2594 2011-05-21  Bruno Haible  <bruno@clisp.org>
2595
2596         mbrlen: Move AC_LIBOBJ invocations to module description.
2597         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
2598         invocations from here...
2599         * modules/mbrlen (configure.ac): ... to here.
2600
2601 2011-05-21  Bruno Haible  <bruno@clisp.org>
2602
2603         mbrtowc: Respect rules for use of AC_LIBOBJ.
2604         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
2605         invocations from here...
2606         * modules/mbrtowc (configure.ac): ... to here.
2607
2608 2011-05-21  Bruno Haible  <bruno@clisp.org>
2609
2610         malloc-*: Move AC_LIBOBJ invocations to module description.
2611         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
2612         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
2613         AC_LIBOBJ invocations from here...
2614         * modules/malloc-gnu (configure.ac): ... to here.
2615         * modules/malloc-posix (configure.ac): ... and here.
2616
2617 2011-05-21  Bruno Haible  <bruno@clisp.org>
2618
2619         lstat, openat: Respect rules for use of AC_LIBOBJ.
2620         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
2621         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
2622         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
2623         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
2624         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
2625         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
2626         here.
2627         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2628
2629 2011-05-21  Bruno Haible  <bruno@clisp.org>
2630
2631         lseek: Move AC_LIBOBJ invocations to module description.
2632         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
2633         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2634         * modules/lseek (configure.ac): ... to here.
2635
2636 2011-05-21  Bruno Haible  <bruno@clisp.org>
2637
2638         linkat: Move AC_LIBOBJ invocations to module description.
2639         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
2640         here...
2641         * modules/linkat (configure.ac): ... to here.
2642
2643 2011-05-21  Bruno Haible  <bruno@clisp.org>
2644
2645         link: Respect rules for use of AC_LIBOBJ.
2646         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
2647         * modules/link (configure.ac): ... to here.
2648
2649 2011-05-21  Bruno Haible  <bruno@clisp.org>
2650
2651         lchown: Move AC_LIBOBJ invocations to module description.
2652         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2653         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2654         * modules/lchown (configure.ac): ... to here.
2655
2656 2011-05-21  Bruno Haible  <bruno@clisp.org>
2657
2658         iswctype: Move AC_LIBOBJ invocations to module description.
2659         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
2660         here...
2661         * modules/iswctype (configure.ac): ... to here.
2662
2663 2011-05-21  Bruno Haible  <bruno@clisp.org>
2664
2665         iswblank: Move AC_LIBOBJ invocations to module description.
2666         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
2667         here...
2668         * modules/iswblank (configure.ac): ... to here.
2669
2670 2011-05-21  Bruno Haible  <bruno@clisp.org>
2671
2672         atanl: Move AC_LIBOBJ invocations to module description.
2673         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
2674         * modules/atanl (configure.ac): ... to here.
2675
2676 2011-05-21  Bruno Haible  <bruno@clisp.org>
2677
2678         acosl: Move AC_LIBOBJ invocations to module description.
2679         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
2680         * modules/acosl (configure.ac): ... to here.
2681
2682 2011-05-21  Bruno Haible  <bruno@clisp.org>
2683
2684         asinl: Respect rules for use of AC_LIBOBJ.
2685         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
2686         * modules/asinl (configure.ac): ... to here.
2687
2688 2011-05-21  Bruno Haible  <bruno@clisp.org>
2689
2690         tanl: Move AC_LIBOBJ invocations to module description.
2691         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
2692         * modules/tanl (configure.ac): ... to here.
2693
2694 2011-05-21  Bruno Haible  <bruno@clisp.org>
2695
2696         cosl: Move AC_LIBOBJ invocations to module description.
2697         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
2698         * modules/cosl (configure.ac): ... to here.
2699
2700 2011-05-21  Bruno Haible  <bruno@clisp.org>
2701
2702         sinl: Move AC_LIBOBJ invocations to module description.
2703         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
2704         * modules/sinl (configure.ac): ... to here.
2705
2706 2011-05-21  Bruno Haible  <bruno@clisp.org>
2707
2708         logl: Move AC_LIBOBJ invocations to module description.
2709         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
2710         * modules/logl (configure.ac): ... to here.
2711
2712 2011-05-21  Bruno Haible  <bruno@clisp.org>
2713
2714         expl: Move AC_LIBOBJ invocations to module description.
2715         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
2716         * modules/expl (configure.ac): ... to here.
2717
2718 2011-05-21  Bruno Haible  <bruno@clisp.org>
2719
2720         roundl: Move AC_LIBOBJ invocations to module description.
2721         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
2722         * modules/roundl (configure.ac): ... to here.
2723
2724 2011-05-21  Bruno Haible  <bruno@clisp.org>
2725
2726         round: Move AC_LIBOBJ invocations to module description.
2727         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
2728         * modules/round (configure.ac): ... to here.
2729
2730 2011-05-21  Bruno Haible  <bruno@clisp.org>
2731
2732         roundf: Move AC_LIBOBJ invocations to module description.
2733         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
2734         * modules/roundf (configure.ac): ... to here.
2735
2736 2011-05-21  Bruno Haible  <bruno@clisp.org>
2737
2738         truncl: Move AC_LIBOBJ invocations to module description.
2739         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
2740         * modules/truncl (configure.ac): ... to here.
2741
2742 2011-05-21  Bruno Haible  <bruno@clisp.org>
2743
2744         trunc: Move AC_LIBOBJ invocations to module description.
2745         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
2746         * modules/trunc (configure.ac): ... to here.
2747
2748 2011-05-21  Bruno Haible  <bruno@clisp.org>
2749
2750         truncf: Move AC_LIBOBJ invocations to module description.
2751         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
2752         * modules/truncf (configure.ac): ... to here.
2753
2754 2011-05-21  Bruno Haible  <bruno@clisp.org>
2755
2756         ceill: Move AC_LIBOBJ invocations to module description.
2757         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
2758         * modules/ceill (configure.ac): ... to here.
2759
2760 2011-05-21  Bruno Haible  <bruno@clisp.org>
2761
2762         ceil: Move AC_LIBOBJ invocations to module description.
2763         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
2764         * modules/ceil (configure.ac): ... to here.
2765
2766 2011-05-21  Bruno Haible  <bruno@clisp.org>
2767
2768         ceilf: Move AC_LIBOBJ invocations to module description.
2769         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
2770         * modules/ceilf (configure.ac): ... to here.
2771
2772 2011-05-21  Bruno Haible  <bruno@clisp.org>
2773
2774         floorl: Respect rules for use of AC_LIBOBJ.
2775         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
2776         * modules/floorl (configure.ac): ... to here.
2777
2778 2011-05-21  Bruno Haible  <bruno@clisp.org>
2779
2780         floor: Respect rules for use of AC_LIBOBJ.
2781         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
2782         * modules/floor (configure.ac): ... to here.
2783
2784 2011-05-21  Bruno Haible  <bruno@clisp.org>
2785
2786         floorf: Move AC_LIBOBJ invocations to module description.
2787         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
2788         * modules/floorf (configure.ac): ... to here.
2789
2790 2011-05-20  Bruno Haible  <bruno@clisp.org>
2791
2792         sqrtl: Respect rules for use of AC_LIBOBJ.
2793         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
2794         * modules/sqrtl (configure.ac): ... to here.
2795
2796 2011-05-20  Bruno Haible  <bruno@clisp.org>
2797
2798         ldexpl: Respect rules for use of AC_LIBOBJ.
2799         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
2800         * modules/ldexpl (configure.ac): ... to here.
2801
2802 2011-05-20  Bruno Haible  <bruno@clisp.org>
2803
2804         frexpl*: Respect rules for use of AC_LIBOBJ.
2805         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
2806         invocation from here...
2807         * modules/frexpl (configure.ac): ... to here.
2808         * modules/frexpl-nolibm (configure.ac): ... and here.
2809
2810 2011-05-20  Bruno Haible  <bruno@clisp.org>
2811
2812         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
2813         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
2814         invocation from here...
2815         * modules/frexp (configure.ac): ... to here.
2816         * modules/frexp-nolibm (configure.ac): ... and here.
2817
2818 2011-05-20  Bruno Haible  <bruno@clisp.org>
2819
2820         isnan: Respect rules for use of AC_LIBOBJ.
2821         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
2822         invocations here.
2823         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
2824         REPLACE_ISNAN.
2825         * modules/isnand (configure.ac): Likewise.
2826         * modules/isnanl (configure.ac): Likewise.
2827
2828 2011-05-20  Bruno Haible  <bruno@clisp.org>
2829
2830         isnanl*: Respect rules for use of AC_LIBOBJ.
2831         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
2832         invocation from here...
2833         * modules/isnanl (configure.ac): ... to here.
2834         * modules/isnanl-nolibm (configure.ac): ... and here.
2835
2836 2011-05-20  Bruno Haible  <bruno@clisp.org>
2837
2838         isnand*: Move AC_LIBOBJ invocations to module description.
2839         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
2840         invocation from here...
2841         * modules/isnand (configure.ac): ... to here.
2842         * modules/isnand-nolibm (configure.ac): ... and here.
2843
2844 2011-05-20  Bruno Haible  <bruno@clisp.org>
2845
2846         isnanf*: Move AC_LIBOBJ invocations to module description.
2847         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
2848         invocation from here...
2849         * modules/isnanf (configure.ac): ... to here.
2850         * modules/isnanf-nolibm (configure.ac): ... and here.
2851
2852 2011-05-20  Bruno Haible  <bruno@clisp.org>
2853
2854         isnan*: Separate the AC_LIBOBJ invocations.
2855         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
2856         AC_LIBOBJ invocation.
2857         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
2858         here.
2859         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
2860         AC_LIBOBJ invocation.
2861         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
2862         here.
2863         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
2864         AC_LIBOBJ invocation.
2865         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
2866         here.
2867         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
2868
2869 2011-05-08  Bruno Haible  <bruno@clisp.org>
2870
2871         isinf: Move AC_LIBOBJ invocations to module description.
2872         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
2873         * modules/isinf (configure.ac): ... to here.
2874
2875 2011-05-08  Bruno Haible  <bruno@clisp.org>
2876
2877         isfinite: Move AC_LIBOBJ invocations to module description.
2878         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
2879         * modules/isfinite (configure.ac): ... to here.
2880
2881 2011-05-08  Bruno Haible  <bruno@clisp.org>
2882
2883         isblank: Move AC_LIBOBJ invocations to module description.
2884         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
2885         here...
2886         * modules/isblank (configure.ac): ... to here.
2887
2888 2011-05-08  Bruno Haible  <bruno@clisp.org>
2889
2890         isapipe: Move AC_LIBOBJ invocations to module description.
2891         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
2892         gl_PREREQ_ISAPIPE invocations from here...
2893         * modules/isapipe (configure.ac): ... to here.
2894         (Depends-on): Update condition.
2895
2896 2011-05-08  Bruno Haible  <bruno@clisp.org>
2897
2898         ioctl: Move AC_LIBOBJ invocations to module description.
2899         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
2900         invocations from here...
2901         * modules/ioctl (configure.ac): ... to here.
2902         (Depends-on): Update condition.
2903
2904 2011-05-08  Bruno Haible  <bruno@clisp.org>
2905
2906         imaxdiv: Move AC_LIBOBJ invocations to module description.
2907         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
2908         invocations from here...
2909         * modules/imaxdiv (configure.ac): ... to here.
2910
2911 2011-05-08  Bruno Haible  <bruno@clisp.org>
2912
2913         imaxabs: Move AC_LIBOBJ invocations to module description.
2914         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
2915         invocations from here...
2916         * modules/imaxabs (configure.ac): ... to here.
2917
2918 2011-05-08  Bruno Haible  <bruno@clisp.org>
2919
2920         getaddrinfo: Move AC_LIBOBJ invocations to module description.
2921         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
2922         AC_LIBOBJ invocations from here...
2923         * modules/getaddrinfo (configure.ac): ... to here.
2924         (Depends-on): Add conditions.
2925
2926 2011-05-08  Bruno Haible  <bruno@clisp.org>
2927
2928         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
2929         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
2930         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
2931         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
2932         (gl_PREREQ_INET_PTON): ... from here.
2933         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
2934         gl_PREREQ_INET_PTON here.
2935         (Depends-on): Update condition.
2936
2937 2011-05-08  Bruno Haible  <bruno@clisp.org>
2938
2939         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
2940         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
2941         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
2942         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
2943         (gl_PREREQ_INET_NTOP): ... from here.
2944         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
2945         gl_PREREQ_INET_NTOP here.
2946         (Depends-on): Update condition.
2947
2948 2011-05-08  Bruno Haible  <bruno@clisp.org>
2949
2950         iconv_open: Move AC_LIBOBJ invocations to module description.
2951         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
2952         AC_LIBOBJ invocations from here...
2953         * modules/iconv_open (configure.ac): ... to here.
2954
2955 2011-05-08  Bruno Haible  <bruno@clisp.org>
2956
2957         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
2958         If module 'iconv_open' is among the main modules and module
2959         'iconv_open-utf' is among the tests dependencies, then
2960         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
2961         return the special iconv_t values. Therefore iconv() and iconv_close()
2962         must support these special iconv_t values, already in lib, not only in
2963         tests.
2964         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
2965         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
2966         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
2967         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
2968         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
2969         (Depends-on): Add the dependencies of iconv_open-utf.
2970         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
2971         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
2972         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
2973
2974 2011-05-08  Bruno Haible  <bruno@clisp.org>
2975
2976         group-member: Move AC_LIBOBJ invocations to module description.
2977         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
2978         gl_PREREQ_GROUP_MEMBER invocations from here...
2979         * modules/group-member (configure.ac): ... to here.
2980
2981 2011-05-08  Bruno Haible  <bruno@clisp.org>
2982
2983         grantpt: Move AC_LIBOBJ invocations to module description.
2984         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
2985         invocations from here...
2986         * modules/grantpt (configure.ac): ... to here.
2987
2988 2011-05-08  Bruno Haible  <bruno@clisp.org>
2989
2990         glob: Move AC_LIBOBJ invocations to module description.
2991         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
2992         from here...
2993         * modules/glob (configure.ac): ... to here.
2994
2995 2011-05-08  Bruno Haible  <bruno@clisp.org>
2996
2997         getusershell: Move AC_LIBOBJ invocations to module description.
2998         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
2999         Move AC_LIBOBJ invocation from here...
3000         * modules/getusershell (configure.ac): ... to here.
3001         (Depends-on): Update condition.
3002
3003 2011-05-08  Bruno Haible  <bruno@clisp.org>
3004
3005         gettimeofday: Move AC_LIBOBJ invocations to module description.
3006         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3007         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
3008         gl_PREREQ_GETTIMEOFDAY invocations from here...
3009         * modules/gettimeofday (configure.ac): ... to here.
3010
3011 2011-05-08  Bruno Haible  <bruno@clisp.org>
3012
3013         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
3014         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
3015         just gl_FUNC_TZSET.
3016         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
3017         (gl_FUNC_TZSET_CLOBBER): Remove actions.
3018         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3019         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3020
3021 2011-05-08  Bruno Haible  <bruno@clisp.org>
3022
3023         getsubopt: Move AC_LIBOBJ invocations to module description.
3024         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3025         gl_PREREQ_GETSUBOPT invocations from here...
3026         * modules/getsubopt (configure.ac): ... to here.
3027
3028 2011-05-08  Bruno Haible  <bruno@clisp.org>
3029
3030         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3031         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3032         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3033         * modules/getpass-gnu (configure.ac): ... to here.
3034
3035 2011-05-08  Bruno Haible  <bruno@clisp.org>
3036
3037         getpass: Move AC_LIBOBJ invocations to module description.
3038         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3039         gl_PREREQ_GETPASS invocations from here...
3040         * modules/getpass (configure.ac): ... to here.
3041
3042 2011-05-08  Bruno Haible  <bruno@clisp.org>
3043
3044         getpagesize: Move AC_LIBOBJ invocations to module description.
3045         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3046         from here...
3047         * modules/getpagesize (configure.ac): ... to here.
3048
3049 2011-05-08  Bruno Haible  <bruno@clisp.org>
3050
3051         getopt: Move AC_LIBOBJ invocations to module description.
3052         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3053         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3054         invocations from here...
3055         * modules/getopt-gnu (configure.ac): ... to here.
3056         * modules/getopt-posix (configure.ac): ... and here.
3057         (Depends-on): Update condition.
3058
3059 2011-05-08  Bruno Haible  <bruno@clisp.org>
3060
3061         getopt, argp: Respect rules for use of AC_LIBOBJ.
3062         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3063         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3064         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3065         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3066
3067 2011-05-08  Bruno Haible  <bruno@clisp.org>
3068
3069         getlogin_r: Move AC_LIBOBJ invocations to module description.
3070         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3071         gl_PREREQ_GETLOGIN_R invocations from here...
3072         * modules/getlogin_r (configure.ac): ... to here.
3073
3074 2011-05-08  Bruno Haible  <bruno@clisp.org>
3075
3076         getlogin: Move AC_LIBOBJ invocations to module description.
3077         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3078         here...
3079         * modules/getlogin (configure.ac): ... to here.
3080
3081 2011-05-08  Bruno Haible  <bruno@clisp.org>
3082
3083         getloadavg: Move AC_LIBOBJ invocations to module description.
3084         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3085         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3086         * modules/getloadavg (configure.ac): ... to here.
3087
3088 2011-05-08  Bruno Haible  <bruno@clisp.org>
3089
3090         gethrxtime: Move AC_LIBOBJ invocations to module description.
3091         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3092         LIB_GETHRXTIME from here...
3093         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3094         invocations from here...
3095         * modules/gethrxtime (configure.ac): ... to here.
3096
3097 2011-05-08  Bruno Haible  <bruno@clisp.org>
3098
3099         gethostname: Move AC_LIBOBJ invocations to module description.
3100         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3101         gl_PREREQ_GETHOSTNAME invocations from here...
3102         * modules/gethostname (configure.ac): ... to here.
3103
3104 2011-05-08  Bruno Haible  <bruno@clisp.org>
3105
3106         getgroups: Move AC_LIBOBJ invocations to module description.
3107         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3108         here...
3109         * modules/getgroups (configure.ac): ... to here.
3110
3111 2011-05-08  Bruno Haible  <bruno@clisp.org>
3112
3113         getdtablesize: Move AC_LIBOBJ invocations to module description.
3114         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3115         invocation from here...
3116         * modules/getdtablesize (configure.ac): ... to here.
3117
3118 2011-05-08  Bruno Haible  <bruno@clisp.org>
3119
3120         getdomainname: Move AC_LIBOBJ invocations to module description.
3121         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3122         gl_PREREQ_GETDOMAINNAME invocations from here...
3123         * modules/getdomainname (configure.ac): ... to here.
3124
3125 2011-05-08  Bruno Haible  <bruno@clisp.org>
3126
3127         getline: Move AC_LIBOBJ invocations to module description.
3128         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3129         invocations from here...
3130         * modules/getline (configure.ac): ... to here.
3131
3132 2011-05-08  Bruno Haible  <bruno@clisp.org>
3133
3134         getline: Simplify.
3135         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3136         It's already handled through the module dependency.
3137
3138 2011-05-08  Bruno Haible  <bruno@clisp.org>
3139
3140         getdelim: Move AC_LIBOBJ invocations to module description.
3141         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3142         and gl_PREREQ_GETDELIM invocations from here...
3143         * modules/getdelim (configure.ac): ... to here.
3144         (Depends-on): Fix condition.
3145
3146 2011-05-08  Bruno Haible  <bruno@clisp.org>
3147
3148         getcwd: Move AC_LIBOBJ invocations to module description.
3149         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3150         invocations from here...
3151         * modules/getcwd (configure.ac): ... to here.
3152
3153 2011-05-08  Bruno Haible  <bruno@clisp.org>
3154
3155         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3156         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3157         here...
3158         * modules/getcwd-lgpl (configure.ac): ... to here.
3159
3160 2011-05-07  Bruno Haible  <bruno@clisp.org>
3161
3162         crypto/gc: Move AC_LIBOBJ invocations to module description.
3163         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3164         * modules/crypto/gc (configure.ac): ... to here.
3165
3166 2011-05-07  Bruno Haible  <bruno@clisp.org>
3167
3168         fwriting: Move AC_LIBOBJ invocations to module description.
3169         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3170         here...
3171         * modules/fwriting (configure.ac): ... to here.
3172
3173 2011-05-07  Bruno Haible  <bruno@clisp.org>
3174
3175         fwritable: Move AC_LIBOBJ invocations to module description.
3176         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3177         here...
3178         * modules/fwritable (configure.ac): ... to here.
3179
3180 2011-05-07  Bruno Haible  <bruno@clisp.org>
3181
3182         futimens: Move AC_LIBOBJ invocations to module description.
3183         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3184         here...
3185         * modules/futimens (configure.ac): ... to here.
3186
3187 2011-05-07  Bruno Haible  <bruno@clisp.org>
3188
3189         ftruncate: Move AC_LIBOBJ invocations to module description.
3190         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3191         gl_PREREQ_FTRUNCATE invocations from here...
3192         * modules/ftruncate (configure.ac): ... to here.
3193
3194 2011-05-07  Bruno Haible  <bruno@clisp.org>
3195
3196         fsync: Move AC_LIBOBJ invocations to module description.
3197         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3198         invocations from here...
3199         * modules/fsync (configure.ac): ... to here.
3200
3201 2011-05-07  Bruno Haible  <bruno@clisp.org>
3202
3203         fsusage: Move AC_LIBOBJ invocations to module description.
3204         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3205         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3206         * modules/fsusage (configure.ac): ... to here.
3207
3208 2011-05-07  Bruno Haible  <bruno@clisp.org>
3209
3210         freopen: Move AC_LIBOBJ invocations to module description.
3211         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3212         invocations from here...
3213         * modules/freopen (configure.ac): ... to here.
3214
3215 2011-05-07  Bruno Haible  <bruno@clisp.org>
3216
3217         free: Move AC_LIBOBJ invocations to module description.
3218         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3219         invocations from here...
3220         * modules/free (configure.ac): ... to here.
3221
3222 2011-05-07  Bruno Haible  <bruno@clisp.org>
3223
3224         freadable: Move AC_LIBOBJ invocations to module description.
3225         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3226         here...
3227         * modules/freadable (configure.ac): ... to here.
3228
3229 2011-05-07  Bruno Haible  <bruno@clisp.org>
3230
3231         fpurge: Move AC_LIBOBJ invocations to module description.
3232         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3233         invocations from here...
3234         * modules/fpurge (configure.ac): ... to here.
3235
3236 2011-05-07  Bruno Haible  <bruno@clisp.org>
3237
3238         fpending: Move AC_LIBOBJ invocations to module description.
3239         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
3240         gl_FUNC_FPENDING.
3241         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
3242         invocations from here...
3243         * modules/fpending (configure.ac): ... to here.
3244
3245 2011-05-07  Bruno Haible  <bruno@clisp.org>
3246
3247         fopen: Move AC_LIBOBJ invocations to module description.
3248         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
3249         invocations from here...
3250         * modules/fopen (configure.ac): ... to here.
3251
3252 2011-05-07  Bruno Haible  <bruno@clisp.org>
3253
3254         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
3255         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
3256         gl_FUNC_FNMATCH_POSIX.
3257         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
3258         invocations from here...
3259         * modules/fnmatch (configure.ac): ... to here.
3260         * modules/fnmatch-gnu (configure.ac): ... and here.
3261
3262 2011-05-07  Bruno Haible  <bruno@clisp.org>
3263
3264         flock: Move AC_LIBOBJ invocations to module description.
3265         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
3266         invocations from here...
3267         * modules/flock (configure.ac): ... to here.
3268
3269 2011-05-07  Bruno Haible  <bruno@clisp.org>
3270
3271         fileblocks: Move AC_LIBOBJ invocations to module description.
3272         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
3273         gl_PREREQ_FILEBLOCKS invocations from here...
3274         * modules/fileblocks (configure.ac): ... to here.
3275
3276 2011-05-06  Bruno Haible  <bruno@clisp.org>
3277
3278         fflush: Move AC_LIBOBJ invocations to module description.
3279         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
3280         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
3281         invocations from here...
3282         * modules/fflush (configure.ac): ... to here.
3283
3284 2011-05-06  Bruno Haible  <bruno@clisp.org>
3285
3286         fdopendir: Move AC_LIBOBJ invocations to module description.
3287         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
3288         here...
3289         * modules/fdopendir (configure.ac): ... to here.
3290         (Depends-on): Improve conditions.
3291
3292 2011-05-06  Bruno Haible  <bruno@clisp.org>
3293
3294         _Exit: Move AC_LIBOBJ invocations to module description.
3295         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
3296         invocations from here...
3297         * modules/_Exit (configure.ac): ... to here.
3298
3299 2011-05-21  Bruno Haible  <bruno@clisp.org>
3300
3301         euidaccess: Respect rules for use of AC_LIBOBJ.
3302         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3303         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
3304         from here...
3305         * modules/euidaccess (configure.ac): ... to here.
3306
3307 2011-05-06  Bruno Haible  <bruno@clisp.org>
3308
3309         error: Move AC_LIBOBJ invocations to module description.
3310         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
3311         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
3312         invocations from here...
3313         * modules/error (configure.ac): ... to here.
3314
3315 2011-05-06  Bruno Haible  <bruno@clisp.org>
3316
3317         duplocale: Move AC_LIBOBJ invocations to module description.
3318         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
3319         gl_PREREQ_DUPLOCALE invocations from here...
3320         * modules/duplocale (configure.ac): ... to here.
3321
3322 2011-05-05  Bruno Haible  <bruno@clisp.org>
3323
3324         dirfd: Move AC_LIBOBJ invocations to module description.
3325         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
3326         gl_FUNC_DIRFD.
3327         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3328         here...
3329         * modules/dirfd (configure.ac): ... to here.
3330         (Depends-on): Fix condition.
3331
3332 2011-05-05  Bruno Haible  <bruno@clisp.org>
3333
3334         chown: Respect rules for use of AC_LIBOBJ.
3335         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3336         * modules/chown (configure.ac): ... to here.
3337
3338 2011-05-05  Bruno Haible  <bruno@clisp.org>
3339
3340         chdir-long: Move AC_LIBOBJ invocations to module description.
3341         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3342         gl_PREREQ_CHDIR_LONG invocations from here...
3343         * modules/chdir-long (configure.ac): ... to here.
3344
3345 2011-05-05  Bruno Haible  <bruno@clisp.org>
3346
3347         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3348         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3349         from here...
3350         * modules/canonicalize-lgpl (configure.ac): ... to here.
3351
3352 2011-05-05  Bruno Haible  <bruno@clisp.org>
3353
3354         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3355         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3356         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3357         REPLACE_CALLOC.
3358         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3359         * modules/calloc-gnu (configure.ac): Likewise.
3360
3361 2011-05-05  Bruno Haible  <bruno@clisp.org>
3362
3363         btowc: Move AC_LIBOBJ invocations to module description.
3364         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3365         invocations from here...
3366         * modules/btowc (configure.ac): ... to here.
3367
3368 2011-05-21  Bruno Haible  <bruno@clisp.org>
3369
3370         atexit: Move AC_LIBOBJ invocations to module description.
3371         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3372         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3373         here...
3374         * modules/atexit (configure.ac): ... to here.
3375
3376 2011-05-05  Bruno Haible  <bruno@clisp.org>
3377
3378         atoll: Move AC_LIBOBJ invocations to module description.
3379         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3380         invocations from here...
3381         * modules/atoll (configure.ac): ... to here.
3382
3383 2011-05-05  Bruno Haible  <bruno@clisp.org>
3384
3385         argz: Move AC_LIBOBJ invocations to module description.
3386         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3387         * modules/argz (configure.ac): ... to here.
3388
3389 2011-05-05  Bruno Haible  <bruno@clisp.org>
3390
3391         alphasort: Move AC_LIBOBJ invocations to module description.
3392         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3393         gl_PREREQ_ALPHASORT invocations from here...
3394         * modules/alphasort (configure.ac): ... to here.
3395
3396 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3397
3398         verify: new macro verify_expr; verify_true deprecated
3399         * NEWS: Mention this.
3400         * doc/verify.texi (Compile-time Assertions): Document this.
3401         * lib/verify.h (verify_true): Deprecate.
3402         (verify_expr): New macro.
3403         * tests/test-verify.c (function): Test verify_expr.
3404
3405 2011-06-14  Jim Meyering  <meyering@redhat.com>
3406
3407         init.sh: give more portable redirection-related advice in a comment
3408         * tests/init.sh (stderr_fileno_): Update the advice in comments.
3409         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
3410         for lots of discussion.  Stefano Lattarini suggested the solution
3411         of putting "9>&2" after the command.  Reported by Bruno Haible.
3412
3413 2011-06-13  Bruno Haible  <bruno@clisp.org>
3414
3415         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
3416         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
3417         'none'.
3418
3419 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3420
3421         ftoastr: use strtof only if HAVE_STRTOF
3422         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
3423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
3424         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
3425         * modules/ftoastr (configure.ac): Check for strtof.
3426
3427 2011-06-13  Bruno Haible  <bruno@clisp.org>
3428
3429         gnulib-tool: Addendum to 2011-06-08 commit.
3430         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
3431         and --witness-c-macro have been given, augment AM_CPPFLAGS.
3432
3433 2011-06-13  Bruno Haible  <bruno@clisp.org>
3434
3435         fseeko: Provide a non-inline replacement of fseek().
3436         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
3437         * modules/fseeko (Depends-on): Add fseek.
3438         * modules/fseek (License): Change to LGPLv2+.
3439
3440 2011-06-13  Bruno Haible  <bruno@clisp.org>
3441
3442         ftello: Provide a non-inline replacement of ftell().
3443         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
3444         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
3445         not have ftello() (such as on mingw).
3446         * modules/ftello (Depends-on): Add ftell.
3447         * modules/ftell (License): Change to LGPLv2+.
3448
3449 2011-05-07  Bruno Haible  <bruno@clisp.org>
3450
3451         ftell: Move AC_LIBOBJ invocations to module description.
3452         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
3453         * modules/ftell (configure.ac): ... to here.
3454
3455 2011-05-07  Bruno Haible  <bruno@clisp.org>
3456
3457         ftello: Respect rules for use of AC_LIBOBJ.
3458         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
3459         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
3460         here...
3461         * modules/ftello (configure.ac): ... to here.
3462
3463 2011-05-07  Bruno Haible  <bruno@clisp.org>
3464
3465         fseeko: Simplify.
3466         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
3467         (gl_FUNC_FSEEKO): Inline it here.
3468
3469 2011-05-07  Bruno Haible  <bruno@clisp.org>
3470
3471         fseek: Move AC_LIBOBJ invocations to module description.
3472         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
3473         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3474         * modules/fseek (configure.ac): ... to here.
3475
3476 2011-05-07  Bruno Haible  <bruno@clisp.org>
3477
3478         fseek: Respect rules for use of AC_LIBOBJ.
3479         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
3480         here...
3481         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
3482
3483 2011-05-07  Bruno Haible  <bruno@clisp.org>
3484
3485         fseeko: Respect rules for use of AC_LIBOBJ.
3486         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
3487         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
3488         here...
3489         * modules/fseeko (configure.ac): ... to here.
3490
3491 2011-06-13  Bruno Haible  <bruno@clisp.org>
3492
3493         gnulib-tool: Allow comments in the 'Depends-on' section.
3494         * doc/gnulib.texi (Module description): Mention comment syntax in the
3495         Depends-on section.
3496         * gnulib-tool (func_get_dependencies): Filter out comment lines.
3497
3498 2011-06-13  Bruno Haible  <bruno@clisp.org>
3499
3500         file-set.h: guard __attibute__ use, now that it's not always defined
3501         * lib/file-set.h (record_file): Use __attribute__ only with compiler
3502         versions that support it.  This fixes a coreutils build failure with
3503         the vendor cc on HP-UX 11.31.
3504
3505 2011-06-12  Bruno Haible  <bruno@clisp.org>
3506
3507         acl: Add support for HP-UX >= 11.11 JFS ACLs.
3508         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
3509         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
3510         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
3511         (acl, aclsort): New declarations.
3512         (aclv_nontrivial): New declaration.
3513         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
3514         (file_has_acl): Read also the second kind of HP-UX ACLs.
3515         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
3516         kind of HP-UX ACLs if the first kind fails.
3517         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
3518         second kind of HP-UX ACLs.
3519         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
3520         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
3521         agree.
3522         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3523         hpuxjfs.
3524         Handle hpuxjfs.
3525         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3526         hpuxjfs.
3527         Handle hpuxjfs.
3528         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3529         (func_test_same_acls): Use both lsacl and getacl.
3530         Handle hpuxjfs.
3531         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3532         (func_test_same_acls): Use both lsacl and getacl.
3533         Handle hpuxjfs.
3534
3535 2011-06-12  Bruno Haible  <bruno@clisp.org>
3536
3537         acl: Complete the 2010-08-10 fix.
3538         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
3539         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
3540         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
3541         explicitly.
3542         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
3543         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
3544
3545 2011-06-12  Bruno Haible  <bruno@clisp.org>
3546
3547         spawn-pipe tests: Comments.
3548         * tests/test-spawn-pipe-child.c (main): Update comment.
3549         Reported by James Youngman <jay@gnu.org>.
3550
3551 2011-06-11  James Youngman  <jay@gnu.org>
3552
3553         New module 'stat-size'.
3554         * modules/stat-size: New module.  Provides macros for accessing
3555         file size information in instances of struct stat.  Depends on the
3556         fileblocks module because it calls st_blocks.
3557         * lib/stat-size.h: New file, adapted from coreutils' system.h.
3558         * doc/gnulib.texi: Include stat-size.texi.
3559         * doc/stat-size.texi: Documentation for this module.
3560         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
3561         * m4/fileblocks.m4: Mention that stat-size depends on the call to
3562         AC_STRUCT_ST_BLOCKS.
3563
3564 2011-06-09  Bruno Haible  <bruno@clisp.org>
3565
3566         thread: Support pthreads-win32.
3567         * lib/glthread/thread.h (gl_thread_self): Define differently on
3568         pthreads-win32.
3569         (gl_null_thread): New declaration.
3570         (gl_thread_self_pointer): New macro.
3571         * lib/glthread/thread.c (gl_null_thread): New constant.
3572         * tests/test-lock.c: Use gl_thread_self_pointer instead of
3573         gl_thread_self.
3574         * tests/test-tls.c: Likewise.
3575         Suggested by Paul Eggert. Reported by Eric Blake.
3576
3577 2011-06-09  Bruno Haible  <bruno@clisp.org>
3578
3579         thread: Fix confusion between NULL and 0.
3580         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
3581         Reported by Paul Eggert.
3582
3583 2011-06-09  Bruno Haible  <bruno@clisp.org>
3584
3585         spawn-pipe tests: Avoid test failure on HP-UX 11.
3586         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
3587         is closed.
3588
3589 2011-06-09  Bruno Haible  <bruno@clisp.org>
3590
3591         acl tests: Fix compilation error on HP-UX 11.
3592         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
3593
3594 2011-06-09  Bruno Haible  <bruno@clisp.org>
3595
3596         rmdir: Avoid test failure on HP-UX 10.20.
3597         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
3598         EEXIST.
3599
3600 2011-06-08  Eric Blake  <eblake@redhat.com>
3601
3602         perror: fix test on mingw
3603         * modules/perror-tests (Depends-on): Add dup2.
3604
3605         strerror_r-posix: fix on MacOS
3606         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
3607         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
3608         logic bug.
3609         * lib/strerror_r.c (strerror_r): Fix the bug.
3610         * lib/strerror.c (strerror): Likewise.
3611         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3612         problem.
3613         * doc/posix-functions/strerror.texi (strerror): Likewise.
3614         * doc/posix-functions/perror.texi (perror): Likewise.
3615         * tests/test-strerror.c (main): Enhance test.
3616         * tests/test-strerror_r.c (main): Likewise.
3617
3618 2011-06-08  Bruno Haible  <bruno@clisp.org>
3619
3620         gnulib-tool: Better isolation between different gnulib-tool invocations.
3621         * gnulib-tool: New option --witness-c-macro.
3622         (witness_c_macro): New variable.
3623         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
3624         AM_CPPFLAGS define it as a C macro.
3625         (func_emit_tests_Makefile_am): Likewise.
3626         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
3627         read it from there.
3628         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
3629         m4_define, not AC_DEFUN.
3630         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
3631         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
3632         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
3633         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
3634         s|...|...|, to substitute the values of the GNULIB_* module indicator
3635         variables.
3636         * modules/dirent (Makefile.am): Likewise.
3637         * modules/fcntl-h (Makefile.am): Likewise.
3638         * modules/iconv-h (Makefile.am): Likewise.
3639         * modules/langinfo (Makefile.am): Likewise.
3640         * modules/locale (Makefile.am): Likewise.
3641         * modules/math (Makefile.am): Likewise.
3642         * modules/netdb (Makefile.am): Likewise.
3643         * modules/poll-h (Makefile.am): Likewise.
3644         * modules/pty (Makefile.am): Likewise.
3645         * modules/search (Makefile.am): Likewise.
3646         * modules/signal (Makefile.am): Likewise.
3647         * modules/spawn (Makefile.am): Likewise.
3648         * modules/stdio (Makefile.am): Likewise.
3649         * modules/stdlib (Makefile.am): Likewise.
3650         * modules/string (Makefile.am): Likewise.
3651         * modules/sys_ioctl (Makefile.am): Likewise.
3652         * modules/sys_select (Makefile.am): Likewise.
3653         * modules/sys_socket (Makefile.am): Likewise.
3654         * modules/sys_stat (Makefile.am): Likewise.
3655         * modules/sys_times (Makefile.am): Likewise.
3656         * modules/sys_utsname (Makefile.am): Likewise.
3657         * modules/sys_wait (Makefile.am): Likewise.
3658         * modules/termios (Makefile.am): Likewise.
3659         * modules/time (Makefile.am): Likewise.
3660         * modules/unistd (Makefile.am): Likewise.
3661         * modules/wchar (Makefile.am): Likewise.
3662
3663 2011-06-08  Eric Blake  <eblake@redhat.com>
3664
3665         strerror: simplify replacement
3666         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
3667         * modules/strerror (configure.ac): No prereqs needed here...
3668         * modules/strerror-override (configure.ac): ...but this needs it.
3669         (Files): Add file for needed prereq macro.
3670
3671 2011-06-08  Bruno Haible  <bruno@clisp.org>
3672
3673         strerror_r-posix: Tweaks.
3674         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
3675         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
3676         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
3677         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
3678         (gl_FUNC_STRERROR_R): ... to here.
3679         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
3680
3681 2011-06-07  Eric Blake  <eblake@redhat.com>
3682
3683         perror: document fixed bugs
3684         * doc/posix-functions/perror.texi (perror): Document recent
3685         patches.
3686
3687 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3688
3689         stat-time: get_stat_birthtime failure is better-defined
3690         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
3691         return a timestamp whose tv_sec and tv_nsec values are both -1.
3692         Previously, the spec said only that the tv_nsec value was negative.
3693         This upward-compatible change simplifies GNU tar a bit.
3694
3695 2011-06-07  Eric Blake  <eblake@redhat.com>
3696
3697         strerror_r-posix: work around cygwin 1.7.9
3698         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
3699         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
3700         bug without replacing strerror_r.
3701         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
3702         strerror_r is buggy, but without requiring strerror_r compilation.
3703         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
3704
3705         test-perror: relax test to ignore cygwin bug
3706         * tests/test-perror2.c (main): Relax test on requiring detection
3707         of stream errors, and use unbuffered stream.
3708         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
3709         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
3710         * doc/posix-functions/fputc.texi (fputc): Likewise.
3711         * doc/posix-functions/fputs.texi (fputs): Likewise.
3712         * doc/posix-functions/fputws.texi (fputws): Likewise.
3713         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
3714         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
3715         * doc/posix-functions/getopt.texi (getopt): Likewise.
3716         * doc/posix-functions/perror.texi (perror): Likewise.
3717         * doc/posix-functions/printf.texi (printf): Likewise.
3718         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
3719         * doc/posix-functions/psignal.texi (psignal): Likewise.
3720         * doc/posix-functions/putc.texi (putc): Likewise.
3721         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
3722         Likewise.
3723         * doc/posix-functions/putchar.texi (putchar): Likewise.
3724         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
3725         Likewise.
3726         * doc/posix-functions/puts.texi (puts): Likewise.
3727         * doc/posix-functions/putwc.texi (putwc): Likewise.
3728         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
3729         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
3730         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3731         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
3732         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3733         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
3734         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
3735         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
3736
3737 2011-05-22  Bruno Haible  <bruno@clisp.org>
3738
3739         strerror: Move AC_LIBOBJ invocations to module description.
3740         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
3741         gl_PREREQ_STRERROR invocations from here...
3742         * modules/strerror (configure.ac): ... to here.
3743
3744 2011-05-21  Bruno Haible  <bruno@clisp.org>
3745
3746         perror: Use common idiom.
3747         * modules/perror (configure.ac): Reorder statements.
3748
3749 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3750
3751         tests: fix usage message in 'mktempd_'
3752         * tests/init.sh (mktempd_): In the usage message, use literal
3753         'mktempd_', not '$ME' (which is even undefined), as the name of
3754         the subroutine.
3755
3756 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3757
3758         tests init: new function 'fatal_', for hard errors
3759         Before this patch, the only way offered by tests/init.sh to
3760         properly signal a hard error was the `framework_failure_'
3761         function.  But the error message issued by that function,
3762         as its name would suggest, refers to a set-up failure in the
3763         testsuite, while hard errors can obviously also be due to
3764         other reasons.  The best way to fix this inconsistency is to
3765         introduce a new function with a more general error message.
3766         * tests/init.sh (fatal_): New function.
3767
3768 2011-06-06  Eric Blake  <eblake@redhat.com>
3769
3770         canonicalize-lgpl: use common idiom
3771         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
3772         over newer POSIX -Rf.
3773         Reported by Bruno Haible.
3774
3775         canonicalize-lgpl: work around AIX realpath bug
3776         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
3777         * doc/posix-functions/realpath.texi (realpath): Document it.
3778         Reported by Bruno Haible.
3779
3780         strerror: work around FreeBSD bug
3781         * lib/strerror.c (strerror): Special case 0.
3782         Reported by Bruno Haible.
3783
3784         strerror-override: avoid bloating errno module
3785         * modules/errno (Files, configure.ac): Move replacement strings...
3786         * modules/strerror-override: ...to new module.
3787         * modules/strerror (Depends-on): Add strerror-override.
3788         * modules/strerror_r-posix (Depends-on): Likewise.
3789         * MODULES.html.sh: Document new module.
3790         Reported by Bruno Haible.
3791
3792 2011-06-06  Bruno Haible  <bruno@clisp.org>
3793
3794         spawn-pipe tests: Rename program.
3795         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
3796         * tests/test-spawn-pipe-child.c: Update comment.
3797         * tests/test-spawn-pipe.sh: Update.
3798         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
3799
3800         spawn-pipe tests: Link the child program only against libc.
3801         * tests/test-spawn-pipe-child.c: New file, extracted from
3802         tests/test-spawn-pipe.c.
3803         (main): Expect only one argument.
3804         (is_open): New function, copied from tests/test-pipe.c.
3805         * tests/test-spawn-pipe.c: Don't include <errno.h>.
3806         (child_main): Remove function.
3807         (test_pipe): Pass only one argument to the child program.
3808         (main): Remove child process code. Expect the child program's name as
3809         first argument.
3810         * tests/test-spawn-pipe.sh: Pass the child program's name as first
3811         argument.
3812         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
3813         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
3814         test-spawn-pipe-child against no libraries.
3815
3816 2011-06-06  Bruno Haible  <bruno@clisp.org>
3817
3818         careadlinkat: Avoid mismatch between ssize_t and int.
3819         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
3820         * lib/careadlinkat.c (careadlinkatcwd): Define always.
3821
3822 2011-06-06  Jim Meyering  <meyering@redhat.com>
3823
3824         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
3825         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
3826         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
3827
3828 2011-06-05  Bruno Haible  <bruno@clisp.org>
3829
3830         ansi-c++-opt: Interoperability with libtool.
3831         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
3832         set the variable to "no", not to ":".
3833         * NEWS: Mention the change.
3834
3835 2011-06-05  Bruno Haible  <bruno@clisp.org>
3836
3837         acl: Fix test failure on AIX 7.
3838         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
3839         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
3840
3841 2011-06-05  Bruno Haible  <bruno@clisp.org>
3842
3843         pipe-filter-ii: Fix test failure on AIX and IRIX.
3844         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
3845         with EAGAIN, retry with a smaller buffer size.
3846
3847 2011-06-05  Bruno Haible  <bruno@clisp.org>
3848
3849         localename: Fix link dependencies.
3850         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
3851         * modules/localename-tests (Makefile.am): Link test-localename with
3852         $(LIBTHREAD).
3853
3854 2011-06-05  Bruno Haible  <bruno@clisp.org>
3855
3856         error: Avoid gcc warning.
3857         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
3858
3859 2011-06-05  Bruno Haible  <bruno@clisp.org>
3860
3861         unsetenv: Avoid gcc warning.
3862         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
3863
3864 2011-06-05  Bruno Haible  <bruno@clisp.org>
3865
3866         setenv: Avoid gcc warning.
3867         * lib/setenv.c (setenv): Provide declaration if system lacks it.
3868
3869 2011-06-05  Bruno Haible  <bruno@clisp.org>
3870
3871         sys_select: Ensure memset is declared also on AIX 7.
3872         * lib/sys_select.in.h: Include <string.h> also on AIX.
3873         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
3874         self-contained also on AIX 7.1.
3875
3876 2011-06-04  Jim Meyering  <meyering@redhat.com>
3877
3878         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
3879         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
3880         function name, "error".
3881         (_gl_translatable_diag_func_re): New configurable variable.
3882
3883 2011-06-04  Bruno Haible  <bruno@clisp.org>
3884
3885         getopt: Avoid gcc warning.
3886         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
3887
3888 2011-06-04  Bruno Haible  <bruno@clisp.org>
3889
3890         strerror_r: Fix comments.
3891         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
3892         commit.
3893
3894 2011-06-04  Bruno Haible  <bruno@clisp.org>
3895
3896         perror: Fix compilation error.
3897         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
3898         Undefine fprintf, not sprintf.
3899         * modules/perror (Depends-on): Remove intprops, verify.
3900
3901 2011-06-04  Bruno Haible  <bruno@clisp.org>
3902
3903         setlocale: Enable replacement on Cygwin 1.5.
3904         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
3905         Cygwin 1.5.x.
3906         * doc/posix-functions/setlocale.texi: Mention that the problem with the
3907         LC_CTYPE category also exists on Cygwin 1.5.x.
3908
3909 2011-06-04  Bruno Haible  <bruno@clisp.org>
3910
3911         strerror-override: Don't disable symbol renamings.
3912         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
3913         * lib/strerror-override.c: Include config.h.
3914         (strerror_override): Don't undefine.
3915
3916 2011-06-03  Bruno Haible  <bruno@clisp.org>
3917
3918         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
3919         * lib/localename.h: Update copyright header.
3920         * lib/localename.c: Likewise.
3921         * lib/relocatable.h: Likewise.
3922         * lib/relocatable.c: Likewise.
3923
3924 2011-06-02  Bruno Haible  <bruno@clisp.org>
3925
3926         doc: Fix a module name.
3927         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
3928
3929 2011-06-02  Bruno Haible  <bruno@clisp.org>
3930
3931         pipe2: Remove dependency on 'nonblocking' module.
3932         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
3933         O_NONBLOCK is defined by gnulib.
3934         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
3935         is zero.
3936         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
3937         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
3938         defined by gnulib.
3939         (get_nonblocking_flag): New function.
3940         (main): Test O_NONBLOCK flag only if it is nonzero.
3941         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
3942
3943 2011-06-03  Jim Meyering  <meyering@redhat.com>
3944
3945         maint: three new prohibit-header-without-use rules
3946         Prohibit use of cloexec.h, posixver.h, same.h without use.
3947         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
3948         (sc_prohibit_posixver_without_use): Likewise.
3949         (sc_prohibit_same_without_use): Likewise.
3950
3951 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
3952
3953         allocator: 'die' routine is now given requested size
3954         * lib/allocator.h (struct allocator.die): New size arg.
3955         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
3956         If the actual problem is an ssize_t limitation, not a size_t or
3957         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
3958
3959 2011-06-01  Eric Blake  <eblake@redhat.com>
3960
3961         strerror: drop strerror_r dependency
3962         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
3963         * lib/strerror-override.c (strerror_override): ...to new file.
3964         * lib/strerror-override.h: Add prototype.
3965         * lib/strerror-impl.h: Delete.
3966         * lib/strerror.c (strerror): New implementation.
3967         * modules/errno (Files): Add new files.
3968         (configure.ac): Compile new file as appropriate.
3969         * modules/strerror (Files): Drop unused file.
3970         (Depends-on): Drop strerror_r-posix.
3971         * MODULES.html.sh: Document strerror_r-posix.
3972         Requested by Sam Steingold.
3973
3974         perror: call strerror_r directly
3975         * modules/perror (Files): Drop strerror-impl.h.
3976         * lib/perror.c (perror): Use our own stack buffer, rather than
3977         calling a wrapper that uses static storage.
3978         * doc/posix-functions/perror.texi (perror): Document a limitation
3979         of our replacement.
3980
3981         strerror_r: fix includes for FreeBSD
3982         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
3983         since we use abort on some platforms.
3984         Reported by Matthias Bolte.
3985
3986 2011-05-31  Bruno Haible  <bruno@clisp.org>
3987
3988         Fix link errors in tests: openat-die uses gettext-h.
3989         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
3990         against $(LIBINTL).
3991         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
3992         against $(LIBINTL).
3993         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
3994         $(LIBINTL).
3995         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
3996         against $(LIBINTL).
3997         * modules/linkat-tests (Makefile.am): Link test-linkat against
3998         $(LIBINTL).
3999         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
4000         $(LIBINTL).
4001         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
4002         against $(LIBINTL).
4003         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
4004         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
4005         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
4006         $(LIBINTL).
4007         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
4008         $(LIBINTL).
4009         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
4010         $(LIBINTL).
4011         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4012
4013 2011-05-31  Bruno Haible  <bruno@clisp.org>
4014
4015         Fix link errors in tests: wait-process uses gettext-h.
4016         * modules/nonblocking-pipe-tests (Makefile.am): Set
4017         test_nonblocking_pipe_main_LDADD.
4018         * modules/nonblocking-socket-tests (Makefile.am): Link
4019         test-nonblocking-socket-main against $(LIBINTL).
4020         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4021
4022 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4023
4024         assert-h: work around 'verify' incompatibility
4025         * lib/verify.h: Use @...@ directives, not ifdef.
4026         * modules/assert-h (assert.h): Implement the directives.
4027         (assert.h): Substitute the symbol-prefix more consistently.
4028
4029 2011-05-29  Jim Meyering  <meyering@redhat.com>
4030
4031         trim: remove three superfluous assignments
4032         * lib/trim.c (trim2): Remove three superfluous assignments
4033         and correct brace positioning.
4034
4035 2011-05-29  Bruno Haible  <bruno@clisp.org>
4036
4037         wctype-h: Avoid namespace pollution on Solaris 2.6.
4038         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4039         identifiers.
4040         * doc/posix-headers/wctype.texi: Mention the problem.
4041         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4042
4043 2011-05-28  Jim Meyering  <meyering@redhat.com>
4044
4045         parse-datetime.y: accommodate -Wstrict-overflow
4046         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4047         placate -Wstrict-overflow.
4048
4049         trim: avoid a warning from -O2 -Wstrict-overflow
4050         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4051
4052 2011-05-29  Bruno Haible  <bruno@clisp.org>
4053
4054         gnulib-tool: Fix bug in yesterday's commit.
4055         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4056         twice.
4057
4058 2011-05-29  Bruno Haible  <bruno@clisp.org>
4059
4060         Allow multiple gnulib generated include files to be combined.
4061         * gnulib-tool (func_compute_include_guard_prefix): New function.
4062         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4063         ${gl_include_guard_prefix} references.
4064         (func_import, func_create_testdir): Invoke
4065         func_compute_include_guard_prefix.
4066         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4067         * lib/ctype.in.h: Likewise.
4068         * lib/dirent.in.h: Likewise.
4069         * lib/errno.in.h: Likewise.
4070         * lib/fcntl.in.h: Likewise.
4071         * lib/float.in.h: Likewise.
4072         * lib/getopt.in.h: Likewise.
4073         * lib/iconv.in.h: Likewise.
4074         * lib/langinfo.in.h: Likewise.
4075         * lib/locale.in.h: Likewise.
4076         * lib/math.in.h: Likewise.
4077         * lib/netdb.in.h: Likewise.
4078         * lib/netinet_in.in.h: Likewise.
4079         * lib/poll.in.h: Likewise.
4080         * lib/pthread.in.h: Likewise.
4081         * lib/pty.in.h: Likewise.
4082         * lib/sched.in.h: Likewise.
4083         * lib/se-selinux.in.h: Likewise.
4084         * lib/search.in.h: Likewise.
4085         * lib/signal.in.h: Likewise.
4086         * lib/spawn.in.h: Likewise.
4087         * lib/stdarg.in.h: Likewise.
4088         * lib/stddef.in.h: Likewise.
4089         * lib/stdint.in.h: Likewise.
4090         * lib/stdio.in.h: Likewise.
4091         * lib/stdlib.in.h: Likewise.
4092         * lib/string.in.h: Likewise.
4093         * lib/strings.in.h: Likewise.
4094         * lib/sys_file.in.h: Likewise.
4095         * lib/sys_ioctl.in.h: Likewise.
4096         * lib/sys_select.in.h: Likewise.
4097         * lib/sys_socket.in.h: Likewise.
4098         * lib/sys_stat.in.h: Likewise.
4099         * lib/sys_time.in.h: Likewise.
4100         * lib/sys_times.in.h: Likewise.
4101         * lib/sys_uio.in.h: Likewise.
4102         * lib/sys_utsname.in.h: Likewise.
4103         * lib/sys_wait.in.h: Likewise.
4104         * lib/sysexits.in.h: Likewise.
4105         * lib/termios.in.h: Likewise.
4106         * lib/time.in.h: Likewise.
4107         * lib/unistd.in.h: Likewise.
4108         * lib/wchar.in.h: Likewise.
4109         * lib/wctype.in.h: Likewise.
4110         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4111         * modules/ctype (Makefile.am): Likewise.
4112         * modules/dirent (Makefile.am): Likewise.
4113         * modules/errno (Makefile.am): Likewise.
4114         * modules/fcntl-h (Makefile.am): Likewise.
4115         * modules/float (Makefile.am): Likewise.
4116         * modules/getopt-posix (Makefile.am): Likewise.
4117         * modules/iconv-h (Makefile.am): Likewise.
4118         * modules/langinfo (Makefile.am): Likewise.
4119         * modules/locale (Makefile.am): Likewise.
4120         * modules/math (Makefile.am): Likewise.
4121         * modules/netdb (Makefile.am): Likewise.
4122         * modules/netinet_in (Makefile.am): Likewise.
4123         * modules/poll-h (Makefile.am): Likewise.
4124         * modules/pthread (Makefile.am): Likewise.
4125         * modules/pty (Makefile.am): Likewise.
4126         * modules/sched (Makefile.am): Likewise.
4127         * modules/search (Makefile.am): Likewise.
4128         * modules/selinux-h (Makefile.am): Likewise.
4129         * modules/signal (Makefile.am): Likewise.
4130         * modules/spawn (Makefile.am): Likewise.
4131         * modules/stdarg (Makefile.am): Likewise.
4132         * modules/stddef (Makefile.am): Likewise.
4133         * modules/stdint (Makefile.am): Likewise.
4134         * modules/stdio (Makefile.am): Likewise.
4135         * modules/stdlib (Makefile.am): Likewise.
4136         * modules/string (Makefile.am): Likewise.
4137         * modules/strings (Makefile.am): Likewise.
4138         * modules/sys_file (Makefile.am): Likewise.
4139         * modules/sys_ioctl (Makefile.am): Likewise.
4140         * modules/sys_select (Makefile.am): Likewise.
4141         * modules/sys_socket (Makefile.am): Likewise.
4142         * modules/sys_stat (Makefile.am): Likewise.
4143         * modules/sys_time (Makefile.am): Likewise.
4144         * modules/sys_times (Makefile.am): Likewise.
4145         * modules/sys_uio (Makefile.am): Likewise.
4146         * modules/sys_utsname (Makefile.am): Likewise.
4147         * modules/sys_wait (Makefile.am): Likewise.
4148         * modules/sysexits (Makefile.am): Likewise.
4149         * modules/termios (Makefile.am): Likewise.
4150         * modules/time (Makefile.am): Likewise.
4151         * modules/unistd (Makefile.am): Likewise.
4152         * modules/wchar (Makefile.am): Likewise.
4153         * modules/wctype-h (Makefile.am): Likewise.
4154         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4155
4156 2011-05-29  Bruno Haible  <bruno@clisp.org>
4157
4158         assert-h: Allow multiple gnulib generated replacements to coexist.
4159         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4160
4161 2011-05-29  Bruno Haible  <bruno@clisp.org>
4162
4163         argp: Allow coexistence with strerror_r-posix module.
4164         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4165         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4166         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4167         not the glibc signature.
4168
4169 2011-05-28  Bruno Haible  <bruno@clisp.org>
4170
4171         gnulib-tool: Alternative structure of testdirs, similar to --import.
4172         * gnulib-tool: New option --single-configure.
4173         (func_usage): Document it.
4174         (single_configure): New variable.
4175         (func_modules_transitive_closure_separately,
4176         func_modules_transitive_closure_separately,
4177         func_determine_use_libtests, func_modules_add_dummy_separately,
4178         func_modules_to_filelist_separately): New functions, extracted from
4179         func_import.
4180         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4181         (func_import): Use the new functions.
4182         (func_create_testdir): Set final_modules. Handle $single_configure =
4183         true case.
4184
4185 2011-05-28  Bruno Haible  <bruno@clisp.org>
4186
4187         getloadavg: Remove an unreliable safety check.
4188         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4189         getloadavg.c is in place.
4190         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4191         Reported by Sam Steingold <sds@gnu.org>.
4192
4193 2011-05-28  Bruno Haible  <bruno@clisp.org>
4194
4195         doc: Cleanup yet another file produced by texinfo.tex.
4196         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4197
4198 2011-05-28  Bruno Haible  <bruno@clisp.org>
4199
4200         Finish the conditional dependencies mechanism.
4201         * gnulib-tool: New option --no-conditional-dependencies.
4202         (func_usage): Document it. Don't mark --conditional-dependencies as
4203         experimental.
4204         (cond_dependencies): The possible values can now be true, false, empty.
4205         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4206         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4207         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4208
4209 2011-05-28  Bruno Haible  <bruno@clisp.org>
4210
4211         doc: Use a recent texinfo.tex.
4212         * doc/Makefile (tex_opts): New variable.
4213         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4214
4215 2011-05-28  Jim Meyering  <meyering@redhat.com>
4216
4217         intprops.h: adjust comment to match code change
4218         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4219         only once, it *may* have side effects.  Also fix an unrelated typo.
4220         (_GL_INT_SIGNED): Likewise.
4221
4222 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4223
4224         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4225
4226 2011-05-26  Bruno Haible  <bruno@clisp.org>
4227
4228         mbsrchr: Avoid collision with system function on Interix.
4229         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4230         Reported by Markus Duft <mduft@gentoo.org>.
4231
4232 2011-05-15  James Youngman  <jay@gnu.org>
4233
4234         getopt: for ambiguous options, enumerate the possibilities.
4235         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4236         the ambiguous options when an ambiguous prefix is given. This was
4237         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
4238         glibc change was
4239         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
4240
4241 2011-05-25  Eric Blake  <eblake@redhat.com>
4242
4243         getcwd: work around mingw bug
4244         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
4245         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4246         Reported by Matthias Bolte.
4247
4248 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4249
4250         test-intprops: disable -Wtype-limits diagnostics
4251         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
4252         diagnostics.  Otherwise, the integer overflow macros generate many
4253         diagnostics.  Reported by Jim Meyering in
4254         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4255
4256         intprops: shorten, to pacify gcc -Woverlength-strings
4257         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
4258         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
4259         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
4260         likely to run afoul of C compiler limits for string constant lengths.
4261         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4262
4263 2011-05-24  Eric Blake  <eblake@redhat.com>
4264
4265         docs: document recently fixed glibc printf bug
4266         * doc/posix-functions/fprintf.texi (fprintf): Document it.
4267         * doc/posix-functions/printf.texi (printf): Likewise.
4268         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4269         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4270
4271         closein-tests: convert to init.sh
4272         * modules/closein-tests (Files): Add init.sh
4273         * tests/test-closein.sh Use it.
4274
4275         yesno-tests: convert to init.sh
4276         * modules/yesno-tests (Files): Add init.sh.
4277         * tests/test-yesno.sh: Use it.
4278
4279         atexit-tests: ensure reliable exit status
4280         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
4281         Reported by Bruno Haible.
4282
4283 2011-05-24  Bruno Haible  <bruno@clisp.org>
4284
4285         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
4286         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
4287         gl_PREREQ_STRERROR_R invocations from here...
4288         * modules/strerror_r-posix (configure.ac): ... to here.
4289
4290 2011-05-24  Eric Blake  <eblake@redhat.com>
4291
4292         strerror_r: fix missing header
4293         * lib/strerror_r.c: Avoid compiler warning about snprintf.
4294
4295         strerror_r: fix AIX test failures
4296         * lib/strerror_r.c (strerror_r): Convert silent truncation to
4297         ERANGE failure.
4298
4299         strerror_r: fix Solaris test failures
4300         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
4301         failures.
4302         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4303
4304         strerror_r: enforce POSIX recommendations
4305         * lib/strerror_r.c (safe_copy): New helper method.
4306         (strerror_r): Guarantee a non-empty string.
4307         * tests/test-strerror_r.c (main): Enhance tests to incorporate
4308         recent POSIX rulings and to match our strerror guarantees.
4309         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4310
4311 2011-05-24  Jim Meyering  <meyering@redhat.com>
4312
4313         test-perror2.c: avoid warning about unused variable
4314         * tests/test-perror2.c (main): Remove declaration of unused "fp".
4315
4316 2011-05-24  Eric Blake  <eblake@redhat.com>
4317
4318         perror: avoid spurious test failure on HP-UX
4319         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
4320
4321         tests: fix logic bug in init.sh
4322         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
4323         shell.
4324
4325 2011-05-24  Jim Meyering  <meyering@redhat.com>
4326
4327         utimensat: do not reference an out-of-scope buffer
4328         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4329         declared in an inner scope, yet "times" would be dereferenced outside
4330         the scope in which "ts" was valid.
4331         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4332         of ts[2] "out/up", so that the use of aliased "times" (via
4333         "times = ts;") does not end up referencing an out-of-scope "ts"
4334
4335         opendir-safer.c: don't clobber errno; don't close negative FD
4336         * lib/opendir-safer.c (opendir_safer):
4337         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4338         file descriptor, and more importantly, don't clobber the
4339         offending errno value with EINVAL.  Before, upon failure
4340         of dup_safer, we would pass the negative file descriptor to
4341         fdopendir, which would clobber errno.
4342
4343 2011-05-23  Bruno Haible  <bruno@clisp.org>
4344
4345         idcache: Fix module description.
4346         * modules/idcache (Include): Set to "idcache.h".
4347
4348 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4349
4350         gnulib-tool: fix portability problem with MacOS sed
4351         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4352         before the "}".  Problem reported by Leo in
4353         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4354         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4355         sed_extract_condition1, sed_extract_condition2.
4356
4357 2011-05-23  Bruno Haible  <bruno@clisp.org>
4358
4359         hash: Simplify autoconf macro.
4360         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4361
4362 2011-05-23  Bruno Haible  <bruno@clisp.org>
4363
4364         getugroups: Fix module description.
4365         * modules/getugroups (Include): Set to "getugroups.h".
4366
4367 2011-05-23  Bruno Haible  <bruno@clisp.org>
4368
4369         linkat: Simplify autoconf macro.
4370         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4371
4372 2011-05-23  Bruno Haible  <bruno@clisp.org>
4373             Eric Blake  <eblake@redhat.com>
4374
4375         linkat, renameat: Update dependencies.
4376         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4377         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4378         symlinkat.
4379
4380 2011-05-23  Jim Meyering  <meyering@redhat.com>
4381
4382         maint.mk: more tight_scope improvements
4383         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4384         (_gl_TS_headers): Define only in if-0'd block.
4385         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4386         sometimes we must *not* use it.  Adjust uses accordingly.
4387         (sc_tight_scope): Use much simpler grep-based test to determine
4388         whether we skip this rule.
4389
4390         maint.mk: generalize/improve the tight-scope rule
4391         * top/maint.mk: Emit a warning when the test is skipped.
4392         (_gl_TS_dir): Add $(srcdir)/ prefix.
4393         (_gl_TS_function_match): Simplify, rather than trying
4394         to enumerate common types.  Otherwise, it would fail to match an
4395         "extern unsigned char const *" declaration in idutils.
4396         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4397         a way to support use of that type of macro.
4398         (_gl_TS_var_match): Simplify regexp.
4399         (_gl_TS_obj_files): New configurable variable.
4400         (_gl_TS_headers): Likewise.
4401
4402 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4403
4404         verify: fix bug when gnulib <assert.h> is also included
4405         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
4406         is defined, not if _GL_STATIC_ASSERT_H is not defined.
4407         Perhaps there's a better way, but this fixes the immediate problem.
4408         Problem reported by Bruno Haible in
4409         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
4410
4411 2011-05-22  Bruno Haible  <bruno@clisp.org>
4412
4413         xgetcwd: Simplify autoconf macro.
4414         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
4415
4416 2011-05-22  Bruno Haible  <bruno@clisp.org>
4417
4418         New module 'mktime-internal'.
4419         * modules/mktime-internal: New file.
4420         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
4421         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
4422         mktime_internal as a C macro if libc has __mktime_internal.
4423         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
4424         conditions.
4425         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
4426
4427 2011-05-22  Bruno Haible  <bruno@clisp.org>
4428
4429         timegm: Correct mktime replacement statements.
4430         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
4431         defining mktime as a C macro. This completes a 2009-07-28 commit.
4432
4433 2011-05-22  Bruno Haible  <bruno@clisp.org>
4434
4435         timegm: Simplify autoconf macro.
4436         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
4437
4438 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4439
4440         clock-time: change to LGPLv2+.
4441         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
4442         BSD-like but we have no mark for that; this is good enough for now.
4443
4444 2011-05-21  Bruno Haible  <bruno@clisp.org>
4445
4446         strerror_r: Fix comments.
4447         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
4448
4449 2011-05-21  Bruno Haible  <bruno@clisp.org>
4450
4451         relocatable-prog-wrapper: Fix possible link error.
4452         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
4453         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
4454         (gl_FUNC_SETENV): ... to here.
4455         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
4456         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
4457
4458 2011-05-21  Bruno Haible  <bruno@clisp.org>
4459
4460         relocatable-prog-wrapper: Assume strerror() exists.
4461         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
4462         m4/strerror.m4.
4463         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
4464         * lib/relocwrapper.c: Remove mention of strerror module.
4465         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
4466         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
4467         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
4468         C macro.
4469
4470 2011-05-21  Bruno Haible  <bruno@clisp.org>
4471
4472         select: Simplify replacement idiom.
4473         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
4474         Win32 platforms.
4475         * lib/sys_select.in.h (select): Simplify accordingly.
4476         * modules/select (Depends-on): Likewise.
4477
4478 2011-05-21  Bruno Haible  <bruno@clisp.org>
4479
4480         mkdir-p: Simplify autoconf macro.
4481         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
4482         gl_FUNC_LCHOWN.
4483
4484 2011-05-21  Eric Blake  <eblake@redhat.com>
4485
4486         strerror_r: avoid clobbering strerror on cygwin
4487         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
4488         fall back instead to sys_errlist.
4489         * modules/strerror (configure.ac): Add witness.
4490         * tests/test-strerror_r.c (main): Enhance test.
4491         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4492         * tests/test-perror2.c (main): Free memory before exit.
4493
4494 2011-05-21  Bruno Haible  <bruno@clisp.org>
4495
4496         mkdtemp: Use gnulib naming conventions.
4497         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
4498         * modules/mkdtemp (configure.ac): Update.
4499
4500 2011-05-20  Eric Blake  <eblake@redhat.com>
4501
4502         strerror_r: avoid corrupting errno on Solaris
4503         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
4504         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4505
4506         strerror_r: avoid compiler warning
4507         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
4508
4509         strerror_r: simplify AIX code
4510         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
4511
4512         test-perror: avoid spurious failure on FreeBSD
4513         * modules/perror-tests (Depends-on): Add strerror, now that
4514         strerror_r no longer pulls it in.
4515
4516 2011-05-20  Bruno Haible  <bruno@clisp.org>
4517
4518         strerror_r-posix: Remove unused dependencies.
4519         * modules/strerror_r-posix (Depends-on): Remove strerror.
4520         Reported by Eric Blake.
4521
4522 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
4523
4524         intprops: remove assumption about A|B representation
4525         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
4526         is a valid integer if both A and B are.  Although this is true for
4527         all known practical hosts, the C standard doesn't guarantee it,
4528         and the code need not assume it.  Also, this change may work around
4529         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
4530         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
4531
4532 2011-05-20  Eric Blake  <eblake@redhat.com>
4533
4534         perror: work around FreeBSD bug
4535         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
4536         is broken.  Move AC_LIBOBJ...
4537         * modules/perror (configure.ac): Here.
4538         * doc/posix-functions/perror.texi (perror): Document this.
4539         * tests/test-perror2.c (main): Enhance test.
4540
4541         test-perror: check for strerror interactions
4542         * tests/macros.h (STREQ): Add macro.
4543         * modules/perror-tests (Files): Add second test.
4544         * tests/test-perror2.c (main): New file.
4545         * doc/posix-functions/perror.texi (perror): Document glibc bug.
4546
4547         test-perror: rewrite to use init script
4548         * modules/perror-tests (Files): Add init.sh.
4549         * tests/test-perror.sh: Use temporary directory.
4550
4551 2011-05-20  Jim Meyering  <meyering@redhat.com>
4552
4553         maint: replace misused "a" with "an"
4554         * doc/intprops.texi: "a integer"
4555         * doc/regex.texi: "a explanation"
4556         * lib/alignof.h: "a object"
4557         * lib/argmatch.h: "a explanation"
4558         * lib/argp-help.c: "a option" and "a OPTION_DOC"
4559         * lib/stdint.in.h: "a integer"
4560         * lib/userspec.c: "a owner"
4561         * doc/gnulib.texi: Fix "a idea", and reword.
4562
4563 2011-05-19  Jim Meyering  <meyering@redhat.com>
4564
4565         maint: correct misuse of "a" and "an"
4566         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
4567         * lib/argp-help.c: "an docum...": s/an/a/
4568         * lib/argp-parse.c: "An vector": s/An/A/
4569         * lib/execute.c: "an native": s/an/a/
4570         * lib/spawn-pipe.c: Likewise.
4571         * lib/gc.h: "an Gc_rc": s/an/a/
4572         * lib/unigbrk.in.h: "an grapheme": s/an/a/
4573         * lib/fts.c: "an stat.st_dev": s/an/a/
4574
4575 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4576
4577         intprops-tests: work around HP-UX 11.23 cc bug with constants
4578         * tests/test-intprops.c (VERIFY): New macro.
4579         (main): Use it, instead of verify, to work around the compiler bug; see
4580         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4581
4582         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
4583         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
4584         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
4585         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
4586         (_GL_REMAINDER_OVERFLOW): Use it.
4587
4588         intprops-tests: revert unsigned part of previous change
4589         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
4590         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
4591         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
4592         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
4593
4594 2011-05-19  Bruno Haible  <bruno@clisp.org>
4595
4596         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
4597         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
4598         strerror_r() returned without filling the buffer.
4599         Reported by Eric Blake.
4600
4601 2011-05-19  Eric Blake  <eblake@redhat.com>
4602
4603         strerror_r: guarantee unchanged errno
4604         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
4605         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
4606         failure.
4607         * tests/test-strerror_r.c (main): Enhance test.
4608
4609 2011-05-19  Bruno Haible  <bruno@clisp.org>
4610
4611         strerror_r: Reorder #if blocks.
4612         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
4613         for consistency with the previous commit.
4614
4615 2011-05-19  Bruno Haible  <bruno@clisp.org>
4616
4617         perror: Avoid clobbering the strerror buffer when possible.
4618         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
4619         * lib/strerror.c: Include it.
4620         * modules/strerror (Files): Add lib/strerror-impl.h.
4621         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
4622         (my_strerror): New function, defined through lib/strerror-impl.h.
4623         (perror): Use it instead of strerror.
4624         * modules/perror (Files): Add lib/strerror-impl.h.
4625         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
4626
4627 2011-05-19  Eric Blake  <eblake@redhat.com>
4628
4629         strerror_r: fix on newer cygwin
4630         * lib/strerror_r.c (strerror_r): Cygwin now has
4631         __xpg_strerror_r, use it.
4632
4633 2011-05-19  Bruno Haible  <bruno@clisp.org>
4634
4635         strerror_r: Avoid clobbering the strerror buffer when possible.
4636         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
4637         (sys_nerr, sys_errlist): New declarations.
4638         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
4639         HP-UX, native Win32, IRIX, and 32-bit Solaris.
4640         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
4641
4642 2011-05-19  Bruno Haible  <bruno@clisp.org>
4643
4644         strerror_r: Fix test failure on mingw.
4645         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
4646         EXTEND_STRERROR_R.
4647         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
4648         macros from errno.in.h instead.
4649
4650 2011-05-19  Eric Blake  <eblake@redhat.com>
4651
4652         strerror: relax test for Solaris
4653         * tests/test-strerror.c (main): Permit Solaris behavior.
4654         * tests/test-strerror_r.c (main): Likewise.
4655
4656         strerror: enforce POSIX ruling on strerror(0)
4657         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
4658         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4659         * lib/strerror_r.c (rpl_strerror_r): Work around it.
4660         * doc/posix-functions/strerror.texi (strerror): Document it.
4661         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
4662         * tests/test-strerror.c (main): Strengthen test.
4663         * tests/test-strerror_r.c (main): Likewise.
4664
4665 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4666
4667         intprop-tests: port to older and more-pedantic compilers
4668         * modules/intprops-tests (Files): Add tests/macros.h.
4669         * tests/test-intprops.c: Include macros.h.
4670         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
4671         it's no longer documented to expand to an integer constant expression.
4672         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
4673         argument is floating point, as it's no longer documented to expand
4674         to an integer constant expression in that case.
4675         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
4676         compiler bugs reported by Bruno Haible.  See
4677         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4678         (U0, U1): New constants, to work around the same bugs.  Also,
4679         in tests, use e.g., "(unsigned int) 39" rather than "39u".
4680
4681         intprops: work around C compiler bugs
4682         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
4683         bug in Sun C 5.11 2010/08/13 and other compilers; see
4684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4685
4686         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
4687         * doc/intprops.texi (Integer Type Determination): Fix
4688         documentation for TYPE_IS_INTEGER: it returns an constant
4689         expression, not an integer constant expression.  Fix doc for
4690         TYPE_SIGNED: it returns an integer constant expression only if its
4691         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
4692         hardly worth documented that way....)
4693
4694 2011-05-18  Bruno Haible  <bruno@clisp.org>
4695
4696         strerror_r: Avoid clobbering the strerror buffer when possible.
4697         * lib/strerror_r.c (strerror_r): Merge the three implementations.
4698         Handle gnulib defined errno values here. When strerror() returns NULL
4699         or an empty string, return EINVAL.
4700         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
4701         gnulib defined errno values here.
4702         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
4703
4704 2011-05-18  Eric Blake  <eblake@redhat.com>
4705
4706         fnmatch: avoid compiler warning
4707         * lib/fnmatch_loop.c (FCT): Use correct type.
4708         Reported by Matthias Bolte.
4709
4710 2011-05-13  Jim Meyering  <meyering@redhat.com>
4711
4712         maint.mk: three new prohibit_<HDR>_without_use rules
4713         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
4714         (sc_prohibit_stdio-safer_without_use): Likewise.
4715         (sc_prohibit_xfreopen_without_use): Likewise.
4716
4717 2011-05-17  Jim Meyering  <meyering@redhat.com>
4718
4719         announce-gen: fail if the NEWS delta is empty
4720         If there's nothing noteworthy in NEWS, then either you forgot
4721         or you shouldn't be releasing.
4722         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
4723
4724 2011-05-17  Pádraig Brady <P@draigBrady.com>
4725
4726         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
4727         reserved symbols starting with double underscore from the check.
4728
4729 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
4730
4731         intprops: add doc
4732         * doc/intprops.texi: New file, documenting intprops.
4733         * doc/gnulib.texi (Particular Modules): Include it.
4734
4735         verify: add doc to gnulib manual and fix example
4736         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
4737         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
4738         (Compile-time Assertions): Fix example so it can't overflow.
4739
4740 2011-05-17  Jim Meyering  <meyering@redhat.com>
4741
4742         warnings.m4: don't usurp save_CPPFLAGS variable name
4743         * m4/warnings.m4: Prefix local temporary variable name with gl_.
4744
4745         doc: fix typo
4746         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
4747
4748 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4749             Bruno Haible  <bruno@clisp.org>
4750
4751         doc: Tweak recent change.
4752         * README (Portability guidelines): Tweak new text.
4753         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
4754         Interix 6.1.
4755
4756 2011-05-16  Eric Blake  <eblake@redhat.com>
4757
4758         inttypes: avoid autoconf warning
4759         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
4760         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4761
4762 2011-05-16  Sam Steingold <sds@gnu.org>
4763         and Eric Blake  <eblake@redhat.com>
4764
4765         vc-list-files: accept multiple directory operands
4766         * build-aux/vc-list-files: Iterate over all remaining operands.
4767
4768 2011-05-16  Bruno Haible  <bruno@clisp.org>
4769
4770         Fix confusion regarding deprecated modules.
4771         * modules/calloc (Status, Notice): Mark module as deprecated, not
4772         obsolete.
4773         * modules/fnmatch-posix (Status, Notice): Likewise.
4774         * modules/getdate (Status, Notice): Likewise.
4775         * modules/getopt (Status, Notice): Likewise.
4776         * modules/malloc (Status, Notice): Likewise.
4777         * modules/pipe (Status, Notice): Likewise.
4778         * modules/realloc (Status, Notice): Likewise.
4779         * modules/rename-dest-slash (Status, Notice): Likewise.
4780         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
4781         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
4782         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
4783         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
4784         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
4785
4786 2011-05-16  Bruno Haible  <bruno@clisp.org>
4787
4788         doc: List the target platforms.
4789         * doc/gnulib-intro.texi (Target Platforms): New section.
4790         * doc/gnulib.texi (Introduction): Update menu.
4791         * README (Portability guidelines): Refer to the new section. Update
4792         statement about oldest supported environment. Remove rationale why
4793         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
4794         unportable C89 function.
4795         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
4796         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
4797
4798 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4799
4800         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
4801
4802 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
4803
4804         intprops-tests: new module
4805         * modules/intprops-tests, tests/test-intprops.c: New files.
4806
4807         intprops: add safe, portable integer overflow checking
4808         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
4809         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
4810         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
4811         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
4812         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
4813         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
4814         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
4815         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
4816         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
4817         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
4818         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
4819
4820 2011-05-12  James Youngman  <jay@gnu.org>
4821
4822         Add a test for glibc's Bugzilla bug #12378.
4823         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
4824         doesn't allow the literal matching of a lone "[" (which is
4825         required by POSIX).
4826         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
4827
4828 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
4829
4830         Sync glibc change fixing Bugzilla bug #12378.
4831         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
4832         beginning and fall back to matching as normal character if the
4833         string ends before the matching ']' is found.  This is what POSIX
4834         requires.
4835
4836 2011-05-13  Eric Blake  <eblake@redhat.com>
4837
4838         getcwd-lgpl: relax test for FreeBSD
4839         * doc/posix-functions/getcwd.texi (getcwd): Document portability
4840         issue.
4841         * tests/test-getcwd-lgpl.c (main): Relax test.
4842         Reported by Matthias Bolte.
4843
4844 2011-05-11  Eric Blake  <eblake@redhat.com>
4845
4846         test-fflush: silence compiler warning
4847         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
4848
4849 2011-05-11  Bruno Haible  <bruno@clisp.org>
4850
4851         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
4852         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
4853         * modules/canonicalize (Depends-on): Add 'nocrash'.
4854         * modules/canonicalize-lgpl (Depends-on): Likewise.
4855         * doc/posix-functions/realpath.texi: Update platforms list.
4856         Reported by Ryan Schmidt <ryandesign@macports.org>.
4857
4858 2011-05-11  Bruno Haible  <bruno@clisp.org>
4859
4860         group-member: Declare function in <unistd.h>.
4861         * lib/unistd.in.h (group_member): New declaration.
4862         * lib/group-member.h: Remove file.
4863         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
4864         * tests/test-unistd-c++.cc: Check signature of group_member.
4865         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
4866         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
4867         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
4868         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
4869         HAVE_GROUP_MEMBER.
4870         * modules/group-member (Files): Remove lib/group-member.h.
4871         (Depends-on): Add unistd. Specify conditions.
4872         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4873         (Include): Change to <unistd.h>.
4874         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
4875         HAVE_GROUP_MEMBER.
4876         * NEWS: Mention the change.
4877         * lib/euidaccess.c: Don't include group-member.h.
4878
4879 2011-05-11  Bruno Haible  <bruno@clisp.org>
4880
4881         group-member: Document module.
4882         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
4883         module.
4884
4885 2011-05-11  Bruno Haible  <bruno@clisp.org>
4886
4887         fclose: Fix mistake earlier today.
4888         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
4889
4890 2011-05-11  Eric Blake  <eblake@redhat.com>
4891
4892         fclose: preserve fflush errors
4893         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
4894         Reported by Jim Meyering.
4895
4896         bootstrap: support a prereq of 'rpcgen -' on RHEL5
4897         * build-aux/bootstrap (check_versions): When no specific version
4898         is required, merely check that the app produces an exit status
4899         that indicates its existence.
4900
4901         maint.mk: drop redundant check
4902         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
4903         the same but better.
4904
4905 2011-05-11  Bruno Haible  <bruno@clisp.org>
4906
4907         fclose: Fix possible link error.
4908         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
4909         unregister_shadow_fd. Improve comments.
4910         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
4911         Eric Blake.
4912
4913 2011-05-11  Jim Meyering  <meyering@redhat.com>
4914
4915         maint.mk: improve "can not" detection and generalize rule name
4916         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
4917         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
4918         Use the same technique as in sc_prohibit_doubled_word, so that
4919         we recognize "can not" also when the words are separated by a newline.
4920         Suggested by Eric Blake.
4921         (perl_filename_lineno_text_): Define.  Factored out of...
4922         (prohibit_doubled_word_): ...here.  Use the new definition.
4923         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
4924         (prohibit_undesirable_word_seq_RE_): New overridable variable.
4925         (ignore_undesirable_word_sequence_RE_): New overridable variable.
4926
4927 2011-05-10  Eric Blake  <eblake@redhat.com>
4928
4929         fclose: avoid double close race when possible
4930         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
4931         all but WINDOWS_SOCKETS.
4932
4933 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
4934
4935         openat: correct new comment
4936         * lib/openat-proc.c (openat_proc_name): Correct the comment.
4937
4938 2011-05-10  Jim Meyering  <meyering@redhat.com>
4939
4940         openat: add comments
4941         * lib/openat-proc.c (openat_proc_name): Add comments,
4942         mostly from Eric Blake.
4943
4944 2011-05-09  Eric Blake  <eblake@redhat.com>
4945
4946         openat: reduce syscalls in first probe of /proc
4947         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
4948         be a directory.  Simplify the probe for .. bugs.
4949         * modules/openat (Depends-on): Drop same-inode.
4950         Reported by Bastien ROUCARIES.
4951
4952 2011-05-09  Jim Meyering  <meyering@redhat.com>
4953
4954         maint.mk: change semantics/name of tight_scope variables
4955         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
4956         Rename variables to align with semantics that make them more useful.
4957
4958         maint.mk: tweak new rule's name not to impinge
4959         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
4960         (sc_tight_scope): Use new rule name rather than $@-0.
4961
4962         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
4963         * top/maint.mk (sc_tight_scope): New rule.
4964         (sc_tight_scope-0): New rule, ifdef'd out.
4965         (_gl_TS_dir): Default.
4966         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
4967         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
4968
4969 2011-05-09  Simon Josefsson  <simon@josefsson.org>
4970
4971         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
4972         Haible <bruno@clisp.org>.
4973
4974 2011-05-08  Bruno Haible  <bruno@clisp.org>
4975
4976         Comments.
4977         * m4/isnanf.m4: Add comment.
4978         * m4/isnanl.m4: Likewise.
4979
4980 2011-05-08  Bruno Haible  <bruno@clisp.org>
4981
4982         glob: Remove obsolete macro.
4983         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
4984
4985 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4986
4987         intprops: Sun C 5.11 supports __typeof__
4988         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
4989         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
4990         which is new.
4991         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
4992
4993         intprops: switch to usual gnulib indenting and naming
4994         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
4995         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
4996
4997         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
4998
4999 2011-05-08  Jim Meyering  <meyering@redhat.com>
5000
5001         maint.mk: suppress "Entering/Leaving directory" diag in announcement
5002         * top/maint.mk (release-prep): Use make's --no-print-directory
5003         option when generating the announcement.  This eliminates the
5004         pesky "make[2]: Entering/Leaving directory" diagnostics in the
5005         generated announcement template.
5006
5007 2011-05-08  Bruno Haible  <bruno@clisp.org>
5008
5009         tzset: Fix gettimeofday wrapper on Solaris 2.6.
5010         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
5011         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
5012
5013 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5014
5015         ignore-value, verify: Omit include files from lib_SOURCES.
5016         * modules/ignore-value, modules/verify (Makefile.am):
5017         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
5018         that leads Automake to duplicate use of am__objects_... variables
5019         in Makefile.in.  See
5020         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5021
5022 2011-05-07  Bruno Haible  <bruno@clisp.org>
5023
5024         fclose: Simplify autoconf macro.
5025         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5026         defined.
5027
5028 2011-05-07  Bruno Haible  <bruno@clisp.org>
5029
5030         canonicalize-lgpl: Fix autoconf macro ordering bug.
5031         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5032         gl_STDLIB_H_DEFAULTS.
5033
5034 2011-05-06  Eric Blake  <eblake@redhat.com>
5035
5036         maintainer-makefile: make sc_po_check easier to tune
5037         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5038         to probe for strings, such as an alternate location for gnulib.
5039
5040         fclose: guarantee behavior on seekable stdin
5041         * modules/fclose (Depends-on): Add fflush.
5042         * doc/posix-functions/fclose.texi (fclose): Document this.
5043         * tests/test-fclose.c (main): Make test for this unconditional.
5044
5045 2011-05-06  Bruno Haible  <bruno@clisp.org>
5046
5047         fflush, fpurge: Relicense under LGPLv2+.
5048         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5049         * modules/fpurge (License): Likewise.
5050         With permission from Eric Blake and Jim Meyering.
5051         Suggested by Eric Blake.
5052
5053 2011-05-06  Karl Berry  <karl@gnu.org>
5054
5055         * MODULES.html.sh (func_all_modules): remove exit.
5056
5057 2011-05-06  Jim Meyering  <meyering@redhat.com>
5058
5059         maint.mk: use info-gnu@ as the default only for a stable release
5060         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5061         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5062         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5063         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5064
5065 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5066
5067         assert-h: new module, which supports C1X-style static_assert
5068         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5069         * lib/verify.h: Revamp so that this can be copied into assert.h,
5070         while retaining the ability to use it standalone as before.
5071         Rename private identifiers so as not to encroach on the
5072         standard C namespace, since this is now used by assert.h.
5073         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5074         the old verify_true.
5075         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5076         the old verify_true.  Use _GL_VERIFY_TYPE.
5077         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5078         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5079         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5080         defined when this file is copied into the replacement assert.h.
5081         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5082         and _Static_assert is not built in.
5083         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5084         defined, and use the new macros mentioned above.
5085         * doc/posix-headers/assert.texi: Document this.
5086
5087 2011-05-05  Bruno Haible  <bruno@clisp.org>
5088
5089         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5090         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5091         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5092         gl_REPLACE_FCLOSE here.
5093         * modules/fflush (Depends-on): Remove fclose.
5094         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5095         combination with module 'fclose'.
5096
5097 2011-05-05  Bruno Haible  <bruno@clisp.org>
5098
5099         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5100         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5101         gl_FUNC_FFLUSH.
5102         (gl_FUNC_FFLUSH): Use it.
5103         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5104         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5105         gl_REPLACE_FSEEKO here.
5106
5107 2011-05-05  Bruno Haible  <bruno@clisp.org>
5108
5109         tzset: Relicense under LGPL.
5110         * modules/tzset (License): Change to LGPL.
5111         No agreement needed; it's a no-op.
5112
5113         strtoimax, strtoumax: Relicense under LGPL.
5114         * modules/strtoimax (License): Change to LGPL.
5115         * modules/strtoumax (License): Likewise.
5116         With permission from Jim Meyering, Paul Eggert:
5117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5118         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5119
5120         getgroups: Relicense under LGPL.
5121         * modules/getgroups (License): Change to LGPL.
5122         With permission from Jim Meyering, Paul Eggert, Eric Blake:
5123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5126
5127         nanosleep: Relicense under LGPL.
5128         * modules/nanosleep (License): Change to LGPL.
5129         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5130         Haible:
5131         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5135
5136         futimens: Relicense under LGPL.
5137         * modules/futimens (License): Change to LGPL.
5138         With permission from Eric Blake:
5139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5140
5141         fflush: Relicense under LGPL.
5142         * modules/fflush (License): Change to LGPL.
5143         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5147
5148         tmpfile: Relicense under LGPL.
5149         * modules/tmpfile (License): Change to LGPL.
5150         With permission from Ben Pfaff:
5151         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5152
5153         isfinite: Relicense under LGPL.
5154         * modules/isfinite (License): Change to LGPL.
5155         With permission from Ben Pfaff, Bruno Haible:
5156         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5157         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5158
5159         acosl..tanl: Relicense under LGPL.
5160         * modules/acosl (License): Change to LGPL.
5161         * modules/asinl (License): Likewise.
5162         * modules/atanl (License): Likewise.
5163         * modules/cosl (License): Likewise.
5164         * modules/expl (License): Likewise.
5165         * modules/logl (License): Likewise.
5166         * modules/sinl (License): Likewise.
5167         * modules/sqrtl (License): Likewise.
5168         * modules/tanl (License): Likewise.
5169         Source code originally from glibc and Paolo Bonzini. Agreements:
5170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5172
5173 2011-05-05  Bruno Haible  <bruno@clisp.org>
5174
5175         signal: Define sighandler_t.
5176         * lib/signal.in.h (sighandler_t): New type.
5177         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5178         whether sighandler_t is defined.
5179         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5180         * modules/signal (Depends-on): Add extensions.
5181         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5182         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5183         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5184
5185 2011-05-05  Eric Blake  <eblake@redhat.com>
5186
5187         maint: remove useless REPLACE_*_H macros
5188         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5189         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5190         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5191         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5192         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5193         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5194         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5195         * m4/btowc.m4: Update callers.
5196         * m4/dirfd.m4: Likewise.
5197         * m4/duplocale.m4: Likewise.
5198         * m4/fchdir.m4: Likewise.
5199         * m4/fdopendir.m4: Likewise.
5200         * m4/inet_ntop.m4: Likewise.
5201         * m4/inet_pton.m4: Likewise.
5202         * m4/ioctl.m4: Likewise.
5203         * m4/mbrlen.m4: Likewise.
5204         * m4/mbrtowc.m4: Likewise.
5205         * m4/mbsinit.m4: Likewise.
5206         * m4/mbsnrtowcs.m4: Likewise.
5207         * m4/mbsrtowcs.m4: Likewise.
5208         * m4/poll.m4: Likewise.
5209         * m4/setlocale.m4: Likewise.
5210         * m4/wcrtomb.m4: Likewise.
5211         * m4/wcsnrtombs.m4: Likewise.
5212         * m4/wcsrtombs.m4: Likewise.
5213         * m4/wctob.m4: Likewise.
5214         * m4/wcwidth.m4: Likewise.
5215         * modules/posix_spawn: Likewise.
5216         * modules/posix_spawn_file_actions_addclose: Likewise.
5217         * modules/posix_spawn_file_actions_adddup2: Likewise.
5218         * modules/posix_spawn_file_actions_addopen: Likewise.
5219         * modules/posix_spawn_file_actions_destroy: Likewise.
5220         * modules/posix_spawn_file_actions_init: Likewise.
5221         * modules/posix_spawnattr_destroy: Likewise.
5222         * modules/posix_spawnattr_getflags: Likewise.
5223         * modules/posix_spawnattr_getpgroup: Likewise.
5224         * modules/posix_spawnattr_getschedparam: Likewise.
5225         * modules/posix_spawnattr_getschedpolicy: Likewise.
5226         * modules/posix_spawnattr_getsigdefault: Likewise.
5227         * modules/posix_spawnattr_getsigmask: Likewise.
5228         * modules/posix_spawnattr_init: Likewise.
5229         * modules/posix_spawnattr_setflags: Likewise.
5230         * modules/posix_spawnattr_setpgroup: Likewise.
5231         * modules/posix_spawnattr_setschedparam: Likewise.
5232         * modules/posix_spawnattr_setschedpolicy: Likewise.
5233         * modules/posix_spawnattr_setsigdefault: Likewise.
5234         * modules/posix_spawnattr_setsigmask: Likewise.
5235         * modules/posix_spawnp: Likewise.
5236
5237 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
5238
5239         Add option to do-release-commit-and-tag to specify branch.
5240         * build-aux/do-release-commit-and-tag: Add --branch.
5241
5242 2011-05-03  Bruno Haible  <bruno@clisp.org>
5243
5244         Avoid unnecessary compilation units, through conditional dependencies.
5245         * modules/accept (Depends-on): Add conditions to the dependencies.
5246         * modules/acosl (Depends-on): Likewise.
5247         * modules/argz (Depends-on): Likewise.
5248         * modules/asinl (Depends-on): Likewise.
5249         * modules/atanl (Depends-on): Likewise.
5250         * modules/atoll (Depends-on): Likewise.
5251         * modules/bind (Depends-on): Likewise.
5252         * modules/btowc (Depends-on): Likewise.
5253         * modules/canonicalize-lgpl (Depends-on): Likewise.
5254         * modules/ceil (Depends-on): Likewise.
5255         * modules/ceilf (Depends-on): Likewise.
5256         * modules/ceill (Depends-on): Likewise.
5257         * modules/chdir-long (Depends-on): Likewise.
5258         * modules/chown (Depends-on): Likewise.
5259         * modules/close (Depends-on): Likewise.
5260         * modules/connect (Depends-on): Likewise.
5261         * modules/cosl (Depends-on): Likewise.
5262         * modules/dirfd (Depends-on): Likewise.
5263         * modules/dprintf (Depends-on): Likewise.
5264         * modules/dprintf-posix (Depends-on): Likewise.
5265         * modules/error (Depends-on): Likewise.
5266         * modules/euidaccess (Depends-on): Likewise.
5267         * modules/expl (Depends-on): Likewise.
5268         * modules/faccessat (Depends-on): Likewise.
5269         * modules/fchdir (Depends-on): Likewise.
5270         * modules/fclose (Depends-on): Likewise.
5271         * modules/fcntl (Depends-on): Likewise.
5272         * modules/fdopendir (Depends-on): Likewise.
5273         * modules/fflush (Depends-on): Likewise.
5274         * modules/floor (Depends-on): Likewise.
5275         * modules/floorf (Depends-on): Likewise.
5276         * modules/floorl (Depends-on): Likewise.
5277         * modules/fnmatch (Depends-on): Likewise.
5278         * modules/fopen (Depends-on): Likewise.
5279         * modules/fprintf-posix (Depends-on): Likewise.
5280         * modules/frexp (Depends-on): Likewise.
5281         * modules/frexp-nolibm (Depends-on): Likewise.
5282         * modules/frexpl (Depends-on): Likewise.
5283         * modules/frexpl-nolibm (Depends-on): Likewise.
5284         * modules/fseek (Depends-on): Likewise.
5285         * modules/fsusage (Depends-on): Likewise.
5286         * modules/ftell (Depends-on): Likewise.
5287         * modules/ftello (Depends-on): Likewise.
5288         * modules/futimens (Depends-on): Likewise.
5289         * modules/getcwd (Depends-on): Likewise.
5290         * modules/getcwd-lgpl (Depends-on): Likewise.
5291         * modules/getdelim (Depends-on): Likewise.
5292         * modules/getdomainname (Depends-on): Likewise.
5293         * modules/getgroups (Depends-on): Likewise.
5294         * modules/gethostname (Depends-on): Likewise.
5295         * modules/getline (Depends-on): Likewise.
5296         * modules/getlogin_r (Depends-on): Likewise.
5297         * modules/getopt-posix (Depends-on): Likewise.
5298         * modules/getpeername (Depends-on): Likewise.
5299         * modules/getsockname (Depends-on): Likewise.
5300         * modules/getsockopt (Depends-on): Likewise.
5301         * modules/getsubopt (Depends-on): Likewise.
5302         * modules/getusershell (Depends-on): Likewise.
5303         * modules/glob (Depends-on): Likewise.
5304         * modules/grantpt (Depends-on): Likewise.
5305         * modules/iconv_open (Depends-on): Likewise.
5306         * modules/iconv_open-utf (Depends-on): Likewise.
5307         * modules/inet_ntop (Depends-on): Likewise.
5308         * modules/inet_pton (Depends-on): Likewise.
5309         * modules/ioctl (Depends-on): Likewise.
5310         * modules/isapipe (Depends-on): Likewise.
5311         * modules/isfinite (Depends-on): Likewise.
5312         * modules/isinf (Depends-on): Likewise.
5313         * modules/lchown (Depends-on): Likewise.
5314         * modules/ldexpl (Depends-on): Likewise.
5315         * modules/link (Depends-on): Likewise.
5316         * modules/linkat (Depends-on): Likewise.
5317         * modules/listen (Depends-on): Likewise.
5318         * modules/logl (Depends-on): Likewise.
5319         * modules/lstat (Depends-on): Likewise.
5320         * modules/mbrlen (Depends-on): Likewise.
5321         * modules/mbrtowc (Depends-on): Likewise.
5322         * modules/mbsinit (Depends-on): Likewise.
5323         * modules/mbsnrtowcs (Depends-on): Likewise.
5324         * modules/mbsrtowcs (Depends-on): Likewise.
5325         * modules/mbtowc (Depends-on): Likewise.
5326         * modules/memcmp (Depends-on): Likewise.
5327         * modules/mkdir (Depends-on): Likewise.
5328         * modules/mkdtemp (Depends-on): Likewise.
5329         * modules/mkfifo (Depends-on): Likewise.
5330         * modules/mkfifoat (Depends-on): Likewise.
5331         * modules/mknod (Depends-on): Likewise.
5332         * modules/mkostemp (Depends-on): Likewise.
5333         * modules/mkostemps (Depends-on): Likewise.
5334         * modules/mkstemp (Depends-on): Likewise.
5335         * modules/mkstemps (Depends-on): Likewise.
5336         * modules/mktime (Depends-on): Likewise.
5337         * modules/nanosleep (Depends-on): Likewise.
5338         * modules/open (Depends-on): Likewise.
5339         * modules/openat (Depends-on): Likewise.
5340         * modules/perror (Depends-on): Likewise.
5341         * modules/poll (Depends-on): Likewise.
5342         * modules/popen (Depends-on): Likewise.
5343         * modules/posix_spawn (Depends-on): Likewise.
5344         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5345         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5346         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5347         * modules/posix_spawnp (Depends-on): Likewise.
5348         * modules/pread (Depends-on): Likewise.
5349         * modules/printf-posix (Depends-on): Likewise.
5350         * modules/ptsname (Depends-on): Likewise.
5351         * modules/putenv (Depends-on): Likewise.
5352         * modules/pwrite (Depends-on): Likewise.
5353         * modules/readline (Depends-on): Likewise.
5354         * modules/readlink (Depends-on): Likewise.
5355         * modules/readlinkat (Depends-on): Likewise.
5356         * modules/recv (Depends-on): Likewise.
5357         * modules/recvfrom (Depends-on): Likewise.
5358         * modules/regex (Depends-on): Likewise.
5359         * modules/remove (Depends-on): Likewise.
5360         * modules/rename (Depends-on): Likewise.
5361         * modules/renameat (Depends-on): Likewise.
5362         * modules/rmdir (Depends-on): Likewise.
5363         * modules/round (Depends-on): Likewise.
5364         * modules/roundf (Depends-on): Likewise.
5365         * modules/roundl (Depends-on): Likewise.
5366         * modules/rpmatch (Depends-on): Likewise.
5367         * modules/select (Depends-on): Likewise.
5368         * modules/send (Depends-on): Likewise.
5369         * modules/sendto (Depends-on): Likewise.
5370         * modules/setenv (Depends-on): Likewise.
5371         * modules/setlocale (Depends-on): Likewise.
5372         * modules/setsockopt (Depends-on): Likewise.
5373         * modules/shutdown (Depends-on): Likewise.
5374         * modules/sigaction (Depends-on): Likewise.
5375         * modules/signbit (Depends-on): Likewise.
5376         * modules/sigprocmask (Depends-on): Likewise.
5377         * modules/sinl (Depends-on): Likewise.
5378         * modules/sleep (Depends-on): Likewise.
5379         * modules/snprintf (Depends-on): Likewise.
5380         * modules/snprintf-posix (Depends-on): Likewise.
5381         * modules/socket (Depends-on): Likewise.
5382         * modules/sprintf-posix (Depends-on): Likewise.
5383         * modules/sqrtl (Depends-on): Likewise.
5384         * modules/stat (Depends-on): Likewise.
5385         * modules/strchrnul (Depends-on): Likewise.
5386         * modules/strdup-posix (Depends-on): Likewise.
5387         * modules/strerror (Depends-on): Likewise.
5388         * modules/strerror_r-posix (Depends-on): Likewise.
5389         * modules/strndup (Depends-on): Likewise.
5390         * modules/strnlen (Depends-on): Likewise.
5391         * modules/strptime (Depends-on): Likewise.
5392         * modules/strsep (Depends-on): Likewise.
5393         * modules/strsignal (Depends-on): Likewise.
5394         * modules/strstr-simple (Depends-on): Likewise.
5395         * modules/strtod (Depends-on): Likewise.
5396         * modules/strtoimax (Depends-on): Likewise.
5397         * modules/strtok_r (Depends-on): Likewise.
5398         * modules/strtoumax (Depends-on): Likewise.
5399         * modules/symlink (Depends-on): Likewise.
5400         * modules/symlinkat (Depends-on): Likewise.
5401         * modules/tanl (Depends-on): Likewise.
5402         * modules/tcgetsid (Depends-on): Likewise.
5403         * modules/tmpfile (Depends-on): Likewise.
5404         * modules/trunc (Depends-on): Likewise.
5405         * modules/truncf (Depends-on): Likewise.
5406         * modules/truncl (Depends-on): Likewise.
5407         * modules/uname (Depends-on): Likewise.
5408         * modules/unlink (Depends-on): Likewise.
5409         * modules/unlockpt (Depends-on): Likewise.
5410         * modules/unsetenv (Depends-on): Likewise.
5411         * modules/usleep (Depends-on): Likewise.
5412         * modules/utimensat (Depends-on): Likewise.
5413         * modules/vasprintf (Depends-on): Likewise.
5414         * modules/vdprintf (Depends-on): Likewise.
5415         * modules/vdprintf-posix (Depends-on): Likewise.
5416         * modules/vfprintf-posix (Depends-on): Likewise.
5417         * modules/vprintf-posix (Depends-on): Likewise.
5418         * modules/vsnprintf (Depends-on): Likewise.
5419         * modules/vsnprintf-posix (Depends-on): Likewise.
5420         * modules/vsprintf-posix (Depends-on): Likewise.
5421         * modules/wcrtomb (Depends-on): Likewise.
5422         * modules/wcscasecmp (Depends-on): Likewise.
5423         * modules/wcscspn (Depends-on): Likewise.
5424         * modules/wcsdup (Depends-on): Likewise.
5425         * modules/wcsncasecmp (Depends-on): Likewise.
5426         * modules/wcsnrtombs (Depends-on): Likewise.
5427         * modules/wcspbrk (Depends-on): Likewise.
5428         * modules/wcsrtombs (Depends-on): Likewise.
5429         * modules/wcsspn (Depends-on): Likewise.
5430         * modules/wcsstr (Depends-on): Likewise.
5431         * modules/wcstok (Depends-on): Likewise.
5432         * modules/wcswidth (Depends-on): Likewise.
5433         * modules/wctob (Depends-on): Likewise.
5434         * modules/wctomb (Depends-on): Likewise.
5435         * modules/wctype (Depends-on): Likewise.
5436         * modules/wcwidth (Depends-on): Likewise.
5437         * modules/write (Depends-on): Likewise.
5438
5439 2011-05-03  Bruno Haible  <bruno@clisp.org>
5440
5441         Support for conditional dependencies.
5442         * doc/gnulib.texi (Module description): Document the syntax of
5443         conditional dependencies.
5444         * gnulib-tool: New option --conditional-dependencies.
5445         (func_usage): Document it.
5446         (cond_dependencies): New variable.
5447         (func_get_automake_snippet_conditional,
5448         func_get_automake_snippet_unconditional): New functions, extracted from
5449         func_get_automake_snippet.
5450         (func_get_automake_snippet): Use them.
5451         (sed_first_32_chars): New variable.
5452         (func_module_shellfunc_name): New function.
5453         (func_module_shellvar_name): New function.
5454         (func_module_conditional_name): New function.
5455         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
5456         func_cond_module_condition): New functions.
5457         (func_modules_transitive_closure): Add support for conditional
5458         dependencies.
5459         (func_emit_lib_Makefile_am): For a conditional module, enclose the
5460         conditional automake snippet in an automake conditional.
5461         (func_emit_autoconf_snippets): Emit shell functions that contain the
5462         code for conditional modules.
5463         (func_import, func_create_testdir): Update specification.
5464
5465 2011-05-03  Eric Blake  <eblake@redhat.com>
5466
5467         test-getaddrinfo: report error information
5468         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
5469
5470 2011-05-03  Jim Meyering  <meyering@redhat.com>
5471
5472         bootstrap: avoid build failure when $GZIP is set
5473         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
5474         program name.  If defined at all, it is supposed to list gzip options.
5475         Reported by Alan Curry in http://debbugs.gnu.org/8609
5476
5477 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
5478
5479         readme-release: new module with release instructions
5480         * modules/readme-release: New module.
5481         * top/README-release: New file, from coreutils, grep, diffutils.
5482         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5483
5484 2011-05-02  Eric Blake  <eblake@redhat.com>
5485
5486         fflush: also replace fclose when fixing fflush
5487         * modules/fflush (Depends-on): Add fclose.
5488         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
5489         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
5490         memstreams with no backing fd.
5491         * doc/posix-functions/fclose.texi (fclose): Document the use of
5492         fflush module to fix the bug.
5493         * tests/test-fclose.c (main): Relax test when fclose is used in
5494         isolation.
5495
5496         fclose: add some tests
5497         * modules/fclose-tests: New test module.
5498         * tests/test-fclose.c: New file.
5499         * doc/posix-functions/fclose.texi (fclose): Document the bug.
5500
5501         fclose: reduced dependencies
5502         * modules/fclose (Depends-on): Switch from fflush/fseeko to
5503         simpler lseek.
5504         * lib/fclose.c (rpl_fclose): Likewise.
5505         Reported by Simon Josefsson.
5506
5507         exit: drop remaining clients
5508         * modules/argmatch (Depends-on): Replace exit with stdlib.
5509         * modules/copy-file (Depends-on): Likewise.
5510         * modules/execute (Depends-on): Likewise.
5511         * modules/exitfail (Depends-on): Likewise.
5512         * modules/obstack (Depends-on): Likewise.
5513         * modules/pagealign_alloc (Depends-on): Likewise.
5514         * modules/pipe-filter-gi (Depends-on): Likewise.
5515         * modules/pipe-filter-ii (Depends-on): Likewise.
5516         * modules/savewd (Depends-on): Likewise.
5517         * modules/spawn-pipe (Depends-on): Likewise.
5518         * modules/wait-process (Depends-on): Likewise.
5519         * modules/xsetenv (Depends-on): Likewise.
5520         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
5521         * modules/git-merge-changelog (Depends-on): Likewise.
5522         * modules/long-options (Depends-on): Likewise.
5523         * modules/pt_chown (Depends-on): Likewise.
5524         * modules/sysexits (Depends-on): Likewise.
5525
5526         freading: relax license from LGPLv3+ to LGPLv2+
5527         * modules/freading (License): Relax LGPL version.
5528
5529 2011-05-02  Bruno Haible  <bruno@clisp.org>
5530
5531         fchdir: Remove unused dependencies.
5532         * modules/fchdir (Depends-on): Remove include_next.
5533
5534 2011-05-02  Bruno Haible  <bruno@clisp.org>
5535
5536         gnulib-tool: Refactor.
5537         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
5538         from func_emit_autoconf_snippets.
5539         (func_emit_autoconf_snippets): Use it.
5540
5541 2011-05-02  Simon Josefsson  <simon@josefsson.org>
5542
5543         * NEWS: Document removal of 'exit'.
5544         * modules/exit: Remove file.
5545
5546 2011-05-01  Bruno Haible  <bruno@clisp.org>
5547
5548         Update DEPENDENCIES.
5549         * DEPENDENCIES (gettext): Recommend the newest release.
5550         Reported by Simon Josefsson.
5551
5552 2011-05-01  Bruno Haible  <bruno@clisp.org>
5553
5554         gnulib-tool: Reduce code duplication.
5555         * gnulib-tool (func_emit_autoconf_snippets): New function.
5556         (func_import, func_create_testdir): Use it.
5557
5558 2011-04-30  Eric Blake  <eblake@redhat.com>
5559
5560         fclose: don't fail on non-seekable input stream
5561         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
5562         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
5563         since fflush is allowed to fail in that case.
5564
5565 2011-04-30  Bruno Haible  <bruno@clisp.org>
5566
5567         dup3: cleanup
5568         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
5569
5570 2011-04-30  Bruno Haible  <bruno@clisp.org>
5571
5572         netdb: Make it work in C++ mode.
5573         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
5574         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
5575         module.
5576         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
5577         gl_MODULE_INDICATOR_FOR_TESTS.
5578         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
5579         * modules/netdb-c++-tests: New file.
5580         * tests/test-netdb-c++.cc: New file.
5581
5582 2011-04-30  Bruno Haible  <bruno@clisp.org>
5583
5584         New modules 'vfscanf', 'vscanf'.
5585         * modules/vfscanf: New file.
5586         * modules/vscanf: New file.
5587         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
5588         here.
5589         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
5590         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
5591
5592 2011-04-30  Bruno Haible  <bruno@clisp.org>
5593
5594         passfd: Add comments.
5595         * lib/passfd.c: Add comments about platforms.
5596
5597 2011-04-30  Bruno Haible  <bruno@clisp.org>
5598
5599         sys_uio: Make <sys/uio.h> self-contained.
5600         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
5601         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
5602
5603 2011-04-30  Bruno Haible  <bruno@clisp.org>
5604
5605         sys_socket: Ensure 'struct iovec' definition.
5606         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
5607         <sys/socket.h>.
5608         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
5609
5610 2011-04-30  Bruno Haible  <bruno@clisp.org>
5611
5612         sys_uio: Protect definition of 'struct iovec'.
5613         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
5614         it as a C struct.
5615
5616 2011-04-30  Bruno Haible  <bruno@clisp.org>
5617
5618         manywarnings: fix indentation
5619         * m4/manywarnings.m4: Indent by 2 spaces consistently.
5620
5621 2011-04-30  Pádraig Brady <P@draigBrady.com>
5622
5623         manywarnings: add -Wno-missing-field-initializers if needed.
5624         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
5625         option if it's needed to allow initialization with { 0, }
5626
5627 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
5628
5629         announce-gen: cosmetic improvement
5630         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
5631
5632 2011-04-29  Jim Meyering  <meyering@redhat.com>
5633
5634         vc-list-files: indent with spaces, not TABs
5635         * build-aux/vc-list-files: Convert leading TABs to spaces,
5636         to match the style of most other files in gnulib.
5637
5638         announce-gen: indent with spaces, not TABs
5639         * build-aux/announce-gen: Convert all TABs to spaces, to match
5640         the style of most other files in gnulib.
5641
5642 2011-04-29  Eric Blake  <eblake@redhat.com>
5643
5644         quotearg: avoid uninitialized variable use
5645         * lib/quotearg.c (quoting_options_from_style): Initialize
5646         remaining fields, and ensure that custom styles are only used via
5647         quoting_options rather than quoting_style.
5648
5649 2011-04-29  Jim Meyering  <meyering@redhat.com>
5650
5651         maint.mk: remove unused VC-tag variable
5652         * top/maint.mk (VC-tag): Remove unused variable.
5653
5654 2011-04-29  Bruno Haible  <bruno@clisp.org>
5655
5656         netdb: fix gai_strerror replacements
5657         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
5658         * modules/netdb: Substitute it.
5659
5660 2011-04-29  Jim Meyering  <meyering@redhat.com>
5661
5662         test-getcwd.c: avoid new set-but-not-used warning
5663         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
5664         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
5665         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
5666         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
5667
5668         test-hash.c: avoid a new shadowing warning
5669         * tests/test-hash.c (main): Don't shadow "dup".
5670
5671 2011-04-28  Eric Blake  <eblake@redhat.com>
5672
5673         getaddrinfo: fix gai_strerror signature
5674         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
5675         and work around mingw with UNICODE defined.
5676         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
5677         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
5678         * modules/netdb (Makefile.am): Substitute it.
5679         * lib/netdb.in.h (gai_strerror): Declare replacement.
5680         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
5681         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
5682         the fix.
5683
5684         getsockopt: avoid compiler warning
5685         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
5686         Reported by Matthias Bolte.
5687
5688         tests: drop unused link dependency
5689         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
5690         * modules/dirent-safer-tests (Makefile.am): Likewise.
5691         * modules/fdopendir-tests (Makefile.am): Likewise.
5692         * modules/mkfifoat-tests (Makefile.am): Likewise.
5693         * modules/openat-safer-tests (Makefile.am): Likewise.
5694         * modules/openat-tests (Makefile.am): Likewise.
5695         * modules/readlinkat-tests (Makefile.am): Likewise.
5696         * modules/symlinkat-tests (Makefile.am): Likewise.
5697         * modules/linkat-tests (Makefile.am): Likewise.
5698         (Depends-on): Switch to filenamecat-lgpl.
5699         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
5700         LIBINTL.
5701         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
5702         * tests/test-linkat.c (main): Don't require xalloc.
5703
5704         hash, mgetgroups: drop xalloc dependency
5705         * lib/hash.c (includes): Adjust includes.
5706         * lib/mgetgroups.c (includes): Likewise.
5707         (xgetgroups): Move...
5708         * lib/xgetgroups.c: ...to new file.
5709         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
5710         * modules/xgetgroups: New file, split from...
5711         * modules/mgetgroups: ...here.
5712         (Depends-on): Add xalloc-oversized.
5713         * modules/hash (Depends-on): Likewise.
5714         * modules/hash-tests (Depends-on): Drop xalloc.
5715         (test_hash_LDADD): Drop unused library.
5716         * tests/test-hash.c (main): Break xalloc dependency.
5717         (includes): Drop unused include.
5718
5719         xalloc-oversized: new module
5720         * modules/xalloc-oversized: New module.
5721         * modules/xalloc (Depends-on): Add it.
5722         * lib/xalloc.h (xalloc_oversized): Move...
5723         * lib/xalloc-oversized.h: ...into new file.
5724
5725         utimecmp: drop dependency on xmalloc
5726         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
5727         due to memory pressure.
5728         * modules/utimecmp (Depends-on): Drop xalloc.
5729
5730 2011-04-27  Eric Blake  <eblake@redhat.com>
5731
5732         getcwd: fix mingw bugs
5733         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
5734         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
5735         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
5736
5737 2011-04-27  Bruno Haible  <bruno@clisp.org>
5738
5739         mkstemps: Ensure declaration on MacOS X 10.5.
5740         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
5741         * doc/glibc-functions/mkstemps.texi: Document header file problem on
5742         MacOS X.
5743
5744 2011-04-27  Bruno Haible  <bruno@clisp.org>
5745
5746         mkstemp: More documentation.
5747         * doc/posix-functions/mkstemp.texi: Document header file problem on
5748         MacOS X.
5749
5750 2011-04-27  Bruno Haible  <bruno@clisp.org>
5751
5752         mkstemp: Tweak configure message when cross-compiling.
5753         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
5754         result as a guess.
5755
5756 2011-04-27  Bruno Haible  <bruno@clisp.org>
5757
5758         clean-temp: Clarify what it does.
5759         * lib/clean-temp.h: Add more comments.
5760         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
5761         module.
5762         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
5763         * doc/glibc-functions/mkstemps.texi: Likewise.
5764         * doc/glibc-functions/mkostemps.texi: Likewise.
5765
5766 2011-04-27  Eric Blake  <eblake@redhat.com>
5767
5768         fchdir: avoid extra chdir and fix test
5769         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
5770         getcwd-lgpl.
5771         * lib/fchdir.c (get_name): Any absolute name will do; it does not
5772         have to be canonical.
5773         (canonicalize_file_name): Drop unused macro.
5774         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
5775
5776         filenamecat-lgpl: fix licence
5777         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
5778         when it was first created.
5779
5780         linkat, renameat: add missing dependency
5781         * modules/linkat (Depends-on): Require getcwd-lgpl.
5782         * modules/renameat (Depends-on): Likewise.
5783
5784         tests: reduce dependencies
5785         * tests/test-linkat.c (main): Use lighter-weight getcwd.
5786         * tests/test-renameat.c (main): Likewise.
5787         * modules/linkat-tests (Depends-on): Relax dependency.
5788         * modules/renameat-tests (Depends-on): Likewise.
5789         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
5790         dependency explicit.
5791
5792         save-cwd: reduce default dependency
5793         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
5794         * lib/save-cwd.c: Update comments.
5795         * NEWS: Document the semantic change.
5796
5797         getcwd: enhance tests
5798         * tests/test-getcwd-lgpl.c: New file, taken from...
5799         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
5800         repeat long path stress tests from m4 probe.
5801         * modules/getcwd-lgpl-tests: New module.
5802         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
5803         * m4/getcwd-abort-bug.m4: Update comment.
5804         * m4/getcwd-path-max.m4: Likewise.
5805
5806         getcwd-lgpl: new module
5807         * modules/getcwd-lgpl: New module.
5808         * lib/getcwd-lgpl.c: New file.
5809         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5810         * MODULES.html.sh (lacking POSIX:2008): Likewise.
5811         * modules/getcwd (configure.ac): Set C witness.
5812         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
5813
5814         getcwd: tweak comments
5815         * m4/getcwd-abort-bug.m4: Fix comments.
5816         * m4/getcwd-path-max.m4: Likewise.
5817         * m4/getcwd.m4: Likewise.
5818
5819 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
5820         and Eric Blake  <eblake@redhat.com>
5821
5822         mkstemp: replace if system version uses wrong permissions
5823         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
5824         read/write mode bits set in file created by mkstemp.
5825         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
5826
5827 2011-04-27  Eric Blake  <eblake@redhat.com>
5828
5829         passfd: avoid compiler warning
5830         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
5831         Reported by Laine Stump.
5832
5833 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
5834
5835         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
5836         required by the NetBSD (and perhaps other 4.4BSD derived) join.
5837
5838 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
5839         and Eric Blake  <eblake@redhat.com>
5840
5841         mkstemp: mention clean-temp module
5842         * lib/mkstemp.c: Add comment.
5843         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
5844
5845 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5846
5847         inttypes: also provide default values for 32-bit tests
5848         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
5849         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
5850
5851 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5852
5853         strtoumax: remove dependency on strtoimax
5854         This is like the strtoull change of yesterday.
5855         * modules/strtoumax (Files): Add lib/strtoimax.c.
5856         (Depends-on): Remove strtoimax and add verify.
5857
5858         inttypes-incomplete: new module
5859         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
5860         all but the PRI* and SCN* parts of gl_INTTYPES_H.
5861         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
5862         of gl_INTTYPES_H.
5863         (gl_INTTYPES_H): Rewrite in terms of these new macros.
5864         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
5865         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
5866         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
5867         * modules/strtoumax, modules/xstrtol (Depends-on):
5868         Depend on inttypes-incomplete, not inttypes.
5869         * modules/inttypes-incomplete: New module, containing the contents
5870         of the old modules/inttypes module, except that the Files: section
5871         omits m4/inttypes-pri.m4, and the configure.ac section invokes
5872         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
5873         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
5874         (Depends-on): Depend only on inttypes-incomplete.
5875         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
5876
5877         inttypes: omit now-redundant strtoimax and strtoumax work
5878         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
5879         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
5880
5881         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
5882         This supports apps that need pointers to strtoimax and strtoumax,
5883         and ports to HP-UX 11.00 64.bit, which has macros that expand to
5884         nonexistent functions.  See
5885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
5886         et seq.
5887         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
5888         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
5889         a macro.
5890         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
5891
5892 2011-04-25  Simon Josefsson  <simon@josefsson.org>
5893
5894         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
5895
5896 2011-04-25  Bruno Haible  <bruno@clisp.org>
5897
5898         strtol, strtoul: Mark modules as obsolete.
5899         * modules/strtol (Status, Notice): New sections.
5900         * modules/strtoul (Status, Notice): New sections.
5901
5902 2011-04-25  Bruno Haible  <bruno@clisp.org>
5903
5904         strtod: Remove check for strtod, unless supporting old platforms.
5905         * modules/strtod-obsolete: New file.
5906         * m4/strtod-obsolete.m4: New file.
5907         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
5908         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
5909         * modules/strtod (Depends-on): Add strtod-obsolete.
5910         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
5911
5912 2011-04-25  Bruno Haible  <bruno@clisp.org>
5913
5914         strcase: Make module obsolete.
5915         * modules/strcase (Status, Notice): New sections.
5916
5917 2011-04-25  Bruno Haible  <bruno@clisp.org>
5918
5919         dup2: Remove check for dup2, unless supporting old obsolete platforms.
5920         * modules/dup2-obsolete: New file.
5921         * m4/dup2-obsolete.m4: New file.
5922         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
5923         gl_FUNC_DUP2_OBSOLETE is not also defined.
5924         * modules/dup2 (Depends-on): Add dup2-obsolete.
5925         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
5926
5927 2011-04-25  Bruno Haible  <bruno@clisp.org>
5928
5929         strnlen: Avoid memchr related link error on old obsolete platforms.
5930         * modules/memchr-obsolete: New file.
5931         * m4/memchr-obsolete.m4: New file.
5932         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
5933         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
5934         * modules/memchr (Depends-on): Add memchr-obsolete.
5935         * modules/strnlen (Depends-on): Likewise.
5936         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
5937
5938 2011-04-25  Jim Meyering  <meyering@redhat.com>
5939
5940         maint.mk: makefile_at_at_check extend and clean up
5941         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
5942         in addition to */Makefile.am.
5943         Exempt legitimate uses of @VAR@ notation, e.g.,
5944         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
5945         Remove obsolete coreutils-specific comment.
5946         Prompted by discussion here:
5947         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
5948
5949 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5950
5951         strtoul: remove dependency on strtol
5952         This is so that 'configure' need not check for strtol merely because
5953         the application needs strtoul.
5954         * modules/strtoul (Files): Add lib/strtol.c.
5955         (Depends-on): Remove strtol.
5956
5957         strtoull: remove dependency on strtoul
5958         This is like the strtoll change.
5959         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
5960         (Depends-on): Remove strtoul.
5961
5962         strtoll: remove dependency on strtol
5963         This is so that 'configure' need not check for strtol merely because
5964         the application needs strtoll.
5965         * modules/strtoll (Files): Add lib/strtol.c.
5966         (Depends-on): Remove strtol.
5967
5968 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5969
5970         inttypes: Move some configure check to module 'imaxdiv'.
5971         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
5972         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
5973         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
5974
5975 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5976
5977         inttypes: Move some configure check to module 'imaxabs'.
5978         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
5979         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
5980         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
5981
5982 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5983
5984         inttypes: Remove configure tests that are not needed since 2009-12-31.
5985         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
5986         gl_cv_header_working_inttypes_h.
5987
5988 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5989
5990         * modules/strnlen (Depends-on): Remove memchr.
5991         The strnlen implementation doesn't need the memchr module's fixes; see
5992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
5993
5994         strtol: remove dependency on wchar
5995         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
5996         * modules/strtol (Depends-on): Remove wchar.
5997
5998 2011-04-21  Eric Blake  <eblake@redhat.com>
5999
6000         passfd: fix test regression on Linux
6001         * modules/passfd-tests (configure.ac): Correct socketpair check.
6002
6003         passfd: speed up configure and drop unused code
6004         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
6005         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
6006         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
6007         Instead of probing at configure for unix_scm_rights_bsd44_way,
6008         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
6009         check to a struct member probe.
6010         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
6011         (sendfd, recvfd): Update preprocessor checks.
6012         * modules/passfd (Files): Reflect rename, and drop unused file.
6013         (Depends-on): Drop unused dependency.
6014
6015         passfd: allow compilation on mingw
6016         * modules/sys_socket (Depends-on): Add sys_uio.
6017         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
6018         iovec and a minimal struct msghdr.
6019         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6020         * tests/test-sys_socket.c (main): Enhance test.
6021         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6022         guaranteed to provide what we need.
6023         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6024         * modules/passfd-tests (Depends-on): Add sys_wait.
6025         * tests/test-passfd.c (main): Skip test on mingw, for now.
6026         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6027         partial 'struct msghdr' implementation.
6028
6029         sys_uio: new module
6030         * modules/sys_uio: New module.
6031         * modules/sys_uio-tests: Likewise.
6032         * lib/sys_uio.in.h: New file.
6033         * m4/sys_uio_h.m4: Likewise.
6034         * tests/test-sys_uio.c: Likewise.
6035         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6036         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6037
6038 2011-04-20  Jim Meyering  <meyering@redhat.com>
6039
6040         useless-if-before-free: avoid false-positive
6041         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6042         disjunct so that it too requires a terminating ";".  Without that,
6043         this script would identify as useless one statement from gcc that
6044         was not:
6045           if (aligned_ptr)
6046             free (((void **) aligned_ptr) [-1]);
6047
6048 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6049
6050         doc: update users.txt.
6051         * users.txt: Add barcode.
6052
6053 2011-04-19  Bruno Haible  <bruno@clisp.org>
6054
6055         ioctl: Remove link dependency on native Windows.
6056         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6057         (gl_close_fn, gl_ioctl_fn): New types.
6058         (struct fd_hook): Renamed from struct close_hook. Change type of
6059         private_close_fn field. Add private_ioctl_fn field.
6060         (close_hook_fn): Add parameter for primary close method.
6061         (execute_close_hooks, execute_all_close_hooks): Likewise.
6062         (ioctl_hook_fn): New type.
6063         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6064         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6065         argument.
6066         (unregister_fd_hook): Renamed from unregister_close_hook.
6067         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6068         Don't include <unistd.h>.
6069         (close): Remove undef.
6070         (anchor): Update.
6071         (execute_close_hooks): Add argument for primary close method.
6072         (execute_all_close_hooks): Likewise.
6073         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6074         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6075         argument. Allow each argument to be NULL.
6076         (unregister_fd_hook): Renamed from unregister_close_hook.
6077         * lib/close.c (rpl_close): Pass 'close' function pointer to
6078         execute_all_close_hooks.
6079         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6080         (primary_ioctl): New function.
6081         (ioctl): Don't call ioctlsocket here. Instead, call
6082         execute_all_ioctl_hooks.
6083         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6084         close method.
6085         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6086         (fd_sockets_hook): Renamed from close_sockets_hook.
6087         (gl_sockets_startup, gl_sockets_cleanup): Update.
6088         * modules/fd-hook: Renamed from modules/close-hook. Update.
6089         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6090         * modules/sockets (Depends-on): Likewise.
6091         * modules/ioctl (Depends-on): Add fd-hook.
6092         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6093         GNULIB_SOCKET.
6094
6095 2011-04-19  Bruno Haible  <bruno@clisp.org>
6096
6097         Move the support of O_NONBLOCK in open() to the 'open' module.
6098         * modules/nonblocking (Depends-on): Remove 'open'.
6099         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6100         gl_cv_have_open_O_NONBLOCK.
6101         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6102         O_NONBLOCK support.
6103         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6104
6105 2011-04-17  Bruno Haible  <bruno@clisp.org>
6106
6107         pipe2: Simplify code.
6108         * lib/pipe2.c (pipe2): Reduce code duplication.
6109
6110 2011-04-17  Bruno Haible  <bruno@clisp.org>
6111
6112         nonblocking: Add comment.
6113         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6114
6115 2011-04-17  Bruno Haible  <bruno@clisp.org>
6116
6117         nonblocking: Add tests for sockets.
6118         * tests/test-nonblocking-socket.sh: New file.
6119         * tests/test-nonblocking-socket-main.c: New file.
6120         * tests/test-nonblocking-socket-child.c: New file.
6121         * tests/test-nonblocking-socket.h: New file.
6122         * tests/socket-server.h: New file.
6123         * tests/socket-client.h: New file.
6124         * modules/nonblocking-socket-tests: New file.
6125         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6126
6127 2011-04-17  Bruno Haible  <bruno@clisp.org>
6128
6129         nonblocking: Add tests for pipes.
6130         * tests/test-nonblocking-pipe.sh: New file.
6131         * tests/test-nonblocking-pipe-main.c: New file.
6132         * tests/test-nonblocking-pipe-child.c: New file.
6133         * tests/test-nonblocking-pipe.h: New file.
6134         * tests/test-nonblocking-writer.h: New file.
6135         * tests/test-nonblocking-reader.h: New file.
6136         * tests/test-nonblocking-misc.h: New file.
6137         * modules/nonblocking-pipe-tests: New file.
6138         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6139
6140 2011-04-16  Bruno Haible  <bruno@clisp.org>
6141
6142         gettext: Clarify the needed programmer actions.
6143         * modules/gettext (Notice): New field.
6144         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6145
6146 2011-04-16  Bruno Haible  <bruno@clisp.org>
6147
6148         strchrnul: Tweak last commit.
6149         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6150         bug.
6151         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6152         as in _GL_FUNCDECL_SYS.
6153         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6154         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6155
6156 2011-04-15  Eric Blake  <eblake@redhat.com>
6157
6158         strchrnul: work around cygwin bug
6159         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6160         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6162         * modules/string (Makefile.am): Substitute it.
6163         * lib/string.in.h (strchrnul): Use it.
6164
6165 2011-04-15  Bruno Haible  <bruno@clisp.org>
6166
6167         Don't require lib/stdio-write.c when only module 'stdio' is used.
6168         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6169         invocation.
6170         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6171
6172 2011-04-14  Bruno Haible  <bruno@clisp.org>
6173
6174         Support non-blocking pipe I/O in read() on native Windows.
6175         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6176         (read): New declaration.
6177         * lib/read.c: New file.
6178         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6179         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6180         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6181         vscanf): New declarations.
6182         * lib/stdio-read.c: New file.
6183         * m4/read.m4: New file.
6184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6185         REPLACE_READ.
6186         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6187         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6188         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6189         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6190         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6191         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6192         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6193         * modules/read: New file.
6194         * modules/nonblocking (Files): Add lib/stdio-read.c.
6195         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6196         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6197         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6198         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6199         * modules/pread (Depends-on): Add read.
6200         * modules/safe-read (Depends-on): Likewise.
6201         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6202         gets, scanf, vfscanf, vscanf): Verify signatures.
6203         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6204         problem with non-blocking pipes.
6205         * doc/posix-functions/fgetc.texi: Likewise.
6206         * doc/posix-functions/fgets.texi: Likewise.
6207         * doc/posix-functions/fread.texi: Likewise.
6208         * doc/posix-functions/fscanf.texi: Likewise.
6209         * doc/posix-functions/getc.texi: Likewise.
6210         * doc/posix-functions/getchar.texi: Likewise.
6211         * doc/posix-functions/gets.texi: Likewise.
6212         * doc/posix-functions/scanf.texi: Likewise.
6213         * doc/posix-functions/vfscanf.texi: Likewise.
6214         * doc/posix-functions/vscanf.texi: Likewise.
6215
6216 2011-04-14  Bruno Haible  <bruno@clisp.org>
6217
6218         Support non-blocking pipe I/O in write() on native Windows.
6219         * lib/write.c (rpl_write): Split a write request that failed merely
6220         because the byte count was larger than the pipe buffer's size.
6221         * doc/posix-functions/write.texi: Mention the problem with large byte
6222         counts.
6223
6224 2011-04-14  Bruno Haible  <bruno@clisp.org>
6225
6226         wchar: Ensure that wchar_t gets defined on uClibc.
6227         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6228         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6229
6230 2011-04-13  Bruno Haible  <bruno@clisp.org>
6231
6232         safe-write, full-read: Avoid unnecessary compilation units.
6233         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6234         (Depends-on): Remove safe-read. Add ssize_t.
6235         * modules/full-read (Files): Add lib/full-write.c.
6236         (Depends-on): Add full-write.
6237
6238 2011-04-13  Bruno Haible  <bruno@clisp.org>
6239
6240         Support non-blocking pipe I/O and SIGPIPE in pwrite().
6241         * modules/pwrite (Depends-on): Add 'write'.
6242
6243 2011-04-13  Bruno Haible  <bruno@clisp.org>
6244
6245         Support non-blocking pipe I/O in write() on native Windows.
6246         * lib/unistd.in.h (write): Enable replacement also if
6247         GNULIB_UNISTD_H_NONBLOCKING is 1.
6248         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
6249         (rpl_write): When failing to write on a non-blocking pipe, change
6250         errno from ENOSPC to EAGAIN.
6251         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
6252         putchar, puts, vfprintf, vprintf): Enable replacement also if
6253         GNULIB_STDIO_H_NONBLOCKING is 1.
6254         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
6255         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
6256         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
6257         CALL_WITH_SIGPIPE_EMULATION.
6258         (CALL_WITH_SIGPIPE_EMULATION): Use them.
6259         * m4/nonblocking.m4: New file.
6260         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
6261         for non-blocking I/O support.
6262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6263         GNULIB_UNISTD_H_NONBLOCKING.
6264         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
6265         required for non-blocking I/O support.
6266         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
6267         * modules/nonblocking (Files): Add m4/nonblocking.m4,
6268         lib/stdio-write.c, m4/asm-underscore.m4.
6269         (Depends-on): Add stdio, unistd.
6270         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
6271         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
6272         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
6273         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
6274         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
6275         problem with non-blocking pipes.
6276         * doc/posix-functions/fputc.texi: Likewise.
6277         * doc/posix-functions/fputs.texi: Likewise.
6278         * doc/posix-functions/fwrite.texi: Likewise.
6279         * doc/posix-functions/printf.texi: Likewise.
6280         * doc/posix-functions/putc.texi: Likewise.
6281         * doc/posix-functions/putchar.texi: Likewise.
6282         * doc/posix-functions/puts.texi: Likewise.
6283         * doc/posix-functions/vfprintf.texi: Likewise.
6284         * doc/posix-functions/vprintf.texi: Likewise.
6285         * doc/posix-functions/write.texi: Likewise.
6286
6287 2011-04-10  Jim Meyering  <meyering@redhat.com>
6288
6289         maint.mk: prohibit doubled words
6290         Detect them also when they're separated by a newline.
6291         There are 3 ways to customize it:
6292           - disable the test on a per file basis, as usual with rules using
6293             $(VC_LIST_EXCEPT)
6294           - replace the default doubled-word-selecting regexp (affects all files)
6295           - ignore a particular file-vs-doubled-word match
6296         I nearly used that last one to ignore the "is is" match in
6297         coreutils' NEWS file, since the text was "ls -is is ..."
6298         To do that, I would have added this line to cfg.mk:
6299           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
6300         but it would have ignored any "is is" match in NEWS.
6301         Low probability, but still...
6302         Instead, I changed the text, slightly:
6303           -  ls -is is now consistent with ls -lis in ignoring values returned
6304           +  "ls -is" is now consistent with ls -lis in ignoring values returned
6305         * top/maint.mk (prohibit_double_word_RE_): Provide default.
6306         (prohibit_doubled_word_): Define.
6307         (sc_prohibit_doubled_word): New rule.
6308         (sc_prohibit_the_the): Remove.  Subsumed by the above.
6309
6310 2011-04-10  Jim Meyering  <meyering@redhat.com>
6311
6312         maint: fix doubled-word typo in comment
6313         * m4/gethostname.m4: s/is is/it is/
6314         * m4/getdomainname.m4: Likewise.
6315
6316 2011-04-10  Jim Meyering  <meyering@redhat.com>
6317
6318         maint: remove doubled word: s/it it/it/
6319         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
6320
6321 2011-04-10  Jim Meyering  <meyering@redhat.com>
6322
6323         maint.mk: remove useless semicolon and backslash
6324         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
6325         semicolon and backslash.
6326
6327 2011-04-10  Bruno Haible  <bruno@clisp.org>
6328
6329         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6330         * modules/stdint-tests (Depends-on): Add wchar.
6331
6332 2011-04-10  Jim Meyering  <meyering@redhat.com>
6333
6334         maint: remove doubled words in comments, e.g., s/a a/a/
6335         * lib/strptime.c (day_of_the_week): s/the the/the/
6336         * tests/test-chown.h (test_chown): s/a a/a/
6337
6338         test-chown.h: correct a cast
6339         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6340         when the destination is a stat.st_gid.
6341
6342 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6343
6344         getaddrinfo: Fix test for sa_len member.
6345         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6346         include <sys/types.h> before <sys/socket.h>.
6347
6348 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6349
6350         maint: change "can not" to "cannot"
6351         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6352         boundaries.
6353
6354 2011-04-09  Jim Meyering  <meyering@redhat.com>
6355
6356         maint: change "a a" to "a"
6357         * tests/test-lchown.h (test_lchown): s/a a/a/
6358
6359         maint.mk: prohibit \<the the\>
6360         * top/maint.mk (sc_prohibit_the_the): New rule.
6361
6362         maint: fix "the the" in comment
6363         * lib/count-one-bits.h: s/the the/the/
6364
6365         maint: change "can not" to "cannot"
6366         But do not change the occurrences in maintain.texi or in
6367         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6368         * doc/gnulib-tool.texi: s/can not/cannot/
6369         * doc/posix-functions/accept.texi (accept): Likewise.
6370         * doc/posix-functions/socket.texi (socket): Likewise.
6371         * lib/mbrtowc.c: Likewise.
6372
6373         maint.mk: prohibit use of "can not"
6374         * top/maint.mk (sc_prohibit_can_not): New rule.
6375         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6376
6377 2011-04-09  Bruno Haible  <bruno@clisp.org>
6378
6379         careadlinkat: Guard against misuse of careadlinkatcwd.
6380         * lib/careadlinkat.c: Include <stdlib.h>.
6381         (careadlinkatcwd): Check that the fd argument is as expected.
6382
6383 2011-04-09  Bruno Haible  <bruno@clisp.org>
6384
6385         careadlinkat: Use common coding style.
6386         * lib/careadlinkat.c: Move gnulib includes after system includes.
6387
6388 2011-04-09  Bruno Haible  <bruno@clisp.org>
6389
6390         careadlinkat: Clarify specification.
6391         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6392         (careadlinkatcwd): Add comment.
6393         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6394
6395 2011-04-09  Bruno Haible  <bruno@clisp.org>
6396
6397         areadlinkat: Avoid link error on many platforms.
6398         * modules/areadlinkat (Depends-on): Add areadlink.
6399
6400 2011-04-09  Bruno Haible  <bruno@clisp.org>
6401
6402         allocator, careadlinkat: Fix double-inclusion guard.
6403         * lib/allocator.h: Fix double-inclusion guard.
6404         * lib/careadlinkat.h: Likewise.
6405
6406 2011-04-09  Bruno Haible  <bruno@clisp.org>
6407
6408         relocatable-prog-wrapper: Update after module 'areadlink' changed.
6409         * lib/relocwrapper.c: Update dependencies hierarchy.
6410         * build-aux/install-reloc: Update list of files to be compiled.
6411         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
6412         lib/allocator.[hc].
6413
6414 2011-04-08  Eric Blake  <eblake@redhat.com>
6415
6416         strftime: silence gnulib-tool warning
6417         * modules/strftime-tests (Depends-on): Drop automatic dependency.
6418
6419 2011-04-08  Bruno Haible  <bruno@clisp.org>
6420
6421         verify: Fix syntax error with GCC 4.6 in C++ mode.
6422         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
6423         (HAVE_STATIC_ASSERT): New macro.
6424         (verify_true, verify): Use 'static_assert' if it is supported and
6425         '_Static_assert' is not supported.
6426
6427 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6428
6429         allocator: New module.
6430         * modules/allocator, lib/allocator.c: New files.
6431         * lib/allocator.h (stdlib_allocator): New decl.
6432         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
6433         Remove.  Do not include <stdlib.h>.
6434         (careadlinkat): Use stdlib_allocator instead of rolling our own.
6435         * modules/careadlinkat (Files): Remove lib/allocator.h.
6436         (Depends-on): Add allocator.
6437
6438         stdlib: let modules use system malloc, realloc
6439         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
6440         if !_GL_USE_STDLIB_ALLOC.
6441         (malloc, realloc): Limit this change to a smaller scope.
6442
6443         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
6444         (malloc, realloc): Don't #undef; no longer needed.
6445         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6446         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6447         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6448         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6449         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6450         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6451         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6452         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6453
6454         careadlinkat: rename members to avoid problem
6455         * lib/allocator.h (struct allocator): Rename members from
6456         malloc/realloc to allocate/reallocate, to avoid problems if malloc
6457         and realloc are #define'd.  Reported by Eric Blake in
6458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
6459         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
6460
6461 2011-04-08  Eric Blake  <eblake@redhat.com>
6462
6463         nonblocking: reduce dependency
6464         * tests/test-nonblocking.c: Only test sockets when in use.
6465         * modules/nonblocking-tests (Depends-on): Drop socket.
6466         (Makefile.am): Link even if sockets are not present.
6467         * modules/pipe2-tests (Makefile.am): Likewise.
6468         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
6469
6470         pipe2: fix O_NONBLOCK support on mingw
6471         * modules/pipe2 (Depends-on): Add nonblocking.
6472         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
6473         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
6474         * tests/test-nonblocking.c (main): Likewise.
6475         * modules/pipe2-tests (Makefile.am): Avoid link failure.
6476
6477         fcntl-h: fix O_ACCMODE on cygwin
6478         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
6479         * lib/fcntl.in.h (O_ACCMODE): Fix it.
6480
6481         pipe-filter: drop O_NONBLOCK workarounds
6482         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
6483         * modules/pipe-filter-ii (Depends-on): Likewise.
6484         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
6485
6486         nonblocking: provide O_NONBLOCK for mingw
6487         * modules/nonblocking (Depends-on): Add open.
6488         (configure.ac): Set new witness macro.
6489         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
6490         * modules/fcntl-h (Makefile.am): Substitute it.
6491         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
6492         nonblocking module is in use.
6493         * lib/nonblocking.c: Adjust portability test.
6494         * lib/open.c (open): Don't let native open see gnulib flag.
6495         * tests/test-fcntl-h.c (main): Enhance test.
6496         * tests/test-open.h (test_open): Likewise.
6497         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
6498
6499         careadlinkat: fix compilation error on mingw
6500         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
6501         within struct allocator.
6502
6503 2011-04-06  Eric Blake  <eblake@redhat.com>
6504
6505         binary-io: relicense under LGPLv2+
6506         * modules/binary-io (License): Relax to LGPLv2+.
6507         Requested for libvirt, and required by pipe2.
6508
6509 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6510
6511         verify: use _Static_assert if available
6512         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
6513         (verify_true, verify): Use it if available.  This generates better
6514         diagnostics with GCC 4.6.0 and later.
6515
6516 2011-04-05  Bruno Haible  <bruno@clisp.org>
6517
6518         Remove leftover generated .h files after config.status changed.
6519
6520         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
6521         GL_GENERATE_ALLOCA_H.
6522         * modules/alloca-opt (Makefile.am): Remove alloca.h if
6523         GL_GENERATE_ALLOCA_H evaluates to false.
6524
6525         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
6526         GL_GENERATE_ARGZ_H.
6527         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
6528         evaluates to false.
6529
6530         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
6531         GL_GENERATE_BYTESWAP_H.
6532         * modules/byteswap (Makefile.am): Remove byteswap.h if
6533         GL_GENERATE_BYTESWAP_H evaluates to false.
6534
6535         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
6536         GL_GENERATE_ERRNO_H.
6537         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
6538         evaluates to false.
6539
6540         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
6541         GL_GENERATE_FLOAT_H.
6542         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
6543         evaluates to false.
6544
6545         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
6546         GL_GENERATE_FNMATCH_H.
6547         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
6548         GL_GENERATE_FNMATCH_H evaluates to false.
6549
6550         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
6551         GL_GENERATE_GLOB_H.
6552         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
6553         evaluates to false.
6554
6555         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
6556         automake conditional GL_GENERATE_ICONV_H.
6557         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
6558         evaluates to false.
6559
6560         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
6561         GL_GENERATE_NETINET_IN_H.
6562         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
6563         GL_GENERATE_NETINET_IN_H evaluates to false.
6564
6565         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
6566         conditional GL_GENERATE_PTHREAD_H.
6567         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
6568         * modules/pthread (Makefile.am): Remove pthread.h if
6569         GL_GENERATE_PTHREAD_H evaluates to false.
6570
6571         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
6572         GL_GENERATE_SCHED_H.
6573         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
6574         evaluates to false.
6575
6576         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
6577         conditional GL_GENERATE_SELINUX_CONTEXT_H.
6578         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
6579         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
6580
6581         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
6582         GL_GENERATE_STDARG_H.
6583         * modules/stdarg (Makefile.am): Remove stdarg.h if
6584         GL_GENERATE_STDARG_H evaluates to false.
6585
6586         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
6587         GL_GENERATE_STDBOOL_H.
6588         * modules/stdbool (Makefile.am): Remove stdbool.h if
6589         GL_GENERATE_STDBOOL_H evaluates to false.
6590
6591         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
6592         conditional GL_GENERATE_STDDEF_H.
6593         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
6594         * modules/stddef (Makefile.am): Remove stddef.h if
6595         GL_GENERATE_STDDEF_H evaluates to false.
6596
6597         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
6598         GL_GENERATE_STDINT_H.
6599         * modules/stdint (Makefile.am): Remove stdint.h if
6600         GL_GENERATE_STDINT_H evaluates to false.
6601
6602         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
6603         GL_GENERATE_SYSEXITS_H.
6604         * modules/sysexits (Makefile.am): Remove sysexits.h if
6605         GL_GENERATE_SYSEXITS_H evaluates to false.
6606
6607         Reported by Karl Berry and Ralf Wildenhues.
6608
6609 2011-04-05  Bruno Haible  <bruno@clisp.org>
6610
6611         Ensure to rebuild generated .h files when config.status has changed.
6612         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
6613         config.status.
6614         * modules/ctype (Makefile.am): Likewise.
6615         * modules/dirent (Makefile.am): Likewise.
6616         * modules/errno (Makefile.am): Likewise.
6617         * modules/fcntl-h (Makefile.am): Likewise.
6618         * modules/float (Makefile.am): Likewise.
6619         * modules/getopt-posix (Makefile.am): Likewise.
6620         * modules/glob (Makefile.am): Likewise.
6621         * modules/iconv-h (Makefile.am): Likewise.
6622         * modules/inttypes (Makefile.am): Likewise.
6623         * modules/langinfo (Makefile.am): Likewise.
6624         * modules/locale (Makefile.am): Likewise.
6625         * modules/math (Makefile.am): Likewise.
6626         * modules/netdb (Makefile.am): Likewise.
6627         * modules/netinet_in (Makefile.am): Likewise.
6628         * modules/poll-h (Makefile.am): Likewise.
6629         * modules/pthread (Makefile.am): Likewise.
6630         * modules/pty (Makefile.am): Likewise.
6631         * modules/sched (Makefile.am): Likewise.
6632         * modules/search (Makefile.am): Likewise.
6633         * modules/selinux-h (Makefile.am): Likewise.
6634         * modules/signal (Makefile.am): Likewise.
6635         * modules/spawn (Makefile.am): Likewise.
6636         * modules/stdarg (Makefile.am): Likewise.
6637         * modules/stdbool (Makefile.am): Likewise.
6638         * modules/stddef (Makefile.am): Likewise.
6639         * modules/stdint (Makefile.am): Likewise.
6640         * modules/stdio (Makefile.am): Likewise.
6641         * modules/stdlib (Makefile.am): Likewise.
6642         * modules/string (Makefile.am): Likewise.
6643         * modules/strings (Makefile.am): Likewise.
6644         * modules/sys_file (Makefile.am): Likewise.
6645         * modules/sys_ioctl (Makefile.am): Likewise.
6646         * modules/sys_select (Makefile.am): Likewise.
6647         * modules/sys_socket (Makefile.am): Likewise.
6648         * modules/sys_stat (Makefile.am): Likewise.
6649         * modules/sys_time (Makefile.am): Likewise.
6650         * modules/sys_times (Makefile.am): Likewise.
6651         * modules/sys_utsname (Makefile.am): Likewise.
6652         * modules/sys_wait (Makefile.am): Likewise.
6653         * modules/sysexits (Makefile.am): Likewise.
6654         * modules/termios (Makefile.am): Likewise.
6655         * modules/time (Makefile.am): Likewise.
6656         * modules/unistd (Makefile.am): Likewise.
6657         * modules/wchar (Makefile.am): Likewise.
6658         * modules/wctype-h (Makefile.am): Likewise.
6659         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
6660
6661 2011-04-05  Bruno Haible  <bruno@clisp.org>
6662
6663         pipe2: Relicense under LGPLv2+.
6664         * modules/pipe2 (License): Change to LGPLv2+.
6665         Requested by Eric Blake, for libvirt.
6666
6667 2011-04-05  Bruce Korb  <bkorb@gnu.org>
6668
6669         bootstrap: compute gnulib_extra_files after updating build_aux
6670         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
6671         change build_aux or also supply gnulib_extra_files.  Handle correctly.
6672
6673 2011-04-05  Eric Blake  <eblake@redhat.com>
6674
6675         bootstrap: preserve git whitelist item sorting
6676         * build-aux/bootstrap (sort_patterns): New function.
6677         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
6678
6679 2011-04-05  Simon Josefsson  <simon@josefsson.org>
6680
6681         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
6682         sc_space_tab check.
6683
6684 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6685
6686         areadlink, areadlinkat: rewrite in terms of careadlinkat
6687         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
6688         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
6689         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
6690         (malloc, realloc): Remove #undefs.
6691         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
6692         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
6693         readlink, ssize_t, stdint, unistd.
6694         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
6695         areadlink, stdint.
6696
6697         careadlinkat: new module
6698         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
6699         * modules/careadlinkat: New files, written by me with
6700         a review and feedback from Ben Pfaff in
6701         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
6702
6703 2011-04-01  Bruno Haible  <bruno@clisp.org>
6704
6705         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
6706         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
6707         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
6708         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
6709         Reported by Bruce Korb <bruce.korb@gmail.com>.
6710
6711 2011-04-01  Bruno Haible  <bruno@clisp.org>
6712
6713         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
6714         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
6715         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
6716         * modules/wcpcpy (Depends-on): Add extensions.
6717         * modules/wcpncpy (Depends-on): Likewise.
6718         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
6719         systems.
6720         * doc/posix-functions/wcpncpy.texi: Likewise.
6721         * doc/posix-functions/wcwidth.texi: Likewise.
6722
6723 2011-03-31  Eric Blake  <eblake@redhat.com>
6724
6725         nonblocking: fix mingw test failures
6726         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
6727         non-blocking flag on regular file.
6728         (get_nonblocking_flag): Set errno on invalid fd.
6729         * tests/test-nonblocking.c (main): Avoid test failure on
6730         directories if fchdir is not active.
6731         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
6732
6733 2011-03-31  Bruno Haible  <bruno@clisp.org>
6734
6735         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
6736         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
6737         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
6738         Reported by Simon Josefsson <simon@josefsson.org>.
6739
6740 2011-03-31  Bruno Haible  <bruno@clisp.org>
6741         and Eric Blake  <eblake@redhat.com>
6742
6743         nonblocking: new module
6744         * modules/nonblocking: New module.
6745         * modules/nonblocking-tests: Likewise.
6746         * lib/nonblocking.h: New file.
6747         * lib/nonblocking.c: Likewise.
6748         * tests/test-nonblocking.c: New test.
6749         * lib/ioctl.c (ioctl) [mingw]: Update comment.
6750
6751 2011-03-30  Bruno Haible  <bruno@clisp.org>
6752
6753         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
6754         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
6755         instead of 'printf' format for GCC >= 4.4.
6756         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
6757         (fprintf, printf, vfprintf, vprintf): Declare with
6758         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
6759         the system's vfprintf() function.
6760         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
6761
6762 2011-03-30  Eric Blake  <eblake@redhat.com>
6763
6764         passfd: fix scoping bug
6765         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
6766         before sendmsg/recvmsg.
6767
6768         passfd: standardize coding conventions
6769         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
6770         can be learned at compile time.
6771         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
6772         ifdefs.
6773         (sendfd, recvfd): Follow gnulib code conventions.
6774
6775         passfd: fix incorrect sendmsg arguments
6776         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
6777         incorrect msg_controllen value.
6778         * modules/passfd-tests (Depends-on): Check for alarm.
6779         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
6780         Reported by Bastien ROUCARIES.
6781
6782 2011-03-30  Bruno Haible  <bruno@clisp.org>
6783
6784         c-strcasestr: Relicense under LGPLv2+.
6785         * modules/c-strcasestr (License): Change to LGPLv2+.
6786         Requested by Eric Blake, for libvirt.
6787
6788 2011-03-30  Simon Josefsson  <simon@josefsson.org>
6789
6790         * users.txt: Add libidn2.  Fix libtasn1 link.
6791
6792 2011-03-30  Jim Meyering  <meyering@redhat.com>
6793
6794         tests: readlink* ("",... fails with EINVAL on newer kernels
6795         readlink and readlinkat have typically failed with ENOENT for
6796         the invalid, empty file name,  "".  However, with the advent
6797         of linux-2.6.39, they fail with EINVAL.
6798         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
6799         when operating on the empty file name.
6800         * tests/test-readlink.h (test_readlink): Likewise.
6801
6802 2011-03-29  Bruno Haible  <bruno@clisp.org>
6803
6804         Relicense some modules under LGPLv2+, for libidn2.
6805         * modules/array-mergesort (License): Change to LGPLv2+.
6806         * modules/c-strcaseeq (License): Likewise.
6807         * modules/striconveh (License): Likewise.
6808         * modules/striconveha (License): Likewise.
6809         * modules/uniconv/base (License): Likewise.
6810         * modules/uniconv/u8-conv-from-enc (License): Likewise.
6811         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
6812         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
6813         * modules/unictype/base (License): Likewise.
6814         * modules/unictype/bidiclass-of (License): Likewise.
6815         * modules/unictype/category-M (License): Likewise.
6816         * modules/unictype/category-none (License): Likewise.
6817         * modules/unictype/category-of (License): Likewise.
6818         * modules/unictype/category-test (License): Likewise.
6819         * modules/unictype/category-test-withtable (License): Likewise.
6820         * modules/unictype/combining-class (License): Likewise.
6821         * modules/unictype/joiningtype-of (License): Likewise.
6822         * modules/unictype/scripts (License): Likewise.
6823         * modules/uninorm/base (License): Likewise.
6824         * modules/uninorm/canonical-decomposition (License): Likewise.
6825         * modules/uninorm/composition (License): Likewise.
6826         * modules/uninorm/decompose-internal (License): Likewise.
6827         * modules/uninorm/decomposition-table (License): Likewise.
6828         * modules/uninorm/nfc (License): Likewise.
6829         * modules/uninorm/nfd (License): Likewise.
6830         * modules/uninorm/u32-normalize (License): Likewise.
6831         * modules/unistr/base (License): Likewise.
6832         * modules/unistr/u32-cpy (License): Likewise.
6833         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
6834         * modules/unistr/u32-to-u8 (License): Likewise.
6835         * modules/unistr/u32-uctomb (License): Likewise.
6836         * modules/unistr/u8-check (License): Likewise.
6837         * modules/unistr/u8-mblen (License): Likewise.
6838         * modules/unistr/u8-mbtouc (License): Likewise.
6839         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
6840         * modules/unistr/u8-mbtoucr (License): Likewise.
6841         * modules/unistr/u8-prev (License): Likewise.
6842         * modules/unistr/u8-strlen (License): Likewise.
6843         * modules/unistr/u8-to-u32 (License): Likewise.
6844         * modules/unistr/u8-uctomb (License): Likewise.
6845         * modules/unitypes (License): Likewise.
6846         Requested by Simon Josefsson.
6847
6848 2011-03-29  Simon Josefsson  <simon@josefsson.org>
6849
6850         lib-symbol-visibility: Add a notice.
6851         * modules/lib-symbol-visibility (Notice): New field.
6852
6853 2011-03-29  Bruno Haible  <bruno@clisp.org>
6854
6855         getaddrinfo: Doc fix.
6856         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
6857         section "fixed in Gnulib".
6858
6859 2011-03-28  Simon Josefsson  <simon@josefsson.org>
6860
6861         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
6862         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
6863
6864 2011-03-26  Bruno Haible  <bruno@clisp.org>
6865
6866         unictype/property-byname: Reduce the number of load-time relocations.
6867         * lib/unictype/pr_byname.c: Include <stdlib.h>.
6868         (UC_PROPERTY_INDEX_*): New enumeration values.
6869         (uc_property_byname): Convert an index from the lookup table to an
6870         uc_property_t.
6871         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
6872         values.
6873
6874 2011-03-26  Bruno Haible  <bruno@clisp.org>
6875
6876         unictype/property-byname: Allow omitted word separators and aliases.
6877         * lib/unictype/pr_byname.gperf: Add property names without word
6878         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
6879         for 'space'.
6880
6881 2011-03-26  Bruno Haible  <bruno@clisp.org>
6882
6883         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
6884         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
6885         also hyphens to space.
6886         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
6887         without spaces.
6888         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
6889
6890 2011-03-26  Bruno Haible  <bruno@clisp.org>
6891
6892         unictype/joiningtype-byname: Recognize long names as well.
6893         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
6894         a long name.
6895         * lib/unictype/joiningtype_byname.c: Include <string.h>,
6896         unictype/joiningtype_byname.h.
6897         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
6898         * lib/unictype/joiningtype_byname.gperf: New file.
6899         * modules/unictype/joiningtype-byname (Files): Add
6900         lib/unictype/joiningtype_byname.gperf.
6901         (Depends-on): Add gperf.
6902         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
6903         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
6904         long names.
6905
6906         Tests for module 'unictype/joiningtype-longname'.
6907         * modules/unictype/joiningtype-longname-tests: New file.
6908         * tests/unictype/test-joiningtype_longname.c: New file.
6909
6910         New module 'unictype/joiningtype-longname'.
6911         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
6912         * lib/unictype/joiningtype_longname.c: New file.
6913         * modules/unictype/joiningtype-longname: New file.
6914         * modules/unictype/joiningtype-all (Depends-on): Add
6915         unictype/joiningtype-longname.
6916
6917 2011-03-26  Bruno Haible  <bruno@clisp.org>
6918
6919         unictype/bidiclass-byname: Recognize long names as well.
6920         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
6921         name.
6922         * lib/unictype/bidi_byname.c: Include <string.h>,
6923         unictype/bidi_byname.h.
6924         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
6925         * lib/unictype/bidi_byname.gperf: New file.
6926         * modules/unictype/bidiclass-byname (Files): Add
6927         lib/unictype/bidi_byname.gperf.
6928         (Depends-on): Add gperf.
6929         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
6930         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
6931         long names.
6932
6933         Tests for module 'unictype/bidiclass-longname'.
6934         * modules/unictype/bidiclass-longname-tests: New file.
6935         * tests/unictype/test-bidi_longname.c: New file.
6936
6937         New module 'unictype/bidiclass-longname'.
6938         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
6939         * lib/unictype/bidi_longname.c: New file.
6940         * modules/unictype/bidiclass-longname: New file.
6941         * modules/unictype/bidiclass-all (Depends-on): Add
6942         unictype/bidiclass-longname.
6943
6944 2011-03-26  Bruno Haible  <bruno@clisp.org>
6945
6946         unictype/bidi*: Rename modules.
6947         * modules/unictype/bidiclass-all: Renamed from
6948         modules/unictype/bidicategory-all.
6949         * modules/unictype/bidiclass-name: Renamed from
6950         modules/unictype/bidiclass-name.
6951         (Description): Update.
6952         * modules/unictype/bidiclass-name-tests: Renamed from
6953         modules/unictype/bidicategory-name-tests.
6954         * modules/unictype/bidiclass-byname: Renamed from
6955         modules/unictype/bidicategory-byname.
6956         (Description): Update.
6957         * modules/unictype/bidiclass-byname-tests: Renamed from
6958         modules/unictype/bidicategory-byname-tests.
6959         * modules/unictype/bidiclass-of: Renamed from
6960         modules/unictype/bidicategory-of.
6961         (Description): Update.
6962         * modules/unictype/bidiclass-of-tests: Renamed from
6963         modules/unictype/bidicategory-of-tests.
6964         * modules/unictype/bidiclass-test: Renamed from
6965         modules/unictype/bidicategory-test.
6966         (Description): Update.
6967         * modules/unictype/bidiclass-test-tests: Renamed from
6968         modules/unictype/bidicategory-test-tests.
6969         * modules/unictype/bidicategory-all: New file, a simple redirection.
6970         * modules/unictype/bidicategory-name: Likewise.
6971         * modules/unictype/bidicategory-byname: Likewise.
6972         * modules/unictype/bidicategory-of: Likewise.
6973         * modules/unictype/bidicategory-test: Likewise.
6974         * modules/unictype/property-bidi-* (Dependencies): Update.
6975         * lib/unictype/bidi_*.c: Update comment.
6976
6977 2011-03-26  Bruno Haible  <bruno@clisp.org>
6978
6979         unictype/bidi*: Rename functions, part 2.
6980         * modules/unictype/bidicategory-name (configure.ac): Update required
6981         libunistring version.
6982         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
6983
6984 2011-03-25  Bruno Haible  <bruno@clisp.org>
6985
6986         New module 'unictype/combining-class-all'.
6987         * modules/unictype/combining-class-all: New file.
6988
6989         Tests for module 'unictype/combining-class-byname'.
6990         * modules/unictype/combining-class-byname-tests: New file.
6991         * tests/unictype/test-combiningclass_byname.c: New file.
6992
6993         New module 'unictype/combining-class-byname'.
6994         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
6995         * lib/unictype/combiningclass_byname.c: New file.
6996         * lib/unictype/combiningclass_byname.gperf: New file.
6997         * modules/unictype/combining-class-byname: New file.
6998
6999         Tests for module 'unictype/combining-class-longname'.
7000         * modules/unictype/combining-class-longname-tests: New file.
7001         * tests/unictype/test-combiningclass_longname.c: New file.
7002
7003         New module 'unictype/combining-class-longname'.
7004         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
7005         * lib/unictype/combiningclass_longname.c: New file.
7006         * modules/unictype/combining-class-longname: New file.
7007
7008         Tests for module 'unictype/combining-class-name'.
7009         * modules/unictype/combining-class-name-tests: New file.
7010         * tests/unictype/test-combiningclass_name.c: New file.
7011
7012         New module 'unictype/combining-class-name'.
7013         * lib/unictype.in.h (uc_combining_class_name): New declaration.
7014         * lib/unictype/combiningclass_name.c: New file.
7015         * modules/unictype/combining-class-name: New file.
7016
7017 2011-03-25  Bruno Haible  <bruno@clisp.org>
7018
7019         unictype/combining-class: Rename source files.
7020         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7021         of unictype/combining.h.
7022         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7023         Update.
7024         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7025         * modules/unictype/combining-class (Description): Fix.
7026         (Files, Makefile.am): Update.
7027         * tests/unictype/test-combiningclass.c: Renamed from
7028         tests/unictype/test-combining.c.
7029         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7030
7031 2011-03-25  Bruno Haible  <bruno@clisp.org>
7032
7033         unictype: Update list of canonical combining classes.
7034         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7035
7036 2011-03-25  Bruno Haible  <bruno@clisp.org>
7037
7038         unictype/category-byname: Recognize long names as well.
7039         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7040         a long name.
7041         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7042         unictype/categ_byname.h.
7043         (UC_CATEGORY_INDEX_*): New enumeration values.
7044         (uc_general_category_byname): Use uc_general_category_lookup and
7045         convert from index to value.
7046         * lib/unictype/categ_byname.gperf: New file.
7047         * modules/unictype/category-byname (Files): Add
7048         lib/unictype/categ_byname.gperf.
7049         (Depends-on): Add gperf.
7050         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7051         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7052         long names.
7053
7054         Tests for module 'unictype/category-longname'.
7055         * modules/unictype/category-longname-tests: New file.
7056         * tests/unictype/test-categ_longname.c: New file.
7057
7058         New module 'unictype/category-longname'.
7059         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7060         * lib/unictype/categ_longname.c: New file.
7061         * modules/unictype/category-longname: New file.
7062         * modules/unictype/category-all (Depends-on): Add it.
7063
7064 2011-03-25  Bruno Haible  <bruno@clisp.org>
7065
7066         Tests for module 'unictype/category-LC'.
7067         * modules/unictype/category-LC-tests: New file.
7068         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7069
7070         New module 'unictype/category-LC'.
7071         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7072         (UC_CATEGORY_LC): New declaration.
7073         (UC_CASED_LETTER): New macro.
7074         * lib/gen-uni-tables.c (is_category_LC): New function.
7075         (output_categories): Also handle category LC.
7076         (UC_CATEGORY_MASK_LC): New enumeration value.
7077         (general_category_byname): Also handle category LC.
7078         * lib/unictype/categ_LC.c: New file.
7079         * lib/unictype/categ_LC.h: New file, automatically generated.
7080         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7081         category LC.
7082         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7083         * modules/unictype/category-LC: New file.
7084         * modules/unictype/category-byname (Depends-on): Add
7085         unictype/category-LC.
7086         * modules/unictype/category-all (Depends-on): Likewise.
7087
7088 2011-03-25  Eric Blake  <eblake@redhat.com>
7089
7090         xmalloc: revert yesterday's regression
7091         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7092         realloc's underlying behavior (allowing allocation of zero-size
7093         objects, especially if malloc-gnu is also in use).
7094
7095 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7096
7097         maint.mk: add missing version to VC-tag
7098         * top/maint.mk: git tag was missing actual tag name; add it.
7099
7100         valgrind: do leak checking, and exit with code 1 on error (not 0)
7101         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7102         to VALGRIND.
7103
7104 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7105
7106         posix-modules: say what it does.
7107         * posix-modules: Add a line to the --help output saying what it does.
7108
7109 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7110
7111         xmalloc: Do not leak if underlying realloc is C99 compatible.
7112         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7113         This avoids a leak on C99-based systems.  See
7114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7115
7116 2011-03-24  Eric Blake  <eblake@redhat.com>
7117
7118         realloc: document portability problem
7119         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7120         passing 0 size to realloc.
7121
7122 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7123
7124         doc: update users.txt
7125         * users.txt: Add cvsps, tmpwatch
7126
7127 2011-03-23  Matt Rice  <ratmice@gmail.com>
7128
7129         doc: update users.txt
7130         * users.txt: Add gdb.
7131
7132 2011-03-23  Jim Meyering  <meyering@redhat.com>
7133
7134         doc: update users.txt
7135         Looking through matches up to the following URL (there are still
7136         several more pages), I found several projects that use gnulib:
7137         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7138         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7139         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7140
7141 2011-03-22  Bruno Haible  <bruno@clisp.org>
7142
7143         unictype/bidi*: Rename functions.
7144         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7145         uc_bidi_class, uc_is_bidi_class): New declarations.
7146         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7147         uc_bidi_category_byname.
7148         (uc_bidi_category_byname): New function.
7149         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7150         u_bidi_category_name.
7151         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7152         (uc_bidi_category_name): New function.
7153         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7154         uc_bidi_category.
7155         (uc_bidi_category): New function.
7156         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7157         uc_is_bidi_category. Invoke uc_bidi_class.
7158         (uc_is_bidi_category): New function.
7159         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7160         instead of uc_bidi_category_byname.
7161         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7162         instead of uc_bidi_category_name.
7163         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7164         uc_bidi_category.
7165         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7166         instead of uc_is_bidi_category.
7167
7168 2011-03-21  Bruno Haible  <bruno@clisp.org>
7169
7170         New module 'unictype/joininggroup-all'.
7171         * modules/unictype/joininggroup-all: New file.
7172
7173         Tests for module 'unictype/joininggroup-of'.
7174         * modules/unictype/joininggroup-of-tests: New file.
7175         * tests/unictype/test-joininggroup_of.c: New file.
7176         * tests/unictype/test-joininggroup_of.h: New file, automatically
7177         generated by gen-uni-tables.
7178
7179         New module 'unictype/joininggroup-of'.
7180         * modules/unictype/joininggroup-of: New file.
7181         * lib/unictype/joininggroup_of.c: New file.
7182         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7183         gen-uni-tables.
7184
7185         Tests for module 'unictype/joininggroup-byname'.
7186         * modules/unictype/joininggroup-byname-tests: New file.
7187         * tests/unictype/test-joininggroup_byname.c: New file.
7188
7189         New module 'unictype/joininggroup-byname'.
7190         * modules/unictype/joininggroup-byname: New file.
7191         * lib/unictype/joininggroup_byname.c: New file.
7192         * lib/unictype/joininggroup_byname.gperf: New file.
7193
7194         Tests for module 'unictype/joininggroup-name'.
7195         * modules/unictype/joininggroup-name-tests: New file.
7196         * tests/unictype/test-joininggroup_name.c: New file.
7197
7198         New module 'unictype/joininggroup-name'.
7199         * modules/unictype/joininggroup-name: New file.
7200         * lib/unictype/joininggroup_name.c: New file.
7201         * lib/unictype/joininggroup_name.h: New file.
7202
7203         New module 'unictype/joiningtype-all'.
7204         * modules/unictype/joiningtype-all: New file.
7205
7206         Tests for module 'unictype/joiningtype-of'.
7207         * modules/unictype/joiningtype-of-tests: New file.
7208         * tests/unictype/test-joiningtype_of.c: New file.
7209         * tests/unictype/test-joiningtype_of.h: New file, automatically
7210         generated by gen-uni-tables.
7211
7212         New module 'unictype/joiningtype-of'.
7213         * modules/unictype/joiningtype-of: New file.
7214         * lib/unictype/joiningtype_of.c: New file.
7215         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7216         gen-uni-tables.
7217
7218         Tests for module 'unictype/joiningtype-byname'.
7219         * modules/unictype/joiningtype-byname-tests: New file.
7220         * tests/unictype/test-joiningtype_byname.c: New file.
7221
7222         New module 'unictype/joiningtype-byname'.
7223         * modules/unictype/joiningtype-byname: New file.
7224         * lib/unictype/joiningtype_byname.c: New file.
7225
7226         Tests for module 'unictype/joiningtype-name'.
7227         * modules/unictype/joiningtype-name-tests: New file.
7228         * tests/unictype/test-joiningtype_name.c: New file.
7229
7230         New module 'unictype/joiningtype-name'.
7231         * modules/unictype/joiningtype-name: New file.
7232         * lib/unictype/joiningtype_name.c: New file.
7233
7234         unictype: Add support for Arabic shaping properties.
7235         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7236         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
7237         declarations.
7238         (UC_JOINING_GROUP_*): New enumeration values.
7239         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
7240         declarations.
7241         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
7242         (unicode_joining_type): New variable.
7243         (UC_JOINING_GROUP_*): New enumeration values.
7244         (unicode_joining_group): New variable.
7245         (fill_arabicshaping, joining_type_as_c_identifier,
7246         output_joining_type_test, output_joining_type,
7247         joining_group_as_c_identifier, output_joining_group_test,
7248         output_joining_group): New functions.
7249         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
7250         fill_arabicshaping and output_joining_type_test, output_joining_type,
7251         output_joining_group_test, output_joining_group.
7252         Reported by Simon Josefsson.
7253
7254 2011-03-21  Jim Meyering  <meyering@redhat.com>
7255
7256         strftime: fix a bug in yesterday's change
7257         * lib/strftime.c (add): Accommodate width's initial value of -1.
7258         Otherwise, nstrftime would copy uninitialized data into
7259         the result buffer.
7260
7261 2011-03-21  Jim Meyering  <meyering@redhat.com>
7262
7263         tests: add strftime-tests module
7264         * tests/test-strftime.c: New file.
7265         * modules/strftime-tests: New module.
7266
7267 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7268
7269         strftime: don't assume a byte count fits in 'int'
7270         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
7271         found this problem by static analysis, using gcc -Wstrict-overflow
7272         (GCC 4.5.2, x86-64).  This reported an optimization that depended
7273         on an integer overflow having undefined behavior, but it turns out
7274         that the argument is a size, which might not fit in 'int' anyway,
7275
7276 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7277
7278         stdio: don't require ignore_value around fwrite
7279
7280         This patch works around libc bug 11959
7281         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
7282         Without this patch, applications must often write
7283         ignore_value (fwrite (...)) even though the ignore_value is
7284         not helpful here.  It's common to write many objects, using
7285         fwrite/printf/etc., and then use ferror to detect output error.
7286
7287         I considered making this patch optional, but decided against it,
7288         because libc is obviously being inconsistent here: there is no
7289         reason libc should insist that user code must inspect fwrite
7290         return's value without also insisting that it inspect printf's,
7291         putchar's, etc.  If user code wants to have a strict style where
7292         all these functions' values are checked (so that ferror need not
7293         be checked), we could add support for that style in a new gnulib
7294         module, but in the meantime it's better to be consistent and to
7295         support common usage.
7296
7297         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
7298         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
7299         that we are compiling in checking mode, and if not C++, and
7300         if not already wrapping fwrite for some other reason.
7301         (fwrite): #define to rpl_fwrite if the latter is defined.
7302
7303 2011-03-20  Bruno Haible  <bruno@clisp.org>
7304
7305         verror: Fix compilation error introduced on 2011-02-13.
7306         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
7307         instead of __attribute__.
7308         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7309
7310 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7311             Bruno Haible  <bruno@clisp.org>
7312
7313         socklen: do not depend on sys_socket
7314         While trying to modify Emacs to use gnulib's socklen module,
7315         I discovered a circular dependency: socklen depends on sys_socket
7316         and vice versa.  Emacs can use socklen, but it does not need
7317         sys_socket because it has its own substitute for sys/socket.h.
7318         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
7319         gl_TYPE_SOCKLEN_T.
7320         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
7321         gl_PREREQ_SYS_H_SOCKET.
7322         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
7323         gl_PREREQ_SYS_H_SOCKET.
7324         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
7325         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
7326         * modules/socklen (Depends-on): Do not depend on sys_socket.
7327         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7328
7329 2011-03-20  Jim Meyering  <meyering@redhat.com>
7330
7331         maint.mk: sort file names *after* new transformation
7332         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7333         prefix would have led to an unwarranted failure in GNU parted.
7334         Sort after that transformation.
7335
7336 2011-03-19  Jim Meyering  <meyering@redhat.com>
7337
7338         maint.mk: fix po-file syntax-check rule
7339         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7340         Patch by Bruno Haible.
7341
7342 2011-03-19  Bruno Haible  <bruno@clisp.org>
7343
7344         socklen: Update comment.
7345         * m4/socklen.m4: Update comment about platforms.
7346
7347 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7348             Bruno Haible  <bruno@clisp.org>
7349
7350         inet_ntop, inet_pton: Simplify.
7351         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7352         documented to provide socklen_t and we already depend on sys_socket.
7353         * modules/inet_pton (Depends-on): Likewise.
7354         * lib/arpa_inet.in.h: Adjust comment.
7355
7356 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7357             Bruno Haible  <bruno@clisp.org>
7358
7359         netdb: Simplify.
7360         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7361         documented to provide socklen_t and we already depend on sys_socket.
7362         * lib/netdb.in.h: Adjust comment.
7363
7364 2011-03-19  Bruno Haible  <bruno@clisp.org>
7365
7366         sys_socket, netdb: Document problem with socklen_t.
7367         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7368         platforms.
7369         * doc/posix-headers/netdb.texi: Likewise.
7370
7371 2011-03-18  Eric Blake  <eblake@redhat.com>
7372
7373         maint.mk: let po check work in VPATH build
7374         * top/maint.mk (po_file): Allow cfg.mk override.
7375         (sc_po_check): Allow VPATH use.
7376         Reported by Jiri Denemark.
7377
7378 2011-03-16  Jim Meyering  <meyering@redhat.com>
7379
7380         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7381         Before, you would have had to create one .x-sc_ file per rule in order
7382         to exempt offending files.  Now, you may instead use a Make variable --
7383         usually defined in cfg.mk -- whose name identifies the affected rule.
7384         * top/maint.mk (_sc_excl): Define.
7385         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7386         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7387
7388 2011-03-13  Bruno Haible  <bruno@clisp.org>
7389
7390         ignore-value tests: Avoid warnings.
7391         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7392         empty for gcc < 3.4.
7393
7394 2011-03-13  Bruno Haible  <bruno@clisp.org>
7395
7396         passfd: Fix link error on Solaris.
7397         * modules/passfd (Description): Correct.
7398         (Depends-on): Add socketlib.
7399         (Link): New section.
7400         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7401
7402 2011-03-13  Bruno Haible  <bruno@clisp.org>
7403
7404         passfd: Fix link error on AIX 5.2.
7405         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
7406
7407 2011-03-13  Bruno Haible  <bruno@clisp.org>
7408
7409         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
7410         * lib/sys_socket.in.h: Include <stddef.h>.
7411         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
7412         CMSG_FIRSTHDR. Remove unused variable.
7413
7414 2011-03-13  Bruno Haible  <bruno@clisp.org>
7415
7416         passfd: Fix compilation error on OpenBSD.
7417         * lib/passfd.c: Include <sys/uio.h>.
7418
7419 2011-03-13  Bruno Haible  <bruno@clisp.org>
7420
7421         passfd test: Fix warnings.
7422         * tests/test-passfd.c: Include <sys/wait.h>.
7423         (main): Fix typo.
7424
7425 2011-03-13  Bruno Haible  <bruno@clisp.org>
7426
7427         passfd module, part 4, tweaks.
7428         * tests/test-passfd.c: Reorder includes.
7429         (main): Fix perror and printf calls.
7430
7431 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7432
7433         passfd module, part 4.
7434         * modules/passfd-tests: New file.
7435         * tests/test-passfd.c: New file.
7436
7437 2011-03-13  Jim Meyering  <meyering@redhat.com>
7438
7439         Makefile: rely on GNU make; derive syntax-check rule names
7440         Rather than requiring that each sc_ rule be listed as a dependent
7441         of "check", use features of GNU make to derive the list.
7442         * Makefile (syntax-check-rules): Define.
7443         (check): Depend on the new variable, not the hard-coded list.
7444
7445 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
7446             Bruno Haible  <bruno@clisp.org>
7447
7448         passfd module, part 3.
7449         * lib/passfd.h (recvfd): Add a flags argument.
7450         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
7451         (recvfd): Add a flags argument.
7452         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
7453         exists.
7454         * modules/passfd (Depends-on): Add cloexec.
7455         Suggested by Eric Blake.
7456
7457 2011-03-13  Bruno Haible  <bruno@clisp.org>
7458
7459         passfd module, part 2, tweaks.
7460         * modules/passfd (Files): Reorder.
7461         (Depends-on): Remove errno.
7462         (Include): Remove <sys/socket.h>, <sys/un.h>.
7463         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
7464         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
7465         specification header. Include <sys/socket.h> always. Don't include
7466         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
7467         (sendfd): Clarify that it sets errno when it fails.
7468         (recvfd): Fix specification.
7469
7470 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7471
7472         passfd module, part 2.
7473         * modules/passfd: New file.
7474         * lib/passfd.h: New file.
7475         * lib/passfd.c: New file.
7476
7477 2011-03-12  Bruno Haible  <bruno@clisp.org>
7478
7479         wcswidth, mbswidth: Avoid integer overflow.
7480         * lib/wcswidth.c: Include <limits.h>.
7481         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
7482         * lib/mbswidth.c: Include <limits.h>.
7483         (mbsnwidth): Avoid 'int' overflow.
7484         Reported by Jim Meyering.
7485
7486 2011-03-12  Bruno Haible  <bruno@clisp.org>
7487
7488         futimens, utimensat: Avoid endless recursion on Solaris 10.
7489         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
7490         Solaris.
7491         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
7492         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
7493
7494 2011-03-11  Jim Meyering  <meyering@redhat.com>
7495
7496         maint.mk: relax a regexp to accommodate other formatting styles
7497         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
7498         between "ngettext" and the following "(".
7499
7500 2011-03-11  Pádraig Brady <P@draigBrady.com>
7501
7502         maint.mk: suppress a false positive warning
7503         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
7504         diagnostics are marked with ngettext.
7505
7506 2011-03-10  Eric Blake  <eblake@redhat.com>
7507
7508         wchar: add explicit dependencies, for Tru64
7509         * modules/mbmemcasecoll (Depends-on): Add wchar.
7510         * modules/mbtowc (Depends-on): Likewise.
7511         * modules/vasnprintf (Depends-on): Likewise.
7512         * modules/unistdio/u-printf-args (Depends-on): Likewise.
7513         * modules/wctomb (Depends-on): Likewise.
7514         Reported by Peter O'Gorman.
7515
7516 2011-03-08  Bruno Haible  <bruno@clisp.org>
7517
7518         passfd module, part 1, tweaks.
7519         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
7520         Improve indentation. Improve AC_MSG_CHECKING messages.
7521         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
7522         gl_SOCKET_FAMILIES.
7523
7524 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7525
7526         passfd module, part 1.
7527         * m4/afunix.m4: New file.
7528         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
7529         sockets.
7530
7531 2011-03-08  Bruno Haible  <bruno@clisp.org>
7532
7533         regex-quote: New API.
7534         * lib/regex-quote.h: Include <stdbool.h>.
7535         (struct regex_quote_spec): New type.
7536         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7537         New declarations.
7538         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7539         'const struct regex_quote_spec *' argument.
7540         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
7541         (pcre_special): New constant.
7542         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7543         New functions.
7544         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7545         'const struct regex_quote_spec *' argument.
7546         * modules/regex-quote (Depends-on): Add stdbool.
7547         * tests/test-regex-quote.c (check): Update for new API. Add test for
7548         anchored results.
7549         * NEWS: Mention the API change.
7550         Reported by Reuben Thomas and Eric Blake.
7551
7552 2011-03-06  Bruno Haible  <bruno@clisp.org>
7553
7554         regex-quote: Fix creation of POSIX extended regular expressions.
7555         * lib/regex-quote.c (ere_special): Add grouping and alternation
7556         operators.
7557
7558 2011-03-05  Bruno Haible  <bruno@clisp.org>
7559
7560         doc: Improve doc regarding autopoint vs. gnulib.
7561         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
7562         disable autopoint while running autoreconf.
7563         Suggested by Ralf Wildenhues.
7564
7565 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7566
7567         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
7568         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
7569
7570 2011-03-03  Bruce Korb  <bkorb@gnu.org>
7571
7572         parse-duration: remove xalloc.h dependency
7573         * lib/parse-duration.c (parse_period): handle NULL return from
7574         strdup instead of calling xstrdup().
7575         * modules/parse-duration: remove "xalloc" dependency
7576
7577 2011-03-03  Matthew Booth  <mbooth@redhat.com>
7578
7579         bootstrap: honor m4_base when running aclocal
7580         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
7581
7582 2011-03-02  Jim Meyering  <meyering@redhat.com>
7583
7584         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
7585         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
7586         on request from Matt Booth.
7587
7588 2011-03-01  Eric Blake  <eblake@redhat.com>
7589
7590         test-link: work on Hurd
7591         * tests/test-link.h (test_link): Hurd rejects linking directories
7592         with EISDIR instead of the POSIX-mandated EPERM.
7593
7594 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
7595
7596         stdio: simplify by moving files to printf-posix, sigpipe
7597         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
7598         since this symbol is needed only if printf is replaced.
7599         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
7600         Require gl_ASM_SYMBOL_PREFIX.
7601         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
7602         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
7603         (Depends-on): Add 'raise'.
7604         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
7605         * modules/stdio (Files): Remove lib/stdio-write.c,
7606         m4/asm-underscore.m4.
7607         (Depends-on): Remove 'raise'.
7608
7609         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
7610         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
7611         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
7612         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
7613
7614 2011-02-28  Bruno Haible  <bruno@clisp.org>
7615
7616         localcharset: Assume ANSI C behaviour of free().
7617         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
7618         calling free().
7619         Suggested by Simon Josefsson <simon@josefsson.org>.
7620
7621 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
7622             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
7623             Bruno Haible  <bruno@clisp.org>  (tiny change)
7624
7625         On Cygwin, use /proc file system instead of win32 API.
7626         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
7627         Win32 file names.
7628         (DllMain): Simplify by removing Cygwin specific code.
7629         (find_shared_library_fullname): Use Linux specific implementation also
7630         for Cygwin.
7631         (get_shared_library_fullname): Update accordingly.
7632         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
7633         Win32 file names.
7634         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
7635         Cygwin specific code.
7636
7637 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
7638             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
7639
7640         Fix OpenMP flag detection for various Fortran compilers.
7641         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
7642         OpenMP-conditional compilation construct, to force compile
7643         failure with missing OpenMP flag.
7644         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
7645
7646 2011-02-25  Eric Blake  <eblake@redhat.com>
7647
7648         strstr: expand test coverage
7649         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
7650         compilation.
7651         * tests/test-memmem.c (main): Duplicate tests.
7652         * tests/test-strcasestr.c (main): Likewise.
7653         * tests/test-c-strcasestr.c (main): Likewise.
7654
7655 2011-02-25  Jim Meyering  <meyering@redhat.com>
7656
7657         maint.mk: detect missing-NL-at-EOF, too
7658         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
7659         it also detects when a file lacks a newline at EOF.
7660         (require_exactly_one_NL_at_EOF_): Renamed from
7661         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
7662         since people may well have .x-sc_... file names tied to the
7663         existing name.  Suggested by Eric Blake.
7664
7665 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
7666
7667         dirname: move m4/dos.m4 functionality into lib/dosname.h
7668
7669         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
7670         extracts symbols from it, puts them into config.h; but it's much
7671         easier to use the symbols directly.  filename.h already does this,
7672         but it disagrees with dos.m4 in some respects.  This patch
7673         introduces a different include file dosname.h that packages up
7674         dos.m4, and then later we can work on merging filename.h and
7675         dosname.h.  Applications that need only the easy-to-configure
7676         symbols should consider including dosname.h rather than dirname.h.
7677         * NEWS: Mention incompatible changes.
7678         * m4/dos.m4: Remove.
7679         * lib/dosname.h, modules/dosname: New files.
7680         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
7681         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
7682         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
7683         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
7684         Include dosname.h, not dirname.h.
7685         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
7686         Include dosname.h, for definitions of symbols like ISSLASH
7687         that used to be in config.h.
7688         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
7689         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7690         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7691         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7692         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
7693         * modules/rmdir (Files): Likewise.
7694         * modules/stat (Files): Likewise.
7695         * modules/unlink (Files): Likewise.
7696         * modules/dirname-lgpl (Depends-on): Add dosname.
7697         * modules/lstat (Depends-on): Likewise.
7698         * modules/openat (Depends-on): Likewise.
7699         * modules/rmdir (Depends-on): Likewise.
7700         * modules/savewd (Depends-on): Likewise.
7701         * modules/stat (Depends-on): Likewise.
7702         * modules/unlink (Depends-on): Likewise.
7703         * modules/openat (Depends-on): Remove dirname-lgpl.
7704         * modules/savewd (Depends-on): Likewise.
7705         * tests/test-dirname.c: Do not use removed symbols like
7706         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
7707         the remaining symbols, e.g., ISSLASH ('\\').
7708
7709 2011-02-25  Eric Blake  <eblake@redhat.com>
7710
7711         strstr: revert patches that introduced bug and pessimization
7712         * lib/str-two-way.h: Add another reference.
7713         (two_way_short_needle, two_way_long_needle): Revert changes from
7714         2011-02-24; they pessimize search speed.
7715         (critical_factorization): Partially revert changes from
7716         2010-06-22; they violate the requirement that the left half of the
7717         needle be smaller than the period of the needle.
7718
7719 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7720
7721         filenamecat: remove unnecessary dependency on dirname-lgpl
7722         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
7723         is no direct dependency, just an indirect one via filenamecat-lgpl.
7724
7725         remove: remove unnecessary use of m4/dos.m4
7726         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
7727         * modules/remove (FILES): Remove m4/dos.m4.
7728
7729         * lib/openat-proc.c: Don't include dirname.h; not needed.
7730
7731         backupfile: remove unnecessary use of m4/dos.m4
7732         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
7733         of its symbols are used by the backupfile code.  backupfile.c does
7734         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
7735         for the rare case of programs that want all their backup file
7736         names to live within 8+3 limits, and dos.m4 doesn't address that.
7737         * modules/backupfile (Files): Remove m4/dos.m4.
7738
7739 2011-02-24  Jim Meyering  <meyering@redhat.com>
7740
7741         strstr: fix a bug whereby strstr would mistakenly return NULL
7742         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
7743         in period calculation.
7744         (two_way_long_needle): Likewise.
7745         The original problem was reported by Mike Stump in
7746         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
7747         Ralf Wildenhues provided the short needle and haystack.
7748         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
7749         Add a more involved test to trigger the bug in two_way_long_needle.
7750
7751 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7752
7753         gnulib-tool: remove use of bold display in help screen
7754         * gnulib-tool (func_usage): Do not use bold display anymore in the
7755         help screen.  That was just meant to be a temporary emphasis for a
7756         backward-incompatible change.
7757
7758 2011-02-23  Bruno Haible  <bruno@clisp.org>
7759
7760         Fix misindentation of preprocessor directives.
7761         * lib/argp-namefrob.h: Reindent preprocessor directives.
7762         * lib/getopt_int.h (struct _getopt_data): Likewise.
7763         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
7764         * lib/vasnprintf.c (decode_long_double): Likewise.
7765         * tests/test-argmatch.c: Insert blank lines, for clarity.
7766         * tests/test-exclude.c: Likewise.
7767
7768 2011-02-22  Bruno Haible  <bruno@clisp.org>
7769
7770         ioctl: Fix for MacOS X in 64-bit mode.
7771         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
7772         value.
7773         Suggested by Eric Blake.
7774         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
7775
7776 2011-02-22  Jim Meyering  <meyering@redhat.com>
7777
7778         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
7779         * Makefile (sc_cpp_indent_check): Don't limit the check to files
7780         in lib/.
7781
7782 2011-02-22  Eric Blake  <eblake@redhat.com>
7783
7784         maint: avoid any CDPATH issue
7785         * Makefile (sc_cpp_indent_check): Anchor cd argument.
7786
7787         maint: adjust cpp indentation for my modules, as well
7788         * Makefile (sc_cpp_indent_check): Add my name.
7789         * lib/fbufmode.c: Filter through cppi.
7790         * lib/fpurge.c: Likewise.
7791         * lib/freadable.c: Likewise.
7792         * lib/freading.c: Likewise.
7793         * lib/fwritable.c: Likewise.
7794         * lib/fwriting.c: Likewise.
7795         * lib/sigaction.c: Likewise.
7796
7797 2011-02-22  Jim Meyering  <meyering@redhat.com>
7798
7799         maint: adjust cpp indentation to reflect nesting depth
7800         I.e., in a block of code that begins with an unnested "#if",
7801         put one space between the "#" in column 1 and following token.
7802         For example,
7803         -#include <sys/vfs.h>
7804         +# include <sys/vfs.h>
7805         Do this only in .c files that are part of a module I maintain.
7806         * lib/linkat.c: Filter through cppi.
7807         * lib/nanosleep.c: Likewise.
7808         * lib/openat.c: Likewise.
7809         * lib/openat-die.c: Likewise.
7810         * lib/dup3.c: Likewise.
7811         * lib/fchownat.c: Likewise.
7812         * lib/flock.c: Likewise.
7813         * lib/fsync.c: Likewise.
7814         * lib/fts.c: Likewise.
7815         * lib/getpass.c: Likewise.
7816         * lib/gettimeofday.c: Likewise.
7817         * lib/userspec.c: Likewise.
7818         * Makefile (sc_cpp_indent_check): New rule, to check this.
7819
7820 2011-02-22  Bruno Haible  <bruno@clisp.org>
7821
7822         New module 'wctomb'.
7823         * lib/stdlib.in.h (wctomb): New declaration.
7824         * lib/wctomb.c: New file.
7825         * lib/wctomb-impl.h: New file.
7826         * m4/wctomb.m4: New file.
7827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
7828         REPLACE_WCTOMB.
7829         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
7830         REPLACE_WCTOMB.
7831         * modules/wctomb: New file.
7832         * tests/test-stdlib-c++.cc: Test signature of wctomb.
7833         * doc/posix-functions/wctomb.texi: Mention the new module.
7834         * modules/wctob (Depends-on): Add wctomb.
7835
7836 2011-02-22  Bruno Haible  <bruno@clisp.org>
7837
7838         New module 'mbtowc'.
7839         * lib/stdlib.in.h (mbtowc): New declaration.
7840         * lib/mbtowc.c: New file.
7841         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
7842         * m4/mbtowc.m4: New file.
7843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
7844         REPLACE_MBTOWC.
7845         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
7846         REPLACE_MBTOWC.
7847         * modules/mbtowc: New file.
7848         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
7849         * doc/posix-functions/mbtowc.texi: Mention the new module.
7850         * modules/btowc (Depends-on): Add mbtowc.
7851
7852 2011-02-22  Bruno Haible  <bruno@clisp.org>
7853
7854         wcrtomb: Add more tests for native Windows platforms.
7855         * tests/test-wcrtomb-w32-1.sh: New file.
7856         * tests/test-wcrtomb-w32-2.sh: New file.
7857         * tests/test-wcrtomb-w32-3.sh: New file.
7858         * tests/test-wcrtomb-w32-4.sh: New file.
7859         * tests/test-wcrtomb-w32-5.sh: New file.
7860         * tests/test-wcrtomb-w32.c: New file.
7861         * modules/wcrtomb-tests (Files): Add them.
7862         (Makefile.am): Arrange to run these tests.
7863         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
7864         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
7865
7866 2011-02-20  Bruno Haible  <bruno@clisp.org>
7867
7868         wcrtomb: Enhance test.
7869         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
7870
7871 2011-02-20  Bruno Haible  <bruno@clisp.org>
7872
7873         mbrtowc: Tiny optimization.
7874         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
7875
7876 2011-02-20  Jim Meyering  <meyering@redhat.com>
7877
7878         test-exclude.c: remove unmatched #endif
7879         * tests/test-exclude.c: Remove stray #endif, left over from
7880         the change of a week ago.
7881
7882 2011-02-19  Jim Meyering  <meyering@redhat.com>
7883
7884         git-version-gen: skip "-dirty" check when appropriate
7885         * build-aux/git-version-gen: Don't run any git commands when the
7886         version string comes from .tarball-version.  Prior to this, we
7887         would run git update-index --refresh even from a just-unpacked
7888         tarball directory, and that could affect a .git/ directory in a
7889         parent of the build directory.  Reported by Mike Frysinger.
7890
7891 2011-02-19  Bruno Haible  <bruno@clisp.org>
7892
7893         unictype/property-byname: Reduce the size of the 'data' segment.
7894         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
7895
7896 2011-02-19  Bruno Haible  <bruno@clisp.org>
7897
7898         unictype/scripts: Reduce the size of the 'data' segment.
7899         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
7900         '%pic'.
7901         * lib/unictype/scripts_byname.gperf: Regenerated.
7902
7903 2011-02-19  Bruno Haible  <bruno@clisp.org>
7904
7905         stdint: Update documentation.
7906         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
7907
7908 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
7909
7910         stdint: omit redundant check for wchar.h
7911         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
7912         always tests whether wchar.h exists, so remove the now-redundant test.
7913
7914 2011-02-18  Bruno Haible  <bruno@clisp.org>
7915
7916         stdint: Cut dependency to module 'wchar'.
7917         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
7918         include the necessary prerequisites.
7919         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
7920         * modules/stdint (Depends-on): Remove wchar.
7921         (Makefile.am): Substitute HAVE_WCHAR_H.
7922         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
7923
7924 2011-02-18  Eric Blake  <eblake@redhat.com>
7925
7926         longlong: skip, rather than fail, on cross-compilation
7927         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
7928         when cross-compiling; regression from 2011-02-16.
7929
7930 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
7931
7932         * NEWS: Mention 2011-02-08 change to stdlib.
7933
7934 2011-02-17  Bruno Haible  <bruno@clisp.org>
7935
7936         getloadavg: Add comments about platforms.
7937         * m4/getloadavg.m4: Add comment.
7938         * lib/getloadavg.c: Likewise.
7939
7940 2011-02-17  Bruno Haible  <bruno@clisp.org>
7941
7942         getloadavg: Fix link error on Solaris 2.6.
7943         * modules/getloadavg (Link): New section.
7944         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
7945         linking test-getloadavg.
7946         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
7947         getloadavg.
7948
7949 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
7950
7951         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
7952         It was 'int', but this doesn't match the IRIX 6.5 manual.
7953         Suggested by Bruno Haible in
7954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
7955
7956 2011-02-17  Bruno Haible  <bruno@clisp.org>
7957
7958         havelib: Fix comments.
7959         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
7960         change.
7961
7962 2011-02-17  Bruno Haible  <bruno@clisp.org>
7963
7964         havelib: Update config.rpath.
7965         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
7966
7967 2011-02-17  Bruno Haible  <bruno@clisp.org>
7968
7969         getloadavg test: Add some plausibility checks.
7970         * tests/test-getloadavg.c (check_avg): Print a warning when the value
7971         is improbable.
7972
7973 2011-02-16  Eric Blake  <eblake@redhat.com>
7974
7975         maintainer-makefile: make syntax-check a no-op from tarballs
7976         * top/maint.mk (no-vc-detected): New rule.
7977         (local-checks-available): Use it to avoid hanging if someone tries
7978         'make syntax-check' from a tarball.  Also append to any non-syntax
7979         checks already defined in cfg.mk.
7980
7981 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7982
7983         longlong: tune, particularly for common case of c99
7984
7985         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
7986         or running anything if c99, or if unsigned long long int does not
7987         work.  In either case, we know the answer without further tests.
7988         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
7989         it at most once, and use its results for both long long int and
7990         unsigned long long int.  This is more likely to be efficient in
7991         the common case where the program wants to check for both long
7992         long int and unsigned long long int.
7993         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
7994         since the answer is already known.
7995
7996 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
7997
7998         getloadavg: set errno
7999         * lib/getloadavg.c: Set errno when returning -1.  If no other
8000         error number looks appropriate, set it to ENOSYS if the getloadavg
8001         looks like it can't possibly ever work, ENOTSUP otherwise.
8002         Suggested by Bruno Haible in
8003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
8004
8005         getloadavg: trim unused parts and speed up 'configure'
8006         * NEWS: Document this.
8007         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
8008         always compiled if getloadavg is absent.
8009         Move test code to ...
8010         * tests/test-getloadavg.c: New file, containing previous
8011         contents of test from lib/getloadavg.c.  It also contains
8012         suggestions by Bruno Haible in
8013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
8014         * modules/getloadavg-tests: New file.
8015         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
8016         Do tests in the same order as they're needed for getloadavg.c.
8017         Omit setgid-related tests that generate symbols KMEM_GROUP,
8018         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8019         Do only the tests that are needed to see whether the system has
8020         getloadavg, moving the other tests into ...
8021         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8022         NLIST_NAME_UNION; nobody should be using it.  Do not define
8023         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8024         relevant, as the user of this module shouldn't care how getloadavg
8025         is implemented.
8026
8027         getloadavg: omit unused var
8028         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8029
8030 2011-02-15  Jim Meyering  <meyering@redhat.com>
8031
8032         doc: update users.txt
8033         * users.txt: Update iwhd's URL.
8034
8035 2011-02-13  Bruno Haible  <bruno@clisp.org>
8036
8037         Consistent macro naming for macros that use GCC __attribute__.
8038         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8039         _ATTRIBUTE_NONNULL_.
8040         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8041         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8042         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8043         ATTRIBUTE_DEPRECATED.
8044         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8045         ATTRIBUTE_NORETURN.
8046         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8047         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8048         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8049         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8050         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8051         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8052         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8053         ATTRIBUTE_SENTINEL.
8054         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8055         ATTRIBUTE_RETURN_CHECK.
8056         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8057         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8058         ATTRIBUTE_NORETURN.
8059         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8060         Reported by Paul Eggert.
8061
8062 2011-02-13  Bruno Haible  <bruno@clisp.org>
8063
8064         Don't interfere with a program's definition of __attribute__.
8065         * lib/argp.h (__attribute__): Remove definition.
8066         (_GL_ATTRIBUTE_FORMAT): New macro.
8067         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8068         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8069         (_GL_ATTRIBUTE_FORMAT): New macro.
8070         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8071         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8072         GCC 3 or newer.
8073         * lib/error.h (__attribute__): Remove definition.
8074         (_GL_ATTRIBUTE_FORMAT): New macro.
8075         (error, error_at_line): Use it.
8076         * lib/hash.h (__attribute__): Remove definition.
8077         (ATTRIBUTE_WUR): Update definition. Define always.
8078         * lib/openat.h (__attribute__): Remove definition.
8079         (ATTRIBUTE_NORETURN): Update definition. Define always.
8080         * lib/sigpipe-die.h (__attribute__): Remove definition.
8081         (ATTRIBUTE_NORETURN): Update definition. Define always.
8082         * lib/vasnprintf.h (__attribute__): Remove definition.
8083         (_GL_ATTRIBUTE_FORMAT): New macro.
8084         (asnprintf, vasnprintf): Use it.
8085         * lib/xalloc.h (__attribute__): Remove definition.
8086         (ATTRIBUTE_NORETURN): Update definition. Define always.
8087         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8088         * lib/xmemdup0.h (__attribute__): Remove definition.
8089         (ATTRIBUTE_NORETURN): Update definition. Define always.
8090         * lib/xprintf.h (__attribute__): Remove definition.
8091         (_GL_ATTRIBUTE_FORMAT): New macro.
8092         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8093         * lib/xstrtol.h (__attribute__): Remove definition.
8094         (ATTRIBUTE_NORETURN): Update definition. Define always.
8095         * lib/xvasprintf.h (__attribute__): Remove definition.
8096         (_GL_ATTRIBUTE_FORMAT): New macro.
8097         (xasprintf, xvasprintf): Use it.
8098         * tests/test-argmatch.c (__attribute__): Remove definition.
8099         (ATTRIBUTE_NORETURN): Update definition. Define always.
8100         * tests/test-exclude.c (__attribute__): Remove definition.
8101         (ATTRIBUTE_NORETURN): Update definition. Define always.
8102         Reported by Paul Eggert.
8103
8104 2011-02-13  Bruno Haible  <bruno@clisp.org>
8105
8106         mbrtowc: Add more tests for native Windows platforms.
8107         * tests/test-mbrtowc-w32-1.sh: New file.
8108         * tests/test-mbrtowc-w32-2.sh: New file.
8109         * tests/test-mbrtowc-w32-3.sh: New file.
8110         * tests/test-mbrtowc-w32-4.sh: New file.
8111         * tests/test-mbrtowc-w32-5.sh: New file.
8112         * tests/test-mbrtowc-w32.c: New file.
8113         * modules/mbrtowc-tests (Files): Add them.
8114         (Makefile.am): Arrange to run these tests.
8115         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8116         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8117
8118 2011-02-13  Bruno Haible  <bruno@clisp.org>
8119
8120         mbrtowc: Work around native Windows bug.
8121         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8122         guess when no suitable locale for testing was found.
8123         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8124
8125 2011-02-13  Bruno Haible  <bruno@clisp.org>
8126
8127         mbsinit: Work around mingw bug.
8128         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8129         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8130         Windows.
8131         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8132
8133 2011-02-13  Bruno Haible  <bruno@clisp.org>
8134
8135         mbsinit: Don't crash for a NULL argument.
8136         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8137         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8138
8139 2011-02-13  Bruno Haible  <bruno@clisp.org>
8140
8141         Don't interfere with a program's definition of __attribute__.
8142         * lib/stdio.in.h (__attribute__): Remove definition.
8143         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8144         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8145         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8146         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8147         * lib/string.in.h (__attribute__): Remove definition.
8148         Reported by Paul Eggert.
8149
8150 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8151
8152         stdlib: don't get in the way of non-GCC __attribute__
8153         See thread starting at
8154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8155         Revert previous stdlib change, installing the following instead:
8156         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8157         to get in the way of a non-GCC compiler that supports __attribute__.
8158         (_GL_ATTRIBUTE_RETURN): New macro.
8159         (_Exit): Use it instead of __attribute__.
8160
8161 2011-02-12  Bruno Haible  <bruno@clisp.org>
8162
8163         quotearg test: Avoid test failure on mingw.
8164         * tests/test-quotearg.sh: Convert the locale identifier from native
8165         Windows syntax to Unix syntax.
8166
8167 2011-02-12  Bruno Haible  <bruno@clisp.org>
8168
8169         setlocale: Prefer gnulib's override over libintl's override.
8170         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8171         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8172         GNULIB_defined_setlocale is set.
8173
8174 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8175
8176         stdlib: support non-GCC __attribute__
8177
8178         Fix a serious and tricky problem encountered when attempting to
8179         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8180         5.5, but it crashed due to memory corruption on Solaris 10 with
8181         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8182         bits that are otherwise zero.  This tagging is optional inside
8183         Emacs but is preferred and is used when __attribute__ ((__aligned
8184         (8))) works, as it does with both recent-enough GCC and with Sun C
8185         5.11.  However, Sun C 5.11 is not GCC and does not #define
8186         __GNUC__ and __GNUC_MINOR__.
8187
8188         When I added the getloadavg module to Emacs, it brought in
8189         stdlib.in.h, which contained this fragment:
8190
8191            #ifndef __attribute__
8192            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8193            #  define __attribute__(Spec)   /* empty */
8194            # endif
8195            #endif
8196
8197         When files that include <stdlib.h> were compiled with Sun C 5.11,
8198         the above code disabled __attribute__ ((__aligned (8))), which
8199         caused variables to not be properly aligned, which eventually led
8200         to the pointer corruption mentioned above.  (This was a bit hard
8201         to diagnose, unfortunately.)
8202
8203         Several "#define __attribute__(X) /* empty */" code snippets need
8204         to be eradicated from Gnulib to work with non-GCC compilers that
8205         support __attribute__.  The Autoconf way to do this is to test for
8206         each kind of attribute that we want support for, and selectively
8207         enable that in source code.
8208
8209         Fix this problem just for stdlib.h, by adding a test for the
8210         __noreturn__ attribute, and change stdlib.in.h to use that test
8211         when needed.  This technique can be easily generalized to the
8212         other *.in.h files and attributes, and a similar technique can be
8213         used for *.h and *.c files.  This patch is enough to solve the
8214         problem for Emacs + getloadavg, and I thought I'd publish it for
8215         feedback before undertaking further, similar fixes in other
8216         modules.
8217
8218         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8219         because it's not needed for stdlib.h.  It merely substitutes the
8220         value directly into stdlib.h.  We may well need to #define it, or
8221         similar symbols, for other modules, but it's nice to also have an
8222         option to not #define it for applications like Emacs that do not
8223         need it.
8224
8225         * lib/stdlib.in.h (__attribute__): Do not #define.
8226         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8227         be defined only if the _Exit module is also used.
8228         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8230         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8231         platforms.
8232         * modules/_Exit (Files): Add m4/attribute.m4.
8233         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8234         * m4/attribute.m4: New file.
8235
8236 2011-02-12  Bruno Haible  <bruno@clisp.org>
8237
8238         wcsrtombs: Work around bug on native Windows.
8239         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
8240         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
8241         instead of len.
8242         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8243
8244 2011-02-12  Bruno Haible  <bruno@clisp.org>
8245
8246         mbsrtowcs: Work around bug on native Windows.
8247         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
8248         against mingw bug.
8249         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
8250
8251 2011-02-12  Bruno Haible  <bruno@clisp.org>
8252
8253         Avoid setlocale bugs in tests.
8254         * modules/btowc (Dependencies): Add setlocale.
8255         * modules/c-strcase (Dependencies): Likewise.
8256         * modules/mbmemcasecmp (Dependencies): Likewise.
8257         * modules/mbmemcasecoll (Dependencies): Likewise.
8258         * modules/mbrtowc (Dependencies): Likewise.
8259         * modules/mbscasecmp (Dependencies): Likewise.
8260         * modules/mbscasestr (Dependencies): Likewise.
8261         * modules/mbschr (Dependencies): Likewise.
8262         * modules/mbscspn (Dependencies): Likewise.
8263         * modules/mbsinit (Dependencies): Likewise.
8264         * modules/mbsncasecmp (Dependencies): Likewise.
8265         * modules/mbsnrtowcs (Dependencies): Likewise.
8266         * modules/mbspbrk (Dependencies): Likewise.
8267         * modules/mbspcasecmp (Dependencies): Likewise.
8268         * modules/mbsrchr (Dependencies): Likewise.
8269         * modules/mbsrtowcs (Dependencies): Likewise.
8270         * modules/mbsspn (Dependencies): Likewise.
8271         * modules/mbsstr (Dependencies): Likewise.
8272         * modules/nl_langinfo (Dependencies): Likewise.
8273         * modules/quotearg (Dependencies): Likewise.
8274         * modules/unicase/locale-language (Dependencies): Likewise.
8275         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
8276         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
8277         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
8278         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
8279         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
8280         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
8281         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
8282         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
8283         * modules/vasnprintf-posix (Dependencies): Likewise.
8284         * modules/wcrtomb (Dependencies): Likewise.
8285         * modules/wcsnrtombs (Dependencies): Likewise.
8286         * modules/wcsrtombs (Dependencies): Likewise.
8287
8288 2011-02-12  Bruno Haible  <bruno@clisp.org>
8289
8290         setlocale: Workaround native Windows bug.
8291         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
8292         succeeds but sets LC_CTYPE to "C", report a failure.
8293         * tests/test-setlocale2.sh: New file.
8294         * tests/test-setlocale2.c: New file.
8295         * modules/setlocale-tests (Files): Add the new files.
8296         (Makefile.am): Enable test-setlocale2.sh test.
8297         * doc/posix-functions/setlocale.texi: Mention workaround.
8298
8299 2011-02-11  Bruno Haible  <bruno@clisp.org>
8300
8301         Tests for module 'setlocale'.
8302         * modules/setlocale-tests: New file.
8303         * tests/test-setlocale1.sh: New file.
8304         * tests/test-setlocale1.c: New file.
8305
8306         New module 'setlocale'.
8307         * lib/locale.in.h (setlocale): New declaration.
8308         * lib/setlocale.c: New file, based on
8309         gettext/gettext-runtime/intl/setlocale.c.
8310         * m4/setlocale.m4: New file.
8311         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
8312         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
8313         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
8314         REPLACE_SETLOCALE.
8315         * modules/setlocale: New file.
8316         * tests/test-locale-c++.cc: Test the declaration of setlocale.
8317         * doc/posix-functions/setlocale.texi: Mention the new module.
8318
8319 2011-02-11  Bruno Haible  <bruno@clisp.org>
8320
8321         Prepare for locale dependent tests on mingw.
8322         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
8323         because it has the wrong locale encoding.
8324         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
8325         French_France.1252 instead of "fr".
8326         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
8327         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8328         because it has the wrong locale encoding.
8329         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8330         native Windows, try Turkish_Turkey.65001.
8331         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8332         Chinese_China.54936.
8333
8334         Prepare for locale dependent tests on mingw.
8335         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8336         differently.
8337         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8338         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8339         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8340         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8341
8342 2011-02-11  Eric Blake  <eblake@redhat.com>
8343
8344         strptime: avoid compiler warnings
8345         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8346         compiler warnings about dead code.
8347         Reported by Daniel P. Berrange.
8348
8349 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8350
8351         doc: update users.txt
8352         * users.txt: Add rcs.
8353
8354 2011-02-10  John W. Eaton  <jwe@gnu.org>
8355
8356         doc: update users.txt
8357         * users.txt: Add octave.
8358
8359 2011-02-10  Jim Meyering  <meyering@redhat.com>
8360
8361         doc: update users.txt
8362         * users.txt: Add iwhd.
8363
8364 2011-02-09  Bruno Haible  <bruno@clisp.org>
8365
8366         gnulib-tool: Make copyright notice adjustment more robust.
8367         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8368         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8369         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8370         License".
8371         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8372
8373 2011-02-06  Bruno Haible  <bruno@clisp.org>
8374
8375         New module 'towctrans'.
8376         * modules/towctrans: New file.
8377         * lib/wctype.in.h (towctrans): New declaration.
8378         * lib/towctrans.c: New file.
8379         * lib/towctrans-impl.h: New file.
8380         * m4/towctrans.m4: New file.
8381         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8382         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8383         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8384         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8385         * doc/posix-functions/towctrans.texi: Mention the new module.
8386
8387 2011-02-06  Bruno Haible  <bruno@clisp.org>
8388
8389         New module 'wctrans'.
8390         * modules/wctrans: New file.
8391         * lib/wctype.in.h (wctrans): New declaration.
8392         * lib/wctrans.c: New file.
8393         * lib/wctrans-impl.h: New file.
8394         * m4/wctrans.m4: New file.
8395         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8396         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8397         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8398         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8399         * doc/posix-functions/wctrans.texi: Mention the new module.
8400
8401 2011-02-06  Bruno Haible  <bruno@clisp.org>
8402
8403         New module 'iswctype'.
8404         * modules/iswctype: New file.
8405         * lib/wctype.in.h (iswctype): New declaration.
8406         * lib/iswctype.c: New file.
8407         * lib/iswctype-impl.h: New file.
8408         * m4/iswctype.m4: New file.
8409         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
8410         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
8411         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
8412         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
8413         * doc/posix-functions/iswctype.texi: Mention the new module and the
8414         HP-UX 11.00 problem.
8415
8416 2011-02-06  Bruno Haible  <bruno@clisp.org>
8417
8418         New module 'wctype'.
8419         * modules/wctype: Change to represent the wctype() substitute.
8420         * lib/wctype.in.h (wctype): New declaration.
8421         * lib/wctype.c: New file.
8422         * lib/wctype-impl.h: New file.
8423         * m4/wctype.m4: New file.
8424         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
8425         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
8426         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
8427         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
8428         * doc/posix-functions/wctype.texi: Mention the new module and the
8429         HP-UX 11.00 problem.
8430
8431 2011-02-06  Bruno Haible  <bruno@clisp.org>
8432
8433         wctype-h: Ensure wctype_t and wctrans_t are defined.
8434         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
8435         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8436         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8437         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
8438         HAVE_WCTRANS_T.
8439         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
8440
8441 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8442
8443         flock: fix license typo
8444
8445         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
8446         omitted.
8447
8448 2011-02-08  Bruno Haible  <bruno@clisp.org>
8449
8450         Split large sed scripts, for HP-UX sed.
8451         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
8452         to avoid HP-UX limit of 99 commands, in the near future.
8453         * modules/stdlib (Makefile.am): Likewise.
8454         * modules/unistd (Makefile.am): Likewise.
8455         * modules/wchar (Makefile.am): Likewise.
8456         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8457         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
8458         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
8459
8460 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8461             Bruno Haible  <bruno@clisp.org>
8462
8463         stdlib: improve random_r modularization
8464         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
8465         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
8466         you also need the random_r module to get this material right.
8467         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
8468         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
8469         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
8470
8471 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8472
8473         stdlib: don't depend on stdint
8474         * lib/stdlib.in.h: Don't include <stdint.h> merely because
8475         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
8476         be independent of whether stdint.h is needed.
8477         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
8478         here, instead of ...
8479         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
8480         struct random_data should be using the random_r module, not just
8481         the stdlib module (which wouldn't make sense: what package needs
8482         just struct random_data without also needing random_r?).
8483         * modules/stdlib (Depends-on): Remove stdint.
8484
8485         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
8486         See the thread rooted at
8487         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
8488         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
8489         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
8490         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
8491         __VMS)); previously it was always included (via fcntl--.h).
8492         (getloadavg): Do not use c_strtod.  Instead, approximate it by
8493         hand; this is good enough for load averages.  Also, do not use
8494         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
8495         flags directly if available and don't bother otherwise.  (Packages
8496         that need the extra reliability should use the modules that define
8497         these flags on older platforms that lack them.)
8498         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
8499         fcntl-safer.
8500
8501 2011-02-08  Jim Meyering  <meyering@redhat.com>
8502
8503         di-set.h, ino-map.h: add multiple-inclusion guard
8504         Technically, the guard is required only for ino-map.h, due to its
8505         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
8506         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
8507         * lib/ino-map.h: Likewise.
8508
8509 2011-02-06  Bruno Haible  <bruno@clisp.org>
8510
8511         iswblank: Ensure declaration on glibc systems.
8512         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
8513         * modules/iswblank (Dependencies): Add 'extensions'.
8514         * doc/posix-functions/iswblank.texi: Document the glibc problem.
8515
8516 2011-02-06  Bruno Haible  <bruno@clisp.org>
8517
8518         New module 'iswblank'.
8519         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
8520         * modules/iswblank: New file.
8521         * modules/wctype-h (Files): Remove lib/iswblank.c.
8522         (Makefile.am): Substitute GNULIB_ISWBLANK.
8523         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
8524         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
8525         (gl_WCTYPE_H_DEFAULTS): New macro.
8526         (gl_WCTYPE_H): Require it. Remove iswblank related code.
8527         * modules/iswblank-tests: New file.
8528         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
8529         * tests/test-wctype-h.c (main): Remove iswblank tests.
8530         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
8531         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
8532         of 'wctype-h'.
8533         * NEWS: Mention the change.
8534         * modules/mbchar (Depends-on): Add iswblank.
8535
8536 2011-02-08  Bruno Haible  <bruno@clisp.org>
8537
8538         di-set tests: Refactor.
8539         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
8540         unnecessary includes.
8541         (ASSERT): Remove macro.
8542         (main): Make C90 compliant by avoiding variable declaration after
8543         statement.
8544         * modules/di-set-tests (Files): Add tests/macros.h.
8545
8546 2011-02-08  Bruno Haible  <bruno@clisp.org>
8547
8548         ino-map tests: Refactor.
8549         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
8550         unnecessary includes.
8551         (ASSERT): Remove macro.
8552         (main): Make C90 compliant by avoiding variable declaration after
8553         statement.
8554         * modules/ino-map-tests (Files): Add tests/macros.h.
8555
8556 2011-02-08  Jim Meyering  <meyering@redhat.com>
8557
8558         di-set: add "const" to a cast
8559         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
8560         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
8561
8562 2011-02-06  Bruno Haible  <bruno@clisp.org>
8563
8564         Rename module 'wctype' to 'wctype-h'.
8565         * modules/wctype-h: Renamed from modules/wctype.
8566         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
8567         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
8568         (Files, Depends-on, Makefile.am): Update.
8569         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
8570         (Files, Makefile.am): Update.
8571         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
8572         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
8573         * doc/posix-headers/wctype.texi: Update.
8574         * doc/posix-functions/iswalnum.texi: Update.
8575         * doc/posix-functions/iswalpha.texi: Update.
8576         * doc/posix-functions/iswblank.texi: Update.
8577         * doc/posix-functions/iswcntrl.texi: Update.
8578         * doc/posix-functions/iswdigit.texi: Update.
8579         * doc/posix-functions/iswgraph.texi: Update.
8580         * doc/posix-functions/iswlower.texi: Update.
8581         * doc/posix-functions/iswprint.texi: Update.
8582         * doc/posix-functions/iswpunct.texi: Update.
8583         * doc/posix-functions/iswspace.texi: Update.
8584         * doc/posix-functions/iswupper.texi: Update.
8585         * doc/posix-functions/iswxdigit.texi: Update.
8586         * doc/posix-functions/towlower.texi: Update.
8587         * doc/posix-functions/towupper.texi: Update.
8588         * NEWS: Mention the change.
8589         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
8590         * modules/mbchar (Dependencies): Likewise.
8591         * modules/mbswidth (Dependencies): Likewise.
8592         * modules/quotearg (Dependencies): Likewise.
8593         * modules/regex (Dependencies): Likewise.
8594         * modules/wcscasecmp (Dependencies): Likewise.
8595         * modules/wcsncasecmp (Dependencies): Likewise.
8596         * modules/wcwidth (Dependencies): Likewise.
8597
8598 2011-02-06  Bruno Haible  <bruno@clisp.org>
8599
8600         New module 'wcswidth'.
8601         * modules/wcswidth: New file.
8602         * lib/wchar.in.h (wcswidth): New declaration.
8603         * lib/wcswidth.c: New file.
8604         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
8605         * m4/wcswidth.m4: New file.
8606         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
8607         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
8608         REPLACE_WCSWIDTH.
8609         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
8610         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
8611         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
8612         * doc/posix-functions/wcswidth.texi: Mention the new module.
8613
8614 2011-02-06  Bruno Haible  <bruno@clisp.org>
8615
8616         New module 'wcstok'.
8617         * modules/wcstok: New file.
8618         * lib/wchar.in.h (wcstok): New declaration.
8619         * lib/wcstok.c: New file.
8620         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
8621         * m4/wcstok.m4: New file.
8622         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
8623         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
8624         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
8625         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
8626         * doc/posix-functions/wcstok.texi: Mention the new module.
8627
8628 2011-02-06  Bruno Haible  <bruno@clisp.org>
8629
8630         New module 'wcsstr'.
8631         * modules/wcsstr: New file.
8632         * lib/wchar.in.h (wcsstr): New declaration.
8633         * lib/wcsstr.c: New file.
8634         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
8635         * m4/wcsstr.m4: New file.
8636         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
8637         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
8638         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
8639         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
8640         * doc/posix-functions/wcsstr.texi: Mention the new module.
8641
8642 2011-02-06  Bruno Haible  <bruno@clisp.org>
8643
8644         New module 'wcspbrk'.
8645         * modules/wcspbrk: New file.
8646         * lib/wchar.in.h (wcspbrk): New declaration.
8647         * lib/wcspbrk.c: New file.
8648         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
8649         * m4/wcspbrk.m4: New file.
8650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
8651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
8652         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
8653         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
8654         * doc/posix-functions/wcspbrk.texi: Mention the new module.
8655
8656 2011-02-06  Bruno Haible  <bruno@clisp.org>
8657
8658         New module 'wcsspn'.
8659         * modules/wcsspn: New file.
8660         * lib/wchar.in.h (wcsspn): New declaration.
8661         * lib/wcsspn.c: New file.
8662         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
8663         * m4/wcsspn.m4: New file.
8664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
8665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
8666         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
8667         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
8668         * doc/posix-functions/wcsspn.texi: Mention the new module.
8669
8670 2011-02-06  Bruno Haible  <bruno@clisp.org>
8671
8672         New module 'wcscspn'.
8673         * modules/wcscspn: New file.
8674         * lib/wchar.in.h (wcscspn): New declaration.
8675         * lib/wcscspn.c: New file.
8676         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
8677         * m4/wcscspn.m4: New file.
8678         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
8679         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
8680         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
8681         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
8682         * doc/posix-functions/wcscspn.texi: Mention the new module.
8683
8684 2011-02-06  Bruno Haible  <bruno@clisp.org>
8685
8686         New module 'wcsrchr'.
8687         * modules/wcsrchr: New file.
8688         * lib/wchar.in.h (wcsrchr): New declaration.
8689         * lib/wcsrchr.c: New file.
8690         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
8691         * m4/wcsrchr.m4: New file.
8692         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
8693         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
8694         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
8695         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
8696         * doc/posix-functions/wcsrchr.texi: Mention the new module.
8697
8698 2011-02-06  Bruno Haible  <bruno@clisp.org>
8699
8700         New module 'wcschr'.
8701         * modules/wcschr: New file.
8702         * lib/wchar.in.h (wcschr): New declaration.
8703         * lib/wcschr.c: New file.
8704         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
8705         * m4/wcschr.m4: New file.
8706         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
8707         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
8708         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
8709         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
8710         * doc/posix-functions/wcschr.texi: Mention the new module.
8711
8712 2011-02-06  Bruno Haible  <bruno@clisp.org>
8713
8714         New module 'wcsdup'.
8715         * modules/wcsdup: New file.
8716         * lib/wchar.in.h (wcsdup): New declaration.
8717         * lib/wcsdup.c: New file.
8718         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
8719         * m4/wcsdup.m4: New file.
8720         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
8721         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
8722         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
8723         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
8724         * doc/posix-functions/wcsdup.texi: Mention the new module.
8725
8726 2011-02-06  Bruno Haible  <bruno@clisp.org>
8727
8728         New module 'wcsxfrm'.
8729         * modules/wcsxfrm: New file.
8730         * lib/wchar.in.h (wcsxfrm): New declaration.
8731         * lib/wcsxfrm.c: New file.
8732         * lib/wcsxfrm-impl.h: New file.
8733         * m4/wcsxfrm.m4: New file.
8734         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
8735         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
8736         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
8737         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
8738         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
8739
8740 2011-02-06  Bruno Haible  <bruno@clisp.org>
8741
8742         New module 'wcscoll'.
8743         * modules/wcscoll: New file.
8744         * lib/wchar.in.h (wcscoll): New declaration.
8745         * lib/wcscoll.c: New file.
8746         * lib/wcscoll-impl.h: New file.
8747         * m4/wcscoll.m4: New file.
8748         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
8749         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
8750         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
8751         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
8752         * doc/posix-functions/wcscoll.texi: Mention the new module.
8753
8754 2011-02-06  Bruno Haible  <bruno@clisp.org>
8755
8756         New module 'wcsncasecmp'.
8757         * modules/wcsncasecmp: New file.
8758         * lib/wchar.in.h (wcsncasecmp): New declaration.
8759         * lib/wcsncasecmp.c: New file.
8760         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
8761         * m4/wcsncasecmp.m4: New file.
8762         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
8763         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
8764         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
8765         HAVE_WCSNCASECMP.
8766         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
8767         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
8768
8769 2011-02-06  Bruno Haible  <bruno@clisp.org>
8770
8771         New module 'wcscasecmp'.
8772         * modules/wcscasecmp: New file.
8773         * lib/wchar.in.h (wcscasecmp): New declaration.
8774         * lib/wcscasecmp.c: New file.
8775         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
8776         * m4/wcscasecmp.m4: New file.
8777         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
8778         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
8779         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
8780         HAVE_WCSCASECMP.
8781         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
8782         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
8783
8784 2011-02-05  Bruno Haible  <bruno@clisp.org>
8785
8786         New module 'wcsncmp'.
8787         * modules/wcsncmp: New file.
8788         * lib/wchar.in.h (wcsncmp): New declaration.
8789         * lib/wcsncmp.c: New file.
8790         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
8791         * m4/wcsncmp.m4: New file.
8792         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
8793         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
8794         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
8795         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
8796         * doc/posix-functions/wcsncmp.texi: Mention the new module.
8797
8798 2011-02-05  Bruno Haible  <bruno@clisp.org>
8799
8800         New module 'wcscmp'.
8801         * modules/wcscmp: New file.
8802         * lib/wchar.in.h (wcscmp): New declaration.
8803         * lib/wcscmp.c: New file.
8804         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
8805         * m4/wcscmp.m4: New file.
8806         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
8807         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
8808         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
8809         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
8810         * doc/posix-functions/wcscmp.texi: Mention the new module.
8811
8812 2011-02-05  Bruno Haible  <bruno@clisp.org>
8813
8814         New module 'wcsncat'.
8815         * modules/wcsncat: New file.
8816         * lib/wchar.in.h (wcsncat): New declaration.
8817         * lib/wcsncat.c: New file.
8818         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
8819         * m4/wcsncat.m4: New file.
8820         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
8821         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
8822         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
8823         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
8824         * doc/posix-functions/wcsncat.texi: Mention the new module.
8825
8826 2011-02-05  Bruno Haible  <bruno@clisp.org>
8827
8828         New module 'wcscat'.
8829         * modules/wcscat: New file.
8830         * lib/wchar.in.h (wcscat): New declaration.
8831         * lib/wcscat.c: New file.
8832         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
8833         * m4/wcscat.m4: New file.
8834         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
8835         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
8836         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
8837         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
8838         * doc/posix-functions/wcscat.texi: Mention the new module.
8839
8840 2011-02-05  Bruno Haible  <bruno@clisp.org>
8841
8842         New module 'wcpncpy'.
8843         * modules/wcpncpy: New file.
8844         * lib/wchar.in.h (wcpncpy): New declaration.
8845         * lib/wcpncpy.c: New file.
8846         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
8847         * m4/wcpncpy.m4: New file.
8848         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
8849         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
8850         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
8851         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
8852         * doc/posix-functions/wcpncpy.texi: Mention the new module.
8853
8854 2011-02-05  Bruno Haible  <bruno@clisp.org>
8855
8856         New module 'wcsncpy'.
8857         * modules/wcsncpy: New file.
8858         * lib/wchar.in.h (wcsncpy): New declaration.
8859         * lib/wcsncpy.c: New file.
8860         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
8861         * m4/wcsncpy.m4: New file.
8862         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
8863         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
8864         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
8865         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
8866         * doc/posix-functions/wcsncpy.texi: Mention the new module.
8867
8868 2011-02-05  Bruno Haible  <bruno@clisp.org>
8869
8870         New module 'wcpcpy'.
8871         * modules/wcpcpy: New file.
8872         * lib/wchar.in.h (wcpcpy): New declaration.
8873         * lib/wcpcpy.c: New file.
8874         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
8875         * m4/wcpcpy.m4: New file.
8876         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
8877         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
8878         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
8879         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
8880         * doc/posix-functions/wcpcpy.texi: Mention the new module.
8881
8882 2011-02-05  Bruno Haible  <bruno@clisp.org>
8883
8884         New module 'wcscpy'.
8885         * modules/wcscpy: New file.
8886         * lib/wchar.in.h (wcscpy): New declaration.
8887         * lib/wcscpy.c: New file.
8888         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
8889         * m4/wcscpy.m4: New file.
8890         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
8891         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
8892         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
8893         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
8894         * doc/posix-functions/wcscpy.texi: Mention the new module.
8895
8896 2011-02-05  Bruno Haible  <bruno@clisp.org>
8897
8898         New module 'wcsnlen'.
8899         * modules/wcsnlen: New file.
8900         * lib/wchar.in.h (wcsnlen): New declaration.
8901         * lib/wcsnlen.c: New file.
8902         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
8903         * m4/wcsnlen.m4: New file.
8904         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
8905         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
8906         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
8907         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
8908         * doc/posix-functions/wcsnlen.texi: Mention the new module.
8909
8910 2011-02-05  Bruno Haible  <bruno@clisp.org>
8911
8912         New module 'wcslen'.
8913         * modules/wcslen: New file.
8914         * lib/wchar.in.h (wcslen): New declaration.
8915         * lib/wcslen.c: New file.
8916         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
8917         * m4/wcslen.m4: New file.
8918         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
8919         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
8920         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
8921         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
8922         * doc/posix-functions/wcslen.texi: Mention the new module.
8923
8924 2011-02-05  Bruno Haible  <bruno@clisp.org>
8925
8926         New module 'wmemset'.
8927         * modules/wmemset: New file.
8928         * lib/wchar.in.h (wmemset): New declaration.
8929         * lib/wmemset.c: New file.
8930         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
8931         * m4/wmemset.m4: New file.
8932         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
8933         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
8934         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
8935         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
8936         * doc/posix-functions/wmemset.texi: Mention the new module.
8937
8938 2011-02-05  Bruno Haible  <bruno@clisp.org>
8939
8940         New module 'wmemmove'.
8941         * modules/wmemmove: New file.
8942         * lib/wchar.in.h (wmemmove): New declaration.
8943         * lib/wmemmove.c: New file.
8944         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
8945         * m4/wmemmove.m4: New file.
8946         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
8947         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
8948         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
8949         HAVE_WMEMMOVE.
8950         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
8951         * doc/posix-functions/wmemmove.texi: Mention the new module.
8952
8953 2011-02-05  Bruno Haible  <bruno@clisp.org>
8954
8955         New module 'wmemcpy'.
8956         * modules/wmemcpy: New file.
8957         * lib/wchar.in.h (wmemcpy): New declaration.
8958         * lib/wmemcpy.c: New file.
8959         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
8960         * m4/wmemcpy.m4: New file.
8961         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
8962         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
8963         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
8964         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
8965         * doc/posix-functions/wmemcpy.texi: Mention the new module.
8966
8967 2011-02-05  Bruno Haible  <bruno@clisp.org>
8968
8969         New module 'wmemcmp'.
8970         * modules/wmemcmp: New file.
8971         * lib/wchar.in.h (wmemcmp): New declaration.
8972         * lib/wmemcmp.c: New file.
8973         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
8974         * m4/wmemcmp.m4: New file.
8975         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
8976         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
8977         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
8978         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
8979         * doc/posix-functions/wmemcmp.texi: Mention the new module.
8980
8981 2011-02-07  Jim Meyering  <meyering@redhat.com>
8982
8983         di-set, ino-map: new modules, from coreutils
8984         * lib/di-set.c: New file.
8985         * lib/di-set.h: Likewise.
8986         * lib/ino-map.c: Likewise.
8987         * lib/ino-map.h: Likewise.
8988         * modules/di-set: Likewise.
8989         * modules/di-set-tests: Likewise.
8990         * modules/ino-map: Likewise.
8991         * modules/ino-map-tests: Likewise.
8992         * tests/test-di-set.c: Likewise.
8993         * tests/test-ino-map.c: Likewise.
8994
8995 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
8996
8997         getloadavg: merge minor changes from Emacs
8998
8999         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
9000         (getloadavg): Use memset, not bzero.
9001
9002         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
9003         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9004         clash (bug#86).
9005
9006 2010-11-14  Bruno Haible  <bruno@clisp.org>
9007
9008         Allow multiple gnulib generated replacements to coexist.
9009         * lib/getopt.in.h (struct option): Avoid identical redefinition.
9010         * lib/inttypes.in.h (imaxdiv_t): Likewise.
9011         * lib/langinfo.in.h (nl_item): Likewise.
9012         * lib/math.in.h (_NaN, NAN): Likewise.
9013         * lib/netdb.in.h (struct addrinfo): Likewise.
9014         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
9015         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
9016         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
9017         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
9018         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9019         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9020         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9021         pthread_mutexattr_init, pthread_mutexattr_settype,
9022         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9023         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9024         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9025         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9026         * lib/sched.in.h (struct sched_param): Likewise.
9027         * lib/se-selinux.in.h (security_class_t, security_context_t,
9028         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9029         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9030         lsetfilecon, fsetfilecon, security_check_context,
9031         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9032         Likewise.
9033         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9034         Likewise.
9035         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9036         _gl_function_taking_int_returning_void_t, union sigval,
9037         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9038         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9039         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9040         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9041         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9042         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9043         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9044         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9045         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9046         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9047         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9048         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9049         socklen_t, rpl_fd_isset): Likewise.
9050         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9051         * lib/sys_time.in.h (struct timeval): Likewise.
9052         * lib/sys_times.in.h (struct tms): Likewise.
9053         * lib/sys_utsname.in.h (struct utsname):
9054         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9055         * lib/unistd.in.h (getpagesize): Likewise.
9056         * lib/wchar.in.h (mbstate_t): Likewise.
9057         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9058         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9059         towlower, towupper): Likewise.
9060         Reported by Sam Steingold <sds@gnu.org>.
9061
9062 2011-02-05  Eric Blake  <eblake@redhat.com>
9063
9064         unsetenv: work around Haiku issues
9065         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9066         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9067
9068 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9069
9070         libposix: avoid calling error() within libposix
9071         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9072         is defined.
9073
9074 2011-02-05  Eric Blake  <eblake@redhat.com>
9075
9076         strerror_r-posix: port to cygwin
9077         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9078         implementation.
9079         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9080         * tests/test-strerror_r.c (main): Fix test.
9081         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9082         issue.
9083
9084 2011-02-05  Bruno Haible  <bruno@clisp.org>
9085
9086         New module 'wmemchr'.
9087         * modules/wmemchr: New file.
9088         * lib/wchar.in.h (wmemchr): New declaration.
9089         * lib/wmemchr.c: New file.
9090         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9091         * m4/wmemchr.m4: New file.
9092         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9093         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9094         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9095         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9096         * doc/posix-functions/wmemchr.texi: Mention the new module.
9097
9098 2011-02-04  Eric Blake  <eblake@redhat.com>
9099
9100         fdopendir: detect FreeBSD bug
9101         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9102         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9103
9104 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9105
9106         stdbool: do not define HAVE_STDBOOL_H
9107         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9108         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9109         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9110         imported from the latest Autoconf git.  It was motivated by Emacs,
9111         which uses gnulib but does not need HAVE_STDBOOL_H.
9112
9113 2011-02-04  Bruno Haible  <bruno@clisp.org>
9114
9115         wcsnrtombs: Prepare for new module wwcsnrtombs.
9116         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9117         * lib/wcsnrtombs.c: Include it.
9118         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9119
9120         wcsrtombs: Prepare for new module wwcsrtombs.
9121         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9122         * lib/wcsrtombs.c: Include it.
9123         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9124
9125         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9126         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9127         * lib/mbsnrtowcs.c: Include it.
9128         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9129
9130         mbsrtowcs: Prepare for new module mbsrtowwcs.
9131         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9132         * lib/mbsrtowcs.c: Include it.
9133         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9134
9135 2011-02-04  Bruno Haible  <bruno@clisp.org>
9136
9137         vasnprintf: Reduce use of malloc for small format strings.
9138         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9139         (arguments): Add room for the first 7 arguments.
9140         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9141         (char_directives, u8_directives, u16_directives, u32_directives): Add
9142         room for the first 7 directives.
9143         * lib/printf-parse.c: Include <string.h>.
9144         (PRINTF_PARSE): Change memory handling code so that it uses the first
9145         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9146         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9147         Reported by Pádraig Brady <P@draigbrady.com>.
9148
9149 2011-01-31  Eric Blake  <eblake@redhat.com>
9150
9151         dup2: work around Haiku bug
9152         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9153         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9154         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9155         * tests/test-dup2.c (main): Enhance test.
9156
9157 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9158
9159         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9160         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9161         declared by eglibc 2.11.2.
9162         * lib/stdio.in.h: Likewise.
9163
9164 2011-01-31  Eric Blake  <eblake@redhat.com>
9165
9166         ignore-value: add missing test dependency
9167         * tests/test-ignore-value.c: Revert previous change; stdio.h
9168         provides off_t.
9169         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9170
9171 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9172
9173         mktime: clarify long_int width checking
9174         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9175         the top level, to make it clearer that the assumption about
9176         long_int width is being checked.  See
9177         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9178
9179 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9180
9181         ignore-value: Fix self-test.
9182         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9183
9184 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9185
9186         TYPE_MAXIMUM: avoid theoretically undefined behavior
9187         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9188         negative number, which the C Standard says has undefined behavior.
9189         In practice this is not a problem, but might as well do it by the book.
9190         Reported by Rich Felker and Eric Blake; see
9191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9192         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9193         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9194         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9195         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9196         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9197         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9198
9199         mktime: #undef mktime before #defining it
9200         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9201
9202         mktime: systematically normalize tm_isdst comparisons
9203         * lib/mktime.c (isdst_differ): New function.
9204         (__mktime_internal): Use it systematically for all isdst comparisons.
9205         This completes the fix for libc BZ #6723, and removes the need for
9206         normalizing tm_isdst.  See
9207         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9208         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9209
9210         mktime: fix some integer overflow issues and sidestep the rest
9211
9212         This was prompted by a bug report by Benjamin Lindner for MinGW
9213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9214         His bug is due to signed integer overflow (0 - INT_MIN), and I
9215         I scanned through mktime.c looking for other integer overflow
9216         problems, fixing all the bugs I found.
9217
9218         Although the C Standard says the resulting code is still not safe
9219         in the presence of integer overflow, in practice it should be good
9220         enough for all real-world two's-complement implementations, except
9221         for debugging environments that deliberately trap on integer
9222         overflow (e.g., gcc -ftrapv).
9223
9224         * lib/mktime.c (WRAPV): New macro.
9225         (SHR): Also check that long_int and time_t shift right in the
9226         usual way, before using the fast-but-unportable method.
9227         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9228         used.  The code already assumed two's complement, so there's
9229         no need to test for alternatives.  All uses removed.
9230         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9231         the C standard.  Problem reported by Rich Felker in
9232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9233         (twos_complement_arithmetic): Also check long_int and time_t.
9234         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9235         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9236         (__mktime_internal): Avoid integer overflow with unary subtraction
9237         in two instances where -1 - X is an adequate replacement for -X,
9238         since the calculations are approximate.
9239
9240 2011-01-29  Eric Blake  <eblake@redhat.com>
9241
9242         mktime: avoid infinite loop
9243         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
9244         type; behavior is still undefined but portable to all known targets.
9245         Reported by Rich Felker.
9246
9247 2011-01-29  Simon Josefsson  <simon@josefsson.org>
9248
9249         rename, unlink, same-inode: Relicense.
9250         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
9251         * modules/unlink (License): Likewise.
9252         * modules/same-inode (License): Likewise.
9253
9254 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9255
9256         mktime: avoid problems on NetBSD 5 / i386
9257         * lib/mktime.c (long_int): New type.  This works around a problem
9258         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
9259         but time_t is 64 bits, and where I expect the existing code is
9260         wrong in some cases.
9261         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
9262         (ydhms_diff): Bring back the compile-time check for wide-enough
9263         year and yday.
9264
9265         mktime: fix misspelling in comment
9266         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
9267         This merges all recent glibc changes of importance.
9268
9269 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9270
9271         move-if-change: cope with concurrent mv of identical file.
9272         * build-aux/move-if-change (CMPPROG): Accept environment
9273         variable as an override for `cmp'.
9274         (usage): Document CMPPROG.
9275         Adjust comparison to drop stdout.  Cope with failure of mv if
9276         the target file exists and is identical to the source, for
9277         parallel builds.
9278         Report from H.J. Lu against binutils in PR binutils/12283.
9279
9280 2011-01-28  Bruce Korb  <bkorb@gnu.org>
9281
9282         * users.txt: Mention sharutils.
9283
9284 2011-01-28  Simon Josefsson  <simon@josefsson.org>
9285
9286         * users.txt: Mention OATH Toolkit.
9287
9288 2011-01-27  Bruno Haible  <bruno@clisp.org>
9289
9290         Prepare for supporting FreeBSD 10.
9291         * build-aux/config.libpath: Remove handling of freebsd1*.
9292
9293 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
9294
9295         Prepare for supporting FreeBSD 10.
9296         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
9297         match FreeBSD 10.0.
9298
9299 2011-01-27  Bruno Haible  <bruno@clisp.org>
9300
9301         vma-iter, get-rusage-as: Add OpenBSD support.
9302         * modules/vma-iter (configure.ac): Test for mquery.
9303         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
9304         * lib/vma-iter.c: Include <sys/mman.h>.
9305         (vma_iterate): Add an implementation based on mquery().
9306         * lib/resource-ext.h (get_rusage_as): Update comments.
9307         * lib/get-rusage-as.c: Likewise.
9308         * lib/get-rusage-data.c: Likewise.
9309
9310 2011-01-26  Karl Berry  <karl@gnu.org>
9311
9312         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
9313         variables to make it easier to override the makeinfo program used.
9314
9315 2011-01-26  Eric Blake  <eblake@redhat.com>
9316
9317         fcntl: work around Haiku F_DUPFD bugs
9318         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
9319         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
9320         cloexec bit on duplication.
9321         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
9322
9323 2011-01-26  Bruno Haible  <bruno@clisp.org>
9324
9325         Enable memory leak tests on AIX.
9326         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
9327         * tests/test-fprintf-posix3.c (main): Likewise.
9328
9329 2011-01-26  Bruno Haible  <bruno@clisp.org>
9330
9331         Tests for module 'get-rusage-data'.
9332         * modules/get-rusage-data-tests: New file.
9333         * tests/test-get-rusage-data.c: New file.
9334
9335         New module 'get-rusage-data'.
9336         * lib/resource-ext.h (get_rusage_data): New declaration.
9337         * lib/get-rusage-data.c: New file.
9338         * modules/get-rusage-data: New file.
9339
9340 2011-01-25  Bruno Haible  <bruno@clisp.org>
9341
9342         get-rusage-as: Allow for easier testing.
9343         * lib/resource-ext.h (get_rusage_as): Add comment.
9344         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9345         (main): New function for interactive testing.
9346
9347 2011-01-25  Bruno Haible  <bruno@clisp.org>
9348
9349         vma-iter: Treat Haiku like BeOS.
9350         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9351         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9352
9353 2011-01-25  Eric Blake  <eblake@redhat.com>
9354
9355         c-stack: fix regression on cygwin when libsigsegv is present
9356         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9357
9358 2011-01-24  Bruno Haible  <bruno@clisp.org>
9359
9360         vma-iter: Avoid empty intervals.
9361         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9362         on an empty interval.
9363
9364 2011-01-24  Jim Meyering  <meyering@redhat.com>
9365
9366         u64: remove unnecessary #include
9367         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9368
9369 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9370
9371         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9372         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9373
9374 2011-01-23  Bruno Haible  <bruno@clisp.org>
9375
9376         New module 'vma-iter'.
9377         * lib/vma-iter.h: New file.
9378         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9379         * modules/vma-iter: New file.
9380         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9381         for get_rusage_as_via_iterator.
9382         (vma_iterate_callback): New function.
9383         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9384         * modules/get-rusage-as (Depends-on): Add vma-iter.
9385
9386 2011-01-23  Bruno Haible  <bruno@clisp.org>
9387
9388         uninorm: Tweak includes.
9389         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9390         Reported by Jim Meyering.
9391
9392 2011-01-23  Bruno Haible  <bruno@clisp.org>
9393
9394         get-rusage-as: Improve on NetBSD.
9395         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9396         /proc, like on FreeBSD.
9397
9398 2011-01-23  Jim Meyering  <meyering@redhat.com>
9399
9400         xreadlink.h: remove unnecessary #include
9401         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
9402
9403         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
9404         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
9405
9406 2011-01-23  Bruno Haible  <bruno@clisp.org>
9407
9408         get-rusage-as: Fix bug.
9409         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
9410         original limit when aborting the first loop.
9411
9412 2011-01-23  Bruno Haible  <bruno@clisp.org>
9413
9414         wctype: Ensure valid C syntax.
9415         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
9416         unconditionally, instead of gl_NEXT_HEADERS conditionally.
9417
9418 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9419
9420         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
9421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
9422         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
9423         as they are needed only for configure's test case.
9424         This removes two unnecessary symbols from config.h.
9425
9426         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
9427         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
9428         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
9429         AC_CHECK_HEADERS_ONCE on a header that we also invoke
9430         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
9431         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
9432         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
9433         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9434         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9435         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9436         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9437         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9438         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9439         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9440         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9441         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9442         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9443         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9444
9445 2011-01-21  Eric Blake  <eblake@redhat.com>
9446
9447         maintainer-makefile: work with older git for submodule check
9448         * top/maint.mk (public-submodule-commit): Rewrite to avoid
9449         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
9450         Reported by Matthias Bolte.
9451
9452         bootstrap: minor portability fixes
9453         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
9454         (usage): Omit leading capital and trailing . on help phrases, per
9455         GNU Coding Standards.
9456         (check_versions, top level): Prefix messages with script name.
9457
9458 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
9459
9460         bootstrap: support --no-git option
9461         * build-aux/bootstrap: Add --no-git option, to be used when
9462         --gnulib-srcdir points to the exact desired checkout.
9463
9464 2011-01-21  Eric Blake  <eblake@redhat.com>
9465
9466         strerror_r-posix: work with glibc 2.13
9467         * lib/strerror_r.c (strerror_r): Fix return type.
9468
9469 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9470             Bruno Haible  <bruno@clisp.org>
9471
9472         uN_strstr: New unit tests.
9473         * modules/unistr/u8-strstr-tests: New file.
9474         * modules/unistr/u16-strstr-tests: New file.
9475         * modules/unistr/u32-strstr-tests: New file.
9476         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
9477         * tests/unistr/test-u8-strstr.c: New file.
9478         * tests/unistr/test-u16-strstr.c: New file.
9479         * tests/unistr/test-u32-strstr.c: New file.
9480
9481 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9482             Bruno Haible  <bruno@clisp.org>
9483
9484         Make uN_strstr functions O(n) worst-case.
9485         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
9486         16-bit and 32-bit unit cases, use the unibyte algorithm from
9487         lib/mbsstr.c.
9488         * lib/unistr/u8-strstr.c: Include <string.h>.
9489         (UNIT_IS_UINT8_T): New macro.
9490         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
9491         (U_STRLEN, U_STRNLEN): New macros.
9492         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
9493         (U_STRLEN, U_STRNLEN): New macros.
9494         * modules/unistr/u8-strstr (Depends-on): Add strstr.
9495         (configure.ac): Update required libunistring version.
9496         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
9497         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
9498         malloca.
9499         (configure.ac): Update required libunistring version.
9500         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
9501         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
9502         malloca.
9503         (configure.ac): Update required libunistring version.
9504
9505 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9506             Bruno Haible  <bruno@clisp.org>
9507
9508         Prepare for faster uN_strstr functions.
9509         * lib/str-kmp.h: Support definable UNITs.
9510         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
9511         needle_len argument.
9512         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
9513         * lib/mbscasestr.c (mbscasestr): Likewise.
9514
9515 2011-01-21  Pádraig Brady <P@draigBrady.com>
9516
9517         malloca-tests: make faster by unsetting MALLOC_PERTURB_
9518         * tests/test-malloca.c (main): Unset the environment variable
9519         to greatly speed up the test.
9520         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
9521         * modules/malloca-tests: Depend on unsetenv.
9522
9523 2011-01-21  Pádraig Brady <P@draigBrady.com>
9524
9525         ignore-value: remove stdint dependency
9526         * lib/ignore-value.h: Remove <stdint.h>
9527         * modules/ignore-value: Remove stdint dependency.
9528
9529 2011-01-21  Jim Meyering  <meyering@redhat.com>
9530
9531         maint.mk: adjust variable name to be consistent with other gl_ vars
9532         * top/maint.mk (gl_public_submodule_commit): Rename the variable
9533         to be lower case.
9534
9535 2011-01-20  Jim Meyering  <meyering@redhat.com>
9536
9537         maint.mk: make "check" depend on public-submodule-commit by default
9538         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
9539
9540 2011-01-20  Bruno Haible  <bruno@clisp.org>
9541
9542         mbfile, mbiter: Complete change from 2008-12-21.
9543         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
9544         * m4/mbiter.m4 (gl_MBITER): Likewise.
9545
9546 2011-01-20  Jim Meyering  <meyering@redhat.com>
9547
9548         init.sh: insert space between each function name and "()"
9549         * tests/init.sh: Make it a little easier to see that a function's
9550         name is "warn_", and not "warn" when looking at the first part of
9551         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
9552
9553 2011-01-20  Jim Meyering  <meyering@redhat.com>
9554
9555         mountlist: clean up code formatting
9556         * lib/mountlist.c (read_file_system_list): Split a long line,
9557         correct bracing style, use NULL in place of "(struct statfs *)0",
9558         don't parenthesize return value, add spaces around "=" and after
9559         ";-in-for-stmt".
9560
9561 2011-01-14  Markus Duft <mduft@gentoo.org>
9562
9563         mountlist: add support for Interix
9564         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
9565         Apply statvfs to all entries of /dev/fs.
9566         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
9567         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
9568
9569 2011-01-20  Jim Meyering  <meyering@redhat.com>
9570
9571         maint.mk: improve the public-submodule-commit rule
9572         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
9573         to suppress printing of its commands... unless V=1.
9574         Add git submodule's --quiet option to suppress printing of e.g.,
9575         "Entering gnulib" output.
9576         "cd" into $(srcdir) before running git submodule.
9577
9578 2011-01-20  Bruno Haible  <bruno@clisp.org>
9579
9580         include_next: Fix bug introduced on 2011-01-18.
9581         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
9582         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
9583         ac_cv_header_... variable if the second argument is not 'check'.
9584         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
9585         gl_NEXT_HEADERS_INTERNAL.
9586
9587 2011-01-20  Bruno Haible  <bruno@clisp.org>
9588
9589         Allow the user to avoid the GNULIB_TEST_* macros.
9590         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
9591         Suggested by Paul Eggert.
9592
9593 2011-01-14  Jim Meyering  <meyering@redhat.com>
9594
9595         bootstrap: avoid failure when there is no .gitmodules file
9596         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
9597         has been assigned to, even when its value is the empty string.
9598         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
9599         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
9600         Reported by John W. Eaton <jwe@gnu.org>.
9601
9602 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
9603
9604         assume <ctype.h>, ..., <time.h> exist
9605         For years gnulib has been assuming the existence of the headers
9606         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
9607         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
9608         them, since they don't appear to be needed.
9609         * README (Portability guidelines): Document this.
9610         * lib/flock.c: Assume <fcntl.h> exists.
9611         * lib/regex_internal.h: Assume <locale.h> exists.
9612         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
9613         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
9614         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
9615         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
9616         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
9617         * m4/regex.m4 (gl_REGEX): Likewise.
9618         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
9619         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
9620         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
9621         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
9622         * tests/test-argp.c: Likewise.
9623         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
9624
9625         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
9626         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
9627         AA_APPLE_UNIVERSAL_BUILD.  See
9628         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
9629         * NEWS: Document this.
9630
9631 2011-01-19  Eric Blake  <eblake@redhat.com>
9632
9633         c-stack: assume stack overflow if SA_SIGINFO unsupported
9634         * lib/c-stack.c (SIGACTION_WORKS): Rename...
9635         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
9636         sigaction will work.
9637         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
9638         behavior match Linux.
9639         * tests/test-c-stack.c (main): Prefer NULL for pointers.
9640
9641         stdbool-tests: accomodate Haiku
9642         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
9643
9644         binary-io: fix O_TEXT on Haiku
9645         * modules/binary-io (Depends-on): Add fcntl-h.
9646         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
9647         than blindly undefining O_TEXT.
9648         Reported by Scott McCreary.
9649
9650 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9651
9652         include_next: do not check for standard headers like stddef.h
9653
9654         I found this problem when modifying Emacs to use gnulib.
9655         I noticed that it added HAVE_STDDEF_H to config.h, even though
9656         gnulib always assumes <stddef.h> exists as per README and this
9657         symbol is unnecessary.
9658         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
9659         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
9660         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
9661         faster for headers like stddef.h that are known to exist.
9662         (gl_CHECK_NEXT_HEADERS): Use it.
9663         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
9664         rather than gl_CHECK_NEXT_HEADERS.
9665         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
9666         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
9667
9668 2011-01-18  Eric Blake  <eblake@redhat.com>
9669
9670         ansi-c++-opt: skip C++ dependency style if C++ is unused
9671         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
9672         tests when we know C++ compilation is not desired.
9673         Reported by Scott McCreary.
9674
9675 2011-01-18  Bruno Haible  <bruno@clisp.org>
9676
9677         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
9678         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
9679         (main): Perform test also when getrlimit and setrlimit don't exist or
9680         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
9681         limiting the address space size using setrlimit, compare the address
9682         space size before and after the the test.
9683         * tests/test-dprintf-posix2.c: Likewise.
9684         * tests/test-fprintf-posix3.sh: Update skip messages.
9685         * tests/test-dprintf-posix2.sh: Likewise.
9686         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
9687         * modules/dprintf-posix-tests (Depends-on): Likewise.
9688         Reported by Bruce Korb <bkorb@gnu.org> and
9689         Gary V. Vaughan <gary@gnu.org>.
9690
9691 2011-01-18  Bruno Haible  <bruno@clisp.org>
9692
9693         get-rusage-as: Improvement for Cygwin.
9694         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
9695         areas that are merely reserved.
9696
9697 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9698
9699         strftime: remove dependencies on multibyte modules
9700
9701         strftime depended on mbrlen, mbsinit, and wchar, but these modules
9702         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
9703         only if __osf__ is defined, and I suspect OSF doesn't need these
9704         other modules.  If my guess is wrong, we'll need to come up with a
9705         variant of strftime that doesn't need the multibyte modules.
9706
9707         I discovered this problem when attempting modify Emacs to use the
9708         strftime module.  With the previous gnulib, this caused Emacs to
9709         need 31 new files, ranging from lib/config.charset to
9710         m4/wint_t.m4.  This was overkill and I expect would be offputting
9711         to the Emacs maintainers.  After this change, only 6 new files are
9712         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
9713         stdbool.m4, and tm_gmtoff.m4.
9714
9715         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
9716         Suggested by Bruno Haible in
9717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
9718         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
9719         and do not check for wchar.h.
9720         * modules/strftime (Files): Remove m4/mbstate_t.m4.
9721         (Depends-on): Remove mbrlen, mbsinit, wchar.
9722
9723 2011-01-18  Bruno Haible  <bruno@clisp.org>
9724
9725         Tests for module 'get-rusage-as'.
9726         * modules/get-rusage-as-tests: New file.
9727         * tests/test-get-rusage-as.c: New file.
9728
9729         New module 'get-rusage-as'.
9730         * modules/get-rusage-as: New file.
9731         * lib/resource-ext.h: New file.
9732         * lib/get-rusage-as.c: New file.
9733
9734 2011-01-17  Eric Blake  <eblake@redhat.com>
9735
9736         sigaction: relax license from LGPLv3+ to LGPLv2+
9737         * modules/sigaction (License): Relax to LGPLv2+.
9738
9739 2011-01-14  Bruno Haible  <bruno@clisp.org>
9740
9741         filemode: Make function declarations usable in C++ mode.
9742         * lib/filemode.h: Enclose function declarations in extern "C" block.
9743         Reported by John W. Eaton <jwe@gnu.org>.
9744
9745 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
9746
9747         save-cwd: no longer include "xgetcwd.h"
9748         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
9749         This avoids a compilation failure in projects that use save-cwd
9750         without also using the xgetcwd module.
9751
9752 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9753
9754         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
9755         This is so that a program like Emacs, which needs only dtoastr,
9756         does not have to bother with distributing and compiling ftoastr
9757         and ldtoastr.
9758         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
9759         * modules/dtoastr, modules/ldtoastr: New files.
9760         * modules/ftoastr: Now works just for 'float'.
9761         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
9762         (Makefile.am): Remove ftoastr.h (not needed and no effect),
9763         dtoastr.c, ldtoastr.c.
9764
9765 2011-01-11  Jim Meyering  <meyering@redhat.com>
9766
9767         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
9768         There is no need to work around the lack of the fchdir function,
9769         since gnulib can now provide a replacement when required.
9770         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
9771         * modules/save-cwd (Depends-on): Add fchdir.
9772
9773 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9774
9775         openat, save-cwd: avoid xmalloc
9776
9777         This removes a direct (but undocumented) dependency of openat on
9778         xalloc, along with an indirect dependency via save-cwd.  It also
9779         removes a dependency of save-cwd on xgetcwd, and thereby
9780         indirectly on xalloc.  This change causes the openat substitute
9781         to fall back on save_cwd when memory is tight, and for save_cwd to
9782         fail instead of dying when memory is tight, but that's good enough.
9783         Problem and initial idea for fix reported by Bastien Roucaries in
9784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
9785
9786         * lib/openat-proc.c: Include stdlib.h (for malloc), not
9787         xalloc.h (for xmalloc).
9788         (openat_proc_name): Use malloc, not xmalloc.
9789         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
9790         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
9791
9792         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
9793         This avoids heap allocation for file names whose lengths are in
9794         the range 512..1023, with the upper bound increasing to at most
9795         4031 depending on the platform's PATH_MAX.  (We do not want
9796         pathmax.h here as it might supply a non-constant PATH_MAX.)
9797         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
9798         Perhaps they should be moved to malloca.h?
9799         (OPENAT_BUFFER_SIZE): Use them.
9800
9801 2011-01-10  Bruno Haible  <bruno@clisp.org>
9802
9803         doc: Update users.txt.
9804         * users.txt: Add recutils.
9805
9806 2011-01-09  Karl Berry  <karl@gnu.org>
9807
9808         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
9809
9810         * doc/configmake.texi: New file.
9811         * doc/gnulib.texi: Include it.
9812         * modules/configmake: Move documentation from here.
9813
9814 2011-01-09  Bruno Haible  <bruno@clisp.org>
9815
9816         Update to Unicode 6.0.0.
9817         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
9818         (get_lbp): Update for Unicode 6.0.0.
9819         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
9820         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
9821         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
9822         U+11001, U+11038..U+11046. Remove U+06DE.
9823         (uc_width): Fix bounds of planes.
9824         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9825         lib/uniwidth/width.c.
9826         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
9827         trailing whitespace removed.
9828         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
9829         without comments, but with the original copyright notice.
9830         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
9831         * lib/unicase/ignorable.h: Likewise.
9832         * lib/unicase/tocasefold.h: Likewise.
9833         * lib/unicase/tolower.h: Likewise.
9834         * lib/unicase/totitle.h: Likewise.
9835         * lib/unicase/toupper.h: Likewise.
9836         * lib/unictype/bidi_of.h: Likewise.
9837         * lib/unictype/blocks.h: Likewise.
9838         * lib/unictype/categ_C.h: Likewise.
9839         * lib/unictype/categ_Cn.h: Likewise.
9840         * lib/unictype/categ_L.h: Likewise.
9841         * lib/unictype/categ_Ll.h: Likewise.
9842         * lib/unictype/categ_Lm.h: Likewise.
9843         * lib/unictype/categ_Lo.h: Likewise.
9844         * lib/unictype/categ_Lu.h: Likewise.
9845         * lib/unictype/categ_M.h: Likewise.
9846         * lib/unictype/categ_Mc.h: Likewise.
9847         * lib/unictype/categ_Me.h: Likewise.
9848         * lib/unictype/categ_Mn.h: Likewise.
9849         * lib/unictype/categ_N.h: Likewise.
9850         * lib/unictype/categ_Nd.h: Likewise.
9851         * lib/unictype/categ_No.h: Likewise.
9852         * lib/unictype/categ_P.h: Likewise.
9853         * lib/unictype/categ_Po.h: Likewise.
9854         * lib/unictype/categ_S.h: Likewise.
9855         * lib/unictype/categ_Sc.h: Likewise.
9856         * lib/unictype/categ_Sk.h: Likewise.
9857         * lib/unictype/categ_Sm.h: Likewise.
9858         * lib/unictype/categ_So.h: Likewise.
9859         * lib/unictype/categ_of.h: Likewise.
9860         * lib/unictype/combining.h: Likewise.
9861         * lib/unictype/ctype_alnum.h: Likewise.
9862         * lib/unictype/ctype_alpha.h: Likewise.
9863         * lib/unictype/ctype_graph.h: Likewise.
9864         * lib/unictype/ctype_lower.h: Likewise.
9865         * lib/unictype/ctype_print.h: Likewise.
9866         * lib/unictype/ctype_punct.h: Likewise.
9867         * lib/unictype/ctype_upper.h: Likewise.
9868         * lib/unictype/decdigit.h: Likewise.
9869         * lib/unictype/digit.h: Likewise.
9870         * lib/unictype/numeric.h: Likewise.
9871         * lib/unictype/pr_alphabetic.h: Likewise.
9872         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9873         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9874         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9875         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9876         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9877         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9878         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9879         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9880         * lib/unictype/pr_case_ignorable.h: Likewise.
9881         * lib/unictype/pr_cased.h: Likewise.
9882         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
9883         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
9884         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
9885         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
9886         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
9887         * lib/unictype/pr_combining.h: Likewise.
9888         * lib/unictype/pr_composite.h: Likewise.
9889         * lib/unictype/pr_currency_symbol.h: Likewise.
9890         * lib/unictype/pr_decimal_digit.h: Likewise.
9891         * lib/unictype/pr_deprecated.h: Likewise.
9892         * lib/unictype/pr_format_control.h: Likewise.
9893         * lib/unictype/pr_grapheme_base.h: Likewise.
9894         * lib/unictype/pr_grapheme_extend.h: Likewise.
9895         * lib/unictype/pr_grapheme_link.h: Likewise.
9896         * lib/unictype/pr_id_continue.h: Likewise.
9897         * lib/unictype/pr_id_start.h: Likewise.
9898         * lib/unictype/pr_ideographic.h: Likewise.
9899         * lib/unictype/pr_lowercase.h: Likewise.
9900         * lib/unictype/pr_math.h: Likewise.
9901         * lib/unictype/pr_numeric.h: Likewise.
9902         * lib/unictype/pr_other_alphabetic.h: Likewise.
9903         * lib/unictype/pr_other_id_continue.h: Likewise.
9904         * lib/unictype/pr_other_math.h: Likewise.
9905         * lib/unictype/pr_punctuation.h: Likewise.
9906         * lib/unictype/pr_sentence_terminal.h: Likewise.
9907         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9908         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9909         * lib/unictype/pr_unified_ideograph.h: Likewise.
9910         * lib/unictype/pr_uppercase.h: Likewise.
9911         * lib/unictype/pr_xid_continue.h: Likewise.
9912         * lib/unictype/pr_xid_start.h: Likewise.
9913         * lib/unictype/scripts.h: Likewise.
9914         * lib/unictype/scripts_byname.gperf: Likewise.
9915         * lib/unictype/sy_java_ident.h: Likewise.
9916         * lib/unigbrk/gbrkprop.h: Likewise.
9917         * lib/unilbrk/lbrkprop1.h: Likewise.
9918         * lib/unilbrk/lbrkprop2.h: Likewise.
9919         * lib/uninorm/decomposition-table2.h: Likewise.
9920         * lib/uniwbrk/wbrkprop.h: Likewise.
9921         * tests/unicase/test-cased.c: Likewise.
9922         * tests/unicase/test-ignorable.c: Likewise.
9923         * tests/unicase/test-uc_tolower.c: Likewise.
9924         * tests/unicase/test-uc_totitle.c: Likewise.
9925         * tests/unicase/test-uc_toupper.c: Likewise.
9926         * tests/unictype/test-categ_C.c: Likewise.
9927         * tests/unictype/test-categ_Cn.c: Likewise.
9928         * tests/unictype/test-categ_L.c: Likewise.
9929         * tests/unictype/test-categ_Ll.c: Likewise.
9930         * tests/unictype/test-categ_Lm.c: Likewise.
9931         * tests/unictype/test-categ_Lo.c: Likewise.
9932         * tests/unictype/test-categ_Lu.c: Likewise.
9933         * tests/unictype/test-categ_M.c: Likewise.
9934         * tests/unictype/test-categ_Mc.c: Likewise.
9935         * tests/unictype/test-categ_Me.c: Likewise.
9936         * tests/unictype/test-categ_Mn.c: Likewise.
9937         * tests/unictype/test-categ_N.c: Likewise.
9938         * tests/unictype/test-categ_Nd.c: Likewise.
9939         * tests/unictype/test-categ_No.c: Likewise.
9940         * tests/unictype/test-categ_P.c: Likewise.
9941         * tests/unictype/test-categ_Po.c: Likewise.
9942         * tests/unictype/test-categ_S.c: Likewise.
9943         * tests/unictype/test-categ_Sc.c: Likewise.
9944         * tests/unictype/test-categ_Sk.c: Likewise.
9945         * tests/unictype/test-categ_Sm.c: Likewise.
9946         * tests/unictype/test-categ_So.c: Likewise.
9947         * tests/unictype/test-ctype_alnum.c: Likewise.
9948         * tests/unictype/test-ctype_alpha.c: Likewise.
9949         * tests/unictype/test-ctype_graph.c: Likewise.
9950         * tests/unictype/test-ctype_lower.c: Likewise.
9951         * tests/unictype/test-ctype_print.c: Likewise.
9952         * tests/unictype/test-ctype_punct.c: Likewise.
9953         * tests/unictype/test-ctype_upper.c: Likewise.
9954         * tests/unictype/test-decdigit.h: Likewise.
9955         * tests/unictype/test-digit.h: Likewise.
9956         * tests/unictype/test-numeric.h: Likewise.
9957         * tests/unictype/test-pr_alphabetic.c: Likewise.
9958         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9959         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
9960         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
9961         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9962         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9963         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9964         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9965         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9966         * tests/unictype/test-pr_case_ignorable.c: Likewise.
9967         * tests/unictype/test-pr_cased.c: Likewise.
9968         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
9969         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
9970         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
9971         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
9972         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
9973         * tests/unictype/test-pr_combining.c: Likewise.
9974         * tests/unictype/test-pr_composite.c: Likewise.
9975         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9976         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9977         * tests/unictype/test-pr_deprecated.c: Likewise.
9978         * tests/unictype/test-pr_format_control.c: Likewise.
9979         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9980         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9981         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9982         * tests/unictype/test-pr_id_continue.c: Likewise.
9983         * tests/unictype/test-pr_id_start.c: Likewise.
9984         * tests/unictype/test-pr_ideographic.c: Likewise.
9985         * tests/unictype/test-pr_lowercase.c: Likewise.
9986         * tests/unictype/test-pr_math.c: Likewise.
9987         * tests/unictype/test-pr_numeric.c: Likewise.
9988         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9989         * tests/unictype/test-pr_other_id_continue.c: Likewise.
9990         * tests/unictype/test-pr_other_math.c: Likewise.
9991         * tests/unictype/test-pr_punctuation.c: Likewise.
9992         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9993         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9994         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9995         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9996         * tests/unictype/test-pr_uppercase.c: Likewise.
9997         * tests/unictype/test-pr_xid_continue.c: Likewise.
9998         * tests/unictype/test-pr_xid_start.c: Likewise.
9999         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10000         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10001         changes.
10002         * lib/unictype/categ_Cc.h: Likewise.
10003         * lib/unictype/categ_Cf.h: Likewise.
10004         * lib/unictype/categ_Co.h: Likewise.
10005         * lib/unictype/categ_Cs.h: Likewise.
10006         * lib/unictype/categ_Lt.h: Likewise.
10007         * lib/unictype/categ_Nl.h: Likewise.
10008         * lib/unictype/categ_Pc.h: Likewise.
10009         * lib/unictype/categ_Pd.h: Likewise.
10010         * lib/unictype/categ_Pe.h: Likewise.
10011         * lib/unictype/categ_Pf.h: Likewise.
10012         * lib/unictype/categ_Pi.h: Likewise.
10013         * lib/unictype/categ_Ps.h: Likewise.
10014         * lib/unictype/categ_Z.h: Likewise.
10015         * lib/unictype/categ_Zl.h: Likewise.
10016         * lib/unictype/categ_Zp.h: Likewise.
10017         * lib/unictype/categ_Zs.h: Likewise.
10018         * lib/unictype/ctype_blank.h: Likewise.
10019         * lib/unictype/ctype_cntrl.h: Likewise.
10020         * lib/unictype/ctype_digit.h: Likewise.
10021         * lib/unictype/ctype_space.h: Likewise.
10022         * lib/unictype/ctype_xdigit.h: Likewise.
10023         * lib/unictype/mirror.h: Likewise.
10024         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10025         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10026         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10027         * lib/unictype/pr_bidi_control.h: Likewise.
10028         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10029         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10030         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10031         * lib/unictype/pr_bidi_pdf.h: Likewise.
10032         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10033         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10034         * lib/unictype/pr_dash.h: Likewise.
10035         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10036         * lib/unictype/pr_diacritic.h: Likewise.
10037         * lib/unictype/pr_extender.h: Likewise.
10038         * lib/unictype/pr_hex_digit.h: Likewise.
10039         * lib/unictype/pr_hyphen.h: Likewise.
10040         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10041         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10042         * lib/unictype/pr_ignorable_control.h: Likewise.
10043         * lib/unictype/pr_iso_control.h: Likewise.
10044         * lib/unictype/pr_join_control.h: Likewise.
10045         * lib/unictype/pr_left_of_pair.h: Likewise.
10046         * lib/unictype/pr_line_separator.h: Likewise.
10047         * lib/unictype/pr_logical_order_exception.h: Likewise.
10048         * lib/unictype/pr_non_break.h: Likewise.
10049         * lib/unictype/pr_not_a_character.h: Likewise.
10050         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10051         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10052         * lib/unictype/pr_other_id_start.h: Likewise.
10053         * lib/unictype/pr_other_lowercase.h: Likewise.
10054         * lib/unictype/pr_other_uppercase.h: Likewise.
10055         * lib/unictype/pr_paired_punctuation.h: Likewise.
10056         * lib/unictype/pr_paragraph_separator.h: Likewise.
10057         * lib/unictype/pr_pattern_syntax.h: Likewise.
10058         * lib/unictype/pr_pattern_white_space.h: Likewise.
10059         * lib/unictype/pr_private_use.h: Likewise.
10060         * lib/unictype/pr_quotation_mark.h: Likewise.
10061         * lib/unictype/pr_radical.h: Likewise.
10062         * lib/unictype/pr_soft_dotted.h: Likewise.
10063         * lib/unictype/pr_space.h: Likewise.
10064         * lib/unictype/pr_titlecase.h: Likewise.
10065         * lib/unictype/pr_variation_selector.h: Likewise.
10066         * lib/unictype/pr_white_space.h: Likewise.
10067         * lib/unictype/pr_zero_width.h: Likewise.
10068         * lib/unictype/sy_c_ident.h: Likewise.
10069         * lib/unictype/sy_c_whitespace.h: Likewise.
10070         * lib/unictype/sy_java_whitespace.h: Likewise.
10071         * lib/uninorm/composition-table.gperf: Likewise.
10072         * lib/uninorm/decomposition-table1.h: Likewise.
10073         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10074         LB8.
10075         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10076         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10077         * modules/unictype/*: Bump version number of expected libunistring
10078         version.
10079
10080 2011-01-09  Bruno Haible  <bruno@clisp.org>
10081
10082         Update to Unicode 5.2.0.
10083         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10084         trailing whitespace removed.
10085
10086 2011-01-09  Bruno Haible  <bruno@clisp.org>
10087
10088         New Unicode character properties, from Unicode 5.2.0.
10089         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10090         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10091         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10092         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10093         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10094         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10095         uc_is_property_cased, uc_is_property_case_ignorable,
10096         uc_is_property_changes_when_lowercased,
10097         uc_is_property_changes_when_uppercased,
10098         uc_is_property_changes_when_titlecased,
10099         uc_is_property_changes_when_casefolded,
10100         uc_is_property_changes_when_casemapped): New declarations.
10101         * lib/unictype/pr_byname.gperf: Add the new properties.
10102         * modules/unictype/property-byname (Depends-on): Depend on the new
10103         properties modules.
10104         * modules/unictype/property-all (Depends-on): Likewise.
10105         * MODULES.html.sh (Unicode string functions): Add
10106         unictype/property-case-ignorable, unictype/property-cased,
10107         unictype/property-changes-when-casefolded,
10108         unictype/property-changes-when-casemapped,
10109         unictype/property-changes-when-lowercased,
10110         unictype/property-changes-when-titlecased,
10111         unictype/property-changes-when-uppercased.
10112
10113         New module 'unictype/property-changes-when-casemapped'.
10114         * modules/unictype/property-changes-when-casemapped: New file.
10115         * lib/unictype/pr_changes_when_casemapped.c: New file.
10116         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10117         generated by gen-uni-tables.
10118         * modules/unictype/property-changes-when-casemapped-tests: New file.
10119         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10120         automatically generated by gen-uni-tables.
10121
10122         New module 'unictype/property-changes-when-casefolded'.
10123         * modules/unictype/property-changes-when-casefolded: New file.
10124         * lib/unictype/pr_changes_when_casefolded.c: New file.
10125         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10126         generated by gen-uni-tables.
10127         * modules/unictype/property-changes-when-casefolded-tests: New file.
10128         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10129         automatically generated by gen-uni-tables.
10130
10131         New module 'unictype/property-changes-when-titlecased'.
10132         * modules/unictype/property-changes-when-titlecased: New file.
10133         * lib/unictype/pr_changes_when_titlecased.c: New file.
10134         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10135         generated by gen-uni-tables.
10136         * modules/unictype/property-changes-when-titlecased-tests: New file.
10137         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10138         automatically generated by gen-uni-tables.
10139
10140         New module 'unictype/property-changes-when-uppercased'.
10141         * modules/unictype/property-changes-when-uppercased: New file.
10142         * lib/unictype/pr_changes_when_uppercased.c: New file.
10143         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10144         generated by gen-uni-tables.
10145         * modules/unictype/property-changes-when-uppercased-tests: New file.
10146         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10147         automatically generated by gen-uni-tables.
10148
10149         New module 'unictype/property-changes-when-lowercased'.
10150         * modules/unictype/property-changes-when-lowercased: New file.
10151         * lib/unictype/pr_changes_when_lowercased.c: New file.
10152         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10153         generated by gen-uni-tables.
10154         * modules/unictype/property-changes-when-lowercased-tests: New file.
10155         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10156         automatically generated by gen-uni-tables.
10157
10158         New module 'unictype/property-case-ignorable'.
10159         * modules/unictype/property-case-ignorable: New file.
10160         * lib/unictype/pr_case_ignorable.c: New file.
10161         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10162         by gen-uni-tables.
10163         * modules/unictype/property-case-ignorable-tests: New file.
10164         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10165         generated by gen-uni-tables.
10166
10167         New module 'unictype/property-cased'.
10168         * modules/unictype/property-cased: New file.
10169         * lib/unictype/pr_cased.c: New file.
10170         * lib/unictype/pr_cased.h: New file, automatically generated by
10171         gen-uni-tables.
10172         * modules/unictype/property-cased-tests: New file.
10173         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10174         gen-uni-tables.
10175
10176 2011-01-09  Bruno Haible  <bruno@clisp.org>
10177
10178         Update to Unicode 5.2.0.
10179         * lib/gen-uni-tables.c (output_predicate, output_category,
10180         output_combclass, output_bidi_category, output_decimal_digit_test,
10181         output_decimal_digit, output_digit_test, output_digit,
10182         output_numeric_test, output_numeric, output_mirror, output_scripts,
10183         output_scripts_byname, output_blocks, output_ident_category): Fix
10184         comment header.
10185         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10186         get_wbp.
10187         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10188         items.
10189         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10190         Changes_When_Lowercased, Changes_When_Uppercased,
10191         Changes_When_Titlecased, Changes_When_Casefolded,
10192         Changes_When_Casemapped.
10193         (is_property_alphabetic, is_property_default_ignorable_code_point):
10194         Update for Unicode 5.2.0.
10195         (is_property_cased, is_property_case_ignorable,
10196         is_property_changes_when_lowercased,
10197         is_property_changes_when_uppercased,
10198         is_property_changes_when_titlecased,
10199         is_property_changes_when_casefolded,
10200         is_property_changes_when_casemapped): New functions.
10201         (output_properties): Output also the properties cased, case_ignorable,
10202         changes_when_lowercased, changes_when_uppercased,
10203         changes_when_titlecased, changes_when_casefolded,
10204         changes_when_casemapped.
10205         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10206         Unicode TR#11 revision 17 -> 19.
10207         (LBP_CP): New enumeration value.
10208         (LBP_*): Adjust values accordingly.
10209         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10210         TR#14 revision 22 -> 24.
10211         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10212         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10213         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10214         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10215         is_WBP_MIDLETTER.
10216         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10217         the code1 and code2 of each composition rule.
10218         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10219         * lib/unicase/ignorable.h: Likewise.
10220         * lib/unicase/tocasefold.h: Likewise.
10221         * lib/unicase/tolower.h: Likewise.
10222         * lib/unicase/totitle.h: Likewise.
10223         * lib/unicase/toupper.h: Likewise.
10224         * lib/unictype/bidi_of.h: Likewise.
10225         * lib/unictype/blocks.h: Likewise.
10226         * lib/unictype/categ_C.h: Likewise.
10227         * lib/unictype/categ_Cf.h: Likewise.
10228         * lib/unictype/categ_Cn.h: Likewise.
10229         * lib/unictype/categ_L.h: Likewise.
10230         * lib/unictype/categ_Ll.h: Likewise.
10231         * lib/unictype/categ_Lm.h: Likewise.
10232         * lib/unictype/categ_Lo.h: Likewise.
10233         * lib/unictype/categ_Lu.h: Likewise.
10234         * lib/unictype/categ_M.h: Likewise.
10235         * lib/unictype/categ_Mc.h: Likewise.
10236         * lib/unictype/categ_Mn.h: Likewise.
10237         * lib/unictype/categ_N.h: Likewise.
10238         * lib/unictype/categ_Nd.h: Likewise.
10239         * lib/unictype/categ_Nl.h: Likewise.
10240         * lib/unictype/categ_No.h: Likewise.
10241         * lib/unictype/categ_P.h: Likewise.
10242         * lib/unictype/categ_Pd.h: Likewise.
10243         * lib/unictype/categ_Po.h: Likewise.
10244         * lib/unictype/categ_S.h: Likewise.
10245         * lib/unictype/categ_Sc.h: Likewise.
10246         * lib/unictype/categ_So.h: Likewise.
10247         * lib/unictype/categ_of.h: Likewise.
10248         * lib/unictype/combining.h: Likewise.
10249         * lib/unictype/ctype_alnum.h: Likewise.
10250         * lib/unictype/ctype_alpha.h: Likewise.
10251         * lib/unictype/ctype_graph.h: Likewise.
10252         * lib/unictype/ctype_lower.h: Likewise.
10253         * lib/unictype/ctype_print.h: Likewise.
10254         * lib/unictype/ctype_punct.h: Likewise.
10255         * lib/unictype/ctype_upper.h: Likewise.
10256         * lib/unictype/decdigit.h: Likewise.
10257         * lib/unictype/digit.h: Likewise.
10258         * lib/unictype/numeric.h: Likewise.
10259         * lib/unictype/pr_alphabetic.h: Likewise.
10260         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10261         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10262         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10263         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10264         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10265         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10266         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10267         * lib/unictype/pr_combining.h: Likewise.
10268         * lib/unictype/pr_composite.h: Likewise.
10269         * lib/unictype/pr_currency_symbol.h: Likewise.
10270         * lib/unictype/pr_dash.h: Likewise.
10271         * lib/unictype/pr_decimal_digit.h: Likewise.
10272         * lib/unictype/pr_deprecated.h: Likewise.
10273         * lib/unictype/pr_diacritic.h: Likewise.
10274         * lib/unictype/pr_extender.h: Likewise.
10275         * lib/unictype/pr_grapheme_base.h: Likewise.
10276         * lib/unictype/pr_grapheme_extend.h: Likewise.
10277         * lib/unictype/pr_grapheme_link.h: Likewise.
10278         * lib/unictype/pr_id_continue.h: Likewise.
10279         * lib/unictype/pr_id_start.h: Likewise.
10280         * lib/unictype/pr_ideographic.h: Likewise.
10281         * lib/unictype/pr_ignorable_control.h: Likewise.
10282         * lib/unictype/pr_logical_order_exception.h: Likewise.
10283         * lib/unictype/pr_lowercase.h: Likewise.
10284         * lib/unictype/pr_numeric.h: Likewise.
10285         * lib/unictype/pr_other_alphabetic.h: Likewise.
10286         * lib/unictype/pr_punctuation.h: Likewise.
10287         * lib/unictype/pr_sentence_terminal.h: Likewise.
10288         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10289         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10290         * lib/unictype/pr_unified_ideograph.h: Likewise.
10291         * lib/unictype/pr_uppercase.h: Likewise.
10292         * lib/unictype/pr_xid_continue.h: Likewise.
10293         * lib/unictype/pr_xid_start.h: Likewise.
10294         * lib/unictype/pr_zero_width.h: Likewise.
10295         * lib/unictype/scripts.h: Likewise.
10296         * lib/unictype/scripts_byname.gperf: Likewise.
10297         * lib/unictype/sy_java_ident.h: Likewise.
10298         * lib/unigbrk/gbrkprop.h: Likewise.
10299         * lib/unilbrk/lbrkprop1.h: Likewise.
10300         * lib/unilbrk/lbrkprop2.h: Likewise.
10301         * lib/unilbrk/lbrktables.h: Likewise.
10302         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
10303         LBP_CP. Implement rule LB30.
10304         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
10305         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
10306         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
10307         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
10308         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
10309         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
10310         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
10311         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
10312         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
10313         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
10314         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
10315         bits instead of 16 bits in the code1 and code2 of each composition
10316         rule.
10317         (uc_composition): Update for Unicode 5.2.0.
10318         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
10319         * lib/uninorm/decomposition-table2.h: Likewise.
10320         * lib/uniwbrk/wbrkprop.h: Likewise.
10321         * tests/unicase/test-cased.c: Likewise.
10322         * tests/unicase/test-ignorable.c: Likewise.
10323         * tests/unicase/test-uc_tolower.c: Likewise.
10324         * tests/unicase/test-uc_totitle.c: Likewise.
10325         * tests/unicase/test-uc_toupper.c: Likewise.
10326         * tests/unictype/test-categ_C.c: Likewise.
10327         * tests/unictype/test-categ_Cf.c: Likewise.
10328         * tests/unictype/test-categ_Cn.c: Likewise.
10329         * tests/unictype/test-categ_L.c: Likewise.
10330         * tests/unictype/test-categ_Ll.c: Likewise.
10331         * tests/unictype/test-categ_Lm.c: Likewise.
10332         * tests/unictype/test-categ_Lo.c: Likewise.
10333         * tests/unictype/test-categ_Lu.c: Likewise.
10334         * tests/unictype/test-categ_M.c: Likewise.
10335         * tests/unictype/test-categ_Mc.c: Likewise.
10336         * tests/unictype/test-categ_Mn.c: Likewise.
10337         * tests/unictype/test-categ_N.c: Likewise.
10338         * tests/unictype/test-categ_Nd.c: Likewise.
10339         * tests/unictype/test-categ_Nl.c: Likewise.
10340         * tests/unictype/test-categ_No.c: Likewise.
10341         * tests/unictype/test-categ_P.c: Likewise.
10342         * tests/unictype/test-categ_Pd.c: Likewise.
10343         * tests/unictype/test-categ_Po.c: Likewise.
10344         * tests/unictype/test-categ_S.c: Likewise.
10345         * tests/unictype/test-categ_Sc.c: Likewise.
10346         * tests/unictype/test-categ_So.c: Likewise.
10347         * tests/unictype/test-ctype_alnum.c: Likewise.
10348         * tests/unictype/test-ctype_alpha.c: Likewise.
10349         * tests/unictype/test-ctype_graph.c: Likewise.
10350         * tests/unictype/test-ctype_lower.c: Likewise.
10351         * tests/unictype/test-ctype_print.c: Likewise.
10352         * tests/unictype/test-ctype_punct.c: Likewise.
10353         * tests/unictype/test-ctype_upper.c: Likewise.
10354         * tests/unictype/test-decdigit.h: Likewise.
10355         * tests/unictype/test-digit.h: Likewise.
10356         * tests/unictype/test-numeric.h: Likewise.
10357         * tests/unictype/test-pr_alphabetic.c: Likewise.
10358         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10359         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10360         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10361         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10362         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10363         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10364         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10365         * tests/unictype/test-pr_combining.c: Likewise.
10366         * tests/unictype/test-pr_composite.c: Likewise.
10367         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10368         * tests/unictype/test-pr_dash.c: Likewise.
10369         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10370         * tests/unictype/test-pr_deprecated.c: Likewise.
10371         * tests/unictype/test-pr_diacritic.c: Likewise.
10372         * tests/unictype/test-pr_extender.c: Likewise.
10373         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10374         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10375         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10376         * tests/unictype/test-pr_id_continue.c: Likewise.
10377         * tests/unictype/test-pr_id_start.c: Likewise.
10378         * tests/unictype/test-pr_ideographic.c: Likewise.
10379         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10380         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10381         * tests/unictype/test-pr_lowercase.c: Likewise.
10382         * tests/unictype/test-pr_numeric.c: Likewise.
10383         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10384         * tests/unictype/test-pr_punctuation.c: Likewise.
10385         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10386         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10387         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10388         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10389         * tests/unictype/test-pr_uppercase.c: Likewise.
10390         * tests/unictype/test-pr_xid_continue.c: Likewise.
10391         * tests/unictype/test-pr_xid_start.c: Likewise.
10392         * tests/unictype/test-pr_zero_width.c: Likewise.
10393         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10394         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10395         changed behaviour: line breaking is now disallowed between a letter
10396         or '=' and '('.
10397         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10398         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10399         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10400         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10401         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10402         lib/uniwidth/width.c.
10403         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
10404         without comments, but with the original copyright notice.
10405         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10406         changes.
10407         * lib/unictype/categ_Cc.h: Likewise.
10408         * lib/unictype/categ_Co.h: Likewise.
10409         * lib/unictype/categ_Cs.h: Likewise.
10410         * lib/unictype/categ_Lt.h: Likewise.
10411         * lib/unictype/categ_Me.h: Likewise.
10412         * lib/unictype/categ_Pc.h: Likewise.
10413         * lib/unictype/categ_Pe.h: Likewise.
10414         * lib/unictype/categ_Pf.h: Likewise.
10415         * lib/unictype/categ_Pi.h: Likewise.
10416         * lib/unictype/categ_Ps.h: Likewise.
10417         * lib/unictype/categ_Sk.h: Likewise.
10418         * lib/unictype/categ_Sm.h: Likewise.
10419         * lib/unictype/categ_Z.h: Likewise.
10420         * lib/unictype/categ_Zl.h: Likewise.
10421         * lib/unictype/categ_Zp.h: Likewise.
10422         * lib/unictype/categ_Zs.h: Likewise.
10423         * lib/unictype/ctype_blank.h: Likewise.
10424         * lib/unictype/ctype_cntrl.h: Likewise.
10425         * lib/unictype/ctype_digit.h: Likewise.
10426         * lib/unictype/ctype_space.h: Likewise.
10427         * lib/unictype/ctype_xdigit.h: Likewise.
10428         * lib/unictype/mirror.h: Likewise.
10429         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10430         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10431         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10432         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10433         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10434         * lib/unictype/pr_bidi_control.h: Likewise.
10435         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10436         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10437         * lib/unictype/pr_bidi_pdf.h: Likewise.
10438         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10439         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10440         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10441         * lib/unictype/pr_format_control.h: Likewise.
10442         * lib/unictype/pr_hex_digit.h: Likewise.
10443         * lib/unictype/pr_hyphen.h: Likewise.
10444         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10445         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10446         * lib/unictype/pr_iso_control.h: Likewise.
10447         * lib/unictype/pr_join_control.h: Likewise.
10448         * lib/unictype/pr_left_of_pair.h: Likewise.
10449         * lib/unictype/pr_line_separator.h: Likewise.
10450         * lib/unictype/pr_math.h: Likewise.
10451         * lib/unictype/pr_non_break.h: Likewise.
10452         * lib/unictype/pr_not_a_character.h: Likewise.
10453         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10454         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10455         * lib/unictype/pr_other_id_continue.h: Likewise.
10456         * lib/unictype/pr_other_id_start.h: Likewise.
10457         * lib/unictype/pr_other_lowercase.h: Likewise.
10458         * lib/unictype/pr_other_math.h: Likewise.
10459         * lib/unictype/pr_other_uppercase.h: Likewise.
10460         * lib/unictype/pr_paired_punctuation.h: Likewise.
10461         * lib/unictype/pr_paragraph_separator.h: Likewise.
10462         * lib/unictype/pr_pattern_syntax.h: Likewise.
10463         * lib/unictype/pr_pattern_white_space.h: Likewise.
10464         * lib/unictype/pr_private_use.h: Likewise.
10465         * lib/unictype/pr_quotation_mark.h: Likewise.
10466         * lib/unictype/pr_radical.h: Likewise.
10467         * lib/unictype/pr_soft_dotted.h: Likewise.
10468         * lib/unictype/pr_space.h: Likewise.
10469         * lib/unictype/pr_titlecase.h: Likewise.
10470         * lib/unictype/pr_variation_selector.h: Likewise.
10471         * lib/unictype/pr_white_space.h: Likewise.
10472         * lib/unictype/sy_c_ident.h: Likewise.
10473         * lib/unictype/sy_c_whitespace.h: Likewise.
10474         * lib/unictype/sy_java_whitespace.h: Likewise.
10475         * modules/uni*/*: Bump version number of expected libunistring version.
10476         Reported by Simon Josefsson.
10477
10478 2011-01-09  Karl Heuer  <kwzh@gnu.org>
10479
10480         useless-if-before-free: fix typo in --help and make the internal,
10481         automatic version date update process work once again.
10482         --help output contained a NUL character instead of the
10483         backslash-zero that was intended.  Also, the "must lie within
10484         the first 8 lines" line is on line 9, and hence not getting
10485         automatically updated.
10486         * build-aux/useless-if-before-free: Fix the former by adding a
10487         backslash, and the latter by condensing the three lines of what-it-does
10488         to a single line, leaving one line of slack for the future.
10489
10490 2011-01-09  Bruno Haible  <bruno@clisp.org>
10491
10492         uniwidth/width: Fix width of U+1D173..U+1D17A.
10493         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
10494         symbolic_width, output_width_property_test): New functions.
10495         (main): Invoke output_nonspacing_property, output_width_property_test.
10496         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
10497         U+1D173..U+1D17A.
10498         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
10499         1.
10500         * modules/uniwidth/*: Bump version number of expected libunistring
10501         version.
10502         * modules/unilbrk/*: Likewise.
10503
10504 2011-01-08  Bruno Haible  <bruno@clisp.org>
10505
10506         uninorm tests: Preserve copyright of Unicode data file.
10507         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
10508         Mention modifications.
10509
10510 2011-01-08  Bruno Haible  <bruno@clisp.org>
10511
10512         gen-uni-tables: Prepare for Unicode 5.2.0.
10513         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
10514         (debug_output_lbp, output_lbp): Update.
10515
10516 2011-01-08  Bruno Haible  <bruno@clisp.org>
10517
10518         unilbrk: Clarify gen-uni-tables.c code.
10519         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
10520         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
10521         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
10522
10523 2011-01-07  Bruno Haible  <bruno@clisp.org>
10524
10525         strtod: Restore errno when successfully parsing Infinity or NaN.
10526         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
10527         restore the original errno.
10528
10529 2011-01-07  Bruno Haible  <bruno@clisp.org>
10530
10531         remove test: Avoid failure on HP-UX 11.
10532         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
10533
10534 2011-01-07  Bruno Haible  <bruno@clisp.org>
10535
10536         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
10537         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
10538         error code.
10539
10540 2011-01-07  Pádraig Brady <P@draigBrady.com>
10541
10542         ignore-value: fixup comments, and add Eric Blake
10543         as an author since he rewrote the macros.
10544         * lib/ignore-value.h (ignore_value):  State that
10545         we now support aggregates.  Also specify exactly
10546         when the GCC warn_unused_result feature was added.
10547
10548 2011-01-06  Eric Blake  <eblake@redhat.com>
10549
10550         ignore-value: support aggregate types
10551         * lib/ignore-value.h (ignore_value): Provide separate gcc
10552         definition.
10553         * modules/ignore-value-tests: New test module.
10554         * tests/test-ignore-value.c: New test.
10555
10556         maint.mk: improve sc_prohibit_strcmp regex
10557         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
10558         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
10559         definition of STRNEQ.
10560
10561         signal: work around Haiku issue with SIGBUS
10562         * lib/siglist.h: Add comment.
10563         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
10564         strsignal's favoring of SIGSEGV.
10565         * tests/test-signal.c (main): Avoid test failure.
10566         * doc/posix-headers/signal.texi (signal.h): Document the issue.
10567         Reported by Scott McCreary.
10568
10569         maint.mk: add pre-release check to ensure submodule commits are public
10570         * top/maint.mk (public-submodule-commit): New rule.
10571         (submodule-checks): New variable.
10572         (alpha beta stable): Depend on the variable.
10573
10574 2011-01-05  Pádraig Brady <P@draigBrady.com>
10575         and Jim Meyering  <meyering@redhat.com>
10576
10577         ignore-value: make ignore_value more generic; deprecate ignore_ptr
10578         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
10579         (ATTRIBUTE_DEPRECATED): Define.
10580         (_ignore_case): New function.
10581         (ignore_value): New macro, to replace the old function.
10582         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
10583         * modules/ignore-value (Depends-on): Add stdint.
10584
10585 2011-01-04  Eric Blake  <eblake@redhat.com>
10586
10587         doc: regenerate INSTALL
10588         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
10589         @firstparagraphindent support, now that autoconf dropped it.
10590         (INSTALL_PRELUDE): Reinstate old macro.
10591         * doc/install.texi: Resync from autoconf.
10592         * doc/INSTALL: Reflect recent autoconf update.
10593         * doc/INSTALL.ISO: Likewise.
10594         * doc/INSTALL.UTF-8: Likewise.
10595         Reported by Karl Berry.
10596
10597 2011-01-04  Bruce Korb  <address@hidden>
10598
10599         git-version-gen: avoid a sub-shell
10600         * build-aux/git-version-gen: Redirect stderr in `...` via
10601         "exec 2>...", rather than via an added sub-shell.
10602
10603 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
10604
10605         git-version-gen: use (...) rather than sh -c '...'
10606         * build-aux/git-version-gen: Rather than hard-coding a shell's name
10607         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
10608
10609 2011-01-03  Jim Meyering  <meyering@redhat.com>
10610
10611         git-version-gen: convert leading TABs to spaces
10612         * build-aux/git-version-gen: Expand leading TABs.
10613
10614         git-version-gen: handle failed "git rev-list"
10615         * build-aux/git-version-gen: Rather than leaking a "fatal" error
10616         from git and proceeding as if it had succeeded but printed no SHA1
10617         checksums, suppress the diagnostic and handle the failure.
10618         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
10619
10620         git-version-gen: include command name in one more diagnostic
10621         * build-aux/git-version-gen: When the required .tarball-version file
10622         was missing or unreadable, you might see the diagnostic from "cat",
10623         but no trace of the name of the invoking script.  Now, you still see
10624         the diagnostic from cat, but also get one from "git-version-gen: ".
10625         Inspired by a patch from Bruce Korb.
10626
10627         update-copyright: adjust test to match changed code
10628         * tests/test-update-copyright.sh: Change test's expected output
10629         to match new actual output.
10630
10631 2011-01-02  Bruno Haible  <bruno@clisp.org>
10632
10633         getlogin_r: Avoid test failure on HP-UX 11.
10634         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
10635         ERANGE when the second argument is zero.
10636         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
10637         portability problem.
10638
10639 2011-01-02  Bruce Korb  <bkorb@gnu.org>
10640
10641         * build-aux/update-copyright: doc Simon's changes
10642
10643 2011-01-02  Simon Josefsson  <simon@josefsson.org>
10644
10645         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
10646         environment variable.
10647
10648 2011-01-02  Bruno Haible  <bruno@clisp.org>
10649
10650         unigbrk: Avoid gcc warnings.
10651         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
10652         unused variable.
10653         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
10654         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
10655         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
10656         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
10657         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
10658         Change type of first argument to 'const char *'.
10659         (main): Remove unused variable.
10660         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
10661         type of first argument to 'const char *'.
10662         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
10663         Likewise.
10664         (main): Change type of variable 's'.
10665         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
10666         to 'int'.
10667
10668 2011-01-02  Bruno Haible  <bruno@clisp.org>
10669
10670         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
10671         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
10672         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
10673         bug.
10674         * lib/pwrite.c: Undo 2010-12-31 patch.
10675         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
10676
10677 2011-01-02  Bruno Haible  <bruno@clisp.org>
10678
10679         pread: Fix test whether it works.
10680         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
10681
10682 2011-01-02  Bruno Haible  <bruno@clisp.org>
10683
10684         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
10685         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
10686         ends in "6". Don't require a specific month name. Try also the locale
10687         names found on HP-UX 11 and Solaris 7.
10688
10689 2011-01-02  Bruno Haible  <bruno@clisp.org>
10690
10691         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
10692         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
10693         C linkage.
10694         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
10695
10696 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10697
10698         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
10699         for consistency, since the "cluster" term is not used elsewhere.
10700         * lib/unigbrk.in.h: Update name.
10701         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
10702         * lib/unigbrk/u16-grapheme-next.c: Update name.
10703         * lib/unigbrk/u16-grapheme-prev.c: Update name.
10704         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
10705         * lib/unigbrk/u32-grapheme-next.c: Update name.
10706         * lib/unigbrk/u32-grapheme-prev.c: Update name.
10707         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
10708         * lib/unigbrk/u8-grapheme-next.c: Update name.
10709         * lib/unigbrk/u8-grapheme-prev.c: Update name.
10710         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
10711         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
10712         Suggested by Bruno Haible.
10713
10714 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10715
10716         Remove module 'u8-grapheme-len' as too redundant with
10717         'u8-grapheme-next'.
10718         * modules/unigbrk/u8-grapheme-len: Delete file.
10719         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
10720         * lib/unigbrk.in.h: Remove prototype for deleted function.
10721         * lib/unigbrk/u8-grapheme-len.c: Delete file.
10722         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
10723
10724         Remove module 'u16-grapheme-len' as too redundant with
10725         'u16-grapheme-next'.
10726         * modules/unigbrk/u16-grapheme-len: Delete file.
10727         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
10728         * lib/unigbrk.in.h: Remove prototype for deleted function.
10729         * lib/unigbrk/u16-grapheme-len.c: Delete file.
10730         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
10731
10732         Remove module 'u32-grapheme-len' as too redundant with
10733         'u32-grapheme-next'.
10734         * modules/unigbrk/u32-grapheme-len: Delete file.
10735         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
10736         * lib/unigbrk.in.h: Remove prototype for deleted function.
10737         * lib/unigbrk/u32-grapheme-len.c: Delete file.
10738         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
10739
10740         Suggested by Bruno Haible.
10741
10742 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10743
10744         * unigbrk.in.h: Fix typo: "ben" => "been".
10745         Reported by Bruno Haible.
10746
10747 2011-01-01  Jim Meyering  <meyering@redhat.com>
10748
10749         maint: update almost all copyright ranges to include 2011
10750         Run the new "make update-copyright" rule.
10751
10752 2011-01-01  Jim Meyering  <meyering@redhat.com>
10753
10754         maint: update-copyright: exempt doc/INSTALL*
10755         * Makefile (update-copyright): Also exclude doc/INSTALL*,
10756         since they are generated.  Suggested by Bruno Haible.
10757
10758 2011-01-01  Jim Meyering  <meyering@redhat.com>
10759
10760         maint: refine the update-copyright rule
10761         * Makefile (update-copyright): Also exclude any file that includes
10762         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
10763         code that merely generates the comment.
10764
10765 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10766
10767         New module 'u8-grapheme-len'.
10768         * modules/unigbrk/u8-grapheme-len: New file.
10769         * modules/unigbrk/u8-grapheme-len-tests: New file.
10770         * lib/unigbrk.in.h: Add prototype for new function.
10771         * lib/unigbrk/u8-grapheme-len.c: New file.
10772         * tests/unigbrk/test-u8-grapheme-len.c: New file.
10773
10774         New module 'u16-grapheme-len'.
10775         * modules/unigbrk/u16-grapheme-len: New file.
10776         * modules/unigbrk/u16-grapheme-len-tests: New file.
10777         * lib/unigbrk.in.h: Add prototype for new function.
10778         * lib/unigbrk/u16-grapheme-len.c: New file.
10779         * tests/unigbrk/test-u16-grapheme-len.c: New file.
10780
10781         New module 'u32-grapheme-len'.
10782         * modules/unigbrk/u32-grapheme-len: New file.
10783         * modules/unigbrk/u32-grapheme-len-tests: New file.
10784         * lib/unigbrk.in.h: Add prototype for new function.
10785         * lib/unigbrk/u32-grapheme-len.c: New file.
10786         * tests/unigbrk/test-u32-grapheme-len.c: New file.
10787
10788         New module 'u8-grapheme-next'.
10789         * modules/unigbrk/u8-grapheme-next: New file.
10790         * modules/unigbrk/u8-grapheme-next-tests: New file.
10791         * lib/unigbrk.in.h: Add prototype for new function.
10792         * lib/unigbrk/u8-grapheme-next.c: New file.
10793         * tests/unigbrk/test-u8-grapheme-next.c: New file.
10794
10795         New module 'u16-grapheme-next'.
10796         * modules/unigbrk/u16-grapheme-next: New file.
10797         * modules/unigbrk/u16-grapheme-next-tests: New file.
10798         * lib/unigbrk.in.h: Add prototype for new function.
10799         * lib/unigbrk/u16-grapheme-next.c: New file.
10800         * tests/unigbrk/test-u16-grapheme-next.c: New file.
10801
10802         New module 'u32-grapheme-next'.
10803         * modules/unigbrk/u32-grapheme-next: New file.
10804         * modules/unigbrk/u32-grapheme-next-tests: New file.
10805         * lib/unigbrk.in.h: Add prototype for new function.
10806         * lib/unigbrk/u32-grapheme-next.c: New file.
10807         * tests/unigbrk/test-u32-grapheme-next.c: New file.
10808
10809         New module 'u8-grapheme-prev'.
10810         * modules/unigbrk/u8-grapheme-prev: New file.
10811         * modules/unigbrk/u8-grapheme-prev-tests: New file.
10812         * lib/unigbrk.in.h: Add prototype for new function.
10813         * lib/unigbrk/u8-grapheme-prev.c: New file.
10814         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
10815
10816         New module 'u16-grapheme-prev'.
10817         * modules/unigbrk/u16-grapheme-prev: New file.
10818         * modules/unigbrk/u16-grapheme-prev-tests: New file.
10819         * lib/unigbrk.in.h: Add prototype for new function.
10820         * lib/unigbrk/u16-grapheme-prev.c: New file.
10821         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
10822
10823         New module 'u32-grapheme-prev'.
10824         * modules/unigbrk/u32-grapheme-prev: New file.
10825         * modules/unigbrk/u32-grapheme-prev-tests: New file.
10826         * lib/unigbrk.in.h: Add prototype for new function.
10827         * lib/unigbrk/u32-grapheme-prev.c: New file.
10828         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
10829
10830         New module 'u8-grapheme-breaks'.
10831         * modules/unigbrk/u8-grapheme-breaks: New file.
10832         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
10833         * lib/unigbrk.in.h: Add prototype for new function.
10834         * lib/unigbrk/u8-grapheme-breaks.c: New file.
10835         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
10836
10837         New module 'u16-grapheme-breaks'.
10838         * modules/unigbrk/u16-grapheme-breaks: New file.
10839         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
10840         * lib/unigbrk.in.h: Add prototype for new function.
10841         * lib/unigbrk/u16-grapheme-breaks.c: New file.
10842         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
10843
10844         New module 'u32-grapheme-breaks'.
10845         * modules/unigbrk/u32-grapheme-breaks: New file.
10846         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
10847         * lib/unigbrk.in.h: Add prototype for new function.
10848         * lib/unigbrk/u32-grapheme-breaks.c: New file.
10849         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
10850
10851         New module 'ulc-grapheme-breaks'.
10852         * modules/unigbrk/ulc-grapheme-breaks: New file.
10853         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
10854         * m4/locale-ar.m4: New file.
10855         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
10856         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
10857         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
10858
10859 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10860
10861         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
10862         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
10863         modified how this file was generated before I initially submitted
10864         the module, but failed to regenerate it.  This meant that several
10865         of the level2 entries were wrong.
10866         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
10867         Remove the division-by-2 that is folded into the table now that
10868         gbrkprop.h has been regenerated properly.  Now -1 entries are
10869         handled correctly.
10870
10871         New module 'unigbrk/uc-gbrk-prop-tests'.
10872         * modules/unigbrk/uc-gbrk-prop-tests: New file.
10873         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
10874         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
10875         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
10876
10877 2011-01-01  Bruno Haible  <bruno@clisp.org>
10878
10879         Avoid use of hexadecimal escapes.
10880         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
10881         instead of hexadecimal escapes.
10882
10883 2011-01-01  Jim Meyering  <meyering@redhat.com>
10884
10885         maint: new rule to update copyright year ranges
10886         * Makefile (update-copyright): New rule.
10887
10888         maint: indent with TABs in Makefile
10889         * Makefile: Expand leading sequences of spaces to TABs
10890
10891         version-etc: update the copyright year it reports
10892         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
10893
10894 2010-12-31  Bruno Haible  <bruno@clisp.org>
10895
10896         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
10897         * lib/isfinite.c (zerof, zerod, zerol): New variables.
10898         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
10899         zero.
10900
10901 2010-12-31  Bruno Haible  <bruno@clisp.org>
10902
10903         pwrite: Work around HP-UX 11.11 bug.
10904         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
10905         works and set REPLACE_PWRITE if not.
10906         * lib/pwrite.c (pwrite): Add an implementation that uses the system
10907         function.
10908         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
10909
10910 2010-12-31  Bruno Haible  <bruno@clisp.org>
10911
10912         pread: Work around HP-UX 11 bugs.
10913         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
10914         and set REPLACE_PREAD if not.
10915         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
10916
10917 2010-12-31  Eric Blake  <eblake@redhat.com>
10918
10919         nl_langinfo: fix YESEXPR on Irix 6.5
10920         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
10921         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
10922         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
10923         it.
10924
10925 2010-12-31  Bruno Haible  <bruno@clisp.org>
10926
10927         iconv: Document HP-UX 11 bug.
10928         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
10929
10930 2010-12-31  Bruno Haible  <bruno@clisp.org>
10931
10932         ldexpl: Fix link error on HP-UX 11.
10933         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
10934         LDEXPL_LIBM, using $ISNANL_LIBM.
10935
10936 2010-12-31  Eric Blake  <eblake@redhat.com>
10937
10938         ftello: avoid compilation failure with SunStudio c89
10939         * lib/ftello.c (ftello): Use lseek, not llseek.
10940
10941         tests: avoid failing coreutils tests on cygwin
10942         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
10943         (create_exe_shims_): Return 0 when skipping.
10944
10945 2010-12-31  Bruno Haible  <bruno@clisp.org>
10946
10947         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
10948         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
10949
10950 2010-12-31  Bruno Haible  <bruno@clisp.org>
10951
10952         waitpid: Fix link error in C++ mode.
10953         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
10954
10955 2010-12-31  Bruno Haible  <bruno@clisp.org>
10956
10957         isnan: Use GCC built-ins when possible.
10958         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
10959         __builtin_isnan.
10960         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
10961         (isnan): Define using GCC built-ins for GCC >= 4.0.
10962
10963 2010-12-31  Bruno Haible  <bruno@clisp.org>
10964
10965         isnand: Fix mistake.
10966         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
10967         __builtin_isnand.
10968
10969 2010-12-31  Bruno Haible  <bruno@clisp.org>
10970
10971         open: Avoid C++ error on HP-UX 11.
10972         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
10973
10974 2010-12-31  Bruno Haible  <bruno@clisp.org>
10975
10976         time_r: Add missing declarations on HP-UX 11.
10977         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
10978         instead of HAVE_LOCALTIME_R.
10979         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
10980         HAVE_LOCALTIME_R always.
10981         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
10982         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
10983         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
10984         HAVE_LOCALTIME_R.
10985         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
10986         * doc/posix-functions/localtime_r.texi: Likewise.
10987
10988 2010-12-29  Eric Blake  <eblake@redhat.com>
10989
10990         mountlist: tweak previous commit
10991         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
10992         Reported by Paul Eggert.
10993
10994         mountlist: fix local drive detection on cygwin
10995         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
10996         that works for cygwin.
10997
10998 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10999
11000         ftoastr, snprintf: ftoastr + snprintf module
11001         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
11002         since the snprintf module now should be good enough here.
11003         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
11004         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
11005         and gl_MODULE_INDICATOR([snprintf]), but the former enables
11006         GNULIB_SNPRINTF only for the test directory, and the latter
11007         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
11008         seems to suffice by itself.
11009
11010 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11011
11012         alloca: one step towards thread-safety
11013         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
11014         need for a static variable.  All callers changed.  This does not
11015         make the alloca replacement thread-safe, but it's one step.
11016
11017         tests: minor indenting change
11018         * tests/init.sh: Sync from coreutils housekeeping patch
11019         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11020         to keep lines within 80 columns.
11021
11022 2010-12-28  Jim Meyering  <meyering@redhat.com>
11023
11024         regex: don't infloop on persistent failing calloc
11025         * lib/regexec.c (build_trtable): Return failure indication upon
11026         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11027         In glibc, this was fixed for version 2.13:
11028         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11029
11030 2010-12-28  Bruno Haible  <bruno@clisp.org>
11031             Paul Eggert <eggert@cs.ucla.edu>
11032
11033         linkat: Make implementation robust against system behaviour variations.
11034         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11035         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11036         way, and to -2 if it needs a generic runtime test.
11037         * lib/linkat.c (solaris_optimized_link_immediate,
11038         solaris_optimized_link_follow): New functions.
11039         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11040         (check_same_link): Use it.
11041
11042 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11043
11044         New module 'unigbrk/base'.
11045         * modules/unigbrk/base: New file.
11046         * lib/unigbrk.in.h: New file.
11047
11048         New module 'unigbrk/uc-gbrk-prop'.
11049         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11050         * modules/unigbrk/uc-gbrk-prop: New file.
11051         * lib/unigbrk/gbrkprop.h: New file.
11052         * lib/unigbrk/uc-gbrk-prop.c: New file.
11053
11054         New module 'unigbrk/uc-is-grapheme-break'.
11055         * modules/unigbrk/uc-is-grapheme-break: New file.
11056         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11057         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11058         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11059         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11060         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11061
11062         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11063
11064 2010-12-27  Bruno Haible  <bruno@clisp.org>
11065
11066         linkat test: Avoid failure on Solaris 11 2010-11.
11067         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11068
11069 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11070
11071         utimens: work around glibc rounding bug on more platforms
11072         * lib/utimens.c (fdutimens): Work around rounding bug even if
11073         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11074         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11075
11076 2010-12-27  Bruno Haible  <bruno@clisp.org>
11077
11078         select tests: Improve comments.
11079         * tests/test-select.c (do_select): Add comments.
11080
11081 2010-12-27  Bruno Haible  <bruno@clisp.org>
11082
11083         select tests: Safer way of handling timeout.
11084         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11085         at every invocation.
11086
11087 2010-12-27  Bruno Haible  <bruno@clisp.org>
11088
11089         select tests: Use 'bool' where appropriate.
11090         * tests/test-select.c (connect_to_socket): Change argument type to
11091         'bool'.
11092
11093 2010-12-27  Bruno Haible  <bruno@clisp.org>
11094
11095         select tests: Use existing modules.
11096         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11097         (configure.ac): Don't test for unistd.h.
11098         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11099         declared in <unistd.h>.
11100
11101 2010-12-27  Bruno Haible  <bruno@clisp.org>
11102
11103         mbrtowc: Work around a Solaris 7 bug.
11104         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11105         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11106         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11107         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11108         MBRTOWC_NULL_ARG1_BUG.
11109         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11110         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11111         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11112         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11113
11114 2010-12-27  Jim Meyering  <meyering@redhat.com>
11115
11116         read-file.c: tweak syntax
11117         * lib/read-file.c (fread_file): Remove space after "*" in function
11118         definitions.
11119
11120 2010-12-27  Bruno Haible  <bruno@clisp.org>
11121
11122         times test: Avoid gcc warnings on OSF/1.
11123         * tests/test-times.c (main): Cast printf arguments from clock_t to
11124         'long int'.
11125
11126 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11127
11128         utimens: work around glibc rounding bug on older Linux kernels
11129         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11130         on Linux with a glibc whose utimes might not work, then work
11131         around a longstanding glibc bug involving rounding rather than
11132         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11133         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11134
11135 2010-12-26  Bruno Haible  <bruno@clisp.org>
11136
11137         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11138         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11139         _GL_CXXALIAS_SYS.
11140         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11141
11142 2010-12-26  Bruno Haible  <bruno@clisp.org>
11143
11144         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11145         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11146         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11147         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11148         looking for the declaration.
11149         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11150         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11151         problem.
11152         * doc/posix-functions/inet_pton.texi: Likewise.
11153
11154 2010-12-26  Bruno Haible  <bruno@clisp.org>
11155
11156         arpa_inet: Use the common idioms with C++ support.
11157         * lib/arpa_inet.in.h: Include c++defs.h.
11158         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11159         support.
11160         * modules/arpa_inet (Depends-on): Add c++defs.
11161         (Makefile.am): Substitute the contents of c++defs.h.
11162         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11163         * modules/arpa_inet-c++-tests: New file.
11164         * tests/test-arpa_inet-c++.cc: New file.
11165
11166 2010-12-25  Bruno Haible  <bruno@clisp.org>
11167
11168         Fix more C++ link errors on Solaris 8.
11169         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11170         $(LIB_EACCESS).
11171         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11172         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11173         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11174         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11175         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11176
11177 2010-12-25  Bruno Haible  <bruno@clisp.org>
11178
11179         printf-posix: Fix link error when a non-GCC compiler is used.
11180         * lib/stdio.in.h (printf): When not using GCC, override printf
11181         correctly.
11182         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11183
11184 2010-12-25  Bruno Haible  <bruno@clisp.org>
11185
11186         strerror_r-posix: Update doc.
11187         * doc/posix-functions/strerror_r.texi: Update doc about the return
11188         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11189
11190 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11191
11192         utimens: simplify the logic of the previous change
11193         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11194         This should not affect whether the test succeeds or fails.
11195
11196         utimens: configure better on hosts with NFS clock skew
11197         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11198         uses the clock of the local host.  It might use the clock of the
11199         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11200         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11201
11202 2010-12-25  Bruno Haible  <bruno@clisp.org>
11203
11204         ptsname test: Avoid failure on Solaris.
11205         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11206         open a pseudo-terminal; don't use BSD-style ptys.
11207         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11208
11209 2010-12-25  Bruno Haible  <bruno@clisp.org>
11210
11211         ptsname: Avoid ERANGE failure on some systems.
11212         * lib/ptsname.c (buffer): Increase size.
11213
11214 2010-12-25  Bruno Haible  <bruno@clisp.org>
11215
11216         rename, renameat: Avoid test failures at NFS mounted locations.
11217         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11218         so that subsequent mkdir calls succeed.
11219
11220 2010-12-25  Bruno Haible  <bruno@clisp.org>
11221
11222         iswblank: Fix C++ link error on Solaris 8.
11223         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11224         _GL_FUNCDECL_SYS.
11225
11226 2010-12-25  Bruno Haible  <bruno@clisp.org>
11227
11228         unistd: Fix C++ link error on Solaris 8.
11229         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11230
11231 2010-12-25  Bruno Haible  <bruno@clisp.org>
11232
11233         readlink doc: Mention an old glibc bug.
11234         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11235
11236 2010-12-25  Bruno Haible  <bruno@clisp.org>
11237
11238         fcntl-h: Fix for use of C++ on glibc systems.
11239         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11240         also on glibc systems in C++ mode.
11241         Reported by Gary V. Vaughan <gary@gnu.org>.
11242
11243 2010-12-25  Bruno Haible  <bruno@clisp.org>
11244
11245         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11246         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
11247
11248 2010-12-25  Bruno Haible  <bruno@clisp.org>
11249
11250         truncl-ieee: Make it work on OSF/1 5.1 with cc.
11251         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
11252         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
11253         test whether truncl works according to ISO C 99 with IEC 60559.
11254         * m4/truncl-ieee.m4: New file.
11255         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
11256         m4/signbit.m4.
11257         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
11258
11259 2010-12-25  Bruno Haible  <bruno@clisp.org>
11260
11261         ceill-ieee: Make it work on OSF/1 5.1 with cc.
11262         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
11263         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
11264         test whether ceill works according to ISO C 99 with IEC 60559.
11265         * m4/ceill-ieee.m4: New file.
11266         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
11267         m4/signbit.m4.
11268         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11269
11270 2010-12-25  Bruno Haible  <bruno@clisp.org>
11271
11272         Ensure all prerequisites of <wchar.h> are included.
11273         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
11274         before <wchar.h>.
11275         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11276         gl_MBRLEN_NUL_RETVAL): Likewise.
11277         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11278         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
11279         AC_FUNC_MBRTOWC): Likewise.
11280         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11281         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11282         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11283         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11284         Likewise.
11285         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11286         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
11287         (gl_WCHAR_H): Improve comments.
11288         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11289
11290 2010-12-25  Bruno Haible  <bruno@clisp.org>
11291
11292         strtok_r: Fix C syntax error in autoconf macro.
11293         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
11294         characters in test program.
11295
11296 2010-12-24  Bruno Haible  <bruno@clisp.org>
11297
11298         ceil, trunc, round: Fix gcc warnings.
11299         * lib/ceil.c (MIN): Undefine before redefining.
11300         * lib/trunc.c (MIN): Likewise.
11301         * lib/round.c (MIN): Likewise.
11302         Include <math.h> first.
11303
11304 2010-12-24  Bruno Haible  <bruno@clisp.org>
11305
11306         select tests: Avoid failures on OSF/1 5.1.
11307         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
11308         failure of closing the last socket; it may fail with ECONNRESET.
11309
11310 2010-12-24  Eric Blake  <eblake@redhat.com>
11311
11312         stdint: avoid HP-UX 10.20 preprocessor bug
11313         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
11314         than #if.
11315         * tests/test-floor2.c (main): Likewise.
11316         Reported by Peter O'Gorman.
11317
11318         pipe: make obsoletion transition easier
11319         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
11320         * modules/pipe (Files): Include revived file.
11321         (Include): Drop reference, to mirror getdate's behavior.
11322
11323 2010-12-24  Bruno Haible  <bruno@clisp.org>
11324
11325         sys_socket: Hide mismatch of declarations on NonStop Kernel.
11326         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
11327         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11328         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11329
11330 2010-12-24  Bruno Haible  <bruno@clisp.org>
11331
11332         gethostname: Ensure declaration on NonStop Kernel.
11333         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11334         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11335
11336 2010-12-24  Bruno Haible  <bruno@clisp.org>
11337
11338         sys_select: Ensure all necessary types on NonStop Kernel.
11339         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11340         include <sys/time.h>.
11341         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11342         NonStop Kernel.
11343         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11344
11345 2010-12-24  Bruno Haible  <bruno@clisp.org>
11346
11347         sys_select: Remove unneeded include.
11348         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11349         have <sys/select.h>.
11350
11351 2010-12-24  Bruno Haible  <bruno@clisp.org>
11352
11353         gethostname: Provide a fallback for HOST_NAME_MAX.
11354         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11355         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11356         instead.
11357         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11358
11359 2010-12-24  Bruno Haible  <bruno@clisp.org>
11360
11361         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11362         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11363         (SA_RESTART): Likewise.
11364         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11365
11366 2010-12-24  Bruno Haible  <bruno@clisp.org>
11367
11368         signal: Define NSIG.
11369         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11370         * tests/test-signal.c (nsig): New variable.
11371         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11372
11373 2010-12-24  Bruno Haible  <bruno@clisp.org>
11374
11375         rename, renameat: Avoid test failures on OSF/1 5.1.
11376         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11377         alternative error codes.
11378         * tests/test-renameat.c (main): Likewise.
11379
11380 2010-12-24  Bruno Haible  <bruno@clisp.org>
11381
11382         *printf: Detect large precisions bug on Solaris 10/SPARC.
11383         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11384         by Paul Eggert.
11385         * tests/test-snprintf-posix.h (test_function): Add this test code here
11386         too.
11387         * tests/test-sprintf-posix.h (test_function): Likewise.
11388         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11389         * tests/test-vasprintf-posix.c (test_function): Likewise.
11390         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11391         around by gnulib.
11392         * doc/posix-functions/printf.texi: Likewise.
11393         * doc/posix-functions/snprintf.texi: Likewise.
11394         * doc/posix-functions/sprintf.texi: Likewise.
11395         * doc/posix-functions/vfprintf.texi: Likewise.
11396         * doc/posix-functions/vprintf.texi: Likewise.
11397         * doc/posix-functions/vsnprintf.texi: Likewise.
11398         * doc/posix-functions/vsprintf.texi: Likewise.
11399         * doc/posix-functions/dprintf.texi: Undo last commit.
11400         * doc/posix-functions/vdprintf.texi: Likewise.
11401
11402 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11403
11404         tests: port test-fdutimensat.c to Solaris 8
11405         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
11406         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
11407         On Solaris 8, it fails with errno == ENOSYS, because there is no
11408         futimens (so it can't use the fd), and there is no lutimens (so it
11409         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
11410
11411         vsnprintf: make more consistent with snprintf; doc fixes
11412
11413         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
11414         the byte count return problem was promoted from the snprintf-posix
11415         to the snprintf module.
11416         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11417         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
11418         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11419         * tests/test-snprintf.c (main): Check the byte count returned.
11420         * tests/test-vsnprintf.c (main): Likewise.
11421
11422 2010-12-23  Eric Blake  <eblake@redhat.com>
11423
11424         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
11425         * modules/sigpipe (License): Relax license.
11426
11427 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11428
11429         doc: document Solaris printf bug with large float precisions
11430         * doc/posix-functions/dprintf.texi (dprintf):
11431         * doc/posix-functions/fprintf.texi (fprintf):
11432         * doc/posix-functions/printf.texi (printf):
11433         * doc/posix-functions/snprintf.texi (snprintf):
11434         * doc/posix-functions/sprintf.texi (sprintf):
11435         * doc/posix-functions/vdprintf.texi (vdprintf):
11436         * doc/posix-functions/vfprintf.texi (vfprintf):
11437         * doc/posix-functions/vprintf.texi (vprintf):
11438         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11439         * doc/posix-functions/vsprintf.texi (vsprintf):
11440         Mention that these functions mishandle large floating point
11441         precisions on Solaris 10.  The same bug is also present in Solaris
11442         8, and I assume earlier.  This causes "cd gnulib-tests; make
11443         check" to fail on Solaris 8 (and I assume, later) when building
11444         the latest coreutils, in test-vasprintf-posix's call to
11445         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
11446         the wide flavors (e.g., wprintf) so this patch just updates the
11447         documentation for the narrow ones.
11448
11449         test-posixtm.c: add two tests
11450         * tests/test-posixtm.c: Add two tests, to highlight the
11451         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
11452         around this bug; this is merely to document it.
11453
11454 2010-12-22  Bruno Haible  <bruno@clisp.org>
11455
11456         getlogin_r: Work around portability problem on OSF/1.
11457         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
11458         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
11459         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
11460         test for a truncated result.
11461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
11462         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
11463         * modules/getlogin_r (Depends-on): Add memchr.
11464         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
11465
11466 2010-12-22  Bruno Haible  <bruno@clisp.org>
11467
11468         ptsname: Avoid test failure on OSF/1 5.1.
11469         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
11470         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
11471         (same_slave): New function.
11472         (main): Use it to compare ptsname's result with the expected file name.
11473
11474 2010-12-22  Bruno Haible  <bruno@clisp.org>
11475
11476         Port extended stdio modules to HP NonStop Kernel.
11477         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
11478         macros.
11479         * lib/fbufmode.c: Update comments.
11480         * lib/fflush.c: Likewise.
11481         * lib/fpurge.c: Likewise.
11482         * lib/freadable.c: Likewise.
11483         * lib/freadahead.c: Likewise.
11484         * lib/freading.c: Likewise.
11485         * lib/freadptr.c: Likewise.
11486         * lib/freadseek.c: Likewise.
11487         * lib/fseeko.c: Likewise.
11488         * lib/fseterr.c: Likewise.
11489         * lib/fwritable.c: Likewise.
11490         * lib/fwriting.c: Likewise.
11491         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11492
11493 2010-12-22  Bruno Haible  <bruno@clisp.org>
11494
11495         ttyname_r: Work around bug on OSF/1 5.1.
11496         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
11497         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
11498         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
11499         present.
11500         * lib/ttyname_r.c (ttyname_r): Update comments.
11501
11502 2010-12-22  Bruno Haible  <bruno@clisp.org>
11503
11504         round: Implement result sign according to IEEE 754.
11505         * lib/round.c (MIN, MINUS_ZERO): New macros.
11506         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
11507         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
11508         * tests/test-round-ieee.c (main): Likewise.
11509         * tests/test-roundl-ieee.c (main): Likewise.
11510
11511         trunc: Implement result sign according to IEEE 754.
11512         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
11513         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
11514         * tests/test-trunc2.c: Include minus-zero.h.
11515         (MINUS_ZERO): New macro.
11516         (trunc_reference): Keep in sync with lib/trunc.c.
11517         * tests/test-truncf2.c: Include minus-zero.h.
11518         (MINUS_ZERO): New macro.
11519         (truncf_reference): Keep in sync with lib/trunc.c.
11520         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
11521         * tests/test-trunc-ieee.c (main): Likewise.
11522         * tests/test-truncl-ieee.c (main): Likewise.
11523
11524         ceil: Implement result sign according to IEEE 754.
11525         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
11526         (FUNC): Return -0.0 for -1 < x < 0.
11527         * tests/test-ceil2.c: Include minus-zero.h.
11528         (MINUS_ZERO): New macro.
11529         (ceil_reference): Keep in sync with lib/ceil.c.
11530         * tests/test-ceilf2.c: Include minus-zero.h.
11531         (MINUS_ZERO): New macro.
11532         (ceilf_reference): Keep in sync with lib/ceil.c.
11533         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
11534         * tests/test-ceil-ieee.c (main): Likewise.
11535         * tests/test-ceill-ieee.c (main): Likewise.
11536
11537         floor: Implement result sign according to IEEE 754.
11538         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
11539         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
11540         * tests/test-floorf2.c (floorf_reference): Likewise.
11541         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
11542         * tests/test-floor-ieee.c (main): Likewise.
11543         * tests/test-floorl-ieee.c (main): Likewise.
11544
11545 2010-12-22  Bruno Haible  <bruno@clisp.org>
11546
11547         getaddrinfo: Update doc.
11548         * doc/posix-functions/gai_strerror.texi: Return type is also different
11549         on AIX and HP-UX.
11550
11551 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11552
11553         getaddrinfo, inet_ntop: Update doc for Solaris.
11554         * doc/posix-functions/gai_strerror.texi: Return type is also an
11555         issue on Solaris 9 and earlier.
11556         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
11557         on Solaris 10 and earlier.
11558
11559 2010-12-21  Bruno Haible  <bruno@clisp.org>
11560
11561         New module 'roundl-ieee'.
11562         * modules/roundl-ieee: New file.
11563         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
11564         test whether roundl works according to ISO C 99 with IEC 60559.
11565         * m4/roundl-ieee.m4: New file.
11566         * modules/roundl-ieee-tests: New file.
11567         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
11568         * tests/test-roundl.c (main): Remove signbit tests.
11569         * modules/roundl-tests (Depends-on): Remove signbit.
11570         * doc/posix-functions/roundl.texi: Mention the new module.
11571
11572 2010-12-21  Bruno Haible  <bruno@clisp.org>
11573
11574         New module 'truncl-ieee'.
11575         * modules/truncl-ieee: New file.
11576         * modules/truncl-ieee-tests: New file.
11577         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
11578         * tests/test-truncl.c (main): Remove signbit tests.
11579         * modules/truncl-tests (Depends-on): Remove signbit.
11580         * doc/posix-functions/truncl.texi: Mention the new module.
11581
11582 2010-12-21  Bruno Haible  <bruno@clisp.org>
11583
11584         New module 'ceill-ieee'.
11585         * modules/ceill-ieee: New file.
11586         * modules/ceill-ieee-tests: New file.
11587         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
11588         * tests/test-ceill.c (main): Remove signbit tests.
11589         * modules/ceill-tests (Depends-on): Remove signbit.
11590         * doc/posix-functions/ceill.texi: Mention the new module.
11591
11592 2010-12-21  Bruno Haible  <bruno@clisp.org>
11593
11594         New module 'floorl-ieee'.
11595         * modules/floorl-ieee: New file.
11596         * modules/floorl-ieee-tests: New file.
11597         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
11598         * tests/test-floorl.c (main): Remove signbit tests.
11599         * modules/floorl-tests (Depends-on): Remove signbit.
11600         * doc/posix-functions/floorl.texi: Mention the new module.
11601
11602 2010-12-21  Bruno Haible  <bruno@clisp.org>
11603
11604         New module 'round-ieee'.
11605         * modules/round-ieee: New file.
11606         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
11607         whether round works according to ISO C 99 with IEC 60559.
11608         * m4/round-ieee.m4: New file.
11609         * modules/round-ieee-tests: New file.
11610         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
11611         * tests/test-round1.c (main): Remove signbit tests.
11612         * modules/round-tests (Depends-on): Remove 'signbit'.
11613         * doc/posix-functions/round.texi: Mention the new module.
11614
11615 2010-12-21  Bruno Haible  <bruno@clisp.org>
11616
11617         New module 'trunc-ieee'.
11618         * modules/trunc-ieee: New file.
11619         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
11620         whether trunc works according to ISO C 99 with IEC 60559.
11621         * m4/trunc-ieee.m4: New file.
11622         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
11623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
11624         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
11625         * modules/trunc-ieee-tests: New file.
11626         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
11627         * tests/test-trunc1.c (main): Remove signbit tests.
11628         * modules/trunc-tests (Depends-on): Remove 'signbit'.
11629         * doc/posix-functions/trunc.texi: Mention the new module.
11630
11631 2010-12-21  Bruno Haible  <bruno@clisp.org>
11632
11633         New module 'ceil-ieee'.
11634         * modules/ceil-ieee: New file.
11635         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
11636         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
11637         ISO C 99 with IEC 60559.
11638         * m4/ceil-ieee.m4: New file.
11639         * modules/ceil (Files): Add lib/ceil.c.
11640         (Depends-on): Add 'float'.
11641         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11642         * lib/math.in.h (ceil): New declaration.
11643         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
11644         REPLACE_CEIL.
11645         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
11646         * modules/ceil-ieee-tests: New file.
11647         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
11648         * tests/test-math-c++.cc: Check the signature of 'ceil'.
11649         * doc/posix-functions/ceil.texi: Mention the new module.
11650
11651 2010-12-21  Bruno Haible  <bruno@clisp.org>
11652
11653         New module 'floor-ieee'.
11654         * modules/floor-ieee: New file.
11655         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
11656         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
11657         ISO C 99 with IEC 60559.
11658         * m4/floor-ieee.m4: New file.
11659         * modules/floor (Files): Add lib/floor.c.
11660         (Depends-on): Add 'float'.
11661         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11662         * lib/math.in.h (floor): New declaration.
11663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
11664         REPLACE_FLOOR.
11665         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
11666         * modules/floor-ieee-tests: New file.
11667         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
11668         * tests/test-math-c++.cc: Check the signature of 'floor'.
11669         * doc/posix-functions/floor.texi: Mention the new module.
11670
11671 2010-12-21  Bruno Haible  <bruno@clisp.org>
11672
11673         New module 'roundf-ieee'.
11674         * modules/roundf-ieee: New file.
11675         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
11676         test whether roundf works according to ISO C 99 with IEC 60559.
11677         * m4/roundf-ieee.m4: New file.
11678         * modules/roundf-ieee-tests: New file.
11679         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
11680         * tests/test-roundf1.c (main): Remove signbit tests.
11681         * modules/roundf-tests (Depends-on): Remove 'signbit'.
11682         * doc/posix-functions/roundf.texi: Mention the new module.
11683
11684 2010-12-21  Bruno Haible  <bruno@clisp.org>
11685
11686         New module 'truncf-ieee'.
11687         * modules/truncf-ieee: New file.
11688         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
11689         test whether truncf works according to ISO C 99 with IEC 60559.
11690         * m4/truncf-ieee.m4: New file.
11691         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
11692         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
11693         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
11694         * modules/truncf-ieee-tests: New file.
11695         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
11696         * tests/test-truncf1.c (main): Remove signbit tests.
11697         * modules/truncf-tests (Depends-on): Remove 'signbit'.
11698         * doc/posix-functions/truncf.texi: Mention the new module.
11699
11700 2010-12-21  Bruno Haible  <bruno@clisp.org>
11701
11702         New module 'ceilf-ieee'.
11703         * modules/ceilf-ieee: New file.
11704         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
11705         test whether ceilf works according to ISO C 99 with IEC 60559.
11706         * m4/ceilf-ieee.m4: New file.
11707         * modules/ceilf-ieee-tests: New file.
11708         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
11709         * tests/test-ceilf1.c (main): Remove signbit tests.
11710         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
11711         * doc/posix-functions/ceilf.texi: Mention the new module.
11712
11713 2010-12-21  Bruno Haible  <bruno@clisp.org>
11714
11715         New module 'floorf-ieee'.
11716         * modules/floorf-ieee: New file.
11717         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
11718         test whether floorf works according to ISO C 99 with IEC 60559.
11719         * m4/floorf-ieee.m4: New file.
11720         * modules/floorf-ieee-tests: New file.
11721         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
11722         * tests/test-floorf1.c (main): Remove signbit tests.
11723         * modules/floorf-tests (Depends-on): Remove 'signbit'.
11724         * doc/posix-functions/floorf.texi: Mention the new module.
11725
11726 2010-12-21  Bruno Haible  <bruno@clisp.org>
11727
11728         Support for minus zero in autoconf macros.
11729         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
11730         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
11731         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
11732         * tests/minus-zero.h: Update comments.
11733
11734 2010-12-21  Bruno Haible  <bruno@clisp.org>
11735
11736         Tests for module 'ceil'.
11737         * modules/ceil-tests: New file.
11738         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
11739         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
11740
11741 2010-12-21  Bruno Haible  <bruno@clisp.org>
11742
11743         Tests for module 'floor'.
11744         * modules/floor-tests: New file.
11745         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
11746         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
11747
11748 2010-12-21  Bruno Haible  <bruno@clisp.org>
11749
11750         math: Fix indentation.
11751         * lib/math.in.h (floorf): Fix indentation.
11752
11753 2010-12-21  Bruno Haible  <bruno@clisp.org>
11754
11755         Fix cross-compilation guesses on Solaris.
11756         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
11757         not match "solaris2.10".
11758         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11759         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
11760         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11761
11762 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
11763
11764         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
11765         This fixes a problem observed with the latest coreutils snapshot
11766         that caused a test to fail on Solaris 8.  src/csplit.c's call
11767         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
11768         earlier, instead of returning the number of bytes that would have
11769         been generated; this causes csplit to incorrectly report memory
11770         exhaustion.
11771         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
11772         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
11773         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
11774         comments to match.
11775         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
11776         Fix typo in matching older versions of Solaris: "solaris2.10"
11777         is matched by the shell pattern "solaris2.[0-9]*".  This matters
11778         only for guessing while cross-compiling.
11779         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
11780
11781 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
11782
11783         ftoastr: fix comment again
11784         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11785         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
11786         Also, simplify example a bit by using flags = 0.
11787
11788 2010-12-20  Bruno Haible  <bruno@clisp.org>
11789
11790         round*, trunc*: Update documentation regarding glibc.
11791         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
11792         * doc/posix-functions/round.texi: Likewise.
11793         * doc/posix-functions/roundl.texi: Likewise.
11794         * doc/posix-functions/truncf.texi: Likewise.
11795         * doc/posix-functions/trunc.texi: Likewise.
11796         * doc/posix-functions/truncl.texi: Likewise.
11797
11798 2010-12-20  Bruno Haible  <bruno@clisp.org>
11799
11800         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
11801         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
11802         * doc/posix-functions/round.texi: Likewise.
11803         * doc/posix-functions/roundl.texi: Likewise.
11804
11805 2010-12-20  Bruno Haible  <bruno@clisp.org>
11806
11807         ttyname_r: Add missing declaration on HP-UX 11.
11808         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
11809         HAVE_TTYNAME_R.
11810         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
11811         declared. Set HAVE_TTYNAME_R always.
11812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11813         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
11814         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
11815         HAVE_TTYNAME_R.
11816         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
11817
11818 2010-12-20  Bruno Haible  <bruno@clisp.org>
11819
11820         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
11821         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
11822         * doc/posix-functions/getlogin_r.texi: Likewise.
11823         * tests/test-getlogin.c: Include <errno.h>.
11824         (main): Avoid test failure on HP-UX 11.11.
11825         * tests/test-getlogin_r.c (main): Likewise.
11826
11827 2010-12-20  Bruno Haible  <bruno@clisp.org>
11828
11829         getlogin_r: Add missing declaration on HP-UX 11.
11830         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
11831         declared also when it exists as a function.
11832         * doc/posix-functions/getlogin_r.texi: Document this workaround.
11833
11834 2010-12-20  Bruno Haible  <bruno@clisp.org>
11835
11836         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
11837         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
11838         through wcrtomb.
11839
11840 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
11841
11842         ftoastr: fix comment
11843         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11844         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
11845
11846 2010-12-19  Bruno Haible  <bruno@clisp.org>
11847
11848         isnan: Ensure it is a macro.
11849         * lib/math.in.h (isnan): Define as a macro if not already a macro.
11850         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
11851         Solaris.
11852
11853 2010-12-19  Bruno Haible  <bruno@clisp.org>
11854
11855         ldexpl test: Fix link error on OSF/1 5.1.
11856         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
11857
11858 2010-12-19  Bruno Haible  <bruno@clisp.org>
11859
11860         wctype: Make it work in C++ mode on OSF/1 5.1.
11861         * lib/wctype.in.h (iswblank): Declare but not define here.
11862         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
11863         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
11864         * modules/wctype (Files): Add lib/iswblank.c.
11865
11866 2010-12-19  Bruno Haible  <bruno@clisp.org>
11867
11868         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
11869         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
11870         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
11871
11872 2010-12-19  Bruno Haible  <bruno@clisp.org>
11873
11874         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
11875         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
11876         _POSIX_PII_SOCKET.
11877         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
11878         * doc/posix-functions/recvfrom.texi: Likewise.
11879         * doc/posix-functions/send.texi: Likewise.
11880         * doc/posix-functions/sendto.texi: Likewise.
11881
11882 2010-12-19  Bruno Haible  <bruno@clisp.org>
11883
11884         tcgetsid: Add missing declaration on OSF/1 5.1.
11885         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
11886         HAVE_TCGETSID.
11887         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
11888         Don't set HAVE_TCGETSID.
11889         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
11890         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
11891         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
11892         HAVE_TCGETSID.
11893         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
11894
11895 2010-12-19  Bruno Haible  <bruno@clisp.org>
11896
11897         stdio: Fix problem with popen() declaration on OSF/1 5.1.
11898         * lib/stdio.in.h: During the include_next statement, let recursive
11899         includes of this file include only the system header file.
11900
11901 2010-12-19  Bruno Haible  <bruno@clisp.org>
11902
11903         iconv_open: Fix regression from 2010-12-04.
11904         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
11905         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
11906
11907 2010-12-19  Bruno Haible  <bruno@clisp.org>
11908
11909         stdbool test: Avoid a gcc warning.
11910         * tests/test-stdbool.c (main): Fail if e1 is false.
11911         Reported by Jim Meyering.
11912
11913 2010-12-19  Jim Meyering  <meyering@redhat.com>
11914
11915         setenv: restore to working order
11916         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
11917         mistakenly removed.
11918         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
11919         HAVE_SETENV.
11920         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
11921         HAVE_SETENV.
11922
11923 2010-12-19  Bruno Haible  <bruno@clisp.org>
11924
11925         Document some different function declarations on OSF/1 5.1.
11926         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
11927         * doc/posix-functions/inet_ntop.texi: Likewise.
11928         * doc/posix-functions/gethostname.texi: Likewise.
11929         * lib/unistd.in.h (gethostname): Update comment.
11930
11931 2010-12-19  Bruno Haible  <bruno@clisp.org>
11932
11933         doc: Mention vasprintf-posix module.
11934         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
11935         the 'vasprintf-posix' module.
11936         * doc/glibc-functions/vasprintf.texi: Likewise.
11937
11938 2010-12-19  Bruno Haible  <bruno@clisp.org>
11939
11940         unsetenv: Add missing declaration on OSF/1 5.1.
11941         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
11942         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
11943         Don't set HAVE_UNSETENV. In the test program, set _BSD.
11944         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
11945         not HAVE_UNSETENV.
11946         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
11947         HAVE_UNSETENV.
11948         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
11949
11950 2010-12-19  Bruno Haible  <bruno@clisp.org>
11951
11952         setenv: Add missing declaration on OSF/1 5.1.
11953         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
11954         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
11955         declared. Don't set HAVE_SETENV.
11956         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
11957         not HAVE_SETENV.
11958         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
11959         HAVE_SETENV.
11960         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
11961
11962 2010-12-19  Bruno Haible  <bruno@clisp.org>
11963
11964         nl_langinfo tests: Avoid gcc warning.
11965         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
11966
11967 2010-12-19  Bruno Haible  <bruno@clisp.org>
11968
11969         mknod: Avoid error in C++ mode on OSF/1 with GCC.
11970         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
11971         _GL_CXXALIAS_SYS.
11972
11973 2010-12-19  Bruno Haible  <bruno@clisp.org>
11974
11975         stdbool: Relax test.
11976         * tests/test-stdbool.c (e): Don't require that casts from a variable's
11977         address to 'bool' work in static initializer, for compilers other than
11978         GCC.
11979
11980 2010-12-19  Bruno Haible  <bruno@clisp.org>
11981
11982         ftello: Add missing declaration on OSF/1 5.1.
11983         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
11984         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
11985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
11986         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
11987         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
11988
11989 2010-12-19  Bruno Haible  <bruno@clisp.org>
11990
11991         fseeko: Add missing declaration on OSF/1 5.1.
11992         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
11993         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
11994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
11995         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
11996         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
11997
11998 2010-12-19  Bruno Haible  <bruno@clisp.org>
11999
12000         fchdir: Add missing declaration on OSF/1 5.1.
12001         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
12002         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
12003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
12004         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
12005         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
12006
12007 2010-12-19  Bruno Haible  <bruno@clisp.org>
12008
12009         relocatable-prog-wrapper: Separate from relocatable-prog.
12010         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
12011         uninstall-relocwrapper rule here.
12012         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
12013         Reported by Ian Beckwith <ianb@erislabs.net>.
12014
12015 2010-12-19  Bruno Haible  <bruno@clisp.org>
12016
12017         unistr/u8-mbsnlen: Add missing dependency.
12018         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12019         Reported by Ian Beckwith <ianb@erislabs.net>.
12020
12021 2010-12-19  Bruno Haible  <bruno@clisp.org>
12022
12023         iconv: Make it possible again to use this module without 'iconv-h'.
12024         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12025         if it is not defined.
12026         Reported by Ian Beckwith <ianb@erislabs.net>.
12027
12028 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12029
12030         acl: port to Solaris 8 when copying from tmpfs to ufs
12031         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12032         error number.  Problem observed on Solaris 8 with latest
12033         coreutils, with "mv A B", where A is on a tmpfs file system and B
12034         is on a ufs file system.  This caused coreutils' mv/part-symlink
12035         test to fail.
12036
12037         tests: set fail=0 at start
12038         * tests/init.sh (setup_): Move fail=0 initialization here ...
12039         (mktempd_): ... from here, so that tests can rely on fail being
12040         set to 0 initially.  This fixes a problem in coreutils; see:
12041         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12042
12043 2010-12-18  Bruno Haible  <bruno@clisp.org>
12044
12045         memmem-simple: Stylistic changes.
12046         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12047         Fix preprocessor directive indentation.
12048
12049 2010-12-15  Pádraig Brady <P@draigBrady.com>
12050
12051         memmem, memmem-simple: reorganize and expand empty needle check
12052         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12053         functional checks to memmem-simple so that one has a fully functional
12054         memmem by using just this module.
12055         Restrict the performance only check to the memmem module.
12056         Also expand the empty needle check to ensure the correct
12057         pointer is returned, not just a non NULL pointer.
12058         * doc/glibc-functions/memmem.texi: Rearrange the portability
12059         documentation to correlate with the rearranged checks.
12060         Clarify exactly how the memmem and memmem-simple modules
12061         relate to each other.
12062
12063 2010-12-15  Pádraig Brady <P@draigBrady.com>
12064             Bruno Haible  <bruno@clisp.org>
12065
12066         Improve cross-compilation guesses for uClibc.
12067         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12068         that uClibc does not have the glibc bug.
12069         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12070         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12071
12072 2010-12-14  Eric Blake  <eblake@redhat.com>
12073
12074         configmake: provide fallbacks for oldest supported autotools
12075         * m4/configmake.m4: New file.
12076         * modules/configmake (Files): Ship it.
12077         (configure.ac): Use it to guarantee fallbacks.
12078
12079 2010-12-13  Pádraig Brady <P@draigBrady.com>
12080
12081         read-file: Improve handling of large files
12082         * lib/read-file.c (fread_file): Minimize realloc()s
12083         for regular files, and better manage sizes around SIZE_MAX.
12084
12085 2010-12-13  Eric Blake  <eblake@redhat.com>
12086
12087         cloexec, fcntl: relax license
12088         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12089         consent from all contributors.
12090         * modules/fcntl (License): Likewise.
12091
12092 2010-12-10  Bruno Haible  <bruno@clisp.org>
12093
12094         Tests for module 'pipe-posix'.
12095         * modules/pipe-posix-tests: New file.
12096         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12097
12098 2010-12-10  Bruno Haible  <bruno@clisp.org>
12099
12100         pipe-posix: Make it work in C++ mode.
12101         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12102         (pipe): Use common idiom, not a macro definition.
12103         * lib/pipe.c: New file.
12104         * m4/pipe.m4: New file.
12105         * modules/pipe-posix (Description): Enhance.
12106         (Files): Add lib/pipe.c, m4/pipe.m4.
12107         (configure.ac): Invoke gl_FUNC_PIPE.
12108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12109         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12110         * tests/test-unistd-c++.cc: Check the signature of pipe.
12111
12112 2010-12-10  Bruno Haible  <bruno@clisp.org>
12113
12114         Rename module 'pipe' to 'spawn-pipe'.
12115         * modules/spawn-pipe: New file, renamed from modules/pipe.
12116         (Files, configure.ac, Makefile.am): Update.
12117         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12118         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12119         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12120         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12121         "spawn-pipe.h" instead of "pipe.h".
12122         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12123         to gl_SPAWN_PIPE.
12124         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12125         (Files, Makefile.am): Update.
12126         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12127         Update.
12128         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12129         Include "spawn-pipe.h" instead of "pipe.h".
12130         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12131         * lib/javacomp.c: Likewise.
12132         * lib/javaversion.c: Likewise.
12133         * lib/pipe-filter-gi.c: Likewise.
12134         * lib/pipe-filter-ii.c: Likewise.
12135         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12136         * modules/javacomp (Depends-on): Likewise.
12137         * modules/javaversion (Depends-on): Likewise.
12138         * modules/pipe-filter-gi (Depends-on): Likewise.
12139         * modules/pipe-filter-ii (Depends-on): Likewise.
12140         * MODULES.html.sh (Executing programs): Update.
12141         * NEWS: Mention the change.
12142
12143 2010-12-10  Eric Blake  <eblake@redhat.com>
12144
12145         pipe-posix: new module
12146         * modules/pipe-posix: New file.
12147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12148         (gl_UNISTD_H): Check for declaration.
12149         * modules/unistd (Makefile.am): Substitute it.
12150         * lib/unistd.in.h (pipe): Provide it for mingw.
12151         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12152         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12153
12154 2010-12-07  Bruno Haible  <bruno@clisp.org>
12155
12156         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12157         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12158         u8_strcmp_gnu.
12159         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12160
12161 2010-12-06  Bruno Haible  <bruno@clisp.org>
12162
12163         Update internal documentation.
12164         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12165
12166 2010-12-04  Bruno Haible  <bruno@clisp.org>
12167
12168         Put more information about failed tests into the test return codes.
12169         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12170         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12171         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12172         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12173         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12174         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12175         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12176         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12177         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12178         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12179         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12180         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12181         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12182         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12183         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12184         returns a bit mask.
12185         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12186         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12187         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12188         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12189         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12190         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12191         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12192         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12193         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12194         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12195         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12196         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12197         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12198         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12199         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12200         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12201         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12202         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12203         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12204         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12205         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12206         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12207         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12208         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12209         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12210         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12211         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12212         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12213         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12214         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12215         gl_PRINTF_PRECISION): Likewise.
12216         * m4/regex.m4 (gl_REGEX): Likewise.
12217         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12218         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12219         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12220         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12221         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12222         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12223         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12224         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12225         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12226         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12227         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12228         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12229         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12230         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12231         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12232         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12233         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12234         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12235         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12236         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
12237         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
12238         enumerated value.
12239         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
12240
12241 2010-12-04  Bruno Haible  <bruno@clisp.org>
12242
12243         Update for Solaris 11 2010-11.
12244         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
12245         Express, released in November 2010.
12246
12247 2010-12-04  Bruno Haible  <bruno@clisp.org>
12248
12249         nproc: Relax license.
12250         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
12251         and Paul Eggert.
12252         Requested by Ludovic Courtès <ludo@gnu.org>.
12253
12254 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12255
12256         utimecmp: fine-grained src to nearby coarse-grained dest
12257
12258         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
12259         and the source is on a file system with higher-resolution time
12260         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
12261         not work, and the time stamps are close together, the algorithm to
12262         determine the exact resolution from the read-back mtime was buggy:
12263         it had a "!=" where it should have had an "==".  This bug has been
12264         in the code ever since it was introduced to gnulib.
12265         Problem reported by Dan Jacobson in
12266         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
12267
12268 2010-11-30  Bruno Haible  <bruno@clisp.org>
12269
12270         strerror_r-posix: Fix autoconf test.
12271         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
12272
12273 2010-11-28  Bruno Haible  <bruno@clisp.org>
12274             Paul Eggert  <eggert@cs.ucla.edu>
12275
12276         Tests for module 'getdomainname'.
12277         * modules/getdomainname-tests: New file.
12278         * tests/test-getdomainname.c: New file, based on
12279         tests/test-gethostname.c.
12280
12281 2010-11-28  Bruno Haible  <bruno@clisp.org>
12282             Paul Eggert  <eggert@cs.ucla.edu>
12283
12284         getdomainname: Use the system function when possible.
12285         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
12286         (getdomainname): Replace if needed. Provide the declaration if it is
12287         missing. Don't use _GL_CXXALIAS_SYS_CAST.
12288         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
12289         (getdomainname): When the system has getdomainname, call the system
12290         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
12291         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
12292         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
12293         found in libnsl. Look for the declaration also in <netdb.h>. Replace
12294         the function if its second argument is of type 'int' or if it is found
12295         in libnsl.
12296         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
12297         <sys/systeminfo.h> and sysinfo().
12298         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
12299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12300         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
12301         HAVE_GETDOMAINNAME.
12302         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
12303         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
12304         * doc/glibc-functions/getdomainname.texi: Document the problems with
12305         the getdomainname declaration.
12306
12307 2010-11-28  Bruno Haible  <bruno@clisp.org>
12308
12309         sys_socket: Ensure ss_family field on AIX.
12310         * lib/sys_socket.in.h (ss_family): New macro definition.
12311         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
12312         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
12313         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12314         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12315         * modules/sys_socket (Makefile.am): Substitute
12316         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12317         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
12318
12319 2010-11-27  Bruno Haible  <bruno@clisp.org>
12320
12321         readline: Improve configure output.
12322         * m4/readline.m4 (gl_FUNC_READLINE): Make the
12323         "checking for readline..." result understandable.
12324
12325 2010-11-27  Bruno Haible  <bruno@clisp.org>
12326
12327         *printf-posix: Detect a bug on Solaris 10/x86.
12328         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12329         for floating-point output.
12330         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12331         directive.
12332         * tests/test-snprintf-posix.h (test_function): Likewise.
12333         * tests/test-sprintf-posix.h (test_function): Likewise.
12334         * tests/test-vasprintf-posix.c (test_function): Likewise.
12335         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12336         * doc/posix-functions/printf.texi: Likewise.
12337         * doc/posix-functions/snprintf.texi: Likewise.
12338         * doc/posix-functions/sprintf.texi: Likewise.
12339         * doc/posix-functions/vfprintf.texi: Likewise.
12340         * doc/posix-functions/vprintf.texi: Likewise.
12341         * doc/posix-functions/vsnprintf.texi: Likewise.
12342         * doc/posix-functions/vsprintf.texi: Likewise.
12343         * doc/glibc-functions/obstack_printf.texi: Likewise.
12344         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12345
12346 2010-11-27  Bruno Haible  <bruno@clisp.org>
12347
12348         Fix link error when module libunistring-optional is in use.
12349         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12350         * modules/striconveha-tests (Makefile.am): Likewise.
12351
12352 2010-11-27  Bruno Haible  <bruno@clisp.org>
12353
12354         regex: Mention link dependencies.
12355         * modules/regex (Link): New section.
12356         * modules/rpmatch (Link): Likewise.
12357         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12358
12359 2010-11-27  Bruno Haible  <bruno@clisp.org>
12360
12361         ftoastr: Fix compilation error on Solaris.
12362         * lib/ftoastr.c: Include <config.h>.
12363
12364 2010-11-27  Bruno Haible  <bruno@clisp.org>
12365
12366         getloadavg: Update documentation.
12367         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12368
12369 2010-11-27  Bruno Haible  <bruno@clisp.org>
12370
12371         sys_socket: Fix test whether the functions are declared.
12372         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12373         not <sys/select.h>.
12374
12375 2010-11-27  Bruno Haible  <bruno@clisp.org>
12376
12377         getpass: Make sure to get system declaration on some platforms.
12378         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12379         gl_USE_SYSTEM_EXTENSIONS.
12380         * modules/getpass (Depends-on): Add extensions.
12381
12382 2010-11-26  Bruno Haible  <bruno@clisp.org>
12383
12384         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12385         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12386         'iconv' module is present.
12387         (ICONV_CONST): New macro.
12388         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12389         ICONV_CONST.
12390         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12391         set ICONV_CONST.
12392         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12393         here.
12394         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12395         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12396         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12397         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12398         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12399         present.
12400
12401 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12402
12403         ftoastr: comment fix
12404         * lib/ftoastr.c: "little" -> "little or no" in comment
12405
12406 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12407
12408         stdint: port to GCC 4.3 + OSX + Octave
12409         On this platform, stdint.h is buggy and defines int64_t to long
12410         long int.  The replacement defined it to long int, causing
12411         problems with C++ style name mangling.  Instead, trust the system
12412         definition if INT64_MAX is defined, and likewise for the unsigned
12413         variant.   Problem reported by Jarno Rajahalme in
12414         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
12415         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
12416         and don't mess with int64_t and INT64_MAX in this case.
12417         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
12418
12419 2010-11-24  Bruno Haible  <bruno@clisp.org>
12420
12421         doc: Corrections regarding MacOS X 10.4 and 10.5.
12422         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
12423         MacOS X.
12424         Reported by Simon Josefsson.
12425
12426 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
12427
12428         Uninstall ".bin" files installed by relocwrapper.
12429         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
12430         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
12431         unless it is already there.
12432
12433 2010-11-21  Bruno Haible  <bruno@clisp.org>
12434
12435         Update for NetBSD 5.0.
12436         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12437         NetBSD; the test fails on NetBSD 5.0.
12438         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12439         about NetBSD.
12440
12441 2010-11-21  Bruno Haible  <bruno@clisp.org>
12442
12443         Update for HP-UX 11.23 and HP-UX 11.31.
12444         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
12445         HP-UX.
12446
12447 2010-11-21  Bruno Haible  <bruno@clisp.org>
12448
12449         Update for MacOS X 10.5.
12450         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12451         MacOS X; the test fails on MacOS X 10.5.8.
12452         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12453         about MacOS X.
12454
12455 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
12456
12457         bootstrap: add bootstrap_sync option.
12458         See discussion at
12459         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
12460         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
12461         * build-aux/bootstrap: Accept --bootstrap-sync to update
12462         bootstrap if it is not identical to the local gnulib's
12463         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
12464         enable this by default.  Accept --no-bootstrap-sync to disable
12465         it.
12466
12467 2010-11-20  Bruno Haible  <bruno@clisp.org>
12468
12469         Ensure that <features.h> is included before __GLIBC__ is tested.
12470         * lib/printf-parse.h: Include <features.h>.
12471         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
12472         Reported by Mike Frysinger <vapier@gentoo.org>.
12473
12474         Ensure that <features.h> is included before __GLIBC__ is tested.
12475         * lib/wchar.in.h: Include <features.h>.
12476         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
12477         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
12478         Reported by Mike Frysinger <vapier@gentoo.org>.
12479
12480         Ensure that <features.h> is included before __GLIBC__ is tested.
12481         * lib/arpa_inet.in.h: Include <features.h>.
12482         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
12483         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
12484         Reported by Mike Frysinger <vapier@gentoo.org>.
12485
12486         Ensure that <features.h> is included before __GLIBC__ is tested.
12487         * build-aux/link-warning.h: Include <features.h>.
12488         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
12489         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
12490         Reported by Mike Frysinger <vapier@gentoo.org>.
12491
12492         Ensure that <features.h> is included before __GLIBC__ is tested.
12493         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
12494         Reported by Mike Frysinger <vapier@gentoo.org>.
12495
12496 2010-11-20  Bruno Haible  <bruno@clisp.org>
12497
12498         memmem: Fix autoconf test.
12499         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
12500
12501 2010-11-20  Bruno Haible  <bruno@clisp.org>
12502
12503         Port to uClibc.
12504         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
12505         * lib/fcntl.in.h: Likewise.
12506         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
12507         * lib/mbrtowc.c (mbrtowc): Likewise.
12508         * lib/relocatable.c (find_shared_library_fullname): Likewise.
12509         * lib/strerror_r.c: Likewise.
12510         * lib/unistr/u8-strnlen.c: Likewise.
12511         * lib/vasnprintf.c (decimal_point_char): Likewise.
12512         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12513         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12514         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12515         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
12516         * tests/test-sigaction.c (handler, main): Likewise.
12517         * lib/freading.h: Treat uClibc like a non-glibc platform.
12518         * lib/freading.c: Likewise.
12519         * lib/gettext.h: Likewise.
12520         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
12521         Likewise.
12522         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
12523         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
12524         * lib/propername.c (proper_name_utf8): Likewise.
12525         * lib/spawn.in.h: Likewise.
12526         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
12527         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
12528         mem_cd_iconveh_internal): Likewise.
12529         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
12530         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12531         strstr, strcasestr): Likewise.
12532         * lib/unicodeio.c (unicode_to_mb): Likewise.
12533         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
12534         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
12535         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
12536         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
12537         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
12538         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
12539         * lib/unistr/u8-stpncpy.c: Likewise.
12540         * lib/vasnprintf.c (VASNPRINTF): Likewise.
12541         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
12542         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12543         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12544         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
12545         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
12546         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
12547         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
12548         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12549         Likewise.
12550         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12551         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12552         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12553         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12554         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12555         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12556         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12557         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12558         * tests/test-getopt.h (OPTIND_MIN): Likewise.
12559         * tests/test-striconveha.c (main): Likewise.
12560         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12561         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
12562         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
12563         * doc/posix-functions/getline.texi: Likewise.
12564         Reported by Mike Frysinger <vapier@gentoo.org>.
12565
12566 2010-11-20  Bruno Haible  <bruno@clisp.org>
12567
12568         nproc: Fix condition.
12569         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
12570         HAVE_PTHREAD_AFFINITY_NP.
12571
12572 2010-11-20  Bruno Haible  <bruno@clisp.org>
12573
12574         Fix a comment.
12575         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
12576
12577 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12578
12579         ftoastr: don't assume snprintf
12580         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
12581         Implement a subset of snprintf here, by using sprintf safely.
12582         * modules/ftoastr (Depends-on): Remove snprintf.
12583
12584 2010-11-19  Jim Meyering  <meyering@redhat.com>
12585
12586         test-rename.h: fix compilation failure
12587         * tests/test-rename.h (test_rename): Add omitted "}".
12588
12589 2010-11-17  Jim Meyering  <meyering@redhat.com>
12590
12591         maint.mk: add a URL discussing the no-@acronym policy
12592         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
12593
12594 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12595
12596         ftoastr: depend on snprintf, improve comments
12597         * lib/ftoastr.c: Also mention Loitsch's draft.
12598         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
12599         needed in the current implementation, but it might simplify
12600         speeding up the code later.
12601         * modules/ftoastr: Depend on snprintf; this improves portability.
12602         Suggested by Bruno Haible in the same email.
12603
12604         ftoastr: port to hosts lacking strtof and strtold
12605         Problem reported by Bruno Haible in
12606         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
12607         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
12608         environment and strtold (and presumably strtof) are not available.
12609         * modules/ftoastr (Files): Add m4/c-strtod.m4.
12610         (configure.ac): Require gl_C99_STRTOLD.
12611
12612 2010-11-18  Bruno Haible  <bruno@clisp.org>
12613
12614         c-strtold: Avoid link error on AIX 7.
12615         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
12616         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
12617         (gl_C_STRTOLD): Test whether strtold_l exists.
12618         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12619
12620 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12621
12622         intprops: new macro INT_BITS_STRLEN_BOUND
12623         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
12624         ftoastr.h.  This exposes an internal of intprops.h that was formerly
12625         not exposed.  Also, it uses a slightly tighter bound than before;
12626         though this makes no practical difference, we might as well be as
12627         tight as we easily can.
12628
12629         ftoastr: new module, for lossless conversion of floats to short strings
12630         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
12631         * modules/ftoastr: New files.
12632
12633 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
12634
12635         bootstrap: port to Solaris sed
12636         * build-aux/bootstrap (get_version): Port to Solaris sed.
12637         See Ralf Wildenhues's note in
12638         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
12639
12640 2010-11-14  Jim Meyering  <meyering@redhat.com>
12641
12642         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
12643         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
12644         and move definition closer to sole use.
12645
12646 2010-11-13  Jim Meyering  <meyering@redhat.com>
12647
12648         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
12649         Now we require at least autoconf-2.59, which means the work-around
12650         is no longer needed.
12651         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
12652         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12653         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12654         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
12655         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12656
12657 2010-11-13  Bruno Haible  <bruno@clisp.org>
12658
12659         rename, renameat: Avoid test failures at NFS mounted locations.
12660         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
12661         functions.
12662         (test_rename): Use assert_nonexistent.
12663         * tests/test-rename.c: Include <dirent.h>.
12664         * tests/test-renameat.c: Likewise.
12665         Reported by Gary V. Vaughan <gary@gnu.org>.
12666
12667         rename, renameat: Document Linux bug with NFS
12668         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
12669         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
12670         * doc/posix-functions/renameat.texi: Likewise.
12671         Suggested by Eric Blake.
12672
12673 2010-11-13  Bruno Haible  <bruno@clisp.org>
12674
12675         rename test: Add comments.
12676         * tests/test-rename.h (test_rename): Add structure and comments.
12677
12678 2010-11-13  Eric Blake  <eblake@redhat.com>
12679
12680         maintainer-makefile: cover a few more files
12681         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
12682         scripts generated within C files, for libvirt.
12683
12684 2010-11-13  Bruno Haible  <bruno@clisp.org>
12685
12686         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
12687         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
12688         character, return the number of bytes that belong together, not always
12689         1.
12690         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
12691         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
12692         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
12693         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
12694         number of bytes of an invalid character.
12695         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
12696         (main): Invoke it.
12697         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
12698         results.
12699         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
12700         malformed byte sequences.
12701         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
12702         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
12703         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
12704         Reported by Ben Pfaff and Paolo Bonzini.
12705
12706 2010-11-13  Bruno Haible  <bruno@clisp.org>
12707
12708         openat: Work around glibc bug with fchownat() and empty file names.
12709         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
12710         (gl_FUNC_FCHOWNAT): Invoke it.
12711         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
12712         * doc/posix-functions/fchownat.texi: Document the glibc bug.
12713         Reported by Gary V. Vaughan <gary@gnu.org>.
12714
12715 2010-11-13  Bruno Haible  <bruno@clisp.org>
12716
12717         openat: Ensure autoconf macro ordering.
12718         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
12719         gl_USE_SYSTEM_EXTENSIONS.
12720         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
12721
12722 2010-11-13  Bruno Haible  <bruno@clisp.org>
12723
12724         Update comments.
12725         * lib/unistr/u8-check.c: Update file name in comments.
12726         * lib/unistr/u8-mblen.c: Likewise.
12727         * lib/unistr/u8-prev.c: Likewise.
12728         * lib/unistr/u8-strmblen.c: Likewise.
12729         * lib/unistr/u8-strmbtouc.c: Likewise.
12730
12731 2010-11-13  Jim Meyering  <meyering@redhat.com>
12732
12733         tests: avoid test failure on Solaris 10 due to lack of PATH export
12734         * tests/test-update-copyright.sh: Don't forget to export PATH.
12735
12736         init.sh: ensure that IFS is defined, just in case...
12737         * tests/init.sh (setup_): Ensure that IFS is defined,
12738         so that saving and restoring it works as expected.  This
12739         appears to be useful at least for an old version of dash
12740         from a long time ago (RH 6).  See here for details:
12741         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
12742
12743         maint.mk: tighten "test a == b" check
12744         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
12745         test to files that contain something like #!/bin/sh.
12746         Without this, coreutils would get two false positives in
12747         the comments of C source files.
12748
12749 2010-11-12  Eric Blake  <eblake@redhat.com>
12750
12751         bootstrap: fix typo in previous attempt
12752         * build-aux/bootstrap (buildreq): Correct the grouping.
12753         Reported by Paul Eggert.
12754
12755         maintainer-makefile: prohibit test x == x
12756         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
12757         Based on a report by Matthias Bolte.
12758
12759         bootstrap: allow FreeBSD gzip
12760         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
12761         which has no '.' and goes to stderr.
12762         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
12763         Reported by Matthias Bolte.
12764
12765         maintainer-makefile: check for i18n setup
12766         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
12767         will likely work.
12768
12769 2010-11-12  Bruno Haible  <bruno@clisp.org>
12770
12771         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
12772         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
12773         * lib/nanosleep.c (nanosleep): Likewise.
12774
12775 2010-11-11  Bruno Haible  <bruno@clisp.org>
12776
12777         fcntl-h: Fix for use of C++ on glibc systems.
12778         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12779         also on glibc systems in C++ mode.
12780         Reported by Gary V. Vaughan <gary@gnu.org>.
12781
12782 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12783
12784         mknod: avoid false failure with dash
12785         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
12786
12787 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12788
12789         unlink: Fix "is it should" typo in diagnostic.
12790         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
12791         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
12792
12793 2010-11-11  Bruno Haible  <bruno@clisp.org>
12794
12795         Tests for module 'strerror_r-posix'.
12796         * modules/strerror_r-posix-tests: New file.
12797         * tests/test-strerror_r.c: New file.
12798         * tests/test-string-c++.cc: Check the signature of strerror_r.
12799
12800         New module 'strerror_r-posix'.
12801         * lib/string.in.h (strerror_r): New declaration.
12802         * lib/strerror_r.c: New file.
12803         * m4/strerror_r.m4: New file.
12804         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
12805         of strerror_r.
12806         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
12807         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
12808         * modules/strerror_r-posix: New file.
12809         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
12810         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
12811         * doc/posix-functions/strerror_r.texi: Mention the new module and the
12812         portability problems.
12813
12814 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
12815
12816         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
12817         line is also considered for output. Quoted function name in shell
12818         command, so temporary files for functions like MyClass::operator()
12819         are removed correctly without errors.
12820
12821 2010-11-09  Bruno Haible  <bruno@clisp.org>
12822
12823         * doc/posix-functions/strerror.texi: List more failing platforms.
12824
12825         * doc/posix-functions/strerror.texi: Add a comment.
12826
12827 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
12828
12829         fdopendir: fix bug on MacOS X when low on file descriptors
12830
12831         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
12832         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
12833         All callers changed.
12834         (fdopendir): Invoke save_cwd at the top level, not after using
12835         multiple dup() calls to use up file descriptors.  Then retry
12836         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
12837         less than the maximum number of open file descriptors, because
12838         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
12839         on Mac OS X 10.6.4 for tar 1.24
12840         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
12841         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
12842         and for tar 1.25
12843         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
12844
12845 2010-11-07  Bruno Haible  <bruno@clisp.org>
12846
12847         vasnprintf: Support I flag on glibc systems.
12848         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
12849         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
12850         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
12851         snprintf function.
12852         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
12853         glibc systems.
12854         * tests/test-vasnprintf-posix3.c: New file.
12855         * modules/vasnprintf-posix-tests (Files): Add it.
12856         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
12857
12858 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12859
12860         [html] Fix copy/paste bug: Use unique name for compiler warnings.
12861         * MODULES.html.sh: For compiler warnings, use name
12862         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
12863
12864 2010-11-05  Eric Blake  <eblake@redhat.com>
12865
12866         ceil, floor: avoid spurious failure with icc
12867         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
12868         [denormals-as-zero] when optimizing without -mieee-fp option.
12869         * tests/test-floorf2.c (floorf_reference): Likewise.
12870         * tests/test-ceilf1.c (dummy): New function.
12871         (main): Use it to outsmart icc's optimization.
12872         * tests/test-floorf1.c (dummy, main): Likewise.
12873
12874         tests: require working signbit
12875         * modules/ceilf-tests (Depends-on): Add signbit.
12876         * modules/ceill-tests (Depends-on): Likewise.
12877         * modules/floorf-tests (Depends-on): Likewise.
12878         * modules/floorl-tests (Depends-on): Likewise.
12879         * modules/round-tests (Depends-on): Likewise.
12880         * modules/roundf-tests (Depends-on): Likewise.
12881         * modules/roundl-tests (Depends-on): Likewise.
12882         * modules/trunc-tests (Depends-on): Likewise.
12883         * modules/truncf-tests (Depends-on): Likewise.
12884         * modules/truncl-tests (Depends-on): Likewise.
12885
12886         strtod: work around icc bug
12887         * lib/strtod.c (minus_zero): Define to working value.
12888         (strtod): Use it to avoid icc bug.
12889
12890         copysign: enhance tests
12891         * modules/copysign-tests (Files): Add minus-zero.h.
12892         * tests/test-copysign.c (main): Also test zeros.
12893
12894 2010-11-04  Eric Blake  <eblake@redhat.com>
12895
12896         ceil, floor, round, trunc: enhance tests of -0
12897         * tests/test-ceilf1.c (main): Ensure correct sign of result.
12898         * tests/test-ceill.c (main): Likewise.
12899         * tests/test-floorf1.c (main): Likewise.
12900         * tests/test-floorl.c (main): Likewise.
12901         * tests/test-round1.c (main): Likewise.
12902         * tests/test-roundf1.c (main): Likewise.
12903         * tests/test-roundl.c (main): Likewise.
12904         * tests/test-trunc1.c (main): Likewise.
12905         * tests/test-truncf1.c (main): Likewise.
12906         * tests/test-truncl.c (main): Likewise.
12907
12908 2010-11-04  Eric Blake  <eblake@redhat.com>
12909
12910         frexp, tests: work around ICC bug with -zero
12911         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
12912         works with more compilers.
12913         * tests/minus-zero.h: New file.
12914         * modules/ceilf-tests (Files): Include it.
12915         * modules/ceill-tests (Files): Likewise.
12916         * modules/floorf-tests (Files): Likewise.
12917         * modules/floorl-tests (Files): Likewise.
12918         * modules/frexp-nolibm-tests (Files): Likewise.
12919         * modules/frexp-tests (Files): Likewise.
12920         * modules/frexpl-nolibm-tests (Files): Likewise.
12921         * modules/frexpl-tests (Files): Likewise.
12922         * modules/isnan-tests (Files): Likewise.
12923         * modules/isnand-nolibm-tests (Files): Likewise.
12924         * modules/isnand-tests (Files): Likewise.
12925         * modules/isnanf-nolibm-tests (Files): Likewise.
12926         * modules/isnanf-tests (Files): Likewise.
12927         * modules/isnanl-nolibm-tests (Files): Likewise.
12928         * modules/isnanl-tests (Files): Likewise.
12929         * modules/round-tests (Files): Likewise.
12930         * modules/roundf-tests (Files): Likewise.
12931         * modules/roundl-tests (Files): Likewise.
12932         * modules/ldexpl-tests (Files): Likewise.
12933         * modules/signbit-tests (Files): Likewise.
12934         * modules/snprintf-posix-tests (Files): Likewise.
12935         * modules/sprintf-posix-tests (Files): Likewise.
12936         * modules/strtod-tests (Files): Likewise.
12937         * modules/trunc-tests (Files): Likewise.
12938         * modules/truncf-tests (Files): Likewise.
12939         * modules/truncl-tests (Files): Likewise.
12940         * modules/vsnprintf-posix-tests (Files): Likewise.
12941         * modules/vsprintf-posix-tests (Files): Likewise.
12942         * modules/vasnprintf-posix-tests (Files): Likewise.
12943         * modules/vasprintf-posix-tests (Files): Likewise.
12944         * tests/test-ceilf1.c (main): Use it.
12945         * tests/test-ceill.c (main): Likewise.
12946         * tests/test-floorf1.c (main): Likewise.
12947         * tests/test-floorl.c (main): Likewise.
12948         * tests/test-frexp.c (main): Likewise.
12949         * tests/test-frexpl.c (main): Likewise.
12950         * tests/test-isnan.c (main): Likewise.
12951         * tests/test-isnand.h (main): Likewise.
12952         * tests/test-isnanf.h (main): Likewise.
12953         * tests/test-isnanl.h (main): Likewise.
12954         * tests/test-ldexpl.c (main): Likewise.
12955         * tests/test-round.c (main): Likewise.
12956         * tests/test-roundf.c (main): Likewise.
12957         * tests/test-roundl.c (main): Likewise.
12958         * tests/test-signbit.c (test_signbitf, test_signbitd)
12959         (test_signbitl): Likewise.
12960         * tests/test-snprintf-posix.h (test_function): Likewise.
12961         * tests/test-sprintf-posix.h (test_function): Likewise.
12962         * tests/test-strtod.c (main): Likewise.
12963         * tests/test-trunc1.c (main): Likewise.
12964         * tests/test-truncf1.c (main): Likewise.
12965         * tests/test-truncl.c (main): Likewise.
12966
12967         isnanl: work around icc bug
12968         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
12969
12970 2010-11-03  Eric Blake  <eblake@redhat.com>
12971
12972         tests: fix compiler warnings
12973         * tests/test-getopt.h (test_getopt): Fix condition.
12974         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12975         * tests/test-pipe2.c (main): Likewise.
12976         * tests/test-quotearg-simple.c (main): Avoid icc warning.
12977
12978         utimens: fix broken m4 test
12979         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
12980
12981 2010-10-28  Bruno Haible  <bruno@clisp.org>
12982
12983         posix_spawn*, getdtablesize: Relax license.
12984         * modules/posix_spawn (License): Change to LGPLv2+.
12985         * modules/posix_spawnp (License): Likewise.
12986         * modules/posix_spawn-internal (License): Likewise.
12987         * modules/posix_spawnattr_init (License): Likewise.
12988         * modules/posix_spawnattr_getflags (License): Likewise.
12989         * modules/posix_spawnattr_setflags (License): Likewise.
12990         * modules/posix_spawnattr_getpgroup (License): Likewise.
12991         * modules/posix_spawnattr_setpgroup (License): Likewise.
12992         * modules/posix_spawnattr_getschedparam (License): Likewise.
12993         * modules/posix_spawnattr_setschedparam (License): Likewise.
12994         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
12995         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
12996         * modules/posix_spawnattr_getsigdefault (License): Likewise.
12997         * modules/posix_spawnattr_setsigdefault (License): Likewise.
12998         * modules/posix_spawnattr_getsigmask (License): Likewise.
12999         * modules/posix_spawnattr_setsigmask (License): Likewise.
13000         * modules/posix_spawnattr_destroy (License): Likewise.
13001         * modules/posix_spawn_file_actions_init (License): Likewise.
13002         * modules/posix_spawn_file_actions_addclose (License): Likewise.
13003         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
13004         * modules/posix_spawn_file_actions_addopen (License): Likewise.
13005         * modules/posix_spawn_file_actions_destroy (License): Likewise.
13006         * modules/getdtablesize (License): Likewise.
13007         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
13008
13009 2010-10-26  Bruno Haible  <bruno@clisp.org>
13010
13011         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
13012         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
13013         Cygwin and mingw.
13014         Suggested by Eric Blake.
13015
13016 2010-10-26  Bruno Haible  <bruno@clisp.org>
13017
13018         stdio: Work around compilation error due to renameat() on Solaris 10.
13019         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13020         * lib/renameat.c: Don't include <unistd.h> here.
13021         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13022         Reported by Paul Eggert and Eric Blake.
13023
13024 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13025
13026         renameat: port to Solaris 10, which declares renameat in unistd.h
13027
13028         * lib/renameat.c: Include unistd.h before stdio.h, because
13029         Solaris 10 declares renameat in unistd.h.  Problem encountered
13030         when building GNU tar 1.24 on Solaris 10.
13031
13032 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13033
13034         fdopendir: fix C89 compilation
13035         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13036         compilers.
13037
13038 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13039
13040         inttostr: simplify by removing unnecessary redundancy
13041         * lib/anytostr.c: Don't include verify.h.
13042         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13043         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13044         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13045         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13046         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13047         Likewise.
13048         * modules/inttostr (Depends-on): Remove 'verify'.
13049
13050 2010-10-23  Bruno Haible  <bruno@clisp.org>
13051
13052         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13053         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13054         Reported by Eric Blake.
13055
13056 2010-10-23  Bruno Haible  <bruno@clisp.org>
13057
13058         Tests: Fix LOCALE_JA on MirBSD 10.
13059         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13060         to an UTF-8 locale.
13061         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13062         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13063         Reported by Eric Blake.
13064
13065 2010-10-21  Bruno Haible  <bruno@clisp.org>
13066
13067         nl_langinfo test: Avoid test failure on NetBSD 5.
13068         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13069         Reported by Eric Blake.
13070
13071 2010-10-21  Eric Blake  <eblake@redhat.com>
13072
13073         c-stack: work around libsigsegv 2.8 bug
13074         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13075         overflow on at least PowerPC64.
13076
13077 2010-10-17  Bruno Haible  <bruno@clisp.org>
13078
13079         userspec: Drop redundant file.
13080         * modules/userspec (Files): Remove lib/inttostr.h.
13081
13082 2010-10-17  Bruno Haible  <bruno@clisp.org>
13083
13084         nl_langinfo tests: Silence some warnings.
13085         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13086         Reported by Jim Meyering.
13087
13088 2010-10-17  Bruno Haible  <bruno@clisp.org>
13089
13090         Make use of GCC's attribute __alloc_size__.
13091         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13092         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13093         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13094         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13095         __alloc_size__.
13096         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13097         Suggested by Jim Meyering.
13098
13099 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13100
13101         bootstrap: anchor .gitignore entries.
13102         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13103         with...
13104         (insert_vc_ignore): ... this new function, which prepends `/' to
13105         all .gitignore entries before passing them to
13106         insert_sorted_if_absent.
13107
13108 2010-10-16  Bruno Haible  <bruno@clisp.org>
13109
13110         nextafter: Fix configure check.
13111         * modules/nextafter (configure.ac): Correct expected prototype.
13112
13113 2010-10-16  Bruno Haible  <bruno@clisp.org>
13114
13115         termios: Update documentation.
13116         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13117
13118 2010-10-16  Bruno Haible  <bruno@clisp.org>
13119
13120         tests: Make them compile with TinyCC.
13121         * tests/test-strstr.c (main): Remove parentheses around array
13122         initializer.
13123
13124 2010-10-15  Eric Blake  <eblake@redhat.com>
13125
13126         ignore-value: make header idempotent
13127         * lib/ignore-value.h: Add double-inclusion guards.
13128         Reported by Stefan Berger.
13129
13130 2010-10-15  Jim Meyering  <meyering@redhat.com>
13131
13132         GNUmakefile: handle "stable" target, not "major"
13133         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13134         lists in maint.mk and announce-gen.  Without this, "make stable"
13135         would fail to ensure that $(VERSION) is up to date.
13136
13137 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13138
13139         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13140         & co.
13141
13142 2010-10-14  Bruno Haible  <bruno@clisp.org>
13143
13144         vasnprintf: Don't set errno to 0.
13145         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13146         block that sets it to 0.
13147         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13148
13149 2010-10-14  Bruno Haible  <bruno@clisp.org>
13150
13151         socketlib: Fix.
13152         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13153         gl_PREREQ_SYS_H_WINSOCK2.
13154         Reported by Ian Beckwith <ianb@erislabs.net>.
13155
13156 2010-10-13  Jim Meyering  <meyering@redhat.com>
13157
13158         test-select-stdin.c: avoid warn_unused_result warnings
13159         * tests/test-select-stdin.c: Include "macros.h".
13160         ASSERT that read and fflush succeed.
13161
13162 2010-10-13  Jim Meyering  <meyering@redhat.com>
13163
13164         git-version-gen: do require git-VC'd files in cwd
13165         * build-aux/git-version-gen: Reject a git version string
13166         if there are no commits associated with the current directory.
13167         This avoids an unlikely false-positive (unrelated dir whose parent
13168         repository also contains a tag matching v*), as pointed out
13169         by Giuseppe Scrivano in
13170         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13171
13172 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13173
13174         argv-iter: omit nonconforming declaration
13175         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13176         enum arg_iter_err declaration, which doesn't conform to C99.
13177         Solaris 10 cc warns about this.
13178
13179 2010-10-13  Eric Blake  <eblake@redhat.com>
13180
13181         termios: fix compilation on mingw
13182         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13183         (gl_TERMIOS_H): Adjust it on mingw.
13184         * modules/termios (Makefile.am): Substitute new key.
13185         * lib/termios.in.h (includes): Make include_next conditional.
13186         * doc/posix-headers/termios.texi (termios.h): Update
13187         documentation.
13188         Reported by Daniel P. Berrange.
13189
13190 2010-10-13  Jim Meyering  <meyering@redhat.com>
13191
13192         git-version-gen: don't require that .git/ be in the current dir
13193         * build-aux/git-version-gen: Adjust this script so that it works
13194         when run from any working directory beneath the top-level .git/-
13195         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13196         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13197
13198         test-select: avoid warn_unused_result warnings
13199         * tests/test-select.c: Include "macros.h".
13200         ASSERT that each call to read, write, and pipe succeeds.
13201         While not technically required, also check each "close".
13202         * modules/select-tests (Files): Add tests/macros.h.
13203
13204         test-symlinkat: remove declaration of unused local
13205         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13206
13207         test-inttostr: avoid shadowing warnings
13208         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13209         and use malloc rather than the stack for the same reason as
13210         mentioned in the comment justifying the other allocation.
13211
13212 2010-10-11  Bruno Haible  <bruno@clisp.org>
13213
13214         stdlib: Allow multiple gnulib generated replacements to coexist.
13215         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13216         Reported by Sam Steingold <sds@gnu.org>.
13217
13218 2010-10-11  Jim Meyering  <meyering@redhat.com>
13219
13220         fix a documentation typo
13221         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13222
13223 2010-10-11  Eric Blake  <eblake@redhat.com>
13224
13225         futimens: work around Solaris 11 bug
13226         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13227         * tests/test-futimens.h (test_futimens): Enhance, rather than
13228         weaken test.
13229         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13230
13231 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13232
13233         Indentation.
13234         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13235         higher-level operators more to the left.
13236
13237 2010-10-11  Jim Meyering  <meyering@redhat.com>
13238
13239         test-futimens: avoid unwarranted test failure on Solaris 5.11
13240         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
13241         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
13242         because it tries to dereference the NULL name argument.
13243
13244 2010-10-11  Bruno Haible  <bruno@clisp.org>
13245
13246         Indentation.
13247         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
13248         indentation.
13249
13250 2010-10-11  Jim Meyering  <meyering@redhat.com>
13251
13252         spawn.in.h: make indentation consistent with parentheses
13253         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
13254         Make indentation consistent with parentheses.
13255
13256 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
13257
13258         Fix mismatched parens in previous commit
13259         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
13260         parens.
13261
13262 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13263
13264         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
13265
13266         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
13267         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
13268         * lib/malloca.c: Include "verify.h".
13269         (verify1): Remove, replacing with a verify call.
13270         * lib/relocwrapper.c (verify1): Likewise.
13271         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
13272         Likewise.
13273         * modules/malloca (Depends-on): Add 'verify'.
13274         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
13275         * modules/vasnprintf (Depends-on): Add 'verify'.
13276         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13277         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13278         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13279         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13280         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13281         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13282         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13283
13284         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
13285
13286         Formerly the style was sometimes 2*X - 1, because the C standard
13287         was wrongly thought to disallow ?: in integral constant expressions.
13288         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
13289         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
13290         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13291         * lib/stdint.in.h (_verify_intmax_size): Likewise.
13292         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
13293         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
13294         verify that time_t cannot be floating.
13295
13296 2010-10-08  Eric Blake  <eblake@redhat.com>
13297
13298         time: enforce recent POSIX ruling that time_t is integral
13299         * lib/time.in.h (__time_t_must_be_integral): Detect any
13300         problematic systems, allowing the rest of gnulib to assume POSIX.
13301
13302 2010-10-08  Jim Meyering  <meyering@redhat.com>
13303
13304         fdopendir: fix a bug on systems lacking openat and /proc support
13305         OpenBSD 4.7 is one such system.  The most noticeable effect was
13306         failure of any application making nontrivial use of fts: rm, du,
13307         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
13308           ./rm: traversal failed: `a': Bad file descriptor
13309         Debugging that, you see that even though FD 6 was closed just
13310         prior to the opendir call in fd_clone_opendir, its resulting
13311         dir->dd_fd was 8, rather than the expected value of 6:
13312
13313         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
13314         93                close (fd);
13315         (gdb) n
13316         94                dir = fd_clone_opendir (dupfd);
13317         (gdb) n
13318         95                saved_errno = errno;
13319         (gdb) p dir->dd_fd
13320         $11 = 8
13321
13322         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
13323         The problem is that on OpenBSD, fd_clone_opendir has to resort
13324         to using the old-style save/restore CWD mechanism, due to its
13325         lack of openat/proc support, and *that* would steal the FD (6)
13326         that opendir was supposed to use.
13327
13328         The fix is to squirrel away the desired FD so that save_cwd uses a
13329         different one, and then free the dest FD right before calling opendir.
13330         That guarantees opendir will use the required file descriptor.
13331
13332         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13333
13334 2010-10-08  Bruno Haible  <bruno@clisp.org>
13335
13336         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13337         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13338
13339 2010-10-08  Bruno Haible  <bruno@clisp.org>
13340
13341         nanosleep: Make replacement POSIX compliant.
13342         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13343         is out of range.
13344         Reported by Jim Meyering.
13345
13346 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13347
13348         bootstrap: add hook for altering gnulib.mk, for Bison
13349         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13350         the Bison bootstrapping process can rewrite file names and variables
13351         in this file before later parts of 'bootstrap' use the file.
13352         Bison wants to include lib/gnulib.mk from the top-level makefile,
13353         so it needs the file names in this file to be relative to the top
13354         level, not relative to lib; plus it needs variable names to be
13355         rewritten.
13356         (slurp): Use the new function.
13357
13358         bootstrap: reformat for readability
13359         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13360
13361 2010-10-08  Eric Blake  <eblake@redhat.com>
13362
13363         docs: update cygwin progress
13364         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13365         1.7.7.
13366         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13367         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13368         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13369         * doc/posix-functions/carg.texi (carg): Likewise.
13370         * doc/posix-functions/cargf.texi (cargf): Likewise.
13371         * doc/posix-functions/casin.texi (casin): Likewise.
13372         * doc/posix-functions/casinf.texi (casinf): Likewise.
13373         * doc/posix-functions/casinh.texi (casinh): Likewise.
13374         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13375         * doc/posix-functions/catan.texi (catan): Likewise.
13376         * doc/posix-functions/catanf.texi (catanf): Likewise.
13377         * doc/posix-functions/catanh.texi (catanh): Likewise.
13378         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13379         * doc/posix-functions/ccos.texi (ccos): Likewise.
13380         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13381         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13382         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13383         * doc/posix-functions/cexp.texi (cexp): Likewise.
13384         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13385         * doc/posix-functions/cimag.texi (cimag): Likewise.
13386         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13387         * doc/posix-functions/clog.texi (clog): Likewise.
13388         * doc/posix-functions/clogf.texi (clogf): Likewise.
13389         * doc/posix-functions/conj.texi (conj): Likewise.
13390         * doc/posix-functions/conjf.texi (conjf): Likewise.
13391         * doc/posix-functions/cpow.texi (cpow): Likewise.
13392         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13393         * doc/posix-functions/cproj.texi (cproj): Likewise.
13394         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13395         * doc/posix-functions/creal.texi (creal): Likewise.
13396         * doc/posix-functions/crealf.texi (crealf): Likewise.
13397         * doc/posix-functions/csin.texi (csin): Likewise.
13398         * doc/posix-functions/csinf.texi (csinf): Likewise.
13399         * doc/posix-functions/csinh.texi (csinh): Likewise.
13400         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13401         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
13402         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
13403         * doc/posix-functions/ctan.texi (ctan): Likewise.
13404         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
13405         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
13406         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
13407         * doc/posix-headers/complex.texi (complex.h): Likewise.
13408
13409 2010-10-07  Jim Meyering  <meyering@redhat.com>
13410
13411         parse-datetime: avoid compilation failure on OpenBSD 4.7
13412         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
13413         This works around a compilation failure on OpenBSD 4.7:
13414         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
13415
13416 2010-10-07  Eric Blake  <eblake@redhat.com>
13417
13418         docs: update cygwin progress
13419         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
13420         1.7.6.
13421         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13422         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
13423         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
13424         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
13425         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
13426         Likewise.
13427         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
13428         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
13429         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
13430         Likewise.
13431         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
13432         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
13433         Likewise.
13434         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
13435         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
13436         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
13437         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
13438         Likewise.
13439         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
13440         Likewise.
13441         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
13442
13443         docs: update parse-datetime history
13444         * doc/parse-datetime.texi (Authors of parse_datetime): Better
13445         documentation of this function's history and alternatives.
13446
13447         cygwin: use more robust version check
13448         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
13449         exclude an eventual cygwin 1.9.1.
13450         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13451         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13452         (gl_FUNC_STRCASESTR): Likewise.
13453         Reported by Bruno Haible.
13454
13455 2010-10-06  Bruno Haible  <bruno@clisp.org>
13456
13457         string, sys_select: Avoid #including large headers unless necessary.
13458         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
13459         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
13460         OSF/1, BeOS, Haiku.
13461         Reported by Jim Meyering.
13462
13463 2010-10-05  Eric Blake  <eblake@redhat.com>
13464
13465         memmem, strstr, strcasestr: fix bug with long periodic needle
13466         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
13467         periodic needle having false positive.
13468         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
13469         and cygwin 1.7.7.
13470         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
13471         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13472         (gl_FUNC_STRCASESTR): Likewise.
13473         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13474         * tests/test-memmem.c (main): Expose the bug.
13475         * tests/test-strcasestr.c (main): Likewise.
13476         * tests/test-strstr.c (main): Likewise.
13477         * tests/test-c-strcasestr.c (main): Likewise.
13478         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
13479         * doc/posix-functions/strstr.texi (strstr): Likewise.
13480         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13481         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
13482
13483 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13484
13485         parse-datetime: do some more renaming
13486         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
13487         parse_datetime, not get_date.  Mention the renaming.
13488         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
13489         in comments.
13490         * m4/bison.m4: Likewise.
13491
13492 2010-10-05  Eric Blake  <eblake@redhat.com>
13493
13494         parse-datetime: better name than get_date
13495         * NEWS: Reword the deprecation notice.
13496         * modules/get_date: Rename to modules/parse-datetime.
13497         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
13498         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
13499         * lib/get_date.y: Rename to lib/parse-datetime.y.
13500         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
13501         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
13502         * doc/getdate.texi: Provide fallback wrapper.
13503         * lib/getdate.h: Move guts, and wrap...
13504         * lib/parse-datetime.h: ...new file.
13505         * lib/parse-datetime.y (get_date): Rename...
13506         (parse_datetime): ...to this.
13507         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
13508         (gl_PARSE_DATETIME): ...to this.
13509         * doc/posix-functions/getdate.texi (get_date): Provide fallback
13510         documentation.
13511         * modules/getdate (Files): Provide fallback docs and header.
13512         (Notice, Depends-on): Update references.
13513         * tests/test-parse-datetime.c: Likewise.
13514         * DEPENDENCIES: Likewise.
13515         * MODULES.html.sh (Date and time <time.h>): Likewise.
13516         * doc/parse-datetime.texi (Date input formats)
13517         (Authors of parse_datetime): Likewise.
13518         * modules/parse-datetime (Files, configure.ac, Makefile.am)
13519         (Include): Likewise.
13520         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
13521         * gnulib-tool: Likewise.
13522         * m4/bison.m4 (gl_BISON): Likewise.
13523         Suggested by Bruno Haible.
13524
13525 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13526
13527         more ports to Solaris tr, which needs [] around ranges
13528         * gnulib-tool: Solaris tr needs [] around ranges.
13529         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13530         * tests/test-pipe-filter-gi1.c (main): Likewise.
13531         * tests/test-pipe-filter-ii1.c (main): Likewise.
13532
13533 2010-10-05  Eric Blake  <eblake@redhat.com>
13534
13535         bootstrap: fix Solaris regression
13536         * build-aux/bootstrap (check_versions): Solaris tr still needs []
13537         around ranges.
13538         Reported by Pádraig Brady.
13539
13540         bootstrap: work with pkg-config
13541         * build-aux/bootstrap (check_versions): Also transliterate - in
13542         prerequisite name.
13543         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
13544         prerequisites that were already found, to avoid confusion.
13545         Reported by Justin Clift.
13546
13547         faccessat: remove unused wrappers
13548         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
13549         presence of these wrappers dragged in -lgen on Solaris.
13550         Reported by Clemens Brogi; fix suggested by Paul Eggert.
13551
13552 2010-10-05  Jim Meyering  <meyering@redhat.com>
13553
13554         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
13555         * Makefile (sc_pragma_columns): New syntax-check rule.
13556
13557 2010-10-04  Bruno Haible  <bruno@clisp.org>
13558
13559         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
13560         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
13561         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
13562         Reported by Bruce Korb and Eric Blake.
13563
13564 2010-10-04  Bruno Haible  <bruno@clisp.org>
13565
13566         threadlib: Make option --with-libpth-prefix work.
13567         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
13568         use $LIBPTH, not just -lpth.
13569
13570 2010-10-04  Bruno Haible  <bruno@clisp.org>
13571
13572         Avoid line length limitation from HP NonStop system header files.
13573         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
13574         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
13575         * lib/ctype.in.h: Likewise.
13576         * lib/dirent.in.h: Likewise.
13577         * lib/errno.in.h: Likewise.
13578         * lib/fcntl.in.h: Likewise.
13579         * lib/float.in.h: Likewise.
13580         * lib/getopt.in.h: Likewise.
13581         * lib/iconv.in.h: Likewise.
13582         * lib/inttypes.in.h: Likewise.
13583         * lib/langinfo.in.h: Likewise.
13584         * lib/locale.in.h: Likewise.
13585         * lib/math.in.h: Likewise.
13586         * lib/netdb.in.h: Likewise.
13587         * lib/netinet_in.in.h: Likewise.
13588         * lib/poll.in.h: Likewise.
13589         * lib/pthread.in.h: Likewise.
13590         * lib/pty.in.h: Likewise.
13591         * lib/sched.in.h: Likewise.
13592         * lib/se-selinux.in.h: Likewise.
13593         * lib/search.in.h: Likewise.
13594         * lib/signal.in.h: Likewise.
13595         * lib/spawn.in.h: Likewise.
13596         * lib/stdarg.in.h: Likewise.
13597         * lib/stddef.in.h: Likewise.
13598         * lib/stdint.in.h: Likewise.
13599         * lib/stdio.in.h: Likewise.
13600         * lib/stdlib.in.h: Likewise.
13601         * lib/string.in.h: Likewise.
13602         * lib/strings.in.h: Likewise.
13603         * lib/sys_file.in.h: Likewise.
13604         * lib/sys_ioctl.in.h: Likewise.
13605         * lib/sys_select.in.h: Likewise.
13606         * lib/sys_socket.in.h: Likewise.
13607         * lib/sys_stat.in.h: Likewise.
13608         * lib/sys_time.in.h: Likewise.
13609         * lib/sys_times.in.h: Likewise.
13610         * lib/sys_utsname.in.h: Likewise.
13611         * lib/sys_wait.in.h: Likewise.
13612         * lib/sysexits.in.h: Likewise.
13613         * lib/termios.in.h: Likewise.
13614         * lib/time.in.h: Likewise.
13615         * lib/unistd.in.h: Likewise.
13616         * lib/wchar.in.h: Likewise.
13617         * lib/wctype.in.h: Likewise.
13618         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
13619         * modules/ctype (Makefile.am): Likewise.
13620         * modules/dirent (Makefile.am): Likewise.
13621         * modules/errno (Makefile.am): Likewise.
13622         * modules/fcntl-h (Makefile.am): Likewise.
13623         * modules/float (Makefile.am): Likewise.
13624         * modules/getopt-posix (Makefile.am): Likewise.
13625         * modules/iconv-h (Makefile.am): Likewise.
13626         * modules/inttypes (Makefile.am): Likewise.
13627         * modules/langinfo (Makefile.am): Likewise.
13628         * modules/locale (Makefile.am): Likewise.
13629         * modules/math (Makefile.am): Likewise.
13630         * modules/netdb (Makefile.am): Likewise.
13631         * modules/netinet_in (Makefile.am): Likewise.
13632         * modules/poll-h (Makefile.am): Likewise.
13633         * modules/pthread (Makefile.am): Likewise.
13634         * modules/pty (Makefile.am): Likewise.
13635         * modules/sched (Makefile.am): Likewise.
13636         * modules/search (Makefile.am): Likewise.
13637         * modules/selinux-h (Makefile.am): Likewise.
13638         * modules/signal (Makefile.am): Likewise.
13639         * modules/spawn (Makefile.am): Likewise.
13640         * modules/stdarg (Makefile.am): Likewise.
13641         * modules/stddef (Makefile.am): Likewise.
13642         * modules/stdint (Makefile.am): Likewise.
13643         * modules/stdio (Makefile.am): Likewise.
13644         * modules/stdlib (Makefile.am): Likewise.
13645         * modules/string (Makefile.am): Likewise.
13646         * modules/strings (Makefile.am): Likewise.
13647         * modules/sys_file (Makefile.am): Likewise.
13648         * modules/sys_ioctl (Makefile.am): Likewise.
13649         * modules/sys_select (Makefile.am): Likewise.
13650         * modules/sys_socket (Makefile.am): Likewise.
13651         * modules/sys_stat (Makefile.am): Likewise.
13652         * modules/sys_time (Makefile.am): Likewise.
13653         * modules/sys_times (Makefile.am): Likewise.
13654         * modules/sys_utsname (Makefile.am): Likewise.
13655         * modules/sys_wait (Makefile.am): Likewise.
13656         * modules/sysexits (Makefile.am): Likewise.
13657         * modules/termios (Makefile.am): Likewise.
13658         * modules/time (Makefile.am): Likewise.
13659         * modules/unistd (Makefile.am): Likewise.
13660         * modules/wchar (Makefile.am): Likewise.
13661         * modules/wctype (Makefile.am): Likewise.
13662
13663 2010-10-04  Bruno Haible  <bruno@clisp.org>
13664
13665         read-file tests: Avoid a test failure on NonStop Kernel.
13666         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
13667         a regular file.
13668         Reported by Joachim Schmitz <schmitz@hp.com>.
13669
13670 2010-10-03  Bruno Haible  <bruno@clisp.org>
13671
13672         gnulib-tool: Fixes for --create-testdir with --libtool.
13673         * gnulib-tool (func_get_automake_snippet): Don't augment
13674         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
13675         an executable.
13676         (func_create_testdir): Handle module 'alloca' like func_import.
13677         Reported by Bruce Korb <bruce.korb@gmail.com>.
13678
13679 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
13680
13681         Avoid some lines longer than 80 characters.
13682         * lib/stdint.in.h: Break long comment lines.
13683         * lib/math.in.h: Likewise.
13684         (_GL_NUM_UINT_WORDS): New macro, for readability.
13685         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
13686         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
13687         * lib/stdlib.in.h: Likewise.
13688         * lib/spawn.in.h: Likewise.
13689         * lib/sys_socket.in.h: Update an URL.
13690         * lib/sys_stat.in.h: Break long line.
13691
13692 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
13693
13694         Improve pmccabe2html.
13695         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
13696         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
13697         when the sources change. Remove the line in the HTML about "Used
13698         ranges" (which implied that there might be other unused ranges),
13699         rename "Resume" to "Summary" (easier to understand for more users).
13700         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
13701         styles, and some unnecessary blank lines.
13702
13703 2010-10-03  Bruno Haible  <bruno@clisp.org>
13704             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13705
13706         acl: Add support for ACLs on NonStop Kernel.
13707         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
13708         Check whether the function aclsort() exists.
13709         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
13710         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
13711         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13712         (acl_nontrivial [HAVE_ACLSORT]: New function.
13713         (file_has_acl): Implement for NonStop Kernel.
13714         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13715         (qset_acl): Implement for NonStop Kernel.
13716         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
13717         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13718         (main): Implement for NonStop Kernel.
13719         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
13720         Kernel. Handle this flavor.
13721         * tests/test-set-mode-acl.sh: Likewise.
13722         * tests/test-copy-acl.sh: Likewise.
13723         * tests/test-copy-file.sh: Likewise.
13724
13725 2010-10-03  Bruno Haible  <bruno@clisp.org>
13726
13727         Info about ACLs on NonStop Kernel.
13728         * doc/acl-resources.txt: Add info about NonStop Kernel.
13729         References by Joachim Schmitz <schmitz@hp.com>.
13730
13731 2010-10-02  Bruno Haible  <bruno@clisp.org>
13732
13733         Define missing EDQUOT on NonStop Kernel.
13734         * lib/errno.in.h (EDQUOT): Assign a value if missing.
13735         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
13736         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
13737         missing.
13738         * doc/posix-headers/errno.texi: Mention the NSK bug.
13739         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
13740         Reported by Joachim Schmitz <schmitz@hp.com>.
13741
13742 2010-10-02  Bruno Haible  <bruno@clisp.org>
13743
13744         Update doc for POSIX:2008.
13745         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
13746         Update URL of POSIX specification.
13747
13748 2010-10-02  Bruno Haible  <bruno@clisp.org>
13749
13750         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
13751         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
13752         from gnulib, not from Automake.
13753
13754 2010-10-02  Bruno Haible  <bruno@clisp.org>
13755
13756         New module 'system-posix'.
13757         * modules/system-posix: New file.
13758         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
13759         module is present.
13760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
13761         GNULIB_SYSTEM_POSIX.
13762         * modules/stdlib (Depends-on): Remove sys_wait.
13763         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
13764         * doc/posix-functions/system.texi: Mention the new module.
13765         * doc/posix-headers/stdlib.texi: Likewise.
13766         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
13767         define test_sys_wait_macros to a no-op.
13768         Reported by Sam Steingold <sds@gnu.org>.
13769
13770 2010-09-30  Bruno Haible  <bruno@clisp.org>
13771
13772         More renaming from 'getdate' to 'get_date'.
13773         * doc/get_date.texi: Renamed from doc/getdate.texi.
13774         * modules/get_date (Files): Update.
13775         * MODULES.html.sh (Date and time <time.h>): Update.
13776         * DEPENDENCIES: Update.
13777         * gnulib-tool: Update comment.
13778         * m4/bison.m4 (gl_BISON): Likewise.
13779         * m4/get_date.m4 (gl_GET_DATE): Likewise.
13780
13781 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
13782
13783         bootstrap: support ACLOCAL_FLAGS during aclocal
13784         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
13785         can add additional -I dir for third-party .m4 files.
13786
13787 2010-09-30  Eric Blake  <eblake@redhat.com>
13788
13789         bootstrap: use glibtoolize on MacOS
13790         * build-aux/bootstrap (check_versions): Convert libtool into
13791         libtoolize.
13792         (tool search): Move libtool check earlier, and look for
13793         glibtoolize for MacOS.
13794         (gnulib_tool_options): Auto-add --libtool when appropriate.
13795         Reported by Justin Clift.
13796
13797         poll: fix typo that broke test on MacOS
13798         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
13799         Reported by Justin Clift.
13800
13801         getdate: rename to get_date
13802         Note: getdate.h is not renamed, to minimize client impact.
13803         * modules/getdate: Mark obsolete.  Move old contents...
13804         * modules/get_date: ...to new module name.
13805         * modules/getdate-tests: Move...
13806         * modules/get_date-tests: ...here.
13807         * m4/getdate.m4: Move...
13808         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
13809         * lib/getdate.y: Move...
13810         * lib/get_date.y: ...here.
13811         * tests/test-getdate.c: Move...
13812         * tests/test-get_date.c: ...here.
13813         * doc/posix-functions/getdate.texi (getdate): Update name.
13814         * NEWS: Mention the change.
13815
13816 2010-09-29  Bruno Haible  <bruno@clisp.org>
13817
13818         Separate the module 'waitpid' from the module 'sys_wait'.
13819         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
13820         present.
13821         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
13822         gl_MODULE_INDICATOR_FOR_TESTS.
13823         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
13824         * modules/sys_wait (Depends-on): Remove waitpid.
13825         (Makefile.am): Substitute GNULIB_WAITPID.
13826         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
13827         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
13828         signature only if the 'waitpid' module is present.
13829         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
13830         * NEWS: Mention the change.
13831         * modules/grantpt (Depends-on): Add waitpid.
13832         * modules/wait-process (Depends-on): Likewise.
13833
13834 2010-09-29  Bruno Haible  <bruno@clisp.org>
13835
13836         More tests for module 'sys_wait'.
13837         * modules/sys_wait-c++-tests: New file.
13838         * tests/test-sys_wait-c++.cc: New file.
13839         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
13840         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13841
13842 2010-09-29  Bruno Haible  <bruno@clisp.org>
13843
13844         New module 'waitpid'.
13845         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
13846         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
13847         Don't include <process.h>.
13848         (waitpid): Declare only, using modern idiom.
13849         * m4/waitpid.m4: New file.
13850         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
13851         * modules/waitpid: New file.
13852         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
13853         (Makefile.am): Update.
13854         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13855
13856 2010-09-28  Bruno Haible  <bruno@clisp.org>
13857
13858         poll: Assume ANSI C.
13859         * lib/poll.c (poll): Use an ANSI C declaration.
13860
13861 2010-09-28  Bruno Haible  <bruno@clisp.org>
13862
13863         poll-h: Create poll.h on all platforms.
13864         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
13865         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
13866         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
13867         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
13868         (gl_REPLACE_POLL_H): Don't set POLL_H.
13869         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
13870         * modules/poll-h (Depends-on): Add include_next.
13871         (Makefile.am): Create poll.h unconditionally. Substitute also
13872         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
13873
13874 2010-09-28  Bruno Haible  <bruno@clisp.org>
13875
13876         Tests for module 'poll-h'.
13877         * modules/poll-h-c++-tests: New file.
13878         * tests/test-poll-h-c++.cc: New file.
13879
13880         Tests for module 'poll-h'.
13881         * modules/poll-h-tests: New file.
13882         * tests/test-poll-h.c: New file.
13883
13884 2010-09-28  Bruno Haible  <bruno@clisp.org>
13885
13886         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
13887         * modules/poll-h (Depends-on): Add 'extensions'.
13888
13889 2010-09-28  Bruno Haible  <bruno@clisp.org>
13890
13891         New module 'poll-h'.
13892         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
13893         (poll): Use modern idiom.
13894         * modules/poll-h: New file.
13895         * modules/poll (Files): Remove lib/poll.in.h.
13896         (Depends-on): Add poll-h.
13897         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
13898         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
13899         * m4/poll_h.m4: New file.
13900         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
13901         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
13902         and invoke gl_REPLACE_POLL_H.
13903         * lib/poll.c: Use common idiom.
13904         * tests/test-poll.c: Likewise.
13905         * doc/posix-headers/poll.texi: Mention the poll-h module.
13906         Suggested by Eric Blake.
13907
13908 2010-09-26  Bruno Haible  <bruno@clisp.org>
13909
13910         sys_wait: Implement WSTOPSIG.
13911         * lib/sys_wait.in.h (WSTOPSIG): New macro.
13912         Reported by Simon Josefsson.
13913
13914 2010-09-26  Simon Josefsson  <simon@josefsson.org>
13915
13916         stdlib, sys_wait: Avoid compilation error on mingw.
13917         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
13918
13919 2010-09-26  Bruno Haible  <bruno@clisp.org>
13920
13921         stdlib tests: Avoid code duplication.
13922         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
13923         * modules/sys_wait-tests (Files): Likewise.
13924         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
13925         * tests/test-stdlib.c: Include test-sys_wait.h.
13926         (main): Invoke test_sys_wait_macros.
13927         * tests/test-sys_wait.c: Include test-sys_wait.h.
13928         (main): Invoke test_sys_wait_macros.
13929
13930 2010-09-25  Simon Josefsson  <simon@josefsson.org>
13931
13932         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
13933         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
13934         sure Windows sockets are working before calling getaddrinfo.
13935         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
13936         * doc/gnulib.texi (Windows sockets): Fix typo.
13937
13938 2010-09-25  Bruno Haible  <bruno@clisp.org>
13939
13940         Tests for module 'regex-quote'.
13941         * modules/regex-quote-tests: New file.
13942         * tests/test-regex-quote.c: New file.
13943
13944         New module 'regex-quote'.
13945         * lib/regex-quote.h: New file.
13946         * lib/regex-quote.c: New file.
13947         * modules/regex-quote: New file.
13948         Suggested by Reuben Thomas <rrt@sc3d.org>.
13949
13950 2010-09-24  Bruno Haible  <bruno@clisp.org>
13951
13952         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
13953         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
13954
13955 2010-09-23  Bruno Haible  <bruno@clisp.org>
13956
13957         setenv: Relax license.
13958         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
13959         Blake.
13960         Requested by Eric Blake.
13961
13962 2010-09-22  Bruno Haible  <bruno@clisp.org>
13963
13964         termios: Relax license.
13965         * modules/termios (License): Change to LGPLv2+.
13966         Requested by Eric Blake.
13967
13968 2010-09-22  Bruno Haible  <bruno@clisp.org>
13969
13970         threadlib: Allow the package to change the default to 'no'.
13971         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
13972         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
13973         Reported by Paul Eggert.
13974
13975 2010-09-22  Pádraig Brady  <P@draigbrady.com>
13976             Bruno Haible  <bruno@clisp.org>
13977
13978         Fix endless loop in mbmemcasecoll.
13979         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
13980         byte.
13981         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
13982
13983 2010-09-22  Bruno Haible  <bruno@clisp.org>
13984
13985         Tests for module 'memcoll'.
13986         * modules/memcoll-tests: New file.
13987         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
13988
13989         memcoll, xmemcoll: Clarify size vs. length.
13990         * modules/memcoll.c (memcoll0): Clarify specification.
13991         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
13992         passed to collate_error.
13993
13994 2010-09-22  Bruno Haible  <bruno@clisp.org>
13995
13996         Tests for module 'memcasecmp'.
13997         * modules/memcasecmp-tests: New file.
13998         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
13999
14000 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14001
14002         * lib/pthread.in.h: Add split double-inclusion guard, and include
14003         system <pthread.h> if there is one.  Use @@-style as in other
14004         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
14005         pthread.h doesn't.
14006         (pthread_mutexattr_destroy, pthread_mutexattr_init):
14007         (pthread_mutexattr_settype, pthread_mutex_trylock):
14008         New static inline functions, if there's no system <pthread.h>.
14009         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
14010         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
14011         Approximate with mutexes if the system lacks spinlocks, as in
14012         MacOS.
14013         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
14014         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
14015         @@-style.  Check for spinlocks separately.
14016         (gl_PTHREAD_DEFAULTS): New macro.
14017         * modules/pthread: Redo to use a more typical style for in.h files.
14018
14019 2010-09-21  Eric Blake  <eblake@redhat.com>
14020
14021         net_if: enhance tests
14022         * tests/test-net_if.c (main): Move signature checks earlier.
14023         Print failures to stderr.
14024         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14025         Document the bug that we do not yet fix.
14026
14027 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14028
14029         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14030         about gnulib, not GSS.
14031
14032 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14033
14034         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14035         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14036         for Emacs.
14037         * build-aux/pmccabe2html: Make Makefile.am example code more
14038         cut-and-paste friendly.
14039
14040 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14041
14042         * tests/test-net_if.c: New file.
14043         * modules/net_if-tests: New file.
14044
14045 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14046
14047         pthread: add pthread_spin_destroy
14048         * lib/pthread.in.h (pthread_spin_destroy): New function.
14049
14050 2010-09-19  Bruno Haible  <bruno@clisp.org>
14051
14052         gnulib-tool: Fix --help output.
14053         * gnulib-tool (func_usage): Fix help message.
14054         Reported by Reuben Thomas <rrt@sc3d.org>.
14055
14056 2010-09-18  Jim Meyering  <meyering@redhat.com>
14057
14058         maint.mk: avoid unexpanded \n in two diagnostics
14059         * top/maint.mk (sc_prohibit_always_true_header_tests):
14060         Don't use a literal \n in a halt=... assignment.  It would not be
14061         expanded, and the two \n bytes would appear in the diagnostic output
14062         rather than the desired newline.  Use halt=$$(printf ... instead.
14063         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14064
14065 2010-09-18  Bruno Haible  <bruno@clisp.org>
14066
14067         netinet_in: Doc tweak.
14068         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14069         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14070
14071 2010-09-18  Jim Meyering  <meyering@redhat.com>
14072
14073         init.sh: correct an outdated comment
14074         * tests/init.sh (create_exe_shims_):  s/function/alias/
14075
14076         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14077         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14078         a file named "*.exe" is removed between the glob expansion and the
14079         processing of that oddly named file.
14080
14081 2010-09-17  Eric Blake  <eblake@redhat.com>
14082
14083         mirbsd: add some more support
14084         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14085         in BSD family.
14086         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14087         devices as OpenBSD.
14088         * m4/host-os.m4 (mirbsd): Add MirBSD.
14089
14090         tests: fix unportable assumption on sys/wait.h
14091         * tests/test-sys_wait.c (main): Relax test.
14092         * tests/test-stdlib.c (main): Likewise.
14093
14094         init.sh: accomodate directory with no .exes
14095         * tests/init.sh: Accomodate directory containing only scripts.
14096
14097         tests: avoid compiler warning
14098         * tests/test-stdlib.c (main): Use the variable.
14099
14100         fdutimens, fdutimensat: update signature, again
14101         * lib/utimens.h (gl_futimens): Delete, and move signature...
14102         (fdutimens): ...here.
14103         (fdutimensat): Rearrange signature.
14104         (lutimensat): Rename variable for clarity.
14105         * lib/fdutimensat.c (fdutimensat): Update signature.
14106         * lib/utimens.c (fdutimens): Likewise.
14107         (gl_futimens): Delete.
14108         (utimens, lutimens): Update callers.
14109         * lib/futimens.c (futimens): Likewise.
14110         * tests/test-fdutimensat.c: Likewise.
14111         * tests/test-utimens.c: Likewise.
14112         * tests/test-futimens.h: Update comment.
14113         * NEWS: Mention this.
14114         Suggested by Paul Eggert.
14115
14116 2010-09-17  Bruno Haible  <bruno@clisp.org>
14117
14118         Take over the maintenance of some older macros from Autoconf.
14119         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14120         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14121         GNU Autoconf.
14122         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14123         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14124
14125 2010-09-17  Eric Blake  <eblake@redhat.com>
14126
14127         fdutimensat: drop atflag validation
14128         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14129         with valid fd, to close a race scenario where futimens is
14130         unsupported and FILE was replaced by a symlink.
14131         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14132         accordingly.
14133         Suggested by Paul Eggert.
14134
14135 2010-09-16  Bruno Haible  <bruno@clisp.org>
14136
14137         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14138         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14139
14140 2010-09-16  Bruno Haible  <bruno@clisp.org>
14141
14142         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14143         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14144         login_tty exists.
14145         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14146
14147 2010-09-16  Bruno Haible  <bruno@clisp.org>
14148
14149         login_tty: Make the replacement code work on BSD systems.
14150         * lib/login_tty.c: Include <sys/ioctl.h>.
14151         (login_tty): Use ioctl TIOCSCTTY when available.
14152         * modules/login_tty (Depends-on): Add sys_ioctl.
14153         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14154
14155 2010-09-16  Bruno Haible  <bruno@clisp.org>
14156
14157         login_tty: Stricter unit test.
14158         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14159         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14160         and tcgetsid() after login_tty.
14161         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14162
14163 2010-09-16  Bruno Haible  <bruno@clisp.org>
14164
14165         New module 'tcgetsid'.
14166         * lib/tcgetsid.c: New file.
14167         * m4/tcgetsid.m4: New file.
14168         * modules/tcgetsid: New file.
14169         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14170         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14171         GNULIB_TCGETSID, HAVE_TCGETSID.
14172         * lib/termios.in.h: Include <sys/types.h>.
14173         (tcgetsid): New declaration.
14174         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14175         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14176         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14177         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14178
14179 2010-09-16  Bruno Haible  <bruno@clisp.org>
14180
14181         Tests for module 'termios'.
14182         * modules/termios-c++-tests: New file.
14183         * modules/termios-tests: New file.
14184         * tests/test-termios-c++.cc: New file.
14185         * tests/test-termios.c: New file.
14186
14187         New module 'termios'.
14188         * modules/termios: New file.
14189         * lib/termios.in.h: New file.
14190         * m4/termios_h.m4: New file.
14191         * doc/posix-headers/termios.texi: Mention the new module.
14192
14193 2010-09-16  Eric Blake  <eblake@redhat.com>
14194
14195         fdutimensat: add an atflag parameter
14196         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14197         * lib/utimens.h (fdutimensat): Update prototype.
14198         * tests/test-fdutimensat.c: Adjust test to match.
14199         * NEWS: Document the change.
14200         Suggested by Paul Eggert.
14201
14202 2010-09-16  Bruno Haible  <bruno@clisp.org>
14203
14204         Fix typos in comments.
14205         * lib/striconveh.h: Fix typo in comment.
14206         * lib/login_tty.c (login_tty): Likewise.
14207
14208 2010-09-15  Bruno Haible  <bruno@clisp.org>
14209
14210         stdlib: clarify MirBSD WEXITSTATUS bug
14211         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14212         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14213
14214 2010-09-15  Eric Blake  <eblake@redhat.com>
14215
14216         stdlib: work around MirBSD WEXITSTATUS bug
14217         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14218         * modules/stdlib (Depends-on): Add sys_wait.
14219         * tests/test-sys_wait.c (main): Enhance test.
14220         * tests/test-stdlib.c (main): Likewise.
14221         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14222
14223         docs: mention MacOS issue with WEXITSTATUS(constant)
14224         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14225         issue.
14226         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14227
14228         strnlen: add tests
14229         * modules/strnlen-tests: New file.
14230         * tests/test-strnlen.c: Likewise.
14231
14232 2010-09-14  Bruno Haible  <bruno@clisp.org>
14233
14234         unistr/base: Avoid link errors when module 'libunistring' is also used.
14235         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14236         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
14237         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
14238         Declare also when HAVE_LIBUNISTRING is set.
14239         Reported by Pádraig Brady <P@draigbrady.com>.
14240
14241 2010-09-14  Eric Blake  <eblake@redhat.com>
14242
14243         test-rawmemchr: make more robust
14244         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
14245         (Depends-on, configure.ac): Add needed prerequisites to use it.
14246         * modules/memchr-tests (Files, Depends-on, configure.ac):
14247         Likewise, to avoid implicit reliance on memchr module prereqs.
14248         * tests/test-memchr.c (main): Ensure proper masking.
14249         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
14250         reads.
14251
14252         memchr: detect glibc Alpha bug
14253         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
14254         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
14255         Alpha.
14256         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
14257         * tests/test-memchr.c (main): Enhance test.
14258         Reported by Nelson H. F. Beebe.
14259
14260 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14261
14262         fts, getcwd, glob: audit for dirfd returning -1
14263         * lib/fts.c (opendir): Remove #define; no longer used.
14264         (opendirat): New arg PDIR_FD.  All callers changed.
14265         (fts_build, _opendir2): Use new opendirat to avoid the need for
14266         dirfd, or for checking whether dirfd returns a negative value.
14267         Don't use opendir; always use openat followed by fdopendir.
14268         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
14269         it.
14270         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
14271         returns -1 here.
14272         * modules/fts (Depends-on): Remove dirfd.
14273         * modules/getcwd (Depends-on): Likewise.
14274
14275 2010-09-13  Eric Blake  <eblake@redhat.com>
14276
14277         float: fix broken MirBSD header
14278         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
14279         * doc/posix-headers/float.texi (float.h): Document it.
14280
14281 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14282
14283         fts: use O_NOFOLLOW to avoid race condition when opening a directory
14284         * lib/fts.c (opendirat): New arg extra_flags.
14285         (__opendir2): Use it to avoid following symlinks when opening
14286         a directory, if symlinks are not supposed to be followed.  See
14287         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
14288
14289         fdopendir: preserve argument fd before returning
14290         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
14291         (fdopendir_with_dup, fd_clone_opendir): New static functions.
14292         (fdopendir): Use them, arranging for FD to be open to the same
14293         directory that it was when it started.  (It might be temporarily
14294         closed while fdopendir is running, so this not thread- or
14295         signal-safe.)  Be careful to do the right thing even when file
14296         descriptors are scarce and dup fails with errno == EMFILE.  See
14297         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
14298
14299 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
14300
14301         regex: Pass the system regex if its only problem is 32-bit regoff_t.
14302         * NEWS: Document change.
14303         * m4/regex.m4: Disable test for regoff_t size.
14304
14305 2010-09-13  Jim Meyering  <meyering@redhat.com>
14306
14307         fts: don't operate on an invalid file descriptor after failed dup
14308         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
14309         negative file descriptor.
14310
14311 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14312
14313         savedir: add streamsavedir, deprecate fdsavedir
14314         * NEWS: Mention deprecation of fdsavedir.
14315         * lib/savedir.c (streamsavedir): New extern function, whose name
14316         ends in "savedir" to be consistent with the others.  This differs
14317         from savedirstream in that it doesn't close its argument.  The
14318         next version of GNU tar will use this instead of fdsavedir, to
14319         avoid some race conditions and conserve file descriptors.
14320         (savedirstream): Reimplement as a wrapper around streamsavedir.
14321         (fdsavedir): Add a comment deprecating this function.  As far as
14322         I know, only GNU tar used it, and GNU tar doesn't need it any more.
14323         * lib/savedir.h (streamsavedir): New decl.
14324         (fdsavedir): Add a comment deprecating this.
14325
14326 2010-09-10  Bruno Haible  <bruno@clisp.org>
14327
14328         langinfo: Fix last commit.
14329         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14330         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14332
14333 2010-09-10  Bruno Haible  <bruno@clisp.org>
14334
14335         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14336         * lib/progreloc.c (O_EXEC): Define fallback.
14337
14338 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14339
14340         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14341         * NEWS: Document recent changes to fcntl-h.
14342         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14343         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14344         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14345         Similarly for O_SEARCH; this last was already true, but not documented.
14346         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14347         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14348         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14349         Likewise.
14350         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14351         is zero, not whether it is defined.
14352         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14353         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14354         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14355
14356 2010-09-10  Bruno Haible  <bruno@clisp.org>
14357
14358         langinfo, nl_langinfo: Fix for IRIX 5.3.
14359         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14360         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14361         HAVE_LANGINFO_YESEXPR.
14362         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14363         HAVE_LANGINFO_YESEXPR.
14364         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14365         HAVE_LANGINFO_T_FMT_AMPM is 0.
14366         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14367         HAVE_LANGINFO_YESEXPR is 0.
14368         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14369         NOEXPR.
14370         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14371         * doc/posix-functions/nl_langinfo.texi: Likewise.
14372         Reported by Eric Blake.
14373
14374 2010-09-10  Bruno Haible  <bruno@clisp.org>
14375
14376         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14377         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14378         on FreeBSD 8.0 and OpenBSD 4.6.
14379         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14380         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14381         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14382         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14383         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14384         ac_includes_default.
14385         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14386
14387 2010-09-09  Eric Blake  <eblake@redhat.com>
14388
14389         strsignal: work around NetBSD bug
14390         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14391         * lib/string.in.h (includes): Likewise.
14392         * doc/posix-functions/strsignal.texi (strsignal): Document the
14393         bug.
14394         Reported by Nelson H. F. Beebe.
14395
14396         gnulib-tool: work with NetBSD /bin/sh
14397         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14398         (func_get_description, func_get_comment, func_get_status)
14399         (func_get_notice, func_get_applicability, func_get_filelist)
14400         (func_get_dependencies, func_get_autoconf_early_snippet)
14401         (func_get_autoconf_snippet, func_get_automake_snippet)
14402         (func_get_include_directive, func_get_link_directive)
14403         (func_get_license, func_get_maintainer, func_import): Avoid
14404         shell syntax errors from parsing syntax extensions.
14405
14406 2010-09-09  Bruno Haible  <bruno@clisp.org>
14407
14408         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14409         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
14410         a reliable way to determine whether the 'alias' command works.
14411
14412 2010-09-08  Jim Meyering  <meyering@redhat.com>
14413
14414         init.sh: penalize a set-x-impaired shell; don't disqualify it
14415         * tests/init.sh: Too many shells corrupt application stderr when
14416         you set -x, so we can't afford to disqualify them, since at least
14417         on Irix-6.5, that would disqualify all bourne shells.
14418         Instead, use a two-pass approach.
14419         On the first pass, try to find a shell that meets the stricter
14420         condition that set -x does not corrupt stderr.
14421         If no shell meets the stricter condition, retest each candidate
14422         shell, but without that extra condition.  Finally, when
14423         VERBOSE=yes is requested and set -x might cause trouble, simply
14424         issue a warning and refrain from enabling debug output.
14425
14426 2010-09-08  Eric Blake  <eblake@redhat.com>
14427
14428         unsetenv: fix OpenBSD bug
14429         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
14430         * doc/posix-functions/unsetenv.texi (unsetenv): Update
14431         documentation.
14432         Reported by Jim Meyering.
14433
14434         strtod: work around IRIX 6.5 bug
14435         * lib/strtod.c (strtod): Reparse number on shorter string if
14436         exponent parse was invalid.
14437         * tests/test-strtod.c (main): Add check for "0x1p 2".
14438         Reported by Tom G. Christensen.
14439
14440         getopt: optimize previous patch
14441         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
14442         empty variable.  Speed up awk script.
14443         Reported by Paolo Bonzini.
14444
14445 2010-09-08  Jim Meyering  <meyering@redhat.com>
14446
14447         test.sh: disqualify shells for which set -x corrupts stderr
14448         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
14449         and OpenBSD 4.7.  They make it so with "set -x", environment settings
14450         appear in stderr output.  For example, this command:
14451             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
14452         prints "P=1" on those two systems:
14453
14454 2010-09-08  Bruno Haible  <bruno@clisp.org>
14455
14456         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14457         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
14458         commands, because some shells ignore redirections when there is an
14459         error in the command lookup.
14460         Reported by Eric Blake.
14461
14462 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
14463
14464         * lib/regex.h: Fix a mention of `regex_compile' (should be
14465         `re_compile_pattern').
14466         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
14467         (re_set_registers): Correct name of parameter in comment.
14468
14469         * doc/regex.texi: Add documentation for missing syntax flags.
14470         Remove commented-out documentation of defunct syntax option
14471         RE_NO_EMPTY_ALTS.
14472         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
14473         Add documentation of re_set_registers.
14474         Document trick to re-use a pattern buffer by setting fastmap manually.
14475         Update documentation of struct re_pattern_buffer per public members.
14476         Uncomment documentation of equivalence class operators and
14477         collating symbol operators, since they are now implemented,
14478         Explain leftmost-longest matching in relation to alternatives.
14479         Tidy documentation of substring matching.
14480         Remove POSIX documentation, which is done better in
14481         glibc, and refer the reader there. Keep BSD API documentation, as
14482         that is not readily available elsewhere.
14483
14484 2010-09-07  Eric Blake  <eblake@redhat.com>
14485
14486         getopt: handle POSIXLY_CORRECT set but not exported
14487         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
14488         export state of POSIXLY_CORRECT, due to bash set -o posix.
14489         Reported by Dustin J. Mitchell.
14490
14491 2010-09-05  Bruno Haible  <bruno@clisp.org>
14492
14493         gnulib-tool: Highlight the changed options.
14494         * gnulib-tool (func_usage): Display the --import, --add-import,
14495         --remove-import explanations in bold font.
14496
14497 2010-09-06  Karl Berry  <karl@gnu.org>
14498
14499         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
14500
14501 2010-09-05  Bruno Haible  <bruno@clisp.org>
14502
14503         uniwidth/width: Update comment.
14504         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
14505         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
14506
14507 2010-09-05  Bruno Haible  <bruno@clisp.org>
14508
14509         isinf, isnan: Relax license.
14510         * modules/isinf (License): Change from GPL to LGPL, with consent from
14511         Ben Pfaff.
14512         * modules/isnan (License): Likewise.
14513         Requested by Ludovic Courtès.
14514
14515 2010-09-04  Bruno Haible  <bruno@clisp.org>
14516
14517         gnulib-tool: Help migration from --import to --add-import or --update.
14518         * gnulib-tool: Emit a verbose error message when --import is used
14519         without any module name.
14520
14521 2010-09-04  Bruno Haible  <bruno@clisp.org>
14522
14523         Update doc about gnulib-tool.
14524         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
14525         'gnulib-tool --update' in more detail.
14526         Reported by Eric Blake.
14527
14528 2010-09-04  Bruno Haible  <bruno@clisp.org>
14529
14530         gnulib-tool: Change --import. New options --add/remove-import.
14531         * gnulib-tool: New options --add-import, --remove-import.
14532         (func_usage): Document them.
14533         (have_associative): Define always.
14534         (func_import): In import mode, don't merge the specified settings with
14535         the cached settings. Implement remove-import mode.
14536         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
14537         Explain when to use them versus --import.
14538         (Simple update): Use --add-import instead of --import.
14539         * NEWS: Mention the change.
14540
14541 2010-09-04  Bruno Haible  <bruno@clisp.org>
14542
14543         * doc/gnulib-tool.texi (Initial import): Update paragraph about
14544         separate gnulib.mk.
14545
14546 2010-09-04  Bruno Haible  <bruno@clisp.org>
14547
14548         gnulib-tool: Don't talk about CVS any more.
14549         * gnulib-tool (func_usage, func_import): Write "version control"
14550         instead of CVS.
14551
14552 2010-09-04  Jim Meyering  <meyering@redhat.com>
14553
14554         maint.mk: avoid obscure sc_copyright_check failure in coreutils
14555         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
14556         false positives (whose names may be ill-chosen) when searching
14557         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
14558         would cause a false-positive.
14559
14560         avoid coreutils "make distcheck" failure
14561         Coreutils tests with an absolute build directory name that contains
14562         a space.  Not quoting this directory name caused a failure.
14563         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
14564         * tests/test-vc-list-files-cvs.sh: Likewise.
14565
14566 2010-09-04  Bruno Haible  <bruno@clisp.org>
14567
14568         gnulib-tool: Avoid error when run in a package without Makefile.am.
14569         * gnulib-tool: When collecting the m4dirs in a package that does not
14570         have a Makefile.am, eliminate those directories that contain no
14571         gnulib-cache.m4. Fix expression that counts these directories.
14572
14573 2010-09-04  Bruno Haible  <bruno@clisp.org>
14574
14575         update-copyright test: Improve output when perl is missing or too old.
14576         * tests/test-update-copyright.sh: Move test of Perl version down after
14577         the test whether Perl exists. Provide an explanation relating Perl's
14578         error message to Automake's SKIP: message.
14579
14580 2010-09-04  Bruno Haible  <bruno@clisp.org>
14581
14582         Don't augment PATH in TESTS_ENVIRONMENT.
14583         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
14584         set abs_aux_dir instead of augmenting PATH.
14585         * modules/vc-list-files-tests (Makefile.am): Likewise.
14586         * tests/test-update-copyright.sh: Augment PATH here.
14587         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
14588         path_prepend_.
14589         * tests/test-vc-list-files-git.sh: Likewise.
14590
14591 2010-09-04  Jim Meyering  <meyering@redhat.com>
14592
14593         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
14594         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
14595
14596 2010-09-04  Bruno Haible  <bruno@clisp.org>
14597
14598         strdup: Fix compilation error in C++ mode.
14599         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
14600         the macro.
14601
14602 2010-09-04  Bruno Haible  <bruno@clisp.org>
14603
14604         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
14605         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
14606         macro into a function.
14607         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14608
14609 2010-09-04  Bruno Haible  <bruno@clisp.org>
14610
14611         Set PATH_SEPARATOR the same way autoconf does.
14612         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
14613         the value of PATH_SEPARATOR the same way autoconf-generated configure
14614         scripts do.
14615         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
14616         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14617
14618 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14619
14620         Set PATH_SEPARATOR the same way autoconf does.
14621         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
14622         the same way autoconf-generated configure scripts do.
14623         * posix-modules: Likewise.
14624
14625 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14626
14627         hash: fix safe_hasher const typo
14628         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
14629         const; otherwise, there is a type error later.
14630
14631 2010-09-02  Jim Meyering  <meyering@redhat.com>
14632
14633         test-update-copyright.sh: require perl 5.8.0
14634         * tests/test-update-copyright.sh: Require 5.8.0,
14635         which Tom G. Christensen has confirmed is adequate,
14636         while 5.6.1 is not.
14637
14638 2010-09-02  Eric Blake  <eblake@redhat.com>
14639
14640         tests: init.sh improvements for re-exec'ing with zsh
14641         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
14642         -vx through shell re-exec.
14643         Reported by Tom G. Christensen.
14644
14645         wctype: fix typo in previous commit
14646         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
14647         Reported by Ludovic Courtès.
14648
14649 2010-09-02  Jim Meyering  <meyering@redhat.com>
14650
14651         test-update-copyright.sh: skip test if Perl is too old
14652         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
14653         Reported by Tom G. Christensen.
14654
14655 2010-09-02  Bruno Haible  <bruno@clisp.org>
14656
14657         wctype: Avoid compilation error on IRIX 6.5.30.
14658         * lib/wctype.in.h (iswblank): Declare with a replacement if
14659         REPLACE_ISWBLANK is set.
14660         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
14661         declared. Set REPLACE_ISWBLANK.
14662         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
14663         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
14664         * doc/posix-headers/wctype.texi: Likewise.
14665         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14666
14667 2010-09-01  Bruno Haible  <bruno@clisp.org>
14668
14669         New module 'socketlib'.
14670         * modules/socketlib: New file.
14671         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
14672         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
14673         * modules/sockets (Depends-on): Add socketlib.
14674         Suggested by Sam Steingold <sds@gnu.org>.
14675
14676 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14677
14678         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
14679
14680         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
14681         when one needs search access to a directory but not read access.
14682         On systems where it is available, it works in some cases where
14683         O_RDONLY does not, namely on directories that are searchable but
14684         not readable, and which need only to be searchable.  If O_SEARCH
14685         is not available, fall back to the traditional method of using
14686         O_RDONLY.
14687
14688         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
14689         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
14690         when opening a directory that needs only to be searchable.
14691         * lib/chdir-safer.c (chdir_no_follow): Likewise.
14692         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
14693         * lib/openat-proc.c (openat_proc_name): Likewise.
14694         * lib/openat.c (openat_needs_fchdir): Likewise.
14695         * lib/save-cwd.c (save_cwd): Likewise.
14696         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
14697
14698 2010-08-28  Bruno Haible  <bruno@clisp.org>
14699
14700         New module 'host-cpu-c-abi'.
14701         * modules/host-cpu-c-abi: New file.
14702         * m4/host-cpu-c-abi.m4: New file, based on part of
14703         clisp/src/m4/general.m4.
14704         Requested by Sam Steingold <sds@gnu.org>.
14705
14706 2010-08-31  Eric Blake  <eblake@redhat.com>
14707         and Jim Meyering  <meyering@redhat.com>
14708
14709         hash: factor, and guard against misbehaving hasher function
14710         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
14711         of table->hasher's return value.  Also protect against a hash value
14712         so large that adding it to table->bucket results in a NULL pointer.
14713         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
14714         Use it in place of open-coded check-and-abort.
14715
14716 2010-08-30  Bruno Haible  <bruno@clisp.org>
14717
14718         hash: silence spurious clang warning
14719         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
14720         Reported by Eric Blake.
14721
14722 2010-08-30  Eric Blake  <eblake@redhat.com>
14723
14724         strstr, memmem, strcasestr: avoid leaked shell message
14725         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
14726         FreeBSD.
14727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14728         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14729
14730         tests: silence clang warning
14731         * tests/test-malloca.c (do_allocation): Avoid dead store.
14732
14733 2010-08-29  Bruno Haible  <bruno@clisp.org>
14734
14735         gettext: Fix recent mistake.
14736         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
14737
14738 2010-08-29  Bruno Haible  <bruno@clisp.org>
14739
14740         selinux-h: Offer a --without-selinux option.
14741         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
14742         --without-selinux was specified, skip all tests and define
14743         HAVE_SELINUX_SELINUX_H to 0.
14744         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
14745         set LIB_SELINUX to empty.
14746         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
14747         gl_LIBSELINUX. If --without-selinux was specified, replace
14748         selinux/context.h.
14749         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
14750
14751 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14752             Bruno Haible  <bruno@clisp.org>
14753
14754         Make the module 'realloc-gnu' work again on AIX and OSF/1.
14755         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
14756         of HAVE_REALLOC.
14757         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
14758         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
14759         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
14760         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14761
14762 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14763             Bruno Haible  <bruno@clisp.org>
14764
14765         Make the module 'calloc-gnu' work again on AIX and OSF/1.
14766         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
14767         HAVE_CALLOC.
14768         * lib/xmalloc.c: Update accordingly.
14769         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
14770         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
14771         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14772
14773 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14774             Bruno Haible  <bruno@clisp.org>
14775
14776         Make the module 'malloc-gnu' work again on AIX and OSF/1.
14777         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
14778         HAVE_MALLOC.
14779         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
14780         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
14781         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14782
14783 2010-08-29  Bruno Haible  <bruno@clisp.org>
14784
14785         Update modules list.
14786         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14787         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
14788         (String handling <string.h>): Add astrxfrm.
14789         (File system functions): Add readlinkat.
14790
14791 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14792
14793         Tests for module 'realloc-gnu'.
14794         * modules/realloc-gnu-tests: New file.
14795         * tests/test-realloc-gnu.c: New file.
14796
14797         Tests for module 'calloc-gnu'.
14798         * modules/calloc-gnu-tests: New file.
14799         * tests/test-calloc-gnu.c: New file.
14800
14801         Tests for module 'malloc-gnu'.
14802         * modules/malloc-gnu-tests: New file.
14803         * tests/test-malloc-gnu.c: New file.
14804
14805 2010-08-28  Bruno Haible  <bruno@clisp.org>
14806
14807         Rename module 'realloc' -> 'realloc-gnu'.
14808         * modules/realloc-gnu: New file, copied from modules/realloc.
14809         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
14810         obsolete.
14811         * modules/mgetgroups (Depends-on): Update.
14812         * doc/posix-functions/realloc.texi: Update.
14813         * NEWS: Mention the change.
14814
14815         Rename module 'calloc' -> 'calloc-gnu'.
14816         * modules/calloc-gnu: New file, copied from modules/calloc.
14817         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
14818         obsolete.
14819         * doc/posix-functions/calloc.texi: Update.
14820         * NEWS: Mention the change.
14821
14822         Rename module 'malloc' -> 'malloc-gnu'.
14823         * modules/malloc-gnu: New file, copied from modules/malloc.
14824         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
14825         obsolete.
14826         * modules/argp (Depends-on): Update.
14827         * modules/regex (Depends-on): Update.
14828         * doc/posix-functions/malloc.texi: Update.
14829         * NEWS: Mention the change.
14830
14831 2010-08-28  Eric Blake  <eblake@redhat.com>
14832
14833         pread, pwrite: add missing dependency
14834         * modules/pread (Depends-on): Add extensions.
14835         * modules/pwrite (Depends-on): Likewise.
14836
14837 2010-08-28  Bruno Haible  <bruno@clisp.org>
14838
14839         unistr/u*-strchr: Fix tests dependencies.
14840         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
14841         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
14842         Reported by Ian Beckwith <ianb@erislabs.net>.
14843
14844 2010-08-28  Bruno Haible  <bruno@clisp.org>
14845
14846         read-file: Don't occupy too much unused memory.
14847         * lib/read-file.c (fread_file): Shrink the buffer at the end.
14848
14849 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
14850             Eric Blake  <eblake@redhat.com>
14851             Bruno Haible  <bruno@clisp.org>
14852
14853         read-file: Avoid memory reallocations with regular files.
14854         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
14855         (fread_file): With regular files, use the remaining length as the
14856         initial buffer size.  Check against overflow.
14857         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
14858         sys_stat.
14859
14860 2010-08-28  Bruno Haible  <bruno@clisp.org>
14861
14862         ftello: Relax license.
14863         * modules/ftello (License): Relax to LGPLv2+.
14864         Reported by Eric Blake.
14865
14866 2010-08-28  Bruno Haible  <bruno@clisp.org>
14867
14868         Avoid relocwrapper link errors due to gnulib replacement functions.
14869         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
14870         function.
14871         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14872
14873 2010-08-28  Bruno Haible  <bruno@clisp.org>
14874
14875         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
14876         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
14877         defined.
14878         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
14879         Suggested by Eric Blake.
14880
14881 2010-08-28  Bruno Haible  <bruno@clisp.org>
14882
14883         sys_socket, netdb: Ensure socklen_t gets defined.
14884         * modules/sys_socket (Depends-on): Add socklen.
14885         * modules/netdb (Depends-on): Likewise.
14886         * modules/getaddrinfo (Depends-on): Remove socklen.
14887         * modules/getsockopt (Depends-on): Likewise.
14888         * modules/setsockopt (Depends-on): Likewise.
14889         * tests/test-sys_socket.c: Check that socklen_t is defined.
14890         * tests/test-netdb.c: Likewise.
14891         * m4/socklen.m4: Update comments.
14892         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14893
14894 2010-08-27  Eric Blake  <eblake@redhat.com>
14895
14896         login_tty: add missing dependency
14897         * modules/login_tty (Depends-on): Add pty.
14898
14899 2010-08-26  Eric Blake  <eblake@redhat.com>
14900
14901         lib-symbol-versions: fix m4 quoting
14902         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
14903         format for AC_LINK_IFELSE.
14904
14905         glob: fix compile test
14906         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
14907
14908         btowc: fix missing file
14909         * modules/btowc (Files): Also ship locale-fr.m4.
14910
14911         lseek: fix link test
14912         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
14913         AC_LINK_IFELSE.
14914
14915         include_next: silence autoconf 2.68 warning
14916         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
14917         AC_COMPILE_IFELSE as special.
14918         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
14919         autoconf < 2.68.
14920
14921         acl: fix compilation test
14922         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
14923         AC_COMPILE_IFELSE.
14924
14925 2010-08-26  Bruno Haible  <bruno@clisp.org>
14926
14927         Modernize AC_TRY_RUN invocations.
14928         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
14929         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14930         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
14931         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
14932         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
14933         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14934         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14935         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14936         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14937         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14938         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14939         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14940         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14941         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14942         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14943         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
14944         gl_MBRLEN_NUL_RETVAL): Likewise.
14945         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14946         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14947         Likewise.
14948         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14949         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14950         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14951         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14952         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
14953         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
14954         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
14955         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14956         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
14957         Likewise.
14958         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
14959         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
14960         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14961         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14962         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14963         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14964         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14965         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
14966         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14967         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14968
14969 2010-08-26  Bruno Haible  <bruno@clisp.org>
14970
14971         Modernize AC_TRY_LINK invocations.
14972         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
14973         AC_TRY_LINK.
14974         * m4/argp.m4 (gl_ARGP): Likewise.
14975         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14976         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14977         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
14978         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14979         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14980         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
14981         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14982         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14983         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14984         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14985         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14986         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
14987         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
14988         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14989         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14990         * m4/hostent.m4 (gl_HOSTENT): Likewise.
14991         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14992         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
14993         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14994         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
14995         Likewise.
14996         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
14997         Likewise.
14998         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
14999         Likewise.
15000         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15001         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
15002         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
15003         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15004         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15005         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15006         * m4/servent.m4 (gl_SERVENT): Likewise.
15007         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15008         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15009         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15010         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15011         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15012         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15013         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15014         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15015         * modules/tsearch-tests (configure.ac): Likewise.
15016
15017 2010-08-26  Bruno Haible  <bruno@clisp.org>
15018
15019         Modernize AC_TRY_COMPILE invocations.
15020         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15021         AC_TRY_COMPILE.
15022         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15023         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15024         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15025         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15026         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15027         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15028         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15029         * m4/lock.m4 (gl_LOCK): Likewise.
15030         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15031         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15032         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15033         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15034         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15035         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15036         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15037         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15038         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15039         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15040         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15041         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15042         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15043         extraneous semicolon.
15044
15045 2010-08-26  Jim Meyering  <meyering@redhat.com>
15046
15047         stat-time: relax license LGPL
15048         * modules/stat-time (License): Change from GPL to LGPL,
15049         with consent from all contributors, for use in libguile.
15050         Requested by Ludovic Courtès.
15051
15052 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15053
15054         poll: return immediately on POLLHUP.
15055         * lib/poll.c (poll): Always set timeout before wait_timeout is
15056         computed.
15057
15058 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15059
15060         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15061         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15062         rmdir ("dir/.//"), unlinkat.
15063
15064 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15065
15066         stdbool: avoid spurious failure with modern xlc
15067         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15068
15069 2010-08-24  Bruno Haible  <bruno@clisp.org>
15070
15071         getloadavg: simplify code
15072         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15073         gl_have_func. Update comments.
15074
15075 2010-08-24  Eric Blake  <eblake@redhat.com>
15076
15077         getloadavg: don't define SVR4 on cygwin
15078         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15079         only define SVR4 when -lkvm is required.
15080         Reported by Yaakov Selkowitz.
15081
15082 2010-08-24  Bruno Haible  <bruno@clisp.org>
15083
15084         priv-set: fix comment
15085         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15086
15087 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15088
15089         priv-set: fix comments
15090         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15091         to match code, as suggested by David Bartley in:
15092         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15093
15094 2010-08-23  Eric Blake  <eblake@redhat.com>
15095
15096         stdbool: avoid rejecting clang
15097         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15098         * tests/test-stdbool.c: Enable more tests if using the system
15099         <stdbool.h> instead of the gnulib replacement.
15100         (main): Move xlc bug test to a runtime test for all compilers.
15101         Reported by Anders Kaseorg.
15102
15103         argz: fix shell quoting issue
15104         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15105         Reported by Charles Wilson.
15106
15107 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15108             Erik Faye-Lund <kusmabite@gmail.com>
15109
15110         poll, select: handle ERROR_BROKEN_PIPE.
15111         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15112         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15113         * lib/select.c (win32_compute_revents): Do not mark a pipe
15114         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15115
15116 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15117
15118         fts: allow compilation with C++
15119         * lib/fts_.h: Specify extern "C" linkage with C++.
15120
15121 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15122
15123         Fix gnulib-tool sed script de-commentation for AIX sed.
15124         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15125         sed.
15126
15127 2010-08-17  Eric Blake  <eblake@redhat.com>
15128
15129         test-stddef: test for (some) offsetof bugs
15130         * tests/test-stddef.c: Enhance test to ensure correct type of
15131         offsetof.
15132         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15133         that we are not fixing at this time.
15134
15135 2010-08-15  Bruno Haible  <bruno@clisp.org>
15136
15137         stpncpy: Allow stpncpy to be defined as a macro.
15138         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15139         if it's already correctly declared.
15140         * lib/string.in.h (stpncpy): Undefine before redefining.
15141         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15142
15143 2010-08-14  Bruno Haible  <bruno@clisp.org>
15144
15145         Rename module 'memxfrm' to 'amemxfrm'.
15146         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15147         (amemxfrm): Renamed from memxfrm.
15148         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15149         (amemxfrm): Renamed from memxfrm.
15150         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15151         * NEWS: Mention the change.
15152         * MODULES.html.sh (String handling <string.h>): Update.
15153         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15154         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15155         * lib/unicase/u16-casexfrm.c: Likewise.
15156         * lib/unicase/u32-casexfrm.c: Likewise.
15157         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15158         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15159         * lib/uninorm/u16-normxfrm.c: Likewise.
15160         * lib/uninorm/u32-normxfrm.c: Likewise.
15161         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15162         memxfrm.
15163         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15164         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15165         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15166         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15167         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15168         Suggested by Paul Eggert.
15169
15170 2010-08-14  Bruno Haible  <bruno@clisp.org>
15171
15172         Tests for module 'astrxfrm'.
15173         * modules/astrxfrm-tests: New file.
15174         * tests/test-astrxfrm.c: New file.
15175
15176         New module 'astrxfrm'.
15177         * lib/astrxfrm.h: New file.
15178         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15179         * modules/astrxfrm: New file.
15180
15181 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15182
15183         regex: Tweak doc.
15184         * doc/regex.texi (Overview): Don't mention regex.c.
15185         (GNU Regular Expression Compiling): Likewise.
15186         (Match-end-of-line Operator): Mention 'not_eol'.
15187
15188 2010-08-14  Brian Gough  <bjg@gnu.org>
15189             Bruno Haible  <bruno@clisp.org>
15190
15191         git-merge-changelog: add doc relating to use with bzr and hg.
15192         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15193
15194 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15195
15196         pthread: fix pthread.h creation for srcdir != builddir
15197         * modules/pthread (Makefile.am): Fix the rule to work also in a
15198         non-srcdir build.
15199
15200 2010-08-13  Karl Berry  <karl@gnu.org>
15201
15202         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15203         * doc/posix-*/*: force line break before @url of POSIX
15204         specifications.
15205         Suggested by Werner Lemberg.
15206
15207 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15208
15209         strtod: fix const diagnostic
15210         * lib/strtod.c (strtod): Don't assign const char * to char *,
15211         as this elicits a warning from GCC when warnings are enabled.
15212
15213 2010-08-10  Pádraig Brady <P@draigbrady.com>
15214         and Eric Blake  <eblake@redhat.com>
15215
15216         copy-acl: ignore ENOTSUP on HP-UX
15217         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15218         so that it is available for HP-UX.
15219         * lib/copy-acl.c (qcopy_acl): Use it.
15220         Reported by Patrick M. Callahan.
15221
15222 2010-08-10  Eric Blake  <eblake@redhat.com>
15223
15224         open, chown: relax license
15225         * modules/open (License): Change to LGPLv2+, with consent by all
15226         authors, for use in augeas.
15227         * modules/chown (License): Likewise.
15228         * modules/lchown (Likewise): Likewise.
15229         Requested by Adam Stokes.
15230
15231 2010-08-09  Karl Berry  <karl@gnu.org>
15232
15233         * build-aux/ar-lib: new file, import from Automake.
15234         * config/srclist.txt: autocheck for updates.
15235
15236 2010-08-09  Eric Blake  <eblake@redhat.com>
15237
15238         readlinkat: adjust client modules
15239         * modules/areadlinkat (Depends-on): Use readlinkat, not
15240         symlinkat.
15241         * modules/areadlinkat-with-size (Depends-on): Likewise.
15242
15243         mknod: be more vocal about danger of running tests as root
15244         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
15245         root, since that is just asking for problems.
15246         Suggested by Bruno Haible, based on a report by Rainer Tammer.
15247
15248         readlinkat: split into its own module
15249         * modules/symlinkat: Split readlinkat...
15250         * modules/readlinkat: ...into separate module.
15251         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
15252         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
15253         * lib/symlinkat.c (readlinkat): Move...
15254         * lib/readlinkat.c: ...into new file.
15255         * modules/symlinkat-tests: Split readlinkat test...
15256         * modules/readlinkat-tests: ...into separate module.
15257         * tests/test-symlinkat.c: Split...
15258         * tests/test-readlinkat.c: ...into new file.
15259         * NEWS: Document the split.
15260         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15261         * lib/unistd.in.h (readlinkat): Likewise.
15262         Suggested by Bruno Haible.
15263
15264 2010-08-08  Bruno Haible  <bruno@clisp.org>
15265
15266         memxfrm: Speed up.
15267         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
15268         that usually only one call to strxfrm is necessary for each string
15269         part.
15270         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15271
15272 2010-08-07  Karl Berry  <karl@gnu.org>
15273
15274         * doc/posix-headers/limits.texi,
15275         * doc/posix-functions/malloc.texi,
15276         * doc/posix-functions/strsignal.texi: missing @item.
15277         * doc/ld-version-script.texi: spurious leading i.
15278         * doc/regex.texi (Interval Operators): no commas inside @var.
15279
15280 2010-08-01  Bruno Haible  <bruno@clisp.org>
15281
15282         Integrate the regex documentation.
15283         * doc/gnulib.texi: Define 'cn' index.
15284         (Regular expressions): New a chapter that includes regex.texi and
15285         regexprops-generic.texi.
15286         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15287         syntax.
15288
15289         Whitespace cleanup.
15290         * doc/regex.texi: Remove trailing spaces.
15291
15292         Add regex documentation.
15293         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
15294         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
15295         Written by Kathy A. Hargreaves and Karl Berry.
15296
15297 2010-08-01  Bruno Haible  <bruno@clisp.org>
15298
15299         link: Update documentation.
15300         * doc/posix-functions/link.texi: Update regarding Solaris.
15301
15302 2010-07-31  Bruno Haible  <bruno@clisp.org>
15303
15304         Update modules list.
15305         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
15306         (String handling <string.h>): Add memcmp2, memxfrm.
15307         (Container data structures): Add xlist, xsublist, xoset.
15308         (Core language properties): Add alignof, unused-parameter.
15309         (Process control, Numeric conversion functions <stdlib.h>): Renamed
15310         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
15311         (Unibyte characters <ctype.h>): New section.
15312         (String handling <string.h>): New section.
15313         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
15314         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
15315         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
15316         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
15317         tan, tanh, tanl, y0, y1, yn.
15318         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
15319         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
15320         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
15321         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
15322         unlockpt, vdprintf, vdprintf-posix.
15323         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
15324         (File system functions): Add concat-filename, sys_file, sys_ioctl,
15325         xconcat-filename.
15326         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
15327         getdtablesize, pipe2, pipe2-safer.
15328         (Security): New section.
15329         (Networking functions): Add accept4.
15330         (Signal handling): Add sigpipe.
15331         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15332         mbmemcasecoll.
15333         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15334         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15335         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15336         pipe-filter-ii.
15337         (Misc): Add argp-version-etc, login_tty, parse-duration.
15338
15339 2010-07-31  Bruno Haible  <bruno@clisp.org>
15340
15341         Improve doc in MODULES.html.
15342         * modules/linkat (Description): Add the word "function".
15343         * modules/mkfifo (Description): Likewise.
15344         * modules/mknod (Description): Likewise.
15345         * modules/remove (Description): Likewise.
15346         * modules/renameat (Description): Likewise.
15347         * modules/stat (Description): Likewise.
15348         * modules/symlink (Description): Likewise.
15349         * modules/unlink (Description): Likewise.
15350
15351 2010-07-31  Bruno Haible  <bruno@clisp.org>
15352
15353         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15354         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15355         option --enable/disable-c++ instead of --enable/disable-cxx.
15356         * NEWS: Mention the change.
15357
15358 2010-07-31  Bruno Haible  <bruno@clisp.org>
15359
15360         readlink, areadlink: Relax test a bit.
15361         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15362         alternative to ENOTDIR.
15363         * tests/test-areadlink.h (test_areadlink): Likewise.
15364         Reported by Rainer Tammer.
15365
15366 2010-07-31  Bruno Haible  <bruno@clisp.org>
15367
15368         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15369         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15370         character, perform the search using U_STRCHR.
15371         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15372         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15373         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15374         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15375         Suggested by Paolo Bonzini.
15376
15377 2010-07-31  Bruno Haible  <bruno@clisp.org>
15378
15379         unistr/u*-strstr: Fix dependencies.
15380         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15381         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15382         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15383
15384 2010-07-31  Bruno Haible  <bruno@clisp.org>
15385
15386         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15387         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15388         the beginning of the loop.
15389         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15390         cases in 'switch' statement.
15391
15392         unistr/u8-strchr: Fix several bugs.
15393         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15394         the string. When not found, return NULL, not a pointer near the end.
15395
15396         More tests for unistr/u8-strchr.
15397         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15398         that the function does not read past the first occurrence of the byte
15399         being searched.
15400         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15401         * tests/unistr/test-u16-strchr.c (main): New function.
15402         * tests/unistr/test-u32-strchr.c (main): New function.
15403
15404 2010-07-31  Bruno Haible  <bruno@clisp.org>
15405
15406         posix-modules: Ignore backup files of documentation files.
15407         * posix-modules: grep only through files named *.texi.
15408
15409 2010-07-31  Bruno Haible  <bruno@clisp.org>
15410
15411         symlinkat: Fix documentation.
15412         * doc/posix-functions/readlinkat.texi: Fix module name.
15413
15414 2010-07-31  Bruno Haible  <bruno@clisp.org>
15415
15416         fchownat: Replace also when chown has the trailing slash bug.
15417         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
15418         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
15419         introduced on 2010-04-10.
15420         Reported by Rainer Tammer.
15421
15422 2010-07-31  Bruno Haible  <bruno@clisp.org>
15423
15424         linkat: Work around AIX 7.1 bug.
15425         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
15426         whether linkat handles trailing slash correctly. If not, replace linkat
15427         and define LINKAT_TRAILING_SLASH_BUG.
15428         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
15429         check whether (fd1,file1) points to a directory if file1 or file2 ends
15430         in a slash. Code taken from lib/link.c.
15431         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
15432         Reported by Rainer Tammer.
15433
15434 2010-07-31  Bruno Haible  <bruno@clisp.org>
15435
15436         Correctly determine whether pow is available in libc on AIX 7 with xlc.
15437         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
15438         This disables an xlc optimization that was causing wrong test results.
15439         Reported by Rainer Tammer.
15440
15441 2010-07-31  Bruno Haible  <bruno@clisp.org>
15442
15443         iconv: Work around AIX 6.1..7.1 bug.
15444         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
15445         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
15446         cross-compiling, guess no on all versions of AIX.
15447         Reported by Rainer Tammer.
15448
15449 2010-07-31  Bruno Haible  <bruno@clisp.org>
15450
15451         readlink: Relax test a bit.
15452         * tests/test-readlink.h (test_readlink): Allow different errno value
15453         when readlink is called with a file name that ends in / and refers to
15454         a file.
15455         Suggested by Eric Blake.
15456         Reported by Rainer Tammer.
15457
15458 2010-07-31  Bruno Haible  <bruno@clisp.org>
15459
15460         copysign: Does not require -lm on glibc systems.
15461         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
15462         gl_COMMON_DOUBLE_MATHFUNC.
15463         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
15464
15465 2010-07-31  Bruno Haible  <bruno@clisp.org>
15466
15467         duplocale: Work around AIX 7.1 bug.
15468         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
15469         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
15470         * lib/duplocale.c (rpl_duplocale): Update comment.
15471         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
15472         Reported by Rainer Tammer.
15473
15474 2010-07-30  Bruno Haible  <bruno@clisp.org>
15475
15476         dirfd: Avoid link error on AIX 7.1.
15477         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
15478         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
15479         exist, set REPLACE_DIRFD.
15480         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
15481         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
15482         * doc/posix-functions/dirfd.texi: Update.
15483         Reported by Rainer Tammer.
15484
15485 2010-07-30  Eric Blake  <eblake@redhat.com>
15486
15487         strtod: next round of AIX fixes
15488         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
15489         exponent.
15490         * tests/test-strtod.c (main): Enhance tests.
15491         * doc/posix-functions/strtod.texi (strtod): Document next bug.
15492         Reported by Rainer Tammer.
15493
15494         futimens: fix configure check
15495         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
15496         Reported by Bruno Haible.
15497
15498 2010-07-30  Bruno Haible  <bruno@clisp.org>
15499
15500         getline: Update regarding AIX.
15501         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
15502         Reported by Rainer Tammer.
15503
15504 2010-07-30  Bruno Haible  <bruno@clisp.org>
15505
15506         wcwidth: Drop replacement on AIX 7.
15507         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
15508         AIX 7.
15509         Reported by Rainer Tammer.
15510
15511 2010-07-30  Bruno Haible  <bruno@clisp.org>
15512
15513         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
15514         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
15515         a 'char *'.
15516         Reported by Rainer Tammer.
15517
15518 2010-07-30  Bruno Haible  <bruno@clisp.org>
15519
15520         unlink: Update regarding AIX.
15521         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
15522         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
15523         Reported by Rainer Tammer.
15524
15525 2010-07-30  Bruno Haible  <bruno@clisp.org>
15526
15527         symlink: Update regarding AIX.
15528         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
15529         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
15530         Reported by Rainer Tammer.
15531
15532 2010-07-30  Bruno Haible  <bruno@clisp.org>
15533
15534         strndup: Update regarding AIX.
15535         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
15536         AIX 7.
15537         Reported by Rainer Tammer.
15538
15539 2010-07-30  Bruno Haible  <bruno@clisp.org>
15540
15541         stat: Update regarding AIX.
15542         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
15543         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
15544         Reported by Rainer Tammer.
15545
15546 2010-07-30  Bruno Haible  <bruno@clisp.org>
15547
15548         truncl: Fix autoconf test.
15549         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
15550         whether truncl works.
15551         Reported by Rainer Tammer.
15552
15553 2010-07-30  Bruno Haible  <bruno@clisp.org>
15554
15555         round: Update regarding AIX.
15556         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
15557         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
15558         Reported by Rainer Tammer.
15559
15560 2010-07-30  Bruno Haible  <bruno@clisp.org>
15561
15562         rename: Update regarding AIX.
15563         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
15564         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
15565         Reported by Rainer Tammer.
15566
15567 2010-07-30  Bruno Haible  <bruno@clisp.org>
15568
15569         printf.m4: Update regarding AIX.
15570         * m4/printf.m4: Update comments regarding AIX.
15571         Reported by Rainer Tammer.
15572
15573 2010-07-30  Bruno Haible  <bruno@clisp.org>
15574
15575         iconv: Update regarding AIX.
15576         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
15577         AIX 7.
15578         Reported by Rainer Tammer.
15579
15580 2010-07-30  Bruno Haible  <bruno@clisp.org>
15581
15582         getopt: Update regarding AIX.
15583         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
15584         no on AIX.
15585         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
15586         Reported by Rainer Tammer.
15587
15588 2010-07-30  Bruno Haible  <bruno@clisp.org>
15589
15590         ldexpl; Update regarding AIX.
15591         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
15592         on AIX 7.
15593         Reported by Rainer Tammer.
15594
15595 2010-07-30  Bruno Haible  <bruno@clisp.org>
15596
15597         frexpl: Update regarding AIX.
15598         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
15599         on AIX 7.
15600         Reported by Rainer Tammer.
15601
15602 2010-07-30  Bruno Haible  <bruno@clisp.org>
15603
15604         open, fopen: Update regarding AIX.
15605         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
15606         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15607         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
15608         * doc/posix-functions/fopen.texi: Likewise.
15609         Reported by Rainer Tammer.
15610
15611 2010-07-30  Bruno Haible  <bruno@clisp.org>
15612
15613         chown: Update doc regarding AIX.
15614         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
15615         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
15616         Reported by Rainer Tammer.
15617
15618 2010-07-30  Eric Blake  <eblake@redhat.com>
15619
15620         strtod: fix bug in replacement function on AIX
15621         * lib/strtod.c (strtod): Special case broken "0x" parse in
15622         underlying strtod.
15623         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
15624         * doc/posix-functions/strtod.texi (strtod): Likewise.
15625         Reported by Rainer Tammer.
15626
15627 2010-07-30  Bruno Haible  <bruno@clisp.org>
15628
15629         mbrlen: Fix cross-compilation guess for AIX.
15630         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
15631         guess. Leftover from 2008-12-22.
15632
15633 2010-07-30  Bruno Haible  <bruno@clisp.org>
15634
15635         mbrtowc: Fix cross-compilation guess for AIX.
15636         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
15637         guess. Leftover from 2008-12-21.
15638
15639 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
15640
15641         init.sh: work around trap limitation of some shells
15642         * tests/init.sh (setup_): Move exit trap outside of shell function.
15643
15644 2010-07-29  Eric Blake  <eblake@redhat.com>
15645
15646         strtod: aid debugging
15647         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
15648         understanding why strtod is rejected.
15649
15650 2010-07-28  Bruno Haible  <bruno@clisp.org>
15651
15652         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
15653         * lib/unistr/u8-chr.c: Include <string.h>.
15654         * tests/unistr/test-u8-chr.c: Likewise.
15655         * tests/unistr/test-u16-chr.c: Likewise.
15656         * tests/unistr/test-u32-chr.c: Likewise.
15657         * tests/unistr/test-u8-strchr.c: Likewise.
15658         * tests/unistr/test-u16-strchr.c: Likewise.
15659         * tests/unistr/test-u32-strchr.c: Likewise.
15660         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
15661         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
15662         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
15663         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
15664
15665 2010-07-28  Bruno Haible  <bruno@clisp.org>
15666
15667         Use spaces for indentation, not tabs.
15668         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15669
15670 2010-07-27  Bruno Haible  <bruno@clisp.org>
15671
15672         mbspcasecmp: Fix function specification.
15673         * lib/string.in.h (mbspcasecmp): Fix specification comment.
15674         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
15675         Reported by Eric Blake <eblake@redhat.com>.
15676
15677 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
15678
15679         timespec: use cast and not conditional, as truncation isn't possible
15680         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
15681         instead of a conditional.  Comment about the situation in more detail.
15682         This undoes most of the 2009-10-29 patch.
15683
15684 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
15685
15686         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
15687         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
15688         * lib/unistr/u8-strchr.c: Likewise.
15689         * modules/unistr/u8-chr: Depend on memchr.
15690
15691         unistr/u*-strchr: add tests
15692         * modules/unistr/u8-strchr-tests: New file.
15693         * modules/unistr/u16-strchr-tests: New file.
15694         * modules/unistr/u32-strchr-tests: New file.
15695         * tests/unistr/test-strchr.h: New file.
15696         * tests/unistr/test-u8-strchr.c: New file.
15697         * tests/unistr/test-u16-strchr.c: New file.
15698         * tests/unistr/test-u32-strchr.c: New file.
15699
15700         unistr/u*-chr: test multibyte sequences more
15701         * tests/unistr/test-chr.h: Do complete testing of the characters in the
15702         test vector.
15703         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
15704         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
15705         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
15706
15707         unistr/u*-chr: test multibyte sequences
15708         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
15709
15710         unistr/u*-chr: prepare for multibyte tests
15711         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
15712         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
15713         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
15714         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
15715         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
15716         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
15717
15718 2010-07-18  Bruno Haible  <bruno@clisp.org>
15719
15720         unistr/u8-strchr: Optimize non-ASCII argument case.
15721         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
15722         because the first byte often matches anyway.
15723         Reported by Pádraig Brady <P@draigbrady.com>.
15724
15725 2010-07-15  Karl Berry  <karl@gnu.org>
15726
15727         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
15728
15729 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
15730
15731         getcwd: on Solaris, work better if ancestors are inaccessible
15732         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
15733         buffer and size, try again with a large buffer.  This works better
15734         on Solaris, since its getcwd succeeds even if the path to the root
15735         is inaccessible, and this is helpful in common cases such as .zfs
15736         hidden directories.  Problem reported by J Chapman Flack in
15737         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
15738         Use system getcwd if it's declared, not merely if it's partly
15739         working; use the partly-working test only to avoid needless effort
15740         if the system getcwd fails.
15741         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
15742         comment that was already obsolete and is now even more obsolete.
15743         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
15744         now might call strdup.
15745
15746 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
15747
15748         pthread: Add enough so that coreutils/src/sort.c compiles.
15749         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
15750         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
15751         gnulib. Include <sched.h> and <time.h>, as per POSIX.
15752         Include <sys/types.h>, in case it defines pthread_t.
15753         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
15754         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
15755         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
15756         (pthread_rwlockattr_t, pthread_spinlock_t):
15757         New typedefs, if HAVE_PTHREAD_T is not defined.
15758         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
15759         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
15760         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
15761         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
15762         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
15763         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
15764         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
15765         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
15766         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
15767         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
15768         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
15769         New macros.
15770         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
15771         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
15772         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
15773         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
15774         (pthread_spin_unlock): New dummy functions.
15775         (pthread_create): Return EAGAIN; don't set errno.
15776         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
15777         require AC_C_INLINE.
15778         * modules/pthread (Depends-on): Add sched, time.
15779         (pthread.h): Use AM_V_GEN.
15780
15781 2010-07-13  Bruno Haible  <bruno@clisp.org>
15782
15783         striconveh: Don't malloc memory if the result buffer is sufficient.
15784         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
15785         buffer if its size is sufficient.
15786         Reported by Ludovic Courtès <ludo@gnu.org>.
15787
15788 2010-07-13  Bruno Haible  <bruno@clisp.org>
15789
15790         strtod: Add safety check.
15791         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
15792
15793 2010-07-12  Bruno Haible  <bruno@clisp.org>
15794
15795         Unify tests that set gl_cv_func_ldexpl_no_libm.
15796         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
15797         gl_FUNC_LDEXPL.
15798         (gl_FUNC_LDEXPL): Invoke it.
15799         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15800
15801 2010-07-12  Bruno Haible  <bruno@clisp.org>
15802
15803         Unify tests that set gl_cv_func_ldexp_no_libm.
15804         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
15805         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
15806         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
15807         (configure.ac): Simply invoke gl_FUNC_LDEXP.
15808         * modules/strtod (Files): Add m4/ldexp.m4.
15809
15810 2010-07-12  Bruno Haible  <bruno@clisp.org>
15811
15812         Unify tests that set gl_cv_func_frexpl_no_libm.
15813         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
15814         gl_FUNC_FREXPL_NO_LIBM.
15815         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
15816         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15817
15818 2010-07-12  Bruno Haible  <bruno@clisp.org>
15819
15820         Unify tests that set gl_cv_func_frexp_no_libm.
15821         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
15822         gl_FUNC_FREXP_NO_LIBM.
15823         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
15824         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15825
15826 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
15827
15828         memcoll: clarify sizes versus lengths, document better, and tweak perf
15829         * lib/memcoll.c (strcoll_loop, memcoll0):
15830         Improve quality of descriptive comments.  Name variables
15831         consistently as to whether they are lengths (which do not include
15832         terminating null) versus sizes (which do).
15833         * lib/xmemcoll.c (xmemcoll0): Likewise.
15834         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
15835         returned when s1size == 0; this is easier to compile and saves
15836         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
15837
15838 2010-07-12  Bruno Haible  <bruno@clisp.org>
15839
15840         Tests for module '_Exit'.
15841         * modules/_Exit-tests: New file.
15842         * tests/test-_Exit.sh: New file.
15843         * tests/test-_Exit.c: New file.
15844
15845         New module '_Exit'.
15846         * lib/stdlib.in.h (__attribute__): New macro.
15847         (_Exit): New declaration.
15848         * lib/_Exit.c: New file.
15849         * m4/_Exit.m4: New file.
15850         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
15851         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
15852         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
15853         * modules/_Exit: New file.
15854         * tests/test-stdlib-c++.cc (_Exit): Check signature.
15855         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
15856
15857 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
15858
15859         strtod: make it more-accurate typically, and don't require libm
15860         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
15861         Include limits.h.  Don't include string.h.
15862         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
15863         (locale_isspace): New function, so that no casts are needed to
15864         check whether *s is a space.
15865         (ldexp): Provide an unused dummy if not available.
15866         (scale_radix_exp, parse_number, underlying_strtod): New functions.
15867         (strtod): Use them.  This implementation prefers to use the
15868         underlying strtod if available, falling back on our own code
15869         only to fix known bugs.  This is more likely to produce an
15870         accurate result.  Also, it avoids the use of libm functions.
15871         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
15872         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
15873         was absent, but it caused a test failure with coreutils.
15874         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
15875         with libm.
15876         * modules/strtod (Makefile.am, Link): libm is no longer needed.
15877         * modules/strtod-tests (Makefile.am): Likewise.
15878
15879 2010-07-11  Pádraig Brady  <P@draigBrady.com>
15880             Bruno Haible  <bruno@clisp.org>
15881
15882         unistr/u8-strchr: Optimize ASCII argument case.
15883         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
15884
15885 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15886
15887         (x)memcoll: minor tweaks
15888         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
15889         is after the type that it qualifies.
15890         (memcoll0): Likewise.
15891         * lib/memcoll.h (memcoll0): Likewise.
15892         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
15893         * lib/xmemcoll.h (xmemcoll0): Likewise.
15894         * lib/memcoll.c (memcoll0): Correct the comment.  This function
15895         differs from memcoll in that the NUL byte is part of the argument.
15896         Omit the abort-checks, as performance is a real issue here.  Plus,
15897         the checks were wrong anyway (an off-by-one error).  Omit local
15898         variable 'diff', as it's a bit clearer that way.
15899         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
15900         no longer needed.
15901
15902 2010-07-08  Chen Guo <chenguo4@yahoo.com>
15903
15904         (x)memcoll: speedup when input is known to be NUL delimited
15905         * lib/memcoll.c: Include stdlib.
15906         (memcoll0): New function.
15907         (strcoll_loop): New function, refactored for use in both memcoll
15908         and memcoll0.
15909         * lib/memcoll.h (memcoll0): Add prototype.
15910         * lib/xmemcoll.c (xmemcoll0): New function.
15911         (collate_error): New function, refactored for use in both xmemcoll
15912         and xmemcoll0.
15913         * lib/xmemcoll.h (xmemcoll0): Add prototype.
15914         * m4/memcoll.m4: add inline invocation.
15915
15916 2010-07-06  Pádraig Brady  <P@draigBrady.com>
15917
15918         * build-aux/bootstrap: Remove any local translations
15919         from the translation project synchronization directory,
15920         so that local only translations are not distributed.
15921
15922 2010-07-04  Bruno Haible  <bruno@clisp.org>
15923
15924         fsusage: Clarify which code applies to which platforms.
15925         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
15926         platform.
15927         * lib/fsusage.c (get_fs_usage): Likewise.
15928
15929 2010-07-04  Bruno Haible  <bruno@clisp.org>
15930
15931         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
15932         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
15933         Reported by Martin Lambers <marlam@marlam.de>.
15934
15935 2010-07-04  Jim Meyering  <meyering@redhat.com>
15936
15937         hash: once again explicitly disallow insertion of NULL
15938         * lib/hash.c (hash_insert0): Reinstate just-removed test:
15939         inserting a NULL pointer cannot work with these functions.
15940         Add a comment with details.
15941         This reverts part of the 2010-07-01 commit, 5bef1a35
15942         "hash: extend module to deal with non-pointer keys".
15943
15944 2010-07-01  Bruno Haible  <bruno@clisp.org>
15945
15946         stdbool: Update doc.
15947         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
15948         Info from Christian Weisgerber <naddy@mips.inka.de>.
15949
15950 2010-07-01  Jim Meyering  <meyering@redhat.com>
15951
15952         hash: extend module to deal with non-pointer keys
15953         * lib/hash.c (hash_insert0): New interface, much like hash_insert
15954         but that allows insertion of non-pointer entries.
15955         Do not disallow an ENTRY value of NULL.
15956         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
15957         * lib/hash.h (hash_insert0): Declare.
15958
15959 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15960
15961         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
15962         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
15963         not present (i.e. with autoconf 2.59 and when using gettextize, not
15964         gnulib), require AC_GNU_SOURCE instead.
15965
15966 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
15967
15968         idpriv-drop: Fix tests.
15969         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
15970         not to the test-idpriv-droptemp program.
15971
15972 2010-06-29  Bruno Haible  <bruno@clisp.org>
15973
15974         string: Fix syntax error with g++ 2.96.
15975         * lib/string.in.h (__pure__): Remove definition.
15976         (_GL_ATTRIBUTE_PURE): New macro.
15977         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
15978         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
15979         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15980
15981 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
15982
15983         unitypes: Fix bug introduced on 2010-05-18.
15984         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
15985
15986 2010-06-22  Eric Blake  <eblake@redhat.com>
15987
15988         memmem: slight optimization
15989         * lib/str-two-way.h (critical_factorization): Update comments.
15990         Reduce work during factorization phase.
15991         Reported by Carlos Bueno <carlos@bueno.org>.
15992
15993 2010-06-21  Bruno Haible  <bruno@clisp.org>
15994
15995         Fix HAVE_CALLOC_POSIX misnomer.
15996         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
15997         !HAVE_CALLOC_POSIX.
15998         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
15999         HAVE_CALLOC_POSIX.
16000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
16001         instead of HAVE_CALLOC_POSIX.
16002         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
16003         HAVE_CALLOC_POSIX.
16004
16005         Use modern idiom for calloc() replacement.
16006         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
16007         AC_FUNC_CALLOC.
16008         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
16009         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
16010         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16011         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
16012         (gl_REPLACE_CALLOC): New macro.
16013
16014 2010-06-21  Bruno Haible  <bruno@clisp.org>
16015
16016         Fix HAVE_REALLOC_POSIX misnomer.
16017         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
16018         !HAVE_REALLOC_POSIX.
16019         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16020         HAVE_REALLOC_POSIX.
16021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16022         instead of HAVE_REALLOC_POSIX.
16023         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16024         HAVE_REALLOC_POSIX.
16025
16026         Use modern idiom for realloc() replacement.
16027         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16028         AC_FUNC_REALLOC.
16029         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16030         Autoconf's AC_FUNC_REALLOC.
16031         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16032         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16033         (gl_REPLACE_REALLOC): New macro.
16034         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16035
16036 2010-06-21  Bruno Haible  <bruno@clisp.org>
16037
16038         Fix HAVE_MALLOC_POSIX misnomer.
16039         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16040         !HAVE_MALLOC_POSIX.
16041         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16042         HAVE_MALLOC_POSIX.
16043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16044         instead of HAVE_MALLOC_POSIX.
16045         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16046         HAVE_MALLOC_POSIX.
16047
16048         Use modern idiom for malloc() replacement.
16049         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16050         AC_FUNC_MALLOC.
16051         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16052         Autoconf's AC_FUNC_MALLOC.
16053         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16054         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16055         (gl_REPLACE_MALLOC): New macro.
16056         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16057
16058 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16059
16060         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16061         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16062         This macro takes 3 arguments, not 4.
16063
16064 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16065
16066         ipv6: fix detection under mingw
16067         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16068         in6_addr.
16069
16070 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16071
16072         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16073         that strtod() works when cross-compiling to a glibc version known
16074         to work.
16075
16076 2010-06-15  Bruno Haible  <bruno@clisp.org>
16077
16078         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16079
16080 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16081
16082         select: Correct timeout.
16083         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16084
16085 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16086
16087         git-version-gen: init shell var to avoid env var influence
16088         * build-aux/git-version-gen (v): Init shell var to empty.
16089
16090 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16091
16092         priv-set: Don't assume that priv.h exists merely because getppriv does.
16093         See Jan Andersen's bug report about AIX 5L in
16094         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16095         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16096         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16097         * lib/priv-set.h: Likewise.
16098         * tests/test-priv-set.c: Likewise.
16099
16100 2010-06-13  Bruno Haible  <bruno@clisp.org>
16101
16102         relocatable: Make it easier to test whether to install wrappers.
16103         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16104         RELOCATABLE_VIA_WRAPPER.
16105
16106 2010-06-13  Bruno Haible  <bruno@clisp.org>
16107
16108         gnulib-tool: Display specified modules and dependencies differently.
16109         * gnulib-tool (func_show_module_list): New function.
16110         (func_import, func_create_testdir): Invoke it.
16111         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16112
16113 2010-06-13  Bruno Haible  <bruno@clisp.org>
16114
16115         gnulib-tool: Align code of func_import and func_create_testdir.
16116         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16117         specified_modules.
16118
16119 2010-06-12  Jim Meyering  <meyering@redhat.com>
16120
16121         test-inttostr: avoid spurious failure on Solaris 9
16122         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16123         to accept "%ju".  Reported by Bruno Haible.
16124
16125 2010-06-11  Jim Meyering  <meyering@redhat.com>
16126
16127         test-sys_socket: mark variables as used more readably
16128         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16129         as "used" explicitly via (void) statement casts.  This is more
16130         readable than using them in an artificial return expression.
16131         Suggestion from Bruno Haible.
16132
16133 2010-06-11  Bruno Haible  <bruno@clisp.org>
16134
16135         Avoid some more warnings from "gcc -Wwrite-strings".
16136         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16137         to 'const char *'.
16138         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16139         * tests/test-c-strcasestr.c (main): Likewise.
16140         * tests/test-mbscasestr1.c (main): Likewise.
16141         * tests/test-mbscasestr2.c (main): Likewise.
16142         * tests/test-memmem.c (main): Likewise.
16143         * tests/test-strstr.c (main): Likewise.
16144         * tests/test-strcasestr.c (main): Likewise.
16145
16146 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16147
16148         init.sh: change framework_failure_ to fail with status 99, not 1
16149         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16150         automake's parallel-tests rule that this is an unexpected failure,
16151         even if the test is listed in XFAIL_TESTS.
16152
16153 2010-06-11  Jim Meyering  <meyering@redhat.com>
16154
16155         test-inttostr: avoid warnings about 4-6KB literal strings
16156         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16157         Include "macros.h", for its definition of ASSERT.
16158         (CK): s/assert/ASSERT/
16159         * modules/inttostr-tests (Files): Add macros.h.
16160
16161         init.sh: don't use $ME_ or skip_ before they are defined
16162         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16163         their first uses.  Also hoist their companions: warn_, fail_,
16164         framework_failure_, $stderr_fileno.  Prompted by a patch from
16165         Stefano Lattarini.
16166
16167         test-sys_socket: avoid set-but-not-used warnings from gcc
16168         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16169         avoid warning about set-but-not-used variables.
16170
16171         test-xvasprintf: avoid 'const' discard warnings
16172         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16173         "const" when assigning from literal strings.
16174         (test_xasprintf): Add "void" in function argument list to placate
16175         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16176
16177         tests: avoid compilation warnings in argmatch and exclude tests...
16178         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16179         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16180         Since it always exits, declare with the "noreturn" attribute.
16181         * tests/test-argmatch.c: Likewise.
16182
16183         tests: avoid 'const' discard warnings in mbsstr tests
16184         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16185         * tests/test-mbsstr2.c (main): Likewise.
16186
16187         test-verify: avoid warning from gcc's -Wmissing-declarations
16188         * tests/test-verify.c (function): Declare to be static.
16189
16190         test-inttostr.c: include <string.h> for use of strcmp
16191         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16192
16193         test-linkat: avoid failed assertion on "other" architectures
16194         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16195         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16196         sparc: https://bugs.launchpad.net/bugs/591968
16197
16198 2010-06-11  Jim Meyering  <meyering@redhat.com>
16199
16200         printf.m4: avoid autoconf's "Expanded Before Required" warning
16201         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16202         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16203         autoconf warning.
16204
16205 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16206
16207         Replacement header templates are now named with ".in", not "_".
16208         * doc/gnulib-intro.texi: Correct.
16209
16210 2010-06-10  Jim Meyering  <meyering@redhat.com>
16211
16212         inttostr-tests: depend on snprintf, not snprintf-posix
16213         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16214         snprintf-posix, to avoid this aclocal failure:
16215           missing file gnulib-tests/vasnprintf.c
16216           configure.ac:45: error: expected source file, required through \
16217           AC_LIBSOURCES, not found
16218
16219 2010-06-10  Jim Meyering  <meyering@redhat.com>
16220
16221         inttostr: add a new function, inttostr, and tests
16222         The namesake function was not available.  The existence of the
16223         template file, inttostr.c makes its addition nontrivial.
16224         * lib/anytostr.c: Rename from inttostr.c.
16225         (anytostr): Rename from inttostr.
16226         * lib/inttostr.c: New file.
16227         * modules/inttostr (Files): Add anytostr.c.
16228         (Makefile.am): Set lib_SOURCES instead of ...
16229         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16230         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16231         * lib/offtostr.c: Likewise.
16232         * lib/uinttostr.c: Likewise.
16233         * lib/umaxtostr.c: Likewise.
16234         * modules/inttostr-tests: New file.
16235         * tests/test-inttostr.c: New file.  Test these functions.
16236
16237 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
16238             Bruno Haible  <bruno@clisp.org>
16239
16240         Add "Extending Gnulib" chapter to manual.
16241         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
16242         chapter.
16243         (Extending Gnulib): New chapter.
16244         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
16245         chapter.
16246
16247 2010-06-09  Bruno Haible  <bruno@clisp.org>
16248
16249         Avoid relocwrapper link errors due to gnulib replacement functions.
16250         * lib/areadlink.c: Use the system's malloc, realloc functions.
16251         (areadlink): Set errno to ENOMEM explicitly.
16252         * modules/areadlink (Depends-on): Remove malloc-posix.
16253         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16254
16255 2010-06-09  Bruno Haible  <bruno@clisp.org>
16256
16257         Avoid relocwrapper link errors due to gnulib replacement functions.
16258         * lib/canonicalize-lgpl.c: Use the system's malloc function.
16259         * lib/malloca.c: Likewise.
16260         * lib/relocatable.c: Likewise.
16261         * lib/progreloc.c: Use the system's malloc, sprintf functions.
16262         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
16263         * lib/setenv.c: Use the system's malloc, realloc functions.
16264         * lib/strerror.c: Use the system's sprintf function.
16265         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16266
16267 2010-06-04  Bruno Haible  <bruno@clisp.org>
16268
16269         Prefer documented low-level autoconf macro names.
16270         * m4/lib-link.m4: Use m4_translit instead of translit.
16271         * m4/environ.m4: Likewise.
16272         * m4/mathfunc.m4: Likewise.
16273         * m4/onceonly.m4: Likewise.
16274         * m4/stdint.m4: Likewise.
16275         Suggested by Eric Blake.
16276
16277 2010-06-04  Martin Lambers  <marlam@marlam.de>
16278             Bruno Haible  <bruno@clisp.org>
16279
16280         havelib: Allow library names with '+' characters.
16281         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16282         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
16283
16284 2010-06-09  Bruno Haible  <bruno@clisp.org>
16285
16286         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
16287         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
16288         realloc failed.
16289
16290 2010-06-08  Peter Simons  <simons@cryp.to>
16291
16292         maint.mk: make the news-check rule more configurable
16293         * top/maint.mk (news-check-lines-spec): New variable.
16294         (news-check): Use "sed -n 1,10p" in place of "head".
16295
16296 2010-06-07  Jim Meyering  <meyering@redhat.com>
16297
16298         do-release-commit-and-tag: fix typo in --help
16299         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
16300
16301         regex: avoid new dead-code warning with gcc-4.6.0
16302         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
16303         if-block containing a while-loop.  It's been unused for at least
16304         5 years.
16305
16306 2010-06-05  Bruno Haible  <bruno@clisp.org>
16307
16308         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
16309         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
16310
16311 2010-06-04  Bruno Haible  <bruno@clisp.org>
16312
16313         Update to GNU gettext 0.18.1.
16314         * modules/gettext (configure.ac): Require gettext infrastructure from
16315         version 0.18.1.
16316
16317 2010-06-03  Bruno Haible  <bruno@clisp.org>
16318
16319         Don't use AC_LIBOBJ with file names in subdirectories.
16320         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
16321         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
16322         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
16323         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
16324         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
16325         gl_LIBUNISTRING_LIBSOURCE.
16326         (Makefile.am): Augment lib_SOURCES here, conditionally.
16327         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16328
16329 2010-06-03  Bruno Haible  <bruno@clisp.org>
16330
16331         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16332         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16333         expansion does not end with a newline.
16334         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16335         unnecessary newline.
16336
16337 2010-06-03  Bruno Haible  <bruno@clisp.org>
16338
16339         Reduce dependencies.
16340         * tests/test-quotearg.h: New file, extracted from
16341         tests/test-quotearg.c.
16342         * tests/test-quotearg-simple.c: New file, extracted from
16343         tests/test-quotearg.c.
16344         * tests/test-quotearg.c: Don't include <ctype.h>.
16345         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16346         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16347         use_quote_double_quotes, use_quotearg_colon): Moved to
16348         tests/test-quotearg.h.
16349         (results_g, flag_results, custom_quotes, custom_results): Moved
16350         to tests/test-quotearg-simple.c.
16351         (main): Moved the part that does not depend on gettext to
16352         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16353         performed.
16354         * modules/quotearg-simple: New file.
16355         * modules/quotearg-simple-tests: New file.
16356         * modules/quotearg (Depends-on): Add quotearg-simple.
16357         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16358         (Files): Add tests/test-quotearg.h.
16359         Reported by Paolo Bonzini.
16360
16361 2010-06-03  Bruno Haible  <bruno@clisp.org>
16362
16363         Reduce dependencies.
16364         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16365
16366 2010-06-03  Bruno Haible  <bruno@clisp.org>
16367
16368         time: Undefine more broken macros.
16369         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16370         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16371         Reported by Eric Blake.
16372
16373 2010-06-03  Bruno Haible  <bruno@clisp.org>
16374
16375         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16376         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16377         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16378         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16379         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16380         Reported by Ludovic Courtès <ludo@gnu.org>.
16381
16382 2010-06-02  Eric Blake  <eblake@redhat.com>
16383
16384         time: work with mingw + pthreads-win32 library
16385         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16386         if timespec is defined only in pthread.h.
16387         * modules/time (Makefile.am): Substitute it.
16388         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16389         <pthread.h>, when needed.
16390         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16391         from the library.
16392
16393 2010-05-31  Bruno Haible  <bruno@clisp.org>
16394
16395         Avoid expanding two macros in the wrong order.
16396         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16397         gl_LIBUNISTRING if it is defined.
16398         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16399         autoconf >= 2.64.
16400         Reported by Ludovic Courtès <ludo@gnu.org>.
16401
16402 2010-05-27  Jim Meyering  <meyering@redhat.com>
16403
16404         maint.mk: also prohibit "#undef" of always-defined symbols
16405         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
16406         Allow more than one space before the symbol name.
16407         (sc_prohibit_always-defined_macros): Use grep's -E, now that
16408         the regexp uses alternation.
16409
16410 2010-05-26  Eric Blake  <eblake@redhat.com>
16411
16412         maint.mk: avoid echo -e
16413         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
16414         Convert all uses of echo -* to printf.
16415         Reported by Matthias Bolte.
16416
16417 2010-05-25  Bruno Haible  <bruno@clisp.org>
16418
16419         Update to GNU gettext 0.18, part 2.
16420         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
16421         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
16422
16423 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16424
16425         Add missing include in test-pwrite.c.
16426         * tests/test-pwrite.c: Include string.h, for strcmp.
16427
16428 2010-05-24  Bruno Haible  <bruno@clisp.org>
16429
16430         * NEWS: Mention requirement for Automake option 'subdir-objects'.
16431
16432 2010-05-24  Bruno Haible  <bruno@clisp.org>
16433
16434         Don't use conversion with transliteration in u{8,16,32}_strcoll.
16435         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
16436         iconveh_error argument.
16437         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
16438         U_STRCONV_TO_LOCALE.
16439         * lib/unistr/u16-strcoll.c: Likewise.
16440         * lib/unistr/u32-strcoll.c: Likewise.
16441         * modules/unistr/u8-strcoll (Depends-on): Add
16442         uniconv/u8-strconv-to-enc, localcharset. Remove
16443         uniconv/u8-strconv-to-locale.
16444         (configure.ac): Bump version number.
16445         * modules/unistr/u16-strcoll (Depends-on): Add
16446         uniconv/u16-strconv-to-enc, localcharset. Remove
16447         uniconv/u16-strconv-to-locale.
16448         (configure.ac): Bump version number.
16449         * modules/unistr/u32-strcoll (Depends-on): Add
16450         uniconv/u32-strconv-to-enc, localcharset. Remove
16451         uniconv/u32-strconv-to-locale.
16452         (configure.ac): Bump version number.
16453
16454 2010-05-24  Bruno Haible  <bruno@clisp.org>
16455
16456         Avoid a test failure on NetBSD 5.0.
16457         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
16458         an iconv() bug.
16459
16460 2010-05-24  Bruno Haible  <bruno@clisp.org>
16461
16462         Adjust #include directive style.
16463         * modules/regex (Includes): Recommend to write <regex.h>.
16464
16465 2010-05-24  Bruno Haible  <bruno@clisp.org>
16466
16467         regex: Don't require alloca.
16468         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
16469         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
16470         only inside if (0).
16471
16472 2010-05-23  Jim Meyering  <meyering@redhat.com>
16473
16474         test-renameat.c: include <sys/stat.h>
16475         * tests/test-renameat.c: Include <sys/stat.h>; required for
16476         definition of S_IS* macros.
16477
16478 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
16479
16480         Update maintainer documentation for 'relocatable-prog' module.
16481         * doc/relocatable-maint.texi: Update.
16482         Comments by Bruno Haible.
16483
16484 2010-05-23  Bruno Haible  <bruno@clisp.org>
16485
16486         git-merge-changelog: Enable --split-merged-entry by default.
16487         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
16488         (usage): Don't mention this option any more.
16489         Reported by Ralf Wildenhues.
16490
16491 2010-05-23  Jim Meyering  <meyering@redhat.com>
16492
16493         test-pwrite: do not leave behind a test file named "out"
16494         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
16495         The trivial-looking use of init.sh is really necessary.
16496         It ensures that the temporary file, "out", is created in
16497         a temporary directory, and removed upon termination.
16498         * tests/test-pwrite.sh: Re-add file.
16499         * modules/pwrite-tests: Reference it.
16500
16501 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16502
16503         Fix output redirection buglet in init.sh.
16504         * tests/init.sh: Fix redirection of stderr.
16505
16506 2010-05-20  Simon Josefsson  <simon@josefsson.org>
16507
16508         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
16509
16510 2010-05-17  Simon Josefsson  <simon@josefsson.org>
16511
16512         * modules/valgrind-tests: New file.
16513         * m4/valgrind-tests.m4: New file.
16514         * doc/valgrind-tests.texi: New file.
16515         * doc/gnulib.texi (Running self-tests under valgrind): New
16516         section.
16517
16518 2010-05-19  Bruno Haible  <bruno@clisp.org>
16519
16520         Clean up dead code in recent commit.
16521         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
16522         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
16523         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
16524         Suggested by Paolo Bonzini.
16525
16526 2010-05-19  Bruno Haible  <bruno@clisp.org>
16527
16528         Avoid valgrind error reports from libunistring.
16529         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
16530         * modules/libunistring (Files): Add it.
16531         * modules/libunistring-optional (Files): Likewise.
16532
16533 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
16534             Bruno Haible  <bruno@clisp.org>
16535
16536         New module 'libunistring-optional'.
16537         * modules/libunistring-optional: New file.
16538         * m4/libunistring-base.m4: New file.
16539         * m4/libunistring-optional.m4: New file.
16540         * lib/unicase.in.h: Renamed from lib/unicase.h.
16541         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
16542         * lib/unictype.in.h: Renamed from lib/unictype.h.
16543         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
16544         * lib/uniname.in.h: Renamed from lib/uniname.h.
16545         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
16546         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
16547         * lib/unistr.in.h: Renamed from lib/unistr.h.
16548         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
16549         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
16550         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
16551         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
16552         gl_LIBUNISTRING. If the library was found, determine the installed
16553         version and set LIBUNISTRING_VERSION.
16554         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
16555         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
16556         handle a configuration option --with-included-libunistring.
16557         * modules/libunistring (Files): Add m4/absolute-header.m4.
16558         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
16559         Add m4/libunistring-base.m4.
16560         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16561         (Makefile.am): Build unicase.h from unicase.in.h.
16562         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
16563         Add m4/libunistring-base.m4.
16564         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16565         (Makefile.am): Build uniconv.h from uniconv.in.h.
16566         * modules/unictype/base (Files): Use unictype.in.h instead of
16567         unictype.h. Add m4/libunistring-base.m4.
16568         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16569         (Makefile.am): Build unictype.h from unictype.in.h.
16570         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
16571         Add m4/libunistring-base.m4.
16572         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16573         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
16574         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
16575         Add m4/libunistring-base.m4.
16576         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16577         (Makefile.am): Build uniname.h from uniname.in.h.
16578         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
16579         Add m4/libunistring-base.m4.
16580         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16581         (Makefile.am): Build uninorm.h from uninorm.in.h.
16582         * modules/unistdio/base (Files): Use unistdio.in.h instead of
16583         unistdio.h. Add m4/libunistring-base.m4.
16584         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16585         (Makefile.am): Build unistdio.h from unistdio.in.h.
16586         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
16587         Add m4/libunistring-base.m4.
16588         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16589         (Makefile.am): Build unistr.h from unistr.in.h.
16590         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
16591         Add m4/libunistring-base.m4.
16592         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16593         (Makefile.am): Build unitypes.h from unitypes.in.h.
16594         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
16595         Add m4/libunistring-base.m4.
16596         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16597         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
16598         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
16599         uniwidth.h. Add m4/libunistring-base.m4.
16600         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16601         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
16602         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
16603         instead of augmenting lib_SOURCES.
16604         * modules/unicase/empty-suffix-context: Likewise.
16605         * modules/unicase/locale-language: Likewise.
16606         * modules/unicase/tolower: Likewise.
16607         * modules/unicase/totitle: Likewise.
16608         * modules/unicase/toupper: Likewise.
16609         * modules/unicase/u8-casecmp: Likewise.
16610         * modules/unicase/u8-casecoll: Likewise.
16611         * modules/unicase/u8-casefold: Likewise.
16612         * modules/unicase/u8-casexfrm: Likewise.
16613         * modules/unicase/u8-ct-casefold: Likewise.
16614         * modules/unicase/u8-ct-tolower: Likewise.
16615         * modules/unicase/u8-ct-totitle: Likewise.
16616         * modules/unicase/u8-ct-toupper: Likewise.
16617         * modules/unicase/u8-is-cased: Likewise.
16618         * modules/unicase/u8-is-casefolded: Likewise.
16619         * modules/unicase/u8-is-lowercase: Likewise.
16620         * modules/unicase/u8-is-titlecase: Likewise.
16621         * modules/unicase/u8-is-uppercase: Likewise.
16622         * modules/unicase/u8-prefix-context: Likewise.
16623         * modules/unicase/u8-suffix-context: Likewise.
16624         * modules/unicase/u8-tolower: Likewise.
16625         * modules/unicase/u8-totitle: Likewise.
16626         * modules/unicase/u8-toupper: Likewise.
16627         * modules/unicase/u16-casecmp: Likewise.
16628         * modules/unicase/u16-casecoll: Likewise.
16629         * modules/unicase/u16-casefold: Likewise.
16630         * modules/unicase/u16-casexfrm: Likewise.
16631         * modules/unicase/u16-ct-casefold: Likewise.
16632         * modules/unicase/u16-ct-tolower: Likewise.
16633         * modules/unicase/u16-ct-totitle: Likewise.
16634         * modules/unicase/u16-ct-toupper: Likewise.
16635         * modules/unicase/u16-is-cased: Likewise.
16636         * modules/unicase/u16-is-casefolded: Likewise.
16637         * modules/unicase/u16-is-lowercase: Likewise.
16638         * modules/unicase/u16-is-titlecase: Likewise.
16639         * modules/unicase/u16-is-uppercase: Likewise.
16640         * modules/unicase/u16-prefix-context: Likewise.
16641         * modules/unicase/u16-suffix-context: Likewise.
16642         * modules/unicase/u16-tolower: Likewise.
16643         * modules/unicase/u16-totitle: Likewise.
16644         * modules/unicase/u16-toupper: Likewise.
16645         * modules/unicase/u32-casecmp: Likewise.
16646         * modules/unicase/u32-casecoll: Likewise.
16647         * modules/unicase/u32-casefold: Likewise.
16648         * modules/unicase/u32-casexfrm: Likewise.
16649         * modules/unicase/u32-ct-casefold: Likewise.
16650         * modules/unicase/u32-ct-tolower: Likewise.
16651         * modules/unicase/u32-ct-totitle: Likewise.
16652         * modules/unicase/u32-ct-toupper: Likewise.
16653         * modules/unicase/u32-is-cased: Likewise.
16654         * modules/unicase/u32-is-casefolded: Likewise.
16655         * modules/unicase/u32-is-lowercase: Likewise.
16656         * modules/unicase/u32-is-titlecase: Likewise.
16657         * modules/unicase/u32-is-uppercase: Likewise.
16658         * modules/unicase/u32-prefix-context: Likewise.
16659         * modules/unicase/u32-suffix-context: Likewise.
16660         * modules/unicase/u32-tolower: Likewise.
16661         * modules/unicase/u32-totitle: Likewise.
16662         * modules/unicase/u32-toupper: Likewise.
16663         * modules/unicase/ulc-casecmp: Likewise.
16664         * modules/unicase/ulc-casecoll: Likewise.
16665         * modules/unicase/ulc-casexfrm: Likewise.
16666         * modules/uniconv/u8-conv-from-enc: Likewise.
16667         * modules/uniconv/u8-conv-to-enc: Likewise.
16668         * modules/uniconv/u8-strconv-from-enc: Likewise.
16669         * modules/uniconv/u8-strconv-from-locale: Likewise.
16670         * modules/uniconv/u8-strconv-to-enc: Likewise.
16671         * modules/uniconv/u8-strconv-to-locale: Likewise.
16672         * modules/uniconv/u16-conv-from-enc: Likewise.
16673         * modules/uniconv/u16-conv-to-enc: Likewise.
16674         * modules/uniconv/u16-strconv-from-enc: Likewise.
16675         * modules/uniconv/u16-strconv-from-locale: Likewise.
16676         * modules/uniconv/u16-strconv-to-enc: Likewise.
16677         * modules/uniconv/u16-strconv-to-locale: Likewise.
16678         * modules/uniconv/u32-conv-from-enc: Likewise.
16679         * modules/uniconv/u32-conv-to-enc: Likewise.
16680         * modules/uniconv/u32-strconv-from-enc: Likewise.
16681         * modules/uniconv/u32-strconv-from-locale: Likewise.
16682         * modules/uniconv/u32-strconv-to-enc: Likewise.
16683         * modules/uniconv/u32-strconv-to-locale: Likewise.
16684         * modules/unictype/bidicategory-byname: Likewise.
16685         * modules/unictype/bidicategory-name: Likewise.
16686         * modules/unictype/bidicategory-of: Likewise.
16687         * modules/unictype/bidicategory-test: Likewise.
16688         * modules/unictype/block-list: Likewise.
16689         * modules/unictype/block-test: Likewise.
16690         * modules/unictype/category-C: Likewise.
16691         * modules/unictype/category-Cc: Likewise.
16692         * modules/unictype/category-Cf: Likewise.
16693         * modules/unictype/category-Cn: Likewise.
16694         * modules/unictype/category-Co: Likewise.
16695         * modules/unictype/category-Cs: Likewise.
16696         * modules/unictype/category-L: Likewise.
16697         * modules/unictype/category-Ll: Likewise.
16698         * modules/unictype/category-Lm: Likewise.
16699         * modules/unictype/category-Lo: Likewise.
16700         * modules/unictype/category-Lt: Likewise.
16701         * modules/unictype/category-Lu: Likewise.
16702         * modules/unictype/category-M: Likewise.
16703         * modules/unictype/category-Mc: Likewise.
16704         * modules/unictype/category-Me: Likewise.
16705         * modules/unictype/category-Mn: Likewise.
16706         * modules/unictype/category-N: Likewise.
16707         * modules/unictype/category-Nd: Likewise.
16708         * modules/unictype/category-Nl: Likewise.
16709         * modules/unictype/category-No: Likewise.
16710         * modules/unictype/category-P: Likewise.
16711         * modules/unictype/category-Pc: Likewise.
16712         * modules/unictype/category-Pd: Likewise.
16713         * modules/unictype/category-Pe: Likewise.
16714         * modules/unictype/category-Pf: Likewise.
16715         * modules/unictype/category-Pi: Likewise.
16716         * modules/unictype/category-Po: Likewise.
16717         * modules/unictype/category-Ps: Likewise.
16718         * modules/unictype/category-S: Likewise.
16719         * modules/unictype/category-Sc: Likewise.
16720         * modules/unictype/category-Sk: Likewise.
16721         * modules/unictype/category-Sm: Likewise.
16722         * modules/unictype/category-So: Likewise.
16723         * modules/unictype/category-Z: Likewise.
16724         * modules/unictype/category-Zl: Likewise.
16725         * modules/unictype/category-Zp: Likewise.
16726         * modules/unictype/category-Zs: Likewise.
16727         * modules/unictype/category-and: Likewise.
16728         * modules/unictype/category-and-not: Likewise.
16729         * modules/unictype/category-byname: Likewise.
16730         * modules/unictype/category-name: Likewise.
16731         * modules/unictype/category-none: Likewise.
16732         * modules/unictype/category-of: Likewise.
16733         * modules/unictype/category-or: Likewise.
16734         * modules/unictype/category-test: Likewise.
16735         * modules/unictype/combining-class: Likewise.
16736         * modules/unictype/ctype-alnum: Likewise.
16737         * modules/unictype/ctype-alpha: Likewise.
16738         * modules/unictype/ctype-blank: Likewise.
16739         * modules/unictype/ctype-cntrl: Likewise.
16740         * modules/unictype/ctype-digit: Likewise.
16741         * modules/unictype/ctype-graph: Likewise.
16742         * modules/unictype/ctype-lower: Likewise.
16743         * modules/unictype/ctype-print: Likewise.
16744         * modules/unictype/ctype-punct: Likewise.
16745         * modules/unictype/ctype-space: Likewise.
16746         * modules/unictype/ctype-upper: Likewise.
16747         * modules/unictype/ctype-xdigit: Likewise.
16748         * modules/unictype/decimal-digit: Likewise.
16749         * modules/unictype/digit: Likewise.
16750         * modules/unictype/mirror: Likewise.
16751         * modules/unictype/numeric: Likewise.
16752         * modules/unictype/property-alphabetic: Likewise.
16753         * modules/unictype/property-ascii-hex-digit: Likewise.
16754         * modules/unictype/property-bidi-arabic-digit: Likewise.
16755         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
16756         * modules/unictype/property-bidi-block-separator: Likewise.
16757         * modules/unictype/property-bidi-boundary-neutral: Likewise.
16758         * modules/unictype/property-bidi-common-separator: Likewise.
16759         * modules/unictype/property-bidi-control: Likewise.
16760         * modules/unictype/property-bidi-embedding-or-override: Likewise.
16761         * modules/unictype/property-bidi-eur-num-separator: Likewise.
16762         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
16763         * modules/unictype/property-bidi-european-digit: Likewise.
16764         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
16765         * modules/unictype/property-bidi-left-to-right: Likewise.
16766         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
16767         * modules/unictype/property-bidi-other-neutral: Likewise.
16768         * modules/unictype/property-bidi-pdf: Likewise.
16769         * modules/unictype/property-bidi-segment-separator: Likewise.
16770         * modules/unictype/property-bidi-whitespace: Likewise.
16771         * modules/unictype/property-byname: Likewise.
16772         * modules/unictype/property-combining: Likewise.
16773         * modules/unictype/property-composite: Likewise.
16774         * modules/unictype/property-currency-symbol: Likewise.
16775         * modules/unictype/property-dash: Likewise.
16776         * modules/unictype/property-decimal-digit: Likewise.
16777         * modules/unictype/property-default-ignorable-code-point: Likewise.
16778         * modules/unictype/property-deprecated: Likewise.
16779         * modules/unictype/property-diacritic: Likewise.
16780         * modules/unictype/property-extender: Likewise.
16781         * modules/unictype/property-format-control: Likewise.
16782         * modules/unictype/property-grapheme-base: Likewise.
16783         * modules/unictype/property-grapheme-extend: Likewise.
16784         * modules/unictype/property-grapheme-link: Likewise.
16785         * modules/unictype/property-hex-digit: Likewise.
16786         * modules/unictype/property-hyphen: Likewise.
16787         * modules/unictype/property-id-continue: Likewise.
16788         * modules/unictype/property-id-start: Likewise.
16789         * modules/unictype/property-ideographic: Likewise.
16790         * modules/unictype/property-ids-binary-operator: Likewise.
16791         * modules/unictype/property-ids-trinary-operator: Likewise.
16792         * modules/unictype/property-ignorable-control: Likewise.
16793         * modules/unictype/property-iso-control: Likewise.
16794         * modules/unictype/property-join-control: Likewise.
16795         * modules/unictype/property-left-of-pair: Likewise.
16796         * modules/unictype/property-line-separator: Likewise.
16797         * modules/unictype/property-logical-order-exception: Likewise.
16798         * modules/unictype/property-lowercase: Likewise.
16799         * modules/unictype/property-math: Likewise.
16800         * modules/unictype/property-non-break: Likewise.
16801         * modules/unictype/property-not-a-character: Likewise.
16802         * modules/unictype/property-numeric: Likewise.
16803         * modules/unictype/property-other-alphabetic: Likewise.
16804         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
16805         * modules/unictype/property-other-grapheme-extend: Likewise.
16806         * modules/unictype/property-other-id-continue: Likewise.
16807         * modules/unictype/property-other-id-start: Likewise.
16808         * modules/unictype/property-other-lowercase: Likewise.
16809         * modules/unictype/property-other-math: Likewise.
16810         * modules/unictype/property-other-uppercase: Likewise.
16811         * modules/unictype/property-paired-punctuation: Likewise.
16812         * modules/unictype/property-paragraph-separator: Likewise.
16813         * modules/unictype/property-pattern-syntax: Likewise.
16814         * modules/unictype/property-pattern-white-space: Likewise.
16815         * modules/unictype/property-private-use: Likewise.
16816         * modules/unictype/property-punctuation: Likewise.
16817         * modules/unictype/property-quotation-mark: Likewise.
16818         * modules/unictype/property-radical: Likewise.
16819         * modules/unictype/property-sentence-terminal: Likewise.
16820         * modules/unictype/property-soft-dotted: Likewise.
16821         * modules/unictype/property-space: Likewise.
16822         * modules/unictype/property-terminal-punctuation: Likewise.
16823         * modules/unictype/property-test: Likewise.
16824         * modules/unictype/property-titlecase: Likewise.
16825         * modules/unictype/property-unassigned-code-value: Likewise.
16826         * modules/unictype/property-unified-ideograph: Likewise.
16827         * modules/unictype/property-uppercase: Likewise.
16828         * modules/unictype/property-variation-selector: Likewise.
16829         * modules/unictype/property-white-space: Likewise.
16830         * modules/unictype/property-xid-continue: Likewise.
16831         * modules/unictype/property-xid-start: Likewise.
16832         * modules/unictype/property-zero-width: Likewise.
16833         * modules/unictype/scripts: Likewise.
16834         * modules/unictype/syntax-c-ident: Likewise.
16835         * modules/unictype/syntax-c-whitespace: Likewise.
16836         * modules/unictype/syntax-java-ident: Likewise.
16837         * modules/unictype/syntax-java-whitespace: Likewise.
16838         * modules/unilbrk/u8-possible-linebreaks: Likewise.
16839         * modules/unilbrk/u8-width-linebreaks: Likewise.
16840         * modules/unilbrk/u16-possible-linebreaks: Likewise.
16841         * modules/unilbrk/u16-width-linebreaks: Likewise.
16842         * modules/unilbrk/u32-possible-linebreaks: Likewise.
16843         * modules/unilbrk/u32-width-linebreaks: Likewise.
16844         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
16845         * modules/unilbrk/ulc-width-linebreaks: Likewise.
16846         * modules/uniname/uniname: Likewise.
16847         * modules/uninorm/canonical-decomposition: Likewise.
16848         * modules/uninorm/composition: Likewise.
16849         * modules/uninorm/decomposing-form: Likewise.
16850         * modules/uninorm/decomposition: Likewise.
16851         * modules/uninorm/filter: Likewise.
16852         * modules/uninorm/nfc: Likewise.
16853         * modules/uninorm/nfd: Likewise.
16854         * modules/uninorm/nfkc: Likewise.
16855         * modules/uninorm/nfkd: Likewise.
16856         * modules/uninorm/u8-normalize: Likewise.
16857         * modules/uninorm/u8-normcmp: Likewise.
16858         * modules/uninorm/u8-normcoll: Likewise.
16859         * modules/uninorm/u8-normxfrm: Likewise.
16860         * modules/uninorm/u16-normalize: Likewise.
16861         * modules/uninorm/u16-normcmp: Likewise.
16862         * modules/uninorm/u16-normcoll: Likewise.
16863         * modules/uninorm/u16-normxfrm: Likewise.
16864         * modules/uninorm/u32-normalize: Likewise.
16865         * modules/uninorm/u32-normcmp: Likewise.
16866         * modules/uninorm/u32-normcoll: Likewise.
16867         * modules/uninorm/u32-normxfrm: Likewise.
16868         * modules/unistdio/u8-asnprintf: Likewise.
16869         * modules/unistdio/u8-asprintf: Likewise.
16870         * modules/unistdio/u8-snprintf: Likewise.
16871         * modules/unistdio/u8-sprintf: Likewise.
16872         * modules/unistdio/u8-u8-asnprintf: Likewise.
16873         * modules/unistdio/u8-u8-asprintf: Likewise.
16874         * modules/unistdio/u8-u8-snprintf: Likewise.
16875         * modules/unistdio/u8-u8-sprintf: Likewise.
16876         * modules/unistdio/u8-u8-vasnprintf: Likewise.
16877         * modules/unistdio/u8-u8-vasprintf: Likewise.
16878         * modules/unistdio/u8-u8-vsnprintf: Likewise.
16879         * modules/unistdio/u8-u8-vsprintf: Likewise.
16880         * modules/unistdio/u8-vasnprintf: Likewise.
16881         * modules/unistdio/u8-vasprintf: Likewise.
16882         * modules/unistdio/u8-vsnprintf: Likewise.
16883         * modules/unistdio/u8-vsprintf: Likewise.
16884         * modules/unistdio/u16-asnprintf: Likewise.
16885         * modules/unistdio/u16-asprintf: Likewise.
16886         * modules/unistdio/u16-snprintf: Likewise.
16887         * modules/unistdio/u16-sprintf: Likewise.
16888         * modules/unistdio/u16-u16-asnprintf: Likewise.
16889         * modules/unistdio/u16-u16-asprintf: Likewise.
16890         * modules/unistdio/u16-u16-snprintf: Likewise.
16891         * modules/unistdio/u16-u16-sprintf: Likewise.
16892         * modules/unistdio/u16-u16-vasnprintf: Likewise.
16893         * modules/unistdio/u16-u16-vasprintf: Likewise.
16894         * modules/unistdio/u16-u16-vsnprintf: Likewise.
16895         * modules/unistdio/u16-u16-vsprintf: Likewise.
16896         * modules/unistdio/u16-vasnprintf: Likewise.
16897         * modules/unistdio/u16-vasprintf: Likewise.
16898         * modules/unistdio/u16-vsnprintf: Likewise.
16899         * modules/unistdio/u16-vsprintf: Likewise.
16900         * modules/unistdio/u32-asnprintf: Likewise.
16901         * modules/unistdio/u32-asprintf: Likewise.
16902         * modules/unistdio/u32-snprintf: Likewise.
16903         * modules/unistdio/u32-sprintf: Likewise.
16904         * modules/unistdio/u32-u32-asnprintf: Likewise.
16905         * modules/unistdio/u32-u32-asprintf: Likewise.
16906         * modules/unistdio/u32-u32-snprintf: Likewise.
16907         * modules/unistdio/u32-u32-sprintf: Likewise.
16908         * modules/unistdio/u32-u32-vasnprintf: Likewise.
16909         * modules/unistdio/u32-u32-vasprintf: Likewise.
16910         * modules/unistdio/u32-u32-vsnprintf: Likewise.
16911         * modules/unistdio/u32-u32-vsprintf: Likewise.
16912         * modules/unistdio/u32-vasnprintf: Likewise.
16913         * modules/unistdio/u32-vasprintf: Likewise.
16914         * modules/unistdio/u32-vsnprintf: Likewise.
16915         * modules/unistdio/u32-vsprintf: Likewise.
16916         * modules/unistdio/ulc-asnprintf: Likewise.
16917         * modules/unistdio/ulc-asprintf: Likewise.
16918         * modules/unistdio/ulc-fprintf: Likewise.
16919         * modules/unistdio/ulc-snprintf: Likewise.
16920         * modules/unistdio/ulc-sprintf: Likewise.
16921         * modules/unistdio/ulc-vasnprintf: Likewise.
16922         * modules/unistdio/ulc-vasprintf: Likewise.
16923         * modules/unistdio/ulc-vfprintf: Likewise.
16924         * modules/unistdio/ulc-vsnprintf: Likewise.
16925         * modules/unistdio/ulc-vsprintf: Likewise.
16926         * modules/unistr/u8-check: Likewise.
16927         * modules/unistr/u8-chr: Likewise.
16928         * modules/unistr/u8-cmp: Likewise.
16929         * modules/unistr/u8-cmp2: Likewise.
16930         * modules/unistr/u8-cpy: Likewise.
16931         * modules/unistr/u8-cpy-alloc: Likewise.
16932         * modules/unistr/u8-endswith: Likewise.
16933         * modules/unistr/u8-mblen: Likewise.
16934         * modules/unistr/u8-mbsnlen: Likewise.
16935         * modules/unistr/u8-mbtouc: Likewise.
16936         * modules/unistr/u8-mbtouc-unsafe: Likewise.
16937         * modules/unistr/u8-mbtoucr: Likewise.
16938         * modules/unistr/u8-move: Likewise.
16939         * modules/unistr/u8-next: Likewise.
16940         * modules/unistr/u8-prev: Likewise.
16941         * modules/unistr/u8-set: Likewise.
16942         * modules/unistr/u8-startswith: Likewise.
16943         * modules/unistr/u8-stpcpy: Likewise.
16944         * modules/unistr/u8-stpncpy: Likewise.
16945         * modules/unistr/u8-strcat: Likewise.
16946         * modules/unistr/u8-strchr: Likewise.
16947         * modules/unistr/u8-strcmp: Likewise.
16948         * modules/unistr/u8-strcoll: Likewise.
16949         * modules/unistr/u8-strcpy: Likewise.
16950         * modules/unistr/u8-strcspn: Likewise.
16951         * modules/unistr/u8-strdup: Likewise.
16952         * modules/unistr/u8-strlen: Likewise.
16953         * modules/unistr/u8-strmblen: Likewise.
16954         * modules/unistr/u8-strmbtouc: Likewise.
16955         * modules/unistr/u8-strncat: Likewise.
16956         * modules/unistr/u8-strncmp: Likewise.
16957         * modules/unistr/u8-strncpy: Likewise.
16958         * modules/unistr/u8-strnlen: Likewise.
16959         * modules/unistr/u8-strpbrk: Likewise.
16960         * modules/unistr/u8-strrchr: Likewise.
16961         * modules/unistr/u8-strspn: Likewise.
16962         * modules/unistr/u8-strstr: Likewise.
16963         * modules/unistr/u8-strtok: Likewise.
16964         * modules/unistr/u8-to-u16: Likewise.
16965         * modules/unistr/u8-to-u32: Likewise.
16966         * modules/unistr/u8-uctomb: Likewise.
16967         * modules/unistr/u16-check: Likewise.
16968         * modules/unistr/u16-chr: Likewise.
16969         * modules/unistr/u16-cmp: Likewise.
16970         * modules/unistr/u16-cmp2: Likewise.
16971         * modules/unistr/u16-cpy: Likewise.
16972         * modules/unistr/u16-cpy-alloc: Likewise.
16973         * modules/unistr/u16-endswith: Likewise.
16974         * modules/unistr/u16-mblen: Likewise.
16975         * modules/unistr/u16-mbsnlen: Likewise.
16976         * modules/unistr/u16-mbtouc: Likewise.
16977         * modules/unistr/u16-mbtouc-unsafe: Likewise.
16978         * modules/unistr/u16-mbtoucr: Likewise.
16979         * modules/unistr/u16-move: Likewise.
16980         * modules/unistr/u16-next: Likewise.
16981         * modules/unistr/u16-prev: Likewise.
16982         * modules/unistr/u16-set: Likewise.
16983         * modules/unistr/u16-startswith: Likewise.
16984         * modules/unistr/u16-stpcpy: Likewise.
16985         * modules/unistr/u16-stpncpy: Likewise.
16986         * modules/unistr/u16-strcat: Likewise.
16987         * modules/unistr/u16-strchr: Likewise.
16988         * modules/unistr/u16-strcmp: Likewise.
16989         * modules/unistr/u16-strcoll: Likewise.
16990         * modules/unistr/u16-strcpy: Likewise.
16991         * modules/unistr/u16-strcspn: Likewise.
16992         * modules/unistr/u16-strdup: Likewise.
16993         * modules/unistr/u16-strlen: Likewise.
16994         * modules/unistr/u16-strmblen: Likewise.
16995         * modules/unistr/u16-strmbtouc: Likewise.
16996         * modules/unistr/u16-strncat: Likewise.
16997         * modules/unistr/u16-strncmp: Likewise.
16998         * modules/unistr/u16-strncpy: Likewise.
16999         * modules/unistr/u16-strnlen: Likewise.
17000         * modules/unistr/u16-strpbrk: Likewise.
17001         * modules/unistr/u16-strrchr: Likewise.
17002         * modules/unistr/u16-strspn: Likewise.
17003         * modules/unistr/u16-strstr: Likewise.
17004         * modules/unistr/u16-strtok: Likewise.
17005         * modules/unistr/u16-to-u32: Likewise.
17006         * modules/unistr/u16-to-u8: Likewise.
17007         * modules/unistr/u16-uctomb: Likewise.
17008         * modules/unistr/u32-check: Likewise.
17009         * modules/unistr/u32-chr: Likewise.
17010         * modules/unistr/u32-cmp: Likewise.
17011         * modules/unistr/u32-cmp2: Likewise.
17012         * modules/unistr/u32-cpy: Likewise.
17013         * modules/unistr/u32-cpy-alloc: Likewise.
17014         * modules/unistr/u32-endswith: Likewise.
17015         * modules/unistr/u32-mblen: Likewise.
17016         * modules/unistr/u32-mbsnlen: Likewise.
17017         * modules/unistr/u32-mbtouc: Likewise.
17018         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17019         * modules/unistr/u32-mbtoucr: Likewise.
17020         * modules/unistr/u32-move: Likewise.
17021         * modules/unistr/u32-next: Likewise.
17022         * modules/unistr/u32-prev: Likewise.
17023         * modules/unistr/u32-set: Likewise.
17024         * modules/unistr/u32-startswith: Likewise.
17025         * modules/unistr/u32-stpcpy: Likewise.
17026         * modules/unistr/u32-stpncpy: Likewise.
17027         * modules/unistr/u32-strcat: Likewise.
17028         * modules/unistr/u32-strchr: Likewise.
17029         * modules/unistr/u32-strcmp: Likewise.
17030         * modules/unistr/u32-strcoll: Likewise.
17031         * modules/unistr/u32-strcpy: Likewise.
17032         * modules/unistr/u32-strcspn: Likewise.
17033         * modules/unistr/u32-strdup: Likewise.
17034         * modules/unistr/u32-strlen: Likewise.
17035         * modules/unistr/u32-strmblen: Likewise.
17036         * modules/unistr/u32-strmbtouc: Likewise.
17037         * modules/unistr/u32-strncat: Likewise.
17038         * modules/unistr/u32-strncmp: Likewise.
17039         * modules/unistr/u32-strncpy: Likewise.
17040         * modules/unistr/u32-strnlen: Likewise.
17041         * modules/unistr/u32-strpbrk: Likewise.
17042         * modules/unistr/u32-strrchr: Likewise.
17043         * modules/unistr/u32-strspn: Likewise.
17044         * modules/unistr/u32-strstr: Likewise.
17045         * modules/unistr/u32-strtok: Likewise.
17046         * modules/unistr/u32-to-u16: Likewise.
17047         * modules/unistr/u32-to-u8: Likewise.
17048         * modules/unistr/u32-uctomb: Likewise.
17049         * modules/uniwbrk/u8-wordbreaks: Likewise.
17050         * modules/uniwbrk/u16-wordbreaks: Likewise.
17051         * modules/uniwbrk/u32-wordbreaks: Likewise.
17052         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17053         * modules/uniwbrk/wordbreak-property: Likewise.
17054         * modules/uniwidth/u8-strwidth: Likewise.
17055         * modules/uniwidth/u8-width: Likewise.
17056         * modules/uniwidth/u16-strwidth: Likewise.
17057         * modules/uniwidth/u16-width: Likewise.
17058         * modules/uniwidth/u32-strwidth: Likewise.
17059         * modules/uniwidth/u32-width: Likewise.
17060         * modules/uniwidth/width: Likewise.
17061         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17062         with $(LIBUNISTRING).
17063         * modules/unicase/ignorable-tests: Likewise.
17064         * modules/unicase/locale-language-tests: Likewise.
17065         * modules/unicase/tolower-tests: Likewise.
17066         * modules/unicase/totitle-tests: Likewise.
17067         * modules/unicase/toupper-tests: Likewise.
17068         * modules/unicase/u8-casecmp-tests: Likewise.
17069         * modules/unicase/u8-casecoll-tests: Likewise.
17070         * modules/unicase/u8-casefold-tests: Likewise.
17071         * modules/unicase/u8-is-cased-tests: Likewise.
17072         * modules/unicase/u8-is-casefolded-tests: Likewise.
17073         * modules/unicase/u8-is-lowercase-tests: Likewise.
17074         * modules/unicase/u8-is-titlecase-tests: Likewise.
17075         * modules/unicase/u8-is-uppercase-tests: Likewise.
17076         * modules/unicase/u8-tolower-tests: Likewise.
17077         * modules/unicase/u8-totitle-tests: Likewise.
17078         * modules/unicase/u8-toupper-tests: Likewise.
17079         * modules/unicase/u16-casecmp-tests: Likewise.
17080         * modules/unicase/u16-casecoll-tests: Likewise.
17081         * modules/unicase/u16-casefold-tests: Likewise.
17082         * modules/unicase/u16-is-cased-tests: Likewise.
17083         * modules/unicase/u16-is-casefolded-tests: Likewise.
17084         * modules/unicase/u16-is-lowercase-tests: Likewise.
17085         * modules/unicase/u16-is-titlecase-tests: Likewise.
17086         * modules/unicase/u16-is-uppercase-tests: Likewise.
17087         * modules/unicase/u16-tolower-tests: Likewise.
17088         * modules/unicase/u16-totitle-tests: Likewise.
17089         * modules/unicase/u16-toupper-tests: Likewise.
17090         * modules/unicase/u32-casecmp-tests: Likewise.
17091         * modules/unicase/u32-casecoll-tests: Likewise.
17092         * modules/unicase/u32-casefold-tests: Likewise.
17093         * modules/unicase/u32-is-cased-tests: Likewise.
17094         * modules/unicase/u32-is-casefolded-tests: Likewise.
17095         * modules/unicase/u32-is-lowercase-tests: Likewise.
17096         * modules/unicase/u32-is-titlecase-tests: Likewise.
17097         * modules/unicase/u32-is-uppercase-tests: Likewise.
17098         * modules/unicase/u32-tolower-tests: Likewise.
17099         * modules/unicase/u32-totitle-tests: Likewise.
17100         * modules/unicase/u32-toupper-tests: Likewise.
17101         * modules/unicase/ulc-casecmp-tests: Likewise.
17102         * modules/unicase/ulc-casecoll-tests: Likewise.
17103         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17104         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17105         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17106         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17107         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17108         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17109         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17110         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17111         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17112         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17113         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17114         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17115         * modules/unictype/bidicategory-byname-tests: Likewise.
17116         * modules/unictype/bidicategory-name-tests: Likewise.
17117         * modules/unictype/bidicategory-of-tests: Likewise.
17118         * modules/unictype/bidicategory-test-tests: Likewise.
17119         * modules/unictype/block-list-tests: Likewise.
17120         * modules/unictype/block-of-tests: Likewise.
17121         * modules/unictype/block-test-tests: Likewise.
17122         * modules/unictype/category-C-tests: Likewise.
17123         * modules/unictype/category-Cc-tests: Likewise.
17124         * modules/unictype/category-Cf-tests: Likewise.
17125         * modules/unictype/category-Cn-tests: Likewise.
17126         * modules/unictype/category-Co-tests: Likewise.
17127         * modules/unictype/category-Cs-tests: Likewise.
17128         * modules/unictype/category-L-tests: Likewise.
17129         * modules/unictype/category-Ll-tests: Likewise.
17130         * modules/unictype/category-Lm-tests: Likewise.
17131         * modules/unictype/category-Lo-tests: Likewise.
17132         * modules/unictype/category-Lt-tests: Likewise.
17133         * modules/unictype/category-Lu-tests: Likewise.
17134         * modules/unictype/category-M-tests: Likewise.
17135         * modules/unictype/category-Mc-tests: Likewise.
17136         * modules/unictype/category-Me-tests: Likewise.
17137         * modules/unictype/category-Mn-tests: Likewise.
17138         * modules/unictype/category-N-tests: Likewise.
17139         * modules/unictype/category-Nd-tests: Likewise.
17140         * modules/unictype/category-Nl-tests: Likewise.
17141         * modules/unictype/category-No-tests: Likewise.
17142         * modules/unictype/category-P-tests: Likewise.
17143         * modules/unictype/category-Pc-tests: Likewise.
17144         * modules/unictype/category-Pd-tests: Likewise.
17145         * modules/unictype/category-Pe-tests: Likewise.
17146         * modules/unictype/category-Pf-tests: Likewise.
17147         * modules/unictype/category-Pi-tests: Likewise.
17148         * modules/unictype/category-Po-tests: Likewise.
17149         * modules/unictype/category-Ps-tests: Likewise.
17150         * modules/unictype/category-S-tests: Likewise.
17151         * modules/unictype/category-Sc-tests: Likewise.
17152         * modules/unictype/category-Sk-tests: Likewise.
17153         * modules/unictype/category-Sm-tests: Likewise.
17154         * modules/unictype/category-So-tests: Likewise.
17155         * modules/unictype/category-Z-tests: Likewise.
17156         * modules/unictype/category-Zl-tests: Likewise.
17157         * modules/unictype/category-Zp-tests: Likewise.
17158         * modules/unictype/category-Zs-tests: Likewise.
17159         * modules/unictype/category-and-not-tests: Likewise.
17160         * modules/unictype/category-and-tests: Likewise.
17161         * modules/unictype/category-byname-tests: Likewise.
17162         * modules/unictype/category-name-tests: Likewise.
17163         * modules/unictype/category-none-tests: Likewise.
17164         * modules/unictype/category-of-tests: Likewise.
17165         * modules/unictype/category-or-tests: Likewise.
17166         * modules/unictype/category-test-withtable-tests: Likewise.
17167         * modules/unictype/combining-class-tests: Likewise.
17168         * modules/unictype/ctype-alnum-tests: Likewise.
17169         * modules/unictype/ctype-alpha-tests: Likewise.
17170         * modules/unictype/ctype-blank-tests: Likewise.
17171         * modules/unictype/ctype-cntrl-tests: Likewise.
17172         * modules/unictype/ctype-digit-tests: Likewise.
17173         * modules/unictype/ctype-graph-tests: Likewise.
17174         * modules/unictype/ctype-lower-tests: Likewise.
17175         * modules/unictype/ctype-print-tests: Likewise.
17176         * modules/unictype/ctype-punct-tests: Likewise.
17177         * modules/unictype/ctype-space-tests: Likewise.
17178         * modules/unictype/ctype-upper-tests: Likewise.
17179         * modules/unictype/ctype-xdigit-tests: Likewise.
17180         * modules/unictype/decimal-digit-tests: Likewise.
17181         * modules/unictype/digit-tests: Likewise.
17182         * modules/unictype/mirror-tests: Likewise.
17183         * modules/unictype/numeric-tests: Likewise.
17184         * modules/unictype/property-alphabetic-tests: Likewise.
17185         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17186         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17187         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17188         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17189         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17190         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17191         * modules/unictype/property-bidi-control-tests: Likewise.
17192         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17193         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17194         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17195         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17196         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17197         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17198         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17199         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17200         * modules/unictype/property-bidi-pdf-tests: Likewise.
17201         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17202         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17203         * modules/unictype/property-byname-tests: Likewise.
17204         * modules/unictype/property-combining-tests: Likewise.
17205         * modules/unictype/property-composite-tests: Likewise.
17206         * modules/unictype/property-currency-symbol-tests: Likewise.
17207         * modules/unictype/property-dash-tests: Likewise.
17208         * modules/unictype/property-decimal-digit-tests: Likewise.
17209         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17210         * modules/unictype/property-deprecated-tests: Likewise.
17211         * modules/unictype/property-diacritic-tests: Likewise.
17212         * modules/unictype/property-extender-tests: Likewise.
17213         * modules/unictype/property-format-control-tests: Likewise.
17214         * modules/unictype/property-grapheme-base-tests: Likewise.
17215         * modules/unictype/property-grapheme-extend-tests: Likewise.
17216         * modules/unictype/property-grapheme-link-tests: Likewise.
17217         * modules/unictype/property-hex-digit-tests: Likewise.
17218         * modules/unictype/property-hyphen-tests: Likewise.
17219         * modules/unictype/property-id-continue-tests: Likewise.
17220         * modules/unictype/property-id-start-tests: Likewise.
17221         * modules/unictype/property-ideographic-tests: Likewise.
17222         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17223         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17224         * modules/unictype/property-ignorable-control-tests: Likewise.
17225         * modules/unictype/property-iso-control-tests: Likewise.
17226         * modules/unictype/property-join-control-tests: Likewise.
17227         * modules/unictype/property-left-of-pair-tests: Likewise.
17228         * modules/unictype/property-line-separator-tests: Likewise.
17229         * modules/unictype/property-logical-order-exception-tests: Likewise.
17230         * modules/unictype/property-lowercase-tests: Likewise.
17231         * modules/unictype/property-math-tests: Likewise.
17232         * modules/unictype/property-non-break-tests: Likewise.
17233         * modules/unictype/property-not-a-character-tests: Likewise.
17234         * modules/unictype/property-numeric-tests: Likewise.
17235         * modules/unictype/property-other-alphabetic-tests: Likewise.
17236         * modules/unictype/property-other-default-ignorable-code-point-tests:
17237         Likewise.
17238         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
17239         * modules/unictype/property-other-id-continue-tests: Likewise.
17240         * modules/unictype/property-other-id-start-tests: Likewise.
17241         * modules/unictype/property-other-lowercase-tests: Likewise.
17242         * modules/unictype/property-other-math-tests: Likewise.
17243         * modules/unictype/property-other-uppercase-tests: Likewise.
17244         * modules/unictype/property-paired-punctuation-tests: Likewise.
17245         * modules/unictype/property-paragraph-separator-tests: Likewise.
17246         * modules/unictype/property-pattern-syntax-tests: Likewise.
17247         * modules/unictype/property-pattern-white-space-tests: Likewise.
17248         * modules/unictype/property-private-use-tests: Likewise.
17249         * modules/unictype/property-punctuation-tests: Likewise.
17250         * modules/unictype/property-quotation-mark-tests: Likewise.
17251         * modules/unictype/property-radical-tests: Likewise.
17252         * modules/unictype/property-sentence-terminal-tests: Likewise.
17253         * modules/unictype/property-soft-dotted-tests: Likewise.
17254         * modules/unictype/property-space-tests: Likewise.
17255         * modules/unictype/property-terminal-punctuation-tests: Likewise.
17256         * modules/unictype/property-test-tests: Likewise.
17257         * modules/unictype/property-titlecase-tests: Likewise.
17258         * modules/unictype/property-unassigned-code-value-tests: Likewise.
17259         * modules/unictype/property-unified-ideograph-tests: Likewise.
17260         * modules/unictype/property-uppercase-tests: Likewise.
17261         * modules/unictype/property-variation-selector-tests: Likewise.
17262         * modules/unictype/property-white-space-tests: Likewise.
17263         * modules/unictype/property-xid-continue-tests: Likewise.
17264         * modules/unictype/property-xid-start-tests: Likewise.
17265         * modules/unictype/property-zero-width-tests: Likewise.
17266         * modules/unictype/scripts-tests: Likewise.
17267         * modules/unictype/syntax-c-ident-tests: Likewise.
17268         * modules/unictype/syntax-c-whitespace-tests: Likewise.
17269         * modules/unictype/syntax-java-ident-tests: Likewise.
17270         * modules/unictype/syntax-java-whitespace-tests: Likewise.
17271         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
17272         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
17273         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
17274         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
17275         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
17276         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
17277         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
17278         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
17279         * modules/uniname/uniname-tests: Likewise.
17280         * modules/uninorm/canonical-decomposition-tests: Likewise.
17281         * modules/uninorm/compat-decomposition-tests: Likewise.
17282         * modules/uninorm/composition-tests: Likewise.
17283         * modules/uninorm/decomposing-form-tests: Likewise.
17284         * modules/uninorm/decomposition-tests: Likewise.
17285         * modules/uninorm/filter-tests: Likewise.
17286         * modules/uninorm/nfc-tests: Likewise.
17287         * modules/uninorm/nfd-tests: Likewise.
17288         * modules/uninorm/nfkc-tests: Likewise.
17289         * modules/uninorm/nfkd-tests: Likewise.
17290         * modules/uninorm/u8-normcmp-tests: Likewise.
17291         * modules/uninorm/u8-normcoll-tests: Likewise.
17292         * modules/uninorm/u16-normcmp-tests: Likewise.
17293         * modules/uninorm/u16-normcoll-tests: Likewise.
17294         * modules/uninorm/u32-normcmp-tests: Likewise.
17295         * modules/uninorm/u32-normcoll-tests: Likewise.
17296         * modules/unistdio/u8-asnprintf-tests: Likewise.
17297         * modules/unistdio/u8-vasnprintf-tests: Likewise.
17298         * modules/unistdio/u8-vasprintf-tests: Likewise.
17299         * modules/unistdio/u8-vsnprintf-tests: Likewise.
17300         * modules/unistdio/u8-vsprintf-tests: Likewise.
17301         * modules/unistdio/u16-asnprintf-tests: Likewise.
17302         * modules/unistdio/u16-vasnprintf-tests: Likewise.
17303         * modules/unistdio/u16-vasprintf-tests: Likewise.
17304         * modules/unistdio/u16-vsnprintf-tests: Likewise.
17305         * modules/unistdio/u16-vsprintf-tests: Likewise.
17306         * modules/unistdio/u32-asnprintf-tests: Likewise.
17307         * modules/unistdio/u32-vasnprintf-tests: Likewise.
17308         * modules/unistdio/u32-vasprintf-tests: Likewise.
17309         * modules/unistdio/u32-vsnprintf-tests: Likewise.
17310         * modules/unistdio/u32-vsprintf-tests: Likewise.
17311         * modules/unistdio/ulc-asnprintf-tests: Likewise.
17312         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
17313         * modules/unistdio/ulc-vasprintf-tests: Likewise.
17314         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
17315         * modules/unistdio/ulc-vsprintf-tests: Likewise.
17316         * modules/unistr/u8-check-tests: Likewise.
17317         * modules/unistr/u8-chr-tests: Likewise.
17318         * modules/unistr/u8-cmp-tests: Likewise.
17319         * modules/unistr/u8-cmp2-tests: Likewise.
17320         * modules/unistr/u8-cpy-alloc-tests: Likewise.
17321         * modules/unistr/u8-cpy-tests: Likewise.
17322         * modules/unistr/u8-mblen-tests: Likewise.
17323         * modules/unistr/u8-mbsnlen-tests: Likewise.
17324         * modules/unistr/u8-mbtouc-tests: Likewise.
17325         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
17326         * modules/unistr/u8-mbtoucr-tests: Likewise.
17327         * modules/unistr/u8-move-tests: Likewise.
17328         * modules/unistr/u8-next-tests: Likewise.
17329         * modules/unistr/u8-prev-tests: Likewise.
17330         * modules/unistr/u8-set-tests: Likewise.
17331         * modules/unistr/u8-stpcpy-tests: Likewise.
17332         * modules/unistr/u8-stpncpy-tests: Likewise.
17333         * modules/unistr/u8-strcat-tests: Likewise.
17334         * modules/unistr/u8-strcmp-tests: Likewise.
17335         * modules/unistr/u8-strcoll-tests: Likewise.
17336         * modules/unistr/u8-strcpy-tests: Likewise.
17337         * modules/unistr/u8-strdup-tests: Likewise.
17338         * modules/unistr/u8-strlen-tests: Likewise.
17339         * modules/unistr/u8-strmblen-tests: Likewise.
17340         * modules/unistr/u8-strmbtouc-tests: Likewise.
17341         * modules/unistr/u8-strncat-tests: Likewise.
17342         * modules/unistr/u8-strncmp-tests: Likewise.
17343         * modules/unistr/u8-strncpy-tests: Likewise.
17344         * modules/unistr/u8-strnlen-tests: Likewise.
17345         * modules/unistr/u8-to-u16-tests: Likewise.
17346         * modules/unistr/u8-to-u32-tests: Likewise.
17347         * modules/unistr/u8-uctomb-tests: Likewise.
17348         * modules/unistr/u16-check-tests: Likewise.
17349         * modules/unistr/u16-chr-tests: Likewise.
17350         * modules/unistr/u16-cmp-tests: Likewise.
17351         * modules/unistr/u16-cmp2-tests: Likewise.
17352         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17353         * modules/unistr/u16-cpy-tests: Likewise.
17354         * modules/unistr/u16-mblen-tests: Likewise.
17355         * modules/unistr/u16-mbsnlen-tests: Likewise.
17356         * modules/unistr/u16-mbtouc-tests: Likewise.
17357         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17358         * modules/unistr/u16-mbtoucr-tests: Likewise.
17359         * modules/unistr/u16-move-tests: Likewise.
17360         * modules/unistr/u16-next-tests: Likewise.
17361         * modules/unistr/u16-prev-tests: Likewise.
17362         * modules/unistr/u16-set-tests: Likewise.
17363         * modules/unistr/u16-stpcpy-tests: Likewise.
17364         * modules/unistr/u16-stpncpy-tests: Likewise.
17365         * modules/unistr/u16-strcat-tests: Likewise.
17366         * modules/unistr/u16-strcmp-tests: Likewise.
17367         * modules/unistr/u16-strcoll-tests: Likewise.
17368         * modules/unistr/u16-strcpy-tests: Likewise.
17369         * modules/unistr/u16-strdup-tests: Likewise.
17370         * modules/unistr/u16-strlen-tests: Likewise.
17371         * modules/unistr/u16-strmblen-tests: Likewise.
17372         * modules/unistr/u16-strmbtouc-tests: Likewise.
17373         * modules/unistr/u16-strncat-tests: Likewise.
17374         * modules/unistr/u16-strncmp-tests: Likewise.
17375         * modules/unistr/u16-strncpy-tests: Likewise.
17376         * modules/unistr/u16-strnlen-tests: Likewise.
17377         * modules/unistr/u16-to-u32-tests: Likewise.
17378         * modules/unistr/u16-to-u8-tests: Likewise.
17379         * modules/unistr/u16-uctomb-tests: Likewise.
17380         * modules/unistr/u32-check-tests: Likewise.
17381         * modules/unistr/u32-chr-tests: Likewise.
17382         * modules/unistr/u32-cmp-tests: Likewise.
17383         * modules/unistr/u32-cmp2-tests: Likewise.
17384         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17385         * modules/unistr/u32-cpy-tests: Likewise.
17386         * modules/unistr/u32-mblen-tests: Likewise.
17387         * modules/unistr/u32-mbsnlen-tests: Likewise.
17388         * modules/unistr/u32-mbtouc-tests: Likewise.
17389         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17390         * modules/unistr/u32-mbtoucr-tests: Likewise.
17391         * modules/unistr/u32-move-tests: Likewise.
17392         * modules/unistr/u32-next-tests: Likewise.
17393         * modules/unistr/u32-prev-tests: Likewise.
17394         * modules/unistr/u32-set-tests: Likewise.
17395         * modules/unistr/u32-stpcpy-tests: Likewise.
17396         * modules/unistr/u32-stpncpy-tests: Likewise.
17397         * modules/unistr/u32-strcat-tests: Likewise.
17398         * modules/unistr/u32-strcmp-tests: Likewise.
17399         * modules/unistr/u32-strcoll-tests: Likewise.
17400         * modules/unistr/u32-strcpy-tests: Likewise.
17401         * modules/unistr/u32-strdup-tests: Likewise.
17402         * modules/unistr/u32-strlen-tests: Likewise.
17403         * modules/unistr/u32-strmblen-tests: Likewise.
17404         * modules/unistr/u32-strmbtouc-tests: Likewise.
17405         * modules/unistr/u32-strncat-tests: Likewise.
17406         * modules/unistr/u32-strncmp-tests: Likewise.
17407         * modules/unistr/u32-strncpy-tests: Likewise.
17408         * modules/unistr/u32-strnlen-tests: Likewise.
17409         * modules/unistr/u32-to-u16-tests: Likewise.
17410         * modules/unistr/u32-to-u8-tests: Likewise.
17411         * modules/unistr/u32-uctomb-tests: Likewise.
17412         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
17413         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
17414         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
17415         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
17416         * modules/uniwidth/u8-strwidth-tests: Likewise.
17417         * modules/uniwidth/u8-width-tests: Likewise.
17418         * modules/uniwidth/u16-strwidth-tests: Likewise.
17419         * modules/uniwidth/u16-width-tests: Likewise.
17420         * modules/uniwidth/u32-strwidth-tests: Likewise.
17421         * modules/uniwidth/u32-width-tests: Likewise.
17422         * modules/uniwidth/width-tests: Likewise.
17423
17424 2010-05-18  Richard Jones  <rjones@redhat.com>
17425
17426         doc: users.txt: list hivex
17427         * users.txt: Add hivex.
17428
17429 2010-05-18  Richard Jones  <rjones@redhat.com>
17430
17431         doc: users.txt: list febootstrap
17432         * users.txt: Add febootstrap.
17433
17434 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
17435
17436         bootstrap: fix an error when gnulib is not used as a git submodule
17437         * build-aux/bootstrap (gnulib_path): If its length is zero then
17438         assign "gnulib" to it.
17439         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
17440
17441 2010-05-16  Bruno Haible  <bruno@clisp.org>
17442
17443         Avoid autoconf warnings about AM_ICONV.
17444         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
17445         2.64.
17446
17447 2010-05-16  Bruno Haible  <bruno@clisp.org>
17448
17449         absolute-header: Make the macro usable in more situations.
17450         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
17451         from gl_ABSOLUTE_HEADER.
17452         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
17453
17454 2010-05-16  James Youngman  <jay@gnu.org>
17455
17456         doc: update users.txt
17457         * users.txt: Add CSSC.
17458
17459 2010-05-16  Jim Meyering  <meyering@redhat.com>
17460
17461         init.sh: fix an error in the previous change; add more comments
17462         * tests/init.sh: Compare exit code in loop against 9, not 2.
17463         Patch by Bruno Haible.
17464         Make the two tests more similar by adding an empty "then" clause.
17465         Add comments.
17466
17467         init.sh: avoid unnecessary shell re-exec
17468         * tests/init.sh: Improve the re-exec-required check to first test the
17469         current shell.  If it passes the test, do not search for a shell that
17470         does pass, and do not re-exec.  This test is particularly contorted to
17471         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
17472         of $(...) evokes a syntax error and causes immediate shell exit with
17473         status 2.  Bruno Haible reported that the re-exec made it impossible
17474         to single-step through any init.sh-using script.
17475
17476 2010-05-16  Bruno Haible  <bruno@clisp.org>
17477
17478         Fix collision between gnulib's and libintl's printf replacements.
17479         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
17480         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
17481         (printf): When using GNU C, map the __printf__ function to rpl_printf
17482         via __asm__. When not using GNU C, define rpl_printf instead of
17483         __printf__.
17484         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
17485         commit.
17486         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
17487         commit.
17488         * m4/asm-underscore.m4: New file.
17489         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
17490         * modules/stdio (Files): Add m4/asm-underscore.m4.
17491         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
17492         Reported by Ben Pfaff.
17493
17494 2010-05-16  Bruno Haible  <bruno@clisp.org>
17495
17496         verify: Avoid skipping the test on openSUSE 11.0.
17497         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
17498
17499 2010-05-13  Bruno Haible  <bruno@clisp.org>
17500
17501         Avoid useless warnings from G++.
17502         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
17503         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
17504         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17505
17506 2010-05-11  Jim Meyering  <meyering@redhat.com>
17507
17508         maint.mk: tweak preceding change
17509         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
17510         regexps tighter by anchoring at EOL, and make the new group "shy"
17511         for slightly decreased overhead.
17512
17513 2010-05-11  Eric Blake  <eblake@redhat.com>
17514
17515         maint.mk: gnulib doesn't guarantee NSIG
17516         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
17517
17518 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17519
17520         test-pwrite.c: Remove unused variable declaration.
17521         * tests/test-pwrite.c (main): Remove read_buf declaration.
17522
17523         Remove useless test-pwrite.sh file.
17524         * tests/test-pwrite.sh: Delete file.
17525         * modules/pwrite-tests: Remove references.
17526         Reported by Bruno Haible.
17527
17528 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17529
17530         init.sh: fix a typo
17531         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
17532
17533 2010-05-10  Jim Meyering  <meyering@redhat.com>
17534
17535         maint.mk: avoid using a temporary file in the always-defined-macros check
17536         * top/maint.mk (.re-defmac): Remove rule.
17537         (gl_trap_): Remove definition.
17538         (sc_prohibit_always-defined_macros): Rewrite not to create and
17539         depend on a temporary file.  Instead, depend on GNU grep's ability
17540         to read a list of regular expressions from stdin when given "-f -".
17541
17542 2010-05-09  Bruno Haible  <bruno@clisp.org>
17543
17544         Update to GNU gettext 0.18, part 1.
17545         * m4/gettext.m4: Update to GNU gettext 0.18.
17546         * m4/intl.m4: Likewise.
17547         * m4/po.m4: Likewise.
17548         * modules/gettext (Files): Add m4/fcntl-o.m4.
17549         (configure.ac): Require gettext infrastructure from version 0.18.
17550
17551 2010-05-09  Jim Meyering  <meyering@redhat.com>
17552
17553         init.sh: enable MALLOC_PERTURB_
17554         * tests/init.sh: Enable glibc's malloc-perturbing option.
17555
17556         maint.mk: improve sc_cross_check_PATH_usage_in_tests
17557         With my recent change in init.sh from the two-line form:
17558             -#   : ${srcdir=.}
17559             -#   . "$srcdir/init.sh"; path_prepend_ .
17560             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
17561         I noticed that using the one-line form would cause this test
17562         to fail with a false-positive, or to stop working altogether,
17563         depending on whether help-version changed or all the tests did.
17564         * top/maint.mk (_hv_regex): Remove this definition.
17565         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
17566         (_hv_regex_strong): Use a stronger regex to check for conformance.
17567         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
17568         Give a separate diagnostic for lack of conforming use.
17569
17570         maint.mk: prohibit definition of symbols defined by gnulib
17571         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
17572         definition of symbols defined by gnulib.
17573
17574 2010-05-09  Bruno Haible  <bruno@clisp.org>
17575
17576         acl: Avoid test failure on Cygwin-hosted mingw.
17577         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
17578
17579 2010-05-09  Bruno Haible  <bruno@clisp.org>
17580
17581         error: Use system's fcntl function.
17582         * lib/error.c (fcntl): Undefine.
17583
17584 2010-05-09  Jim Meyering  <meyering@redhat.com>
17585
17586         verify: adjust formatting to be more consistent
17587         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
17588         argument-list '('s, and after one comma.
17589
17590 2010-05-09  Bruno Haible  <bruno@clisp.org>
17591
17592         error: More reliable output on mingw.
17593         * lib/error.c: Include <windows.h>.
17594         (is_open): New function.
17595         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
17596         defined.
17597
17598 2010-05-09  Bruno Haible  <bruno@clisp.org>
17599
17600         vasnprintf: Fix syntax errors in libintl build on mingw.
17601         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
17602         pad_ourselves and prec_ourselves after use.
17603
17604 2010-05-08  Bruno Haible  <bruno@clisp.org>
17605
17606         * lib/config.charset: Update comments for Cygwin 1.7.
17607         * lib/localcharset.c: Likewise.
17608
17609 2010-05-07  Jim Meyering  <meyering@redhat.com>
17610
17611         init.sh: improve comments
17612         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
17613         . "${srcdir=.}/init.sh"; path_prepend_ .
17614         Add a note about path_prepend_ and the alternative of using
17615         TESTS_ENVIRONMENT.
17616
17617 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17618
17619         exclude: Unescape hashed patterns in wildcard mode.
17620         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
17621         to the hash list.
17622         * tests/test-exclude8.sh: New test case.
17623         * modules/exclude-tests: Add new test.
17624
17625 2010-05-05  Eric Blake  <eblake@redhat.com>
17626
17627         verify: automate tests
17628         * modules/verify-tests: New module.
17629         * tests/test-verify.sh: New file.
17630         * tests/test-verify.c: Guard each negative test with a unique id.
17631         Also avoid warning about unused left hand of comma expressions.
17632
17633 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17634
17635         Further improvements to verify.h, suggested by Eric Blake.
17636         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
17637         the GL_* versions, to avoid collision with OpenGL.
17638         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
17639         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
17640         than testing merely whether it's defined.
17641
17642         Modify verify.h to pacify gcc -Wredundant_decls.
17643         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
17644         These use the prefix "GL_" since they're likely to be useful elsewhere.
17645         We may need to break them out into a different .h file.
17646         (__COUNTER__): Define to 0 if the compiler doesn't support it.
17647         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
17648         of verify_function__.
17649
17650 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17651
17652         Tests for module pwrite.
17653         * modules/pwrite-tests: New file.
17654         * tests/test-pwrite.sh: New file.
17655         * tests/test-pwrite.c: New file.
17656
17657         New module pwrite.
17658         * lib/unistd.in.h (pwrite): New declaration.
17659         * lib/pwrite.c: New file, from glibc with modifications.
17660         * m4/pwrite.m4: New file.
17661         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
17662         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
17663         REPLACE_PWRITE.
17664         * modules/pwrite: New file.
17665         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
17666         REPLACE_PWRITE.
17667         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
17668         * doc/posix-functions/pwrite.texi: Mention the new module.
17669
17670 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17671
17672         pread: Update documentation.
17673         * doc/posix-functions/pread.texi: Mention the 'pread' module.
17674
17675 2010-05-04  Eric Blake  <eblake@redhat.com>
17676
17677         docs: update cygwin progress
17678         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
17679         this bug.
17680         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
17681         Added in cygwin 1.7.2.
17682         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
17683         Likewise.
17684         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
17685         Likewise.
17686         * doc/glibc-functions/dup3.texi (dup3): Likewise.
17687         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17688         * doc/glibc-functions/accept4.texi (accept4): Likewise.
17689         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
17690         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
17691         Mention nproc module.
17692         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
17693         bug in cygwin 1.7.5 addition.
17694         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
17695         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
17696         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
17697         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
17698         1.7.5.
17699         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
17700         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
17701         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
17702         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
17703         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
17704         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
17705         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
17706         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
17707         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
17708         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
17709         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
17710         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
17711         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
17712         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
17713         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
17714         Likewise.
17715         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
17716         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
17717         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
17718         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
17719         Likewise.
17720         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
17721         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
17722         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
17723         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
17724         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
17725         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
17726         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
17727         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
17728         Likewise.
17729         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
17730         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
17731         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
17732         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
17733         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
17734         Likewise.
17735         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
17736         Likewise.
17737         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
17738         Likewise.
17739         * doc/glibc-functions/xdrrec_endofrecord.texi
17740         (xdrrec_endofrecord): Likewise.
17741         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
17742         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
17743         Likewise.
17744         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
17745         Likewise.
17746
17747 2010-05-04  Jim Meyering  <meyering@redhat.com>
17748
17749         gendocs.sh: make its "-s FILE" option more useful
17750         * build-aux/gendocs.sh: When honoring the -s FILE option, update
17751         $PACKAGE to reflect the probably-different basename of "FILE".
17752
17753 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17754
17755         bootstrap: don't ignore download_po_files failure
17756         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
17757         failure.
17758
17759 2010-05-03  Jim Meyering  <meyering@redhat.com>
17760
17761         maint.mk: allow to pass options to gendocs.sh
17762         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
17763         (gendocs_options_): New overridable variable.
17764
17765         gnu-web-doc-update: don't ignore configure or build failure
17766         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
17767
17768         announce-gen: backslash-escape '@'s in --help output
17769         * build-aux/announce-gen: Fix syntax errors.
17770
17771         maint.mk, announce-gen: allow project-specific announcement mail headers
17772         * top/maint.mk (translation_project_): Define default.
17773         (announcement_Cc_, announcement_mail_headers_): Likewise.
17774         (announcement): Invoke announce-gen with new --mail-headers option.
17775         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
17776
17777         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
17778         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
17779         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
17780         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
17781         line in the "err2" output file when running "make check" in verbose
17782         mode (i.e., with set -x enabled).
17783
17784 2010-05-03  Bruno Haible  <bruno@clisp.org>
17785
17786         wctob: Fix for weird platforms.
17787         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
17788         argument value.
17789
17790 2010-05-03  Jim Meyering  <meyering@redhat.com>
17791
17792         maint.mk: prohibit unwarranted use of <strings.h>
17793         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
17794         strings.h in a file that does not also use strcasecmp, strncasecmp,
17795         ffs or ffsll.
17796
17797         maint.mk: remove obsolete comments
17798         * top/maint.mk: Remove stale, commented-out rules.
17799
17800 2010-05-02  Bruno Haible  <bruno@clisp.org>
17801
17802         wcwidth: Declare also when it's aliased.
17803         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
17804         macro.
17805
17806 2010-05-02  Bruno Haible  <bruno@clisp.org>
17807
17808         Fix regression from 2010-04-25.
17809         * gnulib-tool (func_modules_transitive_closure): Check the status of
17810         all modules, not only of the tests that are of the form foo-tests where
17811         foo is a module.
17812
17813 2010-05-02  Bruno Haible  <bruno@clisp.org>
17814
17815         wctob: Work around nasty Cygwin 1.7.2 bug.
17816         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
17817         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
17818
17819 2010-05-01  Bruno Haible  <bruno@clisp.org>
17820
17821         fpurge: Sharper test.
17822         * tests/test-fpurge.c (main): Add one more ftell check.
17823         * modules/fpurge-tests (Depends-on): Add ftell.
17824         Suggested by Eric Blake.
17825
17826 2010-05-01  Bruno Haible  <bruno@clisp.org>
17827
17828         ftello: Another test.
17829         * tests/test-ftello3.c: New file.
17830         * modules/ftello-tests (Files): Add it.
17831         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
17832         MOSTLYCLEANFILES.
17833
17834         ftell: Another test.
17835         * tests/test-ftell3.c: New file.
17836         * modules/ftell-tests (Files): Add it.
17837         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
17838         MOSTLYCLEANFILES.
17839
17840 2010-05-01  Bruno Haible  <bruno@clisp.org>
17841
17842         ftell, ftello: Work around Solaris bug.
17843         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
17844         * lib/ftello.c: Include stdio-impl.h.
17845         (ftello): On Solaris, when _IOWRT is set, compute the result without
17846         looking at _IOREAD.
17847         * modules/ftello (Files): Add lib/stdio-impl.h.
17848         * doc/posix-functions/ftell.texi: Mention Solaris bug.
17849         * doc/posix-functions/ftello.texi: Likewise.
17850         Reported by Eric Blake.
17851
17852 2010-05-01  Bruno Haible  <bruno@clisp.org>
17853
17854         freading: Adapt to special meaning of _IOREAD flag on Solaris.
17855         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
17856         the _IOWRT flag is also set.
17857
17858 2010-05-01  Bruno Haible  <bruno@clisp.org>
17859
17860         Fix doc about a HP-UX stdio bug.
17861         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
17862         * doc/posix-functions/ftello.texi: Likewise.
17863
17864 2010-05-01  Bruno Haible  <bruno@clisp.org>
17865
17866         lseek test: Fix failure on Solaris.
17867         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
17868         output.
17869
17870 2010-04-30  Jim Meyering  <meyering@redhat.com>
17871
17872         bootstrap: don't ignore failure to generate po*/Makevars
17873         * build-aux/bootstrap (with_gettext): Don't ignore failure
17874         to create po/Makevars or runtime-po/Makevars.
17875
17876 2010-04-29  Eric Blake  <eblake@redhat.com>
17877
17878         headers: relax license to LGPLv2+
17879         * modules/fcntl-h (License): Relax license.
17880         * modules/getopt-posix (License): Likewise.
17881         * modules/locale (License): Likewise.
17882         * modules/math (License): Likewise.
17883         * modules/pty (License): Likewise.
17884         * modules/sched (License): Likewise.
17885         * modules/search (License): Likewise.
17886         * modules/spawn (License): Likewise.
17887         * modules/stdarg (License): Likewise.
17888         * modules/sysexits (License): Likewise.
17889
17890 2010-04-29  Jim Meyering  <meyering@redhat.com>
17891
17892         inttypes: relax license to LGPLv2+
17893         * modules/inttypes (License): Relax license.
17894
17895 2010-04-29  Simon Josefsson  <simon@josefsson.org>
17896
17897         * top/maint.mk (indent): Run twice to produce idempotent results.
17898
17899 2010-04-28  Bruno Haible  <bruno@clisp.org>
17900
17901         getdate: Generate getdate.c in the source directory.
17902         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
17903         MOSTLYCLEANFILES.
17904         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
17905
17906 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
17907
17908         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
17909         is not declared as a const *; avoid warnings in that case.
17910
17911 2010-04-28  Eric Blake  <eblake@redhat.com>
17912
17913         canonicalize-lgpl: avoid compiler warning
17914         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
17915         declaration' / 'extraneous semicolon' warning with some compilers.
17916         Reported by Andreas Gruenbacher.
17917
17918 2010-04-28  Jim Meyering  <meyering@redhat.com>
17919
17920         init.sh: ensure a more reliable exit status when exiting via trap
17921         * tests/init.sh (setup_): Don't rely on $? in signal handler.
17922         Inspired by patches from Dmitry V. Levin.
17923         Also trap on signal 3 (SIGQUIT).
17924
17925 2010-04-27  Bruno Haible  <bruno@clisp.org>
17926
17927         Update doc about utimes().
17928         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
17929         'utimens' module.
17930         Reported by Andreas Gruenbacher <agruen@suse.de>.
17931
17932 2010-04-27  Eric Blake  <eblake@redhat.com>
17933
17934         full-read, full-write: relax license
17935         * modules/full-read (License): Drop to LGPLv2+.
17936         * modules/full-write (License): Likewise.
17937         * modules/safe-read (License): Likewise.
17938         * modules/safe-write (License): Likewise.
17939
17940         pthread: mention library for linking
17941         * modules/pthread (Link): Mention $(LIB_PTHREAD).
17942
17943 2010-04-27  Jim Meyering  <meyering@redhat.com>
17944
17945         maint.mk: fix a bug introduced in last change
17946         * top/maint.mk (gl_assured_headers_): Now that all names are on
17947         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
17948         is not anchored to end of word, it should be adequate.
17949
17950         maint.mk: avoid side-effect in latest syntax-check
17951         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
17952         to run commands via $(shell...), and hence to incur cost only when
17953         the new rule is actually run.
17954
17955         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
17956         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
17957         and use that to create a regexp used to detect all #if HAVE_..._H uses.
17958         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
17959         (gl_assured_headers_, az_, AZ_): Define.
17960         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
17961
17962 2010-04-26  Jim Meyering  <jim@meyering.net>
17963             Bruno Haible  <bruno@clisp.org>
17964
17965         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
17966         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
17967         Prompted by an exchange with Gilles Espinasse.
17968
17969 2010-04-26  Jim Meyering  <meyering@redhat.com>
17970
17971         git-version-gen: aesthetic tweak
17972         * build-aux/git-version-gen: Use "$nl" rather than a literal,
17973         so that the command remains on a single line.
17974
17975 2010-04-26  Eric Blake  <eblake@redhat.com>
17976
17977         git-version-gen: allow use on EBCDIC hosts
17978         * build-aux/git-version-gen (dirty): Use literal rather than tying
17979         ourselves to ascii.
17980         Reported by Steve Goetze.
17981
17982 2010-04-25  Bruno Haible  <bruno@clisp.org>
17983
17984         netdb: Add support for GNULIB_POSIXCHECK.
17985         * lib/netdb.in.h: Include warn-on-use.h.
17986         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
17987         functions are used when GNULIB_POSIXCHECK is defined and the
17988         getaddrinfo module is not in use.
17989         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
17990         freeaddrinfo, gai_strerror, getnameinfo are declared.
17991         * modules/netdb (Depends-on): Add warn-on-use.
17992         (Makefile.am): Include warn-on-use.h in netdb.h.
17993
17994 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
17995
17996         build: avoid "make check" failure without .git/ directory
17997         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
17998         there is no .git/ directory.
17999
18000 2010-04-25  Bruno Haible  <bruno@clisp.org>
18001
18002         ptsname: Fix misuse of ttyname_r.
18003         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
18004         of errno.
18005
18006 2010-04-25  Bruno Haible  <bruno@clisp.org>
18007
18008         ttyname_r: Make it work on Solaris 10.
18009         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
18010         if the system function has the POSIX declaration. Test whether the
18011         function fails if the buffer is less than 128 bytes large.
18012         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
18013         system's ttyname_r function. Provide a reasonably large buffer.
18014         * modules/ttyname_r (Depends-on): Add extensions.
18015         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
18016
18017 2010-04-25  Bruno Haible  <bruno@clisp.org>
18018
18019         Use the 'extensions' module for some more functions on Solaris.
18020         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18021         module.
18022         * doc/posix-functions/ctime_r.texi: Likewise.
18023         * doc/posix-functions/getgrgid_r.texi: Likewise.
18024         * doc/posix-functions/getgrnam_r.texi: Likewise.
18025         * doc/posix-functions/getpwnam_r.texi: Likewise.
18026         * doc/posix-functions/getpwuid_r.texi: Likewise.
18027         * doc/posix-functions/readdir_r.texi: Likewise.
18028         * doc/posix-functions/sigwait.texi: Likewise.
18029         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18030         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18031
18032 2010-04-25  Bruno Haible  <bruno@clisp.org>
18033
18034         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18035         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18036         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18037         * lib/ttyname_r.c: Include <limits.h>.
18038         (ttyname_r): Define using the system's ttyname_r function, if it exists
18039         and not on Solaris.
18040         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18041         set.
18042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18043         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18044         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18045         Reported by Simon Josefsson.
18046
18047 2010-04-25  Bruno Haible  <bruno@clisp.org>
18048
18049         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18050         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
18051         * doc/posix-functions/ctime_r.texi: Likewise.
18052         * doc/posix-functions/getgrgid_r.texi: Likewise.
18053         * doc/posix-functions/getgrnam_r.texi: Likewise.
18054         * doc/posix-functions/getlogin_r.texi: Likewise.
18055         * doc/posix-functions/getpwnam_r.texi: Likewise.
18056         * doc/posix-functions/getpwuid_r.texi: Likewise.
18057         * doc/posix-functions/readdir_r.texi: Likewise.
18058         * doc/posix-functions/sigwait.texi: Likewise.
18059         * doc/posix-functions/ttyname_r.texi: Likewise.
18060         Reported by Simon Josefsson.
18061
18062 2010-04-25  Bruno Haible  <bruno@clisp.org>
18063
18064         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18065         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18066         also to --create-testdir.
18067         (func_acceptable): Don't consider the status of *-tests modules here.
18068         (func_modules_transitive_closure): Consider it here, before including a
18069         test module.
18070         (func_import, func_create_testdir): Set inc_all_direct_tests,
18071         inc_all_indirect_tests.
18072         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18073         --create-testdir and --create-megatestdir.
18074
18075 2010-04-25  Bruno Haible  <bruno@clisp.org>
18076
18077         gnulib-tool: Add --without-*-tests options.
18078         * gnulib-tool (func_usage): Document the --without-*-tests options.
18079         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18080         excl_unportable_tests): New variables.
18081         Fail if they are specified with --import or --update.
18082         (func_acceptable): Respect the excl_*_tests variables.
18083         (func_import): Set the excl_*_tests variables to empty.
18084
18085 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18086             Bruno Haible  <bruno@clisp.org>
18087
18088         Work around a MacOS X 10.4 bug with openpty.
18089         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18090         * tests/test-openpty.c (main): Close the master side explicitly.
18091
18092 2010-04-25  Bruno Haible  <bruno@clisp.org>
18093
18094         strnlen: Fix a C++ test error on MacOS X and Solaris.
18095         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18096         the function is not declared.
18097         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18098         Simon Josefsson.
18099
18100 2010-04-24  Bruno Haible  <bruno@clisp.org>
18101
18102         Avoid a gcc warning.
18103         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18104         of correct type for %08lx directive.
18105         Reported by Eric Blake.
18106
18107 2010-04-24  Bruno Haible  <bruno@clisp.org>
18108
18109         vasnprintf: Correct errno value in case of out-of-memory.
18110         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18111         or sprintf. Use the errno value from SNPRINTF or sprintf.
18112         Reported by Ian Beckwith <ianb@erislabs.net>.
18113
18114 2010-04-24  Bruno Haible  <bruno@clisp.org>
18115
18116         ansi-c++-opt: Find correct compiler when cross-compiling.
18117         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18118         AC_CHECK_PROGS.
18119         Reported by Simon Josefsson.
18120
18121 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18122
18123         vc-list-files: Add support for subversion
18124         * build-aux/vc-list-files: Use "svn list" to generate the list of
18125         files controlled by subversion.
18126
18127 2010-04-23  Jim Meyering  <meyering@redhat.com>
18128
18129         vc-list-files tests: convert to use init.sh
18130         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18131         path_prepend_.
18132         Use Exit, not exit.
18133         Use skip_ rather than open coding it.
18134         Remove trap set-up and compare definitions.
18135         * tests/test-vc-list-files-git.sh: Likewise.
18136         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18137
18138 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18139
18140         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18141         backup files.
18142
18143 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18144
18145         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18146
18147 2010-04-20  Eric Blake  <eblake@redhat.com>
18148
18149         tests: be robust to ignored SIGPIPE
18150         * tests/test-select-in.sh: Consume all output.
18151         * tests/test-lseek.sh: Check correct exit status, while avoiding
18152         EPIPE.
18153
18154 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18155             Bruno Haible  <bruno@clisp.org>
18156
18157         visibility: Don't use -fvisibility if it leads to a warning.
18158         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18159         yes, don't pretend that visibility works if it leads to a warning.
18160         Reported by Mike Gran <spk121@yahoo.com>.
18161
18162 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18163
18164         * build-aux/bootstrap: Use "git -h" for testing for supported options
18165         instead of "git --help".  The short-form option only shows a summary,
18166         and doesn't layout the full man page.  Grep for the full option name
18167         in the summary, too.
18168
18169 2010-04-19  Bruno Haible  <bruno@clisp.org>
18170
18171         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18172         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18173         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18174         mention of RELOCATABLE_STRIP.
18175         Reported by Sylvain Beucler <beuc@beuc.net>.
18176
18177 2010-04-19  Bruno Haible  <bruno@clisp.org>
18178
18179         * lib/diffseq.h: Fix typo in comment.
18180         Reported by Eric Blake.
18181
18182 2010-04-19  Bruno Haible  <bruno@clisp.org>
18183
18184         ioctl: Move autoconf macro to a .m4 file.
18185         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18186         * modules/ioctl (Files): Add it.
18187         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18188         Reported by Ian Beckwith <ianb@erislabs.net>.
18189
18190 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18191             Bruno Haible  <bruno@clisp.org>
18192
18193         diffseq: Accommodate use-case with abstract arrays.
18194         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18195         is not defined.
18196         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18197         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18198
18199 2010-04-18  Bruno Haible  <bruno@clisp.org>
18200
18201         * doc/posix-headers/stdbool.texi: More precise wording.
18202
18203 2010-04-17  Jim Meyering  <meyering@redhat.com>
18204
18205         maint.mk: use gnu-style indentation in an embedded perl script
18206         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18207         Rename variable: s/two/last_two_bytes/
18208
18209 2010-04-16  Eric Blake  <eblake@redhat.com>
18210
18211         test-stdbool: skip test that fails with Solaris CC
18212         * tests/test-stdbool.c (f): Skip test that causes compilation
18213         error under buggy C++ compiler.
18214         * lib/stdbool.in.h: Document the limitation.
18215         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18216
18217         setenv: allow compilation with C++
18218         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18219         register keyword.
18220
18221         stdint: allow test to pass with C++
18222         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18223
18224         getopt: allow compilation with C++
18225         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18226         struct.
18227         * lib/getopt.c (_getopt_internal_r): Use correct type.
18228         Reported by Dagobert Michelson, via Joel E. Denny.
18229
18230 2010-04-16  Bruno Haible  <bruno@clisp.org>
18231
18232         Override netdb.h always.
18233         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18234         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18235         Reported by Ludovic Courtès <ludo@gnu.org>.
18236
18237 2010-04-15  Bruno Haible  <bruno@clisp.org>
18238
18239         openpty: Fix mistake from 2010-03-21.
18240         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
18241         Reported by Simon Josefsson.
18242
18243 2010-04-15  Eric Blake  <eblake@redhat.com>
18244
18245         test-forkpty: fix expected signature
18246         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18247         Reported by Simon Josefsson.
18248
18249 2010-04-15  Jim Meyering  <meyering@redhat.com>
18250
18251         maint.mk: texinfo_suffix_re_: correct the default regexp
18252         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
18253
18254         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
18255         make it configurable via texinfo_suffix_re_.
18256
18257 2010-04-14  Eric Blake  <eblake@redhat.com>
18258
18259         strtok_r: relax license to LGPLv2+
18260         * modules/strtok_r (License): Relax license.
18261         Reported by Matthias Bolte.
18262
18263 2010-04-14  Simon Josefsson  <simon@josefsson.org>
18264
18265         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
18266         version 1.4.4 by default instead of requiring the libgcrypt
18267         version used during build.  This makes it possible to use the
18268         application with older but still binary compatible libgcrypt
18269         versions.
18270
18271 2010-04-13  Eric Blake  <eblake@redhat.com>
18272
18273         getopt-gnu: match recent glibc fixes and posix ruling
18274         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
18275         '+' handling, when requesting extensions.
18276         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
18277         'W;' handling.
18278         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
18279         * doc/posix-functions/getopt.texi (getopt): Document this.
18280         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18281         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18282         Likewise.
18283
18284         getopt: merge bug fixes from glibc
18285         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
18286         diagnostics.  Honor '+:' correctly.  Reject ';'.
18287
18288         getopt-posix: detect MacOS bug
18289         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
18290         optind when missing a required argument.
18291         * doc/posix-functions/getopt.texi (getopt): Document the bug.
18292         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18293         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18294         Likewise.
18295
18296         getopt-posix: avoid spurious failure on Solaris
18297         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
18298         an indicator that setting optind=1 is sufficient for reset.
18299
18300         getopt-posix: avoid spurious failure on FreeBSD
18301         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
18302         in POSIX mode, since the m4 test uses it.
18303
18304         gnulib-tool: silence warning on BSD sh
18305         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
18306
18307 2010-04-13  Jim Meyering  <meyering@redhat.com>
18308
18309         doc: users.txt: GNU patch now uses gnulib
18310         * users.txt: Add patch.
18311
18312 2010-04-12  Jim Meyering  <meyering@redhat.com>
18313
18314         maint.mk: generate more concise timing data for syntax-check rules
18315         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
18316         " done" from each line that reports a syntax-check test duration.
18317
18318 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
18319
18320         git-version-gen: use "git update-index..." rather than "git status"
18321         * build-aux/git-version-gen: Use git update-index --refresh, not
18322         "git status".  With some versions of git, "git status" would fail
18323         to update the index and result in an unwarranted "-dirty" suffix.
18324
18325 2010-04-11  Jim Meyering  <meyering@redhat.com>
18326
18327         openat: correct formatting (no semantic change)
18328         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18329         Suggested by Bruno Haible.
18330
18331 2010-04-11  Bruno Haible  <bruno@clisp.org>
18332
18333         Stricter declaration checking in testdirs.
18334         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18335         If for_tests is true, augment AM_CPPFLAGS to define
18336         GNULIB_STRICT_CHECKING.
18337         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18338         GNULIB_STRICT_CHECKING is defined, verify that the function is
18339         declared.
18340
18341 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18342             Bruno Haible  <bruno@clisp.org>
18343
18344         libunistring: Improve configure output.
18345         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18346         Don't say "consider installing GNU libunistring" when checking again
18347         with libiconv.
18348
18349 2010-04-11  Bruno Haible  <bruno@clisp.org>
18350
18351         libunistring: Correct value of $LTLIBUNISTRING.
18352         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18353         correct the value of $LTLIBUNISTRING.
18354
18355 2010-04-11  Bruno Haible  <bruno@clisp.org>
18356
18357         havelib: Add static libraries to LIBS in the right order.
18358         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18359         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18360
18361 2010-04-11  Bruno Haible  <bruno@clisp.org>
18362
18363         libunistring: Detect libunistring also when it depends on libiconv.
18364         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18365         the second AC_LIB_HAVE_LINKFLAGS invocation.
18366
18367 2010-04-11  James Youngman  <jay@gnu.org>
18368
18369         close-stream: declare local scalars to be "const"
18370         * lib/close-stream.c (close_stream): Make boolean variables const
18371         to document the fact that we set but do not change them.
18372
18373 2010-04-11  Bruno Haible  <bruno@clisp.org>
18374
18375         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18376
18377 2010-04-11  Jim Meyering  <meyering@redhat.com>
18378
18379         maint.mk: don't include dist-check.mk
18380         * top/maint.mk: Remove bogus include directive.
18381
18382         maint.mk: improve empty-line-at-EOF check
18383         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18384         solution, rather than tail+Perl-based one.  The latter would read
18385         a few kilobytes from the end of each file, and did not handle empty
18386         files properly.
18387
18388         maint.mk: print the elapsed time for each syntax-check rule
18389         * top/maint.mk (sc_m_rules_): Save start time in a file.
18390         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18391         (local-check): Interpose the .z rules
18392
18393 2010-04-11  Jim Meyering  <meyering@redhat.com>
18394
18395         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18396         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18397         empty file with one that ends in an empty line.
18398
18399 2010-04-10  Bruno Haible  <bruno@clisp.org>
18400
18401         mkdir: Make it work on mingw64.
18402         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
18403         * lib/mkdir.c: Update comment.
18404         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
18405
18406 2010-04-10  Bruno Haible  <bruno@clisp.org>
18407
18408         Don't override improved macro from newer autoconf.
18409         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
18410         autoconf >= 2.62.
18411         Reported by Joel E. Denny <jdenny@clemson.edu>.
18412
18413 2010-04-10  Jim Meyering  <meyering@redhat.com>
18414
18415         maint.mk: new syntax-check rule: prohibit empty lines at end of file
18416         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
18417
18418         maint.mk: correct a diagnostic
18419         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
18420         in diagnostic; now use $prohibit.
18421
18422 2010-04-10  Bruno Haible  <address@hidden>
18423
18424         fchownat: Fix a C++ test error on Solaris 8.
18425         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
18426         the function does not exist.
18427
18428 2010-04-10  Bruno Haible  <bruno@clisp.org>
18429
18430         vasnprintf: Add more tests.
18431         * tests/test-vasnprintf-posix.c: Include <errno.h>.
18432         (test_function): Test converting an invalid wide string.
18433
18434         vasnprintf: Correct handling of unconvertible wide string arguments.
18435         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
18436         VASNPRINTF.
18437         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
18438         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
18439         smaller than the expected maximum need for the directive. Set errno to
18440         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
18441         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
18442         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
18443         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
18444         * modules/vasnprintf (Files): Add m4/printf.m4.
18445         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18446
18447 2010-04-10  Bruno Haible  <bruno@clisp.org>
18448
18449         vasnprintf: Fix crash in %ls directive.
18450         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
18451         string is passed as argument to %ls, with no precision and no width.
18452         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18453
18454 2010-04-10  Bruno Haible  <bruno@clisp.org>
18455
18456         vasnprintf: Fix multiple test failures on mingw.
18457         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
18458         _snprintf, or snwprintf, not _snwprintf.
18459
18460 2010-04-10  Bruno Haible  <bruno@clisp.org>
18461
18462         write: Fix a C++ test error on mingw.
18463         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
18464
18465 2010-04-10  Bruno Haible  <bruno@clisp.org>
18466
18467         vasnprintf test: Reduce code duplication.
18468         * tests/test-vasnprintf.c (test_function): New function, extracted from
18469         test_vasnprintf.
18470         (test_vasnprintf, test_asnprintf): Invoke it.
18471
18472 2010-04-10  Bruno Haible  <bruno@clisp.org>
18473
18474         strnlen: Fix warning in C++ mode on MacOS X.
18475         * lib/string.in.h (strnlen): Use the modern idiom.
18476         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
18477         defining strnlen as a macro already in <config.h>.
18478         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18479         REPLACE_STRNLEN.
18480         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
18481         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18482
18483 2010-04-08  James Youngman  <jay@gnu.org>
18484
18485         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
18486         the example.
18487
18488 2010-04-09  Jim Meyering  <meyering@redhat.com>
18489
18490         maint.mk: print better diagnostic when there is no $(_hv_file)
18491         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
18492         announce that when $(_hv_file) (aka help-version) does not exist.
18493
18494         init.sh: run tr in the "C" locale to avoid multibyte interpretation
18495         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
18496         not try to interpret its random input bytes.  Jarno Rajahalme reported
18497         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
18498         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
18499         (mktempd_): Likewise, just in case.
18500
18501         ftruncate: add two years to projected module removal date: 2012
18502         * m4/ftruncate.m4: Adjust comments.
18503
18504         ftruncate: mark module as obsolete; even MinGW provides it, now
18505         * modules/ftruncate (Status): Obsolete.
18506         (Notice): Say that.
18507         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
18508         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
18509
18510 2010-04-08  Bruno Haible  <bruno@clisp.org>
18511
18512         Fix side effects from tests-related modules.
18513         * modules/dprintf-posix (Comment): New section.
18514         * modules/fprintf-posix (Comment): Likewise.
18515         * modules/obstack-printf-posix (Comment): Likewise.
18516         * modules/printf-posix (Comment): Likewise.
18517         * modules/snprintf-posix (Comment): Likewise.
18518         * modules/sprintf-posix (Comment): Likewise.
18519         * modules/vasnprintf-posix (Comment): Likewise.
18520         * modules/vasprintf-posix (Comment): Likewise.
18521         * modules/vdprintf-posix (Comment): Likewise.
18522         * modules/vfprintf-posix (Comment): Likewise.
18523         * modules/vprintf-posix (Comment): Likewise.
18524         * modules/vsnprintf-posix (Comment): Likewise.
18525         * modules/vsprintf-posix (Comment): Likewise.
18526         * modules/xprintf-posix (Comment): Likewise.
18527         * modules/xvasprintf-posix (Comment): Likewise.
18528         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
18529         * modules/floorf-tests (Depends-on): Likewise.
18530         * modules/round-tests (Depends-on): Likewise.
18531         * modules/roundf-tests (Depends-on): Likewise.
18532         * modules/trunc-tests (Depends-on): Likewise.
18533         * modules/truncf-tests (Depends-on): Likewise.
18534         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
18535         'fprintf-posix' module is not present.
18536         * tests/test-floorf2.c (check): Likewise.
18537         * tests/test-trunc2.c (check): Likewise.
18538         * tests/test-truncf2.c (check): Likewise.
18539         * tests/test-round2.c (equal): Likewise.
18540         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18541
18542 2010-04-07  Karl Berry  <karl@gnu.org>
18543
18544         * config/srclist.txt,
18545         * config/srclistvars.sh,
18546         * config/srclist-update: doc fixes.
18547
18548 2010-04-07  Jim Meyering  <meyering@redhat.com>
18549
18550         maint.mk: add a PATH crosschecking syntax-check rule
18551         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
18552         Useful if you use a test like the one in help-version (coreutils,
18553         diffutils, grep, gzip) that ensures $(VERSION) matches what is
18554         printed by prog --version.
18555
18556 2010-04-06  Bruno Haible  <bruno@clisp.org>
18557
18558         Fix link error on mingw.
18559         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
18560         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
18561
18562 2010-04-06  Bruno Haible  <bruno@clisp.org>
18563
18564         Assume rmdir exists.
18565         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
18566
18567 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
18568
18569         doc: update users.txt
18570         * users.txt: Add gcal.
18571
18572 2010-04-06  Jim Meyering  <meyering@redhat.com>
18573
18574         init.sh: simply unset TMPDIR rather than risking env -i
18575         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
18576         although it probably works fine on all Unix-based systems, some
18577         systems (Cygwin?) cannot tolerate a totally cleared environment.
18578         Suggestion from Eric Blake.
18579
18580 2010-04-06  Jim Meyering  <meyering@redhat.com>
18581
18582         init.sh: portability fix: use env's POSIX-specified -i option not -u
18583         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
18584         than unportable env -u.  Solaris 5.11's env lacks support for -u.
18585
18586 2010-04-05  Bruno Haible  <bruno@clisp.org>
18587
18588         btowc: Work around Cygwin 1.7.2 bug.
18589         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
18590         does not map NUL to 0.
18591         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
18592
18593 2010-04-05  Bruno Haible  <bruno@clisp.org>
18594
18595         Make the multithread modules work on Cygwin 1.7.2.
18596         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
18597         imported symbols can be declared weak, so that it returns "no" on
18598         Cygwin 1.7.2.
18599
18600 2010-04-05  Bruno Haible  <bruno@clisp.org>
18601
18602         Use the module 'strncat'.
18603         * modules/unistr/u8-strncat (Depends-on): Add strncat.
18604
18605         Tests for module 'strncat'.
18606         * modules/strncat-tests: New file.
18607         * tests/test-strncat.c: New file.
18608
18609         New module 'strncat'.
18610         * lib/string.in.h (strncat): New declaration.
18611         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
18612         * m4/strncat.m4: New file, based on m4/memchr.m4.
18613         * modules/strncat: New file.
18614         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
18615         is declared.
18616         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
18617         REPLACE_STRNCAT.
18618         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
18619         REPLACE_STRNCAT.
18620         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
18621         module.
18622         * tests/test-string-c++.cc: Check signature of strncat.
18623
18624 2010-04-05  Jim Meyering  <meyering@redhat.com>
18625
18626         xstrtoumax-tests: convert to use init.sh
18627         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
18628         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18629         Use Exit, not exit.
18630         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18631
18632         xstrtoimax-tests: convert to use init.sh
18633         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
18634         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18635         Use Exit, not exit.
18636         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18637
18638 2010-04-05  Bruno Haible  <bruno@clisp.org>
18639
18640         sys_socket: Avoid #define replacements in C++ mode.
18641         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
18642         warning to the function if possible, rather than #defining the symbol
18643         to a dysfunctional alias.
18644
18645 2010-04-05  Bruno Haible  <bruno@clisp.org>
18646
18647         fseeko: Fix C++ test error on mingw.
18648         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
18649         gl_FUNC_FSEEKO.
18650         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
18651         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
18652         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
18653         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
18654
18655 2010-04-05  Bruno Haible  <bruno@clisp.org>
18656
18657         duplocale: Improve test output.
18658         * tests/test-duplocale.c (main): Print reason for skipped test.
18659
18660 2010-04-05  Bruno Haible  <bruno@clisp.org>
18661
18662         Assume rmdir exists.
18663         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
18664         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
18665
18666 2010-04-05  Bruno Haible  <bruno@clisp.org>
18667
18668         Fix link error on Solaris 8 with cc.
18669         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
18670
18671 2010-04-05  Bruno Haible  <bruno@clisp.org>
18672
18673         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18674         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
18675
18676 2010-04-05  Bruno Haible  <bruno@clisp.org>
18677
18678         vasprintf: Update documentation.
18679         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
18680
18681 2010-04-05  Bruno Haible  <bruno@clisp.org>
18682
18683         ptsname: Improve test.
18684         * tests/test-ptsname.c (main): Also try the various master names of BSD
18685         systems.
18686
18687 2010-04-05  Bruno Haible  <bruno@clisp.org>
18688
18689         memchr: Avoid a possible C++ test error.
18690         * lib/string.in.h (memchr): Provide declaration if function is missing.
18691         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
18692         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
18693         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
18694         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
18695
18696 2010-04-05  Bruno Haible  <bruno@clisp.org>
18697
18698         strtok_r: Improve idiom.
18699         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
18700         AC_LIBOBJ is used.
18701
18702 2010-04-05  Bruno Haible  <bruno@clisp.org>
18703
18704         strdup: Improve idiom.
18705         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
18706         AC_LIBOBJ is used.
18707         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
18708         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
18709         when AC_LIBOBJ is used.
18710
18711 2010-04-05  Bruno Haible  <bruno@clisp.org>
18712
18713         mbsinit, mbrtowc, wcrtomb: Improve idioms.
18714         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
18715         don't set REPLACE_MBSINIT to 1.
18716         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
18717         don't set REPLACE_MBRTOWC to 1.
18718         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
18719         exist, don't set REPLACE_MBSRTOWCS to 1.
18720         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
18721         exist, don't set REPLACE_MBSNRTOWCS to 1.
18722         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
18723         don't set REPLACE_WCRTOMB to 1.
18724         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
18725         exist, don't set REPLACE_WCSRTOMBS to 1.
18726         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
18727         exist, don't set REPLACE_WCSNRTOMBS to 1.
18728
18729 2010-04-05  Bruno Haible  <bruno@clisp.org>
18730
18731         ldexpl: Improve idiom.
18732         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
18733         make sure to set HAVE_DECL_LDEXPL to 0.
18734
18735 2010-04-05  Jim Meyering  <meyering@redhat.com>
18736
18737         xstrtol-tests: convert to use init.sh
18738         * modules/xstrtol-tests (Files): Add tests/init.sh.
18739         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18740         Use Exit, not exit.
18741         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18742
18743         atexit-tests: convert to use init.sh
18744         * modules/atexit-tests (Files): Add tests/init.sh.
18745         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18746         Use Exit, not exit.
18747         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18748
18749         init.sh: fix typo
18750         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
18751
18752         init.sh: make it easier for a test script to write to the tty, ...
18753         when using automake's parallel-tests mode.
18754         * tests/init.sh (stderr_fileno_): Define overridable variable.
18755         (warn_): New function, to use it.
18756         (fail_, skip_, framework_failure_): Use warn_.
18757
18758 2010-04-04  Bruno Haible  <bruno@clisp.org>
18759
18760         btowc: Avoid warning.
18761         * lib/btowc.c: Include <stdlib.h>.
18762         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
18763
18764 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18765             Bruno Haible  <bruno@clisp.org>
18766
18767         wchar: Port to NetBSD 1.5.
18768         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
18769         * lib/wctype.in.h (WEOF): Likewise.
18770
18771 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18772             Bruno Haible  <bruno@clisp.org>
18773
18774         Port extended stdio to NetBSD 1.5.
18775         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
18776         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
18777         older.
18778
18779 2010-04-04  Bruno Haible  <bruno@clisp.org>
18780
18781         string: Remove unused substitution.
18782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18783         HAVE_DECL_STRERROR.
18784         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
18785
18786 2010-04-04  Bruno Haible  <bruno@clisp.org>
18787
18788         strtod: Avoid a possible C++ test error.
18789         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
18790         set REPLACE_STRTOD.
18791
18792 2010-04-04  Bruno Haible  <bruno@clisp.org>
18793
18794         strerror: Update documentation.
18795         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
18796
18797 2010-04-04  Bruno Haible  <bruno@clisp.org>
18798
18799         stdio: Fix some C++ test errors on Solaris 8 with GCC.
18800         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
18801         _GL_CXXALIAS_SYS_CAST.
18802
18803 2010-04-04  Bruno Haible  <bruno@clisp.org>
18804
18805         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18806         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
18807         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
18808         REPLACE_FREXPL to 1.
18809         * doc/posix-functions/frexpl.texi: Update documentation.
18810
18811 2010-04-04  Bruno Haible  <bruno@clisp.org>
18812
18813         math: Fix some C++ test errors on Solaris 8 and Cygwin.
18814         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
18815
18816 2010-04-04  Bruno Haible  <bruno@clisp.org>
18817
18818         Implement nanosleep for native Windows.
18819         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
18820
18821 2010-04-04  Bruno Haible  <bruno@clisp.org>
18822
18823         math: Fix some C++ test errors on Solaris 8.
18824         * lib/math.in.h (truncf, trunc): Use simpler idiom.
18825
18826 2010-04-04  Bruno Haible  <bruno@clisp.org>
18827
18828         math: Fix some C++ test errors on Cygwin.
18829         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
18830         truncl): Provide declaration if the system does not have it.
18831         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
18832         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
18833         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
18834         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
18835         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
18836         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
18837         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
18838         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
18839         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
18840         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
18841         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
18842         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
18843         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
18844         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
18845         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
18846         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
18847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
18848         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
18849         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
18850         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
18851         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
18852         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
18853
18854 2010-04-04  Bruno Haible  <bruno@clisp.org>
18855
18856         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
18857         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
18858         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
18859         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
18860         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
18861         * m4/isinf.m4 (gl_ISINF): Likewise.
18862         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18863
18864 2010-04-04  Bruno Haible  <bruno@clisp.org>
18865
18866         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
18867         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18868
18869 2010-04-04  Bruno Haible  <bruno@clisp.org>
18870
18871         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
18872         * modules/tmpfile (configure.ac): Update.
18873
18874         tmpfile: Fix C++ test error on mingw.
18875         * lib/stdio.in.h (tmpfile): New declaration.
18876         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
18877         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
18878         * modules/tmpfile (Depends-on): Add stdio.
18879         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18880         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
18881         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
18882         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
18883         REPLACE_TMPFILE.
18884         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
18885
18886 2010-04-04  Bruno Haible  <bruno@clisp.org>
18887
18888         ioctl: Fix C++ test error on mingw.
18889         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
18890         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
18891         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
18892
18893 2010-04-03  Bruno Haible  <bruno@clisp.org>
18894
18895         wcwidth: Fix C++ test error on mingw.
18896         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
18897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
18898         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
18899
18900 2010-04-03  Bruno Haible  <bruno@clisp.org>
18901
18902         nanosleep: Fix C++ test error on mingw.
18903         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
18904         * lib/time.in.h (nanosleep): Use modern idiom.
18905         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
18906         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
18907         REPLACE_NANOSLEEP to 1.
18908         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
18909         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
18910
18911 2010-04-03  Bruno Haible  <bruno@clisp.org>
18912
18913         strptime: Fix C++ test error on mingw.
18914         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
18915         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
18916         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
18917         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
18918         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
18919         not REPLACE_STRPTIME.
18920         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
18921         REPLACE_STRPTIME.
18922
18923 2010-04-03  Bruno Haible  <bruno@clisp.org>
18924
18925         timegm: Fix C++ test error on mingw.
18926         * lib/time.in.h (timegm): Use modern idiom.
18927         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
18928         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
18929         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
18930         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
18931
18932 2010-04-03  Bruno Haible  <bruno@clisp.org>
18933
18934         timegm: Assume declaration if function exists.
18935         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
18936         if it exists. Don't clobber ac_cv_func_timegm.
18937
18938 2010-04-03  Bruno Haible  <bruno@clisp.org>
18939
18940         time_r: Fix C++ test error on mingw.
18941         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
18942         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
18943         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
18944         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
18945         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
18946
18947 2010-04-03  Bruno Haible  <bruno@clisp.org>
18948
18949         time_r: Minor updates.
18950         * modules/time_r (Description): Mention the provided functions.
18951         * lib/time_r.c: Don't include <string.h>.
18952         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
18953         * doc/posix-functions/localtime_r.texi: Likewise.
18954
18955 2010-04-03  Bruno Haible  <bruno@clisp.org>
18956
18957         time: Fix regression introduced on 2010-03-08.
18958         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
18959         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
18960
18961 2010-04-03  Jim Meyering  <meyering@redhat.com>
18962
18963         maint.mk: don't silently disable project-specific syntax-check rules
18964         * top/maint.mk (_prohibit_regexp): Define, to help people realize
18965         that they need to convert their project-specific syntax-check rules
18966         to use the new _sc_search_regexp.
18967
18968 2010-04-03  Bruno Haible  <bruno@clisp.org>
18969
18970         fchdir: Fix regression introduced on 2010-03-08.
18971         * lib/unistd.in.h (fchdir): Fix declaration.
18972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
18973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
18974         REPLACE_FCHDIR.
18975         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
18976         REPLACE_FCHDIR.
18977
18978 2010-04-03  Bruno Haible  <bruno@clisp.org>
18979
18980         getpagesize: Fix C++ test error on mingw.
18981         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
18982         system does not declare the function.
18983         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
18984         declared.
18985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18986         HAVE_DECL_GETPAGESIZE.
18987         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
18988
18989 2010-04-03  Bruno Haible  <bruno@clisp.org>
18990
18991         stdio: Make C++ tests work on mingw.
18992         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
18993         does not declare the function.
18994
18995 2010-04-03  Bruno Haible  <bruno@clisp.org>
18996
18997         ftello: Fix C++ test error on mingw.
18998         * lib/stdio.in.h (ftello): Use modern idiom.
18999         * lib/ftello.c (ftello): Renamed from rpl_ftello.
19000         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
19001         is missing and that it needs to be replaced.
19002         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
19003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
19004         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
19005
19006 2010-04-03  Bruno Haible  <bruno@clisp.org>
19007
19008         fseeko: Fix C++ test error on mingw.
19009         * lib/stdio.in.h (fseeko): Use modern idiom.
19010         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
19011         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
19012         is missing and that it needs to be replaced.
19013         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
19014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
19015         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
19016
19017 2010-04-03  Bruno Haible  <bruno@clisp.org>
19018
19019         mkstemp: Fix C++ test error on mingw.
19020         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19021         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19022         function is missing and that it needs to be replaced.
19023         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19024         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19025
19026 2010-04-03  Bruno Haible  <bruno@clisp.org>
19027
19028         stpncpy: Fix C++ test error on mingw.
19029         * lib/string.in.h (stpncpy): Use modern idiom.
19030         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19031         function is missing and that it needs to be replaced.
19032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19033         REPLACE_STPNCPY.
19034         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19035
19036 2010-04-03  Bruno Haible  <bruno@clisp.org>
19037
19038         sys_stat: Fix C++ test error on mingw.
19039         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19040         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19041
19042 2010-04-03  Bruno Haible  <bruno@clisp.org>
19043
19044         pty: Update doc.
19045         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19046
19047 2010-04-03  Bruno Haible  <bruno@clisp.org>
19048
19049         unistd: Fix C++ test error on mingw.
19050         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19051
19052 2010-04-03  Bruno Haible  <bruno@clisp.org>
19053
19054         Update doc regarding mingw.
19055         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19056         * doc/glibc-functions/login_tty.texi: Likewise.
19057         * doc/glibc-functions/forkpty.texi: Likewise.
19058
19059 2010-04-03  Bruno Haible  <bruno@clisp.org>
19060
19061         stdlib: Avoid compilation failure of c-strtold on mingw.
19062         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19063
19064 2010-04-03  Bruno Haible  <bruno@clisp.org>
19065
19066         locale: Make C++ tests work on Cygwin and mingw.
19067         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19068         cannot provide the function.
19069         Reported by Simon Josefsson.
19070
19071 2010-04-03  Bruno Haible  <bruno@clisp.org>
19072
19073         localename: Port to MacOS X 10.6.
19074         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19075         memory layout of the locales in MacOS X 10.6 as well.
19076         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19077
19078 2010-04-02  Bruno Haible  <bruno@clisp.org>
19079
19080         gnulib-tool: Ensure that long-running tests are executed last.
19081         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19082         running tests after the one for the other tests.
19083
19084 2010-04-02  Bruno Haible  <bruno@clisp.org>
19085
19086         gnulib-tool: Ensure the tests in the main directory are executed first.
19087         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19088         start with the current directory.
19089
19090 2010-04-02  Bruno Haible  <bruno@clisp.org>
19091
19092         Tests for module 'havelib', moved here from GNU gettext.
19093         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19094         modifications.
19095         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19096         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19097         with modifications.
19098         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19099         modifications.
19100         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19101         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19102         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19103         with modifications.
19104         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19105         with modifications.
19106         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19107         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19108         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19109         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19110         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19111         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19112         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19113         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19114         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19115         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19116         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19117         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19118         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19119         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19120         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19121         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19122         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19123         with modifications.
19124         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19125         with modifications.
19126         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19127         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19128         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19129         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19130         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19131         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19132         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19133         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19134         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19135         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19136         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19137         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19138         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19139         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19140         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19141         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19142         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19143         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19144         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19145         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19146         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19147         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19148         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19149         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19150         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19151         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19152         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19153         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19154         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19155         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19156         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19157         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19158         * tests/havelib/rpathx/rpathx.c: New file, from
19159         gettext/autoconf-lib-link.
19160         * tests/havelib/rpathx/Makefile.am: New file, from
19161         gettext/autoconf-lib-link.
19162         * tests/havelib/rpathx/configure.ac: New file, from
19163         gettext/autoconf-lib-link with modifications.
19164         * tests/havelib/rpathy/rpathy.c: New file, from
19165         gettext/autoconf-lib-link.
19166         * tests/havelib/rpathy/Makefile.am: New file, from
19167         gettext/autoconf-lib-link.
19168         * tests/havelib/rpathy/configure.ac: New file, from
19169         gettext/autoconf-lib-link with modifications.
19170         * tests/havelib/rpathz/rpathz.c: New file, from
19171         gettext/autoconf-lib-link.
19172         * tests/havelib/rpathz/Makefile.am: New file, from
19173         gettext/autoconf-lib-link.
19174         * tests/havelib/rpathz/configure.ac: New file, from
19175         gettext/autoconf-lib-link with modifications.
19176         * tests/havelib/rpathlx/usex.c: New file, from
19177         gettext/autoconf-lib-link.
19178         * tests/havelib/rpathlx/Makefile.am: New file, from
19179         gettext/autoconf-lib-link.
19180         * tests/havelib/rpathlx/configure.ac: New file, from
19181         gettext/autoconf-lib-link with modifications.
19182         * tests/havelib/rpathly/usey.c: New file, from
19183         gettext/autoconf-lib-link.
19184         * tests/havelib/rpathly/Makefile.am: New file, from
19185         gettext/autoconf-lib-link.
19186         * tests/havelib/rpathly/configure.ac: New file, from
19187         gettext/autoconf-lib-link with modifications.
19188         * tests/havelib/rpathlz/usez.c: New file, from
19189         gettext/autoconf-lib-link.
19190         * tests/havelib/rpathlz/Makefile.am: New file, from
19191         gettext/autoconf-lib-link.
19192         * tests/havelib/rpathlz/configure.ac: New file, from
19193         gettext/autoconf-lib-link with modifications.
19194         * tests/havelib/rpathlyx/usey.c: New file, from
19195         gettext/autoconf-lib-link.
19196         * tests/havelib/rpathlyx/Makefile.am: New file, from
19197         gettext/autoconf-lib-link.
19198         * tests/havelib/rpathlyx/configure.ac: New file, from
19199         gettext/autoconf-lib-link with modifications.
19200         * tests/havelib/rpathlzyx/usez.c: New file, from
19201         gettext/autoconf-lib-link.
19202         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19203         gettext/autoconf-lib-link.
19204         * tests/havelib/rpathlzyx/configure.ac: New file, from
19205         gettext/autoconf-lib-link with modifications.
19206         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19207         with modifications.
19208
19209 2010-04-02  Bruno Haible  <bruno@clisp.org>
19210
19211         gnulib-tool: Create distributed built sources also for the tests.
19212         * gnulib-tool (func_create_testdir): Also generate distributed built
19213         sources in the tests directory.
19214
19215 2010-04-02  Bruno Haible  <bruno@clisp.org>
19216
19217         gnulib-tool: Obey user's environment variables.
19218         * gnulib-tool (func_create_testdir): When creating built sources,
19219         respect the environment variables for autoconf, automake, etc. given by
19220         the user.
19221
19222 2010-04-02  Bruno Haible  <bruno@clisp.org>
19223
19224         gnulib-tool: Provide the value of --m4-base to modules.
19225         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19226         of gl_m4_base.
19227
19228 2010-04-02  Eric Blake  <eblake@redhat.com>
19229
19230         maint.mk: fix some fallout
19231         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19232         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19233
19234 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19235
19236         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
19237         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
19238         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
19239         (sc_cast_of_x_alloc_return_value): Likewise.
19240         (sc_cast_of_alloca_return_value): Likewise.
19241         (sc_space_tab): Likewise.
19242         (sc_prohibit_atoi_atof): Likewise.
19243         (sc_prohibit_magic_number_exit): Likewise.
19244         (sc_error_exit_success): Likewise.
19245         (sc_file_system): Likewise.
19246         (sc_prohibit_have_config_h): Likewise.
19247         (sc_require_config_h): Likewise.
19248         (sc_prohibit_HAVE_MBRTOWC): Likewise.
19249         (sc_obsolete_symbols): Likewise.
19250         (sc_changelog): Likewise.
19251         (sc_program_name): Likewise.
19252         (sc_the_the): Likewise.
19253         (sc_trailing_blank): Likewise.
19254         (sc_two_space_separator_in_usage): Likewise.
19255         (sc_useless_cpp_parens): Likewise.
19256         (sc_GPL_version): Likewise.
19257         (sc_GFDL_version): Likewise.
19258         (sc_texinfo_acronym): Likewise.
19259         (sc_prohibit_cvs_keyword): Likewise.
19260         (sc_prohibit_stat_st_blocks): Likewise.
19261         (sc_prohibit_S_IS_definition): Likewise.
19262         (sc_redundant_const): Likewise.
19263         (sc_makefile_TAB_only_indentation): Likewise.
19264         (sc_m4_quote_check): Likewise.
19265         (sc_makefile_path_separator_check): Likewise.
19266         (sc_copyright_check): Likewise.
19267         (sc_Wundef_boolean): Likewise.
19268         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19269
19270         maint.mk: match 0 or more whitespace-before-function-call '('
19271         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
19272         that have zero or two-and-more spaces between the function name
19273         and the open parenthesis.
19274         (sc_error_message_warn_fatal): Likewise.
19275         (sc_error_message_uppercase): Likewise.
19276         (sc_error_message_period): Likewise.
19277
19278 2010-03-31  Eric Blake  <eblake@redhat.com>
19279
19280         maint.mk: check for [ as well as test
19281         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
19282         Based on a libvirt report by Matthias Bolte.
19283
19284         gnumakefile: don't squelch _version output
19285         * top/GNUmakefile (_version): Create one-shot dependency rather
19286         than using $(shell) when version must be regenerated.
19287         (_autoreconf): Run verbosely, by default.
19288
19289         sys_time: avoid compiler warnings
19290         * lib/sys_time.in.h (includes): Ensure gcc pragma is
19291         unconditional, fixing regression from 2010-03-29.
19292         Reported by Simon Josefsson.
19293
19294 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19295
19296         maint.mk: s/_header_without_use/_sc_header_without_use/
19297         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
19298         (sc_prohibit_assert_without_use): Use the new name.
19299         (sc_prohibit_close_stream_without_use): Likewise.
19300         (sc_prohibit_getopt_without_use): Likewise.
19301         (sc_prohibit_quotearg_without_use): Likewise.
19302         (sc_prohibit_quote_without_use): Likewise.
19303         (sc_prohibit_long_options_without_use): Likewise.
19304         (sc_prohibit_inttostr_without_use): Likewise.
19305         (sc_prohibit_ignore_value_without_use): Likewise.
19306         (sc_prohibit_error_without_use): Likewise.
19307         (sc_prohibit_xalloc_without_use): Likewise.
19308         (sc_prohibit_hash_without_use): Likewise.
19309         (sc_prohibit_hash_pjw_without_use): Likewise.
19310         (sc_prohibit_safe_read_without_use): Likewise.
19311         (sc_prohibit_argmatch_without_use): Likewise.
19312         (sc_prohibit_canonicalize_without_use): Likewise.
19313         (sc_prohibit_root_dev_ino_without_use): Likewise.
19314         (sc_prohibit_openat_without_use): Likewise.
19315         (sc_prohibit_c_ctype_without_use): Likewise.
19316         (sc_prohibit_signal_without_use): Likewise.
19317         (sc_prohibit_intprops_without_use): Likewise.
19318
19319 2010-03-30  Eric Blake  <eblake@redhat.com>
19320
19321         maint: improve module indicators
19322         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
19323         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
19324         columns, and avoid extra macro expansion.
19325
19326         fdopendir: work around FreeBSD bug
19327         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19328         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19329         * modules/dirent (Makefile.am): Substitute it.
19330         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19331         declaration.
19332         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19333         fix.
19334         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19335
19336 2010-03-29  Bruno Haible  <bruno@clisp.org>
19337
19338         Emit #pragma system_header after the inclusion guard, not before.
19339         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19340         guard that spans the entire file, not before. This enables an
19341         optimization in GCC's preprocessor.
19342         * lib/ctype.in.h: Likewise.
19343         * lib/dirent.in.h: Likewise.
19344         * lib/errno.in.h: Likewise.
19345         * lib/float.in.h: Likewise.
19346         * lib/getopt.in.h: Likewise.
19347         * lib/iconv.in.h: Likewise.
19348         * lib/langinfo.in.h: Likewise.
19349         * lib/locale.in.h: Likewise.
19350         * lib/math.in.h: Likewise.
19351         * lib/netdb.in.h: Likewise.
19352         * lib/netinet_in.in.h: Likewise.
19353         * lib/pty.in.h: Likewise.
19354         * lib/sched.in.h: Likewise.
19355         * lib/se-selinux.in.h: Likewise.
19356         * lib/search.in.h: Likewise.
19357         * lib/spawn.in.h: Likewise.
19358         * lib/stdarg.in.h: Likewise.
19359         * lib/stdint.in.h: Likewise.
19360         * lib/string.in.h: Likewise.
19361         * lib/strings.in.h: Likewise.
19362         * lib/sys_file.in.h: Likewise.
19363         * lib/sys_ioctl.in.h: Likewise.
19364         * lib/sys_time.in.h: Likewise.
19365         * lib/sys_times.in.h: Likewise.
19366         * lib/sys_utsname.in.h: Likewise.
19367         * lib/sys_wait.in.h: Likewise.
19368         * lib/sysexits.in.h: Likewise.
19369         * lib/wctype.in.h: Likewise.
19370
19371 2010-03-28  James Youngman  <jay@gnu.org>
19372
19373         save-cwd: don't leak a file descriptor when the caller execs.
19374         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19375         saved file descriptor.
19376         * modules/save-cwd (Depends-on): Depend on cloexec.
19377
19378 2010-03-29  Bruno Haible  <bruno@clisp.org>
19379
19380         Remove vestiges of fts-lgpl module.
19381         * lib/fts_.h: Assume GNULIB_FTS is 1.
19382         * lib/fts.c: Likewise.
19383         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19384
19385 2010-03-28  Bruno Haible  <bruno@clisp.org>
19386
19387         Fix definition of tests witness macro.
19388         * gnulib-tool (func_import): Fix definition of witness macro.
19389
19390 2010-03-28  Bruno Haible  <bruno@clisp.org>
19391
19392         Fix ioctl's protoype on glibc systems.
19393         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19394         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19395         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19396         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19397         signature. If not, arrange to replace the ioctl function.
19398         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19399         REPLACE_IOCTL.
19400         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19401         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
19402         Reported by Ludovic Courtès <ludo@gnu.org>.
19403
19404 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
19405
19406         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
19407         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19408         made it so grep -r --include=GLOB* ... did not work.
19409
19410 2010-03-26  Jim Meyering  <meyering@redhat.com>
19411             Eric Blake  <eblake@redhat.com>
19412
19413         maint.mk: prohibit use of test's -o and -a operators
19414         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
19415
19416 2010-03-28  Bruno Haible  <bruno@clisp.org>
19417
19418         Remove unused GNULIB_XYZ macro definitions.
19419         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
19420         invocation.
19421
19422 2010-03-28  Bruno Haible  <bruno@clisp.org>
19423
19424         Mark privileged tests modules.
19425         * modules/idpriv-drop-tests (Status): New section.
19426         * modules/idpriv-droptemp-tests (Status): New section.
19427
19428 2010-03-28  Bruno Haible  <bruno@clisp.org>
19429
19430         Split C++ tests into separate tests modules.
19431         * modules/dirent-c++-tests: New file, extracted from
19432         modules/dirent-tests.
19433         * modules/dirent-tests: Depend on it.
19434         * modules/fcntl-h-c++-tests: New file, extracted from
19435         modules/fcntl-h-tests.
19436         * modules/fcntl-h-tests: Depend on it.
19437         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
19438         * modules/glob-tests: Depend on it.
19439         * modules/iconv-h-c++-tests: New file, extracted from
19440         modules/iconv-h-tests.
19441         * modules/iconv-h-tests: Depend on it.
19442         * modules/langinfo-c++-tests: New file, extracted from
19443         modules/langinfo-tests.
19444         * modules/langinfo-tests: Depend on it.
19445         * modules/locale-c++-tests: New file, extracted from
19446         modules/locale-tests.
19447         * modules/locale-tests: Depend on it.
19448         * modules/math-c++-tests: New file, extracted from modules/math-tests.
19449         * modules/math-tests: Depend on it.
19450         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
19451         * modules/pty-tests: Depend on it.
19452         * modules/search-c++-tests: New file, extracted from
19453         modules/search-tests.
19454         * modules/search-tests: Depend on it.
19455         * modules/signal-c++-tests: New file, extracted from
19456         modules/signal-tests.
19457         * modules/signal-tests: Depend on it.
19458         * modules/spawn-c++-tests: New file, extracted from
19459         modules/spawn-tests.
19460         * modules/spawn-tests: Depend on it.
19461         * modules/stdio-c++-tests: New file, extracted from
19462         modules/stdio-tests.
19463         * modules/stdio-tests: Depend on it.
19464         * modules/stdlib-c++-tests: New file, extracted from
19465         modules/stdlib-tests.
19466         * modules/stdlib-tests: Depend on it.
19467         * modules/string-c++-tests: New file, extracted from
19468         modules/string-tests.
19469         * modules/string-tests: Depend on it.
19470         * modules/sys_ioctl-c++-tests: New file, extracted from
19471         modules/sys_ioctl-tests.
19472         * modules/sys_ioctl-tests: Depend on it.
19473         * modules/sys_select-c++-tests: New file, extracted from
19474         modules/sys_select-tests.
19475         * modules/sys_select-tests: Depend on it.
19476         * modules/sys_socket-c++-tests: New file, extracted from
19477         modules/sys_socket-tests.
19478         * modules/sys_socket-tests: Depend on it.
19479         * modules/sys_stat-c++-tests: New file, extracted from
19480         modules/sys_stat-tests.
19481         * modules/sys_stat-tests: Depend on it.
19482         * modules/sys_time-c++-tests: New file, extracted from
19483         modules/sys_time-tests.
19484         * modules/sys_time-tests: Depend on it.
19485         * modules/time-c++-tests: New file, extracted from modules/time-tests.
19486         * modules/time-tests: Depend on it.
19487         * modules/unistd-c++-tests: New file, extracted from
19488         modules/unistd-tests.
19489         * modules/unistd-tests: Depend on it.
19490         * modules/wchar-c++-tests: New file, extracted from
19491         modules/wchar-tests.
19492         * modules/wchar-tests: Depend on it.
19493         * modules/wctype-c++-tests: New file, extracted from
19494         modules/wctype-tests.
19495         * modules/wctype-tests: Depend on it.
19496         Reported by Simon Josefsson.
19497
19498 2010-03-28  Bruno Haible  <bruno@clisp.org>
19499
19500         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
19501         * gnulib-tool (func_exists_module): New function, extracted from
19502         func_verify_module.
19503         (func_verify_module): Use it.
19504         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
19505         'foo' only if 'foo' exists.
19506         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
19507         module.
19508
19509 2010-03-28  Bruno Haible  <bruno@clisp.org>
19510
19511         gnulib-tool: Add support for special categories of tests.
19512         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
19513         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
19514         (func_usage): Document them.
19515         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
19516         inc_unportable_tests, inc_all_tests): New variables.
19517         (func_acceptable): Consider these variables.
19518         (func_modules_transitive_closure): Make it work when the 'Status' field
19519         consists of multiple words.
19520         (func_import): Store and restore the values of inc_cxx_tests,
19521         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
19522         inc_all_tests in gnulib-comp.m4.
19523         (func_create_testdir): Set inc_all_tests to true.
19524         * doc/gnulib.texi (Extra tests modules): New section.
19525         Suggested by Jim Meyering.
19526
19527 2010-03-28  Bruno Haible  <bruno@clisp.org>
19528
19529         ansi-c++-opt: Allow turning off the C++ build by default.
19530         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
19531         gl_CXX_CHOICE_DEFAULT_NO is defined.
19532         Requested by Eric Blake.
19533
19534 2010-03-28  Bruno Haible  <bruno@clisp.org>
19535
19536         unistd: Avoid #define replacements in C++ mode.
19537         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
19538         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
19539         setsockopt, shutdown, select): In C++, attach a warning to the function
19540         if possible, rather than #defining the symbol to a dysfunctional alias.
19541         Reported by John W. Eaton <jwe@gnu.org>.
19542
19543 2010-03-28  Bruno Haible  <bruno@clisp.org>
19544
19545         Fix link errors on mingw.
19546         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
19547         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
19548         $(LIBSOCKET).
19549         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
19550         $(LIBSOCKET).
19551
19552 2010-03-28  Bruno Haible  <bruno@clisp.org>
19553             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19554
19555         lib-ignore: Determine different options for different compilers.
19556         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
19557         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
19558         Add comments.
19559         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
19560         * NEWS: Mention the change.
19561
19562 2010-03-27  Bruno Haible  <bruno@clisp.org>
19563
19564         Remove unused GNULIB_XYZ macro definitions.
19565         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19566         * modules/fseek (configure.ac): Likewise.
19567         * modules/ioctl (configure.ac): Likewise.
19568         * modules/open (configure.ac): Likewise.
19569         * modules/stdlib-safer (configure.ac): Likewise.
19570
19571 2010-03-27  Bruno Haible  <bruno@clisp.org>
19572
19573         Add a remark about certain modules.
19574         * modules/malloc (Comment): New section.
19575         * modules/realloc (Comment): Likewise.
19576         * modules/sigpipe (Comment): Likewise.
19577
19578 2010-03-27  Bruno Haible  <bruno@clisp.org>
19579
19580         Resolve conflict between the two kinds of module indicators.
19581         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
19582         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
19583         * modules/canonicalize (configure.ac): Invoke
19584         gl_MODULE_INDICATOR_FOR_TESTS.
19585         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
19586         GNULIB_XYZ.
19587         * tests/test-dirent-c++.cc: Likewise.
19588         * tests/test-dirent-safer.c: Likewise.
19589         * tests/test-dup2.c: Likewise.
19590         * tests/test-fchdir.c: Likewise.
19591         * tests/test-fcntl-h-c++.cc: Likewise.
19592         * tests/test-getopt.c: Likewise.
19593         * tests/test-getopt.h: Likewise.
19594         * tests/test-langinfo-c++.cc: Likewise.
19595         * tests/test-locale-c++.cc: Likewise.
19596         * tests/test-math-c++.cc: Likewise.
19597         * tests/test-pty-c++.cc: Likewise.
19598         * tests/test-search-c++.cc: Likewise.
19599         * tests/test-signal-c++.cc: Likewise.
19600         * tests/test-spawn-c++.cc: Likewise.
19601         * tests/test-stdio-c++.cc: Likewise.
19602         * tests/test-stdlib-c++.cc: Likewise.
19603         * tests/test-string-c++.cc: Likewise.
19604         * tests/test-sys_ioctl-c++.cc: Likewise.
19605         * tests/test-sys_select-c++.cc: Likewise.
19606         * tests/test-sys_socket-c++.cc: Likewise.
19607         * tests/test-sys_stat-c++.cc: Likewise.
19608         * tests/test-sys_time-c++.cc: Likewise.
19609         * tests/test-time-c++.cc: Likewise.
19610         * tests/test-unistd-c++.cc: Likewise.
19611         * tests/test-wchar-c++.cc: Likewise.
19612         * tests/uninorm/test-u8-nfc.c: Likewise.
19613         * tests/uninorm/test-u8-nfd.c: Likewise.
19614         * tests/uninorm/test-u8-nfkc.c: Likewise.
19615         * tests/uninorm/test-u8-nfkd.c: Likewise.
19616         * tests/uninorm/test-u16-nfc.c: Likewise.
19617         * tests/uninorm/test-u16-nfd.c: Likewise.
19618         * tests/uninorm/test-u16-nfkc.c: Likewise.
19619         * tests/uninorm/test-u16-nfkd.c: Likewise.
19620         * tests/uninorm/test-u32-nfc.c: Likewise.
19621         * tests/uninorm/test-u32-nfc-big.c: Likewise.
19622         * tests/uninorm/test-u32-nfd.c: Likewise.
19623         * tests/uninorm/test-u32-nfd-big.c: Likewise.
19624         * tests/uninorm/test-u32-nfkc.c: Likewise.
19625         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
19626         * tests/uninorm/test-u32-nfkd.c: Likewise.
19627         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
19628         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19629
19630 2010-03-27  Bruno Haible  <bruno@clisp.org>
19631
19632         Distinguish two kinds of module indicators.
19633         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
19634         gl_MODULE_INDICATOR.
19635         (gl_MODULE_INDICATOR): New macro.
19636         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19637         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
19638         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19639         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19640         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19641         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19642         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19643         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19644         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19645         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19646         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19647         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19648         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19649         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19650         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19651         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19652         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19653         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19654         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19655         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19656         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19657         * modules/cloexec (configure.ac): Likewise.
19658         * modules/getopt-gnu (configure.ac): Likewise.
19659         * modules/uninorm/u8-normalize (configure.ac): Likewise.
19660         * modules/uninorm/u16-normalize (configure.ac): Likewise.
19661         * modules/uninorm/u32-normalize (configure.ac): Likewise.
19662         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
19663
19664 2010-03-27  Bruno Haible  <bruno@clisp.org>
19665
19666         New module description field 'Comment'.
19667         * gnulib-tool: New option --extract-comment.
19668         (func_usage): Document it.
19669         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
19670         (func_get_comment): New function.
19671         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
19672
19673 2010-03-27  Bruno Haible  <bruno@clisp.org>
19674
19675         Addendum to 2010-02-07 commit.
19676         * gnulib-tool (func_usage): Document --extract-applicability option.
19677
19678 2010-03-27  Bruno Haible  <bruno@clisp.org>
19679
19680         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
19681         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
19682         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
19683         rather than link errors.
19684
19685 2010-03-27  Bruno Haible  <bruno@clisp.org>
19686
19687         Avoid side effects from tests-related modules on the compilation of lib.
19688         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
19689         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
19690         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
19691         parameter. Emit into AM_CPPFLAGS a definition of the designated C
19692         macro.
19693         (func_import): Define a witness macro. Assign it a value that depends
19694         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
19695         tests-related modules.
19696         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
19697         Reported by Jim Meyering.
19698
19699 2010-03-27  Bruno Haible  <bruno@clisp.org>
19700
19701         Factorize common .m4 code.
19702         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
19703         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
19704         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
19705         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
19706         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19707         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
19708         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
19709         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19710         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19711         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19712         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
19713         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19714         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19715         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19716         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19717         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
19718         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19719         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19720         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19721         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
19722         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
19723         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19724         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19725         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19726         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19727         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19728         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
19729         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
19730         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
19731         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19732         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19733         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19734
19735 2010-03-27  Bruno Haible  <bruno@clisp.org>
19736
19737         Fix a compilation error on Cygwin with g++ >= 4.3.
19738         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
19739         if it is undefined or if we alias it to chmod.
19740         (lstat): Don't warn about the use of this function if it is undefined
19741         or if we alias it to stat.
19742         Reported by Simon Josefsson.
19743
19744 2010-03-27  Bruno Haible  <bruno@clisp.org>
19745
19746         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
19747         * modules/getlogin (configure.ac): Update.
19748
19749         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
19750         * modules/getlogin_r (configure.ac): Update.
19751
19752         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
19753         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
19754         * modules/inet_ntop (configure.ac): Update.
19755
19756         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
19757         * modules/inet_pton (configure.ac): Update.
19758
19759         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
19760         * modules/mbslen (configure.ac): Update.
19761
19762         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
19763         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
19764         * modules/forkpty (configure.ac): Update.
19765         * modules/openpty (configure.ac): Update.
19766
19767 2010-03-26  Simon Josefsson  <simon@josefsson.org>
19768
19769         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
19770         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
19771
19772 2010-03-25  Eric Blake  <eblake@redhat.com>
19773
19774         maint: use pragma consistently across replacement headers
19775         * lib/ctype.in.h (system_header): Hoist for consistent placement.
19776         * lib/dirent.in.h (system_header): Likewise.
19777         * lib/errno.in.h (system_header): Likewise.
19778         * lib/float.in.h (system_header): Likewise.
19779         * lib/getopt.in.h (system_header): Likewise.
19780         * lib/iconv.in.h (system_header): Likewise.
19781         * lib/inttypes.in.h (system_header): Likewise.
19782         * lib/langinfo.in.h (system_header): Likewise.
19783         * lib/locale.in.h (system_header): Likewise.
19784         * lib/math.in.h (system_header): Likewise.
19785         * lib/netdb.in.h (system_header): Likewise.
19786         * lib/netinet_in.in.h (system_header): Likewise.
19787         * lib/pty.in.h (system_header): Likewise.
19788         * lib/sched.in.h (system_header): Likewise.
19789         * lib/se-selinux.in.h (system_header): Likewise.
19790         * lib/search.in.h (system_header): Likewise.
19791         * lib/spawn.in.h (system_header): Likewise.
19792         * lib/stdarg.in.h (system_header): Likewise.
19793         * lib/stdint.in.h (system_header): Likewise.
19794         * lib/string.in.h (system_header): Likewise.
19795         * lib/strings.in.h (system_header): Likewise.
19796         * lib/sys_file.in.h (system_header): Likewise.
19797         * lib/sys_ioctl.in.h (system_header): Likewise.
19798         * lib/sys_socket.in.h (system_header): Likewise.
19799         * lib/sys_times.in.h (system_header): Likewise.
19800         * lib/sys_utsname.in.h (system_header): Likewise.
19801         * lib/sys_wait.in.h (system_header): Likewise.
19802         * lib/sysexits.in.h (system_header): Likewise.
19803         * lib/unistd.in.h (system_header): Likewise.
19804         * lib/wctype.in.h (system_header): Likewise.
19805
19806         arpa/inet: fix mingw compilation warning
19807         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
19808         Reported by Matthew Bolte.
19809
19810 2010-03-25  Bruno Haible  <bruno@clisp.org>
19811
19812         Avoid collision between gnulib wrapper and libintl wrapper.
19813         * lib/printf.c (printf): Don't define if a printf wrapper is already
19814         defined in intl/printf.c.
19815         Reported by Michel Boaventura <michel@michelboaventura.com>.
19816
19817 2010-03-25  Bruno Haible  <bruno@clisp.org>
19818
19819         Use ANSI C.
19820         * lib/readutmp.h (getutent): Provide ANSI C prototype.
19821
19822 2010-03-25  Bruno Haible  <bruno@clisp.org>
19823
19824         Minor formatting changes.
19825         * lib/acosl.c: Insert space before function argument list.
19826         * lib/argz.c: Likewise.
19827         * lib/asinl.c: Likewise.
19828         * lib/expl.c: Likewise.
19829         * lib/gen-uni-tables.c: Likewise.
19830         * lib/gettext.h: Likewise.
19831         * lib/glthread/lock.h: Likewise.
19832         * lib/tanl.c: Likewise.
19833         * lib/uniname/uniname.c: Likewise.
19834         * tests/test-idpriv-drop.c: Likewise.
19835         * tests/test-idpriv-droptemp.c: Likewise.
19836         * tests/test-lock.c: Likewise.
19837         * tests/test-tls.c: Likewise.
19838         * lib/argp-help.c: Insert space before function-like macro argument
19839         list.
19840         * lib/memcmp.c: Likewise.
19841         * tests/test-base64.c: Likewise.
19842         * lib/localename.c: Insert space before sizeof's argument list.
19843         * lib/safe-alloc.h: Likewise.
19844         * lib/file-set.h: Insert space before macro argument list.
19845         * tests/test-argp.c: Likewise.
19846         * lib/argp-namefrob.h: Insert space before function parameter list.
19847         * lib/getaddrinfo.c: Likewise.
19848         * lib/netdb.in.h: Likewise.
19849         * lib/parse-duration.h: Likewise.
19850         * lib/parse-duration.c: Likewise.
19851         * lib/poll.c: Likewise.
19852         * lib/select.c: Likewise.
19853         * lib/trim.h: Likewise.
19854         * tests/test-usleep.c: Likewise.
19855         * lib/ldexpl.c: Insert space before function parameter list and before
19856         function argument list.
19857         * lib/logl.c: Likewise.
19858         * lib/sqrtl.c: Likewise.
19859         * lib/trim.c: Likewise.
19860         * lib/cosl.c: Use GNU style indentation. Insert space before function
19861         argument list.
19862         * lib/sinl.c: Likewise.
19863         * lib/tsearch.c: Insert space after 'for'.
19864         Reported by Jim Meyering.
19865
19866 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
19867
19868         * maint.mk (sc_Wundef_boolean): Check for the presence of the
19869         config header before grepping, as it's not present before
19870         autoreconf/configure are run.  Reported by Simon Josefsson.
19871
19872 2010-03-23  Bruno Haible  <bruno@clisp.org>
19873
19874         pt_chown: Make it work with automake < 1.11.
19875         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
19876         Reported by Simon Josefsson.
19877
19878 2010-03-23  Bruno Haible  <bruno@clisp.org>
19879
19880         pt_chown: Don't depend on GPLed modules.
19881         * lib/pt_chown.c: Don't include idpriv.h.
19882         (main): Don't drop privileges.
19883         * modules/pt_chown (Depends-on): Remove idpriv-drop.
19884         Reported by Simon Josefsson.
19885
19886 2010-03-24  Simon Josefsson  <simon@josefsson.org>
19887
19888         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
19889         suggestions from karl@freefriends.org (Karl Berry).
19890
19891 2010-03-22  Eric Blake  <eblake@redhat.com>
19892
19893         gethostname: further tweaks
19894         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
19895         are overriding gethostname.
19896         Suggested by Bruno Haible.
19897
19898 2010-03-21  Bruno Haible  <bruno@clisp.org>
19899
19900         Fix comments.
19901         * lib/forkpty.c (rpl_forkpty): Fix comment.
19902         * lib/openpty.c (rpl_openpty): Likewise.
19903         Reported by Eric Blake.
19904
19905 2010-03-22  Eric Blake  <eblake@redhat.com>
19906
19907         gethostname: fix build on mingw
19908         * lib/unistd.in.h (includes): Work around fact that mingw
19909         <winsock2.h> re-includes <unistd.h>, by avoiding any
19910         redeclarations if we are being included by <winsock2.h>.
19911         Reported by Matthias Bolte.
19912
19913 2010-03-21  Bruno Haible  <bruno@clisp.org>
19914
19915         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
19916         * lib/forkpty.c (forkpty): New replacement function, from glibc with
19917         modifications.
19918         * lib/pty.in.h (forkpty): Update declaration. Add comments.
19919         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
19920         provide the replacement.
19921         * modules/forkpty (Depends-on): Add openpty, login_tty.
19922         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
19923         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
19924         * doc/glibc-functions/forkpty.texi: More supported platforms.
19925         * config/srclist.txt: Add forkpty.c (commented).
19926
19927 2010-03-21  Bruno Haible  <bruno@clisp.org>
19928
19929         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
19930         (Makefile.am): Verify that PTY_LIB is defined.
19931
19932         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
19933
19934 2010-03-21  Bruno Haible  <bruno@clisp.org>
19935
19936         Tests for module 'login_tty'.
19937         * modules/login_tty-tests: New file.
19938         * tests/test-login_tty.c: New file.
19939
19940         New module 'login_tty'.
19941         * lib/login_tty.c: New file.
19942         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
19943         * modules/login_tty: New file.
19944         * doc/glibc-functions/login_tty.texi: Mention the new module.
19945
19946 2010-03-21  Bruno Haible  <bruno@clisp.org>
19947
19948         login_tty: Documentation.
19949         * doc/glibc-functions/login_tty.texi: New file.
19950         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
19951
19952 2010-03-21  Bruno Haible  <bruno@clisp.org>
19953
19954         pty: Consistent macro naming.
19955         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
19956         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
19957         * modules/pty (configure.ac): Update.
19958
19959 2010-03-21  Bruno Haible  <bruno@clisp.org>
19960
19961         Tests for openpty: Make stricter.
19962         * tests/test-openpty.c (main): Add test of canonical processing and
19963         erase.
19964         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
19965
19966         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
19967         * lib/openpty.c (openpty): New replacement function.
19968         * lib/pty.in.h: Include <termios.h>.
19969         (openpty): Update declaration. Add comments.
19970         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
19971         is not declared, arrange to provide the replacement. Check for _getpty
19972         and posix_openpt.
19973         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
19974         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
19975         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
19976         * modules/pty-tests (test_pty_c___LDADD): New variable.
19977         * doc/glibc-functions/openpty.texi: More supported platforms.
19978
19979 2010-03-21  Bruno Haible  <bruno@clisp.org>
19980
19981         setenv: Tweaks.
19982         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
19983         the test program.
19984         * doc/posix-functions/setenv.texi: Update platforms list.
19985
19986 2010-03-21  Bruno Haible  <bruno@clisp.org>
19987
19988         New module 'unlockpt'.
19989         * lib/unlockpt.c: New file, from glibc with modifications.
19990         * m4/unlockpt.m4: New file.
19991         * modules/unlockpt: New file.
19992         * lib/stdlib.in.h (unlockpt): New declaration.
19993         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
19994         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
19995         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
19996         HAVE_UNLOCKPT.
19997         * doc/posix-functions/unlockpt.texi: Mention the new module.
19998         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
19999         * config/srclist.txt: Add unlockpt.c (commented).
20000
20001 2010-03-21  Jim Meyering  <meyering@redhat.com>
20002
20003         maint.mk: prohibit inclusion of "intprops.h" without use
20004         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20005
20006 2010-03-21  Bruno Haible  <bruno@clisp.org>
20007
20008         New module 'grantpt'.
20009         * lib/grantpt.c: New file, from glibc with modifications.
20010         * m4/grantpt.m4: New file.
20011         * modules/grantpt: New file.
20012         * lib/stdlib.in.h (grantpt): New declaration.
20013         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
20014         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
20015         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
20016         HAVE_GRANTPT.
20017         * doc/posix-functions/grantpt.texi: Mention the new module.
20018         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20019         * config/srclist.txt: Add grantpt.c (commented).
20020
20021 2010-03-21  Bruno Haible  <bruno@clisp.org>
20022
20023         New module 'pt_chown'.
20024         * lib/pt_chown.c: New file, from glibc with modifications.
20025         * lib/pty-private.h: New file, from glibc with modifications.
20026         * modules/pt_chown: New file.
20027         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20028
20029 2010-03-21  Bruno Haible  <bruno@clisp.org>
20030
20031         Tests for module 'ptsname'.
20032         * modules/ptsname-tests: New file.
20033         * tests/test-ptsname.c: New file.
20034
20035         New module 'ptsname'.
20036         * lib/ptsname.c: New file, from glibc with modifications.
20037         * m4/ptsname.m4: New file.
20038         * modules/ptsname: New file.
20039         * lib/stdlib.in.h (ptsname): New declaration.
20040         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20041         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20042         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20043         HAVE_PTSNAME.
20044         * doc/posix-functions/ptsname.texi: Mention the new module.
20045         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20046         * config/srclist.txt: Add ptsname.c (commented).
20047
20048 2010-03-21  Bruno Haible  <bruno@clisp.org>
20049
20050         Tests for module 'ttyname_r'.
20051         * modules/ttyname_r-tests: New file.
20052         * tests/test-ttyname_r.c: New file.
20053
20054         New module 'ttyname_r'.
20055         * lib/ttyname_r.c: New file.
20056         * m4/ttyname_r.m4: New file.
20057         * modules/ttyname_r: New file.
20058         * lib/unistd.in.h (ttyname_r): New declaration.
20059         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20060         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20061         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20062         HAVE_TTYNAME_R.
20063         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20064         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20065
20066 2010-03-20  Bruno Haible  <bruno@clisp.org>
20067
20068         signal: Undefine macro definitions in C++ mode.
20069         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20070         sigfillset): Undefine macro definitions from the system header in C++
20071         mode.
20072         Reported by John W. Eaton <jwe@gnu.org>.
20073
20074 2010-03-20  Bruno Haible  <bruno@clisp.org>
20075
20076         Ensure no #include statements inside extern "C" { ... }.
20077         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20078         contain #include statements.
20079         * lib/time.in.h: Likewise.
20080
20081 2010-03-20  Bruno Haible  <bruno@clisp.org>
20082
20083         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20084         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20085         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20086         Reported by John W. Eaton <jwe@gnu.org>.
20087
20088 2010-03-20  Bruno Haible  <bruno@clisp.org>
20089
20090         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20091         Reported by Jim Meyering.
20092
20093 2010-03-20  Bruno Haible  <bruno@clisp.org>
20094
20095         pipe: Set errno upon failure.
20096         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20097         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20098         errno value in error message.
20099
20100 2010-03-20  Bruno Haible  <bruno@clisp.org>
20101             Jim Meyering  <meyering@redhat.com>
20102
20103         lchown: Avoid "unused variable" warning.
20104         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20105
20106 2010-03-20  Bruno Haible  <bruno@clisp.org>
20107
20108         Work around unlink() bug on MacOS X 10.5.6.
20109         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20110         attempting to unlink a parent directory.
20111         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20112         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20113         activate for the replacement function.
20114         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20115
20116 2010-03-20  Bruno Haible  <bruno@clisp.org>
20117
20118         Fix link errors on Solaris 8.
20119         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20120         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20121
20122 2010-03-19  Jim Meyering  <meyering@redhat.com>
20123
20124         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20125         The _LIBC implementation of build_range_exp correctly honors the
20126         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20127         However, the non-_LIBC implementation would ignore that syntax-bit
20128         flag and return REG_ERANGE unconditionally.
20129         This change makes it honor that flag.
20130         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20131         Make two pointer parameters "const".
20132         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20133         (parse_bracket_exp): Update caller.
20134
20135         regex.m4: correct the reversed range endpoint ([b-a]) test
20136         * m4/regex.m4: When requiring that [b-a] evoke failure,
20137         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20138         test pass once again for x86-based systems.
20139
20140 2010-03-19  Bruno Haible  <bruno@clisp.org>
20141
20142         scandir: Fix link error on Solaris 8.
20143         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20144         macros.
20145
20146 2010-03-19  Bruno Haible  <bruno@clisp.org>
20147
20148         getusershell: Fix documentation.
20149         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20150         module.
20151         * doc/glibc-functions/setusershell.texi: Likewise.
20152
20153         getusershell: Provide declaration, missing on Solaris 9.
20154         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20155         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20156         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20157         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20159         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20160         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20161         HAVE_GETUSERSHELL.
20162         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20163
20164 2010-03-19  Bruno Haible  <bruno@clisp.org>
20165
20166         wctype: Provide iswblank function.
20167         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20168         exists and is fine.
20169         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20170         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20171         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20172         * doc/posix-functions/iswblank.texi: Update.
20173
20174 2010-03-19  Bruno Haible  <bruno@clisp.org>
20175
20176         Tests of module 'pty' in C++ mode.
20177         * modules/pty-tests: New file.
20178         * tests/test-pty-c++.cc: New file.
20179         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20180
20181 2010-03-19  Eric Blake  <eblake@redhat.com>
20182
20183         logb: fix documentation
20184         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20185         1.5 declaration bug.
20186
20187         forkpty, openpty: prefer glibc's const-safe prototype
20188         * lib/forkpty.c (rpl_forkpty): New file.
20189         * lib/openpty.c (rpl_openpty): Likewise.
20190         * modules/forkpty (Files): Distribute it.
20191         * modules/openpty (Files): Likewise.
20192         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20193         check...
20194         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20195         replacement for for non-const BSD signature.
20196         * modules/pty (Makefile.am): Substitute witnesses.
20197         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20198         * tests/test-forkpty.c: Update signature check.
20199         * tests/test-openpty.c: Likewise.
20200         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20201         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20202
20203         forkpty, openpty: split functions into new modules
20204         * modules/pty (Makefile.am): Substitute new witnesses.
20205         (Libraries): Move library detection...
20206         * modules/forkpty: ...into new module.
20207         * modules/openpty: Another new module.
20208         * modules/pty-tests: Rename and split...
20209         * modules/forkpty-tests: ...to this...
20210         * modules/openpty-tests: ...and this.
20211         * tests/test-pty.c: Rename and split...
20212         * tests/test-forkpty.c: ...to this...
20213         * tests/test-openpty.c: ...and this.
20214         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20215         (gl_PTY): Split library searching...
20216         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20217         (gl_FORKPTY, gl_OPENPTY): New macros.
20218         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20219         * NEWS: Mention the split.
20220         * MODULES.html.sh (Misc): Document the modules.
20221         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20222         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20223
20224         pty: improve replacement header
20225         * lib/pty.in.h: New file.
20226         * modules/pty (Files): Ship it.
20227         (Makefile.am): Always build replacement.
20228         * m4/pty.m4: Rename...
20229         * m4/pty_h.m4: ...to this.
20230         (gl_PTY): Modernize setting of witness macros; update check of
20231         forkpty to take proper advantage of cache.
20232         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20233
20234         getopt: avoid compiler warning
20235         * lib/getopt.c (attribute_hidden): Remove unused macro.
20236
20237 2010-03-18  Bruno Haible  <bruno@clisp.org>
20238
20239         Fix link errors on Solaris 8.
20240         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
20241         * modules/search-tests (test_search_c___LDADD): Likewise.
20242         * modules/signal-tests (test_signal_c___LDADD): Likewise.
20243         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
20244         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
20245         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
20246         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
20247         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
20248         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
20249
20250 2010-03-18  Bruno Haible  <bruno@clisp.org>
20251
20252         Fix bug introduced on 2010-03-14.
20253         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
20254         (gl_SPAWN_H): Require it.
20255         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
20256         Reported by Simon Josefsson.
20257
20258 2010-03-18  Bruno Haible  <bruno@clisp.org>
20259
20260         Fix typo introduced on 2009-12-31.
20261         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
20262         posix_spawn_file_actions_adddup2.
20263
20264 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
20265         and Eric Blake  <eblake@redhat.com>
20266
20267         test-vc-list-files-git: make more robust
20268         * tests/test-vc-list-files-git.sh: Unset problematic environment
20269         variables.  Chain commands together.
20270
20271 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
20272
20273         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
20274         `AC_CHECK_DECL' invocation.
20275
20276 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
20277
20278         * lib/inttostr.c (inttostr): Make sure the invocation of verify
20279         appears before executable statements. Suggested by Petr Sumbera
20280         <Petr.Sumbera@Sun.COM>.
20281
20282 2010-03-14  Bruno Haible  <bruno@clisp.org>
20283
20284         * tests/test-flock.c (test_exclusive): Comment out a test that causes
20285         portability problems. Instead use a simpler test.
20286         (main): Check that invalid arguments are rejected only on Linux.
20287
20288 2010-03-14  Bruno Haible  <bruno@clisp.org>
20289
20290         Fix bug introduced on 2009-12-31.
20291         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20292         gl_PREREQ_SYS_H_WINSOCK2 always.
20293         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
20294         SYS_SOCKET_H variable.
20295         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
20296         Update comments.
20297         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
20298         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20299         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20300         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20301         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
20302
20303 2010-03-14  Bruno Haible  <bruno@clisp.org>
20304
20305         Fix values returned by sinl, cosl.
20306         * lib/trigl.h: Add specification comments.
20307         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
20308         that combines the values from the precomputed table with the values of
20309         the Chebyshev polynomials.
20310
20311 2010-03-14  Bruno Haible  <bruno@clisp.org>
20312
20313         Fix compilation error when modules 'posix_spawn[p]' are not used.
20314         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
20315         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
20316
20317 2010-03-14  Bruno Haible  <bruno@clisp.org>
20318
20319         Fix compilation error on mingw when module 'time_r' is not used.
20320         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
20321         is 1.
20322         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
20323         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20324         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
20325         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
20326
20327 2010-03-14  Bruno Haible  <bruno@clisp.org>
20328
20329         Fix compilation error with Sun C.
20330         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20331         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20332         instead of GCC specific ULONG_LONG_MAX.
20333         * lib/xstrtoll.c: Likewise.
20334         * lib/xstrtoull.c: Likewise.
20335
20336 2010-03-13  Bruno Haible  <bruno@clisp.org>
20337
20338         Allow the user to disable C++ code and tests.
20339         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20340         (gl_PROG_ANSI_CXX): Require it.
20341
20342 2010-03-13  Bruno Haible  <bruno@clisp.org>
20343
20344         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20345         cases.
20346
20347 2010-03-13  Bruno Haible  <bruno@clisp.org>
20348
20349         Test that gnulib does not break the standard C++ headers.
20350         * tests/test-locale-c++2.cc: New file.
20351         * modules/locale-tests (Files): Add it.
20352         (Makefile.am): Compile it for test-locale-c++.
20353         * tests/test-math-c++2.cc: New file.
20354         * modules/math-tests (Files): Add it.
20355         (Makefile.am): Compile it for test-math-c++.
20356         * tests/test-signal-c++2.cc: New file.
20357         * modules/signal-tests (Files): Add it.
20358         (Makefile.am): Compile it for test-signal-c++.
20359         * tests/test-stdio-c++2.cc: New file.
20360         * modules/stdio-tests (Files): Add it.
20361         (Makefile.am): Compile it for test-stdio-c++.
20362         * tests/test-stdlib-c++2.cc: New file.
20363         * modules/stdlib-tests (Files): Add it.
20364         (Makefile.am): Compile it for test-stdlib-c++.
20365         * tests/test-string-c++2.cc: New file.
20366         * modules/string-tests (Files): Add it.
20367         (Makefile.am): Compile it for test-string-c++.
20368         * tests/test-time-c++2.cc: New file.
20369         * modules/time-tests (Files): Add it.
20370         (Makefile.am): Compile it for test-time-c++.
20371         Reported by John W. Eaton <jwe@gnu.org>.
20372
20373 2010-03-13  Bruno Haible  <bruno@clisp.org>
20374
20375         * gnulib-tool (func_usage): Clarify which options are available for
20376         --create-testdir and --create-megatestdir.
20377
20378 2010-03-13  Bruno Haible  <bruno@clisp.org>
20379
20380         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20381         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20382         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20383         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20384         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20385         when appropriate.
20386         Reported by Jim Meyering.
20387
20388 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20389
20390         * gnulib-tool (func_import): Explain origin of code.
20391
20392 2010-03-12  Bruno Haible  <bruno@clisp.org>
20393
20394         Fix problem with automake's definition of CXXLINK.
20395         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20396         Reported by Simon Josefsson and Ludovic Courtès.
20397
20398 2010-03-12  Bruno Haible  <bruno@clisp.org>
20399
20400         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20401         stable releases.
20402
20403 2010-03-11  Bruno Haible  <bruno@clisp.org>
20404
20405         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
20406         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
20407         whether the system provides one variant or multiple variants of the
20408         function.
20409         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
20410         C++ compilers.
20411         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
20412         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
20413         Reported by Jim Meyering.
20414
20415 2010-03-09  Simon Josefsson  <simon@josefsson.org>
20416
20417         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
20418
20419 2010-03-08  Bruno Haible  <bruno@clisp.org>
20420
20421         gnulib-tool: Add support for --libtool in --create-testdir.
20422         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
20423         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
20424
20425 2010-03-08  Eric Blake  <eblake@redhat.com>
20426
20427         gnulib-tool.texi: mention possibility of git submodule
20428         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
20429         submodules.
20430         * doc/.gitignore: Ignore another generated file.
20431
20432 2010-03-08  Karl Berry  <karl@gnu.org>
20433
20434         * doc/gnulib-tool.texi (VCS Issues): Mention third option
20435         of committing gnulib files while skipping others.
20436
20437 2010-03-07  Bruno Haible  <bruno@clisp.org>
20438
20439         Tests of module 'wctype' in C++ mode.
20440         * tests/test-wctype-c++.cc: New file.
20441         * modules/wctype-tests (Files): Add it and tests/signature.h.
20442         (Depends-on): Add ansi-c++-opt.
20443         (Makefile.am): Arrange to compile and run test-wctype-c++.
20444
20445         Tests of module 'wchar' in C++ mode.
20446         * tests/test-wchar-c++.cc: New file.
20447         * modules/wchar-tests (Files): Add it and tests/signature.h.
20448         (Depends-on): Add ansi-c++-opt.
20449         (Makefile.am): Arrange to compile and run test-wchar-c++.
20450         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
20451         gl_MODULE_INDICATOR.
20452
20453         Tests of module 'unistd' in C++ mode.
20454         * tests/test-unistd-c++.cc: New file.
20455         * modules/unistd-tests (Files): Add it and tests/signature.h.
20456         (Depends-on): Add ansi-c++-opt.
20457         (Makefile.am): Arrange to compile and run test-unistd-c++.
20458         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
20459         gl_MODULE_INDICATOR.
20460
20461         Tests of module 'time' in C++ mode.
20462         * tests/test-time-c++.cc: New file.
20463         * modules/time-tests (Files): Add it and tests/signature.h.
20464         (Depends-on): Add ansi-c++-opt.
20465         (Makefile.am): Arrange to compile and run test-time-c++.
20466         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20467
20468         Tests of module 'sys_time' in C++ mode.
20469         * tests/test-sys_time-c++.cc: New file.
20470         * modules/sys_time-tests (Files): Add it and tests/signature.h.
20471         (Depends-on): Add ansi-c++-opt.
20472         (Makefile.am): Arrange to compile and run test-sys_time-c++.
20473         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
20474         gl_MODULE_INDICATOR.
20475
20476         Tests of module 'sys_stat' in C++ mode.
20477         * tests/test-sys_stat-c++.cc: New file.
20478         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
20479         (Depends-on): Add ansi-c++-opt.
20480         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
20481         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
20482         gl_MODULE_INDICATOR.
20483
20484         Tests of module 'sys_socket' in C++ mode.
20485         * tests/test-sys_socket-c++.cc: New file.
20486         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
20487         (Depends-on): Add ansi-c++-opt.
20488         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
20489         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
20490         gl_MODULE_INDICATOR.
20491
20492         Tests of module 'sys_select' in C++ mode.
20493         * tests/test-sys_select-c++.cc: New file.
20494         * modules/sys_select-tests (Files): Add it and tests/signature.h.
20495         (Depends-on): Add ansi-c++-opt.
20496         (Makefile.am): Arrange to compile and run test-sys_select-c++.
20497         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
20498         gl_MODULE_INDICATOR.
20499
20500         Tests of module 'sys_ioctl' in C++ mode.
20501         * tests/test-sys_ioctl-c++.cc: New file.
20502         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
20503         (Depends-on): Add ansi-c++-opt.
20504         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
20505         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
20506         gl_MODULE_INDICATOR.
20507
20508         Tests of module 'string' in C++ mode.
20509         * tests/test-string-c++.cc: New file.
20510         * modules/string-tests (Files): Add it and tests/signature.h.
20511         (Depends-on): Add ansi-c++-opt.
20512         (Makefile.am): Arrange to compile and run test-string-c++.
20513         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
20514         gl_MODULE_INDICATOR.
20515
20516         Tests of module 'stdlib' in C++ mode.
20517         * tests/test-stdlib-c++.cc: New file.
20518         * modules/stdlib-tests (Files): Add it and tests/signature.h.
20519         (Depends-on): Add ansi-c++-opt.
20520         (Makefile.am): Arrange to compile and run test-stdlib-c++.
20521         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
20522         gl_MODULE_INDICATOR.
20523
20524         Tests of module 'stdio' in C++ mode.
20525         * tests/test-stdio-c++.cc: New file.
20526         * modules/stdio-tests (Files): Add it and tests/signature.h.
20527         (Depends-on): Add ansi-c++-opt.
20528         (Makefile.am): Arrange to compile and run test-stdio-c++.
20529         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
20530         gl_MODULE_INDICATOR.
20531
20532         Tests of module 'spawn' in C++ mode.
20533         * tests/test-spawn-c++.cc: New file.
20534         * modules/spawn-tests (Files): Add it and tests/signature.h.
20535         (Depends-on): Add ansi-c++-opt.
20536         (Makefile.am): Arrange to compile and run test-spawn-c++.
20537         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
20538         gl_MODULE_INDICATOR.
20539
20540         Tests of module 'signal' in C++ mode.
20541         * tests/test-signal-c++.cc: New file.
20542         * modules/signal-tests (Files): Add it and tests/signature.h.
20543         (Depends-on): Add ansi-c++-opt.
20544         (Makefile.am): Arrange to compile and run test-signal-c++.
20545         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
20546         gl_MODULE_INDICATOR.
20547
20548         Tests of module 'search' in C++ mode.
20549         * tests/test-search-c++.cc: New file.
20550         * modules/search-tests (Files): Add it and tests/signature.h.
20551         (Depends-on): Add ansi-c++-opt.
20552         (Makefile.am): Arrange to compile and run test-search-c++.
20553         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
20554         gl_MODULE_INDICATOR.
20555
20556         Tests of module 'math' in C++ mode.
20557         * tests/test-math-c++.cc: New file.
20558         * modules/math-tests (Files): Add it and tests/signature.h.
20559         (Depends-on): Add ansi-c++-opt.
20560         (Makefile.am): Arrange to compile and run test-math-c++.
20561         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20562
20563         Tests of module 'locale' in C++ mode.
20564         * tests/test-locale-c++.cc: New file.
20565         * modules/locale-tests (Files): Add it and tests/signature.h.
20566         (Depends-on): Add ansi-c++-opt.
20567         (Makefile.am): Arrange to compile and run test-locale-c++.
20568         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
20569         gl_MODULE_INDICATOR.
20570
20571         Tests of module 'langinfo' in C++ mode.
20572         * tests/test-langinfo-c++.cc: New file.
20573         * modules/langinfo-tests (Files): Add it and tests/signature.h.
20574         (Depends-on): Add ansi-c++-opt.
20575         (Makefile.am): Arrange to compile and run test-langinfo-c++.
20576         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
20577         gl_MODULE_INDICATOR.
20578
20579         Tests of module 'iconv-h' in C++ mode.
20580         * tests/test-iconv-h-c++.cc: New file.
20581         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
20582         (Depends-on): Add ansi-c++-opt.
20583         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
20584
20585         Tests of module 'glob' in C++ mode.
20586         * tests/test-glob-c++.cc: New file.
20587         * modules/glob-tests (Files): Add it.
20588         (Depends-on): Add ansi-c++-opt.
20589         (Makefile.am): Arrange to compile and run test-glob-c++.
20590
20591         Tests of module 'fcntl-h' in C++ mode.
20592         * tests/test-fcntl-h-c++.cc: New file.
20593         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
20594         (Depends-on): Add ansi-c++-opt.
20595         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
20596         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
20597         gl_MODULE_INDICATOR.
20598
20599         Tests of module 'dirent' in C++ mode.
20600         * tests/test-dirent-c++.cc: New file.
20601         * modules/dirent-tests (Files): Add it and tests/signature.h.
20602         (Depends-on): Add ansi-c++-opt.
20603         (Makefile.am): Arrange to compile and run test-dirent-c++.
20604         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20605         gl_MODULE_INDICATOR.
20606
20607         New module 'ansi-c++-opt'.
20608         * modules/ansi-c++-opt: New file.
20609         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
20610
20611         Document C++ namespace mode.
20612         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
20613
20614         wctype: Avoid #define replacements in C++ mode.
20615         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
20616         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
20617         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
20618         In C++, define a namespaced alias symbol.
20619         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
20620         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
20621         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
20622         rule.
20623
20624         wchar: Avoid #define replacements in C++ mode.
20625         * lib/wchar.in.h: Include c++defs.h.
20626         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
20627         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
20628         symbol.
20629         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
20630         * modules/wchar (Depends-on): Add c++defs.
20631         (Makefile.am): Update wchar.h rule.
20632
20633         unistd: Avoid #define replacements in C++ mode.
20634         * lib/unistd.in.h: Include c++defs.h.
20635         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
20636         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
20637         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
20638         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
20639         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
20640         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
20641         symbol.
20642         (environ): Update.
20643         * modules/unistd (Depends-on): Add c++defs.
20644         (Makefile.am): Update unistd.h rule.
20645
20646         time: Avoid #define replacements in C++ mode.
20647         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
20648         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
20649         define a namespaced alias symbol.
20650         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
20651         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
20652         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
20653         * modules/time (Depends-on): Add c++defs, warn-on-use.
20654         (Makefile.am): Update time.h rule.
20655         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20656         * modules/nanosleep (configure.ac): Likewise.
20657         * modules/strptime (configure.ac): Likewise.
20658         * modules/timegm (configure.ac): Likewise.
20659
20660         sys_time: Avoid #define replacements in C++ mode.
20661         * lib/sys_time.in.h: Include c++defs.h.
20662         (gettimeofday): In C++, define a namespaced alias symbol.
20663         * modules/sys_time (Depends-on): Add c++defs.
20664         (Makefile.am): Update sys/time.h rule.
20665
20666         sys_stat: Avoid #define replacements in C++ mode.
20667         * lib/sys_stat.in.h: Include c++defs.h.
20668         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
20669         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
20670         namespaced alias symbol.
20671         In C++, define a namespaced alias symbol.
20672         * modules/sys_stat (Depends-on): Add c++defs.
20673         (Makefile.am): Update sys/stat.h rule.
20674
20675         sys_socket: Avoid #define replacements in C++ mode.
20676         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
20677         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
20678         definitions also when the system has a <sys/socket.h>.
20679         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20680         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
20681         In C++, define a namespaced alias symbol.
20682         * modules/sys_socket (Depends-on): Add c++defs.
20683         (Makefile.am): Update sys/socket.h rule.
20684
20685         sys_select: Avoid #define replacements in C++ mode.
20686         * lib/sys_select.in.h: Include c++defs.h. Enable the function
20687         definitions also when the system has a <sys/select.h>.
20688         (select): In C++, define a namespaced alias symbol.
20689         * modules/sys_select (Depends-on): Add c++defs.
20690         (Makefile.am): Update sys/select.h rule.
20691
20692         sys_ioctl: Avoid #define replacements in C++ mode.
20693         * lib/sys_ioctl.in.h: Include c++defs.h.
20694         (ioctl): In C++, define a namespaced alias symbol.
20695         * modules/sys_ioctl (Depends-on): Add c++defs.
20696         (Makefile.am): Update sys/ioctl.h rule.
20697
20698         string: Avoid #define replacements in C++ mode.
20699         * lib/string.in.h: Include c++defs.h.
20700         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
20701         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20702         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20703         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
20704         strsignal, strverscmp): In C++, define a namespaced alias symbol.
20705         * modules/string (Depends-on): Add c++defs.
20706         (Makefile.am): Update string.h rule.
20707
20708         stdlib: Avoid #define replacements in C++ mode.
20709         * lib/stdlib.in.h: Include c++defs.h.
20710         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
20711         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
20712         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
20713         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
20714         symbol.
20715         * modules/stdlib (Depends-on): Add c++defs.
20716         (Makefile.am): Update stdlib.h rule.
20717
20718         stdio: Avoid #define replacements in C++ mode.
20719         * lib/stdio.in.h: Include c++defs.h.
20720         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
20721         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
20722         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
20723         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
20724         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
20725         namespaced alias symbol.
20726         * modules/stdio (Depends-on): Add c++defs.
20727         (Makefile.am): Update stdio.h rule.
20728
20729         spawn: Avoid #define replacements in C++ mode.
20730         * lib/spawn.in.h: Include c++defs.h.
20731         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20732         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20733         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20734         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20735         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20736         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20737         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20738         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20739         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20740         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20741         In C++, define a namespaced alias symbol.
20742         * modules/spawn (Depends-on): Add c++defs.
20743         (Makefile.am): Update spawn.h rule.
20744
20745         signal: Avoid #define replacements in C++ mode.
20746         * lib/signal.in.h: Include c++defs.h.
20747         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20748         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
20749         namespaced alias symbol.
20750         * modules/signal (Depends-on): Add c++defs.
20751         (Makefile.am): Update signal.h rule.
20752
20753         search: Avoid #define replacements in C++ mode.
20754         * lib/search.in.h: Include c++defs.h.
20755         (_gl_search_compar_fn, _gl_search_action_fn): New types.
20756         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
20757         symbol.
20758         * modules/search (Depends-on): Add c++defs.
20759         (Makefile.am): Update search.h rule.
20760
20761         math: Avoid #define replacements in C++ mode.
20762         * lib/math.in.h: Include c++defs.h.
20763         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
20764         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
20765         trunc, truncl): In C++, define a namespaced alias symbol.
20766         * modules/math (Depends-on): Add c++defs.
20767         (Makefile.am): Update math.h rule.
20768
20769         locale: Avoid #define replacements in C++ mode.
20770         * lib/locale.in.h: Include c++defs.h.
20771         (duplocale): In C++, define a namespaced alias symbol.
20772         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
20773         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
20774         * modules/locale (Depends-on): Add c++defs.
20775         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
20776
20777         langinfo: Avoid #define replacements in C++ mode.
20778         * lib/langinfo.in.h: Include c++defs.h.
20779         (nl_langinfo): In C++, define a namespaced alias symbol.
20780         * modules/langinfo (Depends-on): Add c++defs.
20781         (Makefile.am): Update langinfo.h rule.
20782
20783         iconv-h: Avoid #define replacements in C++ mode.
20784         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
20785         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
20786         symbol.
20787         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20788         whenever iconv is present.
20789         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
20790         (Makefile.am): Update iconv.h rule.
20791
20792         glob: Avoid #define replacements in C++ mode.
20793         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
20794         (_gl_glob_errfunc_fn): New type.
20795         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
20796         symbol.
20797         * modules/glob (Depends-on): Add c++defs, warn-on-use.
20798         (Makefile.am): Update glob.h rule.
20799
20800         fcntl-h: Avoid #define replacements in C++ mode.
20801         * lib/fcntl.in.h: Include c++defs.h.
20802         (fcntl, open, openat): In C++, define a namespaced alias symbol.
20803         * modules/fcntl-h (Depends-on): Add c++defs.
20804         (Makefile.am): Update fcntl.h rule.
20805
20806         dirent: Avoid #define replacements in C++ mode.
20807         * lib/dirent.in.h: Include c++defs.h.
20808         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
20809         namespaced alias symbol.
20810         (dirfd): Update declaration.
20811         * modules/dirent (Depends-on): Add c++defs.
20812         (Makefile.am): Update dirent.h rule.
20813
20814         ctype: Make it usable in C++ code.
20815         * lib/ctype.in.h: Include c++defs.h.
20816         (isblank): Declare as extern "C".
20817         * modules/ctype (Depends-on): Add c++defs.
20818         (Makefile.am): Update ctype.h rule.
20819
20820         New module 'c++defs'.
20821         * modules/c++defs: New file.
20822         * build-aux/c++defs.h: New file.
20823         Reported by John W. Eaton <jwe@gnu.org>.
20824
20825 2010-03-07  Bruno Haible  <bruno@clisp.org>
20826
20827         logb: Provide missing declaration for Cygwin.
20828         * lib/math.in.h (logb): New declaration.
20829         * m4/logb.m4: New file.
20830         * modules/logb (Files): Add m4/logb.m4.
20831         (Depends-on): Add math.
20832         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
20833         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
20834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
20835         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
20836         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
20837
20838 2010-03-07  Bruno Haible  <bruno@clisp.org>
20839
20840         Fix test-cond link error.
20841         * tests/test-cond.c: Include <stdio.h>.
20842
20843 2010-03-07  Bruno Haible  <bruno@clisp.org>
20844
20845         Fix test-dirent-safer link error.
20846         * modules/dirent-safer-tests (Makefile.am): Define
20847         test_dirent_safer_LDADD.
20848
20849 2010-03-07  Bruno Haible  <bruno@clisp.org>
20850
20851         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
20852         among default module list.
20853
20854 2010-03-07  Bruno Haible  <bruno@clisp.org>
20855
20856         Fix link error on platforms with GNU libiconv.
20857         * modules/unistr/u8-strcoll-tests (Makefile): Define
20858         test_u8_strcoll_LDADD.
20859         * modules/unistr/u16-strcoll-tests (Makefile): Define
20860         test_u16_strcoll_LDADD.
20861         * modules/unistr/u32-strcoll-tests (Makefile): Define
20862         test_u32_strcoll_LDADD.
20863
20864 2010-03-07  Bruno Haible  <bruno@clisp.org>
20865
20866         Use POSIX declarations for socket functions.
20867         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
20868         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
20869         rpl_sendto): Change declaration to match POSIX.
20870         * lib/connect.c (rpl_connect): Likewise.
20871         * lib/accept.c (rpl_accept): Likewise.
20872         * lib/bind.c (rpl_bind): Likewise.
20873         * lib/getpeername.c (rpl_getpeername): Likewise.
20874         * lib/getsockname.c (rpl_getsockname): Likewise.
20875         * lib/recv.c (rpl_recv): Likewise.
20876         * lib/send.c (rpl_send): Likewise.
20877         * lib/recvfrom.c (rpl_recvfrom): Likewise.
20878         * lib/sendto.c (rpl_sendto): Likewise.
20879
20880 2010-03-06  Bruno Haible  <bruno@clisp.org>
20881
20882         Clarify access, euidaccess, faccessat.
20883         * doc/posix-functions/faccessat.texi: Mention security problem under
20884         "Other problems", not "Portability problems".
20885         * doc/posix-functions/access.texi: Likewise. Mention a related security
20886         problem.
20887         * doc/glibc-functions/euidaccess.texi: Mention security problems.
20888         * lib/euidaccess.c: Add comments about platforms.
20889         * lib/unistd.in.h (access, euidaccess): Add warnings.
20890
20891 2010-03-07  Bruno Haible  <bruno@clisp.org>
20892
20893         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
20894         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
20895         (POSIX_SPAWN_SETSCHEDULER): Likewise.
20896         (POSIX_SPAWN_USEVFORK): Define in a way that works when
20897         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
20898         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
20899         declare when POSIX_SPAWN_SETSCHEDULER is zero.
20900         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
20901         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
20902         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
20903         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
20904         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
20905         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
20906         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
20907         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
20908         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
20909         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
20910         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
20911         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
20912         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
20913         Likewise.
20914         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
20915         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
20916         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
20917         Likewise.
20918         * tests/test-spawn.c (main): Make it work when
20919         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
20920
20921 2010-03-07  Bruno Haible  <bruno@clisp.org>
20922
20923         Fix incorrect Makefile.am generation in German locale.
20924         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20925         Execute sed command with character range in C locale.
20926
20927 2010-03-06  Bruno Haible  <bruno@clisp.org>
20928
20929         Tests for module 'iconv-h'.
20930         * modules/iconv-h-tests: New file.
20931         * tests/test-iconv-h.c: New file.
20932
20933         New module 'iconv-h'.
20934         * modules/iconv-h: New file.
20935         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
20936         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
20937         (configure.ac): Remove gl_ICONV_H.
20938         (Makefile.am): Remove rule for iconv.h.
20939
20940 2010-03-06  Bruno Haible  <bruno@clisp.org>
20941
20942         More consistent naming of *.m4 files.
20943         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
20944         * modules/wctype (Files): Update.
20945
20946         More consistent naming of *.m4 files.
20947         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
20948         * modules/wchar (Files): Update.
20949
20950 2010-03-06  Jim Meyering  <meyering@redhat.com>
20951
20952         euidaccess: relax license to LGPLv2+
20953         * modules/euidaccess (License): Relax to LGPLv2+.
20954
20955 2010-03-06  Bruno Haible  <bruno@clisp.org>
20956
20957         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
20958         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
20959         (Makefile.am): Augment lib_SOURCES instead.
20960
20961 2010-03-04  Jim Meyering  <meyering@redhat.com>
20962
20963         utime: remove obsolete module
20964         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
20965         unnecessary for years, and has been marked as obsolete for 10 months.
20966         * modules/utime: Remove file.
20967         * lib/utime.c: Remove file.
20968         * m4/utime.m4: Remove file.
20969         * m4/utimes-null.m4: Remove file.
20970         * doc/posix-functions/utime.texi (utime): Remove reference to
20971         the module.  Move the sole "fixed by gnulib" item into the
20972         "problems not fixed by Gnulib" list.
20973         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
20974
20975 2010-03-05  Simon Josefsson  <simon@josefsson.org>
20976
20977         * modules/exit (License): Relax license to LGPLv2+.
20978         (Status): Mark as obsolete.
20979         * NEWS: Mention deprecated 'exit' module.
20980         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
20981         of now obsolete 'exit'.
20982
20983 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20984
20985         fts-lgpl: remove unused module
20986         * modules/fts-lgpl: Remove.
20987         * MODULES.html.sh (func_all_modules): Adjust.
20988         * check-module (find_included_lib_files): Adjust.
20989         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
20990
20991 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
20992
20993         copy-acl: enhance Solaris ACL error handling
20994         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
20995         * lib/set-mode-acl.c (qset_acl): Likewise.
20996
20997 2010-03-02  Bruno Haible  <bruno@clisp.org>
20998
20999         spawn: Don't override the system defined values on FreeBSD 8.
21000         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
21001         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
21002         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
21003         if HAVE_POSIX_SPAWN is 1.
21004         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
21005
21006 2010-03-01  Bruno Haible  <bruno@clisp.org>
21007
21008         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
21009         regarding Automake.
21010
21011 2010-02-25  Bruno Haible  <bruno@clisp.org>
21012
21013         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
21014         * gnulib-tool: Define 'echo' as a function only before the ksh alias
21015         setting, not afterwards.
21016         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21017
21018 2010-02-24  Eric Blake  <eblake@redhat.com>
21019
21020         bootstrap, git-version-gen: use timestamp
21021         * build-aux/git-version-gen (scriptversion): Force UTC.
21022         * build-aux/bootstrap (scriptversion): New variable.
21023
21024         bootstrap: allow older git
21025         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21026         older than 1.6.4.  Requested by the libvirt project.
21027
21028 2010-02-23  Eric Blake  <eblake@redhat.com>
21029
21030         warn-on-use: work with old autoconf
21031         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21032         AS_VAR semantics of autoconf 2.60.
21033         Reported by Bruno Haible.
21034
21035         bootstrap: improve some comments
21036         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21037         clarification comments.
21038
21039         gettimeofday: provide correct function
21040         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21041         when replacement is declared, otherwise provide gettimeofday.
21042         Reported by Michael Goffioul.
21043
21044 2010-02-23  Jim Meyering  <meyering@redhat.com>
21045
21046         lib-ignore: relax license to "unlimited", not LGPLv2+
21047         * modules/lib-ignore (License): Relax to "unlimited".
21048
21049 2010-02-23  Jim Meyering  <meyering@redhat.com>
21050
21051         lib-ignore: relax license to LGPLv2+
21052         * modules/lib-ignore (License): Relax to LGPLv2+.
21053
21054 2010-02-22  Eric Blake  <eblake@redhat.com>
21055
21056         lseek: avoid bash 3.2 broken pipe bug
21057         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21058         warning from bash 3.2.
21059         Reported by Ben Pfaff, with analysis from Bruno Haible.
21060
21061         bootstrap: support non-FSF copyright holder
21062         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21063         bootstrap.conf override of COPYRIGHT_HOLDER.
21064         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21065
21066         bootstrap: interoperate with gettext 0.14.1
21067         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21068
21069         bootstrap: allow for alternate submodule location
21070         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21071         hardcoding submodule location.
21072         (gnulib_mk): Allow direct use of Makefile.am.
21073
21074         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21075         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21076         rather than reconfiguring where the submodule points.
21077
21078         gettimeofday: restore support for platforms that lack function
21079         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21080         replacement if function is missing.
21081         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21082         * modules/sys_time (Makefile.am): Substitute it.
21083         * lib/sys_time.in.h (gettimeofday): Check it.
21084         Reported by Michael Goffioul.
21085
21086 2010-02-21  Bruno Haible  <bruno@clisp.org>
21087
21088         * lib/stdio.in.h (obstack_printf): Fix typo.
21089
21090 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21091
21092         vc-list-files: use bzr ls's -R option
21093         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21094         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21095
21096 2010-02-21  Jim Meyering  <meyering@redhat.com>
21097
21098         init.sh: fix EXEEXT shims to work also for names like test-prog
21099         * tests/init.sh: Re-exec a better shell, when needed.
21100         If the current shell lacks support for posix $(...), an init.sh-using
21101         test will now try to find a shell that supports that.  If EXEEXT is
21102         nonempty, we also require support for hyphen-in-alias-name and shell
21103         substitutions like ${var#glob}.  Failure to find such a shell results
21104         in a skipped test.
21105
21106 2010-02-21  Bruno Haible  <bruno@clisp.org>
21107
21108         Really work around around "broken pipe" error message from bash 3.2.
21109         * gnulib-tool (func_reset_sigpipe): Remove function.
21110         (echo): In bash 3.2, define to a function that uses printf.
21111         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21112
21113 2010-02-20  Bruno Haible  <bruno@clisp.org>
21114
21115         Restore support for automake 1.9.6 with autoconf 2.61.
21116         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21117         Reported by James Youngman <jay@gnu.org>.
21118
21119 2010-02-20  Bruno Haible  <bruno@clisp.org>
21120
21121         Improve *printf warning condition.
21122         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21123         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21124         and the function is overridden due to SIGPIPE emulation.
21125
21126 2010-02-20  Bruno Haible  <bruno@clisp.org>
21127
21128         * lib/stdio.in.h: Tweak comments.
21129
21130 2010-02-19  Bruno Haible  <bruno@clisp.org>
21131
21132         Make it easier to find modules. New gnulib-tool option '--find'.
21133         * gnulib-tool: New option --find.
21134         (func_usage): Document it.
21135         (func_sanitize_modulelist): New function, extracted from
21136         func_all_modules.
21137         (func_all_modules): Invoke it.
21138         * doc/gnulib-tool.texi (Which modules?): New node.
21139
21140 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21141
21142         * lib/sys_select.in.h: Provide select replacement even if
21143         sys/select.h exists on a system, for Interix.
21144
21145 2010-02-18  Jim Meyering  <meyering@redhat.com>
21146
21147         init.sh: don't use $(...) just yet
21148         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21149         to accommodate e.g., Solaris' /bin/sh.
21150
21151 2010-02-17  Bruno Haible  <bruno@clisp.org>
21152
21153         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21154         Reported by Ludovic Courtès <ludo@gnu.org>.
21155
21156 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21157
21158         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21159         linking with -lintl.
21160
21161 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21162
21163         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21164         if not provided by the system's netdb.h.  Reported by
21165         ludo@gnu.org (Ludovic Courtès).
21166
21167 2010-02-15  Jim Meyering  <meyering@redhat.com>
21168
21169         init.sh: improve portability and efficiency
21170         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21171         "dummy" in a for loop.
21172         Use '!', not '^' to select the complement of a character set used
21173         in a "case" statement.
21174         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21175         Suggestions from Eric Blake.
21176
21177         init.sh: automatically accommodate programs with the .exe suffix
21178         Automatically arrange for an invocation of "prog" to execute the
21179         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21180         may use the simpler "prog", yet still work when built on a system
21181         that requires specifying the added suffix.
21182         Do this by constructing a function named "prog" that invokes
21183         "prog.exe" for each .exe file in selected directories.
21184         * tests/init.sh (find_exe_basenames_): New function.
21185         (create_exe_shim_functions_): New function.
21186         (path_prepend_): Use it.
21187
21188         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21189         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21190         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21191
21192 2010-02-14  Jim Meyering  <meyering@redhat.com>
21193
21194         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21195         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21196         (sc_prohibit_hash_pjw_without_use): New rule.
21197
21198         maint.mk: allow the default upload destination dir to be overridden
21199         * top/maint.mk (upload_dest_dir_): Define with a default that
21200         preserves the status quo.
21201         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21202         Reported by Peter Simons.
21203
21204         maint.mk: prohibit inclusion of "hash.h" without_use
21205         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21206
21207 2010-02-10  Jim Meyering  <meyering@redhat.com>
21208
21209         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21210         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21211
21212 2010-02-09  Eric Blake  <ebb9@byu.net>
21213         and Bruno Haible  <bruno@clisp.org>
21214
21215         obstack-printf-posix: ensure declaration
21216         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21217         extracted from gl_FUNC_OBSTACK_PRINTF.
21218         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21219         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21220         Likewise.
21221         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21222         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21223         0.
21224
21225 2010-02-08  Bruno Haible  <bruno@clisp.org>
21226
21227         gnulib-tool: Fix typo in 2010-02-07 commit.
21228         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21229         Reported by Eric Blake.
21230
21231 2010-02-07  Bruno Haible  <bruno@clisp.org>
21232
21233         gnulib-tool: Fix up caching patches.
21234         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21235         option --no-cache. Use associative arrays when supported by the shell.
21236         (sed_comments): New variable.
21237         (modcache): Renamed from do_cache.
21238         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
21239         abbreviate unnecessarily.
21240         (have_associative): New variable.
21241         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
21242         way also for ksh and zsh.
21243         (func_init_sed_convert_to_cache_statements): New function, extracted
21244         from func_cache_lookup_module. Add support for associative arrays.
21245         Don't set the c_MODULE_cached variable here. Ignore all lines before
21246         the first field header. Remove only the final newline, not all trailing
21247         newlines. Support empty fields correctly. Limit the use of 'eval' to
21248         assignments.
21249         (func_get_description, func_get_status, func_get_notice,
21250         func_get_applicability, func_get_filelist, func_get_dependencies,
21251         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
21252         func_get_automake_snippet, func_get_include_directive,
21253         func_get_link_directive, func_get_license, func_get_maintainer):
21254         Update documentation. List the unoptimized code first. Add support for
21255         associative arrays. Limit the use of 'eval' to assignments.
21256         (func_get_applicability): Undo stylistic pessimisations.
21257         (func_get_automake_snippet, func_get_include_directive): Reduce code
21258         duplication.
21259         (func_modules_transitive_closure, func_modules_add_dummy,
21260         func_modules_notice, func_modules_to_filelist, func_add_file,
21261         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
21262         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
21263         func_create_testdir, func_create_megatestdir): Update documentation.
21264
21265 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21266
21267         * gnulib-tool (func_cache_lookup_module): Store the module name
21268         belonging to the cache variable; error out if two different
21269         module names map to the same cache variable name.
21270
21271 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21272
21273         gnulib-tool: Make caching optional.
21274         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
21275         Update matching short versions of --no-changelog.
21276         (func_usage): Update.
21277         (sed_extract_cache_prog): Renamed from ...
21278         (sed_extract_prog): ... this; revert to old extraction script.
21279         (func_get_description, func_get_status)
21280         (func_get_notice, func_get_applicability, func_get_filelist)
21281         (func_get_dependencies, func_get_autoconf_early_snippet)
21282         (func_get_autoconf_snippet, func_get_automake_snippet)
21283         (func_get_include_directive, func_get_link_directive)
21284         (func_get_license, func_get_maintainer): If $do_cache is false,
21285         use old, non-caching extraction scripts.
21286         Suggestion by Bruno Haible.
21287
21288 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21289
21290         gnulib-tool: cache module metainformation.
21291         * gnulib-tool (sed_extract_prog): Match newline before each
21292         header, and rewrite header to a shell variable suffix.
21293         (func_cache_var, func_cache_lookup_module): New functions,
21294         to turn a module name into a cache variable prefix, and to
21295         look up and cache module metainformation.
21296         (func_get_description, func_get_status)
21297         (func_get_notice, func_get_applicability, func_get_filelist)
21298         (func_get_dependencies, func_get_autoconf_early_snippet)
21299         (func_get_autoconf_snippet, func_get_automake_snippet)
21300         (func_get_include_directive, func_get_link_directive)
21301         (func_get_license, func_get_maintainer): Use
21302         func_cache_lookup_module.
21303
21304 2010-02-07  Bruno Haible  <bruno@clisp.org>
21305
21306         fnctl: Fix missing dependency.
21307         * modules/fcntl (Depends-on): Add getdtablesize.
21308         Reported by John W. Eaton <jwe@gnu.org>.
21309
21310 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21311
21312         Argp: fix recognition of short alias options.
21313
21314         * lib/argp-parse.c (convert_options): Fix improper use of
21315         `|' between character values.
21316         * tests/test-argp.c (group1_option): New alias option
21317         --read (-r).
21318         (group1_parser): Special handling for 'r'.
21319         (test15): New test case.
21320         (test_fun): Add test15.
21321         * tests/test-argp-2.sh: Update expected --help and --usage
21322         outputs.
21323
21324 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21325
21326         * tests/test-argp.c: Fix indentation.
21327
21328 2010-02-04  Eric Blake  <ebb9@byu.net>
21329
21330         gettimeofday: expose type of second argument
21331         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21332         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21333         * tests/test-gettimeofday.c: Use it to silence warning.
21334         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21335         the issue.
21336
21337 2010-02-03  Jim Meyering  <meyering@redhat.com>
21338
21339         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21340         * lib/regcomp.c (TYPE_SIGNED): Define.
21341         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21342
21343         regcomp.c: avoid a new -Wshadow warning
21344         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21345
21346 2010-02-01  Jim Meyering  <meyering@redhat.com>
21347
21348         removing useless parentheses in cpp #define directives
21349         For motivation, see commit c0221df4, "define STREQ(a,b)
21350         consistently, removing useless parentheses"
21351         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21352         * lib/mountlist.c (MNT_IGNORE): Likewise.
21353         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21354
21355 2010-02-01  Eric Blake  <ebb9@byu.net>
21356
21357         sys_time: use link-warning
21358         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21359         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21360         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21361         * modules/sys_time (Depends-on): Add warn-on-use.
21362         (Makefile.am): Always build replacement.
21363         (configure.ac): Update substitutions.
21364         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21365         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21366         bother with SYS_TIME_H.
21367         * modules/gettimeofday (configure.ac): Declare indicator.
21368         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21369         in use.
21370
21371         closein-tests: silence compiler warning
21372         * tests/test-closein.c (main): Ignore fread result.
21373         * modules/closein-tests (Depends-on): Add ignore-value.
21374
21375         tests: silence warning about system return
21376         * tests/test-areadlink-with-size.c (main): Ignore system result.
21377         * tests/test-areadlink.c (main): Likewise.
21378         * tests/test-areadlinkat-with-size.c (main): Likewise.
21379         * tests/test-areadlinkat.c (main): Likewise.
21380         * tests/test-canonicalize-lgpl.c (main): Likewise.
21381         * tests/test-canonicalize.c (main): Likewise.
21382         * tests/test-chown.c (main): Likewise.
21383         * tests/test-fchownat.c (main): Likewise.
21384         * tests/test-fdutimensat.c (main): Likewise.
21385         * tests/test-fstatat.c (main): Likewise.
21386         * tests/test-futimens.c (main): Likewise.
21387         * tests/test-lchown.c (main): Likewise.
21388         * tests/test-link.c (main): Likewise.
21389         * tests/test-linkat.c (main): Likewise.
21390         * tests/test-lstat.c (main): Likewise.
21391         * tests/test-mkdir.c (main): Likewise.
21392         * tests/test-mkdirat.c (main): Likewise.
21393         * tests/test-mkfifo.c (main): Likewise.
21394         * tests/test-mkfifoat.c (main): Likewise.
21395         * tests/test-mknod.c (main): Likewise.
21396         * tests/test-readlink.c (main): Likewise.
21397         * tests/test-remove.c (main): Likewise.
21398         * tests/test-rename.c (main): Likewise.
21399         * tests/test-renameat.c (main): Likewise.
21400         * tests/test-rmdir.c (main): Likewise.
21401         * tests/test-symlink.c (main): Likewise.
21402         * tests/test-symlinkat.c (main): Likewise.
21403         * tests/test-unlink.c (main): Likewise.
21404         * tests/test-unlinkat.c (main): Likewise.
21405         * tests/test-utimens.c (main): Likewise.
21406         * tests/test-utimensat.c (main): Likewise.
21407         * modules/areadlink-tests (Depends-on): Add ignore-value.
21408         * modules/areadlink-with-size-tests (Depends-on): Likewise.
21409         * modules/areadlinkat-tests (Depends-on): Likewise.
21410         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
21411         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21412         * modules/canonicalize-tests (Depends-on): Likewise.
21413         * modules/chown-tests (Depends-on): Likewise.
21414         * modules/fdutimensat-tests (Depends-on): Likewise.
21415         * modules/futimens-tests (Depends-on): Likewise.
21416         * modules/lchown-tests (Depends-on): Likewise.
21417         * modules/link-tests (Depends-on): Likewise.
21418         * modules/linkat-tests (Depends-on): Likewise.
21419         * modules/lstat-tests (Depends-on): Likewise.
21420         * modules/mkdir-tests (Depends-on): Likewise.
21421         * modules/mkfifo-tests (Depends-on): Likewise.
21422         * modules/mkfifoat-tests (Depends-on): Likewise.
21423         * modules/mknod-tests (Depends-on): Likewise.
21424         * modules/openat-tests (Depends-on): Likewise.
21425         * modules/readlink-tests (Depends-on): Likewise.
21426         * modules/remove-tests (Depends-on): Likewise.
21427         * modules/rename-tests (Depends-on): Likewise.
21428         * modules/renameat-tests (Depends-on): Likewise.
21429         * modules/rmdir-tests (Depends-on): Likewise.
21430         * modules/symlink-tests (Depends-on): Likewise.
21431         * modules/symlinkat-tests (Depends-on): Likewise.
21432         * modules/unlink-tests (Depends-on): Likewise.
21433         * modules/utimens-tests (Depends-on): Likewise.
21434         * modules/utimensat-tests (Depends-on): Likewise.
21435
21436 2010-01-31  Bruno Haible  <bruno@clisp.org>
21437
21438         Perform the same test for many <math.h> functions.
21439         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
21440         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
21441         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
21442         of gl_MATHFUNC.
21443         * modules/acos (configure.ac): Likewise.
21444         * modules/asin (configure.ac): Likewise.
21445         * modules/atan (configure.ac): Likewise.
21446         * modules/atan2 (configure.ac): Likewise.
21447         * modules/cbrt (configure.ac): Likewise.
21448         * modules/copysign (configure.ac): Likewise.
21449         * modules/cos (configure.ac): Likewise.
21450         * modules/cosh (configure.ac): Likewise.
21451         * modules/erf (configure.ac): Likewise.
21452         * modules/erfc (configure.ac): Likewise.
21453         * modules/exp (configure.ac): Likewise.
21454         * modules/fmod (configure.ac): Likewise.
21455         * modules/hypot (configure.ac): Likewise.
21456         * modules/j0 (configure.ac): Likewise.
21457         * modules/j1 (configure.ac): Likewise.
21458         * modules/jn (configure.ac): Likewise.
21459         * modules/lgamma (configure.ac): Likewise.
21460         * modules/log (configure.ac): Likewise.
21461         * modules/log10 (configure.ac): Likewise.
21462         * modules/log1p (configure.ac): Likewise.
21463         * modules/pow (configure.ac): Likewise.
21464         * modules/remainder (configure.ac): Likewise.
21465         * modules/sin (configure.ac): Likewise.
21466         * modules/sinh (configure.ac): Likewise.
21467         * modules/tan (configure.ac): Likewise.
21468         * modules/tanh (configure.ac): Likewise.
21469         * modules/y0 (configure.ac): Likewise.
21470         * modules/y1 (configure.ac): Likewise.
21471         * modules/yn (configure.ac): Likewise.
21472         Suggested by Paolo Bonzini.
21473
21474 2010-01-31  Bruno Haible  <bruno@clisp.org>
21475
21476         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
21477
21478 2010-01-31  Bruno Haible  <bruno@clisp.org>
21479
21480         Work around getdelim() bug on FreeBSD 8.0.
21481         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
21482         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
21483         not work.
21484         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
21485         is 1.
21486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
21487         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
21488         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
21489         a non-zero size.
21490         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
21491
21492 2010-01-31  Bruno Haible  <bruno@clisp.org>
21493
21494         Work around getline() bug on FreeBSD 8.0.
21495         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
21496         and a non-zero size.
21497         * tests/test-getline.c (main): Likewise.
21498         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
21499         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
21500
21501 2010-01-28  Eric Blake  <ebb9@byu.net>
21502
21503         regex: fix build failure
21504         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
21505         platforms.
21506
21507 2010-01-28  Jim Meyering  <meyering@redhat.com>
21508
21509         regex: do not ignore memory allocation failure
21510         * lib/regex_internal.c (create_cd_newstate): Detect
21511         re_node_set_init_copy failure.   Extracted from glibc commit
21512         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21513
21514         regex: sync more white-space changes from libc
21515         * lib/regex_internal.c: White-space only changes.
21516         * lib/regexec.c: Likewise.
21517
21518         regex: add many uses of __attribute_warn_unused_result__
21519         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
21520         * lib/regexec.c: Likewise.
21521         Extracted from a messy glibc commit.
21522
21523         regcomp.c: spelling and merge-artifact from glibc
21524         * lib/regcomp.c: Merge remainder of glibc's
21525         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21526
21527         regcomp.c: sync white-space changes from glibc
21528         * lib/regcomp.c: Merge to accommodate white space
21529         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21530
21531         regcomp.c: do not ignore internal return values
21532         * lib/regcomp.c: Do not ignore internal return values.
21533         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
21534         but without its white-space changes and spelling fixes.
21535
21536         regex_internal.h: define __attribute_warn_unused_result__
21537         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
21538
21539         maint: add a syntax-check rule to check for vulnerable Makefile.in
21540         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
21541
21542 2010-01-27  Jim Meyering  <meyering@redhat.com>
21543
21544         ncftpput-ftp: clean up spaces
21545         * build-aux/ncftpput-ftp: Make Copyright line consistent.
21546         Remove trailing blanks.
21547
21548 2010-01-27  Simon Josefsson  <simon@josefsson.org>
21549
21550         * build-aux/git-version-gen: Fix copyright statement.
21551         * build-aux/gnupload: Likewise.
21552         * tests/test-arcfour.c: Likewise.
21553         * tests/test-arctwo.c: Likewise.
21554         * tests/test-count-one-bits.c: Likewise.
21555         * tests/test-crc.c: Likewise.
21556         * tests/test-des.c: Likewise.
21557         * tests/test-gc-arcfour.c: Likewise.
21558         * tests/test-gc-arctwo.c: Likewise.
21559         * tests/test-gc-des.c: Likewise.
21560         * tests/test-gc-hmac-md5.c: Likewise.
21561         * tests/test-gc-hmac-sha1.c: Likewise.
21562         * tests/test-gc-md2.c: Likewise.
21563         * tests/test-gc-md4.c: Likewise.
21564         * tests/test-gc-md5.c: Likewise.
21565         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21566         * tests/test-gc-rijndael.c: Likewise.
21567         * tests/test-gc-sha1.c: Likewise.
21568         * tests/test-gc.c: Likewise.
21569         * tests/test-gethostname.c: Likewise.
21570         * tests/test-gettimeofday.c: Likewise.
21571         * tests/test-hash.c: Likewise.
21572         * tests/test-hmac-md5.c: Likewise.
21573         * tests/test-hmac-sha1.c: Likewise.
21574         * tests/test-md2.c: Likewise.
21575         * tests/test-md4.c: Likewise.
21576         * tests/test-md5.c: Likewise.
21577         * tests/test-memchr.c: Likewise.
21578         * tests/test-memchr2.c: Likewise.
21579         * tests/test-memcmp.c: Likewise.
21580         * tests/test-memmem.c: Likewise.
21581         * tests/test-memrchr.c: Likewise.
21582         * tests/test-rawmemchr.c: Likewise.
21583         * tests/test-read-file.c: Likewise.
21584         * tests/test-rijndael.c: Likewise.
21585         * tests/test-sockets.c: Likewise.
21586         * tests/test-strchrnul.c: Likewise.
21587         * tests/test-strstr.c: Likewise.
21588         * tests/test-strtod.c: Likewise.
21589         * build-aux/ncftpput-ftp: Likewise.
21590
21591 2010-01-26  Eric Blake  <ebb9@byu.net>
21592
21593         ignore-value: update recommended header name
21594         * modules/ignore-value (Include): Only use <> for headers that
21595         exist in glibc.
21596
21597 2010-01-26  Jim Meyering  <meyering@redhat.com>
21598
21599         test-userspec.c: avoid compiler warnings
21600         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
21601         and "initialization discards qualifiers..." warnings.
21602         Put the first "uid" in its own scope, and make char* members "const".
21603
21604 2010-01-25  Bruno Haible  <bruno@clisp.org>
21605
21606         gnulib-tool: Make warning diagnostics consistent.
21607         * gnulib-tool (func_warning): New function.
21608         Use it everywhere where gnulib-tool produces output to stderr and it is
21609         not a fatal error.
21610
21611 2010-01-25  Bruno Haible  <bruno@clisp.org>
21612
21613         Fix test dependencies.
21614         * modules/xstrtol-tests (Depends-on): Add inttypes.
21615         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
21616
21617 2010-01-25 Pádraig Brady <P@draigBrady.com>
21618
21619         syntax-check: detect incorrect boolean macro values in config.h
21620         * modules/maintainer-makefile (configure.ac): Parameterize the location
21621         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
21622         The logic is from Eric Blake and the location indicated by Jim Meyering.
21623         Note the more natural CONFIG_HEADER name is prohibited by automake
21624         for backwards compatibility reasons.
21625         * top/maint.mk (sc_Wundef_boolean): New rule.
21626
21627 2010-01-25  Jim Meyering  <meyering@redhat.com>
21628
21629         bootstrap: detect MacOS 10.6's shasum, too
21630         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
21631         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
21632
21633 2010-01-23  Jim Meyering  <meyering@redhat.com>
21634
21635         xstrtoll: new module
21636         * modules/xstrtoll: New file.
21637         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
21638         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
21639         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
21640         ./configure fails if you use this module and lack "long long".
21641         * modules/xstrtoll-tests: New module.
21642         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
21643         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
21644         new init.sh-based test framework.
21645
21646 2010-01-24  Bruno Haible  <bruno@clisp.org>
21647
21648         Tests for module 'yn'.
21649         * modules/yn-tests: New file.
21650         * tests/test-yn.c: New file.
21651
21652         Tests for module 'y1'.
21653         * modules/y1-tests: New file.
21654         * tests/test-y1.c: New file.
21655
21656         Tests for module 'y0'.
21657         * modules/y0-tests: New file.
21658         * tests/test-y0.c: New file.
21659
21660         Tests for module 'tanh'.
21661         * modules/tanh-tests: New file.
21662         * tests/test-tanh.c: New file.
21663
21664         Tests for module 'tan'.
21665         * modules/tan-tests: New file.
21666         * tests/test-tan.c: New file.
21667
21668         Tests for module 'sqrt'.
21669         * modules/sqrt-tests: New file.
21670         * tests/test-sqrt.c: New file.
21671
21672         Tests for module 'sinh'.
21673         * modules/sinh-tests: New file.
21674         * tests/test-sinh.c: New file.
21675
21676         Tests for module 'sin'.
21677         * modules/sin-tests: New file.
21678         * tests/test-sin.c: New file.
21679
21680         Tests for module 'rint'.
21681         * modules/rint-tests: New file.
21682         * tests/test-rint.c: New file.
21683
21684         Tests for module 'remainder'.
21685         * modules/remainder-tests: New file.
21686         * tests/test-remainder.c: New file.
21687
21688         Tests for module 'pow'.
21689         * modules/pow-tests: New file.
21690         * tests/test-pow.c: New file.
21691
21692         Tests for module 'nextafter'.
21693         * modules/nextafter-tests: New file.
21694         * tests/test-nextafter.c: New file.
21695
21696         Tests for module 'modf'.
21697         * modules/modf-tests: New file.
21698         * tests/test-modf.c: New file.
21699
21700         Tests for module 'logb'.
21701         * modules/logb-tests: New file.
21702         * tests/test-logb.c: New file.
21703
21704         Tests for module 'log1p'.
21705         * modules/log1p-tests: New file.
21706         * tests/test-log1p.c: New file.
21707
21708         Tests for module 'log10'.
21709         * modules/log10-tests: New file.
21710         * tests/test-log10.c: New file.
21711
21712         Tests for module 'log'.
21713         * modules/log-tests: New file.
21714         * tests/test-log.c: New file.
21715
21716         Tests for module 'lgamma'.
21717         * modules/lgamma-tests: New file.
21718         * tests/test-lgamma.c: New file.
21719
21720         Tests for module 'ldexp'.
21721         * modules/ldexp-tests: New file.
21722         * tests/test-ldexp.c: New file.
21723
21724         Tests for module 'jn'.
21725         * modules/jn-tests: New file.
21726         * tests/test-jn.c: New file.
21727
21728         Tests for module 'j1'.
21729         * modules/j1-tests: New file.
21730         * tests/test-j1.c: New file.
21731
21732         Tests for module 'j0'.
21733         * modules/j0-tests: New file.
21734         * tests/test-j0.c: New file.
21735
21736         Tests for module 'hypot'.
21737         * modules/hypot-tests: New file.
21738         * tests/test-hypot.c: New file.
21739
21740         Tests for module 'fmod'.
21741         * modules/fmod-tests: New file.
21742         * tests/test-fmod.c: New file.
21743
21744         Tests for module 'fabs'.
21745         * modules/fabs-tests: New file.
21746         * tests/test-fabs.c: New file.
21747
21748         Tests for module 'exp'.
21749         * modules/exp-tests: New file.
21750         * tests/test-exp.c: New file.
21751
21752         Tests for module 'erfc'.
21753         * modules/erfc-tests: New file.
21754         * tests/test-erfc.c: New file.
21755
21756         Tests for module 'erf'.
21757         * modules/erf-tests: New file.
21758         * tests/test-erf.c: New file.
21759
21760         Tests for module 'cosh'.
21761         * modules/cosh-tests: New file.
21762         * tests/test-cosh.c: New file.
21763
21764         Tests for module 'cos'.
21765         * modules/cos-tests: New file.
21766         * tests/test-cos.c: New file.
21767
21768         Tests for module 'copysign'.
21769         * modules/copysign-tests: New file.
21770         * tests/test-copysign.c: New file.
21771
21772         Tests for module 'cbrt'.
21773         * modules/cbrt-tests: New file.
21774         * tests/test-cbrt.c: New file.
21775
21776         Tests for module 'atan2'.
21777         * modules/atan2-tests: New file.
21778         * tests/test-atan2.c: New file.
21779
21780         Tests for module 'atan'.
21781         * modules/atan-tests: New file.
21782         * tests/test-atan.c: New file.
21783
21784         Tests for module 'asin'.
21785         * modules/asin-tests: New file.
21786         * tests/test-asin.c: New file.
21787
21788         Tests for module 'acos'.
21789         * modules/acos-tests: New file.
21790         * tests/test-acos.c: New file.
21791
21792 2010-01-24  Bruno Haible  <bruno@clisp.org>
21793
21794         Fix tests for common <math.h> functions.
21795         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
21796         code snippet that references the function pointer, rather than merely
21797         calling the function. Substitute the FUNC_LIBM variable.
21798         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
21799         * modules/acos (configure.ac): Likewise.
21800         * modules/asin (configure.ac): Likewise.
21801         * modules/atan (configure.ac): Likewise.
21802         * modules/atan2 (configure.ac): Likewise.
21803         * modules/cbrt (configure.ac): Likewise.
21804         * modules/copysign (configure.ac): Likewise.
21805         * modules/cos (configure.ac): Likewise.
21806         * modules/cosh (configure.ac): Likewise.
21807         * modules/erf (configure.ac): Likewise.
21808         * modules/erfc (configure.ac): Likewise.
21809         * modules/exp (configure.ac): Likewise.
21810         * modules/fabs (configure.ac): Likewise.
21811         * modules/fmod (configure.ac): Likewise.
21812         * modules/hypot (configure.ac): Likewise.
21813         * modules/j0 (configure.ac): Likewise.
21814         * modules/j1 (configure.ac): Likewise.
21815         * modules/jn (configure.ac): Likewise.
21816         * modules/ldexp (configure.ac): Likewise.
21817         * modules/lgamma (configure.ac): Likewise.
21818         * modules/log (configure.ac): Likewise.
21819         * modules/log10 (configure.ac): Likewise.
21820         * modules/log1p (configure.ac): Likewise.
21821         * modules/logb (configure.ac): Likewise.
21822         * modules/modf (configure.ac): Likewise.
21823         * modules/nextafter (configure.ac): Likewise.
21824         * modules/pow (configure.ac): Likewise.
21825         * modules/remainder (configure.ac): Likewise.
21826         * modules/rint (configure.ac): Likewise.
21827         * modules/sin (configure.ac): Likewise.
21828         * modules/sinh (configure.ac): Likewise.
21829         * modules/tan (configure.ac): Likewise.
21830         * modules/tanh (configure.ac): Likewise.
21831         * modules/y0 (configure.ac): Likewise.
21832         * modules/y1 (configure.ac): Likewise.
21833         * modules/yn (configure.ac): Likewise.
21834
21835 2010-01-24  Bruno Haible  <bruno@clisp.org>
21836
21837         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
21838         * tests/test-acosl.c (x): New variable.
21839         (main): Store argument in x and fetch it from x.
21840         * tests/test-asinl.c (x): New variable.
21841         (main): Store argument in x and fetch it from x.
21842         * tests/test-atanl.c (x): New variable.
21843         (main): Store argument in x and fetch it from x.
21844         * tests/test-cosl.c (x): New variable.
21845         (main): Store argument in x and fetch it from x.
21846         * tests/test-expl.c (x): New variable.
21847         (main): Store argument in x and fetch it from x.
21848         * tests/test-logl.c (x): New variable.
21849         (main): Store argument in x and fetch it from x.
21850         * tests/test-sinl.c (x): New variable.
21851         (main): Store argument in x and fetch it from x.
21852         * tests/test-sqrtl.c (x): New variable.
21853         (main): Store argument in x and fetch it from x.
21854         * tests/test-tanl.c (x): New variable.
21855         (main): Store argument in x and fetch it from x.
21856
21857 2010-01-24  Bruno Haible  <bruno@clisp.org>
21858
21859         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
21860         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
21861         assignments to the initial TESTS_ENVIRONMENT.
21862         * doc/gnulib.texi (Unit test modules): Document it.
21863         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
21864         TESTS_ENVIRONMENT.
21865         * modules/btowc-tests (Makefile.am): Likewise.
21866         * modules/c-stack-tests (Makefile.am): Likewise.
21867         * modules/c-strcase-tests (Makefile.am): Likewise.
21868         * modules/copy-file-tests (Makefile.am): Likewise.
21869         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
21870         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
21871         * modules/mbrtowc-tests (Makefile.am): Likewise.
21872         * modules/mbscasecmp-tests (Makefile.am): Likewise.
21873         * modules/mbscasestr-tests (Makefile.am): Likewise.
21874         * modules/mbschr-tests (Makefile.am): Likewise.
21875         * modules/mbscspn-tests (Makefile.am): Likewise.
21876         * modules/mbsinit-tests (Makefile.am): Likewise.
21877         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
21878         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
21879         * modules/mbspbrk-tests (Makefile.am): Likewise.
21880         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
21881         * modules/mbsrchr-tests (Makefile.am): Likewise.
21882         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
21883         * modules/mbsspn-tests (Makefile.am): Likewise.
21884         * modules/mbsstr-tests (Makefile.am): Likewise.
21885         * modules/nl_langinfo-tests (Makefile.am): Likewise.
21886         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
21887         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
21888         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
21889         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
21890         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
21891         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
21892         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
21893         * modules/wcrtomb-tests (Makefile.am): Likewise.
21894         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
21895         * modules/wcsrtombs-tests (Makefile.am): Likewise.
21896         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
21897         assignments from TESTS_ENVIRONMENT.
21898         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
21899         augmentation.
21900         * modules/argp-version-etc-tests (Makefile.am): Likewise.
21901         * modules/atexit-tests (Makefile.am): Likewise.
21902         * modules/binary-io-tests (Makefile.am): Likewise.
21903         * modules/closein-tests (Makefile.am): Likewise.
21904         * modules/dprintf-posix-tests (Makefile.am): Likewise.
21905         * modules/exclude-tests (Makefile.am): Likewise.
21906         * modules/fflush-tests (Makefile.am): Likewise.
21907         * modules/fpending-tests (Makefile.am): Likewise.
21908         * modules/fprintf-posix-tests (Makefile.am): Likewise.
21909         * modules/freadahead-tests (Makefile.am): Likewise.
21910         * modules/freadptr-tests (Makefile.am): Likewise.
21911         * modules/freadseek-tests (Makefile.am): Likewise.
21912         * modules/fseek-tests (Makefile.am): Likewise.
21913         * modules/fseeko-tests (Makefile.am): Likewise.
21914         * modules/ftell-tests (Makefile.am): Likewise.
21915         * modules/ftello-tests (Makefile.am): Likewise.
21916         * modules/idpriv-drop-tests (Makefile.am): Likewise.
21917         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
21918         * modules/lseek-tests (Makefile.am): Likewise.
21919         * modules/parse-duration-tests (Makefile.am): Likewise.
21920         * modules/perror-tests (Makefile.am): Likewise.
21921         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
21922         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
21923         * modules/pipe-tests (Makefile.am): Likewise.
21924         * modules/pread-tests (Makefile.am): Likewise.
21925         * modules/printf-posix-tests (Makefile.am): Likewise.
21926         * modules/select-tests (Makefile.am): Likewise.
21927         * modules/sigpipe-tests (Makefile.am): Likewise.
21928         * modules/tsearch-tests (Makefile.am): Likewise.
21929         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
21930         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
21931         * modules/uniname/uniname-tests (Makefile.am): Likewise.
21932         * modules/uniwidth/width-tests (Makefile.am): Likewise.
21933         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
21934         * modules/version-etc-tests (Makefile.am): Likewise.
21935         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
21936         * modules/vprintf-posix-tests (Makefile.am): Likewise.
21937         * modules/xalloc-die-tests (Makefile.am): Likewise.
21938         * modules/xprintf-posix-tests (Makefile.am): Likewise.
21939         * modules/xstrtoimax-tests (Makefile.am): Likewise.
21940         * modules/xstrtol-tests (Makefile.am): Likewise.
21941         * modules/xstrtoumax-tests (Makefile.am): Likewise.
21942         * modules/yesno-tests (Makefile.am): Likewise.
21943         Suggested by Jim Meyering.
21944
21945 2010-01-24  Bruno Haible  <bruno@clisp.org>
21946
21947         More documentation.
21948         * doc/gnulib.texi (Writing modules): New chapter.
21949         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
21950         the new chapter.
21951
21952 2010-01-24  Jim Meyering  <meyering@redhat.com>
21953
21954         maint.mk: do not prepend "./" after filtering
21955         * top/maint.mk (_prepend_srcdir_prefix): New variable
21956         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
21957         "./" when $(srcdir) is ".".
21958
21959         define STREQ(a,b) consistently, removing useless parentheses
21960         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
21961         since the only risk is that "a" or "b" contains an unparenthesized
21962         comma, but if either did that, STREQ would have 3 or more arguments.
21963         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
21964         * lib/fts.c (STREQ): Remove unnecessary parentheses.
21965         * lib/hash-triple.c (STREQ): Likewise.
21966         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
21967         * lib/getugroups.c (STREQ): Likewise.
21968
21969 2010-01-23  Jim Meyering  <meyering@redhat.com>
21970
21971         maint.mk: fix syntax-check in a non-srcdir build directory
21972         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
21973         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
21974
21975 2010-01-22  Jim Meyering  <meyering@redhat.com>
21976
21977         userspec: add unit tests
21978         * tests/test-userspec.c: New file.
21979         * modules/userspec-tests: Likewise.
21980
21981 2010-01-21  Jim Meyering  <meyering@redhat.com>
21982
21983         maint.mk: handle source file names containing "." robustly
21984         * top/maint.mk (_dot_escaped_srcdir): Define.
21985         (VC_LIST): Use it in LHS of sed substitution.
21986
21987 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
21988
21989         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
21990         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
21991         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
21992         from a non-srcdir build.
21993
21994 2010-01-20  Eric Blake  <ebb9@byu.net>
21995
21996         warn-on-use: use instead of link-warning
21997         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
21998         * modules/unistd (Depends-on, Makefile.am): Likewise.
21999         * modules/arpa_inet (Depends-on): Replace link-warning with
22000         warn-on-use.
22001         (Makefile.am): Update rules accordingly.
22002         * modules/ctype (Depends-on, Makefile.am): Likewise.
22003         * modules/dirent (Depends-on, Makefile.am): Likewise.
22004         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
22005         * modules/inttypes (Depends-on, Makefile.am): Likewise.
22006         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22007         * modules/locale (Depends-on, Makefile.am): Likewise.
22008         * modules/math (Depends-on, Makefile.am): Likewise.
22009         * modules/search (Depends-on, Makefile.am): Likewise.
22010         * modules/signal (Depends-on, Makefile.am): Likewise.
22011         * modules/spawn (Depends-on, Makefile.am): Likewise.
22012         * modules/stdlib (Depends-on, Makefile.am): Likewise.
22013         * modules/string (Depends-on, Makefile.am): Likewise.
22014         * modules/strings (Depends-on, Makefile.am): Likewise.
22015         * modules/sys_file (Depends-on, Makefile.am): Likewise.
22016         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
22017         * modules/sys_select (Depends-on, Makefile.am): Likewise.
22018         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22019         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22020         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22021         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22022         * modules/wchar (Depends-on, Makefile.am): Likewise.
22023         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22024         should be poisoned.
22025         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22026         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22027         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22028         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22029         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22030         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22031         * m4/math_h.m4 (gl_MATH_H): Likewise.
22032         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22033         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22034         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22035         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22036         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22037         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22038         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22039         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22040         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22041         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22042         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22043         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22044         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22045         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22046         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22047         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22048         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22049         GL_LINK_WARNING.
22050         * lib/ctype.in.h: Likewise.
22051         * lib/dirent.in.h: Likewise.
22052         * lib/fcntl.in.h: Likewise.
22053         * lib/inttypes.in.h: Likewise.
22054         * lib/langinfo.in.h: Likewise.
22055         * lib/locale.in.h: Likewise.
22056         * lib/math.in.h: Likewise.
22057         * lib/search.in.h: Likewise.
22058         * lib/signal.in.h: Likewise.
22059         * lib/spawn.in.h: Likewise.
22060         * lib/stdio.in.h: Likewise.
22061         * lib/stdlib.in.h: Likewise.
22062         * lib/string.in.h: Likewise.
22063         * lib/strings.in.h: Likewise.
22064         * lib/sys_file.in.h: Likewise.
22065         * lib/sys_ioctl.in.h: Likewise.
22066         * lib/sys_select.in.h: Likewise.
22067         * lib/sys_socket.in.h: Likewise.
22068         * lib/sys_stat.in.h: Likewise.
22069         * lib/sys_times.in.h: Likewise.
22070         * lib/sys_utsname.in.h: Likewise.
22071         * lib/unistd.in.h: Likewise.
22072         * lib/wchar.in.h: Likewise.
22073
22074 2010-01-20  Bruno Haible  <bruno@clisp.org>
22075
22076         Avoid duplicate -lm.
22077         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22078         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22079         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22080         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22081         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22082         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22083         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22084         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22085         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22086         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22087         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22088         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22089         Reported by Paolo Bonzini.
22090
22091 2010-01-19  Bruno Haible  <bruno@clisp.org>
22092
22093         langinfo, nl_langinfo: Relicense under LGPLv2+.
22094         * modules/langinfo (License): Change to LGPLv2+.
22095         * modules/nl_langinfo (License): Likewise.
22096         Patch by David Lutterkort <lutter@redhat.com>.
22097
22098 2010-01-19  Bruno Haible  <bruno@clisp.org>
22099
22100         Avoid compilation error with cc on OSF/1 5.1.
22101         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22102         statement, not before.
22103         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22104
22105 2010-01-18  Bruno Haible  <bruno@clisp.org>
22106
22107         Avoid a link error due to the __printf__ symbol.
22108         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22109         and 2.6.x.
22110         (__format__, __printf__): Remove definitions.
22111         * lib/argp-fmtstream.h: Likewise.
22112         * lib/argp.h: Likewise.
22113         * lib/error.h: Likewise.
22114         * lib/vasnprintf.h: Likewise.
22115         * lib/xprintf.h: Likewise.
22116         * lib/xvasprintf.h: Likewise.
22117         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22118
22119 2010-01-18  Bruno Haible  <bruno@clisp.org>
22120
22121         Tests for module 'tanl'.
22122         * modules/tanl-tests: New file.
22123         * tests/test-tanl.c: New file.
22124
22125         Tests for module 'sqrtl'.
22126         * modules/sqrtl-tests: New file.
22127         * tests/test-sqrtl.c: New file.
22128
22129         Tests for module 'sinl'.
22130         * modules/sinl-tests: New file.
22131         * tests/test-sinl.c: New file.
22132
22133         Tests for module 'logl'.
22134         * modules/logl-tests: New file.
22135         * tests/test-logl.c: New file.
22136
22137         Tests for module 'expl'.
22138         * modules/expl-tests: New file.
22139         * tests/test-expl.c: New file.
22140
22141         Tests for module 'cosl'.
22142         * modules/cosl-tests: New file.
22143         * tests/test-cosl.c: New file.
22144
22145         Tests for module 'atanl'.
22146         * modules/atanl-tests: New file.
22147         * tests/test-atanl.c: New file.
22148
22149         Tests for module 'asinl'.
22150         * modules/asinl-tests: New file.
22151         * tests/test-asinl.c: New file.
22152
22153         Tests for module 'acosl'.
22154         * modules/acosl-tests: New file.
22155         * tests/test-acosl.c: New file.
22156
22157         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22158         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22159         tanl): Use the standard gnulib idiom.
22160         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22161         * lib/sinl.c: Likewise.
22162         * lib/tanl.c: Don't include trigl.c.
22163         (kernel_tanl): Make static.
22164         * lib/sincosl.c: Include trigl.h first.
22165         * lib/trigl.c: Likewise.
22166         * m4/acosl.m4: New file.
22167         * m4/asinl.m4: New file.
22168         * m4/atanl.m4: New file.
22169         * m4/cosl.m4: New file.
22170         * m4/expl.m4: New file.
22171         * m4/logl.m4: New file.
22172         * m4/sinl.m4: New file.
22173         * m4/sqrtl.m4: New file.
22174         * m4/tanl.m4: New file.
22175         * m4/mathl.m4: Remove file.
22176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22177         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22178         Don't initialize GNULIB_MATHL.
22179         * modules/acosl: New file.
22180         * modules/asinl: New file.
22181         * modules/atanl: New file.
22182         * modules/cosl: New file.
22183         * modules/expl: New file.
22184         * modules/logl: New file.
22185         * modules/sinl: New file.
22186         * modules/sqrtl: New file.
22187         * modules/tanl: New file.
22188         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22189         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22190         substitute GNULIB_MATHL.
22191         * modules/mathl: Rewritten.
22192         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22193         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22194         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22195         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22196         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22197         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22198         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22199         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22200         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22201
22202 2010-01-18  Bruno Haible  <bruno@clisp.org>
22203
22204         sqrt: Make gl_FUNC_SQRT requirable.
22205         * m4/sqrt.m4: New file.
22206         * modules/sqrt (Files): Add it.
22207         (configure.ac): Invoke gl_FUNC_SQRT.
22208
22209 2010-01-18  Bruno Haible  <bruno@clisp.org>
22210
22211         New modules for common <math.h> functions.
22212         * m4/mathfunc.m4: New file.
22213         * modules/acos: New file.
22214         * modules/asin: New file.
22215         * modules/atan: New file.
22216         * modules/atan2: New file.
22217         * modules/cbrt: New file.
22218         * modules/copysign: New file.
22219         * modules/cos: New file.
22220         * modules/cosh: New file.
22221         * modules/erf: New file.
22222         * modules/erfc: New file.
22223         * modules/exp: New file.
22224         * modules/fabs: New file.
22225         * modules/fmod: New file.
22226         * modules/hypot: New file.
22227         * modules/j0: New file.
22228         * modules/j1: New file.
22229         * modules/jn: New file.
22230         * modules/ldexp: New file.
22231         * modules/lgamma: New file.
22232         * modules/log: New file.
22233         * modules/log10: New file.
22234         * modules/log1p: New file.
22235         * modules/logb: New file.
22236         * modules/modf: New file.
22237         * modules/nextafter: New file.
22238         * modules/pow: New file.
22239         * modules/remainder: New file.
22240         * modules/rint: New file.
22241         * modules/sin: New file.
22242         * modules/sinh: New file.
22243         * modules/sqrt: New file.
22244         * modules/tan: New file.
22245         * modules/tanh: New file.
22246         * modules/y0: New file.
22247         * modules/y1: New file.
22248         * modules/yn: New file.
22249         * doc/posix-functions/acos.texi: Mention the 'acos' module.
22250         * doc/posix-functions/asin.texi: Mention the 'asin' module.
22251         * doc/posix-functions/atan.texi: Mention the 'atan' module.
22252         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
22253         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
22254         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
22255         * doc/posix-functions/cos.texi: Mention the 'cos' module.
22256         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
22257         * doc/posix-functions/erf.texi: Mention the 'erf' module.
22258         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
22259         * doc/posix-functions/exp.texi: Mention the 'exp' module.
22260         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
22261         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
22262         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
22263         * doc/posix-functions/j0.texi: Mention the 'j0' module.
22264         * doc/posix-functions/j1.texi: Mention the 'j1' module.
22265         * doc/posix-functions/jn.texi: Mention the 'jn' module.
22266         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
22267         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
22268         * doc/posix-functions/log.texi: Mention the 'log' module.
22269         * doc/posix-functions/log10.texi: Mention the 'log10' module.
22270         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
22271         * doc/posix-functions/logb.texi: Mention the 'logb' module.
22272         * doc/posix-functions/modf.texi: Mention the 'modf' module.
22273         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
22274         * doc/posix-functions/pow.texi: Mention the 'pow' module.
22275         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
22276         * doc/posix-functions/rint.texi: Mention the 'rint' module.
22277         * doc/posix-functions/sin.texi: Mention the 'sin' module.
22278         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
22279         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
22280         * doc/posix-functions/tan.texi: Mention the 'tan' module.
22281         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
22282         * doc/posix-functions/y0.texi: Mention the 'y0' module.
22283         * doc/posix-functions/y1.texi: Mention the 'y1' module.
22284         * doc/posix-functions/yn.texi: Mention the 'yn' module.
22285
22286 2010-01-18  Jim Meyering  <meyering@redhat.com>
22287
22288         ignore-value: relax license to LGPLv2+
22289         * modules/ignore-value (License): Relax to LGPLv2+.
22290
22291         getdate: don't leak when TZ contains two or more '"'s
22292         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
22293         double quote in TZ after the first one.
22294
22295         readtokens: do not leak internal token_lengths buffer
22296         * lib/readtokens.c (readtokens): Free the local, lengths,
22297         when the supplied "token_lengths" parameter is NULL.
22298
22299 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22300
22301         Fix a couple of missing LIBTHREAD link failures on AIX.
22302         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
22303         $(LIBTHREAD).
22304         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
22305
22306         Link test-poll against INET_PTON_LIB.
22307         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
22308         for inet_pton on Solaris 10.
22309
22310 2010-01-17  Bruno Haible  <bruno@clisp.org>
22311
22312         unistdio/*-sprintf: Fix typo in module description.
22313         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
22314         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
22315         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
22316         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
22317         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
22318         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
22319         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
22320         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22321
22322 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22323
22324         gnulib-tool: fix filelist for AIX, HP-UX ksh.
22325         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
22326         variables in shell case patterns, for AIX and HP-UX ksh.
22327
22328         Split large sed scripts, for HP-UX sed.
22329         * modules/stdio: Split sed scripts around 50 sed commands,
22330         to avoid HP-UX limit of 99 commands, in the near future.
22331         * modules/string: Likewise.
22332         * modules/unistd: Likewise.
22333
22334         gnulib-tool: avoid writing in the current directory.
22335         * gnulib-tool (func_emit_lib_Makefile_am)
22336         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22337         not in the current directory, so concurrent gnulib-tool
22338         instances do not interfere.
22339
22340 2010-01-16  Jim Meyering  <meyering@redhat.com>
22341
22342         doc: update users.txt
22343         * users.txt: Add grep.
22344         (diffutils, gzip): Update URLs.
22345
22346 2010-01-12  Bruno Haible  <bruno@clisp.org>
22347
22348         posix_spawn: Avoid test failure on Cygwin.
22349         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22350         characters.
22351         Reported by Simon Josefsson.
22352
22353 2010-01-12  Bruno Haible  <bruno@clisp.org>
22354
22355         * tests/test-cond.c (main): When skipping the test, show the reason.
22356
22357 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22358
22359         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22360
22361 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22362
22363         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22364         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22365
22366 2010-01-12  Eric Blake  <ebb9@byu.net>
22367
22368         build: guarantee AS_VAR_IF
22369         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22370         (gl_AS_VAR_IF): Move...
22371         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22372         Reported by Simon Josefsson.
22373
22374 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22375
22376         * lib/stdio.in.h: Fix typo.
22377
22378 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22379
22380         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22381         libgpg-error.
22382
22383 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22384
22385         * tests/test-xalloc-die.sh: Use $EXEEXT.
22386
22387 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22388             Bruno Haible  <bruno@clisp.org>
22389
22390         getlogin, getlogin_r: Avoid test failure.
22391         * tests/test-getlogin.c: Include <stdio.h>.
22392         (main): Skip the test when the function fails because stdin is not a
22393         tty.
22394         * tests/test-getlogin_r.c: Include <stdio.h>.
22395         (main): Skip the test when the function fails because stdin is not a
22396         tty.
22397
22398 2010-01-11  Eric Blake  <ebb9@byu.net>
22399
22400         tests: avoid more large file warnings
22401         * tests/test-fflush.c: Avoid warning about ftell use.
22402         * tests/test-fseek.c: Avoid warning about fseek use.
22403
22404 2010-01-10  Bruno Haible  <bruno@clisp.org>
22405
22406         nproc: Work better on Linux when /proc and /sys are not mounted.
22407         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
22408         as lower bound when, on glibc/Linux systems,
22409         sysconf (_SC_NPROCESSORS_CONF) returns 1.
22410         Suggested by Pádraig Brady <P@draigbrady.com>.
22411         Reported by Dmitry V. Levin <ldv@altlinux.org>.
22412
22413         nproc: Refactor.
22414         * lib/nproc.c (num_processors_via_affinity_mask): New function,
22415         extracted from num_processors.
22416         (num_processors): Call it.
22417
22418 2010-01-11  Jim Meyering  <meyering@redhat.com>
22419
22420         utimecmp: avoid new warning from upcoming gcc-4.5.0
22421         * lib/utimecmp.c (BILLION): Define using #define rather than an
22422         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
22423
22424 2010-01-11  Eric Blake  <ebb9@byu.net>
22425
22426         math: add portability warnings for classification macros
22427         * modules/math (Depends-on): Add warn-on-use.
22428         (Makefile.am): Provide new substitutions.
22429         * m4/math_h.m4 (gl_MATH_H): Require inline.
22430         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
22431         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
22432         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
22433         implement warnings.
22434
22435         unistd: warn on use of environ without module
22436         * modules/unistd (Depends-on): Add warn-on-use.
22437         (Makefile.am): Provide new substitutions.
22438         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
22439         * lib/unistd.in.h (environ): Wrap with a warning helper function.
22440
22441         stdio: warn on suspicious uses
22442         * modules/stdio (Depends-on): Add warn-on-use.
22443         (Makefile.am): Provide new substitutions.
22444         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
22445         fseeko.
22446         * lib/stdio.in.h (gets): Always warn on use.
22447         (fseek, ftell): Adjust when warnings are issued, and honor
22448         _GL_NO_LARGE_FILES as a way to silence the warning.
22449         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
22450         any warning about large file offsets.
22451         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
22452         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
22453         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
22454         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
22455         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
22456         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
22457         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
22458         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
22459
22460         warn-on-use: new module
22461         * modules/warn-on-use: New file.
22462         * build-aux/warn-on-use.h: Likewise.
22463         * m4/warn-on-use.m4: Likewise.
22464         * MODULES.html.sh (Support for building): Mention it.
22465
22466 2010-01-10  Bruno Haible  <bruno@clisp.org>
22467
22468         Tests for module 'unistr/u32-strdup'.
22469         * modules/unistr/u32-strdup-tests: New file.
22470         * tests/unistr/test-u32-strdup.c: New file.
22471
22472         Tests for module 'unistr/u16-strdup'.
22473         * modules/unistr/u16-strdup-tests: New file.
22474         * tests/unistr/test-u16-strdup.c: New file.
22475
22476         Tests for module 'unistr/u8-strdup'.
22477         * modules/unistr/u8-strdup-tests: New file.
22478         * tests/unistr/test-u8-strdup.c: New file.
22479         * tests/unistr/test-strdup.h: New file.
22480
22481         Tests for module 'unistr/u32-strncmp'.
22482         * modules/unistr/u32-strncmp-tests: New file.
22483         * tests/unistr/test-u32-strncmp.c: New file.
22484
22485         Tests for module 'unistr/u16-strncmp'.
22486         * modules/unistr/u16-strncmp-tests: New file.
22487         * tests/unistr/test-u16-strncmp.c: New file.
22488
22489         Tests for module 'unistr/u8-strncmp'.
22490         * modules/unistr/u8-strncmp-tests: New file.
22491         * tests/unistr/test-u8-strncmp.c: New file.
22492         * tests/unistr/test-strncmp.h: New file.
22493
22494         Tests for module 'unistr/u32-strcoll'.
22495         * modules/unistr/u32-strcoll-tests: New file.
22496         * tests/unistr/test-u32-strcoll.c: New file.
22497
22498         Tests for module 'unistr/u16-strcoll'.
22499         * modules/unistr/u16-strcoll-tests: New file.
22500         * tests/unistr/test-u16-strcoll.c: New file.
22501
22502         Tests for module 'unistr/u8-strcoll'.
22503         * modules/unistr/u8-strcoll-tests: New file.
22504         * tests/unistr/test-u8-strcoll.c: New file.
22505
22506         Tests for module 'unistr/u32-strcmp'.
22507         * modules/unistr/u32-strcmp-tests: New file.
22508         * tests/unistr/test-u32-strcmp.c: New file.
22509         * tests/unistr/test-u32-strcmp.h: New file.
22510
22511         Tests for module 'unistr/u16-strcmp'.
22512         * modules/unistr/u16-strcmp-tests: New file.
22513         * tests/unistr/test-u16-strcmp.c: New file.
22514         * tests/unistr/test-u16-strcmp.h: New file.
22515
22516         Tests for module 'unistr/u8-strcmp'.
22517         * modules/unistr/u8-strcmp-tests: New file.
22518         * tests/unistr/test-u8-strcmp.c: New file.
22519         * tests/unistr/test-u8-strcmp.h: New file.
22520         * tests/unistr/test-strcmp.h: New file.
22521
22522         Tests for module 'unistr/u32-strncat'.
22523         * modules/unistr/u32-strncat-tests: New file.
22524         * tests/unistr/test-u32-strncat.c: New file.
22525
22526         Tests for module 'unistr/u16-strncat'.
22527         * modules/unistr/u16-strncat-tests: New file.
22528         * tests/unistr/test-u16-strncat.c: New file.
22529
22530         Tests for module 'unistr/u8-strncat'.
22531         * modules/unistr/u8-strncat-tests: New file.
22532         * tests/unistr/test-u8-strncat.c: New file.
22533         * tests/unistr/test-strncat.h: New file.
22534
22535         Tests for module 'unistr/u32-strcat'.
22536         * modules/unistr/u32-strcat-tests: New file.
22537         * tests/unistr/test-u32-strcat.c: New file.
22538
22539         Tests for module 'unistr/u16-strcat'.
22540         * modules/unistr/u16-strcat-tests: New file.
22541         * tests/unistr/test-u16-strcat.c: New file.
22542
22543         Tests for module 'unistr/u8-strcat'.
22544         * modules/unistr/u8-strcat-tests: New file.
22545         * tests/unistr/test-u8-strcat.c: New file.
22546         * tests/unistr/test-strcat.h: New file.
22547
22548         Tests for module 'unistr/u32-stpncpy'.
22549         * modules/unistr/u32-stpncpy-tests: New file.
22550         * tests/unistr/test-u32-stpncpy.c: New file.
22551
22552         Tests for module 'unistr/u16-stpncpy'.
22553         * modules/unistr/u16-stpncpy-tests: New file.
22554         * tests/unistr/test-u16-stpncpy.c: New file.
22555
22556         Tests for module 'unistr/u8-stpncpy'.
22557         * modules/unistr/u8-stpncpy-tests: New file.
22558         * tests/unistr/test-u8-stpncpy.c: New file.
22559         * tests/unistr/test-stpncpy.h: New file.
22560
22561         Tests for module 'unistr/u32-strncpy'.
22562         * modules/unistr/u32-strncpy-tests: New file.
22563         * tests/unistr/test-u32-strncpy.c: New file.
22564
22565         Tests for module 'unistr/u16-strncpy'.
22566         * modules/unistr/u16-strncpy-tests: New file.
22567         * tests/unistr/test-u16-strncpy.c: New file.
22568
22569         Tests for module 'unistr/u8-strncpy'.
22570         * modules/unistr/u8-strncpy-tests: New file.
22571         * tests/unistr/test-u8-strncpy.c: New file.
22572         * tests/unistr/test-strncpy.h: New file.
22573
22574         Tests for module 'unistr/u32-stpcpy'.
22575         * modules/unistr/u32-stpcpy-tests: New file.
22576         * tests/unistr/test-u32-stpcpy.c: New file.
22577
22578         Tests for module 'unistr/u16-stpcpy'.
22579         * modules/unistr/u16-stpcpy-tests: New file.
22580         * tests/unistr/test-u16-stpcpy.c: New file.
22581
22582         Tests for module 'unistr/u8-stpcpy'.
22583         * modules/unistr/u8-stpcpy-tests: New file.
22584         * tests/unistr/test-u8-stpcpy.c: New file.
22585         * tests/unistr/test-stpcpy.h: New file.
22586
22587         Tests for module 'unistr/u32-strcpy'.
22588         * modules/unistr/u32-strcpy-tests: New file.
22589         * tests/unistr/test-u32-strcpy.c: New file.
22590
22591         Tests for module 'unistr/u16-strcpy'.
22592         * modules/unistr/u16-strcpy-tests: New file.
22593         * tests/unistr/test-u16-strcpy.c: New file.
22594
22595         Tests for module 'unistr/u8-strcpy'.
22596         * modules/unistr/u8-strcpy-tests: New file.
22597         * tests/unistr/test-u8-strcpy.c: New file.
22598         * tests/unistr/test-strcpy.h: New file.
22599
22600         Tests for module 'unistr/u32-strnlen'.
22601         * modules/unistr/u32-strnlen-tests: New file.
22602         * tests/unistr/test-u32-strnlen.c: New file.
22603
22604         Tests for module 'unistr/u16-strnlen'.
22605         * modules/unistr/u16-strnlen-tests: New file.
22606         * tests/unistr/test-u16-strnlen.c: New file.
22607
22608         Tests for module 'unistr/u8-strnlen'.
22609         * modules/unistr/u8-strnlen-tests: New file.
22610         * tests/unistr/test-u8-strnlen.c: New file.
22611         * tests/unistr/test-strnlen.h: New file.
22612
22613         Tests for module 'unistr/u32-strlen'.
22614         * modules/unistr/u32-strlen-tests: New file.
22615         * tests/unistr/test-u32-strlen.c: New file.
22616
22617         Tests for module 'unistr/u16-strlen'.
22618         * modules/unistr/u16-strlen-tests: New file.
22619         * tests/unistr/test-u16-strlen.c: New file.
22620
22621         Tests for module 'unistr/u8-strlen'.
22622         * modules/unistr/u8-strlen-tests: New file.
22623         * tests/unistr/test-u8-strlen.c: New file.
22624
22625         Tests for module 'unistr/u32-prev'.
22626         * modules/unistr/u32-prev-tests: New file.
22627         * tests/unistr/test-u32-prev.c: New file.
22628
22629         Tests for module 'unistr/u16-prev'.
22630         * modules/unistr/u16-prev-tests: New file.
22631         * tests/unistr/test-u16-prev.c: New file.
22632
22633         Tests for module 'unistr/u8-prev'.
22634         * modules/unistr/u8-prev-tests: New file.
22635         * tests/unistr/test-u8-prev.c: New file.
22636
22637         Tests for module 'unistr/u32-next'.
22638         * modules/unistr/u32-next-tests: New file.
22639         * tests/unistr/test-u32-next.c: New file.
22640
22641         Tests for module 'unistr/u16-next'.
22642         * modules/unistr/u16-next-tests: New file.
22643         * tests/unistr/test-u16-next.c: New file.
22644
22645         Tests for module 'unistr/u8-next'.
22646         * modules/unistr/u8-next-tests: New file.
22647         * tests/unistr/test-u8-next.c: New file.
22648
22649         Tests for module 'unistr/u32-strmbtouc'.
22650         * modules/unistr/u32-strmbtouc-tests: New file.
22651         * tests/unistr/test-u32-strmbtouc.c: New file.
22652
22653         Tests for module 'unistr/u16-strmbtouc'.
22654         * modules/unistr/u16-strmbtouc-tests: New file.
22655         * tests/unistr/test-u16-strmbtouc.c: New file.
22656
22657         Tests for module 'unistr/u8-strmbtouc'.
22658         * modules/unistr/u8-strmbtouc-tests: New file.
22659         * tests/unistr/test-u8-strmbtouc.c: New file.
22660
22661         Tests for module 'unistr/u32-strmblen'.
22662         * modules/unistr/u32-strmblen-tests: New file.
22663         * tests/unistr/test-u32-strmblen.c: New file.
22664
22665         Tests for module 'unistr/u16-strmblen'.
22666         * modules/unistr/u16-strmblen-tests: New file.
22667         * tests/unistr/test-u16-strmblen.c: New file.
22668
22669         Tests for module 'unistr/u8-strmblen'.
22670         * modules/unistr/u8-strmblen-tests: New file.
22671         * tests/unistr/test-u8-strmblen.c: New file.
22672
22673         Tests for module 'unistr/u32-cpy-alloc'.
22674         * modules/unistr/u32-cpy-alloc-tests: New file.
22675         * tests/unistr/test-u32-cpy-alloc.c: New file.
22676
22677         Tests for module 'unistr/u16-cpy-alloc'.
22678         * modules/unistr/u16-cpy-alloc-tests: New file.
22679         * tests/unistr/test-u16-cpy-alloc.c: New file.
22680
22681         Tests for module 'unistr/u8-cpy-alloc'.
22682         * modules/unistr/u8-cpy-alloc-tests: New file.
22683         * tests/unistr/test-u8-cpy-alloc.c: New file.
22684         * tests/unistr/test-cpy-alloc.h: New file.
22685
22686         Tests for module 'unistr/u32-mbsnlen'.
22687         * modules/unistr/u32-mbsnlen-tests: New file.
22688         * tests/unistr/test-u32-mbsnlen.c: New file.
22689
22690         Tests for module 'unistr/u16-mbsnlen'.
22691         * modules/unistr/u16-mbsnlen-tests: New file.
22692         * tests/unistr/test-u16-mbsnlen.c: New file.
22693
22694         Tests for module 'unistr/u8-mbsnlen'.
22695         * modules/unistr/u8-mbsnlen-tests: New file.
22696         * tests/unistr/test-u8-mbsnlen.c: New file.
22697
22698         Tests for module 'unistr/u32-chr'.
22699         * modules/unistr/u32-chr-tests: New file.
22700         * tests/unistr/test-u32-chr.c: New file.
22701
22702         Tests for module 'unistr/u16-chr'.
22703         * modules/unistr/u16-chr-tests: New file.
22704         * tests/unistr/test-u16-chr.c: New file.
22705
22706         Tests for module 'unistr/u8-chr'.
22707         * modules/unistr/u8-chr-tests: New file.
22708         * tests/unistr/test-u8-chr.c: New file.
22709         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
22710
22711         Tests for module 'unistr/u32-cmp2'.
22712         * modules/unistr/u32-cmp2-tests: New file.
22713         * tests/unistr/test-u32-cmp2.c: New file.
22714
22715         Tests for module 'unistr/u16-cmp2'.
22716         * modules/unistr/u16-cmp2-tests: New file.
22717         * tests/unistr/test-u16-cmp2.c: New file.
22718
22719         Tests for module 'unistr/u8-cmp2'.
22720         * modules/unistr/u8-cmp2-tests: New file.
22721         * tests/unistr/test-u8-cmp2.c: New file.
22722         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
22723
22724         Tests for module 'unistr/u32-cmp'.
22725         * modules/unistr/u32-cmp-tests: New file.
22726         * tests/unistr/test-u32-cmp.c: New file.
22727
22728         Tests for module 'unistr/u16-cmp'.
22729         * modules/unistr/u16-cmp-tests: New file.
22730         * tests/unistr/test-u16-cmp.c: New file.
22731
22732         Tests for module 'unistr/u8-cmp'.
22733         * modules/unistr/u8-cmp-tests: New file.
22734         * tests/unistr/test-u8-cmp.c: New file.
22735         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
22736
22737         Tests for module 'unistr/u32-set'.
22738         * modules/unistr/u32-set-tests: New file.
22739         * tests/unistr/test-u32-set.c: New file.
22740
22741         Tests for module 'unistr/u16-set'.
22742         * modules/unistr/u16-set-tests: New file.
22743         * tests/unistr/test-u16-set.c: New file.
22744
22745         Tests for module 'unistr/u8-set'.
22746         * modules/unistr/u8-set-tests: New file.
22747         * tests/unistr/test-u8-set.c: New file.
22748         * tests/unistr/test-set.h: New file.
22749
22750         Tests for module 'unistr/u32-move'.
22751         * modules/unistr/u32-move-tests: New file.
22752         * tests/unistr/test-u32-move.c: New file.
22753
22754         Tests for module 'unistr/u16-move'.
22755         * modules/unistr/u16-move-tests: New file.
22756         * tests/unistr/test-u16-move.c: New file.
22757
22758         Tests for module 'unistr/u8-move'.
22759         * modules/unistr/u8-move-tests: New file.
22760         * tests/unistr/test-u8-move.c: New file.
22761         * tests/unistr/test-move.h: New file.
22762
22763         Tests for module 'unistr/u32-cpy'.
22764         * modules/unistr/u32-cpy-tests: New file.
22765         * tests/unistr/test-u32-cpy.c: New file.
22766
22767         Tests for module 'unistr/u16-cpy'.
22768         * modules/unistr/u16-cpy-tests: New file.
22769         * tests/unistr/test-u16-cpy.c: New file.
22770
22771         Tests for module 'unistr/u8-cpy'.
22772         * modules/unistr/u8-cpy-tests: New file.
22773         * tests/unistr/test-u8-cpy.c: New file.
22774         * tests/unistr/test-cpy.h: New file.
22775
22776 2010-01-09  Bruno Haible  <bruno@clisp.org>
22777
22778         Tests for module 'unistr/u32-uctomb'.
22779         * modules/unistr/u32-uctomb-tests: New file.
22780         * tests/unistr/test-u32-uctomb.c: New file.
22781
22782         Tests for module 'unistr/u16-uctomb'.
22783         * modules/unistr/u16-uctomb-tests: New file.
22784         * tests/unistr/test-u16-uctomb.c: New file.
22785
22786         Tests for module 'unistr/u8-uctomb'.
22787         * modules/unistr/u8-uctomb-tests: New file.
22788         * tests/unistr/test-u8-uctomb.c: New file.
22789
22790         Tests for module 'unistr/u32-mbtoucr'.
22791         * modules/unistr/u32-mbtoucr-tests: New file.
22792         * tests/unistr/test-u32-mbtoucr.c: New file.
22793
22794         Tests for module 'unistr/u16-mbtoucr'.
22795         * modules/unistr/u16-mbtoucr-tests: New file.
22796         * tests/unistr/test-u16-mbtoucr.c: New file.
22797
22798         Tests for module 'unistr/u8-mbtoucr'.
22799         * modules/unistr/u8-mbtoucr-tests: New file.
22800         * tests/unistr/test-u8-mbtoucr.c: New file.
22801
22802         Tests for module 'unistr/u32-mbtouc'.
22803         * modules/unistr/u32-mbtouc-tests: New file.
22804         * tests/unistr/test-u32-mbtouc.c: New file.
22805
22806         Tests for module 'unistr/u16-mbtouc'.
22807         * modules/unistr/u16-mbtouc-tests: New file.
22808         * tests/unistr/test-u16-mbtouc.c: New file.
22809
22810         Tests for module 'unistr/u8-mbtouc'.
22811         * modules/unistr/u8-mbtouc-tests: New file.
22812         * tests/unistr/test-u8-mbtouc.c: New file.
22813
22814         Tests for module 'unistr/u32-mbtouc-unsafe'.
22815         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
22816         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
22817         * tests/unistr/test-u32-mbtouc.h: New file.
22818
22819         Tests for module 'unistr/u16-mbtouc-unsafe'.
22820         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
22821         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
22822         * tests/unistr/test-u16-mbtouc.h: New file.
22823
22824         Tests for module 'unistr/u8-mbtouc-unsafe'.
22825         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
22826         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
22827         * tests/unistr/test-u8-mbtouc.h: New file.
22828
22829         Tests for module 'unistr/u32-mblen'.
22830         * modules/unistr/u32-mblen-tests: New file.
22831         * tests/unistr/test-u32-mblen.c: New file.
22832
22833         Tests for module 'unistr/u16-mblen'.
22834         * modules/unistr/u16-mblen-tests: New file.
22835         * tests/unistr/test-u16-mblen.c: New file.
22836
22837         Tests for module 'unistr/u8-mblen'.
22838         * modules/unistr/u8-mblen-tests: New file.
22839         * tests/unistr/test-u8-mblen.c: New file.
22840
22841         Tests for module 'unistr/u32-to-u16'.
22842         * modules/unistr/u32-to-u16-tests: New file.
22843         * tests/unistr/test-u32-to-u16.c: New file.
22844
22845         Tests for module 'unistr/u32-to-u8'.
22846         * modules/unistr/u32-to-u8-tests: New file.
22847         * tests/unistr/test-u32-to-u8.c: New file.
22848
22849         Tests for module 'unistr/u16-to-u32'.
22850         * modules/unistr/u16-to-u32-tests: New file.
22851         * tests/unistr/test-u16-to-u32.c: New file.
22852
22853         Tests for module 'unistr/u16-to-u8'.
22854         * modules/unistr/u16-to-u8-tests: New file.
22855         * tests/unistr/test-u16-to-u8.c: New file.
22856
22857         Tests for module 'unistr/u8-to-u32'.
22858         * modules/unistr/u8-to-u32-tests: New file.
22859         * tests/unistr/test-u8-to-u32.c: New file.
22860
22861         Tests for module 'unistr/u8-to-u16'.
22862         * modules/unistr/u8-to-u16-tests: New file.
22863         * tests/unistr/test-u8-to-u16.c: New file.
22864
22865         Tests for module 'unistr/u32-check'.
22866         * modules/unistr/u32-check-tests: New file.
22867         * tests/unistr/test-u32-check.c: New file.
22868
22869         Tests for module 'unistr/u16-check'.
22870         * modules/unistr/u16-check-tests: New file.
22871         * tests/unistr/test-u16-check.c: New file.
22872
22873         Tests for module 'unistr/u8-check'.
22874         * modules/unistr/u8-check-tests: New file.
22875         * tests/unistr/test-u8-check.c: New file.
22876
22877         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
22878         (category_equals): New function.
22879         (main): Add more tests.
22880         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
22881
22882         * tests/unictype/test-bidi_byname.c (main): Add more tests.
22883
22884 2010-01-10  Bruno Haible  <bruno@clisp.org>
22885
22886         unistr/u*-strcoll: Try harder to distinguish different strings.
22887         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
22888         compare s1 and s2 to see if they are different.
22889
22890 2010-01-10  Bruno Haible  <bruno@clisp.org>
22891
22892         unistr/u*-stpncpy: Fix the return value.
22893         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
22894         description of the return value consistent with stpncpy in glibc.
22895         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
22896         written non-NUL unit.
22897
22898 2010-01-10  Bruno Haible  <bruno@clisp.org>
22899
22900         unistr/u*-next: Add missing dependencies.
22901         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
22902         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
22903         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
22904
22905 2010-01-10  Bruno Haible  <bruno@clisp.org>
22906
22907         unistr/u8-mbsnlen: Fix return value for incomplete character.
22908         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
22909         u8_mblen.
22910         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
22911         Remove unistr/u8-mblen.
22912         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
22913         u16_mblen.
22914         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
22915         Remove unistr/u16-mblen.
22916
22917 2010-01-10  Bruno Haible  <bruno@clisp.org>
22918
22919         wchar: Fix compilation error when <wchar.h> is used from coreutils.
22920         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
22921         Reported by Brian Gough <bjg@gnu.org> and
22922         Chris Clayton <chris2553@googlemail.com> via
22923         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
22924
22925 2010-01-09  Bruno Haible  <bruno@clisp.org>
22926
22927         unistr/u16-to-u32: Reject invalid input.
22928         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
22929         u16_mbtouc.
22930         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
22931         Remove unistr/u16-mbtouc.
22932
22933         unistr/u16-to-u8: Reject invalid input.
22934         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
22935         u16_mbtouc.
22936         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
22937         Remove unistr/u16-mbtouc.
22938
22939         unistr/u8-to-u32: Reject invalid input.
22940         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
22941         u8_mbtouc.
22942         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
22943         Remove unistr/u8-mbtouc.
22944
22945         unistr/u8-to-u16: Reject invalid input.
22946         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
22947         u8_mbtouc.
22948         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
22949         Remove unistr/u8-mbtouc.
22950
22951 2010-01-09  Bruno Haible  <bruno@clisp.org>
22952
22953         Tests for module 'getlogin'.
22954         * modules/getlogin-tests: New file.
22955         * tests/test-getlogin.c: New file.
22956
22957         New module 'getlogin'.
22958         * lib/unistd.in.h (getlogin): New declaration.
22959         * lib/getlogin.c: New file.
22960         * m4/getlogin.m4: New file.
22961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
22962         HAVE_GETLOGIN.
22963         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
22964         HAVE_GETLOGIN.
22965         * modules/getlogin: New file.
22966         * doc/posix-functions/getlogin.texi: Mention the new module.
22967         Reported by John W. Eaton <jwe@gnu.org>.
22968
22969 2010-01-09  Bruno Haible  <bruno@clisp.org>
22970
22971         getlogin_r: Support for native Windows.
22972         * lib/getlogin_r.c: Include <windows.h>
22973         (getlogin_r): Implement for native Windows.
22974         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
22975         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
22976         via John W. Eaton <jwe@gnu.org>.
22977
22978 2010-01-09  Bruno Haible  <bruno@clisp.org>
22979
22980         getlogin_r: Small fixes.
22981         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
22982         succeeds.
22983         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
22984         before testing whether getlogin_r is declared. No need to set
22985         HAVE_DECL_GETLOGIN_R to 1.
22986         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
22987
22988 2010-01-09  Bruno Haible  <bruno@clisp.org>
22989
22990         * lib/unistd.in.h (getlogin_r): Add comment.
22991
22992 2010-01-09  Bruno Haible  <bruno@clisp.org>
22993
22994         Tests for module 'getlogin_r'.
22995         * modules/getlogin_r-tests: New file.
22996         * tests/test-getlogin_r.c: New file.
22997
22998 2010-01-09  Jim Meyering  <meyering@redhat.com>
22999
23000         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
23001         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
23002         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
23003
23004 2010-01-08  Simon Josefsson  <simon@josefsson.org>
23005
23006         * lib/dup2.c (rpl_dup2): Improve comment.
23007
23008 2010-01-08  Eric Blake  <ebb9@byu.net>
23009
23010         maint.mk: allow packages to add makefile @@ exceptions
23011         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
23012         (sc_makefile_check): Rename...
23013         (sc_makefile_at_at_check): ...to this, and use hook.
23014
23015         dup2: work around mingw bug
23016         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
23017         Reported by Simon Josefsson.
23018
23019 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23020
23021         glob: Fix C++ compilation.
23022         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23023         C++.
23024
23025 2010-01-07  Bruno Haible  <bruno@clisp.org>
23026
23027         Fix indentation of wctype.in.h, broken since 2007-01-06.
23028         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23029
23030 2010-01-07  Bruno Haible  <bruno@clisp.org>
23031
23032         mbslen: Avoid collision with system function.
23033         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23034         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23035         * m4/mbslen.m4: New file.
23036         * modules/mbslen (Files): Add it.
23037         (configure.ac): Invoke gl_MBSLEN.
23038         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23039         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23040         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23041         via Ian Beckwith <ianb@erislabs.net>.
23042
23043 2010-01-07  Bruno Haible  <bruno@clisp.org>
23044
23045         dirent: Document the last fix.
23046         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23047
23048 2010-01-07  Bruno Haible  <bruno@clisp.org>
23049
23050         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23051         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23052         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23053         va_list are defined.
23054         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23055         Reported by Eric Blake.
23056
23057 2010-01-07  Bruno Haible  <bruno@clisp.org>
23058
23059         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23060         * modules/xlist (Depends-on): Add 'list',
23061         * modules/xoset (Depends-on): Add 'oset'.
23062         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23063
23064 2010-01-07  Bruno Haible  <bruno@clisp.org>
23065
23066         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23067         * doc/posix-functions/strncasecmp.texi: Likewise.
23068
23069 2010-01-07  Bruno Haible  <bruno@clisp.org>
23070
23071         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23072
23073 2010-01-07  John W. Eaton  <jwe@octave.org>
23074
23075         wctype: allow C++ use
23076         * lib/wctype.in.h: Add extern "C" block for C++.
23077
23078 2010-01-06  Eric Blake  <ebb9@byu.net>
23079
23080         maint.mk: detect incorrect GFDL usage
23081         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23082
23083 2010-01-06  Jim Meyering  <meyering@redhat.com>
23084         and Eric Blake  <ebb9@byu.net>
23085
23086         maint.mk: ignore multi-line copyright in NEWS
23087         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23088
23089 2010-01-06  Eric Blake  <ebb9@byu.net>
23090
23091         select: add missing dependency
23092         * modules/select-tests (Depends-on): Move sockets dependency...
23093         * modules/select (Depends-on): ...here.
23094         Reported by Ian Beckwith.
23095
23096         doc: regenerate INSTALL
23097         * doc/INSTALL: Reflect recent autoconf update.
23098         * doc/INSTALL.ISO: Likewise.
23099         * doc/INSTALL.UTF-8: Likewise.
23100
23101         pread: fix compilation on glibc
23102         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23103         Reported by Ralf Wildenhues.
23104
23105         dirent: fix test failure
23106         * lib/dirent.in.h (includes): Guarantee ino_t.
23107         Reported by Ralf Wildenhues.
23108
23109 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23110
23111         linkat, renameat: avoid bad free
23112         * lib/at-func2.c (at_func2): Fix typo.
23113         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23114
23115 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23116
23117         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23118         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23119         to avoid failure of symlink test later.
23120
23121 2010-01-06  Eric Blake  <ebb9@byu.net>
23122
23123         stdio, unistd: guarantee ssize_t
23124         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23125         2008 are exposed when needed.
23126         * lib/stdio.in.h (includes): Likewise.
23127         Reported by Ralf Wildenhues.
23128
23129 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23130
23131         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23132         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23133         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23134
23135 2010-01-06  Jim Meyering  <meyering@redhat.com>
23136
23137         readtokens: this module *does* require xalloc.h
23138         It uses only functions that were omitted by the old syntax-check rule.
23139         * lib/readtokens.c: Include "xalloc.h" once again.
23140         * modules/readtokens (Depends-on): Add xalloc.
23141         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23142
23143 2010-01-05  Eric Blake  <ebb9@byu.net>
23144
23145         maint: support 'make announcement' from a VPATH build
23146         * top/maint.mk (announcement): Look for correct NEWS file.
23147
23148 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23149
23150         utimens (fdutimens): ignore a negative FD, per contract
23151         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23152         when we have a valid file descriptor.  Otherwise, using a brand
23153         new glibc (with just-patched futimens that now fails with EBADF)
23154         would cause this function to fail with ENOSYS.
23155         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23156         See also http://bugzilla.redhat.com/552320.
23157
23158 2010-01-05  Eric Blake  <ebb9@byu.net>
23159
23160         strcase: document what it provides
23161         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23162         gnulib module.
23163         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23164         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23165
23166 2010-01-05  Jim Meyering  <meyering@redhat.com>
23167
23168         maint: remove useless inclusions of "xalloc.h"
23169         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23170         * lib/readtokens.c: Likewise.
23171         * lib/same.c: Likewise.
23172         * modules/getloadavg (Depends-on): Remove xalloc.
23173         * modules/readtokens: Likewise.
23174         * modules/same: Likewise.
23175
23176         maint.mk: include 4 more function names in alloca.h-checking regexp
23177         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23178         regexp.  Before, we would give a false-positive (saying alloca.h
23179         is included unnecessarily) when the only uses involved omitted symbols.
23180
23181         xalloc.h: use consistent formatting
23182         * lib/xalloc.h: Move declarations to start in the first column.
23183
23184 2010-01-05  Eric Blake  <ebb9@byu.net>
23185
23186         mkdir: avoid xalloc
23187         * lib/mkdir.c (includes): Drop unused header.
23188         Reported by John W. Eaton.
23189
23190 2010-01-04  Jim Meyering  <meyering@redhat.com>
23191
23192         nl_langinfo: avoid configure-time syntax error
23193         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23194         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23195         the empty string.  Don't let that provoke a shell syntax error.
23196
23197         regcomp, regexec, fnmatch: avoid array bounds read error
23198         * lib/regcomp.c (build_equiv_class): From glibc:
23199         Use only the low 24 bits of a findidx return value as an index
23200         into the weights array.  Patch by Ulrich Drepper:
23201         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23202         * lib/regexec.c (check_node_accept_bytes): Likewise.
23203         * lib/fnmatch_loop.c (FCT): Likewise.
23204
23205         regcomp: skip collseq lookup when there are no rules
23206         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23207         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23208
23209         regcomp: recognize ill-formed { } expressions
23210         * lib/regcomp.c (parse_dup_op): From glibc:
23211         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23212
23213         regcomp: fix typo in comment
23214         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23215         s/satisfy/satisfies/.
23216
23217         regcomp: sync from glibc: remove dead store
23218         * lib/regcomp.c (duplicate_node_closure): Remove useless
23219         search_duplicated_node call and dead store.
23220
23221         regcomp: sync from glibc; always use nl_langinfo
23222         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23223         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23224         * modules/regex (Depends-on): Add nl_langinfo.
23225
23226 2010-01-04  Eric Blake  <ebb9@byu.net>
23227
23228         fdopendir: fix configure test
23229         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23230
23231 2010-01-01  Bruno Haible  <bruno@clisp.org>
23232
23233         wchar: Remove unused configure check.
23234         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23235
23236 2010-01-01  Eric Blake  <ebb9@byu.net>
23237
23238         headers: make check of system header explicit
23239         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
23240         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
23241         ourselves.
23242         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23243         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23244         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23245         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
23246         internals.
23247         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
23248         missing.
23249         Suggested by Bruno Haible.
23250
23251 2010-01-01  Jim Meyering  <meyering@redhat.com>
23252
23253         ChangeLog: tweak to eliminate unnecessary copyright line
23254         * ChangeLog: Remove a copyright line that was mistakenly updated
23255         by today's update-copyright run.  Reported by Eric Blake.
23256
23257         test-update-copyright: don't let envvar setting cause test failure
23258         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23259
23260 2010-01-01  Bruno Haible  <bruno@clisp.org>
23261
23262         localename: Avoid gcc warning.
23263         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
23264         function if it is not used.
23265
23266 2010-01-01  Jim Meyering  <meyering@redhat.com>
23267
23268         update nearly all FSF copyright year lists to include 2010
23269         Use the same procedure as for 2009, outlined in
23270         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
23271
23272         version-etc: set COPYRIGHT_YEAR to 2010
23273         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
23274
23275 2009-12-31  Eric Blake  <ebb9@byu.net>
23276
23277         doc: correct availability of cygwin 1.5.x getopt
23278         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
23279         variables.
23280         * doc/posix-functions/opterr.texi (opterr): Likewise.
23281         * doc/posix-functions/optind.texi (optind): Likewise.
23282         * doc/posix-functions/optopt.texi (optopt): Likewise.
23283         * doc/posix-functions/tzname.texi (tzname): Likewise.
23284
23285         openat: update maintainer
23286         * modules/openat (Maintainer): Add myself.
23287
23288         utimens: avoid shadowing warning
23289         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
23290         buffers into one, to avoid shadowing, as well as avoiding a
23291         redundant stat.
23292         Reported by Jim Meyering.
23293
23294         test-dup2: avoid compiler warning
23295         * tests/test-dup2.c (is_inheritable): Only define if used.
23296
23297 2010-01-01  Bruno Haible  <bruno@clisp.org>
23298
23299         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
23300         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
23301         defined, use wctomb instead of wcrtomb.
23302
23303 2010-01-01  Bruno Haible  <bruno@clisp.org>
23304
23305         iconv: Reject native Solaris iconv.
23306         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
23307         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
23308
23309 2009-12-31  Bruno Haible  <bruno@clisp.org>
23310
23311         * tests/test-signal.c (main): Remove test of 'SIG'.
23312
23313 2009-12-31  Bruno Haible  <bruno@clisp.org>
23314
23315         spawn: Fix incomplete fix.
23316         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23317         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23318         warnings for GNULIB_POSIXCHECK again.
23319         Reported by Eric Blake.
23320
23321 2009-12-31  Bruno Haible  <bruno@clisp.org>
23322
23323         Avoid namespace pollution on glibc systems.
23324         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23325         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
23326         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
23327         glibc systems.
23328
23329 2009-12-31  Bruno Haible  <bruno@clisp.org>
23330
23331         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23332         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23333         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23334         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23335         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23336         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23337         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23338
23339 2009-12-31  Bruno Haible  <bruno@clisp.org>
23340
23341         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23342         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23343         afterwards.
23344
23345 2009-12-31  Bruno Haible  <bruno@clisp.org>
23346
23347         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23348         SYS_UTSNAME_H.
23349
23350 2009-12-31  Bruno Haible  <bruno@clisp.org>
23351
23352         spawn: Fix misapplied patch.
23353         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23354         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23355         warnings for GNULIB_POSIXCHECK.
23356
23357 2009-12-31  Bruno Haible  <bruno@clisp.org>
23358
23359         times: Update after sys_times changed.
23360         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23361         * modules/times (Files): Add it.
23362         (configure.ac): Invoke gl_FUNC_TIMES.
23363
23364 2009-12-31  Bruno Haible  <bruno@clisp.org>
23365
23366         Use AC_C_INLINE where necessary.
23367         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23368         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23369         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23370         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23371         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23372         * m4/mbiter.m4 (gl_MBITER): Likewise.
23373         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23374         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23375         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23376         * modules/u64 (configure.ac): Likewise.
23377
23378 2009-12-31  Bruno Haible  <bruno@clisp.org>
23379
23380         Use AC_C_INLINE instead of module 'inline' where possible.
23381         * modules/inline (Description): Clarify purpose.
23382         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23383         * modules/count-one-bits (Depends-on): Remove inline.
23384         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23385         * modules/openat (Depends-on): Remove inline.
23386         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23387         instead of depending on module 'inline'.
23388         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23389         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23390         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23391         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23392         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23393         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23394         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23395         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23396         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23397         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23398         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23399         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23400         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23401         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
23402         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
23403         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
23404         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
23405         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
23406         Likewise.
23407         * modules/unictype/property-ascii-hex-digit (Depends-on,
23408         configure.ac): Likewise.
23409         * modules/unictype/property-bidi-arabic-digit (Depends-on,
23410         configure.ac): Likewise.
23411         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
23412         configure.ac): Likewise.
23413         * modules/unictype/property-bidi-block-separator (Depends-on,
23414         configure.ac): Likewise.
23415         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
23416         configure.ac): Likewise.
23417         * modules/unictype/property-bidi-common-separator (Depends-on,
23418         configure.ac): Likewise.
23419         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
23420         Likewise.
23421         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
23422         configure.ac): Likewise.
23423         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
23424         configure.ac): Likewise.
23425         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
23426         configure.ac): Likewise.
23427         * modules/unictype/property-bidi-european-digit (Depends-on,
23428         configure.ac): Likewise.
23429         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
23430         configure.ac): Likewise.
23431         * modules/unictype/property-bidi-left-to-right (Depends-on,
23432         configure.ac): Likewise.
23433         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
23434         configure.ac): Likewise.
23435         * modules/unictype/property-bidi-other-neutral (Depends-on,
23436         configure.ac): Likewise.
23437         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
23438         Likewise.
23439         * modules/unictype/property-bidi-segment-separator (Depends-on,
23440         configure.ac): Likewise.
23441         * modules/unictype/property-bidi-whitespace (Depends-on,
23442         configure.ac): Likewise.
23443         * modules/unictype/property-combining (Depends-on, configure.ac):
23444         Likewise.
23445         * modules/unictype/property-composite (Depends-on, configure.ac):
23446         Likewise.
23447         * modules/unictype/property-currency-symbol (Depends-on,
23448         configure.ac): Likewise.
23449         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
23450         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
23451         Likewise.
23452         * modules/unictype/property-default-ignorable-code-point (Depends-on,
23453         configure.ac): Likewise.
23454         * modules/unictype/property-deprecated (Depends-on, configure.ac):
23455         Likewise.
23456         * modules/unictype/property-diacritic (Depends-on, configure.ac):
23457         Likewise.
23458         * modules/unictype/property-extender (Depends-on, configure.ac):
23459         Likewise.
23460         * modules/unictype/property-format-control (Depends-on, configure.ac):
23461         Likewise.
23462         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
23463         Likewise.
23464         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
23465         Likewise.
23466         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
23467         Likewise.
23468         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
23469         Likewise.
23470         * modules/unictype/property-hyphen (Depends-on, configure.ac):
23471         Likewise.
23472         * modules/unictype/property-id-continue (Depends-on, configure.ac):
23473         Likewise.
23474         * modules/unictype/property-id-start (Depends-on, configure.ac):
23475         Likewise.
23476         * modules/unictype/property-ideographic (Depends-on, configure.ac):
23477         Likewise.
23478         * modules/unictype/property-ids-binary-operator (Depends-on,
23479         configure.ac): Likewise.
23480         * modules/unictype/property-ids-trinary-operator (Depends-on,
23481         configure.ac): Likewise.
23482         * modules/unictype/property-ignorable-control (Depends-on,
23483         configure.ac): Likewise.
23484         * modules/unictype/property-iso-control (Depends-on, configure.ac):
23485         Likewise.
23486         * modules/unictype/property-join-control (Depends-on, configure.ac):
23487         Likewise.
23488         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
23489         Likewise.
23490         * modules/unictype/property-line-separator (Depends-on, configure.ac):
23491         Likewise.
23492         * modules/unictype/property-logical-order-exception (Depends-on,
23493         configure.ac): Likewise.
23494         * modules/unictype/property-lowercase (Depends-on, configure.ac):
23495         Likewise.
23496         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
23497         * modules/unictype/property-non-break (Depends-on, configure.ac):
23498         Likewise.
23499         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
23500         Likewise.
23501         * modules/unictype/property-numeric (Depends-on, configure.ac):
23502         Likewise.
23503         * modules/unictype/property-other-alphabetic (Depends-on,
23504         configure.ac): Likewise.
23505         * modules/unictype/property-other-default-ignorable-code-point
23506         (Depends-on, configure.ac): Likewise.
23507         * modules/unictype/property-other-grapheme-extend (Depends-on,
23508         configure.ac): Likewise.
23509         * modules/unictype/property-other-id-continue (Depends-on,
23510         configure.ac): Likewise.
23511         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
23512         Likewise.
23513         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
23514         Likewise.
23515         * modules/unictype/property-other-math (Depends-on, configure.ac):
23516         Likewise.
23517         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
23518         Likewise.
23519         * modules/unictype/property-paired-punctuation (Depends-on,
23520         configure.ac): Likewise.
23521         * modules/unictype/property-paragraph-separator (Depends-on,
23522         configure.ac): Likewise.
23523         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
23524         Likewise.
23525         * modules/unictype/property-pattern-white-space (Depends-on,
23526         configure.ac): Likewise.
23527         * modules/unictype/property-private-use (Depends-on, configure.ac):
23528         Likewise.
23529         * modules/unictype/property-punctuation (Depends-on, configure.ac):
23530         Likewise.
23531         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
23532         Likewise.
23533         * modules/unictype/property-radical (Depends-on, configure.ac):
23534         Likewise.
23535         * modules/unictype/property-sentence-terminal (Depends-on,
23536         configure.ac): Likewise.
23537         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
23538         Likewise.
23539         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
23540         * modules/unictype/property-terminal-punctuation (Depends-on,
23541         configure.ac): Likewise.
23542         * modules/unictype/property-titlecase (Depends-on, configure.ac):
23543         Likewise.
23544         * modules/unictype/property-unassigned-code-value (Depends-on,
23545         configure.ac): Likewise.
23546         * modules/unictype/property-unified-ideograph (Depends-on,
23547         configure.ac): Likewise.
23548         * modules/unictype/property-uppercase (Depends-on, configure.ac):
23549         Likewise.
23550         * modules/unictype/property-variation-selector (Depends-on,
23551         configure.ac): Likewise.
23552         * modules/unictype/property-white-space (Depends-on, configure.ac):
23553         Likewise.
23554         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
23555         Likewise.
23556         * modules/unictype/property-xid-start (Depends-on, configure.ac):
23557         Likewise.
23558         * modules/unictype/property-zero-width (Depends-on, configure.ac):
23559         Likewise.
23560         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
23561         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
23562         Likewise.
23563
23564 2009-12-31  Bruno Haible  <bruno@clisp.org>
23565
23566         Remove unnecessary AC_C_INLINE invocation.
23567         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
23568         since 2009-08-21.
23569
23570 2009-12-31  Jim Meyering  <meyering@redhat.com>
23571
23572         maint.mk: don't require explicit gpg_key_ID in cfg.mk
23573         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
23574         With this change, we can all remove the gpg_key_ID = ... definition
23575         from our respective cfg.mk files.
23576
23577         maint.mk: create announcement template in ~/, not in /tmp
23578         * top/maint.mk (emit_upload_commands): Adjust.
23579         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
23580         Remove temporary file, .ci-msg.
23581
23582 2009-12-31  Eric Blake  <ebb9@byu.net>
23583
23584         link-warning: always build headers with link warnings
23585         * modules/arpa_inet (Makefile.am): Always build replacement
23586         header.
23587         * modules/ctype (Makefile.am): Likewise.
23588         * modules/dirent (Makefile.am): Likewise.
23589         * modules/inttypes (Makefile.am): Likewise.
23590         * modules/langinfo (Makefile.am): Likewise.
23591         * modules/locale (Makefile.am): Likewise.
23592         * modules/spawn (Makefile.am): Likewise.
23593         * modules/sys_file (Makefile.am): Likewise.
23594         * modules/sys_ioctl (Makefile.am): Likewise.
23595         * modules/sys_select (Makefile.am): Likewise.
23596         * modules/sys_socket (Makefile.am): Likewise.
23597         * modules/sys_times (Makefile.am): Likewise.
23598         * modules/sys_utsname (Makefile.am): Likewise.
23599         * modules/sys_wait (Makefile.am): Likewise.
23600         * modules/wchar (Makefile.am): Likewise.
23601         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
23602         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
23603         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
23604         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
23605         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
23606         Likewise.
23607         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23608         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23609         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
23610         Likewise.
23611         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
23612         Likewise.
23613         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23614         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
23615         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
23616         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23617         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23618         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23619         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23620         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
23621         (gl_WCHAR_H_DEFAULTS): Likewise.
23622
23623 2009-12-31  Eric Blake  <ebb9@byu.net>
23624
23625         signal, spawn: use link warnings
23626         * lib/signal.in.h (sigset_t): Make unconditional.
23627         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
23628         (sigpending, sigprocmask, sigaction): Add link warnings.
23629         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
23630         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
23631         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
23632         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
23633         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
23634         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
23635         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
23636         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
23637         (posix_spawn_file_actions_destroy)
23638         (posix_spawn_file_actions_addopen)
23639         (posix_spawn_file_actions_addclose)
23640         (posix_spawn_file_actions_adddup2): Likewise.
23641         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
23642         * tests/test-signal.c (main): Enhance test.
23643
23644         spawn: improve wrapper support
23645         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
23646         (gl_SPAWN_H_DEFAULTS): New defaults.
23647         * modules/spawn (Makefile.am): Substitute them.
23648         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
23649         Only declare if missing or broken.
23650
23651         sys_times, sys_utsname: use include_next
23652         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
23653         header.
23654         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
23655         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23656         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23657         * modules/sys_times (Depends-on): Add include_next.
23658         (Makefile.am): Substitute additional values.
23659         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23660         * lib/sys_times.in.h (includes): Include native header, if
23661         available.
23662         * lib/sys_utsname.in.h (includes): Likewise.
23663         * tests/test-sys_times.c (main): Enhance test.
23664
23665         fdutimensat: revert prior patch
23666         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
23667         utimens.h.
23668         Reported by Bruno Haible.
23669
23670 2009-12-30  Eric Blake  <ebb9@byu.net>
23671
23672         sys_wait: drop link-warning dependency
23673         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
23674         link-warning efforts.
23675         * lib/sys_wait.in.h: Likewise.
23676
23677         fdutimensat: remove bogus dependency
23678         * modules/fdutimensat (Depends-on): Drop inline.
23679
23680         unistd: fix typo
23681         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
23682
23683 2009-12-30  Bruno Haible  <bruno@clisp.org>
23684
23685         Fix compilation error with Solaris cc.
23686         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
23687         * lib/unicase/u16-is-invariant.c: Likewise.
23688         * lib/unicase/u32-is-invariant.c: Likewise.
23689         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23690
23691 2009-12-30  Bruno Haible  <bruno@clisp.org>
23692
23693         Fix test crash.
23694         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
23695         locales.
23696         Reported by Simon Josefsson <simon@josefsson.org>.
23697
23698 2009-12-30  Bruno Haible  <bruno@clisp.org>
23699
23700         Fix compilation error on most platforms.
23701         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
23702         Reported by Simon Josefsson <simon@josefsson.org>
23703         and Nelson H. F. Beebe <beebe@math.utah.edu>.
23704
23705 2009-12-30  Eric Blake  <ebb9@byu.net>
23706
23707         futimens, utimensat: work around ntfs-3g bug
23708         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
23709         a ctime bug is present, and expand workaround to cover ntfs-3g.
23710         * lib/utimens.c (fdutimens, lutimens): Likewise.
23711         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
23712         (validate_timespec): Adjust return value.
23713         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
23714         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23715         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
23716
23717 2009-12-29  Eric Blake  <ebb9@byu.net>
23718
23719         link-warning: make usage consistent
23720         * modules/ctype (Depends-on): Add link-warning.
23721         (Makefile.am): Update rules accordingly.
23722         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23723         * modules/locale (Depends-on, Makefile.am): Likewise.
23724         * modules/sys_file (Makefile.am): Likewise.
23725         * modules/getopt-posix (Makefile.am): Delete unused link warning
23726         efforts.
23727         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
23728         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
23729         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
23730         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
23731
23732         stdio: remove unused variables
23733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
23734         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
23735         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23736
23737         tests: test more substitute headers
23738         * modules/ctype-tests: New file.
23739         * modules/dirent-tests: Likewise.
23740         * modules/spawn-tests: Likewise.
23741         * modules/sys_file-tests: Likewise.
23742         * modules/sys_ioctl-tests: Likewise.
23743         * modules/sys_wait-tests: Likewise.
23744         * tests/test-ctype.c: Likewise.
23745         * tests/test-dirent.c: Likewise.
23746         * tests/test-spawn.c: Likewise.
23747         * tests/test-sys_file.c: Likewise.
23748         * tests/test-sys_ioctl.c: Likewise.
23749         * tests/test-sys_wait.c: Likewise.
23750         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
23751         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
23752         whether or not flock is in use.
23753
23754         tests: remove License section from module
23755         * modules/arpa_inet-tests: Remove unneeded section.
23756         * modules/byteswap-tests: Likewise.
23757         * modules/ceilf-tests: Likewise.
23758         * modules/ceill-tests: Likewise.
23759         * modules/crypto/des-tests: Likewise.
23760         * modules/crypto/gc-arcfour-tests: Likewise.
23761         * modules/crypto/gc-arctwo-tests: Likewise.
23762         * modules/crypto/gc-des-tests: Likewise.
23763         * modules/crypto/gc-hmac-md5-tests: Likewise.
23764         * modules/crypto/gc-hmac-sha1-tests: Likewise.
23765         * modules/crypto/gc-md2-tests: Likewise.
23766         * modules/crypto/gc-md4-tests: Likewise.
23767         * modules/crypto/gc-md5-tests: Likewise.
23768         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
23769         * modules/crypto/gc-rijndael-tests: Likewise.
23770         * modules/crypto/gc-sha1-tests: Likewise.
23771         * modules/crypto/gc-tests: Likewise.
23772         * modules/crypto/md2-tests: Likewise.
23773         * modules/crypto/md4-tests: Likewise.
23774         * modules/fcntl-h-tests: Likewise.
23775         * modules/floorf-tests: Likewise.
23776         * modules/floorl-tests: Likewise.
23777         * modules/frexp-nolibm-tests: Likewise.
23778         * modules/frexp-tests: Likewise.
23779         * modules/frexpl-nolibm-tests: Likewise.
23780         * modules/frexpl-tests: Likewise.
23781         * modules/getaddrinfo-tests: Likewise.
23782         * modules/inttypes-tests: Likewise.
23783         * modules/isfinite-tests: Likewise.
23784         * modules/isinf-tests: Likewise.
23785         * modules/ldexpl-tests: Likewise.
23786         * modules/locale-tests: Likewise.
23787         * modules/math-tests: Likewise.
23788         * modules/netdb-tests: Likewise.
23789         * modules/netinet_in-tests: Likewise.
23790         * modules/printf-frexp-tests: Likewise.
23791         * modules/printf-frexpl-tests: Likewise.
23792         * modules/priv-set-tests: Likewise.
23793         * modules/random_r-tests: Likewise.
23794         * modules/round-tests: Likewise.
23795         * modules/roundf-tests: Likewise.
23796         * modules/roundl-tests: Likewise.
23797         * modules/search-tests: Likewise.
23798         * modules/select-tests: Likewise.
23799         * modules/signal-tests: Likewise.
23800         * modules/stdbool-tests: Likewise.
23801         * modules/stddef-tests: Likewise.
23802         * modules/stdint-tests: Likewise.
23803         * modules/stdio-tests: Likewise.
23804         * modules/stdlib-tests: Likewise.
23805         * modules/string-tests: Likewise.
23806         * modules/strings-tests: Likewise.
23807         * modules/sys_select-tests: Likewise.
23808         * modules/sys_socket-tests: Likewise.
23809         * modules/sys_stat-tests: Likewise.
23810         * modules/sys_time-tests: Likewise.
23811         * modules/sys_utsname-tests: Likewise.
23812         * modules/sysexits-tests: Likewise.
23813         * modules/time-tests: Likewise.
23814         * modules/trunc-tests: Likewise.
23815         * modules/truncf-tests: Likewise.
23816         * modules/truncl-tests: Likewise.
23817         * modules/tsearch-tests: Likewise.
23818         * modules/unistd-tests: Likewise.
23819         * modules/wchar-tests: Likewise.
23820         * modules/wctype-tests: Likewise.
23821
23822         tests: fix license on several tests
23823         * tests/test-des.c: Update to GPLv3+.
23824         * tests/test-flock.c: Likewise.
23825         * tests/test-fsync.c: Likewise.
23826         * tests/test-futimens.h: Likewise.
23827         * tests/test-gc-arcfour.c: Likewise.
23828         * tests/test-gc-arctwo.c: Likewise.
23829         * tests/test-gc-des.c: Likewise.
23830         * tests/test-gc-hmac-md5.c: Likewise.
23831         * tests/test-gc-hmac-sha1.c: Likewise.
23832         * tests/test-gc-md2.c: Likewise.
23833         * tests/test-gc-md4.c: Likewise.
23834         * tests/test-gc-md5.c: Likewise.
23835         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23836         * tests/test-gc-rijndael.c: Likewise.
23837         * tests/test-gc-sha1.c: Likewise.
23838         * tests/test-gc.c: Likewise.
23839         * tests/test-getcwd.c: Likewise.
23840         * tests/test-link.c: Likewise.
23841         * tests/test-link.h: Likewise.
23842         * tests/test-lutimens.h: Likewise.
23843         * tests/test-md2.c: Likewise.
23844         * tests/test-md4.c: Likewise.
23845         * tests/test-mkdir.h: Likewise.
23846         * tests/test-rename.c: Likewise.
23847         * tests/test-rename.h: Likewise.
23848         * tests/test-safe-alloc.c: Likewise.
23849         * tests/test-utimens-common.h: Likewise.
23850         * tests/test-utimens.h: Likewise.
23851
23852         maint: sync license texts
23853         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
23854         * doc/gpl-3.0.texi: Revert copyright year update.
23855         * doc/lgpl-3.0.texi: Likewise.
23856
23857 2009-12-29  Jim Meyering  <meyering@redhat.com>
23858
23859         update nearly all FSF copyright year lists to include 2009
23860         The files named by the following are exempted:
23861             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
23862               test -f "$dst" && { echo "$dst"; continue; }
23863               test -d "$dst" || continue
23864               echo "$dst"/$(basename "$src")
23865             done > exempt
23866             git ls-files tests/unictype >> exempt
23867         In the remaining files, convert to all-interval notation if
23868         - there is already at least one year interval like 2000-2003
23869         - the file is maintained by me
23870         - the file is in lib/uni*/, where that style already prevails
23871         Otherwise, use update-copyright's default.
23872
23873 2009-12-29  Simon Josefsson  <simon@josefsson.org>
23874         and Eric Blake  <ebb9@byu.net>
23875
23876         tests: don't require debug system() to pass
23877         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
23878         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23879         * tests/test-unlink.h (test_unlink_func): Likewise.
23880         * tests/test-fstatat.c (main): ...into callers.
23881         * tests/test-lstat.c (main): Likewise.
23882         * tests/test-rmdir.c (main): Likewise.
23883         * tests/test-unlink.c (main): Likewise.
23884         * tests/test-unlinkat.c (main): Likewise.
23885         * tests/test-areadlink-with-size.c (main): Don't require a
23886         debug-only system call to pass, aiding cross-testing to mingw.
23887         * tests/test-areadlink.c (main): Likewise.
23888         * tests/test-areadlinkat-with-size.c (main): Likewise.
23889         * tests/test-areadlinkat.c (main): Likewise.
23890         * tests/test-canonicalize-lgpl.c (main): Likewise.
23891         * tests/test-canonicalize.c (main): Likewise.
23892         * tests/test-chown.c (main): Likewise.
23893         * tests/test-fchownat.c (main): Likewise.
23894         * tests/test-lchown.c (main): Likewise.
23895         * tests/test-fdutimensat.c (main): Likewise.
23896         * tests/test-futimens.c (main): Likewise.
23897         * tests/test-link.c (main): Likewise.
23898         * tests/test-linkat.c (main): Likewise.
23899         * tests/test-mkdir.c (main): Likewise.
23900         * tests/test-mkdirat.c (main): Likewise.
23901         * tests/test-mkfifo.c (main): Likewise.
23902         * tests/test-mkfifoat.c (main): Likewise.
23903         * tests/test-mknod.c (main): Likewise.
23904         * tests/test-readlink.c (main): Likewise.
23905         * tests/test-remove.c (main): Likewise.
23906         * tests/test-rename.c (main): Likewise.
23907         * tests/test-renameat.c (main): Likewise.
23908         * tests/test-symlink.c (main): Likewise.
23909         * tests/test-symlinkat.c (main): Likewise.
23910         * tests/test-utimens.c (main): Likewise.
23911         * tests/test-utimensat.c (main): Likewise.
23912
23913 2009-12-29  Simon Josefsson  <simon@josefsson.org>
23914
23915         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
23916         on $(UNUSED_PARAMETER_H) to avoid build failure.
23917
23918 2009-12-28  Jim Meyering  <meyering@redhat.com>
23919
23920         update-copyright: you may specify a max. line length other than 72
23921         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23922
23923         maint: use consistent FSF copyright line syntax
23924         * lib/posixtm.c: Add missing comma in FSF copyright line.
23925         * lib/posixtm.h: Likewise.
23926         * lib/getugroups.c: Add missing ", Inc.".
23927
23928         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
23929         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
23930         FSF copyright line.  Remove trailing blanks.
23931
23932 2009-12-28  Eric Blake  <ebb9@byu.net>
23933
23934         test-dup2: reduce dependencies
23935         * modules/cloexec (Configure.ac): Set witness.
23936         * modules/dup2-tests (Depends-on): Drop cloexec.
23937         * tests/test-dup2.c (main): Skip portion of test if cloexec module
23938         not present.
23939         Suggested by Bruno Haible.
23940
23941 2009-12-26  Bruno Haible  <bruno@clisp.org>
23942
23943         Remove an unneeded dependency.
23944         * modules/fseterr (Depends-on): Remove dup2.
23945
23946 2009-12-26  Eric Blake  <ebb9@byu.net>
23947
23948         tests: use macros.h in more places
23949         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
23950         (ASSERT_STREAM): Provide default of stderr.
23951         * tests/test-dirent-safer.c: Include macros.h, using alternate
23952         stream for assertions.
23953         * tests/test-dup-safer.c: Likewise.
23954         * tests/test-freopen-safer.c: Likewise.
23955         * tests/test-getopt.c: Likewise.
23956         * tests/test-openat-safer.c: Likewise.
23957         * tests/test-pipe.c: Likewise.
23958         * tests/test-popen-safer.c: Likewise.
23959         * modules/dirent-safer-tests (Files): Include macros.h.
23960         * modules/unistd-safer-tests (Files): Likewise.
23961         * modules/freopen-safer-tests (Files): Likewise.
23962         * modules/getopt-posix-tests (Files): Likewise.
23963         * modules/openat-safer-tests (Files): Likewise.
23964         * modules/pipe-tests (Files): Likewise.
23965
23966 2009-12-26  Bruno Haible  <bruno@clisp.org>
23967
23968         javacomp: Portability fix.
23969         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
23970         that it also works on Solaris.
23971
23972 2009-12-26  Bruno Haible  <bruno@clisp.org>
23973
23974         localename: Fix storage allocation of gl_locale_name_thread's result.
23975         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
23976         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
23977         all platforms that have 'uselocale'.
23978         (gl_locale_name_thread_unsafe): New function, extracted from
23979         gl_locale_name_thread.
23980         (gl_locale_name_thread): Call struniq on all platforms that have
23981         'uselocale'.
23982         * tests/test-localename.c (test_locale_name_thread): Check that the
23983         resulting strings are permanently allocated.
23984         * modules/localename-tests (Depends-on): Add strdup.
23985
23986 2009-12-26  Bruno Haible  <bruno@clisp.org>
23987
23988         * tests/test-localename.c (categories): Fill in the strings.
23989
23990 2009-12-26  Jim Meyering  <meyering@redhat.com>
23991
23992         isdir: complete the removal of m4/isdir.m4
23993         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
23994
23995         isdir: clean up, since at least grep still uses it
23996         * lib/isdir.c: Include "isdir.h".
23997         (S_ISDIR): Remove now-unneeded definition.
23998         * modules/isdir (Files): Add lib/isdir.h.
23999         * lib/isdir.h: New file, with declaration.
24000         * m4/isdir.m4: Remove file -- unneeded.
24001
24002 2009-12-25  Bruno Haible  <bruno@clisp.org>
24003
24004         selinux-h: Make generated .h files standalone.
24005         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
24006         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
24007         * lib/se-selinux.in.h: Likewise.
24008         * modules/selinux-h (Depends-on): Add unused-parameter.
24009         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
24010         selinux/selinux.h and selinux/context.h.
24011         Suggested by Eric Blake.
24012
24013 2009-12-25  Bruno Haible  <bruno@clisp.org>
24014
24015         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
24016         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
24017         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
24018         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24019         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24020
24021 2009-12-24  Bruno Haible  <bruno@clisp.org>
24022
24023         openat: Fix warning.
24024         * lib/openat-proc.c: Include <unistd.h>.
24025
24026 2009-12-24  Bruno Haible  <bruno@clisp.org>
24027
24028         New module 'unused-parameter'.
24029         * build-aux/unused-parameter.h: New file, extracted from earlier
24030         gnulib-common.m4.
24031         * modules/unused-parameter: New file.
24032         * lib/unistr.h: Include unused-parameter.h.
24033         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24034         _GL_UNUSED.
24035         * modules/unistr/base (Depends-on): Add unused-parameter.
24036
24037 2009-12-24  Bruno Haible  <bruno@clisp.org>
24038
24039         Add missing dependencies to 'extensions' module.
24040         * m4/extensions.m4: Add comment.
24041         * modules/accept4 (Depends-on): Add extensions.
24042         * modules/dup3 (Depends-on): Likewise.
24043         * modules/fcntl (Depends-on): Likewise.
24044         * modules/futimens (Depends-on): Likewise.
24045         * modules/mknod (Depends-on): Likewise.
24046         * modules/pipe2 (Depends-on): Likewise.
24047         * modules/stat-time (Depends-on): Likewise.
24048         * modules/strcasestr-simple (Depends-on): Likewise.
24049         * modules/strsignal (Depends-on): Likewise.
24050         * modules/utimensat (Depends-on): Likewise.
24051         * modules/localcharset (Depends-on): Likewise. Needed because of
24052         gl_FCNTL_O_FLAGS.
24053         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24054         AC_TYPE_MBSTATE_T.
24055         * modules/wcsnrtombs (Depends-on): Likewise.
24056         * modules/wcsrtombs (Depends-on): Likewise.
24057
24058 2009-12-24  Bruno Haible  <bruno@clisp.org>
24059
24060         binary-io: Avoid gcc warning due to SET_BINARY.
24061         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24062         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24063
24064 2009-12-24  Bruno Haible  <bruno@clisp.org>
24065
24066         Avoid future namespace pollution on glibc systems.
24067         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24068         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24069         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24070         glibc systems.
24071
24072 2009-12-24  Bruno Haible  <bruno@clisp.org>
24073
24074         Refactor common macros used in tests.
24075         * tests/macros.h: New file.
24076         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24077         and/or <stdlib.h>, if appropriate.
24078         (ASSERT, SIZEOF): Remove macros.
24079         * tests/test-areadlink-with-size.c: Likewise.
24080         * tests/test-areadlinkat.c: Likewise.
24081         * tests/test-areadlinkat-with-size.c: Likewise.
24082         * tests/test-argmatch.c: Likewise.
24083         * tests/test-argv-iter.c: Likewise.
24084         * tests/test-array-mergesort.c: Likewise.
24085         * tests/test-array_list.c: Likewise.
24086         * tests/test-array_oset.c: Likewise.
24087         * tests/test-avltree_list.c: Likewise.
24088         * tests/test-avltree_oset.c: Likewise.
24089         * tests/test-avltreehash_list.c: Likewise.
24090         * tests/test-base64.c: Likewise.
24091         * tests/test-binary-io.c: Likewise.
24092         * tests/test-bitrotate.c: Likewise.
24093         * tests/test-btowc.c: Likewise.
24094         * tests/test-byteswap.c: Likewise.
24095         * tests/test-c-ctype.c: Likewise.
24096         * tests/test-c-stack.c: Likewise.
24097         * tests/test-c-strcasecmp.c: Likewise.
24098         * tests/test-c-strcasestr.c: Likewise.
24099         * tests/test-c-strncasecmp.c: Likewise.
24100         * tests/test-c-strstr.c: Likewise.
24101         * tests/test-canonicalize-lgpl.c: Likewise.
24102         * tests/test-canonicalize.c: Likewise.
24103         * tests/test-carray_list.c: Likewise.
24104         * tests/test-ceilf1.c: Likewise.
24105         * tests/test-ceilf2.c: Likewise.
24106         * tests/test-ceill.c: Likewise.
24107         * tests/test-chown.c: Likewise.
24108         * tests/test-cloexec.c: Likewise.
24109         * tests/test-copy-acl.c: Likewise.
24110         * tests/test-copy-file.c: Likewise.
24111         * tests/test-count-one-bits.c: Likewise.
24112         * tests/test-dprintf-posix.c: Likewise.
24113         * tests/test-dup2.c: Likewise.
24114         * tests/test-dup3.c: Likewise.
24115         * tests/test-duplocale.c: Likewise.
24116         * tests/test-fbufmode.c: Likewise.
24117         * tests/test-fchdir.c: Likewise.
24118         * tests/test-fchownat.c: Likewise.
24119         * tests/test-fcntl-safer.c: Likewise.
24120         * tests/test-fcntl.c: Likewise.
24121         * tests/test-fdopendir.c: Likewise.
24122         * tests/test-fdutimensat.c: Likewise.
24123         * tests/test-fflush2.c: Likewise.
24124         * tests/test-file-has-acl.c: Likewise.
24125         * tests/test-filevercmp.c: Likewise.
24126         * tests/test-flock.c: Likewise.
24127         * tests/test-floorf1.c: Likewise.
24128         * tests/test-floorf2.c: Likewise.
24129         * tests/test-floorl.c: Likewise.
24130         * tests/test-fnmatch.c: Likewise.
24131         * tests/test-fopen.h: Likewise.
24132         * tests/test-fpending.c: Likewise.
24133         * tests/test-fprintf-posix.c: Likewise.
24134         * tests/test-fpurge.c: Likewise.
24135         * tests/test-freadable.c: Likewise.
24136         * tests/test-freadahead.c: Likewise.
24137         * tests/test-freading.c: Likewise.
24138         * tests/test-freadptr.c: Likewise.
24139         * tests/test-freadptr2.c: Likewise.
24140         * tests/test-freadseek.c: Likewise.
24141         * tests/test-freopen.c: Likewise.
24142         * tests/test-frexp.c: Likewise.
24143         * tests/test-frexpl.c: Likewise.
24144         * tests/test-fseek.c: Likewise.
24145         * tests/test-fseeko.c: Likewise.
24146         * tests/test-fstatat.c: Likewise.
24147         * tests/test-fstrcmp.c: Likewise.
24148         * tests/test-fsync.c: Likewise.
24149         * tests/test-ftell.c: Likewise.
24150         * tests/test-ftello.c: Likewise.
24151         * tests/test-func.c: Likewise.
24152         * tests/test-futimens.c: Likewise.
24153         * tests/test-fwritable.c: Likewise.
24154         * tests/test-fwriting.c: Likewise.
24155         * tests/test-getcwd.c: Likewise.
24156         * tests/test-getdate.c: Likewise.
24157         * tests/test-getdelim.c: Likewise.
24158         * tests/test-getdtablesize.c: Likewise.
24159         * tests/test-getgroups.c: Likewise.
24160         * tests/test-getline.c: Likewise.
24161         * tests/test-getndelim2.c: Likewise.
24162         * tests/test-glob.c: Likewise.
24163         * tests/test-hash.c: Likewise.
24164         * tests/test-i-ring.c: Likewise.
24165         * tests/test-iconv-utf.c: Likewise.
24166         * tests/test-iconv.c: Likewise.
24167         * tests/test-idpriv-drop.c: Likewise.
24168         * tests/test-idpriv-droptemp.c: Likewise.
24169         * tests/test-inet_ntop.c: Likewise.
24170         * tests/test-inet_pton.c: Likewise.
24171         * tests/test-isblank.c: Likewise.
24172         * tests/test-isfinite.c: Likewise.
24173         * tests/test-isinf.c: Likewise.
24174         * tests/test-isnan.c: Likewise.
24175         * tests/test-isnand.h: Likewise.
24176         * tests/test-isnanf.h: Likewise.
24177         * tests/test-isnanl.h: Likewise.
24178         * tests/test-lchown.c: Likewise.
24179         * tests/test-ldexpl.c: Likewise.
24180         * tests/test-link.c: Likewise.
24181         * tests/test-linkat.c: Likewise.
24182         * tests/test-linked_list.c: Likewise.
24183         * tests/test-linkedhash_list.c: Likewise.
24184         * tests/test-localename.c: Likewise.
24185         * tests/test-lseek.c: Likewise.
24186         * tests/test-lstat.c: Likewise.
24187         * tests/test-mbmemcasecmp.c: Likewise.
24188         * tests/test-mbmemcasecoll.c: Likewise.
24189         * tests/test-mbrtowc.c: Likewise.
24190         * tests/test-mbscasecmp.c: Likewise.
24191         * tests/test-mbscasestr1.c: Likewise.
24192         * tests/test-mbscasestr2.c: Likewise.
24193         * tests/test-mbscasestr3.c: Likewise.
24194         * tests/test-mbscasestr4.c: Likewise.
24195         * tests/test-mbschr.c: Likewise.
24196         * tests/test-mbscspn.c: Likewise.
24197         * tests/test-mbsinit.c: Likewise.
24198         * tests/test-mbsncasecmp.c: Likewise.
24199         * tests/test-mbsnrtowcs.c: Likewise.
24200         * tests/test-mbspbrk.c: Likewise.
24201         * tests/test-mbspcasecmp.c: Likewise.
24202         * tests/test-mbsrchr.c: Likewise.
24203         * tests/test-mbsrtowcs.c: Likewise.
24204         * tests/test-mbsspn.c: Likewise.
24205         * tests/test-mbsstr1.c: Likewise.
24206         * tests/test-mbsstr2.c: Likewise.
24207         * tests/test-mbsstr3.c: Likewise.
24208         * tests/test-memchr.c: Likewise.
24209         * tests/test-memchr2.c: Likewise.
24210         * tests/test-memcmp.c: Likewise.
24211         * tests/test-memmem.c: Likewise.
24212         * tests/test-memrchr.c: Likewise.
24213         * tests/test-mkdir.c: Likewise.
24214         * tests/test-mkdirat.c: Likewise.
24215         * tests/test-mkfifo.c: Likewise.
24216         * tests/test-mkfifoat.c: Likewise.
24217         * tests/test-mknod.c: Likewise.
24218         * tests/test-nanosleep.c: Likewise.
24219         * tests/test-nl_langinfo.c: Likewise.
24220         * tests/test-obstack-printf.c: Likewise.
24221         * tests/test-open.c: Likewise.
24222         * tests/test-openat.c: Likewise.
24223         * tests/test-pipe-filter-gi1.c: Likewise.
24224         * tests/test-pipe-filter-gi2-main.c: Likewise.
24225         * tests/test-pipe-filter-ii1.c: Likewise.
24226         * tests/test-pipe-filter-ii2-main.c: Likewise.
24227         * tests/test-pipe2.c: Likewise.
24228         * tests/test-popen.h: Likewise.
24229         * tests/test-posixtm.c: Likewise.
24230         * tests/test-pread.c: Likewise.
24231         * tests/test-printf-frexp.c: Likewise.
24232         * tests/test-printf-frexpl.c: Likewise.
24233         * tests/test-printf-posix.c: Likewise.
24234         * tests/test-priv-set.c: Likewise.
24235         * tests/test-quotearg.c: Likewise.
24236         * tests/test-random_r.c: Likewise.
24237         * tests/test-rawmemchr.c: Likewise.
24238         * tests/test-rbtree_list.c: Likewise.
24239         * tests/test-rbtree_oset.c: Likewise.
24240         * tests/test-rbtreehash_list.c: Likewise.
24241         * tests/test-readlink.c: Likewise.
24242         * tests/test-remove.c: Likewise.
24243         * tests/test-rename.c: Likewise.
24244         * tests/test-renameat.c: Likewise.
24245         * tests/test-rmdir.c: Likewise.
24246         * tests/test-round1.c: Likewise.
24247         * tests/test-roundf1.c: Likewise.
24248         * tests/test-roundl.c: Likewise.
24249         * tests/test-safe-alloc.c: Likewise.
24250         * tests/test-sameacls.c: Likewise.
24251         * tests/test-set-mode-acl.c: Likewise.
24252         * tests/test-setenv.c: Likewise.
24253         * tests/test-sigaction.c: Likewise.
24254         * tests/test-signbit.c: Likewise.
24255         * tests/test-sleep.c: Likewise.
24256         * tests/test-snprintf-posix.c: Likewise.
24257         * tests/test-snprintf.c: Likewise.
24258         * tests/test-sprintf-posix.c: Likewise.
24259         * tests/test-stat-time.c: Likewise.
24260         * tests/test-stat.c: Likewise.
24261         * tests/test-strcasestr.c: Likewise.
24262         * tests/test-strchrnul.c: Likewise.
24263         * tests/test-strerror.c: Likewise.
24264         * tests/test-striconv.c: Likewise.
24265         * tests/test-striconveh.c: Likewise.
24266         * tests/test-striconveha.c: Likewise.
24267         * tests/test-strsignal.c: Likewise.
24268         * tests/test-strstr.c: Likewise.
24269         * tests/test-strtod.c: Likewise.
24270         * tests/test-strverscmp.c: Likewise.
24271         * tests/test-symlink.c: Likewise.
24272         * tests/test-symlinkat.c: Likewise.
24273         * tests/test-trunc1.c: Likewise.
24274         * tests/test-trunc2.c: Likewise.
24275         * tests/test-truncf1.c: Likewise.
24276         * tests/test-truncf2.c: Likewise.
24277         * tests/test-truncl.c: Likewise.
24278         * tests/test-uname.c: Likewise.
24279         * tests/test-unlink.c: Likewise.
24280         * tests/test-unlinkat.c: Likewise.
24281         * tests/test-unsetenv.c: Likewise.
24282         * tests/test-usleep.c: Likewise.
24283         * tests/test-utimens.c: Likewise.
24284         * tests/test-utimensat.c: Likewise.
24285         * tests/test-vasnprintf-posix.c: Likewise.
24286         * tests/test-vasnprintf-posix2.c: Likewise.
24287         * tests/test-vasnprintf.c: Likewise.
24288         * tests/test-vasprintf-posix.c: Likewise.
24289         * tests/test-vasprintf.c: Likewise.
24290         * tests/test-vdprintf-posix.c: Likewise.
24291         * tests/test-vfprintf-posix.c: Likewise.
24292         * tests/test-vprintf-posix.c: Likewise.
24293         * tests/test-vsnprintf-posix.c: Likewise.
24294         * tests/test-vsnprintf.c: Likewise.
24295         * tests/test-vsprintf-posix.c: Likewise.
24296         * tests/test-wcrtomb.c: Likewise.
24297         * tests/test-wcsnrtombs.c: Likewise.
24298         * tests/test-wcsrtombs.c: Likewise.
24299         * tests/test-wctype.c: Likewise.
24300         * tests/test-wcwidth.c: Likewise.
24301         * tests/test-xfprintf-posix.c: Likewise.
24302         * tests/test-xmemdup0.c: Likewise.
24303         * tests/test-xprintf-posix.c: Likewise.
24304         * tests/test-xvasprintf.c: Likewise.
24305         * tests/unicase/test-locale-language.c: Likewise.
24306         * tests/unicase/test-mapping-part1.h: Likewise.
24307         * tests/unicase/test-predicate-part1.h: Likewise.
24308         * tests/unicase/test-u8-casecmp.c: Likewise.
24309         * tests/unicase/test-u8-casecoll.c: Likewise.
24310         * tests/unicase/test-u8-casefold.c: Likewise.
24311         * tests/unicase/test-u8-is-cased.c: Likewise.
24312         * tests/unicase/test-u8-is-casefolded.c: Likewise.
24313         * tests/unicase/test-u8-is-lowercase.c: Likewise.
24314         * tests/unicase/test-u8-is-titlecase.c: Likewise.
24315         * tests/unicase/test-u8-is-uppercase.c: Likewise.
24316         * tests/unicase/test-u8-tolower.c: Likewise.
24317         * tests/unicase/test-u8-totitle.c: Likewise.
24318         * tests/unicase/test-u8-toupper.c: Likewise.
24319         * tests/unicase/test-u16-casecmp.c: Likewise.
24320         * tests/unicase/test-u16-casecoll.c: Likewise.
24321         * tests/unicase/test-u16-casefold.c: Likewise.
24322         * tests/unicase/test-u16-is-cased.c: Likewise.
24323         * tests/unicase/test-u16-is-casefolded.c: Likewise.
24324         * tests/unicase/test-u16-is-lowercase.c: Likewise.
24325         * tests/unicase/test-u16-is-titlecase.c: Likewise.
24326         * tests/unicase/test-u16-is-uppercase.c: Likewise.
24327         * tests/unicase/test-u16-tolower.c: Likewise.
24328         * tests/unicase/test-u16-totitle.c: Likewise.
24329         * tests/unicase/test-u16-toupper.c: Likewise.
24330         * tests/unicase/test-u32-casecmp.c: Likewise.
24331         * tests/unicase/test-u32-casecoll.c: Likewise.
24332         * tests/unicase/test-u32-casefold.c: Likewise.
24333         * tests/unicase/test-u32-is-cased.c: Likewise.
24334         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24335         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24336         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24337         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24338         * tests/unicase/test-u32-tolower.c: Likewise.
24339         * tests/unicase/test-u32-totitle.c: Likewise.
24340         * tests/unicase/test-u32-toupper.c: Likewise.
24341         * tests/unicase/test-ulc-casecmp.c: Likewise.
24342         * tests/unicase/test-ulc-casecoll.c: Likewise.
24343         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24344         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24345         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24346         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24347         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24348         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24349         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24350         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24351         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24352         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24353         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24354         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24355         * tests/unictype/test-bidi_byname.c: Likewise.
24356         * tests/unictype/test-bidi_name.c: Likewise.
24357         * tests/unictype/test-bidi_of.c: Likewise.
24358         * tests/unictype/test-bidi_test.c: Likewise.
24359         * tests/unictype/test-block_list.c: Likewise.
24360         * tests/unictype/test-block_of.c: Likewise.
24361         * tests/unictype/test-block_test.c: Likewise.
24362         * tests/unictype/test-categ_and.c: Likewise.
24363         * tests/unictype/test-categ_and_not.c: Likewise.
24364         * tests/unictype/test-categ_byname.c: Likewise.
24365         * tests/unictype/test-categ_name.c: Likewise.
24366         * tests/unictype/test-categ_none.c: Likewise.
24367         * tests/unictype/test-categ_of.c: Likewise.
24368         * tests/unictype/test-categ_or.c: Likewise.
24369         * tests/unictype/test-categ_test_withtable.c: Likewise.
24370         * tests/unictype/test-combining.c: Likewise.
24371         * tests/unictype/test-decdigit.c: Likewise.
24372         * tests/unictype/test-digit.c: Likewise.
24373         * tests/unictype/test-mirror.c: Likewise.
24374         * tests/unictype/test-numeric.c: Likewise.
24375         * tests/unictype/test-pr_byname.c: Likewise.
24376         * tests/unictype/test-pr_test.c: Likewise.
24377         * tests/unictype/test-predicate-part1.h: Likewise.
24378         * tests/unictype/test-scripts.c: Likewise.
24379         * tests/unictype/test-sy_c_ident.c: Likewise.
24380         * tests/unictype/test-sy_java_ident.c: Likewise.
24381         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24382         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24383         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24384         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24385         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24386         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24387         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24388         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24389         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24390         * tests/uninorm/test-compat-decomposition.c: Likewise.
24391         * tests/uninorm/test-composition.c: Likewise.
24392         * tests/uninorm/test-decomposing-form.c: Likewise.
24393         * tests/uninorm/test-decomposition.c: Likewise.
24394         * tests/uninorm/test-u8-nfc.c: Likewise.
24395         * tests/uninorm/test-u8-nfd.c: Likewise.
24396         * tests/uninorm/test-u8-nfkc.c: Likewise.
24397         * tests/uninorm/test-u8-nfkd.c: Likewise.
24398         * tests/uninorm/test-u8-normcmp.c: Likewise.
24399         * tests/uninorm/test-u8-normcoll.c: Likewise.
24400         * tests/uninorm/test-u16-nfc.c: Likewise.
24401         * tests/uninorm/test-u16-nfd.c: Likewise.
24402         * tests/uninorm/test-u16-nfkc.c: Likewise.
24403         * tests/uninorm/test-u16-nfkd.c: Likewise.
24404         * tests/uninorm/test-u16-normcmp.c: Likewise.
24405         * tests/uninorm/test-u16-normcoll.c: Likewise.
24406         * tests/uninorm/test-u32-nfc.c: Likewise.
24407         * tests/uninorm/test-u32-nfd.c: Likewise.
24408         * tests/uninorm/test-u32-nfkc.c: Likewise.
24409         * tests/uninorm/test-u32-nfkd.c: Likewise.
24410         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24411         * tests/uninorm/test-u32-normcmp.c: Likewise.
24412         * tests/uninorm/test-u32-normcoll.c: Likewise.
24413         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
24414         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24415         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24416         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24417         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24418         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24419         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24420         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24421         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24422         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24423         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24424         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24425         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24426         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24427         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24428         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24429         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24430         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24431         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24432         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24433         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24434         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24435         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24436         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24437         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24438         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24439         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24440         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24441         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24442         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
24443         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
24444         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
24445         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
24446         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24447         * tests/uniwidth/test-u8-width.c: Likewise.
24448         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24449         * tests/uniwidth/test-u16-width.c: Likewise.
24450         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24451         * tests/uniwidth/test-u32-width.c: Likewise.
24452         * tests/uniwidth/test-uc_width.c: Likewise.
24453         * tests/uniwidth/test-uc_width2.c: Likewise.
24454         * modules/acl-tests (Files): Add tests/macros.h.
24455         * modules/areadlink-tests (Files): Likewise.
24456         * modules/areadlink-with-size-tests (Files): Likewise.
24457         * modules/areadlinkat-tests (Files): Likewise.
24458         * modules/areadlinkat-with-size-tests (Files): Likewise.
24459         * modules/argmatch-tests (Files): Likewise.
24460         * modules/argv-iter-tests (Files): Likewise.
24461         * modules/array-list-tests (Files): Likewise.
24462         * modules/array-mergesort-tests (Files): Likewise.
24463         * modules/array-oset-tests (Files): Likewise.
24464         * modules/avltree-list-tests (Files): Likewise.
24465         * modules/avltree-oset-tests (Files): Likewise.
24466         * modules/avltreehash-list-tests (Files): Likewise.
24467         * modules/base64-tests (Files): Likewise.
24468         * modules/binary-io-tests (Files): Likewise.
24469         * modules/bitrotate-tests (Files): Likewise.
24470         * modules/btowc-tests (Files): Likewise.
24471         * modules/byteswap-tests (Files): Likewise.
24472         * modules/c-ctype-tests (Files): Likewise.
24473         * modules/c-stack-tests (Files): Likewise.
24474         * modules/c-strcase-tests (Files): Likewise.
24475         * modules/c-strcasestr-tests (Files): Likewise.
24476         * modules/c-strstr-tests (Files): Likewise.
24477         * modules/canonicalize-lgpl-tests (Files): Likewise.
24478         * modules/canonicalize-tests (Files): Likewise.
24479         * modules/carray-list-tests (Files): Likewise.
24480         * modules/ceilf-tests (Files): Likewise.
24481         * modules/ceill-tests (Files): Likewise.
24482         * modules/chown-tests (Files): Likewise.
24483         * modules/cloexec-tests (Files): Likewise.
24484         * modules/copy-file-tests (Files): Likewise.
24485         * modules/count-one-bits-tests (Files): Likewise.
24486         * modules/dprintf-posix-tests (Files): Likewise.
24487         * modules/dup2-tests (Files): Likewise.
24488         * modules/dup3-tests (Files): Likewise.
24489         * modules/duplocale-tests (Files): Likewise.
24490         * modules/fbufmode-tests (Files): Likewise.
24491         * modules/fchdir-tests (Files): Likewise.
24492         * modules/fcntl-safer-tests (Files): Likewise.
24493         * modules/fcntl-tests (Files): Likewise.
24494         * modules/fdopendir-tests (Files): Likewise.
24495         * modules/fdutimensat-tests (Files): Likewise.
24496         * modules/fflush-tests (Files): Likewise.
24497         * modules/filevercmp-tests (Files): Likewise.
24498         * modules/flock-tests (Files): Likewise.
24499         * modules/floorf-tests (Files): Likewise.
24500         * modules/floorl-tests (Files): Likewise.
24501         * modules/fnmatch-tests (Files): Likewise.
24502         * modules/fopen-safer-tests (Files): Likewise.
24503         * modules/fopen-tests (Files): Likewise.
24504         * modules/fpending-tests (Files): Likewise.
24505         * modules/fprintf-posix-tests (Files): Likewise.
24506         * modules/fpurge-tests (Files): Likewise.
24507         * modules/freadable-tests (Files): Likewise.
24508         * modules/freadahead-tests (Files): Likewise.
24509         * modules/freading-tests (Files): Likewise.
24510         * modules/freadptr-tests (Files): Likewise.
24511         * modules/freadseek-tests (Files): Likewise.
24512         * modules/freopen-tests (Files): Likewise.
24513         * modules/frexp-nolibm-tests (Files): Likewise.
24514         * modules/frexp-tests (Files): Likewise.
24515         * modules/frexpl-nolibm-tests (Files): Likewise.
24516         * modules/frexpl-tests (Files): Likewise.
24517         * modules/fseek-tests (Files): Likewise.
24518         * modules/fseeko-tests (Files): Likewise.
24519         * modules/fstrcmp-tests (Files): Likewise.
24520         * modules/fsync-tests (Files): Likewise.
24521         * modules/ftell-tests (Files): Likewise.
24522         * modules/ftello-tests (Files): Likewise.
24523         * modules/func-tests (Files): Likewise.
24524         * modules/futimens-tests (Files): Likewise.
24525         * modules/fwritable-tests (Files): Likewise.
24526         * modules/fwriting-tests (Files): Likewise.
24527         * modules/getcwd-tests (Files): Likewise.
24528         * modules/getdate-tests (Files): Likewise.
24529         * modules/getdelim-tests (Files): Likewise.
24530         * modules/getdtablesize-tests (Files): Likewise.
24531         * modules/getgroups-tests (Files): Likewise.
24532         * modules/getline-tests (Files): Likewise.
24533         * modules/getndelim2-tests (Files): Likewise.
24534         * modules/glob-tests (Files): Likewise.
24535         * modules/hash-tests (Files): Likewise.
24536         * modules/i-ring-tests (Files): Likewise.
24537         * modules/iconv-tests (Files): Likewise.
24538         * modules/iconv_open-utf-tests (Files): Likewise.
24539         * modules/idpriv-drop-tests (Files): Likewise.
24540         * modules/idpriv-droptemp-tests (Files): Likewise.
24541         * modules/inet_ntop-tests (Files): Likewise.
24542         * modules/inet_pton-tests (Files): Likewise.
24543         * modules/isblank-tests (Files): Likewise.
24544         * modules/isfinite-tests (Files): Likewise.
24545         * modules/isinf-tests (Files): Likewise.
24546         * modules/isnan-tests (Files): Likewise.
24547         * modules/isnand-nolibm-tests (Files): Likewise.
24548         * modules/isnand-tests (Files): Likewise.
24549         * modules/isnanf-nolibm-tests (Files): Likewise.
24550         * modules/isnanf-tests (Files): Likewise.
24551         * modules/isnanl-nolibm-tests (Files): Likewise.
24552         * modules/isnanl-tests (Files): Likewise.
24553         * modules/lchown-tests (Files): Likewise.
24554         * modules/ldexpl-tests (Files): Likewise.
24555         * modules/link-tests (Files): Likewise.
24556         * modules/linkat-tests (Files): Likewise.
24557         * modules/linked-list-tests (Files): Likewise.
24558         * modules/linkedhash-list-tests (Files): Likewise.
24559         * modules/localename-tests (Files): Likewise.
24560         * modules/lseek-tests (Files): Likewise.
24561         * modules/lstat-tests (Files): Likewise.
24562         * modules/mbmemcasecmp-tests (Files): Likewise.
24563         * modules/mbmemcasecoll-tests (Files): Likewise.
24564         * modules/mbrtowc-tests (Files): Likewise.
24565         * modules/mbscasecmp-tests (Files): Likewise.
24566         * modules/mbscasestr-tests (Files): Likewise.
24567         * modules/mbschr-tests (Files): Likewise.
24568         * modules/mbscspn-tests (Files): Likewise.
24569         * modules/mbsinit-tests (Files): Likewise.
24570         * modules/mbsncasecmp-tests (Files): Likewise.
24571         * modules/mbsnrtowcs-tests (Files): Likewise.
24572         * modules/mbspbrk-tests (Files): Likewise.
24573         * modules/mbspcasecmp-tests (Files): Likewise.
24574         * modules/mbsrchr-tests (Files): Likewise.
24575         * modules/mbsrtowcs-tests (Files): Likewise.
24576         * modules/mbsspn-tests (Files): Likewise.
24577         * modules/mbsstr-tests (Files): Likewise.
24578         * modules/memchr-tests (Files): Likewise.
24579         * modules/memchr2-tests (Files): Likewise.
24580         * modules/memcmp-tests (Files): Likewise.
24581         * modules/memmem-tests (Files): Likewise.
24582         * modules/memrchr-tests (Files): Likewise.
24583         * modules/mkdir-tests (Files): Likewise.
24584         * modules/mkfifo-tests (Files): Likewise.
24585         * modules/mkfifoat-tests (Files): Likewise.
24586         * modules/mknod-tests (Files): Likewise.
24587         * modules/nanosleep-tests (Files): Likewise.
24588         * modules/nl_langinfo-tests (Files): Likewise.
24589         * modules/obstack-printf-tests (Files): Likewise.
24590         * modules/open-tests (Files): Likewise.
24591         * modules/openat-tests (Files): Likewise.
24592         * modules/pipe-filter-gi-tests (Files): Likewise.
24593         * modules/pipe-filter-ii-tests (Files): Likewise.
24594         * modules/pipe2-tests (Files): Likewise.
24595         * modules/popen-safer-tests (Files): Likewise.
24596         * modules/popen-tests (Files): Likewise.
24597         * modules/posixtm-tests (Files): Likewise.
24598         * modules/pread-tests (Files): Likewise.
24599         * modules/printf-frexp-tests (Files): Likewise.
24600         * modules/printf-frexpl-tests (Files): Likewise.
24601         * modules/printf-posix-tests (Files): Likewise.
24602         * modules/priv-set-tests (Files): Likewise.
24603         * modules/quotearg-tests (Files): Likewise.
24604         * modules/random_r-tests (Files): Likewise.
24605         * modules/rawmemchr-tests (Files): Likewise.
24606         * modules/rbtree-list-tests (Files): Likewise.
24607         * modules/rbtree-oset-tests (Files): Likewise.
24608         * modules/rbtreehash-list-tests (Files): Likewise.
24609         * modules/readlink-tests (Files): Likewise.
24610         * modules/remove-tests (Files): Likewise.
24611         * modules/rename-tests (Files): Likewise.
24612         * modules/renameat-tests (Files): Likewise.
24613         * modules/rmdir-tests (Files): Likewise.
24614         * modules/round-tests (Files): Likewise.
24615         * modules/roundf-tests (Files): Likewise.
24616         * modules/roundl-tests (Files): Likewise.
24617         * modules/safe-alloc-tests (Files): Likewise.
24618         * modules/setenv-tests (Files): Likewise.
24619         * modules/sigaction-tests (Files): Likewise.
24620         * modules/signbit-tests (Files): Likewise.
24621         * modules/sleep-tests (Files): Likewise.
24622         * modules/snprintf-posix-tests (Files): Likewise.
24623         * modules/snprintf-tests (Files): Likewise.
24624         * modules/sprintf-posix-tests (Files): Likewise.
24625         * modules/stat-tests (Files): Likewise.
24626         * modules/stat-time-tests (Files): Likewise.
24627         * modules/strcasestr-tests (Files): Likewise.
24628         * modules/strchrnul-tests (Files): Likewise.
24629         * modules/strerror-tests (Files): Likewise.
24630         * modules/striconv-tests (Files): Likewise.
24631         * modules/striconveh-tests (Files): Likewise.
24632         * modules/striconveha-tests (Files): Likewise.
24633         * modules/strsignal-tests (Files): Likewise.
24634         * modules/strstr-tests (Files): Likewise.
24635         * modules/strtod-tests (Files): Likewise.
24636         * modules/strverscmp-tests (Files): Likewise.
24637         * modules/symlink-tests (Files): Likewise.
24638         * modules/symlinkat-tests (Files): Likewise.
24639         * modules/trunc-tests (Files): Likewise.
24640         * modules/truncf-tests (Files): Likewise.
24641         * modules/truncl-tests (Files): Likewise.
24642         * modules/uname-tests (Files): Likewise.
24643         * modules/unicase/cased-tests (Files): Likewise.
24644         * modules/unicase/ignorable-tests (Files): Likewise.
24645         * modules/unicase/locale-language-tests (Files): Likewise.
24646         * modules/unicase/tolower-tests (Files): Likewise.
24647         * modules/unicase/totitle-tests (Files): Likewise.
24648         * modules/unicase/toupper-tests (Files): Likewise.
24649         * modules/unicase/u8-casecmp-tests (Files): Likewise.
24650         * modules/unicase/u8-casecoll-tests (Files): Likewise.
24651         * modules/unicase/u8-casefold-tests (Files): Likewise.
24652         * modules/unicase/u8-is-cased-tests (Files): Likewise.
24653         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
24654         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
24655         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
24656         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
24657         * modules/unicase/u8-tolower-tests (Files): Likewise.
24658         * modules/unicase/u8-totitle-tests (Files): Likewise.
24659         * modules/unicase/u8-toupper-tests (Files): Likewise.
24660         * modules/unicase/u16-casecmp-tests (Files): Likewise.
24661         * modules/unicase/u16-casecoll-tests (Files): Likewise.
24662         * modules/unicase/u16-casefold-tests (Files): Likewise.
24663         * modules/unicase/u16-is-cased-tests (Files): Likewise.
24664         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
24665         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
24666         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
24667         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
24668         * modules/unicase/u16-tolower-tests (Files): Likewise.
24669         * modules/unicase/u16-totitle-tests (Files): Likewise.
24670         * modules/unicase/u16-toupper-tests (Files): Likewise.
24671         * modules/unicase/u32-casecmp-tests (Files): Likewise.
24672         * modules/unicase/u32-casecoll-tests (Files): Likewise.
24673         * modules/unicase/u32-casefold-tests (Files): Likewise.
24674         * modules/unicase/u32-is-cased-tests (Files): Likewise.
24675         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
24676         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
24677         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
24678         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
24679         * modules/unicase/u32-tolower-tests (Files): Likewise.
24680         * modules/unicase/u32-totitle-tests (Files): Likewise.
24681         * modules/unicase/u32-toupper-tests (Files): Likewise.
24682         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
24683         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
24684         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
24685         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
24686         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
24687         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
24688         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
24689         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
24690         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
24691         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
24692         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
24693         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
24694         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
24695         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
24696         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
24697         * modules/unictype/bidicategory-name-tests (Files): Likewise.
24698         * modules/unictype/bidicategory-of-tests (Files): Likewise.
24699         * modules/unictype/bidicategory-test-tests (Files): Likewise.
24700         * modules/unictype/block-list-tests (Files): Likewise.
24701         * modules/unictype/block-of-tests (Files): Likewise.
24702         * modules/unictype/block-test-tests (Files): Likewise.
24703         * modules/unictype/category-C-tests (Files): Likewise.
24704         * modules/unictype/category-Cc-tests (Files): Likewise.
24705         * modules/unictype/category-Cf-tests (Files): Likewise.
24706         * modules/unictype/category-Cn-tests (Files): Likewise.
24707         * modules/unictype/category-Co-tests (Files): Likewise.
24708         * modules/unictype/category-Cs-tests (Files): Likewise.
24709         * modules/unictype/category-L-tests (Files): Likewise.
24710         * modules/unictype/category-Ll-tests (Files): Likewise.
24711         * modules/unictype/category-Lm-tests (Files): Likewise.
24712         * modules/unictype/category-Lo-tests (Files): Likewise.
24713         * modules/unictype/category-Lt-tests (Files): Likewise.
24714         * modules/unictype/category-Lu-tests (Files): Likewise.
24715         * modules/unictype/category-M-tests (Files): Likewise.
24716         * modules/unictype/category-Mc-tests (Files): Likewise.
24717         * modules/unictype/category-Me-tests (Files): Likewise.
24718         * modules/unictype/category-Mn-tests (Files): Likewise.
24719         * modules/unictype/category-N-tests (Files): Likewise.
24720         * modules/unictype/category-Nd-tests (Files): Likewise.
24721         * modules/unictype/category-Nl-tests (Files): Likewise.
24722         * modules/unictype/category-No-tests (Files): Likewise.
24723         * modules/unictype/category-P-tests (Files): Likewise.
24724         * modules/unictype/category-Pc-tests (Files): Likewise.
24725         * modules/unictype/category-Pd-tests (Files): Likewise.
24726         * modules/unictype/category-Pe-tests (Files): Likewise.
24727         * modules/unictype/category-Pf-tests (Files): Likewise.
24728         * modules/unictype/category-Pi-tests (Files): Likewise.
24729         * modules/unictype/category-Po-tests (Files): Likewise.
24730         * modules/unictype/category-Ps-tests (Files): Likewise.
24731         * modules/unictype/category-S-tests (Files): Likewise.
24732         * modules/unictype/category-Sc-tests (Files): Likewise.
24733         * modules/unictype/category-Sk-tests (Files): Likewise.
24734         * modules/unictype/category-Sm-tests (Files): Likewise.
24735         * modules/unictype/category-So-tests (Files): Likewise.
24736         * modules/unictype/category-Z-tests (Files): Likewise.
24737         * modules/unictype/category-Zl-tests (Files): Likewise.
24738         * modules/unictype/category-Zp-tests (Files): Likewise.
24739         * modules/unictype/category-Zs-tests (Files): Likewise.
24740         * modules/unictype/category-and-not-tests (Files): Likewise.
24741         * modules/unictype/category-and-tests (Files): Likewise.
24742         * modules/unictype/category-byname-tests (Files): Likewise.
24743         * modules/unictype/category-name-tests (Files): Likewise.
24744         * modules/unictype/category-none-tests (Files): Likewise.
24745         * modules/unictype/category-of-tests (Files): Likewise.
24746         * modules/unictype/category-or-tests (Files): Likewise.
24747         * modules/unictype/category-test-withtable-tests (Files): Likewise.
24748         * modules/unictype/combining-class-tests (Files): Likewise.
24749         * modules/unictype/ctype-alnum-tests (Files): Likewise.
24750         * modules/unictype/ctype-alpha-tests (Files): Likewise.
24751         * modules/unictype/ctype-blank-tests (Files): Likewise.
24752         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
24753         * modules/unictype/ctype-digit-tests (Files): Likewise.
24754         * modules/unictype/ctype-graph-tests (Files): Likewise.
24755         * modules/unictype/ctype-lower-tests (Files): Likewise.
24756         * modules/unictype/ctype-print-tests (Files): Likewise.
24757         * modules/unictype/ctype-punct-tests (Files): Likewise.
24758         * modules/unictype/ctype-space-tests (Files): Likewise.
24759         * modules/unictype/ctype-upper-tests (Files): Likewise.
24760         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
24761         * modules/unictype/decimal-digit-tests (Files): Likewise.
24762         * modules/unictype/digit-tests (Files): Likewise.
24763         * modules/unictype/mirror-tests (Files): Likewise.
24764         * modules/unictype/numeric-tests (Files): Likewise.
24765         * modules/unictype/property-alphabetic-tests (Files): Likewise.
24766         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
24767         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
24768         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
24769         Likewise.
24770         * modules/unictype/property-bidi-block-separator-tests (Files):
24771         Likewise.
24772         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
24773         Likewise.
24774         * modules/unictype/property-bidi-common-separator-tests (Files):
24775         Likewise.
24776         * modules/unictype/property-bidi-control-tests (Files): Likewise.
24777         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
24778         Likewise.
24779         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
24780         Likewise.
24781         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
24782         Likewise.
24783         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
24784         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
24785         Likewise.
24786         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
24787         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
24788         Likewise.
24789         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
24790         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
24791         * modules/unictype/property-bidi-segment-separator-tests (Files):
24792         Likewise.
24793         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
24794         * modules/unictype/property-byname-tests (Files): Likewise.
24795         * modules/unictype/property-combining-tests (Files): Likewise.
24796         * modules/unictype/property-composite-tests (Files): Likewise.
24797         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
24798         * modules/unictype/property-dash-tests (Files): Likewise.
24799         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
24800         * modules/unictype/property-default-ignorable-code-point-tests (Files):
24801         Likewise.
24802         * modules/unictype/property-deprecated-tests (Files): Likewise.
24803         * modules/unictype/property-diacritic-tests (Files): Likewise.
24804         * modules/unictype/property-extender-tests (Files): Likewise.
24805         * modules/unictype/property-format-control-tests (Files): Likewise.
24806         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
24807         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
24808         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
24809         * modules/unictype/property-hex-digit-tests (Files): Likewise.
24810         * modules/unictype/property-hyphen-tests (Files): Likewise.
24811         * modules/unictype/property-id-continue-tests (Files): Likewise.
24812         * modules/unictype/property-id-start-tests (Files): Likewise.
24813         * modules/unictype/property-ideographic-tests (Files): Likewise.
24814         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
24815         * modules/unictype/property-ids-trinary-operator-tests (Files):
24816         Likewise.
24817         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
24818         * modules/unictype/property-iso-control-tests (Files): Likewise.
24819         * modules/unictype/property-join-control-tests (Files): Likewise.
24820         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
24821         * modules/unictype/property-line-separator-tests (Files): Likewise.
24822         * modules/unictype/property-logical-order-exception-tests (Files):
24823         Likewise.
24824         * modules/unictype/property-lowercase-tests (Files): Likewise.
24825         * modules/unictype/property-math-tests (Files): Likewise.
24826         * modules/unictype/property-non-break-tests (Files): Likewise.
24827         * modules/unictype/property-not-a-character-tests (Files): Likewise.
24828         * modules/unictype/property-numeric-tests (Files): Likewise.
24829         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
24830         * modules/unictype/property-other-default-ignorable-code-point-tests
24831         (Files): Likewise.
24832         * modules/unictype/property-other-grapheme-extend-tests (Files):
24833         Likewise.
24834         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
24835         * modules/unictype/property-other-id-start-tests (Files): Likewise.
24836         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
24837         * modules/unictype/property-other-math-tests (Files): Likewise.
24838         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
24839         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
24840         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
24841         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
24842         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
24843         * modules/unictype/property-private-use-tests (Files): Likewise.
24844         * modules/unictype/property-punctuation-tests (Files): Likewise.
24845         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
24846         * modules/unictype/property-radical-tests (Files): Likewise.
24847         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
24848         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
24849         * modules/unictype/property-space-tests (Files): Likewise.
24850         * modules/unictype/property-terminal-punctuation-tests (Files):
24851         Likewise.
24852         * modules/unictype/property-test-tests (Files): Likewise.
24853         * modules/unictype/property-titlecase-tests (Files): Likewise.
24854         * modules/unictype/property-unassigned-code-value-tests (Files):
24855         Likewise.
24856         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
24857         * modules/unictype/property-uppercase-tests (Files): Likewise.
24858         * modules/unictype/property-variation-selector-tests (Files): Likewise.
24859         * modules/unictype/property-white-space-tests (Files): Likewise.
24860         * modules/unictype/property-xid-continue-tests (Files): Likewise.
24861         * modules/unictype/property-xid-start-tests (Files): Likewise.
24862         * modules/unictype/property-zero-width-tests (Files): Likewise.
24863         * modules/unictype/scripts-tests (Files): Likewise.
24864         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
24865         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
24866         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
24867         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
24868         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
24869         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
24870         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
24871         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
24872         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
24873         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
24874         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
24875         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
24876         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
24877         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
24878         * modules/uninorm/composition-tests (Files): Likewise.
24879         * modules/uninorm/decomposing-form-tests (Files): Likewise.
24880         * modules/uninorm/decomposition-tests (Files): Likewise.
24881         * modules/uninorm/filter-tests (Files): Likewise.
24882         * modules/uninorm/nfc-tests (Files): Likewise.
24883         * modules/uninorm/nfd-tests (Files): Likewise.
24884         * modules/uninorm/nfkc-tests (Files): Likewise.
24885         * modules/uninorm/nfkd-tests (Files): Likewise.
24886         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
24887         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
24888         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
24889         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
24890         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
24891         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
24892         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
24893         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24894         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
24895         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
24896         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
24897         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
24898         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24899         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
24900         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
24901         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
24902         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
24903         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24904         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
24905         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
24906         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
24907         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
24908         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24909         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
24910         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
24911         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
24912         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
24913         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
24914         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
24915         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
24916         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
24917         * modules/uniwidth/u8-width-tests (Files): Likewise.
24918         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
24919         * modules/uniwidth/u16-width-tests (Files): Likewise.
24920         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
24921         * modules/uniwidth/u32-width-tests (Files): Likewise.
24922         * modules/uniwidth/width-tests (Files): Likewise.
24923         * modules/unlink-tests (Files): Likewise.
24924         * modules/unsetenv-tests (Files): Likewise.
24925         * modules/usleep-tests (Files): Likewise.
24926         * modules/utimens-tests (Files): Likewise.
24927         * modules/utimensat-tests (Files): Likewise.
24928         * modules/vasnprintf-posix-tests (Files): Likewise.
24929         * modules/vasnprintf-tests (Files): Likewise.
24930         * modules/vasprintf-posix-tests (Files): Likewise.
24931         * modules/vasprintf-tests (Files): Likewise.
24932         * modules/vdprintf-posix-tests (Files): Likewise.
24933         * modules/vfprintf-posix-tests (Files): Likewise.
24934         * modules/vprintf-posix-tests (Files): Likewise.
24935         * modules/vsnprintf-posix-tests (Files): Likewise.
24936         * modules/vsnprintf-tests (Files): Likewise.
24937         * modules/vsprintf-posix-tests (Files): Likewise.
24938         * modules/wcrtomb-tests (Files): Likewise.
24939         * modules/wcsnrtombs-tests (Files): Likewise.
24940         * modules/wcsrtombs-tests (Files): Likewise.
24941         * modules/wctype-tests (Files): Likewise.
24942         * modules/wcwidth-tests (Files): Likewise.
24943         * modules/xmemdup0-tests (Files): Likewise.
24944         * modules/xprintf-posix-tests (Files): Likewise.
24945         * modules/xvasprintf-tests (Files): Likewise.
24946
24947 2009-12-24  Eric Blake  <ebb9@byu.net>
24948
24949         test-nanosleep: fix typo
24950         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
24951         patch.
24952         Reported by Bruno Haible.
24953
24954 2009-12-24  Bruno Haible  <bruno@clisp.org>
24955
24956         Reduce namespace pollution on glibc systems.
24957         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
24958         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
24959         systems.
24960         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
24961         <getopt.h> on glibc systems.
24962         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
24963         systems.
24964         * lib/fcntl.c: Include <unistd.h> here instead.
24965
24966 2009-12-24  Bruno Haible  <bruno@clisp.org>
24967
24968         * lib/stdlib.in.h (includes): Fix typo in today's commit.
24969
24970 2009-12-24  Eric Blake  <ebb9@byu.net>
24971
24972         tests: add signature checks
24973         * tests/signature.h (SIGNATURE_CHECK): New file.
24974         * modules/atexit-tests (Files): Use it.
24975         * modules/btowc-tests (Files): Likewise.
24976         * modules/canonicalize-lgpl-tests (Files): Likewise.
24977         * modules/ceilf-tests (Files): Likewise.
24978         * modules/ceill-tests (Files): Likewise.
24979         * modules/chown-tests (Files): Likewise.
24980         * modules/dprintf-posix-tests (Files): Likewise.
24981         * modules/dup2-tests (Files): Likewise.
24982         * modules/dup3-tests (Files): Likewise.
24983         * modules/duplocale-tests (Files): Likewise.
24984         * modules/fchdir-tests (Files): Likewise.
24985         * modules/fcntl-tests (Files): Likewise.
24986         * modules/fdopendir-tests (Files): Likewise.
24987         * modules/fflush-tests (Files): Likewise.
24988         * modules/flock-tests (Files): Likewise.
24989         * modules/floorf-tests (Files): Likewise.
24990         * modules/floorl-tests (Files): Likewise.
24991         * modules/fnmatch-tests (Files): Likewise.
24992         * modules/fopen-tests (Files): Likewise.
24993         * modules/fprintf-posix-tests (Files): Likewise.
24994         * modules/freopen-tests (Files): Likewise.
24995         * modules/frexp-nolibm-tests (Files): Likewise.
24996         * modules/frexp-tests (Files): Likewise.
24997         * modules/frexpl-nolibm-tests (Files): Likewise.
24998         * modules/frexpl-tests (Files): Likewise.
24999         * modules/fseek-tests (Files): Likewise.
25000         * modules/fseeko-tests (Files): Likewise.
25001         * modules/fsync-tests (Files): Likewise.
25002         * modules/ftell-tests (Files): Likewise.
25003         * modules/ftello-tests (Files): Likewise.
25004         * modules/futimens-tests (Files): Likewise.
25005         * modules/getaddrinfo-tests (Files): Likewise.
25006         * modules/getcwd-tests (Files): Likewise.
25007         * modules/getdelim-tests (Files): Likewise.
25008         * modules/getdtablesize-tests (Files): Likewise.
25009         * modules/getgroups-tests (Files): Likewise.
25010         * modules/gethostname-tests (Files): Likewise.
25011         * modules/getline-tests (Files): Likewise.
25012         * modules/getopt-posix-tests (Files): Likewise.
25013         * modules/gettimeofday-tests (Files): Likewise.
25014         * modules/glob-tests (Files): Likewise.
25015         * modules/iconv-tests (Files): Likewise.
25016         * modules/inet_ntop-tests (Files): Likewise.
25017         * modules/inet_pton-tests (Files): Likewise.
25018         * modules/isblank-tests (Files): Likewise.
25019         * modules/lchown-tests (Files): Likewise.
25020         * modules/ldexpl-tests (Files): Likewise.
25021         * modules/link-tests (Files): Likewise.
25022         * modules/linkat-tests (Files): Likewise.
25023         * modules/lseek-tests (Files): Likewise.
25024         * modules/lstat-tests (Files): Likewise.
25025         * modules/mbrtowc-tests (Files): Likewise.
25026         * modules/mbsinit-tests (Files): Likewise.
25027         * modules/mbsnrtowcs-tests (Files): Likewise.
25028         * modules/mbsrtowcs-tests (Files): Likewise.
25029         * modules/memchr-tests (Files): Likewise.
25030         * modules/memcmp-tests (Files): Likewise.
25031         * modules/memmem-tests (Files): Likewise.
25032         * modules/memrchr-tests (Files): Likewise.
25033         * modules/mkdir-tests (Files): Likewise.
25034         * modules/mkfifo-tests (Files): Likewise.
25035         * modules/mkfifoat-tests (Files): Likewise.
25036         * modules/mknod-tests (Files): Likewise.
25037         * modules/nanosleep-tests (Files): Likewise.
25038         * modules/nl_langinfo-tests (Files): Likewise.
25039         * modules/obstack-printf-tests (Files): Likewise.
25040         * modules/open-tests (Files): Likewise.
25041         * modules/openat-tests (Files): Likewise.
25042         * modules/perror-tests (Files): Likewise.
25043         * modules/pipe2-tests (Files): Likewise.
25044         * modules/poll-tests (Files): Likewise.
25045         * modules/popen-tests (Files): Likewise.
25046         * modules/posix_spawn-tests (Files): Likewise.
25047         * modules/posix_spawnp-tests (Files): Likewise.
25048         * modules/pread-tests (Files): Likewise.
25049         * modules/printf-posix-tests (Files): Likewise.
25050         * modules/pty-tests (Files): Likewise.
25051         * modules/random_r-tests (Files): Likewise.
25052         * modules/rawmemchr-tests (Files): Likewise.
25053         * modules/readlink-tests (Files): Likewise.
25054         * modules/remove-tests (Files): Likewise.
25055         * modules/rename-tests (Files): Likewise.
25056         * modules/renameat-tests (Files): Likewise.
25057         * modules/rmdir-tests (Files): Likewise.
25058         * modules/round-tests (Files): Likewise.
25059         * modules/roundf-tests (Files): Likewise.
25060         * modules/roundl-tests (Files): Likewise.
25061         * modules/select-tests (Files): Likewise.
25062         * modules/setenv-tests (Files): Likewise.
25063         * modules/sigaction-tests (Files): Likewise.
25064         * modules/sleep-tests (Files): Likewise.
25065         * modules/snprintf-posix-tests (Files): Likewise.
25066         * modules/snprintf-tests (Files): Likewise.
25067         * modules/sprintf-posix-tests (Files): Likewise.
25068         * modules/stat-tests (Files): Likewise.
25069         * modules/strcasestr-tests (Files): Likewise.
25070         * modules/strchrnul-tests (Files): Likewise.
25071         * modules/strerror-tests (Files): Likewise.
25072         * modules/strsignal-tests (Files): Likewise.
25073         * modules/strstr-tests (Files): Likewise.
25074         * modules/strtod-tests (Files): Likewise.
25075         * modules/strverscmp-tests (Files): Likewise.
25076         * modules/symlink-tests (Files): Likewise.
25077         * modules/symlinkat-tests (Files): Likewise.
25078         * modules/times-tests (Files): Likewise.
25079         * modules/trunc-tests (Files): Likewise.
25080         * modules/truncf-tests (Files): Likewise.
25081         * modules/truncl-tests (Files): Likewise.
25082         * modules/tsearch-tests (Files): Likewise.
25083         * modules/uname-tests (Files): Likewise.
25084         * modules/unlink-tests (Files): Likewise.
25085         * modules/unsetenv-tests (Files): Likewise.
25086         * modules/usleep-tests (Files): Likewise.
25087         * modules/utimensat-tests (Files): Likewise.
25088         * modules/vasprintf-tests (Files): Likewise.
25089         * modules/vdprintf-posix-tests (Files): Likewise.
25090         * modules/vfprintf-posix-tests (Files): Likewise.
25091         * modules/vprintf-posix-tests (Files): Likewise.
25092         * modules/vsnprintf-posix-tests (Files): Likewise.
25093         * modules/vsnprintf-tests (Files): Likewise.
25094         * modules/vsprintf-posix-tests (Files): Likewise.
25095         * modules/wcrtomb-tests (Files): Likewise.
25096         * modules/wcsnrtombs-tests (Files): Likewise.
25097         * modules/wcsrtombs-tests (Files): Likewise.
25098         * modules/wcwidth-tests (Files): Likewise.
25099         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25100         * tests/test-isinf.c (isinf): Likewise.
25101         * tests/test-isnan.c (isnan): Likewise.
25102         * tests/test-signbit.c (signbit): Likewise.
25103         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25104         declaration, either as macro or with correct signature.
25105         (select): Ensure function under test is declared with correct
25106         signature in correct header.
25107         * tests/test-atexit.c (atexit): Likewise.
25108         * tests/test-btowc.c (btowc): Likewise.
25109         * tests/test-canonicalize-lgpl.c (realpath)
25110         (canonicalize_file_name): Likewise.
25111         * tests/test-ceilf1.c (ceilf): Likewise.
25112         * tests/test-ceill.c (ceill): Likewise.
25113         * tests/test-chown.c (chown): Likewise.
25114         * tests/test-dprintf-posix.c (dprintf): Likewise.
25115         * tests/test-dup2.c (dup2): Likewise.
25116         * tests/test-dup3.c (dup3): Likewise.
25117         * tests/test-duplocale.c (duplocale): Likewise.
25118         * tests/test-fchdir.c (fchdir): Likewise.
25119         * tests/test-fchownat.c (fchownat): Likewise.
25120         * tests/test-fcntl.c (fcntl): Likewise.
25121         * tests/test-fdopendir.c (fdopendir): Likewise.
25122         * tests/test-fflush.c (fflush): Likewise.
25123         * tests/test-flock.c (flock): Likewise.
25124         * tests/test-floorf1.c (floorf): Likewise.
25125         * tests/test-floorl.c (floorl): Likewise.
25126         * tests/test-fnmatch.c (fnmatch): Likewise.
25127         * tests/test-fopen.c (fopen): Likewise.
25128         * tests/test-fprintf-posix.c (fprintf): Likewise.
25129         * tests/test-freopen.c (freopen): Likewise.
25130         * tests/test-frexp.c (frexp): Likewise.
25131         * tests/test-frexpl.c (frexpl): Likewise.
25132         * tests/test-fseek.c (fseek): Likewise.
25133         * tests/test-fseeko.c (fseeko): Likewise.
25134         * tests/test-fstatat.c (fstatat): Likewise.
25135         * tests/test-fsync.c (fsync): Likewise.
25136         * tests/test-ftell.c (ftell): Likewise.
25137         * tests/test-ftello.c (ftello): Likewise.
25138         * tests/test-futimens.c (futimens): Likewise.
25139         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25140         (gai_strerror): Likewise.
25141         * tests/test-getcwd.c (getcwd): Likewise.
25142         * tests/test-getdelim.c (getdelim): Likewise.
25143         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25144         * tests/test-getgroups.c (getgroups): Likewise.
25145         * tests/test-gethostname.c (gethostname): Likewise.
25146         * tests/test-getline.c (getline): Likewise.
25147         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25148         Likewise.
25149         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25150         * tests/test-glob.c (glob, globfree): Likewise.
25151         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25152         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25153         * tests/test-inet_pton.c (inet_pton): Likewise.
25154         * tests/test-isblank.c (isblank): Likewise.
25155         * tests/test-lchown.c (lchown): Likewise.
25156         * tests/test-ldexpl.c (ldexpl): Likewise.
25157         * tests/test-link.c (link): Likewise.
25158         * tests/test-linkat.c (linkat): Likewise.
25159         * tests/test-lseek.c (lseek): Likewise.
25160         * tests/test-lstat.c (lstat): Likewise.
25161         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25162         * tests/test-mbsinit.c (mbsinit): Likewise.
25163         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25164         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25165         * tests/test-memchr.c (memchr): Likewise.
25166         * tests/test-memcmp.c (memcmp): Likewise.
25167         * tests/test-memmem.c (memmem): Likewise.
25168         * tests/test-memrchr.c (memrchr): Likewise.
25169         * tests/test-mkdir.c (mkdir): Likewise.
25170         * tests/test-mkdirat.c (mkdirat): Likewise.
25171         * tests/test-mkfifo.c (mkfifo): Likewise.
25172         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25173         * tests/test-mknod.c (mknod): Likewise.
25174         * tests/test-nanosleep.c (nanosleep): Likewise.
25175         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25176         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25177         Likewise.
25178         * tests/test-open.c (open): Likewise.
25179         * tests/test-openat.c (openat): Likewise.
25180         * tests/test-perror.c (perror): Likewise.
25181         * tests/test-pipe2.c (pipe2): Likewise.
25182         * tests/test-poll.c (poll): Likewise.
25183         * tests/test-popen.c (popen, pclose): Likewise.
25184         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25185         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25186         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25187         (posix_spawn_file_actions_destroy)
25188         (posix_spawn_file_actions_addclose)
25189         (posix_spawn_file_actions_addopen)
25190         (posix_spawn_file_actions_adddup2): Likewise.
25191         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25192         * tests/test-pread.c (pread): Likewise.
25193         * tests/test-printf-posix.c (printf): Likewise.
25194         * tests/test-pty.c (openpty, forkpty): Likewise.
25195         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25196         (random_r): Likewise.
25197         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25198         * tests/test-readlink.c (readlink): Likewise.
25199         * tests/test-remove.c (remove): Likewise.
25200         * tests/test-rename.c (rename): Likewise.
25201         * tests/test-renameat.c (renameat): Likewise.
25202         * tests/test-rmdir.c (rmdir): Likewise.
25203         * tests/test-round1.c (round): Likewise.
25204         * tests/test-roundf1.c (roundf): Likewise.
25205         * tests/test-roundl.c (roundl): Likewise.
25206         * tests/test-setenv.c (setenv): Likewise.
25207         * tests/test-sigaction.c (sigaction): Likewise.
25208         * tests/test-sleep.c (sleep): Likewise.
25209         * tests/test-snprintf.c (snprintf): Likewise.
25210         * tests/test-sprintf-posix.c (sprintf): Likewise.
25211         * tests/test-stat.c (stat): Likewise.
25212         * tests/test-stpncpy.c (stpncpy): Likewise.
25213         * tests/test-strcasestr.c (strcasestr): Likewise.
25214         * tests/test-strchrnul.c (strchrnul): Likewise.
25215         * tests/test-strerror.c (strerror): Likewise.
25216         * tests/test-strsignal.c (strsignal): Likewise.
25217         * tests/test-strstr.c (strstr): Likewise.
25218         * tests/test-strtod.c (strtod): Likewise.
25219         * tests/test-strverscmp.c (strverscmp): Likewise.
25220         * tests/test-symlink.c (symlink): Likewise.
25221         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25222         * tests/test-times.c (times): Likewise.
25223         * tests/test-trunc1.c (trunc): Likewise.
25224         * tests/test-truncf1.c (truncf): Likewise.
25225         * tests/test-truncl.c (truncl): Likewise.
25226         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25227         Likewise.
25228         * tests/test-uname.c (uname): Likewise.
25229         * tests/test-unlink.c (unlink): Likewise.
25230         * tests/test-unlinkat.c (unlinkat): Likewise.
25231         * tests/test-unsetenv.c (unsetenv): Likewise.
25232         * tests/test-usleep.c (usleep): Likewise.
25233         * tests/test-utimensat.c (utimensat): Likewise.
25234         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25235         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25236         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
25237         * tests/test-vprintf-posix.c (vprintf): Likewise.
25238         * tests/test-vsnprintf.c (vsnprintf): Likewise.
25239         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
25240         * tests/test-wcrtomb.c (wcrtomb): Likewise.
25241         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
25242         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
25243         * tests/test-wcwidth.c (wcwidth): Likewise.
25244
25245         build: pull in conditional headers during GNULIB_POSIXCHECK
25246         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
25247         definitions from any conditionally-included headers.
25248         * lib/stdlib.in.h (includes): Likewise.
25249         * lib/unistd.in.h (includes): Likewise.
25250
25251 2009-12-24  Bruno Haible  <bruno@clisp.org>
25252
25253         * tests/test-argv-iter.c: Include header file being tested immediately
25254         after config.h.
25255         * tests/test-base64.c: Likewise.
25256         * tests/test-flock.c: Likewise.
25257         * tests/test-fsync.c: Likewise.
25258         * tests/test-getdate.c: Likewise.
25259         * tests/test-getndelim2.c: Likewise.
25260         * tests/test-isfinite.c: Likewise.
25261         * tests/test-isinf.c: Likewise.
25262         * tests/test-strerror.c: Likewise.
25263         * tests/test-strsignal.c: Likewise.
25264
25265 2009-12-23  Eric Blake  <ebb9@byu.net>
25266
25267         unistd: work around cygwin bug
25268         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
25269         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
25270         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25271
25272 2009-12-23  Bruno Haible  <bruno@clisp.org>
25273
25274         localename: More tests.
25275         * tests/test-localename.c (SIZEOF): New macro.
25276         (categories): New variable.
25277         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
25278         test_locale_name_default): Add test w.r.t. thread locale.
25279         (test_locale_name_thread): New function.
25280         (main): Invoke it.
25281
25282         localename: Make aware of thread locale.
25283         * lib/localename.h (gl_locale_name_thread): New declaration.
25284         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
25285         behaviour with respect to thread locale.
25286         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
25287         <langinfo.h>, glthread/lock.h.
25288         (SIZE_BITS): New macro.
25289         (string_hash): New function.
25290         (struct hash_node): New type.
25291         (HASH_TABLE_SIZE): New macro.
25292         (struniq_hash_table, struniq_lock): New variables.
25293         (struniq): New function.
25294         (gl_locale_name_thread): New function.
25295         (gl_locale_name): Invoke it.
25296         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
25297         * modules/localename (Depends-on): Add lock.
25298         Reported by Mike Gran <spk121@yahoo.com>.
25299
25300 2009-12-23  Eric Blake  <ebb9@byu.net>
25301
25302         va-args: new module
25303         * modules/va-args: New file.
25304         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
25305         * MODULES.html.sh (Core language properties): Mention it.
25306
25307         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
25308         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
25309         named alias for __attribute__((__unused__)).
25310         * lib/chown.c: Update client.
25311         * lib/fchmodat.c: Likewise.
25312         * lib/fts.c: Likewise.
25313         * lib/getdate.y: Likewise.
25314         * lib/getgroups.c: Likewise.
25315         * lib/getopt.c: Likewise.
25316         * lib/getugroups.c: Likewise.
25317         * lib/mkdir.c: Likewise.
25318         * lib/mkfifo.c: Likewise.
25319         * lib/mkfifoat.c: Likewise.
25320         * lib/mknod.c: Likewise.
25321         * lib/mknodat.c: Likewise.
25322         * lib/readlink.c: Likewise.
25323         * lib/se-context.in.h: Likewise.
25324         * lib/se-selinux.in.h: Likewise.
25325         * lib/sockets.c: Likewise.
25326         * lib/symlink.c: Likewise.
25327         * lib/symlinkat.c: Likewise.
25328         * lib/unicodeio.c: Likewise.
25329         * lib/unistr.h: Likewise.
25330         * tests/test-areadlink.c: Likewise.
25331         * tests/test-areadlinkat.c: Likewise.
25332         * tests/test-filenamecat.c: Likewise.
25333         * tests/test-fseeko.c: Likewise.
25334         * tests/test-ftello.c: Likewise.
25335         * tests/test-getdate.c: Likewise.
25336         * tests/test-getgroups.c: Likewise.
25337         * tests/test-gethostname.c: Likewise.
25338         * tests/test-quotearg.c: Likewise.
25339         * tests/test-version-etc.c: Likewise.
25340         * tests/test-xalloc-die.c: Likewise.
25341         * tests/test-xfprintf-posix.c: Likewise.
25342         * tests/test-xprintf-posix.c: Likewise.
25343         * tests/test-xvasprintf.c: Likewise.
25344
25345         tests: avoid compiler warnings
25346         * tests/test-fcntl.c (main): Delete unused parameters.
25347         * tests/test-freopen-safer.c (main): Likewise.
25348         * tests/test-xalloc-die.c (main): Mark unused parameters.
25349         * tests/test-fseeko.c (main): Likewise.
25350         * tests/test-ftello.c (main): Likewise.
25351         * tests/test-nanosleep.c (main): Avoid declaration warning.
25352         * tests/test-sleep.c (main): Likewise.
25353         * tests/test-unsetenv.c (main): Silence warning about string
25354         literal.
25355         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25356
25357 2009-12-23  Bruno Haible  <bruno@clisp.org>
25358
25359         * tests/test-localename.c (test_locale_name): New function, extracted
25360         from main. Also test mixed situations.
25361         (test_locale_name_posix, test_locale_name_environ,
25362         test_locale_name_default): New functions.
25363         (main): Invoke them all.
25364         * modules/localename-tests (configure.ac): Test for newlocale.
25365
25366 2009-12-23  Bruno Haible  <bruno@clisp.org>
25367
25368         unistd: Ensure getcwd gets declared before being overridden.
25369         * lib/unistd.in.h: Conditionally include <io.h>.
25370
25371 2009-12-22  Bruno Haible  <bruno@clisp.org>
25372
25373         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25374         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25375         (gl_WCHAR_H): Invoke it.
25376         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25377         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25378         Reported by Karl Berry <karl@freefriends.org>.
25379
25380 2009-12-22  Eric Blake  <ebb9@byu.net>
25381
25382         math, unistd: avoid redundant includes
25383         * lib/math.in.h (isnan): No need to re-include <math.h>.
25384         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25385
25386         getsubopt: work around cygwin bug
25387         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25388         avoid conflicting with system getsubopt.
25389         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25390         bug.
25391
25392         getopt: synchronize from glibc
25393         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25394         parameter order.  Adjust all callers.
25395         (_getopt_internal_r, main): Adjust quoting in error messages.
25396         Drop considerations for outdated POSIX 1003.2 error message.
25397         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25398         callers.
25399         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25400
25401         test-getopt: test stderr behavior
25402         * modules/getopt-posix-tests (Depends-on): Add dup2.
25403         * tests/test-getopt.c (ASSERT): Avoid stderr.
25404         (main): Move stderr to a temporary file.
25405         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
25406         Instead, add parameter to inform caller if output occurred.
25407         (test_getopt): Adjust all existing tests to expect silence, and
25408         add new tests of leading ":".
25409         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25410         glibc shortcomings with leading "-:" or "+:" in optstring.
25411         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25412         Likewise.
25413         * doc/posix-functions/getopt.texi (getopt): Likewise.
25414
25415         test-getopt: enhance test
25416         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
25417         supports optind=0.
25418         * tests/test-getopt.c (OPTIND_MIN): Move...
25419         * tests/test-getopt.h (OPTIND_MIN): ...here.
25420         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
25421         Require that optind=0 works, since modern BSD supports it in
25422         addition to optreset, and since coreutils expects it.
25423         (test_getopt_long_only): New test.
25424         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25425         glibc shortcomings with 'W;', and enforcement of optind=0.
25426         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25427         Likewise.
25428
25429 2009-12-21  Bruno Haible  <bruno@clisp.org>
25430
25431         localename: Improvements for MacOS X and Cygwin.
25432         * lib/localename.h (gl_locale_name_environ): New declaration.
25433         * lib/localename.c (gl_locale_name_environ): New function, extracted from
25434         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
25435         (gl_locale_name_posix): Invoke it.
25436         (gl_locale_name_default): Add comments. Use Windows native API also on
25437         Cygwin.
25438
25439 2009-12-21  Bruno Haible  <bruno@clisp.org>
25440
25441         Update list of Win32 locale ids.
25442         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
25443         (LANG_SAMI): Renamed from LANG_SAAMI.
25444         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
25445         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
25446         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
25447         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
25448         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
25449         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
25450         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
25451         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
25452         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
25453         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
25454         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
25455         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
25456         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
25457         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
25458         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
25459         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
25460         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
25461         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
25462         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
25463         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
25464         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
25465         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
25466         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
25467         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
25468         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
25469         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
25470         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
25471         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
25472         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
25473         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
25474         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
25475         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
25476         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
25477         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
25478         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
25479         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
25480         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
25481         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
25482         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
25483         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
25484         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
25485         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
25486         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
25487         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
25488         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
25489         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
25490         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
25491         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
25492         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
25493         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
25494         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
25495         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
25496         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
25497         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
25498         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
25499         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
25500         Add more languages and countries for Sami, Sorbian. Add more countries
25501         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
25502         for Pashto. Change country for Syriac, Tswana.
25503
25504 2009-12-21  Eric Blake  <ebb9@byu.net>
25505
25506         test-utimens: avoid spurious failure
25507         * tests/test-chown.h (nap): Factor...
25508         * tests/nap.h: ...into new file.
25509         * tests/test-lchown.h (nap): Avoid duplication.
25510         * tests/test-utimens-common.h (nap): Use shared implementation,
25511         necessary on file systems with 1-second resolution.
25512         * modules/chown-tests (Files): Include new file.
25513         * modules/fdutimensat-tests (Files): Likewise.
25514         * modules/futimens-tests (Files): Likewise.
25515         * modules/lchown-tests (Files): Likewise.
25516         * modules/openat-tests (Files): Likewise.
25517         * modules/utimens-tests (Files): Likewise.
25518         * modules/utimensat-tests (Files): Likewise.
25519
25520 2009-12-19  Eric Blake  <ebb9@byu.net>
25521
25522         futimens, utimensat: work around Linux bug
25523         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
25524         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25525         * lib/utimensat.c (rpl_utimensat): Work around it.
25526         * lib/futimens.c (rpl_futimens): Adjust comment.
25527
25528         utimens: work around Linux ctime bug
25529         * lib/utimens.c (detect_ctime_bug): New helper function.
25530         (update_timespec): Differentiate between workaround needed for
25531         this bug vs. what is needed for systems that lack utimensat.
25532         (fdutimens, lutimens): Work around bug.
25533
25534         utimens: check for ctime update
25535         * tests/test-utimens-common.h (check_ctime): Define.
25536         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
25537         * tests/test-futimens.h (test_futimens): Likewise.
25538         * tests/test-lutimens.h (test_lutimens): Likewise.
25539         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25540         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25541
25542 2009-12-19  Bruno Haible  <bruno@clisp.org>
25543
25544         dprintf-posix: Check against memory leak fixed on 2009-12-15.
25545         * tests/test-dprintf-posix2.sh: New file.
25546         * tests/test-dprintf-posix2.c: New file.
25547         * modules/dprintf-posix-tests (Files): Add them.
25548         (configure.ac): Check for getrlimit and setrlimit.
25549         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25550
25551 2009-12-19  Bruno Haible  <bruno@clisp.org>
25552
25553         fprintf-posix: Check against memory leak fixed on 2009-12-15.
25554         * tests/test-fprintf-posix3.sh: New file.
25555         * tests/test-fprintf-posix3.c: New file.
25556         * modules/fprintf-posix-tests (Files): Add them.
25557         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25558
25559 2009-12-19  Eric Blake  <ebb9@byu.net>
25560
25561         dirfd: fix prototype
25562         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
25563         * lib/dirfd.c (dirfd): Likewise.
25564
25565         canonicalize: reduce memory usage
25566         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
25567         allocation to size.
25568         Reported by Solar Designer <solar@openwall.com>.
25569
25570 2009-12-19  Bruno Haible  <bruno@clisp.org>
25571
25572         New module attribute 'Applicability'.
25573         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
25574         * gnulib-tool: New option --extract-applicability.
25575         (func_usage): Document it.
25576         (sed_extract_prog): Recognize it.
25577         (func_get_applicability): New function.
25578         (func_import): Generalize handling of 'link-warning' module.
25579         * modules/link-warning (Applicability): New section.
25580         * modules/arg-nonnull (Applicability): New section.
25581         Repoted by Simon Josefsson <simon@josefsson.org>.
25582
25583 2009-12-19  Bruno Haible  <bruno@clisp.org>
25584
25585         fflush: tweak
25586         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
25587         * lib/fseeko.c (rpl_fseeko): Likewise.
25588
25589 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
25590
25591         * lib/gl_list.h: Fix typo in comment.
25592
25593 2009-12-16  Eric Blake  <ebb9@byu.net>
25594
25595         fcntl: use to simplify other modules
25596         * modules/cloexec (Depends-on): Add fcntl.
25597         * modules/fchdir (Depends-on): Likewise.
25598         * modules/fd-safer-flag (Depends-on): Likewise.
25599         * modules/unistd-safer (Depends-on): Likewise.
25600         * modules/dup3 (configure.ac): Set module indicator.
25601         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
25602         missing.
25603         * lib/fchdir.c (_gl_register_dup): Fix comment.
25604         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
25605         * lib/dup-safer.c (dup_safer): Likewise.
25606         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
25607         * lib/dup3.c (dup3): Likewise.
25608         * tests/test-fchdir.c (main): Enhance test.
25609         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
25610
25611         fcntl: port portions of fcntl to mingw
25612         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
25613         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
25614         replacement for mingw.
25615         * modules/fcntl (Description): Update.
25616         (Depends-on): Add dup2.
25617         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
25618         * modules/fcntl-h (Makefile.am): Substitute it.
25619         * lib/fcntl.in.h (fcntl): Update declaration.
25620         (F_DUPFD, F_GETFD): New macros, when needed.
25621         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25622         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
25623         * tests/test-fcntl.c (check_flags, main): Enhance test for items
25624         we now guarantee.
25625
25626         fcntl: work around cygwin bug in F_DUPFD
25627         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
25628         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
25629         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
25630         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
25631         * doc/posix-functions/fcntl.texi (fcntl): Document it.
25632
25633         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
25634         * modules/fcntl (Files): List new files.
25635         (configure.ac): Run a test.
25636         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
25637         * lib/fcntl.c (rpl_fcntl): Likewise.
25638         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
25639         (gl_FCNTL_H): Always replace fcntl.h.
25640         * modules/fcntl-h (Makefile.am): Substitute witnesses.
25641         * lib/fcntl.in.h (fcntl): Declare replacement.
25642         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
25643         needed, plus a witness.
25644         * doc/posix-functions/fcntl.texi (fcntl): Document this.
25645         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25646         * tests/test-fcntl.c: New file.
25647         * modules/fcntl-tests: Likewise.
25648
25649         binary-io: avoid potential compilation warning
25650         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
25651         directives.
25652
25653         fflush: avoid compilation error on NetBSD
25654         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
25655         between off_t and fpos_t, since the latter is sometimes a struct.
25656         * lib/fseeko.c (rpl_fseeko): Likewise.
25657         Reported by Alexander Nasonov <alnsn@yandex.ru>.
25658
25659 2009-12-15  Eric Blake  <ebb9@byu.net>
25660
25661         fcntl-h, stdio, sys_ioctl: fix declarations
25662         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
25663         function must not take arguments.
25664         * lib/sys_ioctl.in.h (ioctl): Likewise.
25665         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
25666         (open): Add a link warning.
25667
25668 2009-12-15  Jim Meyering  <meyering@redhat.com>
25669
25670         areadlink, areadlink-with-size: relax license to LGPLv2+
25671         * modules/areadlink (License): Relax to LGPLv2+.
25672         * modules/areadlink-with-size (License): Likewise.
25673
25674 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
25675             Bruno Haible  <bruno@clisp.org>
25676
25677         *printf: Fix memory leak.
25678         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
25679         * lib/vfprintf.c (vfprintf): Likewise.
25680         * lib/dprintf.c (dprintf): Likewise.
25681         * lib/vdprintf.c (vdprintf): Likewise.
25682
25683 2009-12-14  Eric Blake  <ebb9@byu.net>
25684
25685         accept4: adjust module dependencies
25686         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
25687
25688         utimens: one more try at avoiding compiler warning
25689         * lib/utimens.c (lutimens): Lower scope of result.
25690
25691 2009-12-13  Bruno Haible  <bruno@clisp.org>
25692
25693         Move the malloc checking from module 'list' to new module 'xlist'.
25694         * modules/xlist: New file.
25695         * lib/gl_xlist.h: New file.
25696         * lib/gl_xlist.c: New file.
25697         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
25698         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
25699         gl_list_add_last, gl_list_add_before, gl_list_add_after,
25700         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
25701         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
25702         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
25703         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
25704         gl_sortedlist_nx_add): New declarations.
25705         (struct gl_list_implementation): Rename and change methods accordingly.
25706         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
25707         (gl_list_nx_create): Renamed from gl_list_create.
25708         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25709         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25710         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25711         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25712         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25713         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25714         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25715         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25716         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
25717         gl_list_create_empty.
25718         (gl_list_nx_create): Renamed from gl_list_create.
25719         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25720         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25721         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25722         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25723         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25724         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25725         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25726         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25727         * lib/gl_array_list.c: Don't include xalloc.h.
25728         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
25729         NULL upon out-of-memory.
25730         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
25731         out-of-memory.
25732         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
25733         Change return type to 'int'.
25734         (gl_array_nx_set_at): Renamed from gl_array_set_at.
25735         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25736         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
25737         upon out-of-memory.
25738         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
25739         upon out-of-memory.
25740         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
25741         upon out-of-memory.
25742         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
25743         upon out-of-memory.
25744         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
25745         out-of-memory.
25746         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
25747         Update.
25748         (gl_array_list_implementation): Update.
25749         * lib/gl_carray_list.c: Don't include xalloc.h.
25750         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
25751         Return NULL upon out-of-memory.
25752         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
25753         out-of-memory.
25754         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
25755         Change return type to 'int'.
25756         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
25757         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25758         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
25759         upon out-of-memory.
25760         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
25761         upon out-of-memory.
25762         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
25763         out-of-memory.
25764         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
25765         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
25766         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
25767         Update.
25768         (gl_carray_list_implementation): Update.
25769         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
25770         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
25771         gl_linked_create_empty. Return NULL upon out-of-memory.
25772         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
25773         out-of-memory.
25774         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
25775         Change return type to 'int'. Return -1 upon out-of-memory.
25776         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
25777         out-of-memory.
25778         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
25779         upon out-of-memory.
25780         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
25781         upon out-of-memory.
25782         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
25783         NULL upon out-of-memory.
25784         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
25785         upon out-of-memory.
25786         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
25787         out-of-memory.
25788         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
25789         Update.
25790         * lib/gl_linked_list.c: Don't include xalloc.h.
25791         (gl_linked_list_implementation): Update.
25792         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
25793         (add_to_bucket): Change return type to 'int'.
25794         (gl_linkedhash_list_implementation): Update.
25795         * lib/gl_anytree_list1.h (free_subtree): New function.
25796         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
25797         gl_tree_create_empty. Return NULL upon out-of-memory.
25798         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
25799         Change return type to 'int'. Return -1 upon out-of-memory.
25800         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
25801         out-of-memory.
25802         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
25803         (gl_tree_remove_node): New function, moved here from
25804         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
25805         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
25806         Update.
25807         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
25808         malloc, not xmalloc. Return NULL upon out-of-memory.
25809         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
25810         out-of-memory.
25811         (gl_tree_remove_node_from_tree): New function, extracted from
25812         gl_tree_remove_node.
25813         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
25814         upon out-of-memory.
25815         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
25816         out-of-memory.
25817         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
25818         upon out-of-memory.
25819         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
25820         upon out-of-memory.
25821         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
25822         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
25823         not xmalloc. Return NULL upon out-of-memory.
25824         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
25825         out-of-memory.
25826         (gl_tree_remove_node_from_tree): New function, extracted from
25827         gl_tree_remove_node.
25828         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
25829         upon out-of-memory.
25830         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
25831         out-of-memory.
25832         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
25833         upon out-of-memory.
25834         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
25835         upon out-of-memory.
25836         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
25837         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
25838         gl_anytree_list1.h before gl_anyavltree_list2.h.
25839         (gl_avltree_list_implementation): Update.
25840         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
25841         gl_anytree_list1.h before gl_anyavltree_list2.h.
25842         (gl_rbtree_list_implementation): Update.
25843         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
25844         Change return type to 'int'. Return -1 upon out-of-memory. Use
25845         __builtin_expect.
25846         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
25847         (gl_avltreehash_list_implementation): Update.
25848         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
25849         (gl_rbtreehash_list_implementation): Update.
25850         * modules/array-list (Depends-on): Remove xalloc.
25851         * modules/carray-list (Depends-on): Likewise.
25852         * modules/linked-list (Depends-on): Likewise.
25853         * modules/linkedhash-list (Depends-on): Likewise.
25854         * modules/avltree-list (Depends-on): Likewise.
25855         * modules/rbtree-list (Depends-on): Likewise.
25856         * modules/avltreehash-list (Depends-on): Likewise.
25857         * modules/rbtreehash-list (Depends-on): Likewise.
25858
25859         * modules/xsublist: New file.
25860         * lib/gl_xsublist.h: New file.
25861         * lib/gl_xsublist.c: New file.
25862         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
25863         (gl_sublist_nx_create): New declaration.
25864         * lib/gl_sublist.c: Don't include xalloc.h.
25865         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
25866         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
25867         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
25868         Change return type to 'int'. Return -1 upon out-of-memory.
25869         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
25870         upon out-of-memory.
25871         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
25872         NULL upon out-of-memory.
25873         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
25874         upon out-of-memory.
25875         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
25876         NULL upon out-of-memory.
25877         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
25878         NULL upon out-of-memory.
25879         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
25880         upon out-of-memory.
25881         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
25882         (gl_sublist_list_implementation): Update.
25883         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
25884         upon out-of-memory.
25885         * modules/sublist (Depends-on): Remove xalloc.
25886
25887         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
25888         * tests/test-carray_list.c: Likewise.
25889         * tests/test-linked_list.c: Likewise.
25890         * tests/test-linkedhash_list.c: Likewise.
25891         * tests/test-avltree_list.c: Likewise.
25892         * tests/test-rbtree_list.c: Likewise.
25893         * tests/test-avltreehash_list.c: Likewise.
25894         * tests/test-rbtreehash_list.c: Likewise.
25895         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
25896         * modules/carray-list-tests (Makefile.am): Likewise.
25897         * modules/linked-list-tests (Makefile.am): Likewise.
25898         * modules/linkedhash-list-tests (Makefile.am): Likewise.
25899         * modules/avltree-list-tests (Makefile.am): Likewise.
25900         * modules/rbtree-list-tests (Makefile.am): Likewise.
25901         * modules/avltreehash-list-tests (Makefile.am): Likewise.
25902         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
25903
25904         * NEWS: Mention the changes.
25905
25906         * lib/clean-temp.c: Include gl_xlist.h.
25907         * modules/clean-temp (Depends-on): Add xlist.
25908
25909         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
25910         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
25911
25912         * tests/test-array_oset.c: Include gl_xlist.h.
25913         * modules/array-oset-tests (Depends-on): Add xlist.
25914
25915         Reported by José E. Marchesi <jemarch@gnu.org>.
25916
25917 2009-12-13  Bruno Haible  <bruno@clisp.org>
25918
25919         Move the malloc checking from module 'oset' to new module 'xoset'.
25920         * modules/xoset: New file.
25921         * lib/gl_xoset.h: New file.
25922         * lib/gl_xoset.c: New file.
25923         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
25924         declarations.
25925         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
25926         (struct gl_oset_implementation): Rename and change methods accordingly.
25927         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
25928         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
25929         'int'. Mark as __warn_unused_result__.
25930         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
25931         gl_oset_create_empty.
25932         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
25933         'int'.
25934         * lib/gl_array_oset.c: Don't include xalloc.h.
25935         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
25936         malloc, not xmalloc.
25937         (grow): Change return type to 'int'. Don't call xalloc_die.
25938         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
25939         to 'int'.
25940         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
25941         'int'.
25942         (gl_array_oset_implementation): Update.
25943         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
25944         gl_tree_create_empty.
25945         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
25946         'int'.
25947         * lib/gl_avltree_oset.c: Don't include xalloc.h.
25948         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
25949         xmalloc.
25950         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
25951         not xmalloc.
25952         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
25953         xmalloc.
25954         (gl_avltree_oset_implementation): Update.
25955         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
25956         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
25957         xmalloc.
25958         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
25959         not xmalloc.
25960         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
25961         xmalloc.
25962         (gl_rbtree_oset_implementation): Update.
25963         * modules/array-oset (Depends-on): Remove xalloc.
25964         * modules/avltree-oset (Depends-on): Likewise.
25965         * modules/rbtree-oset (Depends-on): Likewise.
25966         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
25967         * tests/test-avltree_oset.c: Likewise.
25968         * tests/test-rbtree_oset.c: Likewise.
25969         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
25970         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
25971         * modules/rbtree-oset-tests (Makefile.am): Likewise.
25972         * NEWS: Mention the change.
25973
25974 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
25975
25976         maint.mk: allow a project to override release-prep commands
25977         * top/maint.mk (alpha, beta, stable): Move release-preparatory
25978         commands into a new rule.
25979         (release-prep): New rule.
25980         (release-prep-hook): New overridable variable.
25981
25982 2009-12-13  Bruno Haible  <bruno@clisp.org>
25983
25984         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
25985
25986 2009-12-13  Jim Meyering  <meyering@redhat.com>
25987
25988         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
25989         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
25990
25991 2009-12-12  Bruno Haible  <bruno@clisp.org>
25992
25993         duplocale: Tweak.
25994         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
25995
25996 2009-12-12  Karl Berry  <karl@gnu.org>
25997
25998         * config/srclist.txt (strtoll.c): tab changes, no more sync.
25999
26000 2009-12-12  Bruno Haible  <bruno@clisp.org>
26001
26002         * m4/po.m4: Undo incorrect untabification.
26003
26004 2009-12-12  Bruno Haible  <bruno@clisp.org>
26005
26006         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
26007         * modules/c-strtod (Depends-on): Add locale.
26008         * modules/c-strtold (Depends-on): Likewise.
26009
26010 2009-12-12  Bruno Haible  <bruno@clisp.org>
26011
26012         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
26013
26014 2009-12-11  Eric Blake  <ebb9@byu.net>
26015
26016         setenv: relax requirement in light of POSIX ruling
26017         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
26018         not NULL.
26019         * tests/test-setenv.c (main): Relax test.
26020         * tests/test-unsetenv.c (main): Likewise.
26021         * doc/posix-functions/setenv.texi (setenv): Document this.
26022         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26023
26024 2009-12-11  Bruno Haible  <bruno@clisp.org>
26025
26026         New module 'fd-safer-flag'.
26027         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26028         * lib/dup-safer.c (dup_safer_flag): Remove function.
26029         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26030         * lib/fd-safer.c (fd_safer_flag): Remove function.
26031         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26032         * modules/cloexec (configure.ac): Drop indicator macro.
26033         * modules/fd-safer-flag: New file.
26034         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26035         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26036         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26037
26038 2009-12-11  Bruno Haible  <bruno@clisp.org>
26039
26040         Tests for module 'nl_langinfo'.
26041         * modules/nl_langinfo-tests: New file.
26042         * tests/test-nl_langinfo.sh: New file.
26043         * tests/test-nl_langinfo.c: New file.
26044
26045         New module 'nl_langinfo'.
26046         * lib/nl_langinfo.c: New file.
26047         * m4/nl_langinfo.m4: New file.
26048         * modules/nl_langinfo: New file.
26049         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26050
26051 2009-12-11  Bruno Haible  <bruno@clisp.org>
26052
26053         Tests for module 'langinfo'.
26054         * modules/langinfo-tests: New file.
26055         * tests/test-langinfo.c: New file.
26056
26057         New module 'langinfo'.
26058         * lib/langinfo.in.h: New file.
26059         * m4/langinfo_h.m4: New file.
26060         * modules/langinfo: New file.
26061         * doc/posix-headers/langinfo.texi: Mention the new module.
26062
26063 2009-12-11  Bruno Haible  <bruno@clisp.org>
26064
26065         * lib/config.charset: Untabify.
26066
26067 2009-12-11  Bruno Haible  <bruno@clisp.org>
26068
26069         * modules/unistd-safer (configure.ac): Drop indicator macro.
26070
26071 2009-12-11  Bruno Haible  <bruno@clisp.org>
26072
26073         Move pipe2-safer code to its own file.
26074         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26075         * lib/pipe-safer.c (pipe2_safer): Remove function.
26076         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26077         (Makefile.am): Add it to lib_SOURCES.
26078
26079 2009-12-10  Bruno Haible  <bruno@clisp.org>
26080
26081         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26082
26083 2009-12-10  Bruno Haible  <bruno@clisp.org>
26084
26085         Declare which arguments expect non-NULL values, for GCC and clang.
26086         * build-aux/arg-nonnull.h: New file.
26087         * modules/arg-nonnull: New file.
26088         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26089         (inet_ntop, inet_pton): Use it.
26090         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26091         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26092         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26093         (open, openat): Use it.
26094         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26095         (fnmatch): Use it.
26096         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26097         (getopt, getopt_long, getopt_long_only): Use it.
26098         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26099         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26100         Use it.
26101         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26102         (iconv_open): Use it.
26103         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26104         (strtoimax, strtoumax): Use it.
26105         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26106         (duplocale): Use it.
26107         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26108         (frexp, frexpl): Use it.
26109         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26110         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26111         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26112         (tsearch, tfind, tdelete, twalk): Use it.
26113         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26114         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26115         sigpending): Use it.
26116         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26117         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26118         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26119         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26120         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26121         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26122         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26123         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26124         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26125         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26126         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26127         Use it.
26128         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26129         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26130         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26131         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26132         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26133         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26134         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26135         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26136         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26137         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26138         strtoull, unsetenv): Use it.
26139         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26140         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26141         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26142         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26143         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26144         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26145         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26146         (strcasecmp, strncasecmp): Use it.
26147         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26148         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26149         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26150         rpl_setsockopt): Use it.
26151         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26152         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26153         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26154         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26155         (gettimeofday): Use it.
26156         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26157         (times): Use it.
26158         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26159         (uname): Use it.
26160         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26161         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26162         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26163         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26164         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26165         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26166         unlinkat, write): Use it.
26167         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26168         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26169         * lib/argv-iter.h: Include arg-nonnull.h.
26170         (_ATTRIBUTE_NONNULL_): Remove macro.
26171         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26172         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26173         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26174         optimization.
26175         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26176         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26177         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26178         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26179         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26180         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26181         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26182         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26183         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26184         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26185         * modules/dirent (Depends-on): Add arg-nonnull.
26186         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26187         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26188         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26189         * modules/fnmatch (Depends-on): Add arg-nonnull.
26190         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26191         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26192         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26193         * modules/glob (Depends-on): Add arg-nonnull.
26194         (Makefile.am): Insert arg-nonnull.h into glob.h.
26195         * modules/iconv_open (Depends-on): Add arg-nonnull.
26196         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26197         * modules/inttypes (Depends-on): Add arg-nonnull.
26198         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26199         * modules/locale (Depends-on): Add arg-nonnull.
26200         (Makefile.am): Insert arg-nonnull.h into locale.h.
26201         * modules/math (Depends-on): Add arg-nonnull.
26202         (Makefile.am): Insert arg-nonnull.h into math.h.
26203         * modules/netdb (Depends-on): Add arg-nonnull.
26204         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26205         * modules/search (Depends-on): Add arg-nonnull.
26206         (Makefile.am): Insert arg-nonnull.h into search.h.
26207         * modules/signal (Depends-on): Add arg-nonnull.
26208         (Makefile.am): Insert arg-nonnull.h into signal.h.
26209         * modules/spawn (Depends-on): Add arg-nonnull.
26210         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26211         * modules/stdio (Depends-on): Add arg-nonnull.
26212         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26213         * modules/stdlib (Depends-on): Add arg-nonnull.
26214         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26215         * modules/string (Depends-on): Add arg-nonnull.
26216         (Makefile.am): Insert arg-nonnull.h into string.h.
26217         * modules/strings (Depends-on): Add arg-nonnull.
26218         (Makefile.am): Insert arg-nonnull.h into strings.h.
26219         * modules/sys_socket (Depends-on): Add arg-nonnull.
26220         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26221         * modules/sys_stat (Depends-on): Add arg-nonnull.
26222         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26223         * modules/sys_time (Depends-on): Add arg-nonnull.
26224         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26225         * modules/sys_times (Depends-on): Add arg-nonnull.
26226         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26227         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26228         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26229         * modules/time (Depends-on): Add arg-nonnull.
26230         (Makefile.am): Insert arg-nonnull.h into time.h.
26231         * modules/unistd (Depends-on): Add arg-nonnull.
26232         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26233         * modules/wchar (Depends-on): Add arg-nonnull.
26234         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26235         * modules/argv-iter (Depends-on): Add arg-nonnull.
26236         * tests/test-canonicalize.c (null_ptr): New function.
26237         (main): Use it.
26238         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
26239         (main): Use it.
26240         * tests/test-memmem.c (null_ptr): New function.
26241         (main): Use it.
26242         Reported by Jim Meyering.
26243
26244 2009-12-10  Bruno Haible  <bruno@clisp.org>
26245
26246         Use spaces for indentation, not tabs.
26247         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26248         * m4/*.m4: Untabify.
26249         * build-aux/*.h: Untabify.
26250         * tests/**/*.[hc]: Untabify.
26251         * README: New section "Indent with spaces, not TABs", based on
26252         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
26253         * NEWS: Mention the change.
26254
26255 2009-12-10  Bruno Haible  <bruno@clisp.org>
26256
26257         pty test: Fix link error.
26258         * modules/pty-tests (Makefile.am): Add the default LDADD value to
26259         test_pty_LDADD.
26260
26261 2009-12-07  Simon Josefsson  <simon@josefsson.org>
26262
26263         * modules/pty: New file.
26264         * modules/pty-tests: New file.
26265         * m4/pty.m4: New file.
26266         * tests/test-pty.c: New file.
26267         * doc/glibc-headers/pty.texi: Modified.
26268         * doc/glibc-functions/forkpty.texi: Modified.
26269         * doc/glibc-functions/openpty.texi: Modified.
26270
26271 2009-12-10  Bruno Haible  <bruno@clisp.org>
26272
26273         Avoid syntax error in C++ mode.
26274         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
26275
26276 2009-12-10  Bruno Haible  <bruno@clisp.org>
26277
26278         Use sed with option -e.
26279         * gnulib-tool (func_version, func_emit_copyright_notice,
26280         func_emit_initmacro_end, func_import, func_create_testdir): Pass
26281         option -e to sed.
26282         * modules/link-warning (Makefile.am): Likewise.
26283
26284 2009-12-10  Jim Meyering  <meyering@redhat.com>
26285
26286         mgetgroups: do not write bytes beyond end of malloc'd buffer
26287         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
26288         username, we call getgroups with a one-element-shorter buffer,
26289         but still told it the length was original, max_n_groups.
26290
26291 2009-12-09  Eric Blake  <ebb9@byu.net>
26292
26293         cloexec: relax license
26294         * modules/cloexec (Maintainer): Add myself.
26295         (License): Use LGPL, not GPL.
26296
26297         link-warning: optimize generation
26298         * modules/link-warning (Makefile.am): Reduce process usage.
26299
26300 2009-12-09  Bruno Haible  <bruno@clisp.org>
26301
26302         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
26303         workaround was added on 2009-11-17.
26304
26305 2009-12-09  Jim Meyering  <meyering@redhat.com>
26306             Bruno Haible  <bruno@clisp.org>
26307
26308         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26309         * modules/link-warning (Makefile.am): Make the comment-removing sed
26310         command more robust in the face of bootstrap-prepended comment lines.
26311
26312 2009-12-09  Bruno Haible  <bruno@clisp.org>
26313
26314         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
26315         most one group.
26316
26317 2009-12-09  Simon Josefsson <simon@josefsson.org>
26318             Bruno Haible  <bruno@clisp.org>
26319
26320         * build-aux/link-warning.h: Add copyright notice.
26321         * modules/link-warning (Makefile.am): Generate link-warning.h from
26322         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
26323         * NEWS: Mention change in link-warning module.
26324         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
26325         * modules/dirent (Makefile.am): Add dependency to dirent.h.
26326         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
26327         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26328         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26329         * modules/math (Makefile.am): Add dependency to math.h.
26330         * modules/search (Makefile.am): Add dependency to search.h.
26331         * modules/signal (Makefile.am): Add dependency to signal.h.
26332         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26333         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26334         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26335         * modules/string (Makefile.am): Add dependency to string.h.
26336         * modules/strings (Makefile.am): Add dependency to strings.h.
26337         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26338         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26339         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26340         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26341         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26342         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26343         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26344         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26345         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26346
26347 2009-12-09  Bruno Haible  <bruno@clisp.org>
26348
26349         fchdir: Optimize away rpl_fstat when possible.
26350         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26351         REPLACE_OPEN_DIRECTORY.
26352         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26353
26354 2009-12-09  Bruno Haible  <bruno@clisp.org>
26355
26356         * lib/fchdir.c: Update comment.
26357
26358 2009-12-09  Bruno Haible  <bruno@clisp.org>
26359
26360         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26361
26362 2009-12-08  Eric Blake  <ebb9@byu.net>
26363
26364         fchdir: avoid memory leak on re-registration.
26365         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26366
26367 2009-12-08  Jim Meyering  <meyering@redhat.com>
26368
26369         init.sh: avoid Solaris 10 /bin/sh portability problem
26370         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26371         sourced script:
26372           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26373           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26374           bar
26375         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26376         and two tests used that idiom.
26377         * tests/init.sh: Update suggested usage comments.
26378         (path_prepend_): New function, to be used in place
26379         of the --src-path=DIR option.
26380         (setup_): Move PATH-prepending code into path_prepend_.
26381         * tests/test-pread.sh: Adapt to new usage.
26382         * tests/test-xalloc-die.sh: Likewise.
26383
26384 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26385
26386         * doc/gnulib.texi (Glibc pty.h): Add.
26387         * doc/glibc-functions/forkpty.texi: Add.
26388         * doc/glibc-functions/openpty.texi: Add.
26389         Suggested by Bruno Haible.
26390
26391 2009-12-08  Eric Blake  <ebb9@byu.net>
26392
26393         fchdir: fix logic bugs
26394         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26395         * tests/test-fchdir.c (main): Enhance test.
26396         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26397         is in use.
26398
26399         dup2: fix logic bugs
26400         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26401         REPLACE_DUP2 to decide when rpl_dup2 is needed.
26402         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
26403         exists.
26404         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
26405
26406 2009-12-07  Eric Blake  <ebb9@byu.net>
26407
26408         unlink: fix m4 detection
26409         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
26410
26411         unistd-safer: add unit test
26412         * modules/unistd-safer-tests: New file.
26413         * tests/test-dup-safer.c: Likewise.
26414         * tests/test-cloexec.c (setmode): Avoid compiler warning.
26415         * tests/test-dup2.c (setmode): Likewise.
26416         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
26417
26418         cloexec: preserve text vs. binary across dup_cloexec
26419         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
26420         mode.
26421         * modules/dup2-tests (Depends-on): Add binary-io.
26422         * modules/cloexec-tests (Depends-on): Likewise.
26423         * tests/test-dup2.c (setmode, is_mode): New helpers.
26424         (main): Add tests that translation mode is preserved.
26425         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
26426         Reported by Bruno Haible.
26427
26428         mgetgroups: reduce duplicate listings
26429         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
26430         resulting array.
26431         * tests/test-chown.h (test_chown): Simplify client.
26432         * tests/test-lchown.h (test_lchown): Likewise.
26433
26434 2009-12-06  Bruno Haible  <bruno@clisp.org>
26435
26436         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
26437         value.
26438
26439 2009-12-06  Bruno Haible  <bruno@clisp.org>
26440
26441         * lib/progname.c: Include stdio.h, stdlib.h.
26442         (set_program_name): Reject a NULL argument.
26443
26444 2009-12-05  Eric Blake  <ebb9@byu.net>
26445
26446         pipe2-safer: new module
26447         * modules/pipe2-safer: New file.
26448         * lib/unistd-safer.h (pipe2_safer): New prototype.
26449         * lib/unistd--.h (pipe2): New wrapper.
26450         * lib/pipe-safer.c (pipe2_safer): New function.
26451         * modules/pipe (Depends-on): Add pipe2-safer.
26452         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
26453
26454         stdlib-safer: preserve cloexec flag for mkostemp[s]
26455         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
26456         fd_safer_flag.
26457
26458         unistd-safer: allow preservation of cloexec status via flag
26459         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
26460         prototypes.
26461         * lib/dup-safer.c (dup_safer_flag): New function.
26462         * lib/fd-safer.c (fd_safer_flag): Likewise.
26463         * modules/cloexec (configure.ac): Set witness.
26464
26465         test-dup2: enhance test
26466         * modules/dup2-tests (Depends-on): Add cloexec.
26467         * tests/test-dup2.c (main): Enhance test.
26468
26469         cloexec: add dup_cloexec
26470         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
26471         header and comments.
26472         * lib/cloexec.c (set_cloexec_flag): Add comments.
26473         (dup_cloexec): New function, with mingw implementation borrowed
26474         from...
26475         * lib/w32spawn.h (dup_noinherit): ...here.
26476         * modules/execute (Depends-on): Add cloexec.
26477         * modules/pipe (Depends-on): Likewise.
26478         * modules/cloexec (Depends-on): Add dup2.
26479         * modules/cloexec-tests (Files): New file.
26480         * tests/test-cloexec.c: Likewise.
26481
26482         test-xalloc-die: fix test for mingw
26483         * modules/xalloc-die-tests (Files): Add tests/init.sh.
26484         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
26485         directory and .exe suffix off argv[0] output.
26486
26487         test-fseeko: fix test for mingw
26488         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
26489         than undefining fseek, so test will pass on mingw.
26490
26491 2009-12-05  Bruno Haible  <bruno@clisp.org>
26492
26493         * lib/progname.h (set_program_name): Clarify specification.
26494         * lib/progname.c (set_program_name): Likewise.
26495         Reported by Jim Meyering.
26496
26497 2009-12-05  Jim Meyering  <meyering@redhat.com>
26498
26499         maint.mk: backslash-escape parens in default regexp
26500         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
26501         backslash-escape the literal parentheses.
26502
26503         maint.mk: news-date-check: use grep -E
26504         * top/maint.mk (today): Define a Make variable, not a...
26505         (news-date-check): ...shell variable.
26506         (news-date-regexp): Use the Make variable.
26507         Use grep's -E option.  Change the failing diagnostic to mention
26508         the variable, $(news-date-regexp).
26509
26510 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
26511
26512         maintainer-makefile: allow customization of NEWS entry format
26513         * top/maint.mk (news-date-regexp): New overridable variable.
26514         (news-date-check): Use it.
26515
26516 2009-12-04  Eric Blake  <ebb9@byu.net>
26517
26518         mgetgroups: add xgetgroups, and avoid ENOSYS failures
26519         * lib/mgetgroups.h (xgetgroups): New prototype.
26520         * lib/mgetgroups.c (xgetgroups): New wrapper.
26521         (mgetgroups): Handle ENOSYS.
26522         * modules/mgetgroups (Depends-on): Add realloc.
26523         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
26524
26525         mgetgroups: avoid argument promotion issues with -1
26526         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
26527         for invalid gid_t.
26528         * tests/test-chown.h (getegid, test_chown): Likewise.
26529         * tests/test-lchown.h (getegid, test_lchown): Likewise.
26530
26531 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
26532
26533         exclude: Fix header file problems.
26534         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
26535
26536 2009-12-01  Jim Meyering  <meyering@redhat.com>
26537
26538         fts: fts_open: do not let an empty string cause immediate failure
26539         This is required in support of GNU rm, for which the command
26540         "rm A '' B" must process and remove both A and B, in spite of
26541         the empty string argument.
26542         * lib/fts.c (fts_open): Do not let the presence of an empty string
26543         cause fts_open to fail immediately.  Most fts-using tools must be
26544         able to process all arguments, in order, and can be expected to
26545         diagnose such arguments themselves.
26546
26547 2009-11-30  Eric Blake  <ebb9@byu.net>
26548
26549         utimens: fix compilation error
26550         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
26551         Declare variable at right scope.
26552
26553 2009-11-29  Jim Meyering  <meyering@redhat.com>
26554
26555         bootstrap: handle perl-5.11's changed --version output
26556         * build-aux/bootstrap (get_version): Handle perl separately,
26557         since perl-5.11's --version output is different.
26558
26559 2009-11-28  Jim Meyering  <meyering@redhat.com>
26560
26561         userspec: depend on the inttostr module, too
26562         * modules/userspec (Depends-on): Add inttostr.
26563
26564         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
26565         * lib/userspec.c (parse_with_separator): Do not accept a user ID
26566         number of MAXUID when it evaluates to (uid_t) -1.
26567         Likewise for group ID.  Reported by Matt McCutchen in
26568         <http://savannah.gnu.org/bugs/?28113>
26569
26570         userspec: reformat to use spaces, not TABs
26571         * lib/userspec.c: Expand TABs to spaces.
26572         Add Emacs' "indent-tabs-mode: nil" hint.
26573
26574 2009-11-27  Eric Blake  <ebb9@byu.net>
26575
26576         getopt-gnu: flush out another BSD bug
26577         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
26578         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
26579         flush out BSD bug.
26580         * tests/test-getopt.h (test_getopt): End lists with NULL.
26581         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26582         (test_getopt_long_posix): Enhance test.
26583         * modules/getopt-posix-tests (Depends-on): Add stdbool.
26584         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
26585         getopt-gnu.
26586         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26587         Likewise.
26588
26589 2009-11-27  Simon Josefsson  <simon@josefsson.org>
26590
26591         * modules/idpriv-droptemp-tests (Notice): Fix text.
26592
26593 2009-11-27  Jim Meyering  <meyering@redhat.com>
26594
26595         test-xalloc-die: avoid spurious failure due to libtool argv difference
26596         In a libtool-enabled project, this test would fail due to a difference
26597         in the emitted program name, e.g.,
26598         -test-xalloc-die: memory exhausted
26599         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
26600         Use program to avoid that.
26601         * modules/xalloc-die-tests (Depends-on): Add progname.
26602         * tests/test-xalloc-die.c: Include progname.h".
26603         (program_name): Remove decl.
26604         (main): Call set_program_name.
26605         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
26606
26607 2009-11-26  Richard Jones  <rjones@redhat.com>
26608
26609         w32sock: leave win32 error in place.
26610         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
26611
26612 2009-11-26  Eric Blake  <ebb9@byu.net>
26613
26614         init.sh: suggest to use skip_ and fail_ functions in comments
26615         * tests/init.sh: Add a sentence.
26616
26617 2009-11-25  Bruno Haible  <bruno@clisp.org>
26618
26619         init.sh: add documentation in comments
26620         * tests/init.sh: Add some developer and user documentation.
26621
26622 2009-11-26  Jim Meyering  <meyering@redhat.com>
26623
26624         init.sh: accommodate even those who specify bogus srcdir manually
26625         * tests/init.sh: Normally, srcdir is guaranteed by automake and
26626         configure-time tests to be sanitized, so that there is no need to
26627         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
26628         (with no double quotes) suffices.  However, since tests may be
26629         invoked manually, and since you may explicitly set srcdir to the
26630         name of a directory containing spaces, do quote its uses here.
26631         * tests/test-pread.sh: Likewise.
26632         Suggested by Bruno Haible.
26633
26634         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
26635         * tests/test-pread.sh: Write no data into the pipe, because
26636         test-pread actually reads none.  This avoids a diagnostic,
26637         "bash: echo: write error: Broken pipe", that arises in the unusual
26638         event something is ignoring SIGPIPE, and might be interpreted
26639         as some sort of failure.  Reported by Bruno Haible.
26640
26641 2009-11-25  Jim Meyering  <meyering@redhat.com>
26642
26643         test-pread: cover failure with ESPIPE and EINVAL
26644         * tests/test-pread.c (main): Test for failure, too.
26645         * tests/test-pread.sh: Invoke with stdin on a pipe.
26646         Suggested by Eric Blake.
26647
26648         pread: improvement and fix
26649         * modules/pread (Depends-on): Depend on lseek, for portability to
26650         e.g., mingw.  Suggested by Eric Blake.
26651         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
26652
26653         unistd.in.h: correct declaration of pread
26654         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
26655         Reported by Richard W.M. Jones.
26656
26657         test-pread.sh: distribute the test script
26658         * modules/pread-tests (Files): Include test-pread.sh.
26659
26660         test-pread.sh: clean up
26661         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
26662         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
26663         That is unnecessary, since it's always ".".
26664         Suggestion from Eric Blake.
26665
26666         test-pread.sh: make executable
26667         * tests/test-pread.sh: Set executable bit.
26668         Reported by Eric Blake.
26669
26670         correct typo in test-pread.sh
26671         * tests/test-pread.sh: Add #! line.
26672
26673         test pread
26674         * tests/test-pread.c: New file.
26675         * tests/test-pread.sh: Likewise.
26676         * modules/pread-tests: Likewise.
26677
26678         pread: new module
26679         * modules/pread: New file.
26680         * lib/unistd.in.h (pread): Define/declare.
26681         * lib/pread.c (pread): New file.
26682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
26683         * modules/unistd (Makefile.am): Substitute witnesses.
26684         * doc/posix-functions/pread.texi (pread): Update.
26685         * MODULES.html.sh: Add pread.
26686
26687 2009-11-25  Jim Meyering  <meyering@redhat.com>
26688
26689         tests/init.sh: new file to be used via most *.sh tests
26690         * tests/init.sh: New file.
26691
26692 2009-11-25  Eric Blake  <ebb9@byu.net>
26693
26694         utimens: work around older Linux failure with symlinks
26695         * lib/utimens.c (lutimensat_works_really): New variable.
26696         (fdutimens, lutimens): Use it to manage kernels that support
26697         nanosecond times on files, but not on symlinks.
26698         Reported by OndÅ™ej Vašík.
26699
26700         utimes: fix configure grammar
26701         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
26702
26703 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
26704
26705         regex: Fix fastmap for multibyte character ranges.
26706         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
26707         characters when a multibyte character range is included.
26708
26709 2009-11-22  Andy Wingo  <wingo@pobox.com>
26710
26711         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
26712         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
26713
26714 2009-11-24  Bruno Haible  <bruno@clisp.org>
26715
26716         doc: Most *_l functions exist in MacOS X 10.5.
26717         * doc/posix-functions/duplocale.texi: Update platforms list.
26718         * doc/posix-functions/freelocale.texi: Likewise.
26719         * doc/posix-functions/newlocale.texi: Likewise.
26720         * doc/posix-functions/uselocale.texi: Likewise.
26721         * doc/posix-functions/isalnum_l.texi: Likewise.
26722         * doc/posix-functions/isalpha_l.texi: Likewise.
26723         * doc/posix-functions/isblank_l.texi: Likewise.
26724         * doc/posix-functions/iscntrl_l.texi: Likewise.
26725         * doc/posix-functions/isdigit_l.texi: Likewise.
26726         * doc/posix-functions/isgraph_l.texi: Likewise.
26727         * doc/posix-functions/islower_l.texi: Likewise.
26728         * doc/posix-functions/isprint_l.texi: Likewise.
26729         * doc/posix-functions/ispunct_l.texi: Likewise.
26730         * doc/posix-functions/isspace_l.texi: Likewise.
26731         * doc/posix-functions/isupper_l.texi: Likewise.
26732         * doc/posix-functions/iswalnum_l.texi: Likewise.
26733         * doc/posix-functions/iswalpha_l.texi: Likewise.
26734         * doc/posix-functions/iswblank_l.texi: Likewise.
26735         * doc/posix-functions/iswcntrl_l.texi: Likewise.
26736         * doc/posix-functions/iswctype_l.texi: Likewise.
26737         * doc/posix-functions/iswdigit_l.texi: Likewise.
26738         * doc/posix-functions/iswgraph_l.texi: Likewise.
26739         * doc/posix-functions/iswlower_l.texi: Likewise.
26740         * doc/posix-functions/iswprint_l.texi: Likewise.
26741         * doc/posix-functions/iswpunct_l.texi: Likewise.
26742         * doc/posix-functions/iswspace_l.texi: Likewise.
26743         * doc/posix-functions/iswupper_l.texi: Likewise.
26744         * doc/posix-functions/iswxdigit_l.texi: Likewise.
26745         * doc/posix-functions/isxdigit_l.texi: Likewise.
26746         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
26747         * doc/posix-functions/strcasecmp_l.texi: Likewise.
26748         * doc/posix-functions/strcoll_l.texi: Likewise.
26749         * doc/posix-functions/strfmon_l.texi: Likewise.
26750         * doc/posix-functions/strftime_l.texi: Likewise.
26751         * doc/posix-functions/strncasecmp_l.texi: Likewise.
26752         * doc/posix-functions/strxfrm_l.texi: Likewise.
26753         * doc/posix-functions/tolower_l.texi: Likewise.
26754         * doc/posix-functions/toupper_l.texi: Likewise.
26755         * doc/posix-functions/towctrans_l.texi: Likewise.
26756         * doc/posix-functions/towlower_l.texi: Likewise.
26757         * doc/posix-functions/towupper_l.texi: Likewise.
26758         * doc/posix-functions/wcscoll_l.texi: Likewise.
26759         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
26760         * doc/posix-functions/wctrans_l.texi: Likewise.
26761         * doc/posix-functions/wctype_l.texi: Likewise.
26762         * doc/glibc-functions/strptime_l.texi: Likewise.
26763         * doc/glibc-functions/strtod_l.texi: Likewise.
26764         * doc/glibc-functions/strtof_l.texi: Likewise.
26765         * doc/glibc-functions/strtol_l.texi: Likewise.
26766         * doc/glibc-functions/strtold_l.texi: Likewise.
26767         * doc/glibc-functions/strtoll_l.texi: Likewise.
26768         * doc/glibc-functions/strtoul_l.texi: Likewise.
26769         * doc/glibc-functions/strtoull_l.texi: Likewise.
26770         * doc/glibc-functions/wcsftime_l.texi: Likewise.
26771         * doc/glibc-functions/wcstod_l.texi: Likewise.
26772         * doc/glibc-functions/wcstof_l.texi: Likewise.
26773         * doc/glibc-functions/wcstol_l.texi: Likewise.
26774         * doc/glibc-functions/wcstold_l.texi: Likewise.
26775         * doc/glibc-functions/wcstoll_l.texi: Likewise.
26776         * doc/glibc-functions/wcstoul_l.texi: Likewise.
26777         * doc/glibc-functions/wcstoull_l.texi: Likewise.
26778
26779 2009-11-24  Bruno Haible  <bruno@clisp.org>
26780
26781         duplocale: Fix logic bug.
26782         * lib/duplocale.c: Don't include <langinfo.h>.
26783         (_NL_LOCALE_NAME): Remove macro.
26784         (rpl_duplocale): Use setlocale instead of nl_langinfo.
26785         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
26786
26787 2009-11-23  Jim Meyering  <meyering@redhat.com>
26788
26789         test-update-copyright: don't hard-code /usr/bin/perl
26790         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
26791         perl to print the current year.  Gilles Espinasse reported that
26792         the replaced use of perl was hard-coded as /usr/bin/perl.
26793
26794 2009-11-23  Bruno Haible  <bruno@clisp.org>
26795
26796         duplocale: Add support for glibc 2.3.x.
26797         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
26798
26799 2009-11-22  Bruno Haible  <bruno@clisp.org>
26800
26801         vasnprintf: Tiny optimization.
26802         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
26803         MacOS X.
26804
26805 2009-11-22  Bruno Haible  <bruno@clisp.org>
26806
26807         Tests for module 'duplocale'.
26808         * modules/duplocale-tests: New file.
26809         * tests/test-duplocale.c: New file.
26810
26811         New module 'duplocale'.
26812         * m4/duplocale.m4: New file.
26813         * lib/locale.in.h (duplocale): New declaration.
26814         * lib/duplocale.c: New file.
26815         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
26816         gl_LOCALE_H_DEFAULTS): New macros.
26817         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
26818         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
26819         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
26820         REPLACE_DUPLOCALE.
26821         * modules/duplocale: New file.
26822         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
26823
26824 2009-11-22  Bruno Haible  <bruno@clisp.org>
26825
26826         * modules/locale-tests (configure.ac): Test for newlocale function.
26827         * tests/test-locale.c: When the system has extended locale functions,
26828         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
26829
26830         locale: Make locale_t available when possible.
26831         * lib/locale.in.h: Include <xlocale.h> when it exists.
26832         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
26833         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
26834         * modules/locale (Depends-on): Add extensions.
26835         (Makefile.am): Also substitute HAVE_XLOCALE_H.
26836         * doc/posix-headers/locale.texi: Document the problem with locale_t.
26837
26838 2009-11-22  Bruno Haible  <bruno@clisp.org>
26839
26840         Add comments.
26841         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
26842         invocation.
26843         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
26844         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26845         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26846
26847 2009-11-22  Bruno Haible  <bruno@clisp.org>
26848
26849         error: account for the possibility of freopen (stdout).
26850         * lib/error.c: Include <unistd.h>.
26851         (flush_stdout): New function, extracted from error and error_at_line.
26852         Determine stdout's fd dynamically.
26853         (error, error_at_line): Invoke flush_stdout.
26854         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
26855         * modules/error (Depends-on): Add unistd.
26856
26857 2009-11-22  Bruno Haible  <bruno@clisp.org>
26858
26859         diffseq: Add comment.
26860         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
26861
26862 2009-11-22  Jim Meyering  <meyering@redhat.com>
26863
26864         c-stack: avoid defining an unused static function
26865         * lib/c-stack.c (find_stack_direction): Do not define this function
26866         when it will not be used.
26867
26868         diffseq: avoid spurious gcc warnings
26869         * lib/diffseq.h (IF_LINT2): Define.
26870         (compareseq): Use it to initialize two members of "part".
26871         This avoids two used-uninitialized warnings.
26872
26873 2009-11-21  Jim Meyering  <meyering@redhat.com>
26874
26875         c-stack: avoid "ignoring return value of `write'" warning
26876         * lib/c-stack.c: Include "ignore-value.h".
26877         (die): Explicitly ignore each write return value.
26878         * modules/c-stack (Depends-on): Add ignore-value.
26879
26880 2009-11-21  Bruno Haible  <bruno@clisp.org>
26881
26882         diffseq: reduce scope of variable 'best'.
26883         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
26884         variable, earlier used for two different purposes.
26885
26886 2009-11-21  Jim Meyering  <meyering@redhat.com>
26887
26888         diffseq: remove useless assignment to "best"
26889         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
26890         assignment.  At that point "best" is already guaranteed to be zero.
26891
26892 2009-11-20  Eric Blake  <ebb9@byu.net>
26893
26894         build: mention ftp redirector in release announcements
26895         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
26896         values that used to come from cfg.mk; mention FTP redirect URL.
26897         * build-aux/announce-gen: Mention the mirror list.
26898         Suggested by Karl Berry.
26899
26900         nanosleep: improve port to mingw
26901         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
26902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
26903         LIB_NANOSLEEP, but only when needed.
26904         * modules/select (Link): Document LIBSOCKET.
26905         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
26906         enough.
26907
26908         nanosleep: work around cygwin bug
26909         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
26910         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
26911         bug.
26912         (getnow): Delete, not needed.
26913         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
26914         LIB_CLOCK_GETTIME.
26915         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
26916         clock-time, gettime.
26917         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
26918         bug.
26919         * modules/nanosleep-tests: New test.
26920         * tests/test-nanosleep.c: New file.
26921
26922         sleep: work around cygwin bug
26923         * lib/sleep.c (rpl_sleep): Work around the bug.
26924         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
26925         (gl_PREREQ_SLEEP): Delete unused macro.
26926         * modules/sleep (Depends-on): Add verify.
26927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26928         * modules/unistd (Makefile.am): Substitute witness.
26929         * lib/unistd.in.h (sleep): Update prototype.
26930         * doc/posix-functions/sleep.texi (sleep): Document the bug.
26931         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
26932         * modules/sleep-tests (Depends-on): Check for alarm.
26933
26934 2009-11-20  Jim Meyering  <meyering@redhat.com>
26935
26936         maint.mk: improve sc_prohibit_magic_number_exit
26937         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
26938         so it does not match uses like System.exit(1).
26939         Add comments showing how to correct all offenders.
26940
26941 2009-11-19  Eric Blake  <ebb9@byu.net>
26942
26943         xalloc-die-tests: add missing library
26944         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
26945
26946         test-xvasprintf: silence compiler warnings
26947         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
26948         empty string from gcc.
26949
26950 2009-11-19  Jim Meyering  <meyering@redhat.com>
26951
26952         xfreopen: new module, from coreutils
26953         * modules/xfreopen: New module.
26954         * lib/xfreopen.c: New file.
26955         * lib/xfreopen.h: New file.
26956         * MODULES.html.sh (File stream based Input/Output"): Add it.
26957
26958 2009-11-19  Eric Blake  <ebb9@byu.net>
26959
26960         manywarnings: depend on warnings
26961         * modules/manywarnings (Depends-on): Add warnings.
26962
26963         build: avoid compiler warnings
26964         * lib/select.c (rpl_select): Delete unused variable.
26965         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
26966
26967 2009-11-18  Eric Blake  <ebb9@byu.net>
26968
26969         tests: avoid false negative with --with-packager
26970         * tests/test-version-etc.sh: Discard packager information.
26971         * tests/test-argp-version-etc-1.sh: Likewise.
26972         Reported by Mike Frysinger.
26973
26974         utimens: fix regression on Solaris
26975         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
26976         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
26977         can only change fd timestamps via futimesat.  Instead, use an
26978         additional witness macro to avoid BSD bug.
26979         Reported by Jim Meyering.
26980
26981 2009-11-17  Eric Blake  <ebb9@byu.net>
26982
26983         usleep: use it to simplify tests
26984         * modules/stat-time-tests (Depends-on): Add usleep.
26985         (configure.ac): Drop usleep check.
26986         * modules/chown-tests (Depends-on, configure.ac): Likewise.
26987         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
26988         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
26989         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
26990         * modules/openat-tests (Depends-on, configure.ac): Likewise.
26991         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
26992         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
26993         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
26994         Likewise.
26995         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
26996         * tests/test-lchown.h (nap): Likewise.
26997         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
26998         * tests/test-stat-time.c (nap): Likewise.
26999         * tests/test-utimens-common.h (nap): Update comments.
27000
27001         usleep: new module
27002         * modules/usleep: New file.
27003         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
27004         * lib/usleep.c (usleep): Likewise.
27005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27006         * modules/unistd (Makefile.am): Substitute witnesses.
27007         * lib/unistd.in.h (usleep): Add declaration.
27008         * doc/pastposix-functions/usleep.texi (usleep): Document this.
27009         * MODULES.html.sh (Date and time): Likewise.
27010         * modules/usleep-tests (Depends-on): New test.
27011         * tests/test-usleep.c: New file.
27012
27013         chown: work around OpenBSD bug
27014         * lib/chown.c (rpl_chown): Work around the bug.
27015         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
27016         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
27017         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
27018         * modules/chown (Depends-on): Add stdbool.
27019         * modules/lchown (Depends-on): Likewise.
27020         * doc/posix-functions/chown.texi (chown): Document the bug.
27021         * doc/posix-functions/lchown.texi (lchown): Likewise.
27022         * tests/test-lchown.h (test_chown): Relax test.
27023
27024         mkstemp: avoid conflict with C++ keyword template
27025         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27026         * lib/mkostemp.c (mkostemp): Likewise.
27027         * lib/mkostemps.c (mkostemps): Likewise.
27028         * lib/mkstemp.c (mkstemp): Likewise.
27029         * lib/mkstemps.c (mkstemps): Likewise.
27030
27031         xalloc-die-tests: optimize
27032         * tests/test-xalloc-die.sh: Reduce number of processes.
27033
27034 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27035
27036         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27037         patch from ludo@gnu.org (Ludovic Courtès).
27038
27039 2009-11-17  Jim Meyering  <meyering@redhat.com>
27040
27041         version-etc: use proper license string
27042         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27043         * modules/version-etc-fsf: Likewise.
27044
27045 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27046
27047         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27048         printed to stdout.  Deal with EOL differences.
27049
27050 2009-11-17  Eric Blake  <ebb9@byu.net>
27051
27052         unsetenv: work around Solaris bug
27053         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27054         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27055         Reported by Jim Meyering.
27056
27057         vasnprintf: avoid compiler warnings
27058         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27059         variables.
27060         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27061
27062 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27063
27064         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27065         settings since xalloc-die is no longer the self test,
27066         xalloc-die.sh is.
27067
27068 2009-11-17  Jim Meyering  <meyering@redhat.com>
27069
27070         test-xalloc-die.sh: make the code agree with the commit log
27071         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27072         at the end, just in case you happen to have a test-xalloc-die
27073         program in some other PATH directory.
27074
27075         test-xalloc-die.sh: fix a portability bug
27076         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27077         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27078         Otherwise, argv[0] (as often seen in diagnostics) would be too
27079         system-dependent, sometimes with, and sometimes without the leading "./".
27080
27081         version-etc-fsf: relax license to LGPLv3+
27082         * modules/version-etc-fsf (License): Relax license.
27083
27084 2009-11-16  Eric Blake  <ebb9@byu.net>
27085
27086         xalloc-die-tests: avoid printing null pointer
27087         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27088         shell script.
27089         * tests/test-xalloc-die.c (program_name): Declare.
27090         * tests/test-xalloc-die.sh (tmpfiles): New file.
27091
27092         setenv, unsetenv: work around various bugs
27093         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27094         (setenv) [HAVE_SETENV]: Work around bugs.
27095         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27096         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27097         for bugs.
27098         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27099         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27101         * modules/stdlib (Makefile.am): Update substitutions.
27102         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27103         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27104         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27105         * modules/setenv-tests: New test.
27106         * modules/unsetenv-tests: Likewise.
27107         * tests/test-setenv.c: New file.
27108         * tests/test-unsetenv.c: Likewise.
27109
27110 2009-11-16  Jim Meyering  <meyering@redhat.com>
27111
27112         version-etc: relax license to LGPLv3+
27113         * modules/version-etc (License): Relax license.
27114
27115         better AC_REQUIRE expanded-before-required-warning avoidance
27116         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27117         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27118         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27119         which is no longer needed.
27120
27121 2009-11-16  Eric Blake  <ebb9@byu.net>
27122
27123         test-freading: clean up temporary file
27124         * tests/test-freading.c (main): Remove file on success, and use
27125         ASSERT more liberally.
27126         Reported by Jim Meyering.
27127
27128 2009-11-16  Jim Meyering  <meyering@redhat.com>
27129
27130         avoid new AC_REQUIRE expanded-before-required warnings
27131         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27132         merely using it.
27133         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27134         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27135
27136 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27137
27138         * tests/test-xalloc-die.c: New file.
27139         * modules/xalloc-die-tests: New file.
27140         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27141         XFAIL_TESTS so it can be appended by modules.
27142
27143 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27144
27145         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27146         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27147
27148 2009-11-14  Eric Blake  <ebb9@byu.net>
27149
27150         fnmatch: avoid compiler warning
27151         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27152         to silence compiler warning about mismatch signedness in ?:.
27153         Reported by Robert Millan.
27154
27155         intprops: add double-inclusion guard
27156         * lib/intprops.h: Allow idempotent includes.
27157         Suggested by Bruce Korb.
27158
27159         openat: detect Solaris fchownat bug
27160         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27161         penalizing glibc chownat when only lchownat is broken.
27162         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27163         trailing slash bugs.
27164         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27165         * modules/openat-tests (Files): Include more files.
27166         (Depends-on): Add mgetgroups, sleep, stat-time.
27167         (configure.ac): Add additional checks.
27168         (Makefile.am): Build new test.
27169         * tests/test-fchownat.c: New file.
27170
27171         lchown: detect Solaris and FreeBSD bug
27172         * lib/lchown.c (rpl_lchown): Work around bug.
27173         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27175         * modules/unistd (Makefile.am): Populate it.
27176         * lib/unistd.in.h (lchown): Update declaration.
27177         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27178         * modules/lchown-tests: New file.
27179         * tests/test-lchown.h (test_lchown): Likewise.
27180         * tests/test-lchown.c (main): Likewise.
27181
27182         chown: detect Solaris and FreeBSD bug
27183         * lib/chown.c (rpl_chown): Work around bug.
27184         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27185         (gl_PREREQ_CHOWN): Delete.
27186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27187         * modules/unistd (Makefile.am): Populate it.
27188         * lib/unistd.in.h (chown): Update declaration.
27189         * lib/lchown.c (chown): Update client.
27190         * modules/lchown (Depends-on): Add lstat.
27191         * doc/posix-functions/chown.texi (chown): Document the bug.
27192         * doc/posix-functions/getgroups.texi (getgroups): Document
27193         getgroups pitfall.
27194         * modules/chown-tests: New file.
27195         * tests/test-chown.h (test_chown): Likewise.
27196         * tests/test-chown.c (main): Likewise.
27197
27198 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27199
27200         gnulib-tool: correctly detect absence of m4 directories
27201         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27202
27203 2009-11-14  Jim Meyering  <meyering@redhat.com>
27204
27205         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27206         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27207
27208 2009-11-14  John W. Eaton  <jwe@gnu.org>
27209
27210         strftime.h: wrap funtion declaration in extern "C" block
27211         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27212
27213 2009-11-13  Eric Blake  <ebb9@byu.net>
27214
27215         getgroups: avoid compiler warning
27216         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27217
27218         getgroups: work around FreeBSD bug
27219         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27220         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27221         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27222         * tests/test-getgroups.c (main): Fix buffer overrun.
27223
27224         getgroups: avoid compilation failure
27225         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27226         * modules/getgroups (Depends-on): Add stdint.
27227
27228 2009-11-13  Jim Meyering  <meyering@redhat.com>
27229
27230         test-getgroups: avoid compilation failure
27231         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27232
27233 2009-11-13  Eric Blake  <ebb9@byu.net>
27234
27235         mgetgroups: new module, taken from coreutils
27236         * modules/mgetgroups: New file.
27237         * lib/mgetgroups.h: Likewise.
27238         * lib/mgetgroups.c (mgetgroups): Likewise.
27239         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
27240         * MODULES.html.sh (Users and groups): Mention it.
27241
27242         getgroups: don't expose GETGROUPS_T to user
27243         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
27244         an element at a time if GETGROUPS_T is wrong size.
27245         * lib/getugroups.h (getugroups): Change signature.
27246         * lib/unistd.in.h (getgroups): Likewise.
27247         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
27248         signature needs fixing.
27249         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
27250         AC_TYPE_GETGROUPS.
27251         * modules/group-member (Depends-on): Add getgroups.
27252         * lib/group-member.c (group_info, get_group_info): Use gid_t.
27253         (group_member): Rely on getgroups replacement.
27254         * lib/getugroups.c (getugroups): Use gid_t.
27255         * tests/test-getgroups.c (main): Likewise.
27256         * NEWS: Mention the signature change.
27257         * doc/posix-functions/getgroups.texi (getgroups): Mention the
27258         problem with signature.
27259         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
27260         GETGROUPS_T is still useful for setgroups.
27261
27262         getgroups, getugroups: provide stubs for mingw
27263         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
27264         * lib/getugroups.c (getugroups): Likewise.
27265         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
27266         function.  Modernize replacement scheme.
27267         (gl_PREREQ_GETGROUPS): Delete.
27268         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
27269         * modules/getgroups (configure.ac): Declare witness.
27270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27271         * modules/unistd (Depends-on): Substitute witness.
27272         * lib/unistd.in.h (getgroups): Declare replacement.
27273
27274         getgroups: avoid calling exit
27275         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
27276         drop xalloc.
27277         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
27278         dependencies.
27279         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
27280         exiting, in the rare case of malloc failure.
27281
27282         getgroups: fix logic error
27283         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
27284         has more than 20 groups.
27285         * modules/getgroups-tests: New test.
27286         * tests/test-getgroups.c: New file.
27287
27288 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27289
27290         * tests/test-base64.c: Improve.
27291
27292 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27293
27294         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
27295         Blake <ebb9@byu.net>.
27296
27297 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27298
27299         * tests/test-xvasprintf.c: Add %s%s related checks.
27300
27301 2009-11-12  Eric Blake  <ebb9@byu.net>
27302
27303         version-etc: match standards.texi style
27304         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
27305         and use <> only for URLs.
27306
27307 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
27308
27309         fts: do not fail on a submount during traversal
27310         * lib/fts.c (fts_build): Read the stat info again after opening
27311         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
27312         Original report at http://bugzilla.redhat.com/501848.
27313
27314 2009-11-12  Jim Meyering  <meyering@redhat.com>
27315
27316         bootstrap: sync from coreutils
27317         * build-aux/bootstrap (bootstrap_epilogue): New function.
27318         Use git_modules_config in one more place.  This make bootstrap's
27319         --gnulib-srcdir option more useful for testing.
27320
27321         bootstrap: generalize autoheader check
27322         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
27323         AC_CONFIG_HEADERS.
27324
27325 2009-11-11  Eric Blake  <ebb9@byu.net>
27326
27327         mkfifoat: use new modules for Solaris and BSD bugs
27328         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27329         * lib/mkfifoat.c (mknodat): Split...
27330         * lib/mknodat.c (mknodat): ...into new file.
27331         * modules/mkfifoat (Files): Ship new file.
27332         (Depends-on): Add mkfifo, mknod.
27333         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27334         (Depends-on): Add symlink.
27335         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27336         redundant with test_mkfifo.h.
27337         (do_mkfifoat, do_mknodat): New helpers.
27338
27339         mknod: new module
27340         * modules/mknod: New file.
27341         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27342         * lib/mknod.c (mknod): Likewise.
27343         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27344         defaults.
27345         * modules/sys_stat (Makefile.am): Substitute them.
27346         * lib/sys_stat.in.h (mknod): Declare replacement.
27347         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27348         Document it.
27349         * doc/posix-functions/mknod.texi (mknod): Likewise.
27350         * modules/mknod-tests: New test.
27351         * tests/test-mknod.c: Likewise.
27352
27353         mkfifo: new module
27354         * modules/mkfifo: New file.
27355         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27356         * lib/mkfifo.c (mkfifo): Likewise.
27357         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27358         defaults.
27359         * modules/sys_stat (Makefile.am): Substitute them.
27360         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27361         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27362         Document it.
27363         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27364         * modules/mkfifo-tests: New test.
27365         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27366         from test-mkfifoat.c.
27367         * tests/test-mkfifo.c: New file.
27368
27369         readlink: detect FreeBSD bug
27370         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27371         slash on symlink.
27372         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27373         * tests/test-readlink.h (test_readlink): Enhance test.
27374
27375         symlink: detect FreeBSD bug
27376         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27377         slash on symlink.
27378         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27379         * tests/test-symlink.h (test_symlink): Enhance test.
27380
27381 2009-11-10  Eric Blake  <ebb9@byu.net>
27382
27383         link: detect FreeBSD bug
27384         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27385         symlink.
27386         * doc/posix-functions/link.texi (link): Document the bug.
27387         * tests/test-link.h (test_link): Enhance test.
27388         * tests/test-linkat.c (main): Update caller.
27389
27390         unlink, remove: detect FreeBSD bug
27391         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27392         slash on symlink.
27393         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27394         * doc/posix-functions/remove.texi (remove): Likewise.
27395         * tests/test-unlink.h (test_unlink): Enhance test.
27396         * tests/test-remove.c (main): Likewise.
27397
27398 2009-11-09  Eric Blake  <ebb9@byu.net>
27399
27400         rename: detect FreeBSD bug
27401         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
27402         slash on symlink.
27403         * modules/renameat-tests (Depends-on): Add filenamecat.
27404         * tests/test-rename.h (test_rename): Allow one more errno.
27405         * tests/test-renameat.c (main): Likewise.
27406         * doc/posix-functions/rename.texi (rename): Document the bug.
27407
27408         open: detect FreeBSD bug
27409         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
27410         symlink.
27411         * doc/posix-functions/open.texi (open): Document the bug.
27412         * doc/posix-functions/utimes.texi (utimes): Likewise.
27413         * tests/test-open.h (test_open): Add parameters, and test symlink
27414         handling.
27415         * tests/test-open.c (main): Adjust caller.
27416         * tests/test-fcntl-safer.c (main): Likewise.
27417         * modules/open-tests (Depends-on): Add stdbool, symlink.
27418         * modules/fcntl-safer-tests (Depends-on): Likewise.
27419         * tests/test-openat.c (main): Add test-open tests.
27420
27421         stat: detect FreeBSD bug
27422         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
27423         symlink.
27424         * doc/posix-functions/stat.texi (stat): Document the bug.
27425         * tests/test-stat.h (test_stat_func): Add argument.
27426         * tests/test-stat.c (main): Adjust caller.
27427         * tests/test-fstatat.c (main): Likewise.
27428         * modules/stat-tests (Depends-on): Add stdbool, symlink.
27429         Reported by Jim Meyering.
27430
27431 2009-11-09  James Youngman  <jay@gnu.org>
27432
27433         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
27434         * lib/strftime.c: Correct placement of #include "ignore-value.h".
27435
27436 2009-11-08  Jim Meyering  <meyering@redhat.com>
27437
27438         utimens: remove invalid futimesat call
27439         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
27440         It used the file descriptor of the target file as the DIR_FD
27441         parameter and NULL as the file name.  That caused failure with
27442         errno == EFAULT on FreeBSD-8.0-rc2
27443
27444 2009-11-07  Eric Blake  <ebb9@byu.net>
27445
27446         fflush, freadseek: use fseeko, not fseek
27447         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
27448         (clear_ungetc_buffer): Avoid potential problems on large files.
27449         * lib/freadseek.c (freadseek): Likewise.
27450         * modules/freadseek (Depends-on): Add fseeko.
27451         * modules/fseek (configure.ac): Set a witness.
27452         * tests/test-fflush.c (main): Use fseeko.
27453         * tests/test-fpurge.c (fseek): Disable link warning.
27454         * tests/test-freadable.c (fseek): Likewise.
27455         * tests/test-freading.c (fseek): Likewise.
27456         * tests/test-fseeko.c (fseek): Likewise.
27457         * tests/test-ftell.c (fseek): Likewise.
27458         * tests/test-ftello.c (fseek): Likewise.
27459         * tests/test-fwritable.c (fseek): Likewise.
27460         * tests/test-fwriting.c (fseek): Likewise.
27461
27462 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27463
27464         * modules/memchr (Depends-on): Drop getpagesize dependency.
27465
27466 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27467
27468         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
27469         Reported by Ludovic Courtès.
27470         * build-aux/pmccabe2html: Improve example usage.
27471         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
27472
27473 2009-11-06  Jim Meyering  <meyering@redhat.com>
27474
27475         do-release-commit-and-tag: New module.
27476         Automate the release-commit and tag process.
27477         * build-aux/do-release-commit-and-tag: New script, from coreutils.
27478         * modules/do-release-commit-and-tag: New file.
27479         * MODULES.html.sh (Support for maintaining and releasing): Add it.
27480
27481 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27482
27483         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
27484         because test-select.c uses inet_pton.
27485
27486 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27487
27488         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
27489         GETADDRINFO_LIB.  Bump serial number.
27490         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
27491         Suggested by Eric Blake <ebb9@byu.net>.
27492
27493 2009-11-05  Eric Blake  <ebb9@byu.net>
27494
27495         strtod: detect darwin bug
27496         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
27497         Reported by Leo Davis.
27498
27499         freopen-safer: new module
27500         * modules/freopen-safer: New module.
27501         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
27502         * lib/freopen-safer.c (freopen_safer): New file.
27503         * lib/stdio-safer.h (freopen_safer): New declaration.
27504         * lib/stdio--.h (freopen): New override.
27505         * MODULES.html.sh (File stream based Input/Output): Mention it.
27506         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
27507         freopen-safer module.
27508         * doc/posix-functions/stderr.texi (stderr): Likewise.
27509         * doc/posix-functions/stdin.texi (stdin): Likewise.
27510         * doc/posix-functions/stdout.texi (stdout): Likewise.
27511         * modules/freopen-safer-tests: New test.
27512         * tests/test-reopen-safer.c: New file.
27513
27514 2009-11-05  Jim Meyering  <meyering@redhat.com>
27515
27516         maint.mk: Prohibit inclusion of "close-stream.h" without use.
27517         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27518
27519 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27520
27521         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
27522
27523 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27524
27525         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
27526
27527 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27528
27529         Fix link error.
27530         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27531         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27532
27533 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27534
27535         * tests/test-func.c: Also test value of __func__.
27536
27537 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27538
27539         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
27540         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
27541
27542 2009-11-05  Bruno Haible  <bruno@clisp.org>
27543
27544         Fix link error.
27545         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27546         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27547         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
27548
27549 2009-11-05  Bruno Haible  <bruno@clisp.org>
27550
27551         Tests for module 'inet_pton'.
27552         * modules/inet_pton-tests: New file.
27553         * tests/test-inet_pton.c: New file.
27554
27555 2009-11-05  Bruno Haible  <bruno@clisp.org>
27556
27557         Tests for module 'inet_ntop'.
27558         * modules/inet_ntop-tests: New file.
27559         * tests/test-inet_ntop.c: New file.
27560
27561 2009-11-04  Eric Blake  <ebb9@byu.net>
27562
27563         stdlib-safer: wrap all mkstemp variants
27564         * modules/mkostemp (configure.ac): Set witness.
27565         * modules/mkostemps (configure.ac): Likewise.
27566         * modules/mkstemps (configure.ac): Likewise.
27567         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
27568         (mkstemps_safer): Wrap more functions.
27569         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
27570         wrapping.
27571         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
27572         (mkstemps_safer): Implement the wrappers.
27573
27574         mkstemps, mkostemps: new modules
27575         * modules/mkostemps: New module.
27576         * modules/mkstemps: Likewise.
27577         * lib/mkostemps.c (mkostemps): New file.
27578         * lib/mkstemps.c (mkstemps): Likewise.
27579         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
27580         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
27581         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
27582         * modules/stdlib (Makefile.am): Substitute them.
27583         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
27584         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
27585         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27586         * doc/gnulib.texi (Glibc stdlib.h): Include them.
27587         * MODULES.html.sh (File system functions): Mention them.
27588
27589         tempname: resync from glibc
27590         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
27591         same values for __GT_FILE as glibc.  Abort even when assertions
27592         are disabled.
27593         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
27594         match its value otherwise.  Allow idempotent inclusion.
27595         * lib/mkdtemp.c (mkdtemp): Adjust caller.
27596         * lib/mkostemp.c (mkostemp): Likewise.
27597         * lib/mkstemp.c (mkstemp): Likewise.
27598         * lib/tmpfile.c (tmpfile): Likewise.
27599         * NEWS: Document this.
27600
27601         utimens: fix use of futimens on older Linux
27602         * lib/utimens.c (fdutimens): Use updated, rather than original,
27603         timespec to avoid bug in older Linux kernel.
27604         Reported by Simon Josefsson.
27605
27606 2009-11-04  Bruno Haible  <bruno@clisp.org>
27607
27608         Make num_processors more flexible and consistent.
27609         * lib/nproc.h (enum nproc_query): New type.
27610         (num_processors): Add a 'query' argument.
27611         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
27612         (num_processors): Add a 'query' argument. Test the value of the
27613         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
27614         mingw, count the number of CPUs available for the current process.
27615         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
27616         Check for sched_getaffinity and sched_getaffinity_np.
27617         * modules/nproc (Depends-on): Add c-ctype, extensions.
27618         * NEWS: Mention the change.
27619
27620 2009-11-03  Bruno Haible  <bruno@clisp.org>
27621
27622         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
27623
27624 2009-11-03  Jim Meyering  <meyering@redhat.com>
27625
27626         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
27627         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
27628         if it is defined.
27629
27630 2009-11-02  Eric Blake  <ebb9@byu.net>
27631
27632         mktime, timegm: share common declaration
27633         * lib/mktime-internal.h: New file.
27634         * lib/mktime.c: Use it rather than open-coding a declaration.
27635         * lib/timegm.c: Likewise.
27636         * modules/mktime (Files): Ship it.
27637         * modules/timegm (Files): Likewise.
27638         Suggested by Bruno Haible.
27639
27640         test-update-copyright: update test to match script changes
27641         * tests/test-update-copyright.sh: Avoid hard-coding perl
27642         location.  Don't update *.bak created by earlier runs.
27643
27644 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27645             Simon Josefsson  <simon@josefsson.org>
27646             Bruno Haible  <bruno@clisp.org>
27647
27648         Fix link error on Solaris 8.
27649         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
27650         also in libnsl. Define also INET_PTON_LIB.
27651         * modules/inet_pton (Link): New section.
27652
27653 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27654             Bruno Haible  <bruno@clisp.org>
27655
27656         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
27657         * modules/inet_ntop (Link): New section.
27658         Reported by Boyan Kasarov <bkasarov@gmail.com>.
27659
27660 2009-11-02  Eric Blake  <ebb9@byu.net>
27661
27662         maint: avoid compiler warnings in m4 macros
27663         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
27664         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
27665
27666 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27667
27668         * m4/pmccabe2html.m4: Remove file.
27669         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
27670         function.  Change maintainer.
27671         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
27672         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
27673         Courtès).
27674
27675 2009-10-31  Eric Blake  <ebb9@byu.net>
27676
27677         fseeko: fix m4 regression
27678         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
27679         regression from 2009-10-27.
27680         Reported by Ralf Wildenhues.
27681
27682 2009-10-31  Jim Meyering  <meyering@redhat.com>
27683
27684         inttostr: aesthetics and improved (compile-time) safety
27685         Define inttype_is_signed rather than inttype_is_unsigned,
27686         since the sole use is via "#if inttype_is_signed".
27687         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
27688         inttype_is_unsigned.
27689         * lib/offtostr.c (inttype_is_signed): Likewise.
27690         * lib/uinttostr.c (inttype_is_signed): Likewise.
27691         * lib/umaxtostr.c (inttype_is_signed): Likewise.
27692         * lib/inttostr.c (inttostr): Use verify to cross-check the
27693         inttype_is_signed value and the signedness of the actual type.
27694         * modules/inttostr (Depends-on): Add verify.
27695
27696 2009-10-30  Eric Blake  <ebb9@byu.net>
27697
27698         build: avoid compiler warnings
27699         * lib/fchmodat.c (lchmod): Mark unused variables.
27700         * lib/getopt.c (_getopt_initialize): Likewise.
27701         * lib/mktime.c (__mktime_internal): Provide prototype.
27702         * lib/inttostr.c (inttostr): Avoid compiler warning even with
27703         older gcc that do not understand #pragma GCC diagnostic.
27704         * lib/uinttostr.c (inttype_is_unsigned): Define.
27705         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
27706
27707 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27708
27709         stat: fix compilation on AIX
27710         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
27711         only see struct stat64.
27712
27713 2009-10-30  Eric Blake  <ebb9@byu.net>
27714
27715         exclude: make more robust
27716         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
27717         rather than masking a coding bug.
27718         Suggested by Bruno Haible.
27719
27720 2009-10-30  Jim Meyering  <meyering@redhat.com>
27721
27722         perl scripts: remove #!/usr/bin/perl in favor of more portable...
27723         Rather than putting #!/usr/bin/perl on the first line,
27724         start with a variant of what's recommended by "man perlrun" that
27725         invokes the first "perl" program from your shell's search path.
27726         * build-aux/gitlog-to-changelog: Replace #!... as above.
27727         Add a "Local Variables" perl mode setting.
27728         Prompted by a patch from Ludovic Courtès.
27729         Improved by Eric Blake.
27730         * build-aux/useless-if-before-free: Likewise.
27731         * build-aux/announce-gen: Likewise.
27732         * build-aux/update-copyright: Likewise.
27733
27734 2009-10-29  Eric Blake  <ebb9@byu.net>
27735
27736         filenamecat-lgpl: adjust clients
27737         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
27738         filenamecat.
27739         * modules/renameat (Depends-on): Likewise.
27740
27741         filenamecat: split into filenamecat-lgpl
27742         * modules/filenamecat-lgpl: New module.
27743         * modules/filenamecat (Files): Move library-safe files into
27744         filenamecat-lgpl.
27745         (Depends-on): Add filenamecat-lgpl.
27746         (configure.ac): Declare witness.
27747         * lib/filenamecat.h (file_name_concat): Only declare when using
27748         GPL module.
27749         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
27750         Move...
27751         * lib/filenamecat-lgpl.c: ...into new file.
27752         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
27753         (gl_FILE_NAME_CONCAT): Use it.
27754         * MODULES.html.sh (File system functions): Mention new module.
27755
27756         argp: avoid memory leak
27757         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
27758         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
27759         base_name, since the latter malloc()s and can call exit().
27760         Leak introduced 2006-07-03.
27761
27762         dirname-lgpl: adjust clients that don't need full dirname
27763         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
27764         * modules/filenamecat (Depends-on): Likewise.
27765         * modules/linkat (Depends-on): Likewise.
27766         * modules/mkancesdirs (Depends-on): Likewise.
27767         * modules/mkdir (Depends-on): Likewise.
27768         * modules/openat (Depends-on): Likewise.
27769         * modules/savewd (Depends-on): Likewise.
27770         * modules/rename (Depends-on): Likewise.
27771         (License): Relax license.
27772         * modules/mkdir-tests (Depends-on): Drop progname.
27773         (Makefile.am): Delete unneeded LDADD.
27774         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
27775
27776         dirname: split into dirname-lgpl
27777         * modules/dirname-lgpl: New module.
27778         * modules/dirname (Files): Move library-safe files into
27779         dirname-lgpl.
27780         (Depends-on): Add dirname-lgpl.
27781         (configure.ac): Declare witness.
27782         * modules/double-slash-root (License): Relax license.
27783         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
27784         module.
27785         * lib/dirname.c (dir_len, mdir_name): Move...
27786         * lib/dirname-lgpl.c: ...into new file.
27787         * lib/basename.c (last_component, base_len): Move...
27788         * lib/basename-lgpl.c: ...into new file.
27789         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
27790         (gl_DIRNAME): Use it.
27791         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
27792         Mention new module.
27793         * modules/dirname-tests (Depends-on): Add progname.
27794         * tests/test-dirname.c (program_name): Delete.
27795
27796         mkdir: make safe for libraries
27797         * modules/mkdir (Depends-on): Drop xalloc.
27798         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
27799         exit.
27800
27801         tests: avoid some compiler warnings
27802         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
27803         literals.
27804         * tests/test-memchr.c (main): Avoid type mismatch.
27805         * tests/test-arpa_inet.c (main): Avoid unused parameters.
27806         * tests/test-base64.c (main): Likewise.
27807         * tests/test-getdelim.c (main): Likewise.
27808         * tests/test-gethostname.c (main): Likewise.
27809         * tests/test-getline.c (main): Likewise.
27810         * tests/test-netinet_in.c (main): Likewise.
27811         * tests/test-select.c (open_server_socket, main): Likewise.
27812         * tests/test-select-stdin.c (main): Likewise.
27813         * tests/test-sockets.c (main): Likewise.
27814         * tests/test-strsignal.c (main): Likewise.
27815         * tests/test-sys_select.c (main): Likewise.
27816         * tests/test-sys_socket.c (main): Likewise.
27817         * tests/test-u64.c (main): Likewise.
27818         * tests/test-xfprintf-posix.c (main): Likewise.
27819         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
27820
27821         sockets: avoid compiler warning
27822         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
27823
27824         maint: detect usage(1) and other suspicious exits
27825         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
27826
27827 2009-10-29  Jim Meyering  <meyering@redhat.com>
27828
27829         timespec: long-to-int truncation could make timespec_cmp malfunction
27830         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
27831         a multiple of 2^32 nanoseconds as no difference.
27832
27833 2009-10-28  Jim Meyering  <meyering@redhat.com>
27834
27835         fprintftime: wrap macro code argument in "do {...} while(0)"
27836         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
27837         cpy macro must be a statement that can be followed by a semicolon.
27838         Now that the else clause contains a comment and is hence longer
27839         than one line, I require curly braces.  That in turn requires
27840         that we wrap this code block in the standard do...while(0).
27841
27842         fprintftime: remove stray semicolon from previous change
27843         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
27844
27845         fprintftime: avoid a warning about ignored fwrite return value
27846         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
27847         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
27848         that is unsafe.
27849         * modules/fprintftime (Depends-on): Add ignore-value.
27850
27851         exclude: avoid an unwarranted warning
27852         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
27853
27854 2009-10-27  Eric Blake  <ebb9@byu.net>
27855
27856         fseek: avoid compilation failure when fflush is replaced
27857         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
27858         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
27859         module is in use.
27860         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
27861         module is not in use; since REPLACE_FSEEK worked otherwise.
27862         (GNULIB_FTELLO): Likewise for ftell.
27863         Reported by Ian Beckwith and others.
27864
27865 2009-10-27  Bruno Haible  <bruno@clisp.org>
27866
27867         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
27868         Reported by Jim Meyering.
27869
27870 2009-10-27  Jim Meyering  <jim@meyering.net>
27871             Bruno Haible  <bruno@clisp.org>
27872
27873         Avoid warning despite dropping the return value of fwrite.
27874         * lib/unicodeio.c: Include ignore-value.h.
27875         (fwrite_success_callback): Explicitly ignore fwrite's return value.
27876         * modules/unicodeio (Depends-on): Add ignore-value.
27877
27878 2009-10-26  Eric Blake  <ebb9@byu.net>
27879
27880         areadlinkat: fix fallback path
27881         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
27882         pointer and zero.
27883
27884 2009-10-22  Pádraig Brady  <P@draigBrady.com>
27885
27886         Use a better IO block size for modern systems
27887         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
27888         * lib/md2.c: Likewise.
27889         * lib/md4.c: Likewise.
27890         * lib/md5.c: Likewise.
27891         * lib/sha1.c: Likewise.
27892         * lib/sha256.c: Likewise.
27893         * lib/sha512.c: Likewise.
27894
27895 2009-10-22  Eric Blake  <ebb9@byu.net>
27896
27897         tests: avoid several compiler warnings
27898         * tests/test-getcwd.c (main): Avoid buffer underflow.
27899         * tests/test-getdate.c (main): String literals are not safe with
27900         putenv, so use setenv.  Declare unused argument.
27901         * modules/getdate-tests (Depends-on): Add setenv.
27902         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
27903         problems with string literals in char *.
27904         * tests/test-hash.c (main): Avoid shadowing declaration.
27905         (insert_new): Treat string literals as char const *.
27906         * tests/test-getopt.h (test_getopt): Likewise.
27907         (getopt_loop): Alter types to minimize casting elsewhere.
27908         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
27909         (test_getopt_long_posix): Likewise.
27910         (do_getopt_long): Add wrapper to minimize casting.
27911         * tests/test-atexit.c (clear_temp_file): Use void.
27912         * tests/test-areadlink-with-size.c (main): Declare unused
27913         arguments.
27914         * tests/test-areadlink.c (main): Likewise.
27915         * tests/test-areadlinkat-with-size.c (main): Likewise.
27916         * tests/test-areadlinkat.c (main): Likewise.
27917         * tests/test-canonicalize-lgpl.c (main): Likewise.
27918         * tests/test-canonicalize.c (main): Likewise.
27919         * tests/test-dirent-safer.c (main): Likewise.
27920         * tests/test-dirname.c (main): Likewise.
27921         * tests/test-dup2.c (main): Likewise.
27922         * tests/test-fchdir.c (main): Likewise.
27923         * tests/test-fcntl-h.c (main): Likewise.
27924         * tests/test-fcntl-safer.c (main): Likewise.
27925         * tests/test-fdopendir.c (main): Likewise.
27926         * tests/test-fdutimensat.c (main): Likewise.
27927         * tests/test-fflush.c (main): Likewise.
27928         * tests/test-filenamecat.c (main): Likewise.
27929         * tests/test-filevercmp.c (main): Likewise.
27930         * tests/test-fopen-safer.c (main): Likewise.
27931         * tests/test-fopen.c (main): Likewise.
27932         * tests/test-fpending.c (main): Likewise.
27933         * tests/test-fpurge.c (main): Likewise.
27934         * tests/test-freading.c (main): Likewise.
27935         * tests/test-fstatat.c (main): Likewise.
27936         * tests/test-fsync.c (main): Likewise.
27937         * tests/test-futimens.c (main): Likewise.
27938         * tests/test-getndelim2.c (main): Likewise.
27939         * tests/test-gettimeofday.c (main): Likewise.
27940         * tests/test-getopt.c (main): Likewise.
27941         * tests/test-i-ring.c (main): Likewise.
27942         * tests/test-inttypes.c (main): Likewise.
27943         * tests/test-link.c (main): Likewise.
27944         * tests/test-lstat.c (main): Likewise.
27945         * tests/test-math.c (main): Likewise.
27946         * tests/test-md5.c (main): Likewise.
27947         * tests/test-memchr2.c (main): Likewise.
27948         * tests/test-memrchr.c (main): Likewise.
27949         * tests/test-mkdir.c (main): Likewise.
27950         * tests/test-mkdirat.c (main): Likewise.
27951         * tests/test-mkfifoat.c (main): Likewise.
27952         * tests/test-open.c (main): Likewise.
27953         * tests/test-openat-safer.c (main): Likewise.
27954         * tests/test-openat.c (main): Likewise.
27955         * tests/test-quotearg.c (main): Likewise.
27956         * tests/test-rawmemchr.c (main): Likewise.
27957         * tests/test-readlink.c (main): Likewise.
27958         * tests/test-remove.c (main): Likewise.
27959         * tests/test-rename.c (main): Likewise.
27960         * tests/test-renameat.c (main): Likewise.
27961         * tests/test-rmdir.c (main): Likewise.
27962         * tests/test-sha1.c (main): Likewise.
27963         * tests/test-signal.c (main): Likewise.
27964         * tests/test-sigaction.c (main): Likewise.
27965         * tests/test-stat.c (main): Likewise.
27966         * tests/test-stat-time.c (main): Likewise.
27967         * tests/test-stddef.c (main): Likewise.
27968         * tests/test-stdint.c (main): Likewise.
27969         * tests/test-stdio.c (main): Likewise.
27970         * tests/test-stdlib.c (main): Likewise.
27971         * tests/test-strchrnul.c (main): Likewise.
27972         * tests/test-strerror.c (main): Likewise.
27973         * tests/test-string.c (main): Likewise.
27974         * tests/test-strtod.c (main): Likewise.
27975         * tests/test-strverscmp.c (main): Likewise.
27976         * tests/test-symlink.c (main): Likewise.
27977         * tests/test-symlinkat.c (main): Likewise.
27978         * tests/test-sys_stat.c (main): Likewise.
27979         * tests/test-sys_time.c (main): Likewise.
27980         * tests/test-time.c (main): Likewise.
27981         * tests/test-unistd.c (main): Likewise.
27982         * tests/test-unlink.c (main): Likewise.
27983         * tests/test-unlinkat.c (main): Likewise.
27984         * tests/test-utimens.c (main): Likewise.
27985         * tests/test-utimensat.c (main): Likewise.
27986         * tests/test-version-etc.c (main): Likewise.
27987         * tests/test-wchar.c (main): Likewise.
27988         * tests/test-wctype.c (main): Likewise.
27989         * tests/test-xprintf-posix.c (main): Likewise.
27990         * tests/test-posixtm.c (main): Likewise.
27991         (STREQ): Delete unused macro.
27992         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
27993         shadowed variables.
27994         * tests/test-memchr.c (main): Likewise.
27995
27996 2009-10-21  Eric Blake  <ebb9@byu.net>
27997
27998         areadlinkat: avoid failure on older glibc
27999         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
28000         rather than mis-comparing 0 against FUNC_RESULT of char*.
28001
28002 2009-10-21  Bruno Haible  <bruno@clisp.org>
28003
28004         * modules/stpncpy (License): Relicense under LGPLv2+.
28005         Reported by David Lutterkort <lutter@redhat.com>.
28006
28007 2009-10-20  Eric Blake  <ebb9@byu.net>
28008
28009         utimensat: work around Solaris 9 bug
28010         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
28011         has trailing slash bugs.
28012         * tests/test-lutimens.h (test_lutimens): Enhance test.
28013         * tests/test-utimens.h (test_utimens): Likewise.
28014         * doc/posix-functions/utime.texi (utime): Enhance documentation.
28015         * doc/posix-functions/utimes.texi (utimes): Likewise.
28016         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28017         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
28018         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28019         * doc/posix-functions/futimens.texi (futimens): Likewise.
28020
28021         fdutimensat: new module
28022         * modules/fdutimensat: New file.
28023         * lib/fdutimensat.c (fdutimensat): Likewise.
28024         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28025         * MODULES.html.sh (File system functions): Mention module.
28026         * modules/fdutimensat-tests: New test.
28027         * tests/test-fdutimensat.c: Likewise.
28028
28029         doc: regenerate INSTALL
28030         * doc/INSTALL: Reflect recent autoconf update.
28031         * doc/INSTALL.ISO: Likewise.
28032         * doc/INSTALL.UTF-8: Likewise.
28033
28034 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28035
28036         acl: warn if ACL support is not detected
28037         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28038
28039 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28040
28041         * lib/nproc.h: Add extern "C" block for C++.
28042
28043 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28044             Bruno Haible  <bruno@clisp.org>
28045
28046         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28047         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28048         * doc/posix-functions/isalpha.texi: Likewise.
28049         * doc/posix-functions/isblank.texi: Likewise.
28050         * doc/posix-functions/iscntrl.texi: Likewise.
28051         * doc/posix-functions/isdigit.texi: Likewise.
28052         * doc/posix-functions/isgraph.texi: Likewise.
28053         * doc/posix-functions/islower.texi: Likewise.
28054         * doc/posix-functions/isprint.texi: Likewise.
28055         * doc/posix-functions/ispunct.texi: Likewise.
28056         * doc/posix-functions/isspace.texi: Likewise.
28057         * doc/posix-functions/isupper.texi: Likewise.
28058         * doc/posix-functions/isxdigit.texi: Likewise.
28059
28060 2009-10-18  Bruno Haible  <bruno@clisp.org>
28061
28062         Tests for module 'isblank'.
28063         * modules/isblank-tests: New file.
28064         * tests/test-isblank.c: New file.
28065
28066         New module 'isblank'.
28067         * lib/isblank.c: New file.
28068         * m4/isblank.m4: New file.
28069         * modules/isblank: New file.
28070         * doc/posix-functions/isblank.texi: Mention the new module.
28071
28072 2009-10-18  Bruno Haible  <bruno@clisp.org>
28073
28074         New module 'ctype'.
28075         * lib/ctype.in.h: New file.
28076         * m4/ctype.m4: New file.
28077         * modules/ctype: New file.
28078         * doc/posix-headers/ctype.texi: Mention the new module.
28079
28080 2009-10-18  Jim Meyering  <meyering@redhat.com>
28081
28082         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28083         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28084         right after its initialization, rather than farther down.
28085         Keeping these in close proximity makes it easier to ensure
28086         that each such variable is initialized.  E.g.,
28087
28088             LIB_CLOCK_GETTIME=
28089             AC_SUBST([LIB_CLOCK_GETTIME])
28090
28091         This change also increments these serial numbers.
28092         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28093         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28094         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28095
28096 2009-10-18  Bruno Haible  <bruno@clisp.org>
28097
28098         Don't let environment variables perturb build.
28099         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28100         (gl_PREREQ_GETHRXTIME): ... not here.
28101
28102 2009-10-18  Bruno Haible  <bruno@clisp.org>
28103
28104         Avoid symlink attack in localcharset module.
28105         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28106         (O_NOFOLLOW): Define fallback.
28107         (get_charset_aliases): Don't open the file if it is a symbolic link.
28108         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28109         gl_FCNTL_H.
28110         (gl_FCNTL_H): Require it.
28111         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28112         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28113         Reported by Fergal Glynn <fglynn@veracode.com>.
28114
28115 2009-10-18  Bruno Haible  <bruno@clisp.org>
28116
28117         Implement nproc for mingw.
28118         * lib/nproc.c: Include <windows.h>
28119         (num_processors): On native Windows platforms, try GetSystemInfo.
28120
28121 2009-10-18  Bruno Haible  <bruno@clisp.org>
28122
28123         Implement nproc for IRIX.
28124         * lib/nproc.c: Include <sys/sysmp.h>.
28125         (num_processors): On IRIX systems, try sysmp.
28126         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28127
28128 2009-10-18  Bruno Haible  <bruno@clisp.org>
28129
28130         Implement nproc for HP-UX.
28131         * lib/nproc.c: Include <sys/pstat.h>
28132         (num_processors): On HP-UX systems, try pstat_getdynamic.
28133         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28134         pstat_getdynamic.
28135
28136 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28137             Bruno Haible  <bruno@clisp.org>
28138
28139         Implement nproc for NetBSD, OpenBSD.
28140         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28141         (ARRAY_SIZE): New macro.
28142         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28143         * m4/nproc.m4: New file.
28144         * modules/nproc (Files): Add m4/nproc.m4.
28145         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28146         (Makefile.am): Instead, augment lib_SOURCES.
28147
28148 2009-10-18  Bruno Haible  <bruno@clisp.org>
28149
28150         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28151         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28152         sys/param.h.
28153
28154 2009-10-16  Eric Blake  <ebb9@byu.net>
28155
28156         utimensat: new module
28157         * modules/utimensat: New file.
28158         * lib/utimensat.c (utimensat): Likewise.
28159         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28160         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28161         so we can work around Linux bugs.
28162         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28163         * modules/sys_stat (Makefile.am): Substitute them.
28164         * lib/sys_stat.in.h (utimensat): Declare it.
28165         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28166         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28167         * modules/utimensat-tests: New test.
28168         * tests/test-utimensat.c: Likewise.
28169
28170         utimens: let lutimens work on non-symlinks
28171         * lib/utimens.c (lutimens): Fall back to utimens rather than
28172         failing with ENOSYS, when file is not a symlink.
28173         (utimens): Reduce redirection.
28174         * tests/test-lutimens.h (test_lutimens): Update test to cover
28175         non-symlinks.
28176         * tests/test-utimens.h (test_utimens): Update test to cover
28177         symlinks.
28178         * tests/test-utimens.c (main): Update caller.
28179
28180         utimens: cache whether utimensat syscall works
28181         * lib/utimens.c (utimensat_works_really): New cache variable.
28182         (fdutimens, lutimens): Use it to avoid failing syscall.
28183
28184         test-stat-time, test-utimens: improve portability
28185         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28186         ext4 on alpha, and for cygwin.
28187         * tests/test-utimens-common.h: New file.
28188         (nap): Factor delays into single function.
28189         * tests/test-lutimens.h (test_lutimens): Use new header.
28190         * tests/test-futimens.h (test_futimens): Likewise.
28191         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28192         timestamps to occur from same machine, as was done previously for
28193         test_utimens.
28194         * modules/utimens-tests (Files): Ship new file.
28195         * modules/futimens-tests (Files): Likewise.
28196         Reported in part by Jim Meyering.
28197
28198         sys_stat: sort replacement declarations
28199         * lib/sys_stat.in.h: Sort declarations.
28200         * lib/futimens.c (futimens): Fix typo.
28201
28202 2009-10-15  Jim Meyering  <meyering@redhat.com>
28203
28204         don't let environment settings perturb build
28205         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28206         could cause a configure-time and/or build-time malfunction.
28207         Typically, a configure-time function-in-library test is performed
28208         via code like this:
28209
28210           LIB_VAR=
28211           AC_SUBST([LIB_VAR])
28212           prefix_saved_LIBS=$LIBS
28213             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28214                        [test "$ac_cv_search_FUNC" = "none required" ||
28215                         LIB_VAR=$ac_cv_search_FUNC])
28216           LIBS=$prefix_saved_LIBS
28217
28218         However, in each of the files affected by this change, the LIB_VAR=
28219         initialization was omitted.  Thus, when set in the environment, its
28220         value would propagate into generated Makefiles when FUNC is not found
28221         in LIB_NAME.
28222         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28223         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28224         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28225
28226 2009-10-14  Eric Blake  <ebb9@byu.net>
28227
28228         fchdir: avoid infinite recursion in mingw
28229         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28230         recursing.
28231
28232         test-stat-time: port to mingw
28233         * tests/test-stat-time.c (force_unlink): Return a value.
28234         (test_ctime) [W32]: Fix compilation error.
28235         (nap): Don't call usleep with too large an argument.  Use
28236         force_unlink.
28237         * doc/pastposix-functions/usleep.texi (usleep): Document the
28238         portability issue.
28239
28240 2009-10-13  Jim Meyering  <meyering@redhat.com>
28241
28242         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
28243         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
28244         * modules/pipe-filter-ii: Likewise.
28245         * modules/sys_socket-tests: Likewise.
28246         * modules/tsearch-tests: Likewise.
28247         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
28248         (check): Depend on it.
28249
28250 2009-10-12  Eric Blake  <ebb9@byu.net>
28251
28252         utimens-tests: port to NFS file systems
28253         * tests/test-utimens.h (test_utimens): Refactor utimecmp
28254         comparisons to avoid spurious failures from timestamp drift
28255         between NFS machines.
28256
28257 2009-10-12  Eric Blake  <ebb9@byu.net>
28258
28259         stat-time-tests: minor cleanups
28260         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
28261         * tests/test-stat-time.c (nap): Separate assignment from call.
28262         Suggested by Paolo Bonzini and Bruno Haible.
28263
28264         sys_stat: guarantee struct timespec
28265         * lib/sys_stat.in.h (includes): Always include <time.h>
28266         * modules/sys_stat (Depends-on): Add time.
28267         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
28268         mode_t permission values.
28269         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
28270         get at subsecond timestamps.
28271
28272 2009-10-10  Eric Blake  <ebb9@byu.net>
28273
28274         futimens: new module
28275         * modules/futimens: New file.
28276         * lib/futimens.c (futimens): Likewise.
28277         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
28278         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
28279         we can work around Linux bugs.
28280         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28281         * modules/sys_stat (Makefile.am): Substitute them.
28282         * lib/sys_stat.in.h (futimens): Declare it.
28283         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28284         * doc/posix-functions/futimens.texi (futimens): Likewise.
28285         * modules/futimens-tests: New test.
28286         * tests/test-futimens.c: Likewise.
28287
28288         utimens: introduce fdutimens
28289         * lib/utimens.h (fdutimens): New prototype.
28290         * lib/utimens.c (gl_futimens): Move guts...
28291         (fdutimens): ...to new interface.
28292         * tests/test-utimens.c (do_fdutimens): Use it.
28293
28294         utimens: add UTIME_NOW and UTIME_OMIT support
28295         * lib/utimens.c (validate_timespec, update_timespec): New helper
28296         functions.
28297         (gl_futimens, lutimens): Use them.
28298         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
28299         stdbool, sys_stat.
28300         (Link): Mention resulting library dependency.
28301         * modules/utimecmp (Link): Likewise.
28302         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
28303         (Makefile.am): Pick up library dependency.
28304         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
28305         definition.
28306         * tests/test-sys_stat.c: Test the definitions.
28307         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
28308         * NEWS: Document library dependency.
28309
28310         utimecmp: support symlink timestamps
28311         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
28312         hashing when possible.  Use pathconf when available.
28313         (SYSCALL_RESOLUTION): Recognize tighter resolution.
28314         * modules/utimecmp (Depends-on): Add lstat.
28315
28316         utimens: add lutimens interface
28317         * lib/utimens.c (lutimens): New function.
28318         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
28319         * lib/utimens.h (lutimens): Declare new interface.
28320         * tests/test-utimens.c (main): Enhance test.
28321         * tests/test-lutimens.h (test_lutimens): New file.
28322         * modules/utimens-tests (Files): Distribute it.
28323         (Depends-on): Add symlink.
28324         (configure.ac): Check for usleep.
28325
28326         utimens: validate futimens usage
28327         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28328         fewer syscalls on failure later on.  Avoid compiler warning on
28329         mingw.
28330         * modules/utimens (Depends-on): Add dup2.
28331
28332         utimens: add test
28333         * modules/utimens-tests: New test.
28334         * tests/test-utimens.h: New file.
28335         * tests/test-futimens.h: Likewise.
28336         * tests/test-utimens.c: Likewise.
28337
28338         doc: mention timestamp portability issues
28339         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28340         instead.
28341         * doc/posix-functions/utime.texi (utime): Likewise.
28342         * doc/posix-functions/utimes.texi (utimes): Likewise.
28343         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28344         instead.
28345         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28346         module.
28347         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28348         Mention weakness with symlink timestamps.
28349         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28350         to utimensat/futimens instead.
28351         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28352
28353         test-dup2: enhance test
28354         * tests/test-dup2.c (main): Also check AT_FDCWD.
28355
28356         test-stat-time: avoid more spurious failures
28357         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28358         xfs; and avoid race if the two timestamps cross quantization edge.
28359
28360         relocatable: prefer 'file system' over 'filesystem'
28361         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28362         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28363         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28364         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28365         * lib/relocatable.c (compute_curr_prefix): Likewise.
28366
28367 2009-10-10  Jim Meyering  <meyering@redhat.com>
28368
28369         stat-time-tests: check for the usleep function
28370         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28371
28372 2009-10-10  Bruno Haible  <bruno@clisp.org>
28373
28374         * modules/xnanosleep: Put the Link section after the Include section.
28375
28376 2009-10-09  Eric Blake  <ebb9@byu.net>
28377
28378         dup2: work around FreeBSD 6.1 bug
28379         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28380         * doc/posix-functions/dup2.texi (dup2): Document it.
28381         Reported by Nelson H. F. Beebe and Jim Meyering.
28382
28383         test-stat-time: port to buggy NFS clients
28384         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28385         (test_ctime): Also skip test if mtime and ctime are skewed.
28386
28387         maint: prefer 'file system' over 'filesystem'
28388         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28389         * doc/posix-functions/lstat.texi (lstat): Likewise.
28390         * lib/file-has-acl.c (file_has_acl): Likewise.
28391         * lib/fwriteerror.c [TEST]: Likewise.
28392         * tests/test-areadlink.h (test_areadlink): Likewise.
28393         * tests/test-areadlinkat-with-size.c (main): Likewise.
28394         * tests/test-areadlinkat.c (main): Likewise.
28395         * tests/test-canonicalize-lgpl.c (main): Likewise.
28396         * tests/test-canonicalize.c (main): Likewise.
28397         * tests/test-fstatat.c (main): Likewise.
28398         * tests/test-linkat.c (main): Likewise.
28399         * tests/test-lstat.h (test_lstat_func): Likewise.
28400         * tests/test-mkdir.h (test_mkdir): Likewise.
28401         * tests/test-readlink.h (test_readlink): Likewise.
28402         * tests/test-remove.c (main): Likewise.
28403         * tests/test-rename.h (test_rename): Likewise.
28404         * tests/test-renameat.c (main): Likewise.
28405         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28406         * tests/test-symlink.h (test_symlink): Likewise.
28407         * tests/test-symlinkat.c (main): Likewise.
28408         * tests/test-unlink.h (test_unlink_func): Likewise.
28409         * tests/test-unlinkat.c (main): Likewise.
28410
28411         maint: make realtime library usage explicit
28412         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
28413         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
28414         * modules/settime (Link): Likewise.
28415         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
28416
28417         test-stat-time: speed up execution
28418         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
28419         warning on mingw.
28420         (nap): New helper function.
28421         (prepare_test): Use it to reduce sleep time.
28422         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
28423         execution.
28424         * modules/stat-time-tests (configure.ac): Check for usleep.
28425
28426 2009-10-09  Jim Meyering  <meyering@redhat.com>
28427
28428         selinux-h: always use getfilecon wrappers
28429         * lib/getfilecon.c: New file.
28430         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
28431         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
28432         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
28433         (fgetfilecon): Provide a stub.
28434         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
28435         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
28436         file unconditionally.
28437         When <selinux/selinux.h> is found, arrange to use wrappers.
28438         * modules/selinux-h (Files): Add getfilecon.c.
28439         (Makefile.am): Substitute include-next-related bits
28440         into the now-always-generated selinux/selinux.h file.
28441         * doc/glibc-functions/lgetfilecon.texi: New file.
28442         * doc/glibc-functions/fgetfilecon.texi: New file.
28443         * doc/glibc-functions/getfilecon.texi: New file.
28444         * doc/glibc-functions/getfilecon-desc.texi: New file.
28445         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
28446         which to pull in the new files.
28447         * MODULES.html.sh (Misc): Add selinux-h.
28448
28449 2009-10-08  Jim Meyering  <meyering@redhat.com>
28450
28451         unistd: fix comment typo
28452         * lib/unistd.in.h (euidaccess): Fix a comment typo.
28453
28454 2009-10-08  Eric Blake  <ebb9@byu.net>
28455
28456         areadlink: use SIZE_MAX consistently
28457         * modules/areadlink (Depends-on): Add stdint.
28458         * modules/areadlink-with-size (Depends-on): Likewise.
28459         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
28460         gives NULL; drop sys/types, since unistd gives size_t; and add
28461         stdint for SIZE_MAX.
28462         (SIZE_MAX): Rely on headers.
28463         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
28464         and add stdint.
28465         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
28466         (SIZE_MAX): Likewise.
28467         (INITIAL_BUF_SIZE): Turn into enum.
28468         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
28469
28470 2009-10-08  Jim Meyering  <meyering@redhat.com>
28471
28472         areadlinkat: avoid compilation failure
28473         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
28474         Fix typo in comment.
28475
28476 2009-10-07  Eric Blake  <ebb9@byu.net>
28477
28478         areadlinkat-with-size: new module
28479         * modules/areadlinkat-with-size: New module.
28480         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
28481         * lib/areadlink.h (areadlinkat): Declare it.
28482         * MODULES.html.sh (File system functions): Mention it.
28483         * modules/areadlinkat-with-size-tests: New test.
28484         * tests/test-areadlinkat-with-size.c: New file.
28485
28486         xreadlinkat: new module
28487         * modules/xreadlinkat: New module.
28488         * lib/xreadlinkat.c (xreadlinkat): New file.
28489         * lib/xreadlink.h (xreadlinkat): Declare it.
28490         * MODULES.html.sh (File system functions): Mention it.
28491
28492         areadlinkat: new module
28493         * lib/at-func.c (FUNC_FAIL): New define.
28494         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
28495         * modules/areadlinkat: New module.
28496         * lib/linkat.c (areadlinkat): Move...
28497         * lib/areadlinkat.c (areadlinkat): ...to new file.
28498         * lib/areadlink.h (areadlinkat): Declare it.
28499         * modules/linkat (Depends-on): Add areadlinkat.
28500         * MODULES.html.sh (File system functions): Mention it.
28501         * modules/areadlinkat-tests: New test.
28502         * tests/test-areadlinkat.c: New file.
28503
28504         areadlink, areadlink-with-size: add tests
28505         * modules/areadlink-tests: New test.
28506         * modules/areadlink-with-size-tests: Likewise.
28507         * tests/test-areadlink.h: New file.
28508         * tests/test-areadlink.c: Likewise.
28509         * tests/test-areadlink-with-size.c: Likewise.
28510
28511         maint: minor cleanups
28512         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
28513         _UNUSED_PARAMETER_ instead.
28514         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
28515         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
28516         * modules/linkat-tests (Files): Distribute test-link.h.
28517
28518         openat, utimens: whitespace cleanup
28519         * lib/openat.c: Prefer space throughout, rather than mix of 8
28520         spaces vs. tabs.
28521         * lib/at-func.c: Likewise.
28522         * lib/utimens.c: Likewise.
28523
28524         openat: avoid using wrong fd
28525         * lib/openat.c (openat_permissive): Reject user's fd if saving the
28526         working directory chooses same fd.
28527         * lib/at-func.c (AT_FUNC_NAME): Likewise.
28528
28529         mkdir, mkdirat: fix cygwin 1.5.x bug
28530         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
28531         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
28532         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
28533         bug.
28534         (gl_PREREQ_MKDIR): Delete unused macro.
28535         * modules/mkdir (Files): Track file rename.
28536         (configure.ac): Update macro name.
28537         * modules/openat (Depends-on): Add mkdir.
28538         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
28539
28540         mkdir, mkdirat: add tests
28541         * modules/mkdir-tests: New test.
28542         * tests/test-mkdir.h: New file.
28543         * tests/test-mkdir.c: Likewise.
28544         * tests/test-mkdirat.c: Likewise.
28545         * modules/openat-tests (Files): Add new files.
28546         (Makefile.am): Run new test.
28547
28548 2009-10-06  Eric Blake  <ebb9@byu.net>
28549
28550         doc: tweak *at function documentation
28551         * doc/posix-functions/faccessat.texi (faccessat): Mention
28552         known issue with replacement.
28553         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
28554         * doc/posix-functions/linkat.texi (linkat): Likewise.
28555         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28556         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28557         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28558         * doc/posix-functions/renameat.texi (renameat): Likewise.
28559         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28560
28561         openat: fix GNU/Hurd bug in unlinkat
28562         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
28563         broken.
28564         * doc/posix-functions/unlink.texi (unlink): Document this.
28565         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
28566
28567         fdopendir: fix GNU/Hurd bug
28568         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
28569         allowing non-directory fds.
28570         * lib/fdopendir.c (rpl_fdopendir): Work around it.
28571         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28572         * modules/dirent (Makefile.am): Substitute it.
28573         * lib/dirent.in.h (fdopendir): Declare replacement.
28574         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
28575         * tests/test-fdopendir.c (main): Test something other than
28576         /dev/null, since on Hurd that behaves like a directory.
28577
28578         test-symlink: port to GNU/Hurd
28579         * tests/test-symlink.h (test_symlink): Relax expected errno.
28580
28581         doc: tweak more cygwin information
28582         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
28583         now compatible with glibc.
28584         * doc/posix-functions/getopt.texi (getopt): Likewise.
28585
28586         getopt-gnu: add another test
28587         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
28588         guarantee behavior relied on by m4.
28589         * tests/test-getopt.c (main): Use it.
28590         * modules/getopt-posix-tests (Depends-on): Add setenv.
28591         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
28592
28593         getopt: fix compilation on darwin
28594         * lib/getopt.in.h (includes): Leave breadcrumbs during system
28595         include.
28596         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
28597         Reported by Ludovic Courtès.
28598
28599 2009-10-06  Bruno Haible  <bruno@clisp.org>
28600
28601         * modules/size_max (Description): Discourage its use.
28602         Reported by Simon Josefsson.
28603
28604 2009-10-06  Jim Meyering  <meyering@redhat.com>
28605
28606         linkat: avoid compilation failure
28607         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
28608
28609 2009-10-05  Eric Blake  <ebb9@byu.net>
28610
28611         linkat: support Linux 2.6.17
28612         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
28613         linkat on Linux, but allow cache variable override.
28614         * lib/linkat.c (rpl_linkat): Define override.
28615         * modules/linkat (Depends-on): Add symlinkat.
28616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
28617         * modules/unistd (Makefile.am): Substitute it.
28618         * lib/unistd.in.h (linkat): Declare replacement.
28619         Reported by Pádraig Brady.
28620
28621         quotearg: port test to systems with C.UTF-8 locale
28622         * tests/test-quotearg.c (struct result_strings): Add another
28623         member, differentiating between C.ASCII and C.UTF-8 handling.
28624         (compare_strings): Add parameter.
28625         (main): Adjust all callers.
28626
28627         getopt: avoid clash with FreeBSD _getopt_internal
28628         * lib/getopt.in.h (_getopt_internal): Override the name.
28629         * lib/getopt_int.h (includes): Pick up any overrides.
28630         Reported by Reuben Thomas.
28631
28632         hash: allow C89 compilation
28633         * lib/hash.c (check_tuning): Move declaration before statement.
28634         Reported by Reuben Thomas.
28635
28636 2009-10-05  Karl Berry  <karl@gnu.org>
28637
28638         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
28639
28640 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
28641             Bruno Haible  <bruno@clisp.org>
28642
28643         * lib/uname.c (uname): Use a table-driven algorithm to compute
28644         Windows NT versions.
28645
28646 2009-10-04  Bruno Haible  <bruno@clisp.org>
28647
28648         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
28649         program_invocation_short_name.
28650         * modules/progname (configure.ac): Test for presence of
28651         program_invocation_short_name.
28652         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28653
28654 2009-10-04  Bruno Haible  <bruno@clisp.org>
28655
28656         * lib/progname.c (set_program_name): Fix comment.
28657         Reported by Jim Meyering.
28658
28659 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28660             Bruno Haible  <bruno@clisp.org>
28661
28662         * lib/uname.c: Include <string.h>.
28663         (uname): Do only one call to GetVersionEx in the common case.
28664
28665 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28666             Bruno Haible  <bruno@clisp.org>
28667
28668         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
28669         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
28670         (uname): Add support for Windows CE and various non-x86 CPU types.
28671
28672 2009-10-03  Bruno Haible  <bruno@clisp.org>
28673
28674         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
28675         invocation to tests/configure.ac.
28676         Reported by Ian Beckwith <ianb@erislabs.net>.
28677
28678 2009-10-02  Eric Blake  <ebb9@byu.net>
28679
28680         fchdir: avoid compiler warning
28681         * lib/fchdir.c (canonicalize_file_name)
28682         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
28683
28684         test-open: support mingw errno values
28685         * tests/test-open.h (test_open): Relax test.
28686         * tests/test-fopen.h (test_fopen): Likewise.
28687         * tests/test-openat-safer.c (main): Likewise.
28688
28689         open: fix opening directory on mingw
28690         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
28691
28692         test-open: on GNU/Hurd, /dev/null is a directory
28693         * tests/test-fopen.h (main): Rename...
28694         (test_fopen): ...to this.  Use a guaranteed non-directory when
28695         confirming open behavior on trailing slash.
28696         * tests/test-openat-safer.c (main): Likewise.
28697         * tests/test-open.h (main): Likewise....
28698         (test_open): ...to this.
28699         * tests/test-fopen.c (main): Adjust caller.
28700         * tests/test-fopen-safer.c (main): Likewise.
28701         * tests/test-open.c (main): Likewise.
28702         * tests/test-fcntl-safer.c (main): Likewise.
28703         Reported by Samuel Thibault.
28704
28705         rename, fchdir: don't ignore chdir failure
28706         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
28707         * lib/rename.c (rpl_rename) [W32]: Likewise.
28708         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
28709         an empty destination directory if source cannot be renamed,
28710         although there is still possibility for failure.
28711         * doc/posix-functions/rename.texi (rename): Document the race.
28712         Reported by Jim Meyering.
28713
28714         maint: cleanup whitespace in recent commits
28715         * lib/rename.c (rpl_rename): Remove tabs.
28716         * tests/test-link.h (test_link): Likewise.
28717         * lib/fchdir.c (get_name): Likewise.
28718         Reported by Jim Meyering.
28719
28720 2009-10-02  Ben Pfaff  <blp@gnu.org>
28721
28722         relocatable-prog-wrapper: Add missing dependency on
28723         double-slash-root.
28724         * modules/relocatable-prog-wrapper: Add dependency.
28725         Reported by Ian Beckwith <ianb@erislabs.net>.
28726
28727 2009-10-02  Eric Blake  <ebb9@byu.net>
28728
28729         renameat: fix Solaris bugs
28730         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
28731         needed fixing.
28732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
28733         * modules/stdio (Makefile.am): Substitute it.
28734         * lib/stdio.in.h (renameat): Declare replacement.
28735         * lib/renameat.c (rpl_renameat): Implement fix.
28736
28737         renameat: new module
28738         * modules/renameat: New file.
28739         * lib/renameat.c (renameat): Likewise.
28740         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
28741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28742         * modules/stdio (Makefile.am): Substitute them.
28743         * lib/stdio.in.h (renameat): Declare it.
28744         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28745         * doc/posix-functions/renameat.texi (renameat): Likewise.
28746         * modules/renameat-tests: New test.
28747         * tests/test-renameat.c: Likewise.
28748
28749         rename: fix mingw bugs
28750         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
28751         directory overwrite bugs.
28752
28753         rename: fix another cygwin 1.5 bug
28754         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
28755         checks.
28756         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
28757         unnecessary cygwin workarounds.  Also work around bug with moving
28758         full directory onto an empty one.
28759         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
28760
28761         rename-dest-slash: merge into rename module
28762         * modules/rename-dest-slash (Status): Mark obsolete.
28763         (Depends-on): Add rename.
28764         (Files): Let rename do it all.
28765         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
28766         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
28767         * m4/rename-dest-slash.m4: ...so this file can be deleted.
28768         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
28769         * lib/rename.c (rpl_rename): Update comments.
28770
28771         rename: fix cygwin 1.5.x bugs
28772         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
28773         * lib/rename.c (rpl_rename): Work around them.
28774         * modules/rename (Depends-on): Add same-inode.
28775
28776         rename: fix Solaris 10 bug
28777         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28778         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
28779         was the only bug.
28780
28781         rename: fix Solaris 9 bug
28782         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
28783         on non-directory.  Avoid calling exit.
28784         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
28785         strdup.
28786         * modules/rename-tests (Depends-on): Drop lstat.
28787         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28788         (gl_PREREQ_RENAME): Delete unused macro.
28789
28790         rename-dest-slash: fix NetBSD bug
28791         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
28792         links.
28793         * modules/rename-dest-slash (Depends-on): Add same-inode.
28794
28795         rename-tests: new test, exposes several platform bugs
28796         * modules/rename-tests: New file.
28797         * tests/test-rename.h: Likewise.
28798         * tests/test-rename.c: Likewise.
28799         * doc/posix-functions/rename.texi (rename): Improve documentation,
28800         including bugs that will eventually be fixed in gnulib.
28801
28802 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
28803
28804         * lib/uname.c: Include <stdlib.h>
28805         (uname): Assume version info is available.
28806
28807 2009-10-02  Jim Meyering  <meyering@redhat.com>
28808
28809         gnu-web-doc-update: correct --help output
28810         * build-aux/gnu-web-doc-update: Make --help output relevant.
28811
28812         gnu-web-doc-update: add standard options
28813         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
28814
28815         gnu-web-doc-update: New module.
28816         Use this script to automatically update the on-line web documentation
28817         for your GNU project at http://www.gnu.org/software/$pkg/manual/
28818         * modules/gnu-web-doc-update: New file, from coreutils.
28819         * build-aux/gnu-web-doc-update: New script.
28820
28821 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
28822
28823         link: LoadLibrary is not needed.
28824         * lib/link.c: Use GetModuleHandle.
28825
28826 2009-10-01  Eric Blake  <ebb9@byu.net>
28827
28828         getopt: bump serial number
28829         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
28830         change.
28831
28832         tests: tighten link, rmdir, and remove tests
28833         * tests/test-link.h (includes): No need to use <config.h> here.
28834         Clean up if directory hard link was created, otherwise test for
28835         trailing '.'.
28836         * tests/test-linkat.c (main): Simplify.
28837         * tests/test-remove.c (main): Enhance test for trailing '.'.
28838         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28839
28840 2009-10-01  Jim Meyering  <meyering@redhat.com>
28841
28842         maint.mk: requiring "make major" was annoying, for a "minor" release.
28843         What is intended is "stable", to contrast with alpha and beta,
28844         so require "make stable", not "make major".
28845         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
28846         (get_tool_versions): Likewise.
28847         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
28848
28849 2009-09-30  Ben Pfaff  <blp@gnu.org>
28850
28851         Fix broken build of replacement for Windows tmpfile().
28852         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
28853         flags argument added along with the 'mkostemp' module.
28854
28855 2009-09-28  Bruno Haible  <bruno@clisp.org>
28856
28857         Avoid identifier clash with POSIX function 'remove' defined as a macro.
28858         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
28859         to 'remove_elt'.
28860         (gl_list_remove): Update.
28861         * lib/gl_list.c (gl_list_remove): Update.
28862         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
28863         to 'remove_elt'.
28864         (gl_oset_remove): Update.
28865         * lib/gl_list.c (gl_oset_remove): Update.
28866         Reported by Eric Blake.
28867
28868 2009-09-28  Eric Blake  <ebb9@byu.net>
28869
28870         doc: mention yet more cygwin 1.7 status
28871         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
28872         cygwin.
28873         * doc/glibc-functions/execvpe.texi (execvpe): New file.
28874         * doc/gnulib.texi (Glibc unistd.h): Mention it.
28875
28876         argp: fix test failure
28877         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
28878         that are not upper-case.  Pass correct range to tolower.
28879
28880 2009-09-27  Jim Meyering  <meyering@redhat.com>
28881
28882         test-yesno: work around sparc-dash here-document infelicity
28883         Without this change, the literal \177 byte in a here document
28884         would make dash 0.5.5.1-3 access uninitialized memory.
28885         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
28886         Instead, use a marker, "@", and filter through tr to create the desired
28887         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
28888
28889 2009-09-27  Bruno Haible  <bruno@clisp.org>
28890
28891         Disable untested support for new flavours of ACLs on AIX.
28892         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
28893         progress.
28894         * lib/set-mode-acl.c (qset_acl): Likewise.
28895
28896 2008-12-07  Bruno Haible  <bruno@clisp.org>
28897
28898         Add support for new flavours of ACLs on AIX. (Untested.)
28899         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
28900         (file_has_acl): Add support for newer AIX.
28901         * lib/set-mode-acl.c (qset_acl): Likewise.
28902         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
28903         Rainer Tammer <tammer@tammer.net>.
28904
28905 2009-09-26  Eric Blake  <ebb9@byu.net>
28906
28907         argp: fix compilation of getopt
28908         * lib/getopt.in.h (includes): Use different guard than glibc.
28909         Reported by Sergey Poznyakoff.
28910
28911         doc: mention more cygwin 1.7 status
28912         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
28913         bug.
28914         * doc/posix-functions/execl.texi (execl): Likewise.
28915         * doc/posix-functions/execle.texi (execle): Likewise.
28916         * doc/posix-functions/execlp.texi (execlp): Likewise.
28917         * doc/posix-functions/execv.texi (execv): Likewise.
28918         * doc/posix-functions/execve.texi (execve): Likewise.
28919         * doc/posix-functions/execvp.texi (execvp): Likewise.
28920         * doc/glibc-functions/canonicalize_file_name.texi
28921         (canonicalize_file_name): Cygwin 1.7 now provides this.
28922         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
28923         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
28924         on AT_SYMLINK_NOFOLLOW.
28925
28926 2009-09-24  Eric Blake  <ebb9@byu.net>
28927
28928         test-linkat: make test more robust
28929         * tests/test-linkat.c (main): Avoid collision with EEXIST.
28930
28931         getopt: fix inclusion guards for cygwin
28932         * modules/getopt-posix (Depends-on): Add include-next.
28933         (Makefile.am): Substitute more items in replacement header.
28934         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
28935         <getopt.h>.
28936         * lib/getopt.in.h (includes): Use split inclusion guard, and
28937         prefer <getopt.h> over include <unistd.h> when one is present.
28938         (option): Also override name of 'struct option'.
28939
28940         same-inode: revert prior change; it is not yet ready
28941         * NEWS: Undo mention of this change.
28942         * lib/same-inode.h (same-inode.h): Undo tri-state change.
28943         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
28944         * lib/cycle-check.c (cycle_check): Likewise.
28945         * lib/same.c (same_name): Likewise.
28946         * lib/at-func2.c (at_func2): Likewise.
28947
28948 2009-09-23  Eric Blake  <ebb9@byu.net>
28949
28950         linkat: new module
28951         * modules/linkat: New file.
28952         * lib/at-func2.c (at_func2): Likewise.
28953         * lib/linkat.c (linkat): Likewise.
28954         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28955         * lib/openat-priv.h (at_func2): Add declaration.
28956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28957         * modules/unistd (Makefile.am): Substitute them.
28958         * lib/unistd.in.h (linkat): Declare it.
28959         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28960         * doc/posix-functions/linkat.texi (linkat): Likewise.
28961         * doc/posix-functions/link.texi (link): Tweak wording.
28962         * tests/test-link.c (main): Move guts...
28963         * tests/test-link.h (test_link): ...into new file.
28964         * modules/linkat-tests: New test.
28965         * tests/test-linkat.c: Likewise.
28966         * modules/link-tests (Files): Ship new file.
28967         (Depends-on): Add stdbool.
28968
28969         dirname: add library-safe mdir_name
28970         * lib/dirname.h (mdir_name): New prototype.
28971         * lib/dirname.c (dir_name): Move guts...
28972         (mdir_name): ...to new function that avoids xalloc_die.
28973
28974         fchdir: another mingw fix
28975         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
28976         * lib/fchdir.c (get_name): New helper method; skips canonicalize
28977         on mingw (where it has not yet been ported), and make it optional
28978         elsewhere.
28979         (_gl_register_fd): Use it.
28980
28981         same-inode: make SAME_INODE tri-state, to port to mingw
28982         * NEWS: Mention this change.
28983         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
28984         st_ino always being 0.
28985         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
28986         * lib/cycle-check.c (cycle_check): Likewise.
28987         * lib/same.c (same_name): Likewise.
28988
28989         lstat: avoid mingw compilation error
28990         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
28991         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
28992         lstat ourselves.
28993         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
28994         was adequate.
28995         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
28996         the checks for lstat.
28997         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
28998
28999         link: fix test failure on Solaris 9
29000         * lib/link.c (rpl_link): Don't assume link will catch bogus
29001         trailing slash on source.
29002
29003         test-symlinkat: enhance test
29004         * tests/test-readlink.c (main): Move guts...
29005         * tests/test-readlink.h (test_readlink): ...into new file.
29006         * tests/test-symlink.c (main): Move guts...
29007         * tests/test-symlink.h (test_symlink): ...into new file.
29008         * tests/test-symlinkat.c (main): Use new files for further
29009         coverage.
29010         (do_symlink, do_readlink): New helper functions.
29011         * modules/symlink-tests (Files): Ship new file.
29012         (Depends-on): Add stdbool.
29013         * modules/readlink-tests (Files): Ship new file.
29014         (Depends-on): Add stdbool.
29015         * modules/symlinkat-tests (Files): Use new files.
29016
29017 2009-09-23  Eric Blake  <ebb9@byu.net>
29018
29019         readlink: document portability issue with symlink length
29020         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29021         systems have bogus st_size on symlinks, and mention the
29022         areadlink-with-size module.
29023         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29024         * doc/posix-functions/readlink.texi (readlink): Mention the
29025         areadlink module, and ERANGE failure.
29026         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29027         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29028
29029         readlink: fix Solaris 9 bug with trailing slash
29030         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29031         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29032         * doc/posix-functions/readlink.texi (readlink): Document this.
29033         * modules/readlink-tests: New test.
29034         * tests/test-readlink.c: Likewise.
29035
29036         readlink: fix cygwin 1.5.x bug with return type
29037         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29038         * lib/unistd.in.h (readlink): Use ssize_t.
29039         * lib/readlink.c (readlink): Likewise.
29040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29041         * modules/unistd (Makefile.am): Substitute it.
29042         * lib/unistd.in.h (readlink): Declare replacement.
29043         * doc/posix-functions/readlink.texi (readlink): Document this.
29044
29045         symlink: use throughout gnulib
29046         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29047         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29048         symlink is not used.
29049         * modules/symlinkat (Depends-on): Add symlink.
29050         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29051         * modules/canonicalize-tests (Depends-on): Likewise.
29052         * modules/lstat-tests (Depends-on): Likewise.
29053         * modules/openat-tests (Depends-on): Likewise.
29054         * modules/remove-tests (Depends-on): Likewise.
29055         * modules/rmdir-tests (Depends-on): Likewise.
29056         * modules/unlink-tests (Depends-on): Likewise.
29057         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29058         * tests/test-canonicalize.c (symlink): Likewise.
29059         * tests/test-fstatat.c (symlink): Likewise.
29060         * tests/test-lstat.c (symlink): Likewise.
29061         * tests/test-remove.c (symlink): Likewise.
29062         * tests/test-rmdir.c (symlink): Likewise.
29063         * tests/test-unlink.c (symlink): Likewise.
29064         * tests/test-unlinkat.c (symlink): Likewise.
29065
29066         symlink: new module, for Solaris 9 bug
29067         * modules/symlink: New file.
29068         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29069         * lib/symlink.c: Likewise.
29070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29071         * modules/unistd (Makefile.am): Substitute them.
29072         * lib/unistd.in.h (symlink): Declare replacement.
29073         * MODULES.html.sh (File system functions): Mention it.
29074         * doc/posix-functions/symlink.texi (symlink): Likewise.
29075         * modules/symlink-tests: New test.
29076         * tests/test-symlink.c: Likewise.
29077
29078 2009-09-23  Bruno Haible  <bruno@clisp.org>
29079
29080         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29081         when needed.
29082         Test case: gnulib-tool --import --with-tests atexit inttypes.
29083         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29084
29085 2009-09-23  Bruno Haible  <bruno@clisp.org>
29086
29087         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29088         subcommand, not in a subshell.
29089
29090 2009-09-22  Eric Blake  <ebb9@byu.net>
29091
29092         unistd: sort replacement declarations
29093         * lib/unistd.in.h: Sort declarations.
29094
29095         open, openat: minor optimization
29096         * lib/open.c (open): If open succeeded, len is non-zero.
29097         * lib/openat.c (rpl_openat): Likewise.
29098
29099         link-follow: ensure correct result
29100         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29101         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29102         distinguish between possible failures.
29103
29104 2009-09-21  Eric Blake  <ebb9@byu.net>
29105
29106         fts: avoid compiler warning
29107         * lib/fts.c (dirent_inode_sort_may_be_useful)
29108         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29109
29110 2009-09-19  Bruno Haible  <bruno@clisp.org>
29111
29112         * lib/progreloc.c (canonicalize_file_name): New declaration.
29113
29114 2009-09-19  Eric Blake  <ebb9@byu.net>
29115
29116         link: fix quoting
29117         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29118
29119         openat: fix openat bugs on Solaris 9
29120         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29121         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29122         * modules/openat (Depends-on): Add open.
29123         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29124         * modules/fcntl-h (Makefile.am): Substitute it.
29125         * lib/fcntl.in.h (openat): Declare replacement.
29126         * doc/posix-functions/openat.texi (openat): Document this.
29127
29128         openat: move fstatat and unlinkat into correct files
29129         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29130         compiled.
29131         * lib/openat.c (fstatat, unlinkat): Move...
29132         * lib/fstatat.c (fstatat): ...into correct files.
29133         * lib/unlinkat.c (unlinkat): Likewise.
29134
29135         openat: fix unlinkat bugs on Solaris 9
29136         * lib/unlinkat.c (unlinkat): New file.
29137         * modules/openat (Depends-on): Add unlink.
29138         (Files): Distribute it.
29139         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29140         trailing slash behavior is broken.
29141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29142         * modules/unistd (Makefile.am): Substitute it.
29143         * lib/unistd.in.h (unlinkat): Declare replacement.
29144         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29145
29146         openat: fix fstatat bugs on Solaris 9
29147         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29148         stat.
29149         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29150
29151         test-unlinkat: enhance test, to expose Solaris 9 bug
29152         * tests/test-unlink.c (main): Factor guts...
29153         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29154         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29155         * tests/test-rmdir.c (main): Adjust caller.
29156         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29157         (unlinker): New helper function.
29158         (rmdirat): Enhance check.
29159         * modules/rmdir-tests (Depends-on): Add stdbool.
29160         * modules/unlink-tests (Depends-on): Likewise.
29161         (Files): Add test-unlink.h.
29162         * modules/openat-tests (Files): Likewise.
29163         (Depends-on): Add unlinkdir.
29164
29165         test-fstatat: new test, to expose Solaris 9 bugs
29166         * tests/test-stat.c (main): Factor guts...
29167         * tests/test-stat.h (test_stat_func): ...into new file.
29168         * tests/test-lstat.c (main): Factor guts...
29169         * tests/test-lstat.h (test_lstat_func): ...into new file.
29170         * tests/test-fstatat.c: New file.
29171         * modules/stat-tests (Files): Add test-stat.h.
29172         * modules/lstat-tests (Files): Add test-lstat.h.
29173         (Depends-on): Add stdbool.
29174         * modules/openat-tests (Depends-on): Add pathmax.
29175         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29176         (Makefile.am): Run new test.
29177
29178         remove: new module, for mingw and Solaris 9 bugs
29179         * modules/remove: New file.
29180         * lib/remove.c: Likewise.
29181         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29183         * modules/stdio (Makefile.am): Use them.
29184         * lib/stdio.in.h (remove): Declare replacement.
29185         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29186         * doc/posix-functions/remove.texi (remove): Likewise.
29187         * modules/remove-tests: New test.
29188         * tests/test-remove.c: Likewise.
29189
29190         unlink: new module, for Solaris 9 bug
29191         * modules/unlink: New file.
29192         * lib/unlink.c: Likewise.
29193         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29195         * modules/unistd (Makefile.am): Use them.
29196         * lib/unistd.in.h (stat): Declare replacement.
29197         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29198         * doc/posix-functions/unlink.texi (unlink): Likewise.
29199         * modules/unlink-tests: New test.
29200         * tests/test-unlink.c: Likewise.
29201
29202         lstat: fix Solaris 9 bug
29203         * lib/lstat.c (lstat): Also check for trailing slash on
29204         non-symlink, non-directories.  Use stat module to simplify logic.
29205         * doc/posix-functions/lstat.texi (lstat): Document it.
29206         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29207         (configure.ac): Check for symlink.
29208         * tests/test-lstat.c (main): Add more tests.
29209
29210         stat: add as dependency to other modules
29211         * modules/chown (Depends-on): Add stat.
29212         * modules/euidaccess (Depends-on): Likewise.
29213         * modules/fchdir (Depends-on): Likewise.
29214         * modules/isdir (Depends-on): Likewise.
29215         * modules/link (Depends-on): Likewise.
29216         * modules/lstat (Depends-on): Likewise.
29217         * modules/mkdir-p (Depends-on): Likewise.
29218         * modules/modechange (Depends-on): Likewise.
29219         * modules/open (Depends-on): Likewise.
29220         * modules/readlink (Depends-on): Likewise.
29221         * modules/same (Depends-on): Likewise.
29222
29223         stat: fix Solaris 9 bug
29224         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29225         slash.
29226         * lib/stat.c (rpl_stat): Work around it.
29227         * doc/posix-functions/stat.texi (stat): Update documentation.
29228
29229         stat: new module, for mingw bug
29230         * modules/stat: New file.
29231         * lib/stat.c: Likewise.
29232         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29233         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29234         * modules/sys_stat (Makefile.am): Use them.
29235         * lib/sys_stat.in.h (stat): Declare replacement.
29236         * lib/openat.c (fstatat): Deal with lstat and stat being function
29237         macros.
29238         * modules/openat (Depends-on): Add inline.
29239         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29240         * doc/posix-functions/stat.texi (stat): Likewise.
29241         * modules/stat-tests: New test.
29242         * tests/test-stat.c: Likewise.
29243
29244 2009-09-19  Jim Meyering  <meyering@redhat.com>
29245
29246         syntax-check: detect unnecessary inclusion of canonicalize.h
29247         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
29248
29249 2009-09-19  Eric Blake  <ebb9@byu.net>
29250
29251         canonicalize-lgpl: adjust clients to use correct header
29252         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29253         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
29254         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
29255         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
29256         * lib/progreloc.c (includes): Likewise.
29257
29258 2009-09-19  Jim Meyering  <meyering@redhat.com>
29259
29260         test-posixtm.c: correct a comment
29261         * tests/test-posixtm.c: Correct first-line comment.
29262         Spotted by Eric Blake.
29263
29264 2009-09-16  Jim Meyering  <meyering@redhat.com>
29265
29266         posixtm-tests: make T const-correct; add a test case
29267         * tests/test-posixtm.c (T): Declare const.
29268         Add a test for -(2^31+1).
29269         Remove useless can-succeed-only-in-2002 test.
29270
29271         posixtm-tests: adjust the sole failing test
29272         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
29273         expected output matches what mktime now produces.  Cross-checked via
29274         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
29275
29276         posixtm: move #ifdef'd tests into a new module
29277         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
29278         * tests/test-posixtm.c: ... this new file.
29279         * modules/posixtm-tests: New module.
29280
29281 2009-09-19  Eric Blake  <ebb9@byu.net>
29282
29283         openat: simplify use of at-func.c
29284         * lib/at-func.c (includes): Include prerequisites here, to
29285         simplify requirements on client files.
29286         * lib/openat-priv.h: Add double-inclusion guard.
29287         * lib/faccessat.c (includes): Simplify.
29288         * lib/fchmodat.c (includes): Likewise.
29289         * lib/fchownat.c (includes): Likewise.
29290         * lib/mkdirat.c (includes): Likewise.
29291         * lib/mkfifoat.c (includes): Likewise.
29292         * lib/symlinkat.c (includes): Likewise.
29293
29294         openat: allow return of fd 0
29295         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
29296         * modules/save-cwd (Depends-on): Replace fcntl-safer with
29297         unistd-safer.
29298         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
29299         <fcntl.h>; this module does not leak fds.
29300         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
29301         must be allowed to return 0, leaving openat_safer to add the
29302         safety.
29303         (openat_permissive): Avoid writing to just-opened fd 2 if
29304         restoring the current directory fails.
29305         * lib/openat-die.c (openat_restore_fail): Add comment.
29306         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
29307         (save_cwd): Guarantee safe fd, but without use of open_safer.
29308         * tests/test-openat.c: New test.
29309         * modules/openat-tests (Files, Makefile.am): Distribute and build
29310         new file.
29311
29312         relocatable-prog-wrapper: fix build
29313         * modules/relocatable-prog-wrapper (Files): Update name of
29314         canonicalize m4 file, broken on 2009-09-17.
29315         Reported by emad hajjar <aleppos@hotmail.com>.
29316
29317 2009-09-19  Bruno Haible  <bruno@clisp.org>
29318
29319         * lib/safe-alloc.h: Use the standard header with GPL copyright.
29320         * lib/safe-alloc.c: Likewise.
29321         Reported by Ian Beckwith <ianb@erislabs.net>.
29322
29323 2009-09-18  Bruno Haible  <bruno@clisp.org>
29324
29325         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
29326         Reported by <erobles@sensacd.com.mx>.
29327
29328 2009-09-17  Eric Blake  <ebb9@byu.net>
29329
29330         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29331         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29332         slashes when checking if last component is missing.
29333         * tests/test-canonicalize.c (main): Test this.
29334
29335         canonicalize, canonicalize-lgpl: honor // if distinct from /
29336         * modules/canonicalize (Files): Add double-slash-root.m4.
29337         * modules/canonicalize-lgpl (Files): Likewise.
29338         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29339         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29340         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29341         fallback definition.
29342         (canonicalize_filename_mode): Use it to protect //.
29343         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29344         (__realpath): Likewise.
29345         * tests/test-canonicalize.c (main): Test this.
29346         * tests/test-canonicalize-lgpl.c (main): Likewise.
29347         * modules/canonicalize-tests (Depends-on): Add same-inode.
29348         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29349
29350         canonicalize-lgpl: fix glibc bug with trailing slash
29351         * m4/canonicalize-lgpl.m4: Move contents...
29352         * m4/canonicalize.m4: ...here.
29353         (gl_CANONICALIZE_LGPL): Factor realpath check...
29354         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29355         glibc 2.3.5 bug, fixed 2005-04-27.
29356         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29357         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29358         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29359         * modules/canonicalize-lgpl (Files): Manage file rename.
29360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29361         * modules/stdlib (Makefile.am): Substitute witness.
29362         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29363         is needed.
29364         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29365         replacement is required.
29366         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29367         * doc/glibc-functions/canonicalize_file_name.texi
29368         (canonicalize_file_name): Document this.
29369         * doc/posix-functions/realpath.texi (realpath): Likewise.
29370
29371         canonicalize-lgpl: reject non-directory with trailing slash
29372         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29373         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29374         catches failures in glibc 2.3.5.
29375         * tests/test-canonicalize.c (main): Likewise.
29376
29377         canonicalize-lgpl: use native realpath if it works
29378         * lib/canonicalize-lgpl.c (realpath): Guard with
29379         FUNC_REALPATH_WORKS.
29380         * lib/stdlib.in.h (realpath): Make declaration optional based on
29381         HAVE_REALPATH.
29382         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29383         native realpath works.
29384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29385         * modules/stdlib (Makefile.am): Substitute witness.
29386
29387         canonicalize, canonicalize-lgpl: use <stdlib.h>
29388         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29389         (Include): Mention <stdlib.h>.
29390         (configure.ac): Mention functions we provide.
29391         * modules/canonicalize (configure.ac): Likewise.
29392         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29393         realpath if canonicalize_file_name is missing.
29394         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29395         * modules/stdlib (Makefile.am): Substitute witnesses.
29396         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29397         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29398         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29399         * NEWS: Document this.
29400         * doc/glibc-functions/canonicalize_file_name.texi
29401         (canonicalize_file_name): Likewise.
29402         * doc/posix-functions/realpath.texi (realpath): Likewise.
29403         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
29404
29405         test-canonicalize: consolidate into single C program
29406         * tests/test-canonicalize.sh: Delete; move setup into...
29407         * tests/test-canonicalize.c (main): ...the program, making it
29408         easier to run in debugger.  Add some tests.
29409         * modules/canonicalize-tests (Files): Remove unused file.
29410         (Depends-on): Add progname.
29411         (configure.ac, Makefile.am): Simplify.
29412
29413         test-canonicalize-lgpl: consolidate into single C program
29414         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
29415         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
29416         easier to run in debugger.  Add some tests.
29417         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
29418         (configure.ac, Makefile.am): Simplify.
29419
29420         canonicalize: avoid resolvepath
29421         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
29422         unnecessary checks.
29423         * lib/canonicalize.c (includes): Simplify.
29424         (canonicalize_file_name): Drop resolvepath implementation.
29425         * modules/canonicalize (Depends-on): Drop filenamecat.
29426
29427         canonicalize: don't lose errno
29428         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
29429         over calls to free.
29430
29431         canonicalize: simplify errno handling
29432         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
29433         assignment.
29434
29435         canonicalize, canonicalize-lgpl: update module dependencies
29436         * modules/canonicalize (Depends-on): Add extensions, lstat,
29437         pathmax, stdlib.
29438         (Files): Drop pathmax.h.
29439         (configure.ac): Adjust macro name.
29440         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
29441         lstat, stdlib, sys_stat.
29442         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
29443         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
29444         extensions.
29445         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
29446         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
29447         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
29448         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
29449         declaration, if available.
29450         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
29451         we can rely on the readlink module.
29452         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
29453         (includes): Use <unistd.h> unconditionally.
29454
29455 2009-09-17  Eric Blake  <ebb9@byu.net>
29456
29457         maint: make Include sections of modules consistent
29458         * modules/alloca: Use only header name; no need to list #include.
29459         * modules/alloca-opt: Likewise.
29460         * modules/arpa_inet: Likewise.
29461         * modules/canon-host: Likewise.
29462         * modules/configmake: Likewise.
29463         * modules/dirent: Likewise.
29464         * modules/eealloc: Likewise.
29465         * modules/environ: Likewise.
29466         * modules/fchdir: Likewise.
29467         * modules/fcntl: Likewise.
29468         * modules/fcntl-h: Likewise.
29469         * modules/gethrxtime: Likewise.
29470         * modules/gettime: Likewise.
29471         * modules/ignore-value: Likewise.
29472         * modules/inet_ntop: Likewise.
29473         * modules/inet_pton: Likewise.
29474         * modules/inttypes: Likewise.
29475         * modules/isnand-nolibm: Likewise.
29476         * modules/isnanf-nolibm: Likewise.
29477         * modules/mbchar: Likewise.
29478         * modules/mbfile: Likewise.
29479         * modules/mbiter: Likewise.
29480         * modules/mbuiter: Likewise.
29481         * modules/netdb: Likewise.
29482         * modules/netinet_in: Likewise.
29483         * modules/nproc: Likewise.
29484         * modules/pagealign_alloc: Likewise.
29485         * modules/poll: Likewise.
29486         * modules/printf-frexp: Likewise.
29487         * modules/pthread: Likewise.
29488         * modules/putenv: Likewise.
29489         * modules/random_r: Likewise.
29490         * modules/relocatable-prog: Likewise.
29491         * modules/search: Likewise.
29492         * modules/select: Likewise.
29493         * modules/selinux-h: Likewise.
29494         * modules/settime: Likewise.
29495         * modules/signal: Likewise.
29496         * modules/size_max: Likewise.
29497         * modules/socklen: Likewise.
29498         * modules/ssize_t: Likewise.
29499         * modules/stdarg: Likewise.
29500         * modules/stdbool: Likewise.
29501         * modules/stddef: Likewise.
29502         * modules/stdint: Likewise.
29503         * modules/stdio: Likewise.
29504         * modules/stdlib: Likewise.
29505         * modules/string: Likewise.
29506         * modules/strings: Likewise.
29507         * modules/sys_file: Likewise.
29508         * modules/sys_ioctl: Likewise.
29509         * modules/sys_select: Likewise.
29510         * modules/sys_socket: Likewise.
29511         * modules/sys_stat: Likewise.
29512         * modules/sys_time: Likewise.
29513         * modules/sys_times: Likewise.
29514         * modules/sys_utsname: Likewise.
29515         * modules/sys_wait: Likewise.
29516         * modules/sysexits: Likewise.
29517         * modules/time: Likewise.
29518         * modules/times: Likewise.
29519         * modules/tmpfile: Likewise.
29520         * modules/trim: Likewise.
29521         * modules/unistd: Likewise.
29522         * modules/wchar: Likewise.
29523         * modules/wctype: Likewise.
29524
29525 2009-09-17  Bruno Haible  <bruno@clisp.org>
29526
29527         Make getdate.y compile on QNX and NetBSD 5 / i386.
29528         * m4/getdate.m4 (gl_GETDATE): Conditionally define
29529         TIME_T_FITS_IN_LONG_INT.
29530         * lib/getdate.y (long_time_t): New type.
29531         (relative_time): Change type of 'seconds' field to long_time_t.
29532         (get_date): Update types of local variables. Check against overflow
29533         during conversion from long_time_t to time_t.
29534         Reported by Matt Kraai <kraai@ftbfs.org>
29535         and Hasso Tepper <hasso@netbsd.org>.
29536
29537 2009-09-17  Bruno Haible  <bruno@clisp.org>
29538
29539         * modules/COPYING: Update copyright years.
29540         * modules/README: Likeiwse.
29541         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
29542         Reported by Ian Beckwith <ianb@erislabs.net>.
29543
29544 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29545
29546         * users.txt: Update references for gnuit package.
29547
29548 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29549
29550         * m4/getdelim.m4: Fix typo in copyright line.
29551
29552 2009-09-17  Bruno Haible  <bruno@clisp.org>
29553
29554         * lib/atoll.c: Use the standard header with GPL copyright.
29555         * lib/argz.in.h: Likewise.
29556         * lib/glob.c: Likewise.
29557         * lib/glob-libc.h: Likewise.
29558         * lib/random_r.c: Likewise.
29559         * lib/siglist.h: Likewise.
29560         * lib/strsignal.c: Likewise.
29561         Reported by Ian Beckwith <ianb@erislabs.net>.
29562
29563 2009-09-17  Eric Blake  <ebb9@byu.net>
29564
29565         rmdir: ensure correct dependency order
29566         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
29567
29568 2009-09-17  Bruno Haible  <bruno@clisp.org>
29569
29570         Disable assertion that fails on NetBSD 5 / i386.
29571         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
29572         Reported by Sam Steingold <sds@gnu.org>
29573         and Hasso Tepper <hasso@netbsd.org>.
29574
29575 2009-09-16  Eric Blake  <ebb9@byu.net>
29576
29577         unlinkdir: port to mingw
29578         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
29579         on which no one can unlink a directory.
29580
29581         stdlib: sort witness names
29582         * modules/stdlib (Makefile.am): Sort replacements.
29583         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29584         * lib/stdlib.in.h: Likewise.
29585
29586         parse-duration-tests: avoid link failure
29587         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
29588         LIBINTL.
29589         Reported by Tom G. Christensen.
29590
29591         openat-tests: ensure unlinkat behaves like rmdir
29592         * tests/test-rmdir.c (main): Factor guts...
29593         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
29594         * modules/rmdir-tests (Files): Ship new file.
29595         * modules/openat-tests: New test.
29596         * tests/test-unlinkat.c: Likewise.
29597
29598         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
29599         * modules/rmdir-errno (Status, Notice): Now obsolete.
29600
29601         rmdir: work around cygwin 1.5.x and mingw bugs
29602         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
29603         * lib/rmdir.c (rmdir): Work around it.
29604         * modules/rmdir (Status, Notice): No longer obsolete.
29605         (Files): Add dos.m4.
29606         (Depends-on): Add unistd.
29607         (configure.ac): Set witnesses.
29608         (License): Relax to LGPLv2+.
29609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
29610         * modules/unistd (Makefile.am): Substitute witnesses.
29611         * lib/unistd.in.h (rmdir): Declare replacement.
29612         * doc/posix-functions/rmdir.texi (rmdir): Document this.
29613         * modules/rmdir-tests: New tests.
29614         * tests/test-rmdir.c: Likewise.
29615
29616 2009-09-15  Eric Blake  <ebb9@byu.net>
29617
29618         fchdir: improve use of replacement functions
29619         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
29620         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
29621         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
29622         REPLACE_CLOSEDIR.
29623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
29624         * modules/sys_stat (Makefile.am): Substitute correct witness.
29625         * modules/dirent (Makefile.am): Likewise.
29626         * modules/unistd (Makefile.am): Likewise.
29627         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
29628         * lib/unistd.in.h (dup): Likewise.
29629         * lib/sys_stat.in.h (fstat): Likewise.
29630
29631         maint: ignore gnulib-tool temp files
29632         * .gitignore: Ignore files created during gnulib-tool --test.
29633
29634 2009-09-13  Jim Meyering  <meyering@redhat.com>
29635
29636         posixtm: don't reject a time that specify "60" as the number of seconds
29637         * lib/posixtm.c (posixtime): The code to reject invalid dates
29638         would also reject a time specified with the .60 suffix.
29639         But POSIX allows that, in order to accommodate leap seconds.
29640         So don't reject it.
29641         (main): Adjust tests accordingly.
29642         * modules/posixtm (Depends-on): Add stpcpy.
29643
29644 2009-09-11  Jim Meyering  <meyering@redhat.com>
29645
29646         announce-gen: include [$release_type] in emitted Subject:
29647         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
29648         e.g., [stable] in the emitted Subject: line.
29649
29650 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29651
29652         Remove obsolete macros from several modules.
29653         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
29654         obsolete Autoconf macros with their modern counterparts.
29655         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
29656         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
29657         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
29658         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
29659         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
29660         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29662         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29663         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29664         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
29665         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29666         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29667         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
29668         * m4/sockets.m4 (gl_SOCKETS): Likewise.
29669         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
29670         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
29671         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29672         * m4/time_r.m4 (gl_TIME_R): Likewise.
29673         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29674         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
29675         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29676
29677         Fix copyright header in build-aux scripts.
29678         * build-aux/git-version-gen: Fix copyright header to match GPLv3
29679         recommendation.
29680         * build-aux/ncftpput-ftp: Likewise.
29681         * build-aux/update-copyright: Likewise.
29682
29683 2009-09-09  Eric Blake  <ebb9@byu.net>
29684
29685         test-link: allow Linux choice of errno
29686         * tests/test-link.c (main): Relax test for alternate error.
29687
29688         strndup: fix improper m4 caching
29689         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
29690         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
29691         (gl_PREREQ_STRNDUP): Delete.
29692         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
29693         * modules/string (Makefile.am): Substitute it.
29694         * lib/string.in.h (strndup): Modernize prototype.
29695
29696         getcwd: port to mingw
29697         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
29698         different from the POSIX assumptions made throughout the getcwd
29699         module; fortunately, the mingw getcwd does not need replacement.
29700         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
29701         * modules/getcwd-tests: New test.
29702         * tests/test-getcwd.c: Likewise.
29703
29704         link: fix platform bugs
29705         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
29706         * lib/link.c (link): Work around them.  Fix related mingw bug.
29707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
29708         * modules/unistd (Makefile.am): Substitute it.
29709         * lib/unistd.in.h (link): Declare replacement.
29710         * doc/posix-functions/link.texi (link): Document this.
29711         * modules/link (Depends-on): Add strdup-posix, sys_stat.
29712
29713         test-link: consolidate into single C program, test more cases
29714         * tests/test-link.sh: Delete.
29715         * tests/test-link.c: Test more error conditions.  Exposes bugs on
29716         at least Cygwin and Solaris.
29717         * modules/link-tests (Files): Remove unused file.
29718         (Depends-on): Add errno, sys_stat.
29719         (Makefile.am): Simplify.
29720
29721 2009-09-08  Bruno Haible  <bruno@clisp.org>
29722
29723         Work around towlower, towupper bug on mingw.
29724         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
29725         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
29726         * doc/posix-functions/towlower.texi: Mention the mingw bug.
29727         * doc/posix-functions/towupper.texi: Likewise.
29728         Reported by Eric Blake.
29729
29730 2009-09-08  Jim Meyering  <meyering@redhat.com>
29731
29732         build: don't try to run autoheader if we don't use it
29733         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
29734         is not used in configure.ac.
29735
29736 2009-09-08  Eric Blake  <ebb9@byu.net>
29737
29738         euidaccess: fix compilation error
29739         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
29740
29741         rawmemchr: relax license
29742         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
29743         okay.
29744         Reported by Jim Meyering.
29745
29746         mkfifoat: new module
29747         * modules/mkfifoat: New file.
29748         * lib/mkfifoat.c: Likewise.
29749         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
29750         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29751         * modules/sys_stat (Makefile.am): Use them.
29752         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
29753         * MODULES.html.sh (File system functions): Mention module.
29754         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29755         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29756         * modules/mkfifoat-tests: New test.
29757         * tests/test-mkfifoat.c: Likewise.
29758
29759         strchrnul: relax license
29760         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
29761         okay.
29762         Reported by Jim Meyering.
29763
29764 2009-09-08  Eric Blake  <ebb9@byu.net>
29765
29766         fstatat: fix compilation on Solaris
29767         * lib/fstatat.c (includes): Add fcntl.h.
29768         Reported by Pádraig Brady.
29769
29770 2009-09-07  Eric Blake  <ebb9@byu.net>
29771
29772         rename: modernize replacement
29773         * modules/rename (Depends-on): Add stdio.
29774         (configure.ac): Declare witness.
29775         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
29776         stdio take care of replacement.
29777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
29778         * modules/stdio (Makefile.am): Substitute them.
29779         * lib/stdio.in.h (rename): Declare replacement.
29780         * lib/rename.c (includes): Allow cross-compilation to non-windows
29781         machines.
29782         * doc/posix-functions/rename.texi (rename): Improve
29783         documentation.
29784
29785         stdio: sort witness names
29786         * modules/stdio (Makefile.am): Sort replacements.
29787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29788         * lib/stdio.in.h: Likewise.
29789
29790         getcwd: minor cleanups
29791         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
29792         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
29793
29794         openat: provide more convenience names
29795         * modules/faccessat (configure.ac): Add C witness.
29796         * lib/unistd.in.h (readlinkat): Fix typo.
29797         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
29798         convenience wrappers.
29799         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
29800         wrappers in syntax checks.
29801
29802 2009-09-06  Eric Blake  <ebb9@byu.net>
29803
29804         doc: fix comments in recent patches
29805         * lib/faccessat.c: Mention correct function.
29806         * lib/fchmodat.c: Likewise.
29807         * lib/fchownat.c: Likewise.
29808         * lib/symlinkat.c: Likewise.
29809         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
29810         constants.
29811
29812         faccessat, symlinkat: continue cleanup of previous patch
29813         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
29814         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
29815         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
29816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
29817         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
29818         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
29819         set.
29820
29821 2009-09-06  Bruno Haible  <bruno@clisp.org>
29822
29823         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
29824         (fstatat): Declare if GNULIB_FSTATAT is set.
29825         (mkdirat): Declare if GNULIB_MKDIRAT is set.
29826         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
29827         (unlinkat): Declare if GNULIB_UNLINKAT is set.
29828         * modules/fcntl-h (Files): Remove m4/openat.m4.
29829         * modules/sys_stat (Files): Remove m4/openat.m4.
29830         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
29831         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
29832         * modules/unistd (Files): Remove m4/openat.m4.
29833         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
29834         GNULIB_OPENAT.
29835         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
29836         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
29837         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
29838         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
29839         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
29840         gl_OPENAT_DEFAULTS.
29841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
29842         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
29843         Don't require gl_OPENAT_DEFAULTS.
29844         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
29845         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
29846         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
29847         (gl_OPENAT_DEFAULTS): Remove macro.
29848
29849 2009-09-06  Bruno Haible  <bruno@clisp.org>
29850
29851         * modules/openat (configure.ac): Remove unneeded witness.
29852
29853 2009-09-06  Bruno Haible  <bruno@clisp.org>
29854
29855         Set errno to ENOSYS when a function is entirely unsupported.
29856         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
29857         EOPNOTSUPP.
29858         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29859         * modules/chown (Depends-on): Remove errno.
29860
29861 2009-09-06  Bruno Haible  <bruno@clisp.org>
29862
29863         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
29864
29865 2009-09-06  Bruno Haible  <bruno@clisp.org>
29866
29867         * lib/sys_stat.in.h: Fix preprocessor command indentation.
29868
29869 2009-09-06  Ben Pfaff  <blp@gnu.org>
29870             Bruno Haible  <bruno@clisp.org>
29871
29872         Work around a glibc bug in strtok_r.
29873         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
29874         Undefine if UNDEFINE_STRTOK_R is set.
29875         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
29876         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29877         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
29878         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
29879         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
29880         UNDEFINE_STRTOK_R.
29881         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
29882
29883 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29884
29885         exclude: minor fix
29886         * lib/exclude.c: Include wctype.h
29887
29888 2009-09-06  Akim Demaille  <demaille@gostai.com>
29889
29890         bootstrap: improve error message
29891         * build-aux/bootstrap (find_tool): Upon failure, report the list
29892         of candidates.
29893         Honor the initial value of the envvar.
29894
29895 2009-09-05  Eric Blake  <ebb9@byu.net>
29896
29897         symlinkat: new module
29898         * modules/symlinkat: New file.
29899         * lib/symlinkat.c: Likewise.
29900         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
29901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29902         * modules/unistd (Makefile.am): Use them.
29903         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
29904         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
29905         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
29906         * MODULES.html.sh (File system functions): Mention module.
29907         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29908         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29909         * modules/symlinkat-tests: New test.
29910         * tests/test-symlinkat.c: Likewise.
29911
29912         test-openat-safer: add more checks
29913         * tests/test-openat-safer.c (main): Check more code paths.
29914
29915 2009-09-05  Jim Meyering  <meyering@redhat.com>
29916
29917         syntax-check: detect unnecessary inclusion of openat.h
29918         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
29919
29920 2009-09-05  Bruno Haible  <bruno@clisp.org>
29921
29922         Support towlower, towupper.
29923         * doc/posix-functions/towlower.texi: Mention module wctype.
29924         * doc/posix-functions/towupper.texi: Likewise.
29925         * lib/wctype.in.h (towlower, towupper): New functions.
29926         * tests/test-wctype.c: Include stdio.h, stdlib.h.
29927         (ASSERT): New macro.
29928         (e): New variable.
29929         (main): Test also towlower, towupper. Test WEOF argument.
29930         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29931
29932 2009-09-05  Bruno Haible  <bruno@clisp.org>
29933
29934         Fix conversion behaviour when the input is invalid.
29935         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
29936         mark occurring in first pass of indirect conversion.
29937         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
29938         input.
29939         Found by clang's static analyzer.
29940
29941 2009-09-05  Bruno Haible  <bruno@clisp.org>
29942
29943         * tests/test-striconveh.c (main): Test indirect conversion on platforms
29944         where direct conversion is possible.
29945
29946 2009-09-04  Eric Blake  <ebb9@byu.net>
29947
29948         openat: fail with ENOENT on empty name
29949         * lib/openat-proc.c (openat_proc_name): Special-case the empty
29950         buffer.
29951
29952         link-follow: fix logic bug in prior patch
29953         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
29954         reversed sense of yes and no in prior patch.  Avoid confusing
29955         compilation failure with desired semantics.
29956
29957         link-follow: accomodate mingw and cross-compilation
29958         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
29959         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
29960         cross-compilation results to -1, to make linkat easier to
29961         implement when cross-compiling.  Trivially support mingw.
29962         * modules/link-follow (configure.ac): Call new name.
29963         * NEWS: Mention this.
29964
29965 2009-09-03  Eric Blake  <ebb9@byu.net>
29966
29967         faccessat: compile replacement
29968         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
29969         needed.
29970
29971         fts: fix compilation error
29972         * lib/fts.c (includes): Re-add "openat.h", for
29973         openat_needs_fchdir.
29974
29975         faccessat: new module
29976         * modules/faccessat: New file.
29977         * lib/faccessat.c: Likewise.
29978         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
29979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29980         * modules/unistd (Makefile.am): Use it.
29981         * lib/unistd.in.h (faccessat): Declare it.
29982         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
29983         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
29984         * MODULES.html.sh (File system functions): Mention it.
29985         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
29986         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
29987
29988         euidaccess: prefer POSIX over non-standard implementation
29989         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
29990         * lib/euidaccess.c (euidaccess): Use it if available.
29991
29992         openat: make template easier to use
29993         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
29994         AT_FUNC_F2 to be undefined.
29995         (VALIDATE_FLAG): New macro; use it to reject bad flags.
29996         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
29997         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
29998         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
29999         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
30000         Likewise.
30001         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
30002         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
30003         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
30004         Likewise.
30005
30006         openat: declare in POSIX headers
30007         * NEWS: Mention this.
30008         * modules/openat (configure.ac): Declare witnesses.
30009         (Depends-on): Add fcntl-h, sys_stat, unistd.
30010         (Include): Mention correct headers.
30011         * modules/fcntl-h (Depends-on): Add link-warning.
30012         (Files): Add openat.m4.
30013         (Makefile.am): Substitute witnesses.
30014         * modules/sys_stat (Files, Makefile.am): Likewise.
30015         * modules/unistd (Files, Makefile.am): Likewise.
30016         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
30017         (gl_OPENAT_DEFAULTS): New macro.
30018         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30020         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30021         (SYS_STAT_H): Remove unused variable.
30022         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30023         * lib/fcntl--.h (includes): Remove unneeded header.
30024         * lib/openat-safer.c (includes): Likewise.
30025         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30026         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30027         appropriate headers.
30028         (__OPENAT_PREFIX): Delete.
30029         * lib/fcntl.in.h (openat): Provide declaration.
30030         (AT_FDCWD): Fix Solaris bug.
30031         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30032         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30033         * lib/fchmodat.c (includes):  Adjust to find declaration.
30034         * lib/fchownat.c (includes): Likewise.
30035         * lib/mkdirat.c (includes): Likewise.
30036         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30037         still visible.
30038
30039 2009-09-02  Eric Blake  <ebb9@byu.net>
30040
30041         errno: use consistently
30042         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30043         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30044         * lib/canonicalize.c (ELOOP): Likewise.
30045         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30046         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30047         * lib/lchown.c (EOPNOTSUPP): Likewise.
30048         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30049         * lib/savewd.c (ESTALE): Likewise.
30050         * lib/settime.c (ENOSYS): Likewise.
30051         * lib/utimens.c (ENOSYS): Likewise.
30052         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30053         * lib/chdir-safer.c (ELOOP): Likewise.
30054         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30055         * modules/c-stack (Depends-on): Add errno.
30056         * modules/canonicalize (Depends-on): Likewise.
30057         * modules/chdir-safer (Depends-on): Likewise.
30058         * modules/fdopendir (Depends-on): Likewise.
30059         * modules/inet_ntop (Depends-on): Likewise.
30060         * modules/inet_pton (Depends-on): Likewise.
30061         * modules/lchown (Depends-on): Likewise.
30062         * modules/openat (Depends-on): Likewise.
30063         * modules/savewd (Depends-on): Likewise.
30064         * modules/settime (Depends-on): Likewise.
30065         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30066
30067         fts: avoid leaking fds
30068         * modules/fts (Depends-on): Add cloexec.
30069         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30070         flag.
30071
30072         fts: make directory fds more robust
30073         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30074         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30075
30076         backupfile, chdir-long, fts, savedir: make safer
30077         * lib/backupfile.c (includes): Use "dirent--.h", since
30078         numbered_backup can write to stderr during readdir.
30079         * lib/savedir.c (includes): Likewise.
30080         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30081         emulation can write to stderr on failure.
30082         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30083         * lib/getcwd.c: Document why opendir_safer is unused.
30084         * lib/glob.c: Likewise.
30085         * lib/scandir.c: Likewise.
30086         * lib/openat-proc.c: Likewise, for open_safer.
30087         * modules/backupfile (Depends-on): Add dirent-safer.
30088         * modules/savedir (Depends-on): Likewise.
30089         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30090         * modules/chdir-long (Depends-on): Add openat-safer.
30091
30092         openat-safer: new module
30093         * modules/openat-safer: New file.
30094         * lib/openat-safer.c: Likewise.
30095         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30096         * lib/fcntl-safer.h (openat_safer): Declare.
30097         * lib/fcntl--.h (openat): Override.
30098         * MODULES.html.sh (File descriptor based I/O): Mention it.
30099         * lib/openat.h: Add double-inclusion guards.
30100         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30101         "fcntl--.h", so we can implement openat.
30102         * modules/openat-safer-tests: New test.
30103         * tests/test-openat-safer.c: New file.
30104
30105         dirent-safer: new module
30106         * modules/dirent-safer: New file.
30107         * lib/dirent--.h: Likewise.
30108         * lib/dirent-safer.h: Likewise.
30109         * lib/opendir-safer.c: Likewise.
30110         * m4/dirent-safer.m4: Likewise.
30111         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30112         * modules/dirent-safer-tests: New test.
30113         * tests/test-dirent-safer.c: New file.
30114         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30115
30116         fdopendir: optimize on mingw
30117         * lib/unistd.in.h (_gl_directory_name): New prototype.
30118         * lib/fchdir.c (_gl_directory_name): Implement it.
30119         (fchdir): Use it to simplify implementation.
30120         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30121         fchdir, when available, to avoid calling [f]chdir().
30122
30123         fdopendir: split into its own module
30124         * lib/openat.c (fdopendir): Move...
30125         * lib/fdopendir.c: ...into new file.
30126         * modules/fdopendir: New module.
30127         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30128         * modules/openat (Depends-on): Add fdopendir.
30129         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30130         fdopendir here.
30131         * modules/savedir (Depends-on): Only need fdopendir, not full
30132         openat.
30133         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30134         * lib/openat.h (fdopendir): Drop prototype.
30135         * lib/dirent.in.h (fdopendir): Provide prototype.
30136         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30137         * modules/dirent (Makefile.am): Substitute them.
30138         * MODULES.html.sh (File system functions): Mention it.
30139         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30140         * modules/fdopendir-tests: New file.
30141         * tests/test-fdopendir.c: Likewise.
30142
30143         fchdir: use more consistent macro convention
30144         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30145         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30146         REPLACE_FCHDIR, rather than relying on config.h macros.
30147         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30148         inside a single make-time REPLACE_FCHDIR block, rather than using
30149         the config.h FCHDIR_REPLACEMENT.
30150         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30151         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30152         Manage fstat replacement.
30153         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30154         REPLACE_FCHDIR.
30155         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30156         (Makefile.am): Substitute REPLACE_FCHDIR.
30157         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30158         FCHDIR_REPLACEMENT.
30159         * lib/dup-safer.c (dup_safer): Likewise.
30160         * lib/dup2.c (rpl_dup2): Likewise.
30161         * lib/dup3.c (rpl_dup3): Likewise.
30162         * lib/open.c (rpl_open): Likewise.
30163
30164         fchdir: simplify error handling, and support dup3
30165         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30166         stdbool, malloc-posix, realloc-posix.
30167         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30168         (ensure_dirs_slot): Return false on allocation failure.
30169         (rpl_dup2): Delete.
30170         (_gl_register_dup): New function.
30171         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30172         (_gl_register_fd): Close fd on allocation failure.
30173         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30174         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30175         prototype.
30176         (rpl_dup2_fchdir): Delete prototype.
30177         * lib/open.c (open): Update caller.
30178         * lib/dup2.c (dup2): Track fchdir metadata.
30179         * lib/dup3.c (dup3): Likewise.
30180         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30181         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30182
30183 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30184
30185         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30186         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30187         don't pass arguments to AC_OUTPUT.
30188
30189 2009-09-02  Bruno Haible  <bruno@clisp.org>
30190
30191         * modules/mkdtemp (License): Relicense under LGPLv2+.
30192         Reported by Paolo Bonzini.
30193
30194 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30195
30196         Replace uses of obsolete autoconf macros in Jim's modules.
30197         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30198         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30199         can evoke a warning from autoconf when run with -Wobsolete
30200         enabled.  They were declared obsolete for good reasons (see
30201         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30202         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30203         should not continue using the deprecated macros.
30204         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30205         obsolete Autoconf macros with modern counterparts.
30206         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30207         * m4/dos.m4 (gl_AC_DOS): Likewise.
30208         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30209         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30210         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30211         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30212         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30213         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30214         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30215         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30216         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30217         Likewise.
30218         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30219         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30220         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30221         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30222         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30223         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30224
30225 2009-09-01  Eric Blake  <ebb9@byu.net>
30226
30227         fchdir: fix off-by-one bug in previous patch
30228         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30229         (_gl_unregister_fd): Delete useless if.
30230
30231 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30232
30233         maint.mk: sort the list of syntax-check rules
30234         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30235         easier to get a sense of progress when the rules are run sequentially
30236         and take a long time.
30237
30238 2009-09-01  Simon Josefsson  <simon@josefsson.org>
30239
30240         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
30241         * modules/netinet_in: Likewise.
30242         * modules/sys_file: Likewise.
30243         * modules/sys_ioctl: Likewise.
30244         * modules/sys_select: Likewise.
30245         * modules/sys_socket: Likewise.
30246         * modules/sys_stat: Likewise.
30247         * modules/sys_time: Likewise.
30248         * modules/sys_times: Likewise.
30249         * modules/sys_utsname: Likewise.
30250         * modules/sys_wait: Likewise.
30251
30252 2009-09-01  Jim Meyering  <meyering@redhat.com>
30253
30254         fts: help ensure that return values are not ignored
30255         * lib/fts_.h (__GNUC_PREREQ): Define.
30256         (__attribute_warn_unused_result__): Define.
30257         (fts_children, fts_close, fts_open, fts_read): Declare with
30258         __attribute_warn_unused_result__.
30259
30260         fts: fts_close now fails also when closing a dir file descriptor fails
30261         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
30262         and propagate to caller, along with errno.
30263
30264         announce-gen: correct formatting in --help output
30265         * build-aux/announce-gen (usage): Move the one-line description in
30266         --help output "up", to where it belongs, just after Usage:.
30267
30268 2009-08-31  Eric Blake  <ebb9@byu.net>
30269
30270         fchdir: port to mingw
30271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
30272         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
30273         opened, then use a substitute.
30274         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
30275         replacement.
30276         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
30277         (_gl_register_fd): No need to check stat if open already filters
30278         all directories.
30279         (fchdir): Fix error condition to match POSIX.
30280         * modules/fchdir (Depends-on): Add sys_stat.
30281         * doc/posix-functions/open.texi (open): Document the limitation.
30282         * modules/fchdir-tests: New file.
30283         * tests/test-fchdir.c: Likewise.
30284
30285         canonicalize: allow cross-testing from cygwin to mingw
30286         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
30287         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
30288         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
30289         Likewise.
30290         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
30291         target does not support symlinks.
30292         * tests/test-canonicalize-lgpl.sh: Likewise.
30293
30294         chown: avoid compilation warning on mingw
30295         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
30296         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
30297         mingw.
30298         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30299         * modules/chown (Depends-on): Add errno.
30300
30301 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30302
30303         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
30304         command.
30305
30306 2009-08-31  Jim Meyering  <meyering@redhat.com>
30307
30308         canonicalize: remove useless initialization
30309         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
30310         initialization of local, "end".
30311
30312 2009-08-30  Bruno Haible  <bruno@clisp.org>
30313
30314         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
30315         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
30316         ENOSYS.
30317
30318 2009-08-30  Bruno Haible  <bruno@clisp.org>
30319
30320         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
30321         /usr/xpg4/bin/tr when it exists.
30322         * tests/test-pipe-filter-gi1.sh: Likewise.
30323
30324 2009-08-30  Bruno Haible  <bruno@clisp.org>
30325
30326         Work around deficient /usr/bin/id program on Solaris.
30327         * tests/test-file-has-acl.sh (ID): New variable.
30328         * tests/test-set-mode-acl.sh (ID): Likewise.
30329         * tests/test-copy-acl.sh (ID): Likewise.
30330         * tests/test-copy-file.sh (ID): Likewise.
30331
30332 2009-08-30  Bruno Haible  <bruno@clisp.org>
30333
30334         New module 'xstriconveh'.
30335         * lib/xstriconveh.h: New file.
30336         * lib/xstriconveh.c: New file.
30337         * modules/xstriconveh: New file.
30338
30339 2009-08-30  Bruno Haible  <bruno@clisp.org>
30340
30341         Make it easier to use mem_cd_iconveh.
30342         * lib/striconveh.h (iconveh_t): New type.
30343         (iconveh_open, iconveh_close): New declarations.
30344         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30345         with a single 'const iconveh_t *' argument.
30346         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30347         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30348         with a single 'const iconveh_t *' argument.
30349         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30350         * tests/test-striconveh.c (main): Update.
30351         * NEWS: Mention the change.
30352
30353 2009-08-30  Bruno Haible  <bruno@clisp.org>
30354
30355         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30356         problem.
30357
30358 2009-08-30  Bruno Haible  <bruno@clisp.org>
30359
30360         Work around iconv_open problem on Solaris.
30361         * lib/iconv_open-solaris.gperf: New file.
30362         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30363         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30364         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30365         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30366         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30367         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30368
30369 2009-08-29  Jim Meyering  <meyering@redhat.com>
30370
30371         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30372         * top/maint.mk (cvs-check): Remove target; it was just an alias
30373         to the better-named vc-diff-check.
30374         (maintainer-distcheck): Remove rule.  It was used only from
30375         the (alpha/beta/major) target, and all of its commands but one
30376         were coreutils-specific.
30377         (vc-dist): Remove rule.
30378         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30379         Run vc-diff-check, not vc-dist.
30380         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30381
30382 2009-08-27  Bruno Haible  <bruno@clisp.org>
30383
30384         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30385         of 0.
30386
30387 2009-08-27  Bruno Haible  <bruno@clisp.org>
30388
30389         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30390         compilers.
30391         * doc/func.texi: Document the SunPRO C bug.
30392
30393 2009-08-27  Bruno Haible  <bruno@clisp.org>
30394
30395         Fix link error on Solaris.
30396         * tests/test-parse-duration.c (xstrdup): Remove function.
30397
30398 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30399
30400         ignore-value: handle pointer types, too
30401         * lib/ignore-value.h (__attribute__): Remove definition.
30402         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
30403         of a more concise and more-often effective "(void) i" statement.
30404         (ignore_ptr): New function to suppress warnings from functions that
30405         return pointers, and to make it explicit that one function doesn't
30406         handle all cases.
30407
30408 2009-08-25  Bruno Haible  <bruno@clisp.org>
30409
30410         dup2: work around a Linux bug.
30411         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
30412         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
30413         * doc/posix-functions/dup2.texi: Mention the Linux bug.
30414         Reported by Simon Josefsson.
30415
30416 2009-08-25  Jim Meyering  <meyering@redhat.com>
30417
30418         libguestfs uses gnulib
30419         * users.txt: Add libguestfs.
30420
30421 2009-08-24  Eric Blake  <ebb9@byu.net>
30422
30423         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
30424         * lib/pipe2.c (includes): Add binary-io.h.
30425         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
30426
30427 2009-08-24  Bruno Haible  <bruno@clisp.org>
30428
30429         Tolerate declared but missing accept4 syscall.
30430         * lib/accept4.c (accept4): Invoke original accept4 function first, if
30431         available.
30432         * lib/sys_socket.in.h (accept4): If the function is already present,
30433         override it.
30434         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
30435         * modules/accept4 (Makefile.am): Compile accept4.c always.
30436         Reported by Paolo Bonzini and Eric Blake.
30437
30438 2009-08-23  Bruno Haible  <bruno@clisp.org>
30439
30440         New module 'accept4'.
30441         * lib/sys_socket.in.h (accept4): New declaration.
30442         * lib/accept4.c: New file.
30443         * m4/accept4.m4: New file.
30444         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30445         GNULIB_ACCEPT4, HAVE_ACCEPT4.
30446         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
30447         HAVE_ACCEPT4.
30448         * modules/accept4: New file.
30449         * doc/glibc-functions/accept4.texi: Mention the new module.
30450
30451 2009-08-24  Jim Meyering  <meyering@redhat.com>
30452
30453         progname: also set global program_invocation_name, when possible
30454         Before this change, a libtool-enabled program that calls glibc's
30455         error function would report the program name as
30456         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
30457         * modules/progname (configure.ac): Check for a declaration of
30458         program_invocation_name.
30459         * lib/progname.c:  Include <errno.h>.
30460         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
30461         Set program_invocation_name.
30462
30463 2009-08-23  Bruno Haible  <bruno@clisp.org>
30464
30465         * lib/dup3.c: Include <string.h>.
30466
30467 2009-08-23  Bruno Haible  <bruno@clisp.org>
30468
30469         * lib/dup3.c (dup3): Test only once whether the system actually exists.
30470         * lib/pipe2.c (pipe2): Likewise.
30471         Suggested by Eric Blake.
30472
30473 2009-08-23  Bruno Haible  <bruno@clisp.org>
30474
30475         Tolerate declared but missing dup3 syscall.
30476         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
30477         * lib/unistd.in.h (dup3): If the function is already present,
30478         override it.
30479         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
30480         * modules/dup3 (Makefile.am): Compile dup3.c always.
30481         Reported by Paolo Bonzini.
30482
30483 2009-08-23  Bruno Haible  <bruno@clisp.org>
30484
30485         Tolerate declared but missing pipe2 syscall.
30486         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
30487         available.
30488         * lib/unistd.in.h (pipe2): If the function is already present,
30489         override it.
30490         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
30491         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
30492         Reported by Paolo Bonzini.
30493
30494 2009-08-23  Bruno Haible  <bruno@clisp.org>
30495
30496         * lib/pipe2.c (pipe2): Move #ifs inside function.
30497
30498 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30499
30500         quotearg: document limitations of quote_these_too
30501         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
30502         those limitations are created.
30503         * lib/quotearg.h (set_char_quoting): Document that digits and
30504         letters that are special after backslash are not permitted.
30505         (quotearg_char): Cross-reference set_char_quoting documentation.
30506
30507 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
30508
30509         quotearg: implement custom_quoting_style
30510         * lib/quotearg.c: (struct quoting_options): Add left_quote and
30511         right_quote fields.
30512         (set_custom_quoting): New public function.
30513         (quotearg_buffer_restyled): Add left_quote and right_quote
30514         arguments, handle them very much like locale quoting, and update
30515         all uses.
30516         (quotearg_n_custom): New public function.
30517         (quotearg_n_custom_mem): New public function.
30518         (quotearg_custom): New public function.
30519         (quotearg_custom_mem): New public function.
30520         * lib/quotearg.h: Prototype and document new public functions.
30521         (enum quoting_style): For escape_quoting_style and
30522         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
30523         ignored even though they're otherwise like c_quoting_style.
30524         Add custom_quoting_style member and document with comparison to
30525         clocale_quoting_style.
30526         * tests/test-quotearg.c (custom_quotes): New array.
30527         (custom_results): New array.
30528         (main): Extend to test custom quoting.
30529
30530 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30531
30532         quotearg: fix right quote escaping when it's in quote_these_too
30533         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
30534         quote, be sure to prepend only one backslash.
30535         * tests/test-quotearg.c (use_quote_double_quotes): New function.
30536         (main): Test it.
30537
30538 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30539
30540         quotearg-tests: test escaping of embedded locale quotes
30541         * tests/test-quotearg.c (struct result_strings): Add member for
30542         new input.
30543         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
30544         (inputs): Add new input.
30545         (results_g): Add expected results.
30546         (flag_results): Likewise.
30547         (locale_results): Likewise.
30548         (compare_strings): Check those.
30549
30550 2009-08-23  Bruno Haible  <bruno@clisp.org>
30551
30552         Tests for module 'dup3'.
30553         * modules/dup3-tests: New file.
30554         * tests/test-dup3.c: New file.
30555
30556         New module 'dup3'.
30557         * lib/unistd.in.h (dup3): New declaration.
30558         * lib/dup3.c: New file.
30559         * m4/dup3.m4: New file.
30560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
30561         HAVE_DUP3.
30562         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
30563         * modules/dup3: New file.
30564         * doc/glibc-functions/dup3.texi: Mention the new module.
30565
30566 2009-08-23  Bruno Haible  <bruno@clisp.org>
30567
30568         Tweak the dup2 test.
30569         * tests/test-dup2.c (main): Create the test file empty. Verify that an
30570         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
30571         the test file is still empty. Fix argument order of lseek.
30572
30573 2009-08-23  Bruno Haible  <bruno@clisp.org>
30574
30575         Avoid test link errors when the modules getopt-gnu, gettext are used.
30576         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
30577         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30578
30579 2009-08-23  Bruno Haible  <bruno@clisp.org>
30580
30581         Fix getdtablesize() on mingw.
30582         * lib/getdtablesize.c (getdtablesize): Implement differently.
30583         * lib/unistd.in.h (getdtablesize): Improve comment.
30584
30585 2009-08-23  Bruno Haible  <bruno@clisp.org>
30586
30587         New module 'mkostemp'.
30588         Based on Ulrich Drepper's 2007-08-10 change in glibc.
30589         * lib/stdlib.in.h (mksotemp): New declaration.
30590         * lib/mkostemp.c: New file, from glibc with modifications.
30591         * lib/tempname.h (GT_FILE): Remove outdated comment.
30592         (gen_tempname): Add flags argument.
30593         * lib/tempname.c (__GT_BIGFILE): Remove macro.
30594         (__GT_FILE): Map to 1.
30595         (small_open, large_open): Remove macros.
30596         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
30597         * lib/mkstemp.c (mkstemp): Update.
30598         * lib/mkdtemp.c (mkdtemp): Likewise.
30599         * m4/mkostemp.m4: New file.
30600         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
30601         HAVE_MKOSTEMP.
30602         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
30603         HAVE_MKOSTEMP.
30604         * modules/mkostemp: New file, based on modules/mkstemp.
30605         * doc/glibc-functions/mkostemp.texi: Mention the new module.
30606         * NEWS: Mention the change.
30607
30608 2009-08-23  Bruno Haible  <bruno@clisp.org>
30609
30610         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
30611         Reported by Eric Blake.
30612
30613 2009-08-23  Bruno Haible  <bruno@clisp.org>
30614
30615         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
30616         Reported by Eric Blake.
30617
30618 2009-08-23  Bruno Haible  <bruno@clisp.org>
30619
30620         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
30621         * modules/pipe2 (Depends-on): Likewise.
30622
30623 2009-08-23  Eric Blake  <ebb9@byu.net>
30624
30625         fcntl-h: add O_TTY_INIT support
30626         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
30627         * tests/test-fcntl-h.c (o): Test it.
30628         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30629
30630         fcntl-h: rename from fcntl, in preparation for fcntl(2)
30631         * modules/fcntl: Move <fcntl.h> header replacement...
30632         * modules/fcntl-h: ...to new name, so as not to collide with
30633         like-named function.
30634         * tests/test-fcntl.c: Rename...
30635         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
30636         * modules/fcntl-tests: Rename...
30637         * modules/fcntl-h-tests: ...to this.  Update test file name.
30638         * modules/chdir-long (Depends-on): Update clients.
30639         * modules/chdir-safer (Depends-on): Likewise.
30640         * modules/fcntl-safer (Depends-on): Likewise.
30641         * modules/fts (Depends-on): Likewise.
30642         * modules/mkancesdirs (Depends-on): Likewise.
30643         * modules/mkdir-p (Depends-on): Likewise.
30644         * modules/open (Depends-on): Likewise.
30645         * modules/savewd (Depends-on): Likewise.
30646         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
30647         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30648
30649 2009-08-22  Bruno Haible  <bruno@clisp.org>
30650
30651         * modules/binary-io (License): Relicense under LGPL.
30652         * modules/pipe2 (License): Likewise.
30653
30654 2009-08-22  Bruno Haible  <bruno@clisp.org>
30655
30656         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
30657         return value.
30658         * lib/pipe-filter-gi.c (filter_init): Likewise.
30659         Reported by Eric Blake.
30660
30661 2009-08-22  Bruno Haible  <bruno@clisp.org>
30662
30663         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
30664         * modules/pipe (Depends-on): Add pipe2.
30665
30666 2009-08-22  Bruno Haible  <bruno@clisp.org>
30667
30668         Tests for module 'pipe2'.
30669         * modules/pipe2-tests: New file.
30670         * tests/test-pipe2.c: New file.
30671
30672         New module 'pipe2'.
30673         * lib/unistd.in.h (pipe2): New declaration.
30674         * lib/pipe2.c: New file.
30675         * m4/pipe2.m4: New file.
30676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
30677         HAVE_PIPE2.
30678         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
30679         * modules/pipe2: New file.
30680         * doc/glibc-functions/pipe2.texi: Mention the new module.
30681
30682 2009-08-22  Bruno Haible  <bruno@clisp.org>
30683
30684         Reference some new glibc functions.
30685         * doc/glibc-functions/accept4.texi: New file.
30686         * doc/glibc-functions/dup3.texi: New file.
30687         * doc/glibc-functions/mkostemp.texi: New file.
30688         * doc/glibc-functions/pipe2.texi: New file.
30689         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
30690         (Glibc sys/socket.h): Refer to accept4.
30691         (Glibc unistd.h): Refer to dup3, pipe2.
30692         Reported by Eric Blake.
30693
30694 2009-08-22  Jim Meyering  <meyering@redhat.com>
30695             Bruno Haible  <bruno@clisp.org>
30696
30697         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
30698         This makes it so packages using automake-1.11's silent-rules option
30699         can print e.g., a single "GEN    configmake.h" line, rather than
30700         the 30+ statements that perform the job.  If you want to see the
30701         actual commands, you can still run "make V=1".
30702         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
30703         so that make output is abbreviated when those variables are defined
30704         appropriately.
30705         * modules/argz: Likewise.
30706         * modules/arpa_inet: Likewise.
30707         * modules/byteswap: Likewise.
30708         * modules/configmake: Likewise.
30709         * modules/dirent: Likewise.
30710         * modules/errno: Likewise.
30711         * modules/fcntl: Likewise.
30712         * modules/float: Likewise.
30713         * modules/fnmatch: Likewise.
30714         * modules/getopt-posix: Likewise.
30715         * modules/glob: Likewise.
30716         * modules/iconv_open: Likewise.
30717         * modules/inttypes: Likewise.
30718         * modules/localcharset: Likewise.
30719         * modules/locale: Likewise.
30720         * modules/math: Likewise.
30721         * modules/netdb: Likewise.
30722         * modules/netinet_in: Likewise.
30723         * modules/poll: Likewise.
30724         * modules/posix_spawnp-tests: Likewise.
30725         * modules/sched: Likewise.
30726         * modules/search: Likewise.
30727         * modules/selinux-h: Likewise.
30728         * modules/signal: Likewise.
30729         * modules/spawn: Likewise.
30730         * modules/stdarg: Likewise.
30731         * modules/stdbool: Likewise.
30732         * modules/stddef: Likewise.
30733         * modules/stdint: Likewise.
30734         * modules/stdio: Likewise.
30735         * modules/stdlib: Likewise.
30736         * modules/string: Likewise.
30737         * modules/strings: Likewise.
30738         * modules/sys_file: Likewise.
30739         * modules/sys_ioctl: Likewise.
30740         * modules/sys_select: Likewise.
30741         * modules/sys_socket: Likewise.
30742         * modules/sys_stat: Likewise.
30743         * modules/sys_time: Likewise.
30744         * modules/sys_times: Likewise.
30745         * modules/sys_utsname: Likewise.
30746         * modules/sys_wait: Likewise.
30747         * modules/sysexits: Likewise.
30748         * modules/time: Likewise.
30749         * modules/unistd: Likewise.
30750         * modules/wchar: Likewise.
30751         * modules/wctype: Likewise.
30752
30753 2009-08-22  Jim Meyering  <meyering@redhat.com>
30754
30755         announce-gen: detect write failure
30756         * build-aux/announce-gen: Add Coda at end.
30757         Remove equivalent-but-more-verbose block at top.
30758
30759 2009-08-19  Akim Demaille  <demaille@gostai.com>
30760
30761         bootstrap: --help to stdout.
30762         * bootstrap (usage): Don't send --help to stderr.
30763         Use a here doc instead of a long string.
30764
30765 2009-08-21  Eric Blake  <ebb9@byu.net>
30766
30767         test-popen-safer: split from test-popen
30768         * tests/test-popen.c (main): Move...
30769         * tests/test-popen.h: ...into new file.
30770         * tests/test-popen-safer2.c: New file.
30771         * modules/popen-tests (Files): Add test-popen.h.
30772         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
30773         Suggested by Bruno Haible.
30774
30775         test-fcntl-safer: split from test-open
30776         * tests/test-open.c (main): Move...
30777         * tests/test-open.h: ...into new file.
30778         * tests/test-fcntl-safer.c: New file.
30779         * modules/open-tests (Files): Add test-open.h.
30780         * modules/fcntl-safer-tests: New file.
30781         Suggested by Bruno Haible.
30782
30783         test-fopen-safer: split from test-fopen
30784         * tests/test-fopen.c (main): Move...
30785         * tests/test-fopen.h: ...into new file.
30786         * tests/test-fopen-safer.c: New file.
30787         * modules/fopen-tests (Files): Add test-fopen.h.
30788         * modules/fopen-safer-tests: New file.
30789         Suggested by Bruno Haible.
30790
30791 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30792
30793         popen-safer: test O_CLOEXEC at run-time.
30794         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
30795
30796 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30797
30798         fcntl: move more flags to the header
30799         * lib/cloexec.c: Do not define FD_CLOEXEC here.
30800         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
30801         * lib/fcntl.in.h: Do both things here.
30802
30803 2009-08-21  Jim Meyering  <meyering@redhat.com>
30804
30805         consistently remove $@-t before redirecting to it
30806         * modules/argz: Remove $@-t and $@ before redirecting to the former.
30807         * modules/alloca-opt: Likewise.
30808         * modules/byteswap: Likewise.
30809         * modules/fnmatch: Likewise.
30810         * modules/getopt-posix: Likewise.
30811         * modules/glob: Likewise.
30812         * modules/poll: Likewise.
30813         * modules/posix_spawnp-tests: Likewise.
30814         * modules/sys_socket: Likewise.
30815         * modules/sysexits: Likewise.
30816
30817 2009-08-21  Eric Blake  <ebb9@byu.net>
30818
30819         popen: simplify access to original popen
30820         * lib/popen.c (rpl_popen): No need to worry about popen being a
30821         macro.
30822         Reported by Bruno Haible.
30823
30824 2009-08-20  Eric Blake  <ebb9@byu.net>
30825
30826         build: avoid some compiler warnings
30827         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
30828         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
30829         type.
30830         (new_exclude_segment, excluded_file_pattern_p)
30831         (excluded_file_name_p): Reduce scope.
30832         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
30833         old-style declaration.
30834
30835 2009-08-20  Simon Josefsson  <simon@josefsson.org>
30836
30837         * tests/test-exclude1.sh: Handle Windows EOL.
30838         * tests/test-exclude2.sh: Likewise.
30839         * tests/test-exclude3.sh: Likewise.
30840         * tests/test-exclude4.sh: Likewise.
30841         * tests/test-exclude5.sh: Likewise.
30842         * tests/test-exclude6.sh: Likewise.
30843         * tests/test-exclude7.sh: Likewise.
30844
30845 2009-08-19  Akim Demaille  <demaille@gostai.com>
30846
30847         bootstrap: find sha1sum when named gsha1sum.
30848         * bootstrap (find_tool): New.
30849         ($SHA1SUM): New.
30850         Use it.
30851
30852 2009-08-20  Jim Meyering  <meyering@redhat.com>
30853
30854         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
30855         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
30856         expression that converts "." in a file name to "\." in the resulting
30857         regexp.  Start with a dummy statement, so that prior shell variable
30858         definitions are expanded portably.  Reported by Simon Josefsson.
30859
30860 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
30861
30862         Fix polling for writeability of a screen buffer.
30863         * lib/poll.c: Distinguish input and screen buffers for the
30864         Win32 implementation.
30865         * lib/select.c: Likewise.
30866
30867 2009-08-19  Eric Blake  <ebb9@byu.net>
30868
30869         popen-safer: prevent popen from clobbering std descriptors
30870         * modules/popen-safer: New file.
30871         * lib/popen-safer.c: Likewise.
30872         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
30873         * lib/stdio--.h (popen): Provide override.
30874         * lib/stdio-safer.h (popen_safer): Provide declaration.
30875         * tests/test-popen.c (includes): Partially test this.
30876         * modules/popen-safer-tests: New file, for more tests.
30877         * tests/test-popen-safer.c: Likewise.
30878         * MODULES.html.sh (file stream based Input/Output): Mention it.
30879
30880         tests: test some of the *-safer modules
30881         * modules/fopen-safer (Depends-on): Add fopen.
30882         * modules/fcntl-safer (Depends-on): Add fcntl.
30883         * modules/stdlib-safer (Depends-on): Add stdlib.
30884         (configure.ac): Set indicator.
30885         * modules/unistd-safer (configure.ac): Likewise.
30886         * modules/tmpfile-safer (configure.ac): Likewise.
30887         (Depends-on): Add tmpfile.
30888         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
30889         active.
30890         * tests/test-fopen.c (includes): Test safer versions when they are
30891         in use.
30892         * tests/test-open.c (includes): Likewise.
30893
30894         popen: fix cygwin 1.5 bug when stdin closed
30895         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
30896         * modules/popen: New file.
30897         * modules/popen-tests: Likewise.
30898         * tests/test-popen.c: Likewise.
30899         * m4/popen.m4: Likewise.
30900         * lib/popen.c: Likewise.
30901         * lib/stdio.in.h (popen): New declaration.
30902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
30903         * modules/stdio (Makefile.am): Likewise.
30904         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
30905
30906 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
30907
30908         maint.mk: give full control over update-copyright exclusions
30909         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
30910         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
30911         (update-copyright): Don't force inclusion of top-level
30912         ChangeLog.  Don't force exclusion of all COPYING files, but make
30913         them the default exclusion instead.
30914
30915 2009-08-16  Bruno Haible  <bruno@clisp.org>
30916
30917         Fix test failures on Solaris 10.
30918         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
30919         tests when Solaris iconv() is used.
30920         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
30921         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
30922         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
30923         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
30924         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
30925
30926 2009-08-16  Bruno Haible  <bruno@clisp.org>
30927
30928         Fix test failures on Solaris 10.
30929         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
30930         'tr' program and pass it as first argument.
30931         * tests/test-pipe-filter-gi1.sh: Likewise.
30932         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
30933         program as first argument.
30934         * tests/test-pipe-filter-gi1.c (main): Likewise.
30935
30936 2009-08-16  Eric Blake  <ebb9@byu.net>
30937
30938         fpurge: fix previous commits
30939         * modules/fpurge (Makefile.am): Make replacement conditional,
30940         partially reverting 2007-04-29 change; missed in previous
30941         attempt.
30942         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
30943         is missing.
30944
30945 2009-08-16  Bruno Haible  <bruno@clisp.org>
30946
30947         Clarify fpurge's effect on the file position.
30948         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
30949         * tests/test-fpurge.c (main): Make a second pass for checking the file
30950         position.
30951
30952 2009-08-16  Bruno Haible  <bruno@clisp.org>
30953
30954         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
30955         declaration of fpurge is missing.
30956         * tests/test-fpurge.c (main): Check that the file has not more contents
30957         than expected. Close the file before removing it.
30958
30959 2009-08-15  Eric Blake  <ebb9@byu.net>
30960
30961         fpurge: don't wrap working cygwin implementation
30962         * lib/fpurge.c (fpurge): Fix comment typo.
30963         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
30964         1.7 to avoid replacement.
30965         * tests/test-fpurge.c (main): Enhance test.
30966
30967 2009-08-15  Eric Blake  <ebb9@byu.net>
30968         and Jim Meyering  <meyering@redhat.com>
30969
30970         test-update-copyright: skip if perl is insufficient
30971         * tests/test-update-copyright.sh: Failure to run maintainer tool
30972         should not cause testsuite failure on cygwin 1.5.
30973
30974 2009-08-14  Eric Blake  <ebb9@byu.net>
30975
30976         doc: mention more functions added in cygwin 1.7.0
30977         * doc/posix-headers/limits.texi (limits.h): Update for recent
30978         cygwin additions.
30979         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
30980         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
30981         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
30982         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
30983         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
30984
30985 2009-08-14  Eric Blake  <ebb9@byu.net>
30986
30987         maint.mk: simplify update-copyright rule
30988         * top/maint.mk (update-copyright-local): Delete, and document how
30989         to do it in cfg.mk instead.
30990         (update-copyright-exclude-regexp): Delete, and document how to do
30991         it in .x-update-copyright instead.
30992         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
30993         exclude ChangeLog.
30994
30995 2009-08-14  Bruno Haible  <bruno@clisp.org>
30996
30997         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
30998
30999 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31000
31001         maint.mk: support update-copyright-env
31002         * top/maint.mk (update-copyright-env): Define place-holder.
31003         (update-copyright): Expand $(update-copyright-env) before
31004         invoking update-copyright.
31005
31006 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31007
31008         update-copyright: implement forced reformatting
31009         * build-aux/update-copyright: Implement and document
31010         UPDATE_COPYRIGHT_FORCE.
31011         * tests/test-update-copyright.sh: Test it.
31012
31013 2009-08-14  Eric Blake  <ebb9@byu.net>
31014         and Bruno Haible  <bruno@clisp.org>
31015
31016         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
31017         * tests/test-locale.c: Revert previous patch related to NULL.
31018         * tests/test-stdio.c: Likewise.
31019         * tests/test-stdlib.c: Likewise.
31020         * tests/test-string.c: Likewise.
31021         * tests/test-unistd.c: Likewise.
31022         * modules/time-tests (Depends-on): Add verify.
31023         * modules/wchar-tests (Depends-on): Likewise.
31024         * tests/test-time.c: Test for NULL compliance.
31025         * tests/test-wchar.c: Likewise.
31026         * modules/locale (Depends-on): Add stddef.
31027         * modules/stdio (Depends-on): Likewise.
31028         * modules/stdlib (Depends-on): Likewise.
31029         * modules/string (Depends-on): Likewise.
31030         * modules/time (Depends-on): Likewise.
31031         * modules/unistd (Depends-on): Likewise.
31032         * modules/wchar (Depends-on): Likewise.
31033         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31034         * lib/stdlib.in.h (includes): Likewise.
31035         * lib/string.in.h (includes): Likewise.
31036         * lib/time.in.h (includes): Likewise.
31037         * lib/unistd.in.h (includes): Likewise.
31038         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31039         replaced.
31040         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31041         * m4/stddef_h.m4: New file.
31042         * modules/stddef: Likewise.
31043         * lib/stddef.in.h: Likewise.
31044         * modules/stddef-tests: Likewise.
31045         * tests/test-stddef.c: Likewise.
31046         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31047         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31048         * doc/posix-headers/locale.texi (locale.h): Likewise.
31049         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31050         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31051         * doc/posix-headers/string.texi (string.h): Likewise.
31052         * doc/posix-headers/time.texi (time.h): Likewise.
31053         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31054         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31055
31056 2009-08-14  Eric Blake  <ebb9@byu.net>
31057
31058         doc: improve git diff of texinfo files
31059         * .gitattributes: Add rule for *.texi files, with hint on how to
31060         use it.
31061         Copied from m4, and based on a report by Bruno Haible.
31062
31063 2009-08-14  Bruno Haible  <bruno@clisp.org>
31064
31065         Disable multithread support by default on Cygwin 1.5.x for real.
31066         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31067
31068 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31069
31070         update-copyright: much ado about intervals
31071         * build-aux/update-copyright: Implement and document
31072         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31073         of copyright year intervals.
31074         Also, document UPDATE_COPYRIGHT_YEAR.
31075         * tests/test-update-copyright.sh: Test it.
31076
31077         update-copyright: convert 2-digit to 4-digit years
31078         * build-aux/update-copyright: Implement and document.
31079         * tests/test-update-copyright.sh: Update.
31080
31081 2009-08-14  Jim Meyering  <meyering@redhat.com>
31082
31083         test-exclude: avoid coreutils "make check" failure
31084         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31085         just as in test-argmatch.c.
31086
31087 2009-08-13  Eric Blake  <ebb9@byu.net>
31088
31089         test-dup2: fix bad assumption
31090         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31091         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31092
31093         test-version-etc: fix CRLF portability issue
31094         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31095         recognize \r.
31096         * tests/test-argp-version-etc-1.sh: Likewise.
31097
31098         getopt: update client modules
31099         * modules/argp (Depends-on): Use getopt-gnu.
31100         * modules/git-merge-changelog (Depends-on): Likewise.
31101         * modules/long-options (Depends-on): Likewise.
31102         * modules/xstrtol (Depends-on): Likewise.
31103
31104 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31105
31106         * tests/test-version-etc.sh: Don't fail on different
31107         project/version.  Don't fail on CRLF differences.  Rewrite to use
31108         multiple -e instead of multiple sed forks, suggested by Eric Blake
31109         <ebb9@byu.net>.
31110         * tests/test-argp-version-etc-1.sh: Likewise.
31111
31112 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31113
31114         * tests/test-version-etc.sh: Don't fail on different
31115         project/version.
31116
31117 2009-08-12  Bruno Haible  <bruno@clisp.org>
31118
31119         Tests for modules 'getopt-posix', 'getopt-gnu'.
31120         * modules/getopt-posix-tests: New file.
31121         * tests/test-getopt.c: New file.
31122         * tests/test-getopt.h: New file.
31123         * tests/test-getopt_long.h: New file.
31124
31125         New modules 'getopt-posix', 'getopt-gnu'.
31126         * modules/getopt-gnu: New file, renamed from modules/getopt.
31127         * modules/getopt-posix: New file.
31128         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31129         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31130         (gl_GETOPT): Remove macro.
31131         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31132         Disable the test against BSD systems that declare optreset. Test
31133         against mingw bug. Test against lack of support of optional arguments
31134         on many platforms.
31135         * doc/glibc-headers/getopt.texi: Update module name and list of
31136         relevant platforms.
31137         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31138         'getopt-gnu' and more portability problems.
31139         * NEWS: Mention the changes.
31140
31141 2009-08-12  Bruno Haible  <bruno@clisp.org>
31142
31143         Ensure that optarg etc. get declared by <unistd.h>.
31144         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31145         AC_USE_SYSTEM_EXTENSIONS.
31146         * modules/getopt (Depends-on): Add 'extensions'.
31147
31148 2009-08-12  Bruno Haible  <bruno@clisp.org>
31149
31150         Avoid test link errors.
31151         * modules/pipe-filter-ii-tests (Makefile.am): Define
31152         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31153         * modules/pipe-filter-gi-tests (Makefile.am): Define
31154         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31155         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31156
31157 2009-08-12  Bruno Haible  <bruno@clisp.org>
31158
31159         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31160         gl_GETOPT_SUBSTITUTE before.
31161         (gl_GETOPT): Use it.
31162         * m4/argp.m4 (gl_ARGP): Update.
31163         Reported by Sergey Poznyakoff.
31164
31165         * m4/getopt.m4: Reorder macros.
31166         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31167         (gl_GETOPT_SUBSTITUTE): Remove macro.
31168
31169 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31170
31171         Minor improvement in gitlog-to-changelog
31172
31173         * build-aux/gitlog-to-changelog: New option `--format' makes
31174         output format string configurable.
31175
31176 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31177
31178         Optimize exclude: use hash tables for non-wildcard patterns.
31179
31180         * lib/exclude.c: Include hash.h and mbuiter.h
31181         (struct exclude_pattern, exclude_segment): New data types.
31182         (struct exclude): Rewrite.
31183         (fnmatch_pattern_has_wildcards): New function.
31184         (new_exclude_segment, free_exclude_segment): New functions.
31185         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31186         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31187         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31188         * modules/exclude: Depend on hash and mbuiter.
31189
31190         * modules/exclude-tests: New file.
31191         * tests/test-exclude.c: New file.
31192         * tests/test-exclude1.sh: New file.
31193         * tests/test-exclude2.sh: New file.
31194         * tests/test-exclude3.sh: New file.
31195         * tests/test-exclude4.sh: New file.
31196         * tests/test-exclude5.sh: New file.
31197         * tests/test-exclude6.sh: New file.
31198         * tests/test-exclude7.sh: New file.
31199
31200 2009-08-12  Bruno Haible  <bruno@clisp.org>
31201
31202         Ensure that getopt() gets declared by <unistd.h>.
31203         * lib/unistd.in.h: Conditionally include getopt.h.
31204         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31205         Set GNULIB_UNISTD_H_GETOPT.
31206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31207         GNULIB_UNISTD_H_GETOPT.
31208         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31209
31210 2009-08-12  Bruno Haible  <bruno@clisp.org>
31211
31212         Clarify logic.
31213         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31214         gl_replace_getopt instead of GETOPT_H.
31215
31216 2009-08-12  Bruno Haible  <bruno@clisp.org>
31217
31218         * m4/getopt.m4: Add comments.
31219
31220 2009-08-12  Bruno Haible  <bruno@clisp.org>
31221
31222         Disable multithread support by default on Cygwin 1.5.x.
31223         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31224         set gl_use_threads=no if not specified otherwise.
31225
31226 2009-08-11  Bruno Haible  <bruno@clisp.org>
31227
31228         Avoid compilation error on NetBSD 5.0.
31229         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
31230         * tests/test-stdio.c: Likewise.
31231         * tests/test-stdlib.c: Likewise.
31232         * tests/test-string.c: Likewise.
31233         * tests/test-unistd.c: Likewise.
31234         Reported by Greg Troxel <gdt@ir.bbn.com>
31235         at <https://savannah.gnu.org/support/?106973>.
31236
31237 2009-08-11  Bruno Haible  <bruno@clisp.org>
31238
31239         * modules/dup2-tests (Depends-on): Remove close.
31240
31241         Undo 2009-07-19 commit.
31242         * modules/acl-tests (Depends-on): Remove close.
31243         * modules/binary-io-tests (Depends-on): Likewise.
31244         * modules/closein-tests (Depends-on): Likewise.
31245         * modules/flock-tests (Depends-on): Likewise.
31246         * modules/fsync-tests (Depends-on): Likewise.
31247         * modules/lseek-tests (Depends-on): Likewise.
31248         * modules/pipe-tests (Depends-on): Likewise.
31249         * modules/posix_spawn-tests (Depends-on): Likewise.
31250         * modules/posix_spawnp-tests (Depends-on): Likewise.
31251         * modules/stat-time-tests (Depends-on): Likewise.
31252         * modules/yesno-tests (Depends-on): Likewise.
31253
31254 2009-08-10  Bruno Haible  <bruno@clisp.org>
31255
31256         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
31257
31258 2009-08-10  Bruno Haible  <bruno@clisp.org>
31259
31260         Fix a gcc warning.
31261         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
31262
31263 2009-08-10  Bruno Haible  <bruno@clisp.org>
31264
31265         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
31266         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
31267         not only the first time.
31268         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
31269         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
31270         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
31271         is 1, not only the the first time.
31272
31273 2009-08-10  Bruno Haible  <bruno@clisp.org>
31274
31275         Make it possible to use module 'gethostname' without module 'close'.
31276         * lib/unistd.in.h (close): Evoke a link error only if
31277         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31279         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31280         * modules/unistd (Makefile.am): Substitute
31281         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31282         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
31283         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31284         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31285         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31286         * modules/sys_ioctl (Makefile.am): Substitute
31287         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31288         * modules/socket (configure.ac): On native Windows, set
31289         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
31290         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31291         Reported by Sam Steingold <sds@gnu.org>.
31292
31293 2009-08-10  Bruno Haible  <bruno@clisp.org>
31294
31295         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
31296         * modules/ioctl (configure.ac): Likewise.
31297
31298 2009-08-10  Bruno Haible  <bruno@clisp.org>
31299
31300         Avoid collision between gnulib wrapper and libintl wrapper.
31301         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
31302         already defined in intl/printf.c.
31303         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
31304         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
31305
31306 2009-08-09  Bruno Haible  <bruno@clisp.org>
31307
31308         Make <sys/select.h> really self-contained, also on Solaris 10.
31309         * lib/sys_select.in.h: Include <string.h>.
31310         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
31311         Solaris 10 problem.
31312         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
31313         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
31314         Reported by Jim Meyering.
31315
31316 2009-08-09  Bruno Haible  <bruno@clisp.org>
31317
31318         Avoid warnings from 'aclocal' that are due to a use of macro name
31319         AM_XGETTEXT_OPTION that is not defined in automake.
31320         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
31321         automake.
31322         * modules/error (configure.ac): Likewise.
31323         * modules/propername (configure.ac): Likewise.
31324         * modules/vasprintf (configure.ac): Likewise.
31325         * modules/verror (configure.ac): Likewise.
31326         * modules/xprintf (configure.ac): Likewise.
31327         * modules/xvasprintf (configure.ac): Likewise.
31328
31329 2009-08-08  Bruno Haible  <bruno@clisp.org>
31330
31331         Avoid compilation error in C++ mode.
31332         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31333         Reported by Sam Steingold <sds@gnu.org>.
31334
31335 2009-08-08  Bruno Haible  <bruno@clisp.org>
31336
31337         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31338         for the various Unix platforms.
31339         * doc/posix-headers/limits.texi: Update platforms list regarding
31340         HOST_NAME_MAX.
31341         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31342
31343 2009-08-07  Jim Meyering  <meyering@redhat.com>
31344
31345         selinux-at: fix typo in a comment
31346         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31347         Spotted by Paolo Bonzini.
31348
31349         selinux-at: remove redundant m4 code, add documentation
31350         * modules/selinux-at (configure.ac): Remove redundant code.
31351         LIB_SELINUX is already set via the dependent module, selinux-h.
31352         (Include): Add quotes around selinux-at.h.
31353         * lib/selinux-at.h: Add documentation.
31354         Reported by Bruno Haible in
31355         http://marc.info/?l=gnulib-bug&m=124958988300749
31356
31357 2009-08-07  Bruno Haible  <bruno@clisp.org>
31358
31359         Avoid link error on MacOS X 10.3 and 10.4.
31360         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31361         on non-ELF systems.
31362         * lib/argp-pv.c (argp_program_version): Likewise.
31363         Reported by Simon Josefsson.
31364
31365 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31366
31367         * tests/test-version-etc.sh: Use $EXEEXT.
31368
31369 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31370
31371         update-copyright: update documentation to point to maint.mk
31372         * build-aux/update-copyright: Here.
31373
31374 2009-08-06  Jim Meyering  <meyering@redhat.com>
31375
31376         maint.mk: support update-copyright-local
31377         * top/maint.mk (update-copyright-local): Define place-holder.
31378         (update-copyright): Depend on $(update-copyright-local).
31379
31380 2009-08-06  Jim Meyering  <meyering@redhat.com>
31381
31382         selinux-at: new module
31383         Initially written for coreutils, this module will soon be
31384         used by findutils, too.
31385         * MODULES.html.sh [Misc]: Add selinux-at.
31386         * lib/selinux-at.h: New file, from coreutils.
31387         * lib/selinux-at.c: Likewise.
31388         * modules/selinux-at: Likewise.
31389         (License): Change from LGPL to GPL, since it depends
31390         on the GPL'd openat module.
31391
31392         doc: update README
31393         * README: Remove references to cogito.
31394         Remove cvs-repo-updating instructions from 2007.
31395         Don't imply that CVS is better if you have limited disk space.
31396
31397 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31398
31399         update-copyright: support C-style comments
31400         * build-aux/update-copyright: Implement and document.
31401         * tests/test-update-copyright.sh: Test.
31402
31403 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31404
31405         update-copyright: support omitted "(C)"
31406         * build-aux/update-copyright: Implement and document.  Also,
31407         allow variable whitespace before "(C)".
31408         * tests/test-update-copyright.sh: Test.
31409
31410 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31411
31412         update-copyright: don't trip on non-FSF copyright statements
31413         * build-aux/update-copyright: Fix so that the first correctly
31414         formatted FSF copyright statement is recognized no matter what
31415         appears before it.  Update documentation.
31416         * tests/test-update-copyright.sh: Test that.
31417
31418 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31419
31420         update-copyright: clean up code a little
31421         * build-aux/update-copyright: Append "_re" to the name of any
31422         variable holding a regular expression.
31423         Replace "old" and "new" with "stmt" in variable names.
31424         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
31425         handled correctly.
31426         Format code more consistently.
31427
31428 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31429
31430         update-copyright-tests: improve portability
31431         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
31432         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
31433
31434 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31435
31436         update-copyright: support @copyright{} and &copy;
31437         * build-aux/update-copyright: Implement and document.
31438         * tests/test-update-copyright.sh: Test.
31439
31440 2009-08-04  Jim Meyering  <meyering@redhat.com>
31441
31442         update-copyright-tests: correctly test EOL=\r\n handling
31443         * tests/test-update-copyright.sh: Put \r at the end of some lines
31444         for the dos-eol tests.  Based on a patch by Joel E. Denny.
31445
31446         maint.mk: make update-copyright exclusion list more configurable
31447         * top/maint.mk (update-copyright): Default to excluding COPYING,
31448         but allow an override, in case someone does want to update that file.
31449
31450         maint.mk: don't update copyright date in COPYING
31451         * top/maint.mk (update-copyright): Exclude COPYING.
31452
31453         maint.mk: add a copyright-updating rule
31454         * top/maint.mk (update-copyright): New rule.
31455         Derived from coreutils/Makefile.am.
31456
31457         update-copyright: rename some variables
31458         * build-aux/update-copyright: Rename a few variables for clarity.
31459         Tweak syntax.  List Joel E. Denny as coauthor.
31460
31461 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31462
31463         update-copyright: fix bug for 2-digit last year and add tests
31464         * build-aux/update-copyright: Fix bug.
31465         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
31466         specified.
31467         * modules/update-copyright-tests: New
31468         * tests/test-update-copyright.sh: New.
31469
31470 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31471
31472         update-copyright: handle leading tabs in line prefix
31473         * build-aux/update-copyright: Count leading tabs as 8 spaces
31474         when computing margin.  This helps with the formatting of
31475         ChangeLogs, for example.
31476         Fix documentation a little.
31477
31478 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31479
31480         update-copyright: support EOL=\r\n
31481         * build-aux/update-copyright: Implement that.
31482
31483 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31484
31485         update-copyright: automatically format copyright statements
31486         * build-aux/update-copyright: Implement that.
31487         Also, be a little more predictable and safer by always failing
31488         when the full copyright format is not perfectly recognized as an
31489         unbroken whole.  Discussed at
31490         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
31491         Rewrite documentation.
31492
31493 2009-08-03  Bruno Haible  <bruno@clisp.org>
31494
31495         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
31496
31497 2009-08-02  Bruno Haible  <bruno@clisp.org>
31498
31499         Tests for module 'uname'.
31500         * modules/uname-tests: New file.
31501         * tests/test-uname.c: New file.
31502
31503         New module 'uname'.
31504         * lib/uname.c: New file.
31505         * m4/uname.m4: New file.
31506         * modules/uname: New file.
31507         * doc/posix-functions/uname.texi: Mention the new module.
31508
31509 2009-08-02  Bruno Haible  <bruno@clisp.org>
31510
31511         Tests for module 'sys_utsname'.
31512         * modules/sys_utsname-tests: New file.
31513         * tests/test-sys_utsname.c: New file.
31514
31515         New module 'sys_utsname'.
31516         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
31517         * m4/sys_utsname_h.m4: New file.
31518         * modules/sys_utsname: New file.
31519         * doc/posix-headers/sys_utsname.texi: Mention the new module.
31520
31521 2009-08-02  Bruno Haible  <bruno@clisp.org>
31522
31523         Implicitly initialize the sockets library.
31524         * lib/gethostname.c: Include sockets.h.
31525         (rpl_gethostname): Invoke gl_sockets_startup.
31526         * lib/socket.c: Include sockets.h.
31527         (rpl_socket): Invoke gl_sockets_startup.
31528         * modules/gethostname (Depends-on): Add sockets.
31529         * modules/socket (Depends-on): Likewise.
31530         * tests/test-poll.c: Don't include sockets.h.
31531         (main): Don't invoke gl_sockets_startup.
31532         * tests/test-select.c: Don't include sockets.h.
31533         (main): Don't invoke gl_sockets_startup.
31534
31535 2009-08-02  Bruno Haible  <bruno@clisp.org>
31536
31537         Allow multiple calls to gl_sockets_startup.
31538         * lib/sockets.c (initialized_sockets_version): New variable.
31539         (gl_sockets_startup): Do nothing if already called for this or a higher
31540         version.
31541         (gl_sockets_cleanup): Reset initialized_sockets_version.
31542
31543 2009-08-03  Simon Josefsson  <simon@josefsson.org>
31544
31545         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
31546         different project/version.
31547
31548 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
31549             Bruno Haible  <bruno@clisp.org>
31550
31551         Tests for module 'pipe-filter-gi'.
31552         * modules/pipe-filter-gi-tests: New file.
31553         * tests/test-pipe-filter-gi1.sh: New file.
31554         * tests/test-pipe-filter-gi1.c: New file.
31555         * tests/test-pipe-filter-gi2.sh: New file.
31556         * tests/test-pipe-filter-gi2-main.c: New file.
31557         * tests/test-pipe-filter-gi2-child.c: New file.
31558
31559         New module 'pipe-filter-gi'.
31560         * lib/pipe-filter-gi.c: New file.
31561         * modules/pipe-filter-gi: New file.
31562
31563 2009-08-02  Bruno Haible  <bruno@clisp.org>
31564             Paolo Bonzini  <bonzini@gnu.org>
31565
31566         Tests for module 'pipe-filter-ii'.
31567         * modules/pipe-filter-ii-tests: New file.
31568         * tests/test-pipe-filter-ii1.sh: New file.
31569         * tests/test-pipe-filter-ii1.c: New file.
31570         * tests/test-pipe-filter-ii2.sh: New file.
31571         * tests/test-pipe-filter-ii2-main.c: New file.
31572         * tests/test-pipe-filter-ii2-child.c: New file.
31573
31574         New module 'pipe-filter-ii'.
31575         * lib/pipe-filter.h: New file.
31576         * lib/pipe-filter-ii.c: New file.
31577         * lib/pipe-filter-aux.h: New file.
31578         * modules/pipe-filter-ii: New file.
31579
31580 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31581
31582         * lib/gc-libgcrypt.c: Change copyright to FSF.
31583         * lib/gc-gnulib.c: Likewise.
31584
31585 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
31586
31587         * lib/gethostname.c: Include limits.h.
31588
31589 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31590             Bruno Haible  <bruno@clisp.org>
31591
31592         Ensure HOST_NAME_MAX as part of the gethostname module.
31593         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
31594         define also HOST_NAME_MAX.
31595         * tests/test-gethostname.c: Include <limits.h>.
31596         (main): Check also HOST_NAME_MAX.
31597         * doc/posix-headers/limits.texi: Document the mingw problem.
31598
31599 2009-08-02  Bruno Haible  <bruno@clisp.org>
31600
31601         * lib/gethostname.c (gethostname): Fix handling of large len argument.
31602         Add comments.
31603
31604 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31605
31606         * lib/gethostname.c: Add Windows wrapper.
31607         * m4/gethostname.m4: Look for gethostname in -lws2_32.
31608         * modules/gethostname: Depend on sys_socket & errno, for also
31609         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
31610         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
31611
31612 2009-07-31  Jim Meyering  <meyering@redhat.com>
31613
31614         getloadavg: fix symbol name in comment
31615         * lib/getloadavg.c: Correct a typo I introduced when adding
31616         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
31617         Matt Kraai spotted the problem.
31618
31619 2009-07-29  Matt Kraai  <mkraai@beckman.com>
31620
31621         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
31622         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
31623         code also if ! defined N_NAME_POINTER.
31624         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
31625         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
31626         but the n_name member is a 12-byte array.
31627
31628 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
31629
31630         update-copyright: generalize comment handling
31631         * build-aux/update-copyright: Handle copyright statements
31632         within more comment styles.
31633         Document usage.
31634         Report any file with an external copyright holder or parse failure.
31635
31636 2009-07-29  Jim Meyering  <meyering@redhat.com>
31637
31638         mktime: correct setting of REPLACE_MKTIME
31639         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
31640
31641         update-copyright: new module
31642         * modules/update-copyright: New file.
31643         * build-aux/update-copyright: New file.
31644         * MODULES.html.sh (maint+release support): Add update-copyright.
31645
31646 2009-07-27  Bruno Haible  <bruno@clisp.org>
31647
31648         Fix compilation error when <ctime> is used and mktime is replaced.
31649         * lib/time.in.h (mktime): New declaration.
31650         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
31651         REPLACE_MKTIME instead of defining mktime in config.h.
31652         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
31653         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
31654         Reported by Ross McFarland <rwmcfa1@neces.com>.
31655
31656 2009-07-27  Bruno Haible  <bruno@clisp.org>
31657
31658         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
31659         Reported by Matt Kraai <mkraai@beckman.com>.
31660
31661 2009-07-25  Jim Meyering  <meyering@redhat.com>
31662
31663         maint.mk: avoid warnings about missing files
31664         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
31665         diagnostic when .prev-version does not exist.
31666         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
31667         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
31668         nonexistent cfg.mk.
31669         Suggestions from Simon Josefsson.
31670
31671 2009-07-25  Bruno Haible  <bruno@clisp.org>
31672
31673         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
31674         defined as macros. Needed on QNX 6.4.1.
31675         Reported by Matt Kraai <mkraai@beckman.com>.
31676
31677 2009-07-23  Jim Meyering  <meyering@redhat.com>
31678
31679         maint.mk: invoke "make dist" with a working value of XZ_OPT
31680         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
31681
31682 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
31683
31684         Make fseeko.c compile on QNX.
31685         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
31686
31687 2009-07-22  Peter Simons  <simons@cryp.to>
31688
31689         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
31690         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
31691         * lib/md4.h: Likewise.
31692         * lib/md5.h: Likewise.
31693         * lib/sha1.h: Likewise.
31694         * lib/sha256.h: Likewise.
31695         * lib/sha512.h: Likewise.
31696
31697         tests-sha1: don't assign literal string to 'char *' variable
31698         * tests/test-sha1.c (main): Declare locals with "const" to match
31699         attributes of the right hand side.
31700
31701 2009-07-21  Eric Blake  <ebb9@byu.net>
31702
31703         dup2: fix more mingw problems
31704         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
31705         fd to itself.
31706         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31707         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
31708         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
31709         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
31710         care of mingw bugs.
31711
31712 2009-07-21  Jim Meyering  <meyering@redhat.com>
31713
31714         vc-list-files: avoid failure when /bin/sh is dash
31715         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
31716         On some Debian based systems, /bin/sh is a symlink to dash, and running
31717         this command would omit the "/" following each 'tests' prefix:
31718           dash -x build-aux/vc-list-files -C . tests
31719         That is because bash and dash work differently:
31720           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
31721           bash ok
31722           dash odd
31723
31724 2009-07-21  Eric Blake  <ebb9@byu.net>
31725
31726         dup2-tests: test previous patch
31727         * modules/dup2-tests: New file.
31728         * tests/test-dup2.c: Likewise.
31729         * tests/test-open.c (main): Avoid unspecified behavior.
31730         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
31731         test.
31732
31733         dup2: work around mingw and cygwin 1.5 bug
31734         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
31735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31736         * modules/unistd (Makefile.am): Substitute it.
31737         * lib/unistd.in.h (dup2): Declare the replacement.
31738         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
31739         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
31740         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
31741         * modules/execute (Depends-on): Add dup2.
31742         * modules/fseterr (Depends-on): Likewise.
31743         * modules/pipe (Depends-on): Likewise.
31744         * modules/posix_spawn-internal (Depends-on): Likewise.
31745
31746 2009-07-21  Bruno Haible  <bruno@clisp.org>
31747
31748         * modules/.gitattributes: New file.
31749
31750 2009-07-20  Bruno Haible  <bruno@clisp.org>
31751
31752         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
31753         (main): Use it.
31754
31755 2009-07-20  Eric Blake  <ebb9@byu.net>
31756
31757         test-pipe: make a bit more robust.
31758         * tests/test-pipe.c (myerr): Allow error messages regardless of
31759         what we do to stderr.
31760         (test_pipe): Rearrange to avoid deadlock.
31761         (child_main): Try a larger read, to ensure we avoided deadlock.
31762         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
31763         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
31764         if misused.
31765
31766 2009-07-19  Jim Meyering  <meyering@redhat.com>
31767
31768         fts: avoid false-positive cycle-detection
31769         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
31770         for each new command line argument.
31771
31772 2009-07-19  Bruno Haible  <bruno@clisp.org>
31773
31774         Fix build error on mingw with the modules sys_select and unistd.
31775         * modules/acl-tests (Depends-on): Add close.
31776         * modules/binary-io-tests (Depends-on): Likewise.
31777         * modules/closein-tests (Depends-on): Likewise.
31778         * modules/flock-tests (Depends-on): Likewise.
31779         * modules/fsync-tests (Depends-on): Likewise.
31780         * modules/lseek-tests (Depends-on): Likewise.
31781         * modules/pipe-tests (Depends-on): Likewise.
31782         * modules/posix_spawn-tests (Depends-on): Likewise.
31783         * modules/posix_spawnp-tests (Depends-on): Likewise.
31784         * modules/stat-time-tests (Depends-on): Likewise.
31785         * modules/yesno-tests (Depends-on): Likewise.
31786
31787 2009-07-19  Bruno Haible  <bruno@clisp.org>
31788
31789         Unify conditionals.
31790         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
31791         macros, not at the compiler macros.
31792         * lib/pipe.c: Likewise.
31793         * lib/execute.c: Likewise.
31794         * lib/spawni.c: Likewise.
31795
31796 2009-07-19  Bruno Haible  <bruno@clisp.org>
31797
31798         Fix handling of closed stdin/stdout/stderr on mingw.
31799         * lib/w32spawn.h: Include unistd.h.
31800         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
31801         file descriptor with O_NOINHERIT flag.
31802         (fd_safer_noinherit): New function, based on fd-safer.c.
31803         (dup_safer_noinherit): New function, based on dup-safer.c.
31804         (undup_safer_noinherit): New function.
31805         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
31806         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
31807         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
31808         instead of fd_safer.
31809         * tests/test-pipe.c: Include <windows.h>.
31810         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
31811         result.
31812
31813         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
31814         from main.
31815         (test_pipe): Pass an extra argument for disambiguation.
31816         (main): Invoke parent_main or child_main.
31817
31818         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
31819         consistently.
31820
31821 2009-07-18  Eric Blake  <ebb9@byu.net>
31822
31823         test-pipe: fix mingw build
31824         * tests/test-pipe.c (main): Avoid fcntl on mingw.
31825
31826 2009-07-18  Bruno Haible  <bruno@clisp.org>
31827
31828         * modules/pipe-tests (Makefile.am): Fix typo.
31829
31830 2009-07-18  Eric Blake  <ebb9@byu.net>
31831
31832         error: fix mingw build
31833         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
31834         Reported by Bruno Haible.
31835
31836         error: avoid undefined use of stdout
31837         * lib/error.c (error, error_at_line): Check that fd 1 is open
31838         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
31839         is handling faults and the close_stdout module wants to report the
31840         detection of closed stdout as an error.
31841
31842 2009-07-17  Eric Blake  <ebb9@byu.net>
31843
31844         pipe: be robust in face of closed fds
31845         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
31846         should cause child to misbehave.
31847         * modules/pipe-tests: New module.
31848         * tests/test-pipe.c: New file.
31849         * tests/test-pipe.sh: New file.
31850         Reported by Akim Demaille.
31851
31852 2009-07-14  Bruno Haible  <bruno@clisp.org>
31853
31854         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
31855         Reported by anonymous kc.
31856
31857 2009-07-07  Jim Meyering  <meyering@redhat.com>
31858
31859         maint.mk: don't look for translatable strings in *.m4 or *.mk
31860         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
31861         when searching for translatable strings.
31862
31863 2009-07-05  Jim Meyering  <meyering@redhat.com>
31864
31865         remove superfluous parentheses in STREQ definition
31866         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
31867         * lib/getugroups.c (STREQ): Likewise.
31868         * lib/fnmatch.c (STREQ): Likewise.
31869         Spotted by Bruno Haible.
31870
31871 2009-07-04  Jim Meyering  <meyering@redhat.com>
31872
31873         argv-iter: new module
31874         * MODULES.html.sh: Add argv-iter.
31875         * lib/argv-iter.c, lib/argv-iter.h: New files.
31876         * modules/argv-iter: New file.
31877         * modules/argv-iter-tests: New file.
31878         * tests/test-argv-iter.c: Test it.
31879
31880 2009-07-04  Bruno Haible  <bruno@clisp.org>
31881
31882         Fix assertion.
31883         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
31884         contains more exact copies of a given entry than file2, leave the extra
31885         copies unpaired rather than aborting.
31886         Reported by Eric Blake.
31887
31888 2009-07-02  Bruno Haible  <bruno@clisp.org>
31889
31890         Speedup git-merge-changelog for git cherry-pick.
31891         * lib/git-merge-changelog.c (struct entries_mapping): New type.
31892         (entries_mapping_get): New function, extracted from compute_mapping.
31893         (entries_mapping_reverse_get): New function.
31894         (compute_mapping): Add a 'full' argument. Return the result in a
31895         'struct entries_mapping'.
31896         (main): Update. Access the mappings through entries_mapping_get.
31897         Reported by Eric Blake.
31898
31899 2009-07-02  Bruno Haible  <bruno@clisp.org>
31900
31901         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
31902         best_i.
31903
31904 2009-07-02  Bruno Haible  <bruno@clisp.org>
31905
31906         Speed up approximate search for matching ChangeLog entries.
31907         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
31908         argument. Call fstrcmp_bounded instead of fstrcmp.
31909         (compute_mapping, try_split_merged_entry, main): Update callers.
31910
31911 2009-07-02  Bruno Haible  <bruno@clisp.org>
31912
31913         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
31914
31915 2009-06-30  Bruno Haible  <bruno@clisp.org>
31916
31917         Reduce the number of uc_is_cased calls.
31918         * lib/unicase.h (casing_suffix_context_t): Add
31919         'first_char_except_ignorable' field.
31920         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
31921         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
31922         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
31923         Update initializer.
31924         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
31925         case-ignorable characters.
31926         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
31927         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
31928         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
31929         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
31930         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
31931
31932 2009-06-30  Bruno Haible  <bruno@clisp.org>
31933
31934         Tests for module 'unicase/ignorable'.
31935         * modules/unicase/ignorable-tests: New file.
31936         * tests/unicase/test-ignorable.c: New file, generated by
31937         gen-uni-tables.
31938
31939         Tests for module 'unicase/cased'.
31940         * modules/unicase/cased-tests: New file.
31941         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
31942         * tests/unicase/test-predicate-part1.h: New file, derived from
31943         tests/unictype/test-predicate-part1.h.
31944         * tests/unicase/test-predicate-part2.h: New file, same as
31945         tests/unictype/test-predicate-part2.h.
31946
31947         Fix evaluation of "Before C" condition of FINAL_SIGMA.
31948         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
31949         (output_casing_properties): New function.
31950         (main): Call it.
31951         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
31952         * lib/unicase/cased.c: Include unictype/bitmap.h.
31953         (uc_is_cased): Define through a bitmap lookup.
31954         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
31955         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
31956         (uc_is_case_ignorable): Define through a bitmap lookup.
31957         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
31958         lib/unictype/bitmap.h.
31959         (Depends-on): Add inline. Clean up.
31960         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
31961         lib/unictype/bitmap.h.
31962         (Depends-on): Add inline. Clean up.
31963         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
31964         recognition.
31965         * tests/unicase/test-u16-tolower.c (main): Likewise.
31966         * tests/unicase/test-u32-tolower.c (main): Likewise.
31967
31968 2009-06-30  Bruno Haible  <bruno@clisp.org>
31969
31970         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
31971         * lib/unicase/u16-casemap.c: Likewise.
31972         * lib/unicase/u32-casemap.c: Likewise.
31973
31974 2009-06-29  Bruno Haible  <bruno@clisp.org>
31975
31976         Define u32_casefold as a wrapper around u32_ct_casefold.
31977         * lib/unicase/u32-casefold.c: Update.
31978         * modules/unicase/u32-casefold (Depends-on): Add
31979         unicase/u32-ct-casefold, unicase/empty-prefix-context,
31980         unicase/empty-suffix-context. Clean up.
31981
31982         Define u16_casefold as a wrapper around u16_ct_casefold.
31983         * lib/unicase/u16-casefold.c: Update.
31984         * modules/unicase/u16-casefold (Depends-on): Add
31985         unicase/u16-ct-casefold, unicase/empty-prefix-context,
31986         unicase/empty-suffix-context. Clean up.
31987
31988         Define u8_casefold as a wrapper around u8_ct_casefold.
31989         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
31990         * lib/unicase/u8-casefold.c: Update.
31991         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
31992         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31993
31994         Define u32_totitle as a wrapper around u32_ct_totitle.
31995         * lib/unicase/u32-totitle.c: Update.
31996         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
31997         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31998
31999         Define u16_totitle as a wrapper around u16_ct_totitle.
32000         * lib/unicase/u16-totitle.c: Update.
32001         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
32002         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32003
32004         Define u8_totitle as a wrapper around u8_ct_totitle.
32005         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
32006         functions.
32007         (FUNC): Delegate to U_CT_TOTITLE.
32008         * lib/unicase/u8-totitle.c: Update.
32009         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
32010         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32011
32012         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
32013         invocation.
32014         * modules/unicase/u32-tolower (Depends-on): Add
32015         unicase/empty-prefix-context, unicase/empty-suffix-context.
32016
32017         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
32018         invocation.
32019         * modules/unicase/u16-tolower (Depends-on): Add
32020         unicase/empty-prefix-context, unicase/empty-suffix-context.
32021
32022         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32023         * modules/unicase/u8-tolower (Depends-on): Add
32024         unicase/empty-prefix-context, unicase/empty-suffix-context.
32025
32026         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32027         invocation.
32028         * modules/unicase/u32-toupper (Depends-on): Add
32029         unicase/empty-prefix-context, unicase/empty-suffix-context.
32030
32031         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32032         invocation.
32033         * modules/unicase/u16-toupper (Depends-on): Add
32034         unicase/empty-prefix-context, unicase/empty-suffix-context.
32035
32036         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32037         * modules/unicase/u8-toupper (Depends-on): Add
32038         unicase/empty-prefix-context, unicase/empty-suffix-context.
32039
32040         New module 'unicase/u32-ct-casefold'.
32041         * lib/unicase/u32-ct-casefold.c: New file.
32042         * modules/unicase/u32-ct-casefold: New file.
32043
32044         New module 'unicase/u16-ct-casefold'.
32045         * lib/unicase/u16-ct-casefold.c: New file.
32046         * modules/unicase/u16-ct-casefold: New file.
32047
32048         New module 'unicase/u8-ct-casefold'.
32049         * lib/unicase/u8-ct-casefold.c: New file.
32050         * lib/unicase/u-ct-casefold.h: New file, derived from
32051         lib/unicase/u-casefold.h.
32052         * modules/unicase/u8-ct-casefold: New file.
32053
32054         New module 'unicase/u32-ct-totitle'.
32055         * lib/unicase/u32-ct-totitle.c: New file.
32056         * modules/unicase/u32-ct-totitle: New file.
32057
32058         New module 'unicase/u16-ct-totitle'.
32059         * lib/unicase/u16-ct-totitle.c: New file.
32060         * modules/unicase/u16-ct-totitle: New file.
32061
32062         New module 'unicase/u8-ct-totitle'.
32063         * lib/unicase/u8-ct-totitle.c: New file.
32064         * lib/unicase/u-ct-totitle.h: New file, derived from
32065         lib/unicase/u-totitle.h.
32066         * modules/unicase/u8-ct-totitle: New file.
32067
32068         New module 'unicase/u32-ct-tolower'.
32069         * lib/unicase/u32-ct-tolower.c: New file.
32070         * modules/unicase/u32-ct-tolower: New file.
32071
32072         New module 'unicase/u16-ct-tolower'.
32073         * lib/unicase/u16-ct-tolower.c: New file.
32074         * modules/unicase/u16-ct-tolower: New file.
32075
32076         New module 'unicase/u8-ct-tolower'.
32077         * lib/unicase/u8-ct-tolower.c: New file.
32078         * modules/unicase/u8-ct-tolower: New file.
32079
32080         New module 'unicase/u32-ct-toupper'.
32081         * lib/unicase/u32-ct-toupper.c: New file.
32082         * modules/unicase/u32-ct-toupper: New file.
32083
32084         New module 'unicase/u16-ct-toupper'.
32085         * lib/unicase/u16-ct-toupper.c: New file.
32086         * modules/unicase/u16-ct-toupper: New file.
32087
32088         New module 'unicase/u8-ct-toupper'.
32089         * lib/unicase/u8-ct-toupper.c: New file.
32090         * modules/unicase/u8-ct-toupper: New file.
32091
32092         Add context arguments to u*_casemap functions.
32093         * lib/unicase/unicasemap.h: Include unicase.h.
32094         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32095         suffix_context arguments.
32096         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32097         functions.
32098         (FUNC): Add prefix_context and suffix_context arguments. Use
32099         uc_is_cased and uc_is_case_ignorable.
32100         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32101         * lib/unicase/u16-casemap.c: Likewise.
32102         * lib/unicase/u32-casemap.c: Likewise.
32103         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32104         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32105         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32106         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32107         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32108         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32109
32110         New module 'unicase/u32-suffix-context'.
32111         * lib/unicase/u32-suffix-context.c: New file.
32112         * modules/unicase/u32-suffix-context: New file.
32113
32114         New module 'unicase/u16-suffix-context'.
32115         * lib/unicase/u16-suffix-context.c: New file.
32116         * modules/unicase/u16-suffix-context: New file.
32117
32118         New module 'unicase/u8-suffix-context'.
32119         * lib/unicase/u8-suffix-context.c: New file.
32120         * lib/unicase/u-suffix-context.h: New file.
32121         * modules/unicase/u8-suffix-context: New file.
32122
32123         New module 'unicase/empty-suffix-context'.
32124         * lib/unicase/empty-suffix-context.c: New file.
32125         * modules/unicase/empty-suffix-context: New file.
32126
32127         New module 'unicase/u32-prefix-context'.
32128         * lib/unicase/u32-prefix-context.c: New file.
32129         * modules/unicase/u32-prefix-context: New file.
32130
32131         New module 'unicase/u16-prefix-context'.
32132         * lib/unicase/u16-prefix-context.c: New file.
32133         * modules/unicase/u16-prefix-context: New file.
32134
32135         New module 'unicase/u8-prefix-context'.
32136         * lib/unicase/u8-prefix-context.c: New file.
32137         * lib/unicase/u-prefix-context.h: New file.
32138         * lib/unicase/context.h: New file.
32139         * modules/unicase/u8-prefix-context: New file.
32140
32141         New module 'unicase/empty-prefix-context'.
32142         * lib/unicase/empty-prefix-context.c: New file.
32143         * modules/unicase/empty-prefix-context: New file.
32144
32145         New module 'unicase/ignorable'.
32146         * lib/unicase/ignorable.c: New file.
32147         * modules/unicase/ignorable: New file.
32148
32149         New module 'unicase/cased'.
32150         * lib/unicase/caseprop.h: New file.
32151         * lib/unicase/cased.c: New file.
32152         * modules/unicase/cased: New file.
32153
32154         New functions for case mapping of substrings.
32155         * lib/unicase.h (casing_prefix_context_t): New type.
32156         (unicase_empty_prefix_context): New variable.
32157         (u8_casing_prefix_context, u16_casing_prefix_context,
32158         u32_casing_prefix_context, u8_casing_prefixes_context,
32159         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32160         declarations.
32161         (casing_suffix_context_t): New type.
32162         (unicase_empty_suffix_context): New variable.
32163         (u8_casing_suffix_context, u16_casing_suffix_context,
32164         u32_casing_suffix_context, u8_casing_suffixes_context,
32165         u16_casing_suffixes_context, u32_casing_suffixes_context,
32166         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32167         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32168         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32169         declarations.
32170
32171 2009-06-28  Jim Meyering  <meyering@redhat.com>
32172
32173         boostrap: indent only with spaces
32174         * build-aux/bootstrap: Indent only with spaces, never TABs.
32175
32176         bootstrap: split long lines
32177         * build-aux/bootstrap: Keep line length < 80.
32178
32179         bootstrap: sync from coreutils
32180         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32181         just as autoreconf does.  Verify a list of prerequisite
32182         package-name,version-number pairs if defined in bootstrap.conf.
32183         Refer to README-prereq, if prerequisites are not satisfied.
32184
32185 2009-06-27  Eric Blake  <ebb9@byu.net>
32186
32187         tests: add test for bogus NULL definition
32188         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32189         * tests/test-stdlib.c: Likewise.
32190         * tests/test-string.c: Likewise.
32191         * tests/test-locale.c: Likewise.
32192         * tests/test-unistd.c: Likewise.
32193         * modules/stdio-tests (Depends-on): Add verify.
32194         * modules/stdlib-tests (Depends-on): Likewise.
32195         * modules/string-tests (Depends-on): Likewise.
32196         * modules/locale-tests (Depends-on): Likewise.
32197         * modules/unistd-tests (Depends-on): Likewise.
32198
32199 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32200
32201         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32202         self-explaining comment.
32203         * m4/selinux-selinux-h: Update serial.
32204         (gl_LIBSELINUX): New macro, adding a warning for missing development
32205         packages to code extracted from...
32206         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32207         Add warning for missing development packages here, too.
32208
32209 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32210
32211         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32212
32213 2009-06-25  Eric Blake  <ebb9@byu.net>
32214
32215         version-etc: fix regression
32216         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32217         gcc.
32218         (version_etc): Use it, to catch bugs with trailing NULL.
32219         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32220         (version_etc_va): Fix logic bug.
32221         * modules/version-etc-tests: Add test.
32222         * tests/test-version-etc.c: New file.
32223         * tests/test-version-etc.sh: Likewise.
32224
32225 2009-06-25  Sam Steingold  <sds@gnu.org>
32226
32227         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32228         mbtowc declaration.
32229
32230 2009-06-25  Eric Blake  <ebb9@byu.net>
32231
32232         fpurge: migrate into <stdio.h>
32233         * lib/fpurge.h: Delete...
32234         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32235         * lib/fpurge.c (fpurge): Change declaring header.
32236         * modules/fpurge (Files): Drop deleted file.
32237         (Depends-on): Add stdio.
32238         (configure.ac): Set witness.
32239         * modules/stdio (Makefile.am): Support fpurge macros.
32240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32241         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
32242         * lib/fflush.c: Update client.
32243         * tests/test-fpurge.c: Likewise.
32244         * NEWS: Mention the change.
32245
32246 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32247
32248         * lib/argp-version-etc.c (program_authors): Add const
32249         qualifier.
32250         * lib/version-etc.c: Fix typos in the comments.
32251         * modules/argp-version-etc: Depends on version-etc.
32252
32253 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32254
32255         argp-version-etc: new module.
32256
32257         * lib/argp-version-etc.c: New file.
32258         * lib/argp-version-etc.h: New file.
32259         * modules/argp-version-etc: New file.
32260         * modules/argp-version-etc-tests: New file.
32261         * tests/test-argp-version-etc.c: New test.
32262         * tests/test-argp-version-etc-1.sh: New test.
32263
32264 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32265
32266         Provide additional interfaces and documentation for version-etc
32267         module.
32268
32269         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
32270         interfaces.
32271         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
32272         prototypes.
32273
32274 2009-06-24  Bruno Haible  <bruno@clisp.org>
32275
32276         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
32277         HAVE_LIB${NAME} macro.
32278         Reported by Sam Steingold <sds@gnu.org>.
32279
32280 2009-06-23  Simon Josefsson  <simon@josefsson.org>
32281
32282         * modules/hash-tests (test_hash_LDADD): Link to libintl when
32283         needed.
32284
32285 2009-06-21  Bruno Haible  <bruno@clisp.org>
32286
32287         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
32288         work.
32289         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
32290         together with LIB${NAME}, LTLIB${NAME}.
32291         Reported by Sam Steingold <sds@gnu.org>.
32292
32293 2009-06-20  Jim Meyering  <meyering@redhat.com>
32294
32295         tests: make sc_require_test_exit_idiom more generic
32296         * top/maint.mk (Exit_witness_file): New overridable variable.
32297         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
32298         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
32299
32300 2009-06-19  Jim Meyering  <meyering@redhat.com>
32301
32302         hash: reverse order of src/dst parameters in an internal interface
32303         * lib/hash.c (transfer_entries): Reverse order of parameters to
32304         put DST before SRC.  Adjust callers.
32305
32306         tests: test-hash: avoid wholesale duplication
32307         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
32308         Instead, use a loop and add a single conditional.
32309
32310         tests: test-hash: allow seed selection via a command line argument
32311         * tests/test-hash.c (get_seed): New function.
32312         (main): Use it.
32313
32314 2009-06-19  Eric Blake  <ebb9@byu.net>
32315
32316         hash: avoid memory leak on allocation failure
32317         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
32318         failure.  Factor repeated algorithm...
32319         (transfer_entries): ...into new helper routine.
32320         (hash_delete): React to hash_rehash return value.
32321
32322         hash: reduce memory pressure in hash_rehash no-op case
32323         * lib/hash.c (next_prime): Avoid overflow.
32324         (hash_initialize): Factor bucket size computation...
32325         (compute_bucket_size): ...into new helper function.
32326         (hash_rehash): Use new function and open coding to reduce memory
32327         pressure, and avoid a memory leak in USE_OBSTACK code.
32328         Reported by Jim Meyering.
32329
32330 2009-06-18  Eric Blake  <ebb9@byu.net>
32331
32332         hash: make rotation more obvious
32333         * modules/hash (Depends-on): Add bitrotate and stdint.
32334         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32335         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32336         (SIZE_MAX): Rely on headers for definition.
32337         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32338         (raw_hasher): Use rotr_sz.
32339         Suggested by Jim Meyering.
32340
32341         hash: fix memory leak in last patch
32342         * lib/hash.c (hash_rehash): Avoid memory leak.
32343
32344         hash: avoid no-op rehashing
32345         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32346
32347         hash: provide default callback functions
32348         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32349         (hash_initialize): Use them as defaults.
32350         * tests/test-hash.c (main): Test this.
32351
32352         hash: minor optimization
32353         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32354         when possible.
32355         (hash_initialize): Document this promise.
32356         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32357         * tests/test-hash.c (hash_compare_strings): Test this.
32358
32359 2009-06-18  Bruno Haible  <bruno@clisp.org>
32360
32361         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32362         going to be replaced anyway.
32363
32364 2009-06-18  Bruno Haible  <bruno@clisp.org>
32365
32366         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32367         in one place.
32368         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32369         be replaced anyway.
32370
32371 2009-06-18  Eric Blake  <ebb9@byu.net>
32372
32373         hash: check for resize before insertion
32374         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32375         threshold before insertion, so that a pathological hash_rehash
32376         that fills every bucket can still trigger another rehash.
32377
32378 2009-06-18  Jim Meyering  <meyering@redhat.com>
32379
32380         hash-tests: add a loop around the small tests
32381         * tests/test-hash.c (main): Repeat small tests with selected
32382         small initial table sizes.
32383
32384 2009-06-17  Eric Blake  <ebb9@byu.net>
32385
32386         hash: minor cleanups
32387         * lib/hash.h (hash_entry): Make opaque, by moving...
32388         * lib/hash.c (hash_entry): ...here.
32389         (hash_insert): Clarify restrictions on what can be inserted.
32390         (hash_get_next): Clarify when it is safe to remove an element
32391         during traversal.
32392         (check_tuning): Skip verification when tuning is known safe.
32393         (hash_initialize): Clarify restrictions on tuning.
32394
32395 2009-06-17  Jim Meyering  <jim@meyering.net>
32396         and Eric Blake  <ebb9@byu.net>
32397
32398         hash-tests: new module
32399         * modules/hash-tests: New file.
32400         * tests/test-hash.c: New file.
32401
32402 2009-06-17  Eric Blake  <ebb9@byu.net>
32403
32404         strstr-simple: document new module
32405         * MODULES.html.sh: Document new module.
32406
32407         strstr, strcasestr: replace on platforms with broken memchr
32408         * modules/strstr: Split into...
32409         * modules/strstr-simple: ...new module that does not care about
32410         performance, but does care about glibc bug.
32411         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
32412         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
32413         if platform memchr is broken, per Debian bug 521737.
32414         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
32415         memchr.
32416         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
32417         * doc/posix-functions/strstr.texi (strstr): Document the fix.
32418         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32419         * modules/mountlist (Depends-on): Add strstr-simple.
32420         * modules/gen-uni-tables (Depends-on): Likewise.
32421         * modules/argz (Depends-on): Add strstr.
32422
32423 2009-06-17  Bruno Haible  <bruno@clisp.org>
32424
32425         * modules/posix_spawn-internal (Depends-on): Add errno.
32426
32427 2009-06-17  Bruno Haible  <bruno@clisp.org>
32428
32429         Define missing ESTALE on Interix 3.5.
32430         * lib/errno.in.h (ESTALE): Assign a value if missing.
32431         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
32432         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
32433         missing.
32434         * doc/posix-headers/errno.texi: Mention the Interix bug.
32435         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
32436
32437 2009-06-15  Eric Blake  <ebb9@byu.net>
32438
32439         memchr, memchr2: add valgrind exception
32440         * lib/memchr.valgrind: New file.
32441         * lib/memchr2.valgrind: New file.
32442         * modules/memchr (Files): Distribute valgrind file.
32443         * modules/memchr2 (Files): Likewise.
32444
32445         docs: memchr is no longer obsolete
32446         * MODULES.html.sh: Move memchr from obsolete to string.h section.
32447         * lib/string.in.h (memchr): Simplify logic.
32448
32449 2009-06-14  Jim Meyering  <meyering@redhat.com>
32450
32451         link-follow: fix the "checking..." message to not mention trailing slash
32452         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
32453         never considered trailing slashes.
32454
32455 2009-06-14  Bruno Haible  <bruno@clisp.org>
32456
32457         * m4/memchr.m4: Mention also the bug on IA-64.
32458         * doc/posix-functions/memchr.texi: Likewise.
32459
32460 2009-06-12  Eric Blake  <ebb9@byu.net>
32461
32462         memchr: detect broken x86_64 and alpha implementations
32463         * modules/memchr-tests (Depends-on): Move mmap detection...
32464         * modules/memchr (Depends-on): ...here.
32465         (configure.ac): Set indicator.
32466         * lib/string.in.h (memchr): Declare replacement.
32467         * modules/string (Makefile.am): Trigger replacement.
32468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32469         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
32470         bugs.
32471         * doc/posix-functions/memchr.texi (memchr): Document the bug.
32472         * modules/getpagesize (License): Relax license.
32473
32474 2009-06-11  Bruno Haible  <bruno@clisp.org>
32475
32476         * lib/idpriv.h: Add more references.
32477
32478 2009-06-08  Bruno Haible  <bruno@clisp.org>
32479
32480         Tests for module 'idpriv-droptemp'.
32481         * modules/idpriv-droptemp-tests: New file.
32482         * tests/test-idpriv-droptemp.sh: New file.
32483         * tests/test-idpriv-droptemp.su.sh: New file.
32484         * tests/test-idpriv-droptemp.c: New file.
32485
32486         New module 'idpriv-droptemp'.
32487         * lib/idpriv-droptemp.c: New file.
32488         * modules/idpriv-droptemp: New file.
32489
32490 2009-06-08  Bruno Haible  <bruno@clisp.org>
32491
32492         Tests for module 'idpriv-drop'.
32493         * modules/idpriv-drop-tests: New file.
32494         * tests/test-idpriv-drop.sh: New file.
32495         * tests/test-idpriv-drop.su.sh: New file.
32496         * tests/test-idpriv-drop.c: New file.
32497
32498         New module 'idpriv-drop'.
32499         * lib/idpriv.h: New file.
32500         * lib-idpriv-drop.c: New file.
32501         * m4/idpriv.m4: New file.
32502         * modules/idpriv-drop: New file.
32503
32504 2009-06-08  Bruno Haible  <bruno@clisp.org>
32505
32506         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
32507         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32508         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32509         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32510         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32511         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32512         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32513
32514 2009-06-08  Eric Blake  <ebb9@byu.net>
32515
32516         test-strstr: use memory fence, when possible
32517         * tests/test-strstr.c (main): Use memory fence, in order to be
32518         more likely to trigger Debian bug 521737.
32519         * modules/strstr-tests (Files): Pull in additional files.
32520
32521         memchr: no longer obsolete, for wider field testing
32522         * modules/memchr (Status, Notice): Delete, this module is no
32523         longer obsolete.
32524         * modules/vasnprintf (Depends-on): Add memchr.
32525
32526 2009-06-07  Jim Meyering  <meyering@redhat.com>
32527
32528         hash: declare some functions with the warn_unused_result attribute
32529         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
32530
32531 2009-06-07  Bruno Haible  <bruno@clisp.org>
32532
32533         * tests/test-alignof.c: Don't test int64_t if it does not exist.
32534         Reported by Eric Blake.
32535
32536 2009-06-06  Eric Blake  <ebb9@byu.net>
32537
32538         test-alignof: fix typo with long double
32539         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
32540         compiler error.
32541
32542 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
32543
32544         Escape non-texinfo { and }s.
32545         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
32546         markup error.
32547
32548 2009-06-04  Jim Meyering  <meyering@redhat.com>
32549
32550         gitlog-to-changelog: don't infloop on an empty commit log
32551         * build-aux/gitlog-to-changelog: Warn about an empty log message.
32552         Reported by Boris Petersen <transacid@centerim.org>.
32553
32554 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
32555
32556         version-etc: extend for packagers
32557         Add three new configure options, intended for packagers:
32558           --with-packager="packager name"
32559           --with-packager-version="packager-specific version"
32560           --with-packager-bug-reports="packager bug reporting"
32561         An example with coreutils:
32562           $ ./configure \
32563             --with-packager=Gentoo \
32564             --with-packager-bug-report=http://bugs.gentoo.org/ \
32565             --with-packager-version="patchset 1.6"
32566           $ ./src/ls --version | head -n2
32567           ls (GNU coreutils) 7.1-dirty
32568           Packaged by Gentoo (patchset 1.6)
32569         Note that the bug reporting info via --help doesn't show up because
32570         coreutils uses its own custom emit_bug_reporting_address() implementation
32571         in src/system.h.  If it didn't, it'd look like:
32572           $ ./src/ls --help | tail -n4
32573           Report bugs to <bug-coreutils@gnu.org>.
32574           Report Gentoo bugs to <http://bugs.gentoo.org/>.
32575           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
32576           General help using GNU software: <http://www.gnu.org/gethelp/>.
32577         * lib/version-etc.c: Print new information, if provided.
32578         * m4/version-etc.m4: New file.
32579         * modules/version-etc (Files): Add m4/version-etc.m4.
32580         (configure.ac): Add gl_VERSION_ETC.
32581
32582 2009-05-31  Bruno Haible  <bruno@clisp.org>
32583
32584         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
32585         and 'int64_t'.
32586         * modules/alignof-tests (Dependencies): Add stdint.
32587         Reported by Eric Blake.
32588
32589 2009-05-31  Bruno Haible  <bruno@clisp.org>
32590
32591         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
32592         restriction due to compiler bugs.
32593         Reported by Eric Blake.
32594
32595 2009-05-31  Simon Josefsson  <simon@josefsson.org>
32596             Bruno Haible  <bruno@clisp.org>
32597
32598         Fix test-alignof failure.
32599         * lib/alignof.h (alignof_slot): New macro.
32600         (alignof_type): New macro, with the same semantics as the previous
32601         'alignof'.
32602         (alignof): Alias to alignof_slot.
32603         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
32604         check that the results are usable as constant expressions.
32605
32606 2009-05-31  Bruno Haible  <bruno@clisp.org>
32607
32608         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
32609         * tests/test-memchr.c (main): Check that memchr does not read past the
32610         first occurrence of the byte.
32611         * tests/test-strstr.c (main): Update comment.
32612         Suggested by Eric Blake.
32613
32614 2009-05-30  Bruno Haible  <bruno@clisp.org>
32615
32616         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
32617         detail how to use dumpbin.
32618         Reported by David Byron <dbyron@dbyron.com>.
32619
32620 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32621
32622         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
32623
32624 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32625
32626         * m4/manywarnings.m4: Add GCC 4.4 warnings.
32627
32628 2009-05-28  Bruno Haible  <bruno@clisp.org>
32629
32630         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
32631         build-aux/ files.
32632
32633 2009-05-28  Simon Josefsson  <simon@josefsson.org>
32634
32635         * gnulib-tool (func_import): Transform license on build-aux/ files too.
32636
32637 2009-05-27  Simon Josefsson  <simon@josefsson.org>
32638
32639         * gnulib-tool (sed_transform_main_lib_file)
32640         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
32641         regexps.
32642
32643 2009-05-26  Simon Josefsson  <simon@josefsson.org>
32644
32645         * tests/test-strstr.c: Add another self-test.
32646         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
32647         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
32648
32649 2009-05-23  Bruno Haible  <bruno@clisp.org>
32650
32651         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
32652         change.
32653
32654 2009-05-21  Bruno Haible  <bruno@clisp.org>
32655
32656         Simplify use of mode_t varargs.
32657         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
32658         uses 'mode_t' or 'int'.
32659         * lib/openat.c (openat): Likewise.
32660         * lib/open-safer.c (open_safer): Likewise.
32661         * m4/mode_t.m4: New file.
32662         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
32663         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
32664         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
32665         * modules/open (Files): Add m4/mode_t.m4.
32666         * modules/openat (Files): Likewise.
32667         * modules/fcntl-safer (Files): Likewise.
32668         Suggested by Eric Blake.
32669
32670 2009-05-21  Pádraig Brady  <P@draigbrady.com>
32671
32672         * doc/glibc-functions/fallocate.texi: New file.
32673         * doc/gnulib.texi: Include it.
32674
32675 2009-05-21  Eric Blake  <ebb9@byu.net>
32676             Bruno Haible  <bruno@clisp.org>
32677
32678         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
32679         invocations.
32680         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32681
32682 2009-05-21  Eric Blake  <ebb9@byu.net>
32683             Bruno Haible  <bruno@clisp.org>
32684
32685         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
32686         include_next. Fix of 2008-11-20 commit.
32687         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
32688         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
32689         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
32690         NEXT_MATH_H.
32691         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
32692         instead of NEXT_MATH_H.
32693
32694 2009-05-21  Bruno Haible  <bruno@clisp.org>
32695
32696         Avoid redefinition warnings for SIZE_MAX.
32697         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
32698         Reported by Simon Josefsson.
32699
32700 2009-05-21  Bruno Haible  <bruno@clisp.org>
32701
32702         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
32703         AC_CACHE_VAL.
32704
32705 2009-05-20  Bruno Haible  <bruno@clisp.org>
32706
32707         Make zeroptr.h work on mingw.
32708         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
32709         mprotect.
32710         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
32711         * modules/memchr2-tests (configure.ac): Likewise.
32712         * modules/memcmp-tests (configure.ac): Likewise.
32713         * modules/memmem-tests (configure.ac): Likewise.
32714         * modules/memrchr-tests (configure.ac): Likewise.
32715         Reported by Simon Josefsson.
32716
32717 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32718
32719         * tests/test-glob.c: Include string.h for strcmp prototype.
32720
32721 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32722
32723         * modules/getdelim (Depends-on): Add explicit stdint, although it
32724         was implicitly already pulled in via realloc-posix.
32725         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
32726
32727 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32728
32729         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
32730         G. Christensen" <tgc@jupiterrise.com>.
32731         * m4/sys_socket_h.m4: Check for sa_family_t.
32732         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
32733         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
32734         * tests/test-sys_socket.c: Check that sa_family_t works.
32735
32736 2009-05-18  Eric Blake  <ebb9@byu.net>
32737
32738         maint.mk: allow gnulib_dir in VPATH build
32739         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
32740
32741 2009-05-15  Jim Meyering  <meyering@redhat.com>
32742
32743         maint.mk: Give gnulib_dir a default definition.
32744         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
32745         Thus, most packages no longer need to specify this variable in cfg.mk
32746
32747 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
32748
32749         rename.m4: fix typos that would make non-mingw cross-configure fail
32750         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
32751
32752 2009-05-13  Eric Blake  <ebb9@byu.net>
32753
32754         mmap-anon: avoid out-of-order autoconf expansion
32755         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
32756         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
32757         * modules/memchr-tests (Depends-on): Add extensions.
32758         * modules/memchr2-tests (Depends-on): Add extensions.
32759         * modules/memcmp-tests (Depends-on): Add extensions.
32760         * modules/memmem-tests (Depends-on): Add extensions.
32761         * modules/memrchr-tests (Depends-on): Add extensions.
32762
32763 2009-05-13  Bruno Haible  <bruno@clisp.org>
32764
32765         Make some tests ISO C 99 compliant.
32766         * tests/zerosize-ptr.h: New file.
32767         * tests/test-memchr.c: Include zerosize-ptr.h.
32768         (main): Use a zero-size object pointer instead of NULL.
32769         * tests/test-memchr2.c: Include zerosize-ptr.h.
32770         (main): Use a zero-size object pointer instead of NULL.
32771         * tests/test-memcmp.c: Include zerosize-ptr.h.
32772         (main): Use a zero-size object pointer instead of NULL.
32773         * tests/test-memmem.c: Include zerosize-ptr.h.
32774         (main): Use a zero-size object pointer instead of NULL.
32775         * tests/test-memrchr.c: Include zerosize-ptr.h.
32776         (main): Use a zero-size object pointer instead of NULL.
32777         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
32778         m4/mmap-anon.m4.
32779         (Depends-on): Add getpagesize.
32780         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32781         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
32782         m4/mmap-anon.m4.
32783         (Depends-on): Add getpagesize.
32784         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32785         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
32786         m4/mmap-anon.m4.
32787         (Depends-on): Add getpagesize.
32788         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32789         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
32790         m4/mmap-anon.m4.
32791         (Depends-on): Add getpagesize.
32792         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32793         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
32794         m4/mmap-anon.m4.
32795         (Depends-on): Add getpagesize.
32796         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32797
32798 2009-05-12  Bruno Haible  <bruno@clisp.org>
32799
32800         Tests for module 'alignof'.
32801         * modules/alignof-tests: New file.
32802         * tests/test-alignof.c: New file.
32803
32804 2009-05-12  Bruno Haible  <bruno@clisp.org>
32805
32806         Fix alignof macro.
32807         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
32808         vendor compilers that are always correct.
32809
32810 2009-05-12  Bruno Haible  <bruno@clisp.org>
32811
32812         Make the MAP_ANONYMOUS detection work on HP-UX 11.
32813         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
32814         not whether its fully works.
32815
32816 2009-05-12  Bruno Haible  <bruno@clisp.org>
32817
32818         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
32819
32820 2009-05-12  Jim Meyering  <meyering@redhat.com>
32821
32822         * top/maint.mk: Adjust backslash alignment.
32823
32824 2009-05-11  Simon Josefsson  <simon@josefsson.org>
32825
32826         * top/maint.mk: Make $(srcdir)/build-aux configurable.
32827
32828 2009-05-11  Eric Blake  <ebb9@byu.net>
32829
32830         argp: avoid undefined behavior
32831         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
32832         macros.
32833
32834 2009-05-08  Simon Josefsson  <simon@josefsson.org>
32835
32836         * tests/test-vc-list-files-git.sh: Do git config of user.email and
32837         user.name to prevent git commit from complaining.
32838
32839 2009-05-10  Bruno Haible  <bruno@clisp.org>
32840
32841         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
32842         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
32843         it rewrites every file name only once.
32844         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
32845
32846 2009-05-08  Bruno Haible  <bruno@clisp.org>
32847
32848         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
32849         instead of 'max'.
32850
32851 2009-05-08  Simon Josefsson  <simon@josefsson.org>
32852
32853         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
32854         sockaddr_storage test.
32855
32856 2009-05-07  Simon Josefsson  <simon@josefsson.org>
32857
32858         * modules/sys_socket (Makefile.am): Substitute
32859         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
32860         * m4/sys_socket_h.m4: Check for sockaddr_storage.
32861         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
32862         * tests/test-sys_socket.c: Check sockaddr_storage.
32863
32864 2009-05-08  Bruno Haible  <bruno@clisp.org>
32865
32866         New module 'alignof'.
32867         * lib/alignof.h: New file.
32868         * modules/alignof: New file.
32869
32870 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32871             Bruno Haible  <bruno@clisp.org>
32872
32873         Fix test-file-has-acl on FreeBSD.
32874         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
32875         mask is implicitly added.
32876         * tests/test-file-has-acl.c: Include <signal.h>.
32877         (main): Terminate the test after 5 seconds.
32878         * modules/acl-tests (configure.ac): Check for alarm function.
32879
32880 2009-05-04  Bruno Haible  <bruno@clisp.org>
32881
32882         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
32883         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
32884         * modules/errno (configure.ac): Drop AC_REQUIRE.
32885         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
32886         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
32887
32888 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32889
32890         * modules/glob-tests: New module.
32891         * tests/test-glob.c: Add.
32892
32893 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32894
32895         * modules/fnmatch-tests: New module.
32896         * tests/test-fnmatch.c: Add.
32897
32898 2009-05-04  Eric Blake  <ebb9@byu.net>
32899
32900         maint: make the new no-submodule-changes rule VPATH-safe
32901         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
32902
32903 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32904             Bruno Haible  <bruno@clisp.org>
32905
32906         acl: Fix infinite loop on FreeBSD.
32907         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
32908         of return value from acl_get_entry.
32909         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
32910         Likewise.
32911
32912 2009-05-03  Bruno Haible  <bruno@clisp.org>
32913
32914         * lib/acl-internal.h (acl_entries): Clarify return value.
32915         * lib/acl_entries.c (acl_entries): Likewise.
32916
32917 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32918
32919         Bug fix in acl module.
32920         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
32921
32922 2009-05-03  Bruno Haible  <bruno@clisp.org>
32923
32924         Create gperf-generated file in the source dir, not in the build dir.
32925         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
32926         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
32927         * modules/unicase/locale-language (unicase/locale-languages.h):
32928         Likewise.
32929         * modules/unicase/special-casing (unicase/special-casing-table.h):
32930         Likewise.
32931         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
32932         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
32933         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
32934         Reported by Ralf Wildenhues.
32935
32936 2009-05-03  Bruno Haible  <bruno@clisp.org>
32937
32938         * modules/fnmatch (Description, configure.ac): Taken from
32939         fnmatch-posix.
32940         * modules/fnmatch-posix: Turn into a symbolic reference to the
32941         'fnmatch' module, and deprecate.
32942         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
32943
32944 2009-05-03  Bruno Haible  <bruno@clisp.org>
32945
32946         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
32947         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
32948         Reported by Ralf Wildenhues.
32949
32950 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32951
32952         * m4/fnmatch.m4: Fix fnmatch re-define.
32953
32954 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32955
32956         priv-set: new module and tests; adapt write-any-file
32957         * lib/priv-set.c: New file.
32958         * lib/priv-set.h: New file.
32959         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
32960         * lib/write-any-file.c: Simplify by using priv-set module.
32961         * m4/priv-set.m4: New file.
32962         * modules/priv-set: New file.
32963         * modules/unlinkdir: Add dependency on priv-set module.
32964         * modules/write-any-file: Likewise.
32965
32966         Tests for module 'priv-set'.
32967         * modules/priv-set-tests: New file.
32968         * tests/test-priv-set.c: New file.
32969
32970 2009-05-03  Jim Meyering  <meyering@redhat.com>
32971             Bruno Haible  <bruno@clisp.org>
32972
32973         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
32974         use the converted UTF-8 variant of the name instead.
32975
32976 2009-05-03  Jim Meyering  <meyering@redhat.com>
32977
32978         tests: tighten some getdate tests
32979         * tests/test-getdate.c (main): Tighten tests: require equality,
32980         not just greater than.  Set TZ envvar to UTC0.
32981
32982 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32983
32984         getdate: correctly interpret "next monday" when run on a Monday
32985         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
32986         that e.g., "next tues" (when run on a tuesday) results in a date
32987         that is one week in the future, and not today's date.
32988         I.e., add a week when the wday is the same as the current one.
32989         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
32990         and earlier by Martin Bernreuther and Jan Minář.
32991         * tests/test-getdate.c (main): Check that "next DAY" is always in
32992         the future and that "last DAY" is always in the past.
32993
32994 2009-05-02  Jim Meyering  <meyering@redhat.com>
32995
32996         build: ensure that a release build fails when a submodule is unclean
32997         * top/maint.mk (no-submodule-changes): New rule.
32998         (alpha beta major): Depend on it.
32999
33000 2009-05-02  Bruno Haible  <bruno@clisp.org>
33001
33002         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
33003         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
33004         shell variable gl_fnmatch_required to detect which variant is
33005         requested.
33006         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
33007         gl_FUNC_FNMATCH_POSIX.
33008         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
33009         exclude fnmatch-posix.
33010
33011 2009-05-02  Bruno Haible  <bruno@clisp.org>
33012
33013         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
33014         * modules/mbsrtowcs (License): Change to LGPLv2+.
33015         * modules/strnlen1 (License): Likewise.
33016         Reported by Simon Josefsson.
33017
33018 2009-05-02  Bruno Haible  <bruno@clisp.org>
33019
33020         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33021         "cross".
33022         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33023         gnulib-tool was called with option --source-base=lib.
33024
33025 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33026
33027         Use automake *-local hooks without commands, for extensibility.
33028         * modules/localcharset (Makefile.am): Rename install-exec-local
33029         rule to install-exec-localcharset, and make it a prerequisite of
33030         install-exec-local.  Likewise, rename the uninstall-local rule to
33031         uninstall-localcharset, and make it a prerequisite of the former.
33032
33033 2009-05-01  Bruno Haible  <bruno@clisp.org>
33034
33035         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33036         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33037         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33038         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33039         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33040         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33041         m4/locale-zh.m4, m4/codeset.m4.
33042
33043         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33044         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33045         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33046         m4/locale-zh.m4.
33047
33048         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33049         REPLACE_WCRTOMB if mbstate_t must be replaced.
33050         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33051         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33052
33053 2009-05-01  Bruno Haible  <bruno@clisp.org>
33054
33055         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33056         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33057         dngettext, dcngettext, textdomain, bindtextdomain,
33058         bind_textdomain_codeset): Undefine before redefining.
33059
33060 2009-04-30  Bruno Haible  <bruno@clisp.org>
33061
33062         Fix bug introduced on 2009-04-25.
33063         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33064         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33065         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33066         is defined.
33067         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33068         is defined.
33069         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33070         is defined.
33071         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33072
33073 2009-04-28  Bruno Haible  <bruno@clisp.org>
33074
33075         Comment tweaks.
33076         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33077         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33078         * lib/unicase.h (u*_casexfrm): Likewise.
33079         Reported by Paolo Bonzini.
33080
33081 2009-04-28  Bruno Haible  <bruno@clisp.org>
33082
33083         Fix a compilation error.
33084         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33085         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33086         Reported by Jim Meyering.
33087
33088 2009-04-27  Bruno Haible  <bruno@clisp.org>
33089
33090         New module 'libunistring'.
33091         * modules/libunistring: New file.
33092         * m4/libunistring.m4: New file.
33093         * MODULES.html.sh (Unicode string functions): Add it.
33094
33095 2009-04-27  Eric Blake  <ebb9@byu.net>
33096
33097         maint.mk: allow package-specific header to provide <config.h>
33098         * top/maint.mk (sc_require_config_h): New variable.
33099         (sc_require_config_h, sc_require_config_h_first): Use it.
33100
33101 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33102
33103         * top/maint.mk (sc_avoid_if_before_free): Except
33104         useless-if-before-free script.
33105
33106 2009-04-27  Eric Blake  <ebb9@byu.net>
33107
33108         maintainer-makefile: depend on all required helper scripts
33109         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33110         useless-if-before-free.
33111         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33112         version, rather than assuming gnulib checkout is available.
33113         Reported by Simen Josefsson.
33114
33115 2009-04-26  Bruno Haible  <bruno@clisp.org>
33116
33117         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33118         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33119         "../" or "..".
33120
33121 2009-04-26  Bruno Haible  <bruno@clisp.org>
33122
33123         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33124         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33125         AC_LIB_HAVE_LINKFLAGS.
33126
33127 2009-04-26  Bruno Haible  <bruno@clisp.org>
33128
33129         Simplify calling convention of u*_conv_from_encoding.
33130         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33131         u32_conv_from_encoding): Expect a resultbuf argument and return the
33132         result directly as a pointer.
33133         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33134         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33135         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33136         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33137         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33138         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33139         Update.
33140         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33141         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33142         * lib/vasnprintf.c (VASNPRINTF): Update.
33143         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33144         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33145         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33146         * NEWS: Mention the change.
33147
33148 2009-04-26  Bruno Haible  <bruno@clisp.org>
33149
33150         Simplify calling convention of u*_conv_to_encoding.
33151         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33152         u32_conv_to_encoding): Expect a resultbuf argument and return the
33153         result directly as a pointer.
33154         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33155         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33156         freeing scaled_offsets if mem_iconveha failed.
33157         * lib/unicase/u-casexfrm.h (FUNC): Update.
33158         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33159         * lib/vasnprintf.c (VASNPRINTF): Update.
33160         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33161         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33162         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33163         * NEWS: Mention the change.
33164
33165 2009-04-26  Bruno Haible  <bruno@clisp.org>
33166
33167         Avoid test failures on AIX and OSF/1.
33168         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33169         malloc(0).
33170         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33171         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33172         Likewise.
33173         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33174         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33175         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33176         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33177         * doc/posix-functions/malloc.texi: Document the portability problem
33178         related to malloc(0).
33179
33180 2009-04-26  Bruno Haible  <bruno@clisp.org>
33181
33182         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33183         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33184         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33185
33186 2009-04-25  Bruno Haible  <bruno@clisp.org>
33187
33188         Avoid link error when creating a namespace clean library.
33189         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33190         as macro with arguments if already defined as an alias.
33191         * lib/signbitf.c (gl_signbitf): Don't undefine.
33192         * lib/signbitd.c (gl_signbitd): Don't undefine.
33193         * lib/signbitl.c (gl_signbitl): Don't undefine.
33194
33195 2009-04-25  Jim Meyering  <meyering@redhat.com>
33196
33197         vc-list-files: fix another quoting bug
33198         * build-aux/vc-list-files: Avoid sed backslash expansion
33199         of pathological directory names.
33200
33201 2009-04-25  Eric Blake  <ebb9@byu.net>
33202
33203         vc-list-files: fix shell quoting error
33204         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33205         timestamp.
33206
33207 2009-04-25  Jim Meyering  <meyering@redhat.com>
33208
33209         vc-list-files: restore lost functionality with subdir argument
33210         * build-aux/vc-list-files: When given a non-"." sub-directory
33211         argument, substitute the $dir/ prefix back onto each resulting name.
33212         Otherwise, coreutils' root_tests check would fail.
33213
33214 2009-04-24  Eric Blake  <ebb9@byu.net>
33215
33216         vc-list-files: ignore git symlinks
33217         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33218         than ls-files, to ignore git symlinks.
33219
33220         maint.mk: import improvements from m4
33221         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33222         (move_if_change): Delete unused macro.
33223         (news-date-check, vc-diff-check): Support VPATH builds.
33224         (announcement): Likewise.  Split --bootstrap-tools list...
33225         (boostrap-tools): ...into separate list, which can be overridden
33226         in cfg.mk.
33227         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33228         requiring dependency on useless-if-before-free module.
33229         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33230         Support VPATH builds.
33231
33232 2009-04-24  Jim Meyering  <meyering@redhat.com>
33233
33234         maint.mk: remove coreutils-specific rules and variables
33235         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33236         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
33237         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
33238
33239         maint.mk: remove obsolete rule
33240         * top/maint.mk (rel-check): Remove rule.
33241         (WGET, WGETFLAGS): Remove now-unused variables.
33242
33243 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33244
33245         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
33246         consistency.
33247
33248         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
33249         '$(PATH_SEPARATOR)' instead of ':'.
33250
33251 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33252
33253         * lib/getopt1.c (main): Use 'const' for static array.
33254
33255 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33256
33257         * top/maint.mk: Sync with coreutils.
33258         * NEWS: Explain incompatibilities.
33259
33260 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33261             Bruno Haible  <bruno@clisp.org>
33262
33263         Fix cross-compilation results.
33264         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
33265         statement, as third argument of AC_TRY_RUN.
33266         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
33267         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
33268         Likewise.
33269         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
33270         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
33271         Likewise.
33272         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33273         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
33274         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
33275
33276 2009-04-20  Bruno Haible  <bruno@clisp.org>
33277
33278         Avoid test failure on mingw.
33279         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
33280
33281 2009-04-20  Bruno Haible  <bruno@clisp.org>
33282
33283         Avoid compilation error on mingw.
33284         * modules/localename-tests (Depends-on): Add locale.
33285
33286 2009-04-19  Bruno Haible  <bruno@clisp.org>
33287
33288         Support for building a shared library on Windows platforms.
33289         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
33290         (main): Test the presence of UNINORM_NFC here.
33291         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
33292         (main): Test the presence of UNINORM_NFD here.
33293         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
33294         (main): Test the presence of UNINORM_NFKC here.
33295         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
33296         (main): Test the presence of UNINORM_NFKD here.
33297
33298 2009-04-19  Bruno Haible  <bruno@clisp.org>
33299
33300         Avoid a compiler warning.
33301         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
33302         Change type of variable 'sequence'.
33303
33304 2009-04-19  Bruno Haible  <bruno@clisp.org>
33305
33306         * modules/configmake (Makefile.am): When the contents of configmake.h
33307         does not change, arrange to preserve its modification time.
33308
33309 2009-04-17  Simon Josefsson  <simon@josefsson.org>
33310
33311         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
33312         gettext domain.
33313
33314 2009-04-16  Jim Meyering  <meyering@redhat.com>
33315
33316         useless-if-before-free: improve conversion code
33317         * build-aux/useless-if-before-free: Adjust code-in-comment to match
33318         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
33319
33320 2009-04-14  Bruno Haible  <bruno@clisp.org>
33321
33322         * modules/fcntl (Depends-on): Add extensions.
33323         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
33324
33325 2009-04-12  Ben Pfaff  <blp@gnu.org>
33326
33327         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33328         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33329
33330 2009-03-20  Ben Pfaff  <blp@gnu.org>
33331
33332         Make rename replace existing destinations on Windows.
33333         * m4/rename.m4: Add test for Mingw.
33334         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33335         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33336         * doc/posix-functions/rename.texi: Document.
33337
33338 2009-04-10  Bruno Haible  <bruno@clisp.org>
33339
33340         New include file "iconveh.h".
33341         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33342         * lib/striconveh.h: Include it.
33343         (enum iconv_ilseq_handler): Remove definition.
33344         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33345         striconveh.h.
33346         * lib/striconveha.c: Include striconveh.h.
33347         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33348         * modules/striconveh (Files): Add lib/iconveh.h.
33349         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33350         lib/striconveh.h.
33351
33352 2009-04-10  Bruno Haible  <bruno@clisp.org>
33353
33354         * lib/uniconv.h: Update comment.
33355
33356 2009-04-10  Bruno Haible  <bruno@clisp.org>
33357
33358         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33359         always.
33360         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33361         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33362         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33363         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33364         "unistring-notinline.h", so that the function gets defined always.
33365         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33366         * lib/unistr/u8-uctomb.c: Likewise.
33367         * lib/unistr/u16-mbtouc.c: Likewise.
33368         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33369         * lib/unistr/u16-uctomb.c: Likewise.
33370         * lib/unistr/u32-mbtouc.c: Likewise.
33371         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33372         * lib/unistr/u32-uctomb.c: Likewise.
33373
33374 2009-04-10  Bruno Haible  <bruno@clisp.org>
33375
33376         Mark 'utime' obsolete.
33377         * modules/utime (Status, Notice): New sections.
33378         Suggested by Jim Meyering.
33379
33380         Fix cross-compile guess for utime test.
33381         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33382         autoconf.
33383         * doc/posix-functions/utime.texi: Give more precisions.
33384         Reported by Jan <ipif@ymail.com>.
33385
33386 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33387
33388         filevercmp: correct today's change
33389         * lib/filevercmp.c: Also handle coreutils' test inputs.
33390         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33391
33392         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33393         for reporting it.
33394         * lib/filevercmp.c: Special handle for "", "." and "..".
33395         * tests/test-filevercmp.c: Enlarge the set suite.
33396
33397 2009-04-07  Jim Meyering  <meyering@redhat.com>
33398
33399         useless-if-before-free: show how to remove braced useless free, too
33400         * build-aux/useless-if-before-free: still only in a comment, though.
33401
33402 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
33403
33404         maint.mk: import changes to syntax-check macros from coreutils
33405         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
33406         Use them in the relevant macros.
33407
33408 2009-04-06  Bruno Haible  <bruno@clisp.org>
33409
33410         Fix unportable use of bit-fields.
33411         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
33412         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
33413         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
33414
33415 2009-04-06  Bruno Haible  <bruno@clisp.org>
33416
33417         Avoid test failures on AIX and OSF/1.
33418         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
33419         that malloc(0) = NULL.
33420         * tests/unicase/test-u8-tolower.c (check): Likewise.
33421         * tests/unicase/test-u8-totitle.c (check): Likewise.
33422         * tests/unicase/test-u8-toupper.c (check): Likewise.
33423         * tests/unicase/test-u16-casefold.c (check): Likewise.
33424         * tests/unicase/test-u16-tolower.c (check): Likewise.
33425         * tests/unicase/test-u16-totitle.c (check): Likewise.
33426         * tests/unicase/test-u16-toupper.c (check): Likewise.
33427         * tests/unicase/test-u32-casefold.c (check): Likewise.
33428         * tests/unicase/test-u32-tolower.c (check): Likewise.
33429         * tests/unicase/test-u32-totitle.c (check): Likewise.
33430         * tests/unicase/test-u32-toupper.c (check): Likewise.
33431         * tests/uninorm/test-u8-nfc.c (check): Likewise.
33432         * tests/uninorm/test-u8-nfd.c (check): Likewise.
33433         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
33434         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
33435         * tests/uninorm/test-u16-nfc.c (check): Likewise.
33436         * tests/uninorm/test-u16-nfd.c (check): Likewise.
33437         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
33438         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
33439         * tests/uninorm/test-u32-nfc.c (check): Likewise.
33440         * tests/uninorm/test-u32-nfd.c (check): Likewise.
33441         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
33442         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
33443
33444 2009-04-05  Bruno Haible  <bruno@clisp.org>
33445
33446         Work around an autoconf limitation.
33447         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
33448         comment line if it would be longer than 3 KB.
33449
33450 2009-04-05  Bruno Haible  <bruno@clisp.org>
33451
33452         Avoid test failure with libiconv-1.13.
33453         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
33454         of the expected test results.
33455
33456 2009-04-05  Bruno Haible  <bruno@clisp.org>
33457
33458         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
33459         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
33460         that it should be installed.
33461
33462 2009-04-05  Bruno Haible  <bruno@clisp.org>
33463
33464         * gnulib-tool: New option --copy-file.
33465         (func_usage): Document it.
33466         (func_dest_tmpfilename): Moved out of func_import.
33467         (func_add_file, func_update_file): New functions, extracted from
33468         func_import.
33469         (func_import): Update.
33470
33471 2009-04-05  Karl Berry  <karl@gnu.org>
33472
33473         * README: prominently mention gnulib-tool.
33474         Rearrange sections so getting the code is near the top.
33475
33476 2009-04-05  Bruno Haible  <bruno@clisp.org>
33477
33478         * lib/unicase.h: Mention u*_cmp2.
33479         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33480         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
33481         * lib/unicase/ulc-casecmp.c: Likewise.
33482         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
33483         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
33484         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
33485         unistr/u8-cmp.
33486         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
33487         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
33488         unistr/u16-cmp.
33489         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
33490         unistr/u32-cmp.
33491
33492         * lib/uninorm.h: Mention u*_cmp2.
33493         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33494         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
33495         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
33496         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
33497         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
33498         unistr/u8-cmp.
33499         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
33500         unistr/u16-cmp.
33501         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
33502         unistr/u32-cmp.
33503
33504         New module 'unistr/u32-cmp2'.
33505         * lib/unistr/u32-cmp2.c: New file.
33506         * modules/unistr/u32-cmp2: New file.
33507
33508         New module 'unistr/u16-cmp2'.
33509         * lib/unistr/u16-cmp2.c: New file.
33510         * modules/unistr/u16-cmp2: New file.
33511
33512         New module 'unistr/u8-cmp2'.
33513         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
33514         * lib/unistr/u8-cmp2.c: New file.
33515         * lib/unistr/u-cmp2.h: New file.
33516         * modules/unistr/u8-cmp2: New file.
33517
33518 2009-04-05  Bruno Haible  <bruno@clisp.org>
33519
33520         * lib/unictype.h (uc_property_is_valid): New macro.
33521         * tests/unictype/test-pr_byname.c (main): Use it.
33522
33523         * lib/unistr.h: Doc fixes.
33524         * lib/uniconv.h: Doc fixes.
33525         * lib/unictype.h: Doc fixes.
33526
33527 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
33528
33529         Port coreutils 7.2 to Solaris 8.
33530
33531         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
33532         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
33533         for Solaris 8.  This is a bit of a hack, as it means it's the
33534         caller's responsibility to add -lnsl if needed, but most likely it
33535         won't be needed since only getaddrinfo uses this and getaddrinfo
33536         isn't needed on Solaris 8.
33537
33538         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
33539         problem to Solaris 8 encountered with coreutils 7.2, which
33540         resulted in a message "fnmatch.c:292: warning: passing argument 4
33541         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
33542         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
33543
33544 2009-04-03  Simon Josefsson  <simon@josefsson.org>
33545
33546         * m4/ld-version-script.m4: Add FIXME comment.
33547
33548 2009-04-02  Simon Josefsson  <simon@josefsson.org>
33549
33550         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
33551         SOVERSION variable.
33552
33553 2009-04-02  Bruno Haible  <bruno@clisp.org>
33554
33555         * Makefile (info, html, dvi, pdf): Combine the rules.
33556         Suggested by Jim Meyering.
33557
33558 2009-04-01  Bruno Haible  <bruno@clisp.org>
33559
33560         * Makefile (info, html, dvi, pdf): New targets.
33561         Reported by Reuben Thomas <rrt@sc3d.org>.
33562
33563 2009-04-01  Bruno Haible  <bruno@clisp.org>
33564
33565         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
33566         can be put into PATH.
33567         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
33568
33569 2009-04-01  Bruno Haible  <bruno@clisp.org>
33570
33571         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
33572
33573 2009-04-01  Bruno Haible  <bruno@clisp.org>
33574
33575         Rename module 'visibility'.
33576         * modules/lib-symbol-visibility: Renamed from modules/visibility.
33577         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
33578         * doc/gnulib.texi: Update.
33579         * MODULES.html.sh (Misc): Update.
33580         * NEWS: Mention the change.
33581
33582 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33583
33584         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
33585         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
33586         Eric Blake <ebb9@byu.net> for review.
33587         * MODULES.html.sh: Add lib-msvc-compat.
33588         * doc/gnulib.texi: Link to new section.
33589         * m4/ld-output-def.m4: New file.
33590         * doc/ld-output-def.texi: New file.
33591
33592 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33593
33594         Rename ld-version-script to lib-symbol-versions.  Suggested by
33595         Bruno Haible <bruno@clisp.org>.
33596         * modules/ld-version-script: Renamed to lib-symbol-versions.
33597         * doc/ld-version-script.texi: Fix module name.
33598         * MODULES.html.sh: Add lib-symbol-versions.
33599
33600 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33601
33602         * modules/u64-tests: New file.
33603         * tests/test-u64.c: New file.
33604
33605 2009-03-04  Simon Josefsson  <simon@josefsson.org>
33606
33607         * MODULES.html.sh: Mention u64.
33608         * modules/u64: New module.
33609         * modules/crypto/sha512: Depend on u64 module instead of providing
33610         u64.h.
33611
33612 2009-03-27  Eric Blake  <ebb9@byu.net>
33613
33614         test-strerror: make debugging EAI_SYSTEM easier
33615         * modules/getaddrinfo-tests (Depends-on): Add strerror.
33616         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
33617         failure was EAI_SYSTEM.
33618
33619 2009-03-25  Bruno Haible  <bruno@clisp.org>
33620
33621         Fix a problem with --enable-relocatable on Solaris 7.
33622         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
33623         since 2008-02-24.
33624
33625 2009-03-25  Eric Blake  <ebb9@byu.net>
33626
33627         test-sockets: avoid gcc warning
33628         * tests/test-sockets.c (main): Silence compiler warning.
33629
33630 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33631
33632         New modules nproc, pthread, contributed by Glen Lenker.
33633
33634         * MODULES.html.sh: Add pthread, nproc.
33635         * lib/nproc.c: New file.
33636         * lib/nproc.h: New file.
33637         * lib/pthread.in.h: New file.
33638         * m4/pthread.m4: New file.
33639         * modules/nproc: New file.
33640         * modules/pthread: New file.
33641
33642 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33643
33644         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
33645         New variable.
33646
33647 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
33648
33649         filevercmp: handle simple~ and numbered.~3~ backup suffixes
33650         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
33651         * tests/test-filevercmp.c: Add tests for backup suffixes.
33652
33653 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33654
33655         * modules/stdlib (Depends-on): Add stdint, needed when defining
33656         struct random_data on, for example, HP-UX 10.20.  Reported by
33657         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33658
33659 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33660
33661         * lib/readline.c (readline): Call fflush on stdout after printing
33662         prompt.
33663
33664 2009-03-20  Bruno Haible  <bruno@clisp.org>
33665
33666         Remove dependency from 'close' module to -lws2_32 on native Windows.
33667         * lib/close-hook.h: New file.
33668         * lib/close-hook.c: New file.
33669         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
33670         w32sock.h.
33671         (_gl_close_fd_maybe_socket): Remove function.
33672         (rpl_close): Invoke execute_all_close_hooks instead of
33673         _gl_close_fd_maybe_socket.
33674         * lib/sockets.c: Include close-hook.h, w32sock.h.
33675         (close_fd_maybe_socket): New function, essentially from lib/close.c.
33676         (close_sockets_hook): New variable.
33677         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
33678         (gl_sockets_cleanup): Unregister it.
33679         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
33680         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
33681         * modules/close-hook: New file.
33682         * modules/close (Files): Remove lib/w32sock.h.
33683         (Depends-on): Add close-hook.
33684         (Link): Remove section.
33685         * modules/sockets (Files): Add lib/w32sock.h.
33686         (Depends-on): Add close-hook.
33687         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
33688         invocation.
33689         * NEWS: Mention that LIB_CLOSE is gone.
33690
33691 2009-03-23  Eric Blake  <ebb9@byu.net>
33692
33693         signal-tests: test previous patch
33694         * tests/test-signal.c: New file.
33695         * modules/signal-tests: Likewise.
33696
33697         signal.h: always support 'volatile sig_atomic_t'
33698         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
33699         (gl_SIGNAL_H_DEFAULTS): Add a default.
33700         * modules/signal (Makefile.am): Substitute if needed.
33701         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
33702         users can blindly add volatile.
33703         * doc/posix-headers/signal.texi (signal.h): Document it.
33704         Reported by Matthew Woehlke.
33705
33706 2009-03-23  Jim Meyering  <meyering@redhat.com>
33707
33708         pathmax: PATH_MAX: use pathconf only when available
33709         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
33710         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
33711         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
33712         This avoids a link failure in a PSP cross-compilation environment
33713         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
33714
33715         * lib/vasnprintf.c (divide): Fix typo in comment.
33716
33717 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33718
33719         * gnulib-tool (func_filter_filelist): Fix comment.
33720
33721 2009-03-20  Bruno Haible  <bruno@clisp.org>
33722
33723         Make sockets.h self-contained.
33724         * lib/sockets.c: Include sockets.h first.
33725         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
33726
33727 2009-03-19  Eric Blake  <ebb9@byu.net>
33728
33729         doc: mention more functions added in cygwin 1.7.0
33730         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
33731         addition.
33732         * doc/posix-functions/log2f.texi: Likewise.
33733
33734 2009-03-19  Jim Meyering  <meyering@redhat.com>
33735
33736         fsusage: avoid syntax error due to statement-before-declaration
33737         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
33738         after all declarations.  Reported by Matthew Woehlke in
33739         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
33740
33741 2009-03-18  Eric Blake  <ebb9@byu.net>
33742
33743         build-aux/compile: sync from automake
33744         * build-aux/compile: New file, from automake.
33745         * config/srclist.txt: Mention build-aux/compile.
33746
33747 2009-03-17  Bruno Haible  <bruno@clisp.org>
33748
33749         * lib/git-merge-changelog.c: Fix typo in comment.
33750         Reported by Reuben Thomas <rrt@sc3d.org>.
33751
33752 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
33753
33754         * m4/regex.m4: update and improve help for
33755         --without-included-regex.
33756
33757 2009-03-17  Simon Josefsson  <simon@josefsson.org>
33758
33759         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
33760         failure on missing include files.
33761
33762 2009-03-17  Eric Blake  <ebb9@byu.net>
33763
33764         doc: mention more functions added in cygwin 1.7.0
33765         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
33766         addition.
33767         * doc/posix-functions/fwscanf.texi: Likewise.
33768         * doc/posix-functions/swprintf.texi: Likewise.
33769         * doc/posix-functions/swscanf.texi: Likewise.
33770         * doc/posix-functions/vfwprintf.texi: Likewise.
33771         * doc/posix-functions/vfwscanf.texi: Likewise.
33772         * doc/posix-functions/vswprintf.texi: Likewise.
33773         * doc/posix-functions/vswscanf.texi: Likewise.
33774         * doc/posix-functions/vwprintf.texi: Likewise.
33775         * doc/posix-functions/vwscanf.texi: Likewise.
33776         * doc/posix-functions/wcscasecmp.texi: Likewise.
33777         * doc/posix-functions/wcsdup.texi: Likewise.
33778         * doc/posix-functions/wcsftime.texi: Likewise.
33779         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33780         * doc/posix-functions/wprintf.texi: Likewise.
33781         * doc/posix-functions/wscanf.texi: Likewise.
33782         * doc/glibc-functions/gethostbyname2.texi: Likewise.
33783
33784 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33785
33786         maint.mk: really add $(AM_MAKEFLAGS)
33787         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
33788         was inadvertently omitted in the last commit.
33789         Spotted by Bruno Haible.
33790
33791         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
33792         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
33793         $(AM_MAKEFLAGS)' rather than plain `make'.
33794
33795         gnulib-tool: execute $MAKE not make
33796         * gnulib-tool: Default $MAKE to 'make'.
33797         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
33798         than make.  Initialize $MAKE in the do-autobuild script.
33799
33800         gnulib-tool: use $MAKE not make in generated files
33801         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
33802         make, in generated files.  Initialize $MAKE in the do-autobuild
33803         script.
33804
33805         * top/GNUmakefile (_have-git-version-gen): Fix typo.
33806
33807         GNUmakefile: disable parallelism only for multiple, recursive targets
33808         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
33809         additions in the Makefile.
33810         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
33811         by Automake.
33812         (.NOTPARALLEL): Only disable parallel builds if multiple targets
33813         are listed on the command line and at least one of them is
33814         listed in $(ALL_RECURSIVE_TARGETS).
33815
33816 2009-03-14  Bruno Haible  <bruno@clisp.org>
33817
33818         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
33819         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
33820         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
33821         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
33822         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
33823         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
33824         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
33825         unistr/u8-uctomb.
33826         * modules/unistr/u8-strchr (Depends-on): Likewise.
33827         * modules/unistr/u8-strrchr (Depends-on): Likewise.
33828         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
33829         unistr/u16-uctomb.
33830         * modules/unistr/u16-strchr (Depends-on): Likewise.
33831         * modules/unistr/u16-strrchr (Depends-on): Likewise.
33832
33833 2009-03-12  Bruno Haible  <bruno@clisp.org>
33834
33835         Work around select() bug on Interix 3.5.
33836         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
33837         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
33838         * m4/select.m4: New file.
33839         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
33840         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
33841         * modules/select (Files): Add m4/select.m4.
33842         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
33843         * modules/nanosleep (Depends-on): Add select.
33844         * modules/poll (Depends-on): Likewise.
33845         * doc/posix-functions/select.texi: Mention the Interix bug.
33846         Reported by Markus Duft <mduft@gentoo.org>.
33847
33848         * lib/select.c: Renamed from lib/winsock-select.c.
33849         * modules/select (Files): Add lib/select.c, remove
33850         lib/winsock-select.c.
33851         (configure.ac): Update.
33852
33853 2009-03-12  Jim Meyering  <meyering@redhat.com>
33854
33855         avoid gcc warnings about unused macro definitions
33856         * lib/readtokens.c (STREQ): Remove unused definition.
33857         * lib/xmalloc.c (SIZE_MAX): Likewise.
33858         * lib/openat-die.c (N_): Likewise.
33859         * lib/mountlist.c (SIZE_MAX): Remove definition.
33860         Instead, include <stdint.h>.
33861         * lib/readutmp.c: Likewise.
33862         * modules/readutmp (Depends-on): Add stdint.
33863         * modules/mountlist (Depends-on): Add stdint.
33864         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
33865
33866 2009-03-10  Bruno Haible  <bruno@clisp.org>
33867
33868         Tests for module 'mbmemcasecoll'.
33869         * modules/mbmemcasecoll-tests: New file.
33870         * tests/test-mbmemcasecoll1.sh: New file.
33871         * tests/test-mbmemcasecoll2.sh: New file.
33872         * tests/test-mbmemcasecoll3.sh: New file.
33873         * tests/test-mbmemcasecoll.c: New file.
33874
33875         New module 'mbmemcasecoll'.
33876         * lib/mbmemcasecoll.h: New file.
33877         * lib/mbmemcasecoll.c: New file.
33878         * modules/mbmemcasecoll: New file.
33879
33880         * tests/test-mbmemcasecmp.h: New file, extracted from
33881         tests/test-mbmemcasecmp.c.
33882         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
33883         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
33884         (main): Update.
33885         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
33886
33887 2009-03-09  Bruno Haible  <bruno@clisp.org>
33888
33889         Tests for module 'mbmemcasecmp'.
33890         * modules/mbmemcasecmp-tests: New file.
33891         * tests/test-mbmemcasecmp1.sh: New file.
33892         * tests/test-mbmemcasecmp2.sh: New file.
33893         * tests/test-mbmemcasecmp3.sh: New file.
33894         * tests/test-mbmemcasecmp.c: New file.
33895
33896         New module 'mbmemcasecmp'.
33897         * lib/mbmemcasecmp.h: New file.
33898         * lib/mbmemcasecmp.c: New file.
33899         * modules/mbmemcasecmp: New file.
33900
33901 2009-03-09  Bruno Haible  <bruno@clisp.org>
33902
33903         Tests for module 'unicase/ulc-casecoll'.
33904         * modules/unicase/ulc-casecoll-tests: New file.
33905         * tests/unicase/test-ulc-casecoll1.sh: New file.
33906         * tests/unicase/test-ulc-casecoll2.sh: New file.
33907         * tests/unicase/test-ulc-casecoll.c: New file.
33908
33909         New module 'unicase/ulc-casecoll'.
33910         * lib/unicase.h (ulc_casecoll): New declaration.
33911         * lib/unicase/ulc-casecoll.c: New file.
33912         * modules/unicase/ulc-casecoll: New file.
33913
33914         New module 'unicase/ulc-casexfrm'.
33915         * lib/unicase.h (ulc_casexfrm): New declaration.
33916         * lib/unicase/ulc-casexfrm.c: New file.
33917         * modules/unicase/ulc-casexfrm: New file.
33918
33919 2009-03-09  Bruno Haible  <bruno@clisp.org>
33920
33921         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
33922         invocations.
33923
33924         * m4/mbscasecmp.m4: Remove file.
33925         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
33926         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
33927
33928         * m4/mbscasestr.m4: Remove file.
33929         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
33930         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
33931
33932         * m4/mbschr.m4: Remove file.
33933         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
33934         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
33935
33936         * m4/mbscspn.m4: Remove file.
33937         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
33938         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
33939
33940         * m4/mbslen.m4: Remove file.
33941         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
33942         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
33943
33944         * m4/mbsncasecmp.m4: Remove file.
33945         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
33946         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
33947
33948         * m4/mbsnlen.m4: Remove file.
33949         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
33950         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
33951
33952         * m4/mbspbrk.m4: Remove file.
33953         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
33954         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
33955
33956         * m4/mbspcasecmp.m4: Remove file.
33957         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
33958         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
33959
33960         * m4/mbsrchr.m4: Remove file.
33961         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
33962         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
33963
33964         * m4/mbssep.m4: Remove file.
33965         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
33966         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
33967
33968         * m4/mbsspn.m4: Remove file.
33969         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
33970         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
33971
33972         * m4/mbsstr.m4: Remove file.
33973         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
33974         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
33975
33976         * m4/mbstok_r.m4: Remove file.
33977         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
33978         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
33979
33980         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
33981
33982         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
33983         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
33984
33985         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
33986
33987 2009-03-08  Bruno Haible  <bruno@clisp.org>
33988
33989         Tests for module 'unicase/ulc-casecmp'.
33990         * modules/unicase/ulc-casecmp-tests: New file.
33991         * tests/unicase/test-ulc-casecmp1.sh: New file.
33992         * tests/unicase/test-ulc-casecmp2.sh: New file.
33993         * tests/unicase/test-ulc-casecmp.c: New file.
33994
33995         New module 'unicase/ulc-casecmp'.
33996         * lib/unicase.h (ulc_casecmp): New declaration.
33997         * lib/unicase/ulc-casecmp.c: New file.
33998         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
33999         'const SRC_UNIT *'.
34000         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
34001         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
34002         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
34003         * modules/unicase/ulc-casecmp: New file.
34004
34005         Tests for module 'unicase/u32-is-cased'.
34006         * modules/unicase/u32-is-cased-tests: New file.
34007         * tests/unicase/test-u32-is-cased.c: New file.
34008
34009         Tests for module 'unicase/u16-is-cased'.
34010         * modules/unicase/u16-is-cased-tests: New file.
34011         * tests/unicase/test-u16-is-cased.c: New file.
34012
34013         Tests for module 'unicase/u8-is-cased'.
34014         * modules/unicase/u8-is-cased-tests: New file.
34015         * tests/unicase/test-u8-is-cased.c: New file.
34016         * tests/unicase/test-is-cased.h: New file.
34017
34018         New module 'unicase/u32-is-cased'.
34019         * lib/unicase/u32-is-cased.c: New file.
34020         * modules/unicase/u32-is-cased: New file.
34021
34022         New module 'unicase/u16-is-cased'.
34023         * lib/unicase/u16-is-cased.c: New file.
34024         * modules/unicase/u16-is-cased: New file.
34025
34026         New module 'unicase/u8-is-cased'.
34027         * lib/unicase/u8-is-cased.c: New file.
34028         * lib/unicase/u-is-cased.h: New file.
34029         * modules/unicase/u8-is-cased: New file.
34030
34031         Tests for module 'unicase/u32-is-casefolded'.
34032         * modules/unicase/u32-is-casefolded-tests: New file.
34033         * tests/unicase/test-u32-is-casefolded.c: New file.
34034
34035         Tests for module 'unicase/u16-is-casefolded'.
34036         * modules/unicase/u16-is-casefolded-tests: New file.
34037         * tests/unicase/test-u16-is-casefolded.c: New file.
34038
34039         Tests for module 'unicase/u8-is-casefolded'.
34040         * modules/unicase/u8-is-casefolded-tests: New file.
34041         * tests/unicase/test-u8-is-casefolded.c: New file.
34042         * tests/unicase/test-is-casefolded.h: New file.
34043
34044         New module 'unicase/u32-is-casefolded'.
34045         * lib/unicase/u32-is-casefolded.c: New file.
34046         * modules/unicase/u32-is-casefolded: New file.
34047
34048         New module 'unicase/u16-is-casefolded'.
34049         * lib/unicase/u16-is-casefolded.c: New file.
34050         * modules/unicase/u16-is-casefolded: New file.
34051
34052         New module 'unicase/u8-is-casefolded'.
34053         * lib/unicase/u8-is-casefolded.c: New file.
34054         * modules/unicase/u8-is-casefolded: New file.
34055
34056         Tests for module 'unicase/u32-is-titlecase'.
34057         * modules/unicase/u32-is-titlecase-tests: New file.
34058         * tests/unicase/test-u32-is-titlecase.c: New file.
34059
34060         Tests for module 'unicase/u16-is-titlecase'.
34061         * modules/unicase/u16-is-titlecase-tests: New file.
34062         * tests/unicase/test-u16-is-titlecase.c: New file.
34063
34064         Tests for module 'unicase/u8-is-titlecase'.
34065         * modules/unicase/u8-is-titlecase-tests: New file.
34066         * tests/unicase/test-u8-is-titlecase.c: New file.
34067         * tests/unicase/test-is-titlecase.h: New file.
34068
34069         New module 'unicase/u32-is-titlecase'.
34070         * lib/unicase/u32-is-titlecase.c: New file.
34071         * modules/unicase/u32-is-titlecase: New file.
34072
34073         New module 'unicase/u16-is-titlecase'.
34074         * lib/unicase/u16-is-titlecase.c: New file.
34075         * modules/unicase/u16-is-titlecase: New file.
34076
34077         New module 'unicase/u8-is-titlecase'.
34078         * lib/unicase/u8-is-titlecase.c: New file.
34079         * modules/unicase/u8-is-titlecase: New file.
34080
34081         Tests for module 'unicase/u32-is-lowercase'.
34082         * modules/unicase/u32-is-lowercase-tests: New file.
34083         * tests/unicase/test-u32-is-lowercase.c: New file.
34084
34085         Tests for module 'unicase/u16-is-lowercase'.
34086         * modules/unicase/u16-is-lowercase-tests: New file.
34087         * tests/unicase/test-u16-is-lowercase.c: New file.
34088
34089         Tests for module 'unicase/u8-is-lowercase'.
34090         * modules/unicase/u8-is-lowercase-tests: New file.
34091         * tests/unicase/test-u8-is-lowercase.c: New file.
34092         * tests/unicase/test-is-lowercase.h: New file.
34093
34094         New module 'unicase/u32-is-lowercase'.
34095         * lib/unicase/u32-is-lowercase.c: New file.
34096         * modules/unicase/u32-is-lowercase: New file.
34097
34098         New module 'unicase/u16-is-lowercase'.
34099         * lib/unicase/u16-is-lowercase.c: New file.
34100         * modules/unicase/u16-is-lowercase: New file.
34101
34102         New module 'unicase/u8-is-lowercase'.
34103         * lib/unicase/u8-is-lowercase.c: New file.
34104         * modules/unicase/u8-is-lowercase: New file.
34105
34106         Tests for module 'unicase/u32-is-uppercase'.
34107         * modules/unicase/u32-is-uppercase-tests: New file.
34108         * tests/unicase/test-u32-is-uppercase.c: New file.
34109
34110         Tests for module 'unicase/u16-is-uppercase'.
34111         * modules/unicase/u16-is-uppercase-tests: New file.
34112         * tests/unicase/test-u16-is-uppercase.c: New file.
34113
34114         Tests for module 'unicase/u8-is-uppercase'.
34115         * modules/unicase/u8-is-uppercase-tests: New file.
34116         * tests/unicase/test-u8-is-uppercase.c: New file.
34117         * tests/unicase/test-is-uppercase.h: New file.
34118
34119         New module 'unicase/u32-is-uppercase'.
34120         * lib/unicase/u32-is-uppercase.c: New file.
34121         * modules/unicase/u32-is-uppercase: New file.
34122
34123         New module 'unicase/u16-is-uppercase'.
34124         * lib/unicase/u16-is-uppercase.c: New file.
34125         * modules/unicase/u16-is-uppercase: New file.
34126
34127         New module 'unicase/u8-is-uppercase'.
34128         * lib/unicase/u8-is-uppercase.c: New file.
34129         * modules/unicase/u8-is-uppercase: New file.
34130
34131         New module 'unicase/u32-is-invariant'.
34132         * lib/unicase/u32-is-invariant.c: New file.
34133         * modules/unicase/u32-is-invariant: New file.
34134
34135         New module 'unicase/u16-is-invariant'.
34136         * lib/unicase/u16-is-invariant.c: New file.
34137         * modules/unicase/u16-is-invariant: New file.
34138
34139         New module 'unicase/u8-is-invariant'.
34140         * lib/unicase/u8-is-invariant.c: New file.
34141         * lib/unicase/invariant.h: New file.
34142         * lib/unicase/u-is-invariant.h: New file.
34143         * modules/unicase/u8-is-invariant: New file.
34144
34145         Tests for module 'unicase/u32-casecoll'.
34146         * modules/unicase/u32-casecoll-tests: New file.
34147         * tests/unicase/test-u32-casecoll.c: New file.
34148
34149         Tests for module 'unicase/u16-casecoll'.
34150         * modules/unicase/u16-casecoll-tests: New file.
34151         * tests/unicase/test-u16-casecoll.c: New file.
34152
34153         Tests for module 'unicase/u8-casecoll'.
34154         * modules/unicase/u8-casecoll-tests: New file.
34155         * tests/unicase/test-u8-casecoll.c: New file.
34156
34157         New module 'unicase/u32-casecoll'.
34158         * lib/unicase/u32-casecoll.c: New file.
34159         * modules/unicase/u32-casecoll: New file.
34160
34161         New module 'unicase/u16-casecoll'.
34162         * lib/unicase/u16-casecoll.c: New file.
34163         * modules/unicase/u16-casecoll: New file.
34164
34165         New module 'unicase/u8-casecoll'.
34166         * lib/unicase/u8-casecoll.c: New file.
34167         * lib/unicase/u-casecoll.h: New file.
34168         * modules/unicase/u8-casecoll: New file.
34169
34170         New module 'unicase/u32-casexfrm'.
34171         * lib/unicase/u32-casexfrm.c: New file.
34172         * modules/unicase/u32-casexfrm: New file.
34173
34174         New module 'unicase/u16-casexfrm'.
34175         * lib/unicase/u16-casexfrm.c: New file.
34176         * modules/unicase/u16-casexfrm: New file.
34177
34178         New module 'unicase/u8-casexfrm'.
34179         * lib/unicase/u8-casexfrm.c: New file.
34180         * lib/unicase/u-casexfrm.h: New file.
34181         * modules/unicase/u8-casexfrm: New file.
34182
34183         Tests for module 'unicase/u32-casecmp'.
34184         * modules/unicase/u32-casecmp-tests: New file.
34185         * tests/unicase/test-u32-casecmp.c: New file.
34186
34187         Tests for module 'unicase/u16-casecmp'.
34188         * modules/unicase/u16-casecmp-tests: New file.
34189         * tests/unicase/test-u16-casecmp.c: New file.
34190
34191         Tests for module 'unicase/u8-casecmp'.
34192         * modules/unicase/u8-casecmp-tests: New file.
34193         * tests/unicase/test-u8-casecmp.c: New file.
34194         * tests/unicase/test-casecmp.h: New file.
34195
34196         New module 'unicase/u32-casecmp'.
34197         * lib/unicase/u32-casecmp.c: New file.
34198         * modules/unicase/u32-casecmp: New file.
34199
34200         New module 'unicase/u16-casecmp'.
34201         * lib/unicase/u16-casecmp.c: New file.
34202         * modules/unicase/u16-casecmp: New file.
34203
34204         New module 'unicase/u8-casecmp'.
34205         * lib/unicase/u8-casecmp.c: New file.
34206         * lib/unicase/u-casecmp.h: New file.
34207         * modules/unicase/u8-casecmp: New file.
34208
34209         Tests for module 'unicase/u32-casefold'.
34210         * modules/unicase/u32-casefold-tests: New file.
34211         * tests/unicase/test-u32-casefold.c: New file.
34212
34213         Tests for module 'unicase/u16-casefold'.
34214         * modules/unicase/u16-casefold-tests: New file.
34215         * tests/unicase/test-u16-casefold.c: New file.
34216
34217         Tests for module 'unicase/u8-casefold'.
34218         * modules/unicase/u8-casefold-tests: New file.
34219         * tests/unicase/test-u8-casefold.c: New file.
34220
34221         New module 'unicase/u32-casefold'.
34222         * lib/unicase/u32-casefold.c: New file.
34223         * modules/unicase/u32-casefold: New file.
34224
34225         New module 'unicase/u16-casefold'.
34226         * lib/unicase/u16-casefold.c: New file.
34227         * modules/unicase/u16-casefold: New file.
34228
34229         New module 'unicase/u8-casefold'.
34230         * lib/unicase/u8-casefold.c: New file.
34231         * lib/unicase/u-casefold.h: New file.
34232         * modules/unicase/u8-casefold: New file.
34233
34234         New module 'unicase/tocasefold'.
34235         * lib/unicase/casefold.h: New file.
34236         * lib/unicase/tocasefold.c: New file.
34237         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
34238         * modules/unicase/tocasefold: New file.
34239
34240         Tests for module 'unicase/u32-totitle'.
34241         * modules/unicase/u32-totitle-tests: New file.
34242         * tests/unicase/test-u32-totitle.c: New file.
34243
34244         Tests for module 'unicase/u16-totitle'.
34245         * modules/unicase/u16-totitle-tests: New file.
34246         * tests/unicase/test-u16-totitle.c: New file.
34247
34248         Tests for module 'unicase/u8-totitle'.
34249         * modules/unicase/u8-totitle-tests: New file.
34250         * tests/unicase/test-u8-totitle.c: New file.
34251
34252         New module 'unicase/u32-totitle'.
34253         * lib/unicase/u32-totitle.c: New file.
34254         * modules/unicase/u32-totitle: New file.
34255
34256         New module 'unicase/u16-totitle'.
34257         * lib/unicase/u16-totitle.c: New file.
34258         * modules/unicase/u16-totitle: New file.
34259
34260         New module 'unicase/u8-totitle'.
34261         * lib/unicase/u8-totitle.c: New file.
34262         * lib/unicase/u-totitle.h: New file.
34263         * modules/unicase/u8-totitle: New file.
34264
34265         Tests for module 'unicase/u32-tolower'.
34266         * modules/unicase/u32-tolower-tests: New file.
34267         * tests/unicase/test-u32-tolower.c: New file.
34268
34269         Tests for module 'unicase/u16-tolower'.
34270         * modules/unicase/u16-tolower-tests: New file.
34271         * tests/unicase/test-u16-tolower.c: New file.
34272
34273         Tests for module 'unicase/u8-tolower'.
34274         * modules/unicase/u8-tolower-tests: New file.
34275         * tests/unicase/test-u8-tolower.c: New file.
34276
34277         New module 'unicase/u32-tolower'.
34278         * lib/unicase/u32-tolower.c: New file.
34279         * modules/unicase/u32-tolower: New file.
34280
34281         New module 'unicase/u16-tolower'.
34282         * lib/unicase/u16-tolower.c: New file.
34283         * modules/unicase/u16-tolower: New file.
34284
34285         New module 'unicase/u8-tolower'.
34286         * lib/unicase/u8-tolower.c: New file.
34287         * modules/unicase/u8-tolower: New file.
34288
34289         Tests for module 'unicase/u32-toupper'.
34290         * modules/unicase/u32-toupper-tests: New file.
34291         * tests/unicase/test-u32-toupper.c: New file.
34292
34293         Tests for module 'unicase/u16-toupper'.
34294         * modules/unicase/u16-toupper-tests: New file.
34295         * tests/unicase/test-u16-toupper.c: New file.
34296
34297         Tests for module 'unicase/u8-toupper'.
34298         * modules/unicase/u8-toupper-tests: New file.
34299         * tests/unicase/test-u8-toupper.c: New file.
34300
34301         New module 'unicase/u32-toupper'.
34302         * lib/unicase/u32-toupper.c: New file.
34303         * modules/unicase/u32-toupper: New file.
34304
34305         New module 'unicase/u16-toupper'.
34306         * lib/unicase/u16-toupper.c: New file.
34307         * modules/unicase/u16-toupper: New file.
34308
34309         New module 'unicase/u8-toupper'.
34310         * lib/unicase/u8-toupper.c: New file.
34311         * modules/unicase/u8-toupper: New file.
34312
34313         New module 'unicase/u32-casemap'.
34314         * lib/unicase/u32-casemap.c: New file.
34315         * modules/unicase/u32-casemap: New file.
34316
34317         New module 'unicase/u16-casemap'.
34318         * lib/unicase/u16-casemap.c: New file.
34319         * modules/unicase/u16-casemap: New file.
34320
34321         New module 'unicase/u8-casemap'.
34322         * lib/unicase/unicasemap.h: New file.
34323         * lib/unicase/u8-casemap.c: New file.
34324         * lib/unicase/u-casemap.h: New file.
34325         * modules/unicase/u8-casemap: New file.
34326
34327         New module 'unicase/special-casing'.
34328         * lib/unicase/special-casing.h: New file.
34329         * lib/unicase/special-casing.c: New file.
34330         * lib/unicase/special-casing-table.gperf: New file, generated by
34331         gen-uni-tables.c.
34332         * modules/unicase/special-casing: New file.
34333
34334         Tests for module 'unicase/locale-language'.
34335         * modules/unicase/locale-language-tests: New file.
34336         * tests/unicase/test-locale-language.sh: New file.
34337         * tests/unicase/test-locale-language.c: New file.
34338
34339         New module 'unicase/locale-language'.
34340         * lib/unicase/locale-language.c: New file.
34341         * lib/unicase/locale-languages.gperf: New file.
34342         * modules/unicase/locale-language: New file.
34343
34344         Generate more tables for case conversion and case folding.
34345         * lib/gen-uni-tables.c (SCC_*): New enum items.
34346         (struct special_casing_rule): New type.
34347         (casing_rules, num_casing_rules, allocated_casing_rules): New
34348         variables.
34349         (add_casing_rule, fill_casing_rules): New functions.
34350         (struct casefold_rule): New type.
34351         (casefolding_rules, num_casefolding_rules,
34352         allocated_casefolding_rules): New variables.
34353         (fill_casefolding_rules): New function.
34354         (unicode_casefold): New variable.
34355         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34356         sort_casing_rules, output_casing_rules): New functions.
34357         (main): Accept to more arguments: SpecialCasing.txt and
34358         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34359         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34360         Output mapping for casefolding.
34361
34362         * lib/unicase.h: Include stdbool.h, uninorm.h.
34363         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34364         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34365         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34366         arguments.
34367         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34368         resultp arguments.
34369         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34370         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34371         resultp arguments.
34372         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34373         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34374         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34375         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34376         declarations.
34377         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34378
34379 2009-03-08  Bruno Haible  <bruno@clisp.org>
34380
34381         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34382         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34383         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34384         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34385
34386 2009-03-07  Bruno Haible  <bruno@clisp.org>
34387
34388         Adjust u*_normcmp, u*_normcoll API.
34389         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34390         u16_normcoll, u32_normcoll): Change failure conventions.
34391         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34392         errno and return -1.
34393         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34394
34395 2009-03-07  Bruno Haible  <bruno@clisp.org>
34396
34397         Tests for module 'uninorm/u32-normcoll'.
34398         * modules/uninorm/u32-normcoll-tests: New file.
34399         * tests/uninorm/test-u32-normcoll.c: New file.
34400
34401         Tests for module 'uninorm/u16-normcoll'.
34402         * modules/uninorm/u16-normcoll-tests: New file.
34403         * tests/uninorm/test-u16-normcoll.c: New file.
34404
34405         Tests for module 'uninorm/u8-normcoll'.
34406         * modules/uninorm/u8-normcoll-tests: New file.
34407         * tests/uninorm/test-u8-normcoll.c: New file.
34408
34409 2009-03-07  Bruno Haible  <bruno@clisp.org>
34410
34411         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
34412         tests/uninorm/test-u32-normcmp.c.
34413         * tests/uninorm/test-u32-normcmp.c: Include it.
34414         (test_nonascii): New function, extracted from main. Add some more
34415         tests.
34416         (main): Invoke test_ascii and test_nonascii.
34417         * modules/uninorm/u32-normcmp-tests (Files): Add
34418         tests/uninorm/test-u32-normcmp.h.
34419         (Depends-on): Remove uninorm/u32-normcmp.
34420
34421         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
34422         tests/uninorm/test-u16-normcmp.c.
34423         * tests/uninorm/test-u16-normcmp.c: Include it.
34424         (test_nonascii): New function, extracted from main. Add some more
34425         tests.
34426         (main): Invoke test_ascii and test_nonascii.
34427         * modules/uninorm/u16-normcmp-tests (Files): Add
34428         tests/uninorm/test-u16-normcmp.h.
34429         (Depends-on): Remove uninorm/u16-normcmp.
34430
34431         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
34432         tests/uninorm/test-u8-normcmp.c.
34433         * tests/uninorm/test-u8-normcmp.c: Include it.
34434         (test_nonascii): New function, extracted from main. Add some more
34435         tests.
34436         (main): Invoke test_ascii and test_nonascii.
34437         * modules/uninorm/u8-normcmp-tests (Files): Add
34438         tests/uninorm/test-u8-normcmp.h.
34439         (Depends-on): Remove uninorm/u8-normcmp.
34440
34441 2009-03-07  Bruno Haible  <bruno@clisp.org>
34442
34443         New module 'uninorm/u32-normcoll'.
34444         * lib/uninorm/u32-normcoll.c: New file.
34445         * modules/uninorm/u32-normcoll: New file.
34446
34447         New module 'uninorm/u16-normcoll'.
34448         * lib/uninorm/u16-normcoll.c: New file.
34449         * modules/uninorm/u16-normcoll: New file.
34450
34451         New module 'uninorm/u8-normcoll'.
34452         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
34453         declarations.
34454         * lib/uninorm/u8-normcoll.c: New file.
34455         * lib/uninorm/u-normcoll.h: New file.
34456         * modules/uninorm/u8-normcoll: New file.
34457
34458         New module 'uninorm/u32-normxfrm'.
34459         * lib/uninorm/u32-normxfrm.c: New file.
34460         * modules/uninorm/u32-normxfrm: New file.
34461
34462         New module 'uninorm/u16-normxfrm'.
34463         * lib/uninorm/u16-normxfrm.c: New file.
34464         * modules/uninorm/u16-normxfrm: New file.
34465
34466         New module 'uninorm/u8-normxfrm'.
34467         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
34468         declarations.
34469         * lib/uninorm/u8-normxfrm.c: New file.
34470         * lib/uninorm/u-normxfrm.h: New file.
34471         * modules/uninorm/u8-normxfrm: New file.
34472
34473 2009-03-07  Bruno Haible  <bruno@clisp.org>
34474
34475         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
34476         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
34477         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
34478
34479 2009-03-07  Bruno Haible  <bruno@clisp.org>
34480
34481         New module 'memxfrm'.
34482         * lib/memxfrm.h: New file.
34483         * lib/memxfrm.c: New file.
34484         * modules/memxfrm: New file.
34485
34486 2009-03-07  Bruno Haible  <bruno@clisp.org>
34487
34488         New module 'memcmp2'.
34489         * lib/memcmp2.h: New file.
34490         * lib/memcmp2.c: New file.
34491         * modules/memcmp2: New file.
34492
34493 2009-03-07  Bruno Haible  <bruno@clisp.org>
34494
34495         Tests for module 'uninorm/decomposing-form'.
34496         * modules/uninorm/decomposing-form-tests: New file.
34497         * tests/uninorm/test-decomposing-form.c: New file.
34498
34499         New module 'uninorm/decomposing-form'.
34500         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
34501         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
34502         Add 'decomposing_variant' field.
34503         * lib/uninorm/decomposing-form.c: New file.
34504         * lib/uninorm/nfc.c (uninorm_nfc): Update.
34505         * lib/uninorm/nfd.c (uninorm_nfd): Update.
34506         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
34507         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
34508         * modules/uninorm/decomposing-form: New file.
34509         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
34510         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
34511
34512 2009-03-07  Bruno Haible  <bruno@clisp.org>
34513
34514         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
34515         strings.
34516
34517 2009-03-06  Bruno Haible  <bruno@clisp.org>
34518
34519         Tests for module 'uninorm/u32-normcmp'.
34520         * tests/uninorm/test-u32-normcmp.c: New file.
34521         * modules/uninorm/u32-normcmp-tests: New file.
34522
34523         Tests for module 'uninorm/u16-normcmp'.
34524         * tests/uninorm/test-u16-normcmp.c: New file.
34525         * modules/uninorm/u16-normcmp-tests: New file.
34526
34527         Tests for module 'uninorm/u8-normcmp'.
34528         * tests/uninorm/test-u8-normcmp.c: New file.
34529         * modules/uninorm/u8-normcmp-tests: New file.
34530
34531         New module 'uninorm/u32-normcmp'.
34532         * lib/uninorm/u32-normcmp.c: New file.
34533         * modules/uninorm/u32-normcmp: New file.
34534
34535         New module 'uninorm/u16-normcmp'.
34536         * lib/uninorm/u16-normcmp.c: New file.
34537         * modules/uninorm/u16-normcmp: New file.
34538
34539         New module 'uninorm/u8-normcmp'.
34540         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
34541         declarations.
34542         * lib/uninorm/u8-normcmp.c: New file.
34543         * lib/uninorm/u-normcmp.h: New file.
34544         * modules/uninorm/u8-normcmp: New file.
34545
34546 2009-03-06  Bruno Haible  <bruno@clisp.org>
34547
34548         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
34549         Reported by Eric Blake.
34550
34551 2009-03-06  Eric Blake  <ebb9@byu.net>
34552             Bruno Haible  <bruno@clisp.org>
34553
34554         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
34555         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
34556         condition.
34557         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34558         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
34559         condition.
34560         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34561
34562 2009-03-06  Eric Blake  <ebb9@byu.net>
34563
34564         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
34565         to avoid compiler warnings.
34566         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
34567
34568 2009-03-05  Bruno Haible  <bruno@clisp.org>
34569
34570         * tests/test-ftell.c (main): Disable test beyond end of file on
34571         FreeMiNT.
34572         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34573
34574 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
34575
34576         * lib/filevercmp.c: Move hidden files up in ordering.
34577         * tests/test-filevercmp.c: Add tests for hidden files.
34578
34579 2009-03-04  Bruno Haible  <bruno@clisp.org>
34580
34581         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
34582         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
34583         AM_CFLAGS.
34584         Reported by Simon Josefsson.
34585
34586 2009-03-03  Bruno Haible  <bruno@clisp.org>
34587
34588         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
34589         Reported by Simon Josefsson.
34590
34591         * doc/ld-version-script.texi: Update node reference.
34592
34593 2009-03-03  Bruno Haible  <bruno@clisp.org>
34594
34595         * modules/visibility (License): Change to 'unlimited'.
34596         Suggested by Simon Josefsson.
34597
34598 2009-03-03  Jim Meyering  <meyering@redhat.com>
34599
34600         unlinkdir: cannot_unlink_dir may modify process state
34601         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
34602         it's neither thread-safe nor appropriate for use in a library.
34603
34604 2009-03-03  Eric Blake  <ebb9@byu.net>
34605
34606         test-closein: silence test under Darwin
34607         * tests/test-closein.sh: Ignore stderr from cat, since we don't
34608         care if it dies from EPIPE or EBADF.
34609
34610 2009-03-03  Bruno Haible  <bruno@clisp.org>
34611
34612         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
34613         earlier.
34614         * doc/visibility.texi: Fix @node and @section.
34615
34616 2009-03-03  Simon Josefsson  <simon@josefsson.org>
34617
34618         * doc/gnulib.texi: Link to sections for ld version script and
34619         visibility.
34620         * doc/visibility.texi: Add @node and @section.
34621         * modules/ld-version-script: New module.
34622         * m4/ld-version-script.m4: New file.
34623         * doc/ld-version-script.texi: New file.
34624
34625 2009-03-02  David Lutterkort  <lutter@redhat.com>
34626
34627         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
34628         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34629
34630 2009-03-02  Bruno Haible  <bruno@clisp.org>
34631
34632         * doc/visibility.texi: Mention libtool's -export-symbols option.
34633
34634 2009-03-02  Jim Meyering  <meyering@redhat.com>
34635
34636         announce-gen: new option: --no-print-checksums
34637         * build-aux/announce-gen (usage): Describe it.
34638         (print_checksums): Print a newline here, not in the [*] footnote.
34639         (main): Honor it.
34640
34641 2009-03-01  Bruno Haible  <bruno@clisp.org>
34642
34643         Use socklen_t in the native Windows replacements prototypes.
34644         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
34645         instead of 'int'.
34646         * lib/getsockopt.c (rpl_getsockopt): Likewise.
34647         * lib/setsockopt.c (rpl_setsockopt): Likewise.
34648         * modules/getsockopt (Depends-on): Add socklen.
34649         * modules/setsockopt (Depends-on): Add socklen.
34650
34651 2009-03-01  Bruno Haible  <bruno@clisp.org>
34652
34653         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
34654         least 4.2.
34655
34656 2009-03-01  Eric Blake  <ebb9@byu.net>
34657             Bruno Haible  <bruno@clisp.org>
34658
34659         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
34660         error messages.
34661         * lib/wait-process.c (wait_subprocess): Omit error message about
34662         deadly signal sent to the child of termsigp != NULL.
34663
34664 2009-03-01  Eric Blake  <ebb9@byu.net>
34665
34666         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
34667
34668 2009-03-01  Bruno Haible  <bruno@clisp.org>
34669
34670         Avoid a gcc warning.
34671         * tests/test-sched.c (b): Make global.
34672         Reported by Eric Blake.
34673
34674 2009-01-19  Martin Lambers  <marlam@marlam.de>
34675
34676         Provide POSIX semantics for socket timeout options on W32.
34677         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
34678         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
34679         * modules/setsockopt: Depend on sys_time module for struct timeval.
34680         * modules/getsockopt: Depend on sys_time module for struct timeval.
34681
34682 2009-03-01  Simon Josefsson  <simon@josefsson.org>
34683
34684         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
34685         __USE_GNU, for consistency with netdb.in.h.
34686         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34687
34688 2009-03-01  Bruno Haible  <bruno@clisp.org>
34689
34690         More support for FreeMiNT.
34691         * lib/fseeko.c (rpl_fseeko): Complete last commit.
34692         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34693
34694 2009-03-01  Bruno Haible  <bruno@clisp.org>
34695
34696         More support for FreeMiNT.
34697         * lib/fpurge.c (fpurge): Correct last commit.
34698         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34699
34700 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34701
34702         Fix unportable awk script in vc-list-files.
34703         * build-aux/vc-list-files: In the replacement awk script, use
34704         substr with a second argument of 1, not zero.
34705         Report by Simon Josefsson.
34706
34707 2009-02-28  Bruno Haible  <bruno@clisp.org>
34708
34709         More support for FreeMiNT.
34710         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
34711         to FreeMiNT today.
34712         * lib/fwriting.c (fwriting): Likewise.
34713         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
34714
34715 2009-02-28  Bruno Haible  <bruno@clisp.org>
34716
34717         * tests/test-freadseek.c (main): Disable test beyond end of file on
34718         FreeMiNT.
34719         * tests/test-ftello.c (main): Likewise.
34720         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34721
34722 2009-02-28  Bruno Haible  <bruno@clisp.org>
34723
34724         Add tentative support for FreeMiNT.
34725         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
34726         * lib/fpurge.c (fpurge): Likewise.
34727         * lib/freadable.c (freadable): Likewise.
34728         * lib/freading.c (freading): Likewise.
34729         * lib/freadptr.c (freadptr): Likewise.
34730         * lib/freadseek.c (freadptrinc): Likewise.
34731         * lib/fseeko.c (rpl_fseeko): Likewise.
34732         * lib/fseterr.c (fseterr): Likewise.
34733         * lib/fwritable.c (fwritable): Likewise.
34734         * lib/fwriting.c (fwriting): Likewise.
34735         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
34736         Hourihane.
34737         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34738
34739 2009-02-28  Bruno Haible  <bruno@clisp.org>
34740
34741         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
34742         SIGCHLD.
34743         Reported by Jim Meyering.
34744
34745 2009-02-28  Bruno Haible  <bruno@clisp.org>
34746
34747         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
34748         Mention the results of these tests on various platforms.
34749         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
34750         order.
34751         * doc/posix-functions/printf.texi: Likewise.
34752         * doc/posix-functions/snprintf.texi: Likewise.
34753         * doc/posix-functions/sprintf.texi: Likewise.
34754         * doc/posix-functions/vfprintf.texi: Likewise.
34755         * doc/posix-functions/vprintf.texi: Likewise.
34756         * doc/posix-functions/vsnprintf.texi: Likewise.
34757         * doc/posix-functions/vsprintf.texi: Likewise.
34758         * doc/glibc-functions/obstack_printf.texi: Likewise.
34759         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
34760
34761 2009-02-28  Bruno Haible  <bruno@clisp.org>
34762
34763         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
34764         Reported by Loïc Minier <lool@dooz.org>.
34765
34766 2009-02-27  Bruno Haible  <bruno@clisp.org>
34767
34768         * gnulib-tool (func_import): Make the sed expression used to create the
34769         sed script for updating the .gitignore file POSIX compliant.
34770         Reported by Eric Blake.
34771
34772 2009-02-27  Bruno Haible  <bruno@clisp.org>
34773
34774         * gnulib-tool (sed): Don't alias as "sed --posix".
34775         Reported by Eric Blake.
34776
34777 2009-02-27  Bruno Haible  <bruno@clisp.org>
34778
34779         Avoid test link errors.
34780         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
34781         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
34782         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
34783         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
34784         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34785
34786 2009-02-27  Bruno Haible  <bruno@clisp.org>
34787
34788         Avoid spurious "(cached)" in configure output.
34789         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
34790         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
34791         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34792         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34793         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34794         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
34795         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34796         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
34797         Reported by Eric Blake.
34798
34799 2009-02-27  Eric Blake  <ebb9@byu.net>
34800
34801         printf: fix regression in previous patch
34802         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
34803
34804 2009-02-27  Bruno Haible  <bruno@clisp.org>
34805
34806         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
34807         value.
34808         * lib/stdint.in.h: Likewise.
34809         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
34810
34811 2009-02-27  Eric Blake  <ebb9@byu.net>
34812
34813         doc: mention more functions added in cygwin 1.7.0
34814         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
34815         addition.
34816         * doc/posix-functions/open_wmemstream.texi: Likewise.
34817         * doc/posix-functions/wcsnlen.texi: Likewise.
34818         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34819         * doc/posix-functions/wcstod.texi: Likewise.
34820         * doc/posix-functions/wcstof.texi: Likewise.
34821         * doc/posix-functions/wcstoimax.texi: Likewise.
34822         * doc/posix-functions/wcstok.texi: Likewise.
34823         * doc/posix-functions/wcstoumax.texi: Likewise.
34824
34825         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
34826         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
34827         * doc/posix-functions/fprintf.texi: Update.
34828         * doc/posix-functions/printf.texi: Update.
34829         * doc/posix-functions/snprintf.texi: Update.
34830         * doc/posix-functions/sprintf.texi: Update.
34831         * doc/posix-functions/vfprintf.texi: Update.
34832         * doc/posix-functions/vprintf.texi: Update.
34833         * doc/posix-functions/vsnprintf.texi: Update.
34834         * doc/posix-functions/vsprintf.texi: Update.
34835         * doc/glibc-functions/obstack_printf.texi: Update.
34836         * doc/glibc-functions/obstack_vprintf.texi: Update.
34837
34838 2009-02-26  Eric Blake  <ebb9@byu.net>
34839
34840         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
34841         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
34842         compilation bug by using runtime conversion.
34843         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34844         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
34845         * modules/ceill-tests (Files): Use nan.h.
34846         * modules/floorl-tests (Files): Likewise.
34847         * modules/frexpl-tests (Files): Likewise.
34848         * modules/isnanl-tests (Files): Likewise.
34849         * modules/ldexpl-tests (Files): Likewise.
34850         * modules/roundl-tests (Files): Likewise.
34851         * modules/truncl-tests (Files): Likewise.
34852         * tests/test-ceill.c (main): Use a working NaN.
34853         * tests/test-floorl.c (main): Likewise.
34854         * tests/test-frexpl.c (main): Likewise.
34855         * tests/test-isnan.c (test_long_double): Likewise.
34856         * tests/test-isnanl.h (main): Likewise.
34857         * tests/test-ldexpl.h (main): Likewise.
34858         * tests/test-roundl.h (main): Likewise.
34859         * tests/test-truncl.h (main): Likewise.
34860         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
34861
34862 2009-02-26  Eric Blake  <ebb9@byu.net>
34863             Bruno Haible  <bruno@clisp.org>
34864
34865         Work around a *printf bug with %ls on Solaris.
34866         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
34867         precision is specified, sprintf stops converting the wide string
34868         argument when the number of bytes that have been produced by this
34869         conversion equals or exceeds the precision.
34870         * doc/posix-functions/fprintf.texi: Update.
34871         * doc/posix-functions/printf.texi: Update.
34872         * doc/posix-functions/snprintf.texi: Update.
34873         * doc/posix-functions/sprintf.texi: Update.
34874         * doc/posix-functions/vfprintf.texi: Update.
34875         * doc/posix-functions/vprintf.texi: Update.
34876         * doc/posix-functions/vsnprintf.texi: Update.
34877         * doc/posix-functions/vsprintf.texi: Update.
34878         * doc/glibc-functions/obstack_printf.texi: Update.
34879         * doc/glibc-functions/obstack_vprintf.texi: Update.
34880
34881 2009-02-26  Eric Blake  <ebb9@byu.net>
34882
34883         stdlib: favor compiler check of random.h
34884         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
34885         to avoid an ObjC random.h installed by Swarm.
34886
34887 2009-02-26  Bruno Haible  <bruno@clisp.org>
34888
34889         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
34890         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
34891         Reported by Gary V. Vaughan <gary@gnu.org>.
34892
34893 2009-02-26  Bruno Haible  <bruno@clisp.org>
34894
34895         Fix *printf behaviour regarding the %ls directive.
34896         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
34897         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
34898         NEED_PRINTF_DIRECTIVE_LS.
34899         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
34900         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34901         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34902         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
34903         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
34904         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
34905         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
34906         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34907         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34908         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34909         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34910         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
34911         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34912         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34913         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34914         * doc/posix-functions/fprintf.texi: Update.
34915         * doc/posix-functions/printf.texi: Update.
34916         * doc/posix-functions/snprintf.texi: Update.
34917         * doc/posix-functions/sprintf.texi: Update.
34918         * doc/posix-functions/vfprintf.texi: Update.
34919         * doc/posix-functions/vprintf.texi: Update.
34920         * doc/posix-functions/vsnprintf.texi: Update.
34921         * doc/posix-functions/vsprintf.texi: Update.
34922         * doc/glibc-functions/obstack_printf.texi: Update.
34923         * doc/glibc-functions/obstack_vprintf.texi: Update.
34924         Reported by Eric Blake.
34925
34926 2009-02-25  Bruno Haible  <bruno@clisp.org>
34927
34928         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
34929         with known value.
34930         Reported by Gary V. Vaughan <gary@gnu.org>.
34931
34932 2009-02-25  Bruno Haible  <bruno@clisp.org>
34933
34934         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
34935         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
34936         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
34937         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
34938         Reported by Gary V. Vaughan <gary@gnu.org>.
34939
34940 2009-02-25  Bruno Haible  <bruno@clisp.org>
34941
34942         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
34943         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
34944         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
34945         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
34946         Reported by Gary V. Vaughan <gary@gnu.org>.
34947
34948 2009-02-25  Eric Blake  <ebb9@byu.net>
34949
34950         tests: skip fseek/ftell tests if ungetc is broken
34951         * m4/ungetc.m4: New file.
34952         * modules/fseek-tests: Split test, so ungetc dependency is
34953         separate from rest of test.
34954         * modules/fseeko-tests: Likewise.
34955         * modules/ftell-tests: Likewise.
34956         * modules/ftello-tests: Likewise.
34957         * tests/test-fseek.c (main): Isolate ungetc dependency.
34958         * tests/test-fseeko.c (main): Likewise.
34959         * tests/test-ftell.c (main): Likewise.
34960         * tests/test-ftello.c (main): Likewise.
34961         * tests/test-fseek2.sh: New file.
34962         * tests/test-fseeko2.sh: Likewise.
34963         * tests/test-ftell2.sh: Likewise.
34964         * tests/test-ftello2.sh: Likewise.
34965
34966 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
34967
34968         test-getaddrinfo: fix usage of skip return code 77
34969         * tests/test-gettaddrinfo.c: Return skip code 77 only
34970         for first occurance of skip (4x77 is not 77)
34971
34972 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
34973
34974         strtod: avoid C99 decl-after-statement
34975         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
34976
34977 2009-02-24  Eric Blake  <ebb9@byu.net>
34978
34979         strtod: detect HP-UX 11.31 bug
34980         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
34981         Reported by Gary V. Vaughan.
34982
34983 2009-02-23  Bruno Haible  <bruno@clisp.org>
34984
34985         Fix invalid read past end of memory block.
34986         * lib/vasnprintf.c (DCHAR_SET): Define.
34987         (local_wcslen): Define only when needed.
34988         (local_strnlen, local_wcsnlen): New functions.
34989         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
34990         directives that involve a conversion ourselves.
34991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
34992         wcsnlen, mbrtowc, wcrtomb.
34993         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
34994         * tests/test-vasprintf-posix.c (test_function): Likewise.
34995         * tests/test-snprintf-posix.h (test_function): Likewise.
34996         * tests/test-sprintf-posix.h (test_function): Likewise.
34997         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34998
34999 2009-02-22  Bruno Haible  <bruno@clisp.org>
35000
35001         Implement new clarified decomposition of Hangul syllables.
35002         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
35003         of type LTV, return only a pairwise decomposition.
35004         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
35005         Likewise.
35006         * tests/uninorm/test-decomposition.c (main): Updated expected result.
35007         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
35008         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
35009
35010 2009-02-22  Bruno Haible  <bruno@clisp.org>
35011
35012         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
35013         zero-length results and shrink excess allocated memory.
35014         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
35015         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
35016         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
35017         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
35018         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35019         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35020         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35021         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35022         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35023         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35024         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35025         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35026
35027 2009-02-21  Bruno Haible  <bruno@clisp.org>
35028
35029         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35030         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35031         spaces after a period. Put a space between a macro name and its
35032         argument list. Trivial rewordings.
35033         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35034         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35035         (main): Return 0 explicitly.
35036
35037 2009-02-21  Bruno Haible  <bruno@clisp.org>
35038
35039         Tests for module 'uninorm/filter'.
35040         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35041         * modules/uninorm/filter-tests: New file.
35042
35043         New module 'uninorm/filter'.
35044         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35045         uninorm_filter_flush, uninorm_filter_free): New declarations.
35046         * lib/uninorm/uninorm-filter.c: New file.
35047         * modules/uninorm/filter: New file.
35048
35049 2009-02-21  Bruno Haible  <bruno@clisp.org>
35050
35051         Tests for module 'uninorm/nfkc'.
35052         * tests/uninorm/test-nfkc.c: New file.
35053         * tests/uninorm/test-u8-nfkc.c: New file.
35054         * tests/uninorm/test-u16-nfkc.c: New file.
35055         * tests/uninorm/test-u32-nfkc.c: New file.
35056         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35057         * tests/uninorm/test-u32-nfkc-big.c: New file.
35058         * modules/uninorm/nfkc-tests: New file.
35059
35060         New module 'uninorm/nfkc'.
35061         * lib/uninorm/nfkc.c: New file.
35062         * modules/uninorm/nfkc: New file.
35063
35064         Tests for module 'uninorm/nfkd'.
35065         * tests/uninorm/test-nfkd.c: New file.
35066         * tests/uninorm/test-u8-nfkd.c: New file.
35067         * tests/uninorm/test-u16-nfkd.c: New file.
35068         * tests/uninorm/test-u32-nfkd.c: New file.
35069         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35070         * tests/uninorm/test-u32-nfkd-big.c: New file.
35071         * modules/uninorm/nfkd-tests: New file.
35072
35073         New module 'uninorm/nfkd'.
35074         * lib/uninorm/nfkd.c: New file.
35075         * modules/uninorm/nfkd: New file.
35076
35077         Tests for module 'uninorm/nfc'.
35078         * tests/uninorm/test-nfc.c: New file.
35079         * tests/uninorm/test-u8-nfc.c: New file.
35080         * tests/uninorm/test-u16-nfc.c: New file.
35081         * tests/uninorm/test-u32-nfc.c: New file.
35082         * tests/uninorm/test-u32-nfc-big.sh: New file.
35083         * tests/uninorm/test-u32-nfc-big.c: New file.
35084         * modules/uninorm/nfc-tests: New file.
35085
35086         New module 'uninorm/nfc'.
35087         * lib/uninorm/nfc.c: New file.
35088         * modules/uninorm/nfc: New file.
35089
35090         Tests for module 'uninorm/nfd'.
35091         * tests/uninorm/test-nfd.c: New file.
35092         * tests/uninorm/test-u8-nfd.c: New file.
35093         * tests/uninorm/test-u16-nfd.c: New file.
35094         * tests/uninorm/test-u32-nfd.c: New file.
35095         * tests/uninorm/test-u32-nfd-big.sh: New file.
35096         * tests/uninorm/test-u32-nfd-big.c: New file.
35097         * tests/uninorm/test-u32-normalize-big.h: New file.
35098         * tests/uninorm/test-u32-normalize-big.c: New file.
35099         * tests/uninorm/NormalizationTest.txt: New file, created from
35100         Unicode 5.1.0 NormalizationTest.txt.
35101         * modules/uninorm/nfd-tests: New file.
35102
35103         New module 'uninorm/nfd'.
35104         * lib/uninorm/nfd.c: New file.
35105         * modules/uninorm/nfd: New file.
35106
35107         New module 'uninorm/u32-normalize'.
35108         * lib/uninorm/u32-normalize.c: New file.
35109         * modules/uninorm/u32-normalize: New file.
35110
35111         New module 'uninorm/u16-normalize'.
35112         * lib/uninorm/u16-normalize.c: New file.
35113         * modules/uninorm/u16-normalize: New file.
35114
35115         New module 'uninorm/u8-normalize'.
35116         * lib/uninorm/u8-normalize.c: New file.
35117         * lib/uninorm/normalize-internal.h: New file.
35118         * lib/uninorm/u-normalize-internal.h: New file.
35119         * modules/uninorm/u8-normalize: New file.
35120
35121         New module 'uninorm/decompose-internal'.
35122         * lib/uninorm/decompose-internal.c: New file.
35123         * modules/uninorm/decompose-internal: New file.
35124
35125         Tests for module 'uninorm/composition'.
35126         * tests/uninorm/test-composition.c: New file.
35127         * modules/uninorm/composition-tests: New file.
35128
35129         New module 'uninorm/composition'.
35130         * lib/uninorm/composition.c: New file.
35131         * lib/uninorm/composition-table.gperf: New file, generated by
35132         gen-uni-tables.
35133         * modules/uninorm/composition: New file.
35134
35135         Tests for module 'uninorm/compat-decomposition'.
35136         * tests/uninorm/test-compat-decomposition.c: New file.
35137         * modules/uninorm/compat-decomposition-tests: New file.
35138
35139         New module 'uninorm/compat-decomposition'.
35140         * lib/uninorm/decompose-internal.h: New file.
35141         * lib/uninorm/compat-decomposition.c: New file.
35142         * modules/uninorm/compat-decomposition: New file.
35143
35144         Tests for module 'uninorm/canonical-decomposition'.
35145         * tests/uninorm/test-canonical-decomposition.c: New file.
35146         * modules/uninorm/canonical-decomposition-tests: New file.
35147
35148         New module 'uninorm/canonical-decomposition'.
35149         * lib/uninorm/canonical-decomposition.c: New file.
35150         * modules/uninorm/canonical-decomposition: New file.
35151
35152         Tests for module 'uninorm/decomposition'.
35153         * tests/uninorm/test-decomposition.c: New file.
35154         * modules/uninorm/decomposition-tests: New file.
35155
35156         New module 'uninorm/decomposition'.
35157         * lib/uninorm/decomposition.c: New file.
35158         * modules/uninorm/decomposition: New file.
35159
35160         New module 'uninorm/decomposition-table'.
35161         * lib/uninorm/decomposition-table.h: New file.
35162         * lib/uninorm/decomposition-table.c: New file.
35163         * lib/uninorm/decomposition-table1.h: New file, generated by
35164         gen-uni-tables.
35165         * lib/uninorm/decomposition-table2.h: New file, generated by
35166         gen-uni-tables.
35167         * modules/uninorm/decomposition-table: New file.
35168
35169         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35170         (UC_DECOMP_*): New enumeration items.
35171         (get_decomposition): New function.
35172         (struct decomp_table): New type.
35173         (output_decomposition, output_decomposition_tables): New functions.
35174         (unicode_composition_exclusions): New variable.
35175         (fill_composition_exclusions, debug_output_composition_tables): New
35176         functions.
35177         (main): Accept one more argument. Invoke fill_composition_exclusions.
35178         Output decomposition and composition tables.
35179
35180         New module 'uninorm/base'.
35181         * lib/uninorm.h: New file.
35182         * lib/unictype.h: Update comment.
35183         * modules/uninorm/base: New file.
35184
35185 2009-02-21  David Lutterkort  <lutter@redhat.com>
35186
35187         Tests for module 'safe-alloc'.
35188         * tests/test-safe-alloc.c: New file.
35189         * modules/safe-alloc-tests: New file.
35190
35191         New module 'safe-alloc'.
35192         * lib/safe-alloc.h: New file.
35193         * lib/safe-alloc.c: New file.
35194         * m4/safe-alloc.m4: New file.
35195         * modules/safe-alloc: New file.
35196         * doc/safe-alloc.texi: New file.
35197         * doc/gnulib.texi: Include it.
35198         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35199         safe-alloc.
35200
35201 2009-02-18  Bruno Haible  <bruno@clisp.org>
35202
35203         Fix link error on non-glibc systems.
35204         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35205         variable.
35206         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35207
35208 2009-02-18  Jim Meyering  <meyering@redhat.com>
35209
35210         fts: avoid used-uninitialized error due to recent change
35211         * lib/fts.c (fts_read): Guard uses of the new member,
35212         parent->fts_n_dirs_remaining, since it's not relevant for
35213         the parent of a directory specified on the command-line.
35214
35215 2009-02-17  James Youngman  <jay@gnu.org>
35216             Bruno Haible  <bruno@clisp.org>
35217
35218         * m4/include_next.m4: Reformulate comment.
35219
35220 2009-02-16  Jim Meyering  <meyering@redhat.com>
35221
35222         fts: add #if guards so that the fts_lgpl module still builds
35223         * lib/fts.c: Guard just-added hash-table-using parts with
35224         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35225         Reported by Simon Josefsson.
35226
35227 2009-02-15  Bruno Haible  <bruno@clisp.org>
35228
35229         * modules/array-mergesort-tests: New file.
35230         * tests/test-array-mergesort.c: New file.
35231
35232         New module 'array-mergesort'.
35233         * modules/array-mergesort: New file.
35234         * lib/array-mergesort.h: New file.
35235
35236 2009-02-15  Bruno Haible  <bruno@clisp.org>
35237
35238         Fix 2009-02-07 commit.
35239         * lib/gen-uni-tables.c (output_predicate, output_category,
35240         output_combclass, output_bidi_category, output_decimal_digit,
35241         output_digit, output_numeric, output_mirror, output_scripts,
35242         output_ident_category, output_simple_mapping): Fix format directives.
35243         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
35244
35245 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
35246
35247         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
35248         fixes are available from IBM.
35249
35250 2009-02-13  Jim Meyering  <meyering@redhat.com>
35251
35252         fts: arrange not to stat non-directories in more cases
35253         This makes GNU find (when it doesn't need to stat each file)
35254         *much* more efficient at traversing reiserfs file systems.
35255         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
35256         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
35257         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
35258         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
35259         (leaf_optimization_applies): New function.
35260         (LCO_hash, LCO_compare): New helper functions.
35261         (link_count_optimize_ok): New function.
35262         (fts_stat): Initialize new member (if dir).
35263         (fts_read): Decrement parent's fts_n_dirs_remaining count if
35264         we've just stat'ed a directory.  Skip the stat call when possible.
35265         ---
35266         Note this AFS-related exchange:
35267         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
35268         and note find's pioctl call in find/fstype.c.
35269         But that is necessary only if you want to enable the
35270         optimization for AFS, and for now, I don't.
35271
35272         fts: move a function definition "up" (no semantic change)
35273         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
35274         "up" to precede upcoming use of a related function.
35275
35276 2009-02-11  Jim Meyering  <meyering@redhat.com>
35277
35278         fts: correct internal computation of nlinks (optimization-related)
35279         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
35280         whether the current entry is a directory, so don't test it.
35281
35282 2009-02-10  Bruno Haible  <bruno@clisp.org>
35283
35284         Tests for module 'uniwbrk/ulc-wordbreaks'.
35285         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
35286         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
35287         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
35288
35289         Tests for module 'uniwbrk/u32-wordbreaks'.
35290         * modules/uniwbrk/u32-wordbreaks-tests: New file.
35291         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
35292
35293         Tests for module 'uniwbrk/u16-wordbreaks'.
35294         * modules/uniwbrk/u16-wordbreaks-tests: New file.
35295         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
35296
35297         Tests for module 'uniwbrk/u8-wordbreaks'.
35298         * modules/uniwbrk/u8-wordbreaks-tests: New file.
35299         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
35300
35301 2009-02-10  Bruno Haible  <bruno@clisp.org>
35302
35303         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
35304         property.
35305         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
35306         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
35307         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
35308
35309 2009-02-10  Simon Josefsson  <simon@josefsson.org>
35310
35311         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
35312         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
35313
35314 2009-02-10  Bruno Haible  <bruno@clisp.org>
35315
35316         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
35317         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
35318         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
35319         * lib/unilbrk/u8-possible-linebreaks.c: Update.
35320         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
35321         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
35322
35323 2009-02-09  Simon Josefsson  <simon@josefsson.org>
35324
35325         * lib/sockets.h (gl_fd_to_handle): New function.
35326
35327         * tests/test-sockets.c: Call gl_fd_to_handle.
35328
35329 2009-02-09  Bruno Haible  <bruno@clisp.org>
35330
35331         * doc/havelib.texi: Document the conventions on bi-arch systems.
35332
35333 2009-02-08  Bruno Haible  <bruno@clisp.org>
35334
35335         Document the AC_LIB_LINKFLAGS macro.
35336         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35337         * doc/gnulib.texi: Include it.
35338
35339 2009-02-08  Bruno Haible  <bruno@clisp.org>
35340
35341         Fix wrong order of sections, compared to TOC.
35342         * doc/gnulib.texi: Include relocatable-maint.texi after the
35343         "Regular expressions" node, not before.
35344
35345 2009-02-08  Bruno Haible  <bruno@clisp.org>
35346
35347         Tests for module 'unicase/totitle'.
35348         * modules/unicase/totitle-tests: New file.
35349
35350         Tests for module 'unicase/tolower'.
35351         * modules/unicase/tolower-tests: New file.
35352
35353         Tests for module 'unicase/toupper'.
35354         * modules/unicase/toupper-tests: New file.
35355         * tests/unicase/test-mapping-part1.h: New file.
35356         * tests/unicase/test-mapping-part2.h: New file.
35357
35358         New module 'unicase/totitle'.
35359         * modules/unicase/totitle: New file.
35360         * lib/unicase/totitle.c: New file.
35361
35362         New module 'unicase/tolower'.
35363         * modules/unicase/tolower: New file.
35364         * lib/unicase/tolower.c: New file.
35365
35366         New module 'unicase/toupper'.
35367         * modules/unicase/toupper: New file.
35368         * lib/unicase/toupper.c: New file.
35369         * lib/unicase/simple-mapping.h: New file.
35370
35371         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35372         (mapping_table): New structure.
35373         (output_simple_mapping): New function.
35374         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35375         * modules/gen-uni-tables (Description): Update.
35376         * lib/unicase/toupper.h: New file, automatically generated by
35377         gen-uni-tables.
35378         * lib/unicase/tolower.h: New file, automatically generated by
35379         gen-uni-tables.
35380         * lib/unicase/totitle.h: New file, automatically generated by
35381         gen-uni-tables.
35382         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35383         gen-uni-tables.
35384         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35385         gen-uni-tables.
35386         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35387         gen-uni-tables.
35388
35389         New module 'unicase/base'.
35390         * modules/unicase/base: New file.
35391         * lib/unicase.h: New file.
35392
35393 2009-02-08  Bruno Haible  <bruno@clisp.org>
35394
35395         New module 'uniwbrk/ulc-wordbreaks'.
35396         * modules/uniwbrk/ulc-wordbreaks: New file.
35397         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35398
35399         New module 'uniwbrk/u32-wordbreaks'.
35400         * modules/uniwbrk/u32-wordbreaks: New file.
35401         * lib/uniwbrk/u32-wordbreaks.c: New file.
35402
35403         New module 'uniwbrk/u16-wordbreaks'.
35404         * modules/uniwbrk/u16-wordbreaks: New file.
35405         * lib/uniwbrk/u16-wordbreaks.c: New file.
35406
35407         New module 'uniwbrk/u8-wordbreaks'.
35408         * modules/uniwbrk/u8-wordbreaks: New file.
35409         * lib/uniwbrk/u8-wordbreaks.c: New file.
35410         * lib/uniwbrk/u-wordbreaks.h: New file.
35411
35412         New module 'uniwbrk/table'.
35413         * modules/uniwbrk/table: New file.
35414         * lib/uniwbrk/wbrktable.h: New file.
35415         * lib/uniwbrk/wbrktable.c: New file.
35416
35417         New module 'uniwbrk/wordbreak-property'.
35418         * modules/uniwbrk/wordbreak-property: New file.
35419         * lib/uniwbrk/wordbreak-property.c: New file.
35420
35421         * lib/gen-uni-tables.c (WBP_*): New enum items.
35422         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
35423         (unicode_org_wbp): New variable.
35424         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
35425         New functions.
35426         (wbp_table): New structure.
35427         (output_wbp, output_wbrk_tables): New functions.
35428         (main): Accept additional argument. Invoke fill_org_wbp,
35429         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
35430         output_wbrk_tables.
35431         * modules/gen-uni-tables (Description): Update.
35432         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
35433         gen-uni-tables.
35434
35435         New module 'uniwbrk/base'.
35436         * modules/uniwbrk/base: New file.
35437         * lib/uniwbrk.h: New file.
35438
35439 2009-02-08  Bruno Haible  <bruno@clisp.org>
35440
35441         Update to Unicode 5.1.0.
35442         * lib/gen-uni-tables.c (is_property_alphabetic): Include
35443         U+2185..U+2188.
35444         (is_property_default_ignorable_code_point): Don't include characters
35445         of category Cc or Cs and not-a-characters.
35446         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
35447         U+0D79, U+109E, U+109F, U+A60C.
35448         * lib/unictype/bidi_of.h: Regenerated.
35449         * lib/unictype/blocks.h: Regenerated.
35450         * lib/unictype/categ_C.h: Regenerated.
35451         * lib/unictype/categ_Cf.h: Regenerated.
35452         * lib/unictype/categ_Cn.h: Regenerated.
35453         * lib/unictype/categ_L.h: Regenerated.
35454         * lib/unictype/categ_Ll.h: Regenerated.
35455         * lib/unictype/categ_Lm.h: Regenerated.
35456         * lib/unictype/categ_Lo.h: Regenerated.
35457         * lib/unictype/categ_Lu.h: Regenerated.
35458         * lib/unictype/categ_M.h: Regenerated.
35459         * lib/unictype/categ_Mc.h: Regenerated.
35460         * lib/unictype/categ_Me.h: Regenerated.
35461         * lib/unictype/categ_Mn.h: Regenerated.
35462         * lib/unictype/categ_N.h: Regenerated.
35463         * lib/unictype/categ_Nd.h: Regenerated.
35464         * lib/unictype/categ_Nl.h: Regenerated.
35465         * lib/unictype/categ_No.h: Regenerated.
35466         * lib/unictype/categ_P.h: Regenerated.
35467         * lib/unictype/categ_Pd.h: Regenerated.
35468         * lib/unictype/categ_Pe.h: Regenerated.
35469         * lib/unictype/categ_Pf.h: Regenerated.
35470         * lib/unictype/categ_Pi.h: Regenerated.
35471         * lib/unictype/categ_Po.h: Regenerated.
35472         * lib/unictype/categ_Ps.h: Regenerated.
35473         * lib/unictype/categ_S.h: Regenerated.
35474         * lib/unictype/categ_Sk.h: Regenerated.
35475         * lib/unictype/categ_Sm.h: Regenerated.
35476         * lib/unictype/categ_So.h: Regenerated.
35477         * lib/unictype/categ_of.h: Regenerated.
35478         * lib/unictype/combining.h: Regenerated.
35479         * lib/unictype/ctype_alnum.h: Regenerated.
35480         * lib/unictype/ctype_alpha.h: Regenerated.
35481         * lib/unictype/ctype_graph.h: Regenerated.
35482         * lib/unictype/ctype_lower.h: Regenerated.
35483         * lib/unictype/ctype_print.h: Regenerated.
35484         * lib/unictype/ctype_punct.h: Regenerated.
35485         * lib/unictype/ctype_upper.h: Regenerated.
35486         * lib/unictype/decdigit.h: Regenerated.
35487         * lib/unictype/digit.h: Regenerated.
35488         * lib/unictype/mirror.h: Regenerated.
35489         * lib/unictype/numeric.h: Regenerated.
35490         * lib/unictype/pr_alphabetic.h: Regenerated.
35491         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
35492         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
35493         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
35494         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
35495         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
35496         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
35497         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
35498         * lib/unictype/pr_combining.h: Regenerated.
35499         * lib/unictype/pr_dash.h: Regenerated.
35500         * lib/unictype/pr_decimal_digit.h: Regenerated.
35501         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
35502         * lib/unictype/pr_deprecated.h: Regenerated.
35503         * lib/unictype/pr_diacritic.h: Regenerated.
35504         * lib/unictype/pr_extender.h: Regenerated.
35505         * lib/unictype/pr_format_control.h: Regenerated.
35506         * lib/unictype/pr_grapheme_base.h: Regenerated.
35507         * lib/unictype/pr_grapheme_extend.h: Regenerated.
35508         * lib/unictype/pr_grapheme_link.h: Regenerated.
35509         * lib/unictype/pr_id_continue.h: Regenerated.
35510         * lib/unictype/pr_id_start.h: Regenerated.
35511         * lib/unictype/pr_ideographic.h: Regenerated.
35512         * lib/unictype/pr_ignorable_control.h: Regenerated.
35513         * lib/unictype/pr_lowercase.h: Regenerated.
35514         * lib/unictype/pr_math.h: Regenerated.
35515         * lib/unictype/pr_numeric.h: Regenerated.
35516         * lib/unictype/pr_other_alphabetic.h: Regenerated.
35517         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
35518         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
35519         * lib/unictype/pr_other_id_continue.h: Regenerated.
35520         * lib/unictype/pr_other_lowercase.h: Regenerated.
35521         * lib/unictype/pr_other_math.h: Regenerated.
35522         * lib/unictype/pr_punctuation.h: Regenerated.
35523         * lib/unictype/pr_sentence_terminal.h: Regenerated.
35524         * lib/unictype/pr_soft_dotted.h: Regenerated.
35525         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
35526         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
35527         * lib/unictype/pr_unified_ideograph.h: Regenerated.
35528         * lib/unictype/pr_uppercase.h: Regenerated.
35529         * lib/unictype/pr_xid_continue.h: Regenerated.
35530         * lib/unictype/pr_xid_start.h: Regenerated.
35531         * lib/unictype/pr_zero_width.h: Regenerated.
35532         * lib/unictype/scripts.h: Regenerated.
35533         * lib/unictype/scripts_byname.gperf: Regenerated.
35534         * lib/unictype/sy_java_ident.h: Regenerated.
35535         * lib/unilbrk/lbrkprop1.h: Regenerated.
35536         * lib/unilbrk/lbrkprop2.h: Regenerated.
35537         * tests/unictype/test-categ_C.c: Regenerated.
35538         * tests/unictype/test-categ_Cf.c: Regenerated.
35539         * tests/unictype/test-categ_Cn.c: Regenerated.
35540         * tests/unictype/test-categ_L.c: Regenerated.
35541         * tests/unictype/test-categ_Ll.c: Regenerated.
35542         * tests/unictype/test-categ_Lm.c: Regenerated.
35543         * tests/unictype/test-categ_Lo.c: Regenerated.
35544         * tests/unictype/test-categ_Lu.c: Regenerated.
35545         * tests/unictype/test-categ_M.c: Regenerated.
35546         * tests/unictype/test-categ_Mc.c: Regenerated.
35547         * tests/unictype/test-categ_Me.c: Regenerated.
35548         * tests/unictype/test-categ_Mn.c: Regenerated.
35549         * tests/unictype/test-categ_N.c: Regenerated.
35550         * tests/unictype/test-categ_Nd.c: Regenerated.
35551         * tests/unictype/test-categ_Nl.c: Regenerated.
35552         * tests/unictype/test-categ_No.c: Regenerated.
35553         * tests/unictype/test-categ_P.c: Regenerated.
35554         * tests/unictype/test-categ_Pd.c: Regenerated.
35555         * tests/unictype/test-categ_Pe.c: Regenerated.
35556         * tests/unictype/test-categ_Pf.c: Regenerated.
35557         * tests/unictype/test-categ_Pi.c: Regenerated.
35558         * tests/unictype/test-categ_Po.c: Regenerated.
35559         * tests/unictype/test-categ_Ps.c: Regenerated.
35560         * tests/unictype/test-categ_S.c: Regenerated.
35561         * tests/unictype/test-categ_Sk.c: Regenerated.
35562         * tests/unictype/test-categ_Sm.c: Regenerated.
35563         * tests/unictype/test-categ_So.c: Regenerated.
35564         * tests/unictype/test-ctype_alnum.c: Regenerated.
35565         * tests/unictype/test-ctype_alpha.c: Regenerated.
35566         * tests/unictype/test-ctype_graph.c: Regenerated.
35567         * tests/unictype/test-ctype_lower.c: Regenerated.
35568         * tests/unictype/test-ctype_print.c: Regenerated.
35569         * tests/unictype/test-ctype_punct.c: Regenerated.
35570         * tests/unictype/test-ctype_upper.c: Regenerated.
35571         * tests/unictype/test-decdigit.h: Regenerated.
35572         * tests/unictype/test-digit.h: Regenerated.
35573         * tests/unictype/test-numeric.h: Regenerated.
35574         * tests/unictype/test-pr_alphabetic.c: Regenerated.
35575         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
35576         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
35577         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
35578         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
35579         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
35580         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
35581         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
35582         * tests/unictype/test-pr_combining.c: Regenerated.
35583         * tests/unictype/test-pr_dash.c: Regenerated.
35584         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
35585         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
35586         * tests/unictype/test-pr_deprecated.c: Regenerated.
35587         * tests/unictype/test-pr_diacritic.c: Regenerated.
35588         * tests/unictype/test-pr_extender.c: Regenerated.
35589         * tests/unictype/test-pr_format_control.c: Regenerated.
35590         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
35591         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
35592         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
35593         * tests/unictype/test-pr_id_continue.c: Regenerated.
35594         * tests/unictype/test-pr_id_start.c: Regenerated.
35595         * tests/unictype/test-pr_ideographic.c: Regenerated.
35596         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
35597         * tests/unictype/test-pr_lowercase.c: Regenerated.
35598         * tests/unictype/test-pr_math.c: Regenerated.
35599         * tests/unictype/test-pr_numeric.c: Regenerated.
35600         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
35601         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
35602         Regenerated.
35603         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
35604         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
35605         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
35606         * tests/unictype/test-pr_other_math.c: Regenerated.
35607         * tests/unictype/test-pr_punctuation.c: Regenerated.
35608         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
35609         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
35610         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
35611         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
35612         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
35613         * tests/unictype/test-pr_uppercase.c: Regenerated.
35614         * tests/unictype/test-pr_xid_continue.c: Regenerated.
35615         * tests/unictype/test-pr_xid_start.c: Regenerated.
35616         * tests/unictype/test-pr_zero_width.c: Regenerated.
35617
35618         Update to Unicode 5.1.0.
35619         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
35620         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
35621         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
35622         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
35623         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
35624         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
35625         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
35626         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
35627         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
35628         (nonspacing_table_ind): Update.
35629         * tests/uniwidth/test-uc_width2.sh: Update expected result.
35630
35631         Update to Unicode 5.1.0.
35632         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
35633         code transform.
35634         * lib/uniname/uniname.c (unicode_character_name,
35635         unicode_name_character): Add the range 0x1Fxxx to the code transform.
35636         * lib/uniname/uninames.h: Regenerated.
35637         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
35638
35639 2009-02-07  Bruno Haible  <bruno@clisp.org>
35640
35641         Merge gen-ctype and gen-lbrk into a single program.
35642         * lib/gen-uni-tables.c: New file, incorporating
35643         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
35644         Add directory prefixes to the names of the generated files.
35645         * lib/unictype/gen-ctype.c: Remove file.
35646         * lib/unilbrk/gen-lbrk.c: Remove file.
35647         * modules/gen-uni-tables: New file.
35648         * modules/unictype/gen-ctype: Remove file.
35649         * modules/unilbrk/gen-lbrk: Remove file.
35650
35651 2009-02-07  Bruno Haible  <bruno@clisp.org>
35652
35653         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
35654
35655         New module 'unistr/u32-strcoll'.
35656         * modules/unistr/u32-strcoll: New file.
35657         * lib/unistr/u32-strcoll.c: New file.
35658
35659         New module 'unistr/u16-strcoll'.
35660         * modules/unistr/u16-strcoll: New file.
35661         * lib/unistr/u16-strcoll.c: New file.
35662
35663         New module 'unistr/u8-strcoll'.
35664         * modules/unistr/u8-strcoll: New file.
35665         * lib/unistr/u8-strcoll.c: New file.
35666         * lib/unistr/u-strcoll.h: New file.
35667
35668 2009-02-07  Bruno Haible  <bruno@clisp.org>
35669
35670         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
35671         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35672         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35673         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
35674         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
35675         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
35676
35677 2009-02-07  Bruno Haible  <bruno@clisp.org>
35678
35679         Make 64-bit clean.
35680         * lib/unictype/gen-ctype.c (output_predicate, output_category,
35681         output_combclass, output_bidi_category, output_decimal_digit,
35682         output_digit, output_numeric, output_mirror, output_scripts,
35683         output_ident_category): Use proper width specifier in format strings.
35684
35685 2009-02-07  Bruno Haible  <bruno@clisp.org>
35686
35687         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
35688         failure behaviour.
35689
35690 2009-02-07  Jim Meyering  <meyering@redhat.com>
35691
35692         regex: avoid compilation failure with upcoming gcc-4.4
35693         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
35694         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
35695         "... error: integer overflow in preprocessor expression".
35696
35697 2009-02-05  Ben Pfaff  <blp@gnu.org>
35698
35699         Fix link errors on Windows when close module is used.
35700         * modules/close: Add $(LIB_CLOSE) to Link section.
35701         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
35702         $(LIB_CLOSE) on Windows.
35703
35704 2009-02-05  Jim Meyering  <meyering@redhat.com>
35705
35706         still avoid unused-parameter warnings, but do it cleanly
35707         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
35708         (get_fs_usage): Cast to void instead.
35709         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
35710         (dev_from_mount_options, read_file_system_list): Cast to void.
35711         Prompted by Bruno Haible.
35712
35713 2009-02-04  Jim Meyering  <meyering@redhat.com>
35714
35715         fsusage.c: correct copyright year
35716         * lib/fsusage.c: Reflect year in which the change is pushed into
35717
35718         avoid misc. warnings
35719         * lib/fsusage.c (UNUSED_PARAM): Define.
35720         (get_fs_usage): Mark parameter "disk" as unused.
35721         * lib/getugroups.c (getgrent): Use "void" in prototype.
35722         * lib/mountlist.c: Mark unused parameters.
35723         (read_file_system_list): Declare a local with "const".
35724         * lib/nanosleep.c (getnow): Declare static.
35725         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
35726
35727         dirfd: set errno upon failure
35728         * lib/dirfd.c: Include <errno.h>.
35729         Set errno to ENOTSUP when returning -1.
35730         * modules/dirfd (Depends-on): Add errno.
35731         Suggested by John Kodis <kodis@comcast.net>.
35732
35733 2009-02-01  Bruno Haible  <bruno@clisp.org>
35734
35735         Don't assume sizeof (long) >= sizeof (void *).
35736         * lib/memcmp.c: Include stdint.h.
35737         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
35738         srcp2 to 'const byte *'.
35739         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
35740         types to uintptr_t.
35741         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
35742         * modules/memcmp (Depends-on): Add stdint.
35743         Reported by Ozkan Sezer <sezeroz@gmail.com>.
35744
35745 2009-01-30  Eric Blake  <ebb9@byu.net>
35746
35747         fix more require-before-expand issues
35748         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
35749         expand, AC_PROG_AWK.
35750         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
35751
35752 2009-01-28  Eric Blake  <ebb9@byu.net>
35753
35754         version-etc: use consistent URL formatting
35755         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
35756         Improve formatting.  Use fputs for string without %.
35757
35758 2009-01-28  Jim Meyering  <meyering@redhat.com>
35759
35760         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
35761         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
35762         "underquoted definition of NAME" from autoconf-2.59.
35763
35764 2009-01-28  Bruno Haible  <bruno@clisp.org>
35765
35766         * doc/gnulib.texi: Add "Obsolete modules" to index.
35767
35768 2009-01-28  Jim Meyering  <meyering@redhat.com>
35769
35770         useless-if-before-free: recognize more variants
35771         * build-aux/useless-if-before-free: Also recognize e.g.,
35772         if (NULL != p) free (p);
35773
35774 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
35775
35776         test-getaddrinfo: skip (don't fail) this test when there's no network
35777         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
35778         on the presumption that it means you lack network access.
35779
35780 2009-01-26  Jim Meyering  <meyering@redhat.com>
35781
35782         fflush: avoid warnings on modern systems
35783         * lib/fflush.c (rpl_fflush): Move declarations of locals,
35784         pos and result, into scopes where they're used.
35785
35786 2009-01-26  Eric Blake  <ebb9@byu.net>
35787
35788         Silence warning reintroduced by recent extensions patch.
35789         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
35790         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
35791         autoconf.
35792
35793         Backport improved autoconf semantics of AC_DEFUN_ONCE.
35794         * m4/00gnulib.m4: New file.
35795         * gnulib-tool (func_get_filelist): Always use it.
35796         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
35797         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
35798
35799 2009-01-25  Bruno Haible  <bruno@clisp.org>
35800
35801         Make test-quotearg work on MacOS X and AIX.
35802         * tests/test-quotearg.sh: New file.
35803         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
35804         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
35805         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
35806         include <libintl.h>.
35807         (fake_locale): Remove variable.
35808         (gettext, dgettext, dcgettext): Remove functions.
35809         (main): Instead of setting a fake locale, set a real locale. Call
35810         textdomain and bindtextdomain.
35811         * modules/quotearg-tests (Files): Add the new files.
35812         (Depends-on): Add gettext, setenv, unsetenv.
35813         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35814         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
35815         Augment TESTS_ENVIRONMENT.
35816
35817 2009-01-25  Bruno Haible  <bruno@clisp.org>
35818
35819         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
35820         fr_FR.ISO8859-1 locale on MacOS X.
35821         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
35822         ja_JP.eucJP locale on MacOS X.
35823         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
35824         zh_CN.GB18030 locale on MacOS X.
35825
35826 2009-01-25  Bruno Haible  <bruno@clisp.org>
35827
35828         Avoid link errors on MacOS X 10.3.
35829         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
35830         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35831
35832 2009-01-25  Bruno Haible  <bruno@clisp.org>
35833
35834         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
35835         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
35836         * modules/pipe (Files): Remove m4/posix_spawn.m4.
35837         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
35838         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
35839         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
35840         posix_spawnattr_init, posix_spawnattr_setsigmask,
35841         posix_spawnattr_setflags, posix_spawnattr_destroy.
35842
35843         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
35844         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
35845         * modules/execute (Files): Remove m4/posix_spawn.m4.
35846         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
35847         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
35848         posix_spawnattr_init, posix_spawnattr_setsigmask,
35849         posix_spawnattr_setflags, posix_spawnattr_destroy.
35850
35851 2009-01-25  Bruno Haible  <bruno@clisp.org>
35852
35853         * lib/glthread/threadlib.c: Include <stdlib.h>.
35854
35855 2009-01-25  Bruno Haible  <bruno@clisp.org>
35856
35857         * lib/glthread/threadlib.c (dummy): New declaration.
35858
35859 2009-01-25  Bruno Haible  <bruno@clisp.org>
35860
35861         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
35862         multibyte characters also for the GB18030 encoding. Don't crash when
35863         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
35864
35865 2009-01-25  Bruno Haible  <bruno@clisp.org>
35866
35867         Avoid redefining 'struct random_data' on OSF/1 5.1.
35868         * lib/stdlib.in.h: Include <random.h> if it exists.
35869         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
35870         HAVE_RANDOM_H. Include <random.h> when testing whether
35871         'struct random_data' exists.
35872         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
35873
35874 2009-01-25  Bruno Haible  <bruno@clisp.org>
35875
35876         Don't install charset.alias on MacOS X >= 10.3.
35877         * lib/localcharset.c (DARWIN7): New macro.
35878         (get_charset_aliases): Hardcode the result for Darwin7.
35879         * modules/localcharset (install-exec-local): Don't install
35880         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
35881
35882 2009-01-25  Bruno Haible  <bruno@clisp.org>
35883
35884         Don't install charset.alias on mingw and Cygwin.
35885         * modules/localcharset (install-exec-local): Don't install
35886         charset.alias on mingw and Cygwin, if the file does not yet exist.
35887         The result for these platforms is hardcoded in localcharset.c.
35888
35889 2009-01-25  Bruno Haible  <bruno@clisp.org>
35890
35891         Make it possible again to use AC_GNU_SOURCE together with gnulib.
35892         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
35893         before requiring AC_USE_SYSTEM_EXTENSIONS.
35894
35895 2009-01-25  Jim Meyering  <meyering@redhat.com>
35896
35897         c-strtod: avoid warnings
35898         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
35899         "assignment discards qualifiers from pointer target type" warnings.
35900
35901 2009-01-24  Bruno Haible  <bruno@clisp.org>
35902
35903         Add support for non-UTF-8 locales on MacOS X.
35904         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
35905         canonical encodings. For Darwin 7 and newer, don't map traditional
35906         encodings to UTF-8.
35907         Reported by Vincent Lefevre <vincent@vinc17.org>
35908         at <http://savannah.gnu.org/bugs/?25235>.
35909
35910 2009-01-24  Bruno Haible  <bruno@clisp.org>
35911
35912         * doc/gnulib.texi (Obsolete modules): New section.
35913         Reported by Mike Frysinger <vapier@gentoo.org>.
35914
35915 2009-01-24  Bruno Haible  <bruno@clisp.org>
35916
35917         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
35918         (%.dvi): New rule.
35919
35920 2009-01-24  Bruno Haible  <bruno@clisp.org>
35921
35922         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
35923         Reported by Eric Blake.
35924
35925 2009-01-24  Bruno Haible  <bruno@clisp.org>
35926
35927         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
35928         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
35929         Reported by Gary V. Vaughan <gary@gnu.org>.
35930
35931 2009-01-24  Bruno Haible  <bruno@clisp.org>
35932
35933         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
35934
35935 2009-01-23  Bruno Haible  <bruno@clisp.org>
35936
35937         Make c-strtod, c-strtold usable in libraries.
35938         * lib/c-strtod.c: Include string.h instead of xalloc.h.
35939         (C_STRTOD): Call strdup instead of xstrdup.
35940         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
35941         * modules/c-strtold (Depends-on): Likewise.
35942         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
35943         * NEWS: Mention the change.
35944         Reported by Michael Gold <mgold@ncf.ca>.
35945
35946 2009-01-23  Jim Meyering  <meyering@redhat.com>
35947
35948         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
35949         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
35950         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
35951
35952 2009-01-23  Simon Josefsson  <simon@josefsson.org>
35953
35954         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
35955         GNU CoreUtils.
35956         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
35957         * modules/version-etc (Description): Update.
35958
35959 2009-01-22  Bruno Haible  <bruno@clisp.org>
35960
35961         Cache the C locale object.
35962         * lib/c-strtod.c (c_locale_cache): New variable.
35963         (c_locale): New function.
35964         (C_STRTOD): Use it, and don't call freelocale.
35965         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
35966         Suggested by Paolo Bonzini.
35967
35968 2009-01-21  Bruno Haible  <bruno@clisp.org>
35969
35970         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
35971         conditions other than overflow.
35972
35973 2009-01-21  Bruno Haible  <bruno@clisp.org>
35974
35975         * lib/c-strtod.c: Include errno.h.
35976         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
35977         value from STRTOD_L and STRTOD.
35978
35979 2009-01-21  Bruno Haible  <bruno@clisp.org>
35980         and Jim Meyering  <meyering@redhat.com>
35981
35982         nanosleep: skip configure test (fail it) for apple universal builds
35983         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
35984         universal builds, assume that nanosleep does not work.
35985         * modules/nanosleep (Depends-on): Add multiarch.
35986
35987         mktime: skip configure test (fail it) for apple universal builds
35988         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
35989         universal builds, assume that mktime does not work.
35990         * modules/mktime (Depends-on): Add multiarch.
35991
35992 2009-01-21  Eric Blake  <ebb9@byu.net>
35993
35994         multiarch: avoid expand-before-require warning
35995         * modules/multiarch (configure.ac): Require, rather than expand,
35996         gl_MULTIARCH.
35997         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
35998         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
35999         enforce that all clients require it.  Partial reversion of
36000         2008-12-29 patch.
36001
36002         error: avoid expand-before-require warning
36003         * modules/errno (configure.ac): Require, rather than expand,
36004         gl_HEADER_ERRNO_H.
36005         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
36006         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
36007         enforce that all clients require it.
36008
36009         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
36010         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
36011         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
36012         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
36013
36014 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
36015
36016         Revert:
36017         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36018
36019         regex: do not depend on obsolete modules.
36020         * modules/regex: Remove memcmp and memmove.
36021
36022 2009-01-20  Bruno Haible  <bruno@clisp.org>
36023
36024         Make the 'link' module link on Windows NT 4.
36025         * lib/link.c (_WIN32_WINNT): Don't define.
36026         (CreateHardLinkFuncType): New type.
36027         (CreateHardLinkFunc, initialized): New variables.
36028         (initialize): New function.
36029         (link): Invoke CreateHardLink indirectly through the function pointer.
36030
36031 2009-01-20  Bruno Haible  <bruno@clisp.org>
36032
36033         Fix compilation failure on mingw.
36034         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36035
36036 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36037
36038         * doc/c-strtod.texi: Mention a couple of restrictions.
36039
36040 2009-01-20  Jim Meyering  <meyering@redhat.com>
36041
36042         gettimeofday: move more declarations out of functions
36043         * lib/gettimeofday.c: Move extern declarations of tzset and
36044         gmtime out of containing functions.  Prompted by Bruno Haible.
36045
36046 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36047
36048         regex: do not depend on obsolete modules.
36049         * modules/regex: Remove memcmp and memmove.
36050
36051 2009-01-19  Bruno Haible  <bruno@clisp.org>
36052
36053         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36054         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36055         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36056         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36057         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36058
36059 2009-01-19  Bruno Haible  <bruno@clisp.org>
36060
36061         * tests/test-link.c: Include <errno.h>.
36062         (main): Exit with code 77 when a hard link cannot be created due to
36063         the file system.
36064         * tests/test-link.sh: Skip test when a hard link cannot be created due
36065         to the file system.
36066         Suggested by Eric Blake.
36067
36068 2009-01-19  Martin Lambers  <marlam@marlam.de>
36069
36070         * modules/link-tests: New file.
36071         * tests/test-link.sh: New file.
36072         * tests/test-link.c: New file.
36073
36074 2009-01-19  Eric Blake  <ebb9@byu.net>
36075
36076         doc: mention another function added in cygwin 1.7.0
36077         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36078         Another new function in cygwin 1.7.
36079
36080 2009-01-19  Bruno Haible  <bruno@clisp.org>
36081
36082         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36083         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36084         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36085         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36086         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36087         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36088         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36089         * m4/md4.m4 (gl_MD4): Likewise.
36090         * m4/md5.m4 (gl_MD5): Likewise.
36091         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36092         * m4/sha1.m4 (gl_SHA1): Likewise.
36093         * m4/sha256.m4 (gl_SHA256): Likewise.
36094         * m4/sha512.m4 (gl_SHA512): Likewise.
36095
36096 2009-01-19  Bruno Haible  <bruno@clisp.org>
36097
36098         * modules/uniname/uniname-tests (Depends-on): Add progname.
36099         * tests/uniname/test-uninames.c: Include progname.h.
36100         (main): Call set_program_name.
36101
36102         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36103         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36104         (main): Call set_program_name.
36105
36106         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36107         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36108         (main): Call set_program_name.
36109
36110         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36111         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36112         (main): Call set_program_name.
36113
36114         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36115         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36116         (main): Call set_program_name.
36117
36118         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36119         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36120         (main): Call set_program_name.
36121
36122         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36123         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36124         (main): Call set_program_name.
36125
36126         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36127         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36128         (main): Call set_program_name.
36129
36130         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36131         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36132         (main): Call set_program_name.
36133
36134 2009-01-19  Eric Blake  <ebb9@byu.net>
36135
36136         test-unistd: test previous patch
36137         * tests/test-unistd.c: Test *_FILENO macros.
36138
36139         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36140         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36141         Guarantee a definition.
36142         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36143         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36144         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36145         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36146         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36147         Likewise.
36148         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36149         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36150         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36151         Likewise.
36152         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36153         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36154         (STDERR_FILENO): Likewise.
36155         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36156         (STDERR_FILENO): Likewise.
36157         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36158         (STDERR_FILENO): Likewise.
36159         Reported by Elbert Pol.
36160
36161 2009-01-19  Eric Blake  <ebb9@byu.net>
36162
36163         doc: mention more functions added in cygwin 1.7.0
36164         * doc/posix-functions/abort.texi (abort): Update wording related
36165         to cygwin.
36166         * doc/posix-functions/daylight.texi (daylight): Likewise.
36167         * doc/posix-functions/optarg.texi (optarg): Likewise.
36168         * doc/posix-functions/optarg.texi (opterr): Likewise.
36169         * doc/posix-functions/optarg.texi (optind): Likewise.
36170         * doc/posix-functions/optarg.texi (optopt): Likewise.
36171         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36172         worked in 1.5.x, and was withdrawn in 1.7.
36173         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36174         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36175         cygwin versions.
36176         * doc/posix-functions/perror.texi (perror): Likewise.
36177         * doc/posix-functions/printf.texi (printf): Likewise.
36178         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36179         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36180         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36181         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36182         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36183         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36184         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36185         Likewise.
36186         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36187         Likewise.
36188         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36189         this function.
36190         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36191         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36192         Likewise.
36193         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36194         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36195         * doc/posix-functions/confstr.texi (confstr): Likewise.
36196         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36197         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36198         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36199         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36200         * doc/posix-functions/fputws.texi (fputws): Likewise.
36201         * doc/posix-functions/fwide.texi (fwide): Likewise.
36202         * doc/posix-functions/getwc.texi (getwc): Likewise.
36203         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36204         * doc/posix-functions/putwc.texi (putwc): Likewise.
36205         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36206         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36207         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36208         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36209         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36210         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36211         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36212         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36213         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36214         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36215         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36216
36217 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36218
36219         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36220         * lib/ioctl.c: Include <sys/ioctl.h>.
36221
36222 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36223
36224         * modules/getdate-tests (Depends-on): Add progname.
36225         * tests/test-getdate.c: Use progname module, to avoid link errors
36226         on non-glibc systems.
36227
36228 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36229
36230         * modules/filenamecat-tests (Depends-on): Add progname.
36231         * modules/fstrcmp-tests (Depends-on): Likewise.
36232
36233         * tests/test-filenamecat.c: Use progname module, to avoid link
36234         errors on non-glibc systems.
36235         * tests/test-fstrcmp.c: Likewise.
36236
36237 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36238
36239         gettimeofday: avoid warning: nested extern declaration of 'localtime'
36240         * lib/gettimeofday.c: Move extern declaration out of function.
36241
36242 2009-01-18  Bruno Haible  <bruno@clisp.org>
36243
36244         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
36245         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
36246         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
36247
36248 2009-01-18  Bruno Haible  <bruno@clisp.org>
36249
36250         * lib/strftime.c (MEMPCPY): Remove unused macro.
36251         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
36252
36253 2009-01-18  Martin Lambers  <marlam@marlam.de>
36254
36255         New module 'link'.
36256         * lib/unistd.in.h (link): New declaration.
36257         * lib/link.c: New file.
36258         * m4/link.m4: New file.
36259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
36260         HAVE_LINK.
36261         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
36262         * modules/link: New file.
36263         * doc/posix-functions/link.texi: Mention the new module.
36264
36265 2009-01-18  Bruno Haible  <bruno@clisp.org>
36266
36267         * tests/test-avltree_list.c (main): Call set_program_name.
36268         * tests/test-avltree_oset.c (main): Likewise.
36269         * tests/test-obstack-printf.c: Include progname.h.
36270         (main): Call set_program_name.
36271         * tests/test-quotearg.c: Include progname.h.
36272         (main): Call set_program_name.
36273         * tests/test-xmemdup0.c: Include progname.h.
36274         (main): Call set_program_name.
36275
36276 2009-01-18  Bruno Haible  <bruno@clisp.org>
36277
36278         New module 'alphasort'.
36279         * lib/dirent.in.h (alphasort): New declaration.
36280         * lib/alphasort.c: New file, from glibc with modifications.
36281         * m4/alphasort.m4: New file.
36282         * modules/alphasort: New file.
36283         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
36284         HAVE_ALPHASORT.
36285         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
36286         HAVE_ALPHASORT.
36287         * doc/posix-functions/alphasort.texi: Mention the new module and the
36288         portability problems.
36289
36290 2009-01-18  Bruno Haible  <bruno@clisp.org>
36291
36292         New module 'scandir'.
36293         * lib/dirent.in.h (scandir): New declaration.
36294         * lib/scandir.c: New file, from glibc with modifications.
36295         * m4/scandir.m4: New file.
36296         * modules/scandir: New file.
36297         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
36298         HAVE_SCANDIR.
36299         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
36300         HAVE_SCANDIR.
36301         * doc/posix-functions/scandir.texi: Mention the new module and the
36302         portability problems.
36303
36304 2009-01-17  Bruno Haible  <bruno@clisp.org>
36305
36306         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
36307         Update documentation.
36308         (func_remove_suffix): Escape all dots in the suffix. Update
36309         documentation.
36310         (func_filter_filelist): Update documentation.
36311         Reported by Ralf Wildenhues.
36312
36313 2009-01-17  Bruno Haible  <bruno@clisp.org>
36314
36315         * modules/dprintf-posix-tests: New file.
36316         * tests/test-dprintf-posix.sh: New file.
36317         * tests/test-dprintf-posix.c: New file.
36318
36319         New modules 'dprintf', 'dprintf-posix'.
36320         * lib/stdio.in.h (dprintf): New declaration.
36321         * lib/dprintf.c: New file.
36322         * m4/dprintf.m4: New file.
36323         * m4/dprintf-posix.m4: New file.
36324         * modules/dprintf: New file.
36325         * modules/dprintf-posix: New file.
36326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
36327         HAVE_DPRINTF, REPLACE_DPRINTF.
36328         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36329         HAVE_DPRINTF, REPLACE_DPRINTF.
36330         * doc/posix-functions/dprintf.texi: Mention the new modules.
36331
36332 2009-01-17  Bruno Haible  <bruno@clisp.org>
36333
36334         * modules/vdprintf-posix-tests: New file.
36335         * tests/test-vdprintf-posix.sh: New file.
36336         * tests/test-vdprintf-posix.c: New file.
36337
36338         New modules 'vdprintf', 'vdprintf-posix'.
36339         * lib/stdio.in.h (vdprintf): New declaration.
36340         * lib/vdprintf.c: New file.
36341         * m4/vdprintf.m4: New file.
36342         * m4/vdprintf-posix.m4: New file.
36343         * modules/vdprintf: New file.
36344         * modules/vdprintf-posix: New file.
36345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36346         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36347         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36348         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36349         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36350
36351 2009-01-17  Bruno Haible  <bruno@clisp.org>
36352
36353         Fix replacement of fopen on mingw.
36354         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36355         mingw.
36356
36357 2009-01-17  Bruno Haible  <bruno@clisp.org>
36358
36359         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36360         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36361
36362 2009-01-17  Bruno Haible  <bruno@clisp.org>
36363
36364         Avoid test-fflush2.sh failure on mingw.
36365         * tests/test-fflush2.c: Include binary-io.h.
36366         (main): Put standard input into binary mode.
36367         * modules/fflush-tests (Depends-on): Add binary-io.
36368
36369 2009-01-17  Bruno Haible  <bruno@clisp.org>
36370
36371         * lib/wchar.in.h: In another particular situation, include only the
36372         system's <wchar.h> file.
36373         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36374         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36375         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36376
36377 2009-01-17  Bruno Haible  <bruno@clisp.org>
36378
36379         Support for stripping executables in --enable-relocatable.
36380         * build-aux/install-reloc: Expect one more argument, or an environment
36381         variable RELOC_STRIP_PROG. If set, strip the destination program and
36382         its wrapper.
36383         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36384         RELOC_STRIP_PROG.
36385         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36386         to set RELOCATABLE_STRIP.
36387         * NEWS: Mention the new Makefile requirement.
36388
36389 2009-01-17  Bruno Haible  <bruno@clisp.org>
36390
36391         * build-aux/install-reloc: Remove debugging information left over by
36392         C compiler on MacOS X.
36393
36394 2009-01-17  Bruno Haible  <bruno@clisp.org>
36395
36396         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36397         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36398         _NSGetExecutablePath.
36399
36400 2009-01-16  Jim Meyering  <meyering@redhat.com>
36401
36402         strerror: avoid warnings about discarding "const"
36403         * lib/strerror.c (rpl_strerror): Instead of returning a const
36404         string from each and every "case", use a variable, and add a single
36405         cast after the switch.
36406
36407 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
36408
36409         * lib/arpa_inet.in.h: Add extern "C" block for C++.
36410
36411 2009-01-16  Bruno Haible  <bruno@clisp.org>
36412
36413         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
36414         array initializer syntax that also works in C++ mode.
36415         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36416
36417 2009-01-16  Jim Meyering  <meyering@redhat.com>
36418
36419         poll: suppress a warning
36420         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
36421         to ignore "...unsigned expression < 0 is always false" warnings.
36422
36423 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
36424
36425         poll: remove declarations of unused variables
36426         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
36427         sockbuf and optlen.
36428
36429 2009-01-15  Bruno Haible  <bruno@clisp.org>
36430
36431         Make fflush-after-ungetc POSIX compliant on BSD systems.
36432         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
36433         (clear_ungetc_buffer): Implement also for other systems.
36434         (rpl_fflush): On glibc systems, invoke
36435         clear_ungetc_buffer_preserving_position. Otherwise, invoke
36436         clear_ungetc_buffer after fetching the stream's position, not before.
36437
36438 2009-01-15  Bruno Haible  <bruno@clisp.org>
36439
36440         Make fflush-after-ungetc POSIX compliant on glibc systems.
36441         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
36442         after ungetc.
36443         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
36444         (rpl_fflush): On glibc systems, simply call the system's fflush
36445         function after clearing the ungetc buffer.
36446         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
36447         Instead, lseek only to the end of file, then use the system's fseeko
36448         for the rest. On glibc systems, reset the EOF indicator bit.
36449
36450 2009-01-15  Jim Meyering  <meyering@redhat.com>
36451
36452         openmp.m4: revert quote-adding change, for portability to older autoconf
36453         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
36454         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
36455         Simon Josefsson noticed the problem when using autoconf-2.61.
36456
36457 2009-01-15  Bruno Haible  <bruno@clisp.org>
36458
36459         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
36460         * tests/test-fflush2.c (ASSERT): Always fail.
36461         (main): Add two tests for fflush() after ungetc(), taking into account
36462         the Austin Group's clarification.
36463         Suggested by Eric Blake.
36464
36465 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
36466
36467         mktime.m4: remove K&R-style function prototypes
36468         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
36469         for the Sun C++ compiler.
36470
36471 2009-01-14  Bruno Haible  <bruno@clisp.org>
36472
36473         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
36474         while including <wchar.h>.
36475         * lib/wchar.in.h: In two particular situations on HP-UX, include only
36476         the system's <wchar.h> file.
36477         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36478
36479 2009-01-14  Bruno Haible  <bruno@clisp.org>
36480
36481         * m4/csharp.m4: Don't mention gettext on the serial number line.
36482         * m4/csharpexec.m4: Likewise.
36483         * m4/eaccess.m4: Likewise.
36484         * m4/javaexec.m4: Likewise.
36485         * m4/sig_atomic_t.m4: Likewise.
36486         * m4/tmpdir.m4: Likewise.
36487         * m4/intldir.m4: Bump gettext version.
36488         * m4/lib-ld.m4: Likewise.
36489
36490 2009-01-14  Bruno Haible  <bruno@clisp.org>
36491
36492         * lib/progname.c (set_program_name): Add more comments.
36493         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36494
36495 2009-01-14  Simon Josefsson  <simon@josefsson.org>
36496
36497         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
36498         were sys/stat.h does not define it.
36499
36500 2009-01-14  Jim Meyering  <meyering@redhat.com>
36501
36502         many *.m4 files: improve m4 quoting
36503         99% of this change was performed by running the following commands:
36504         git ls-files | grep '\.m4$' | xargs perl -pi \
36505           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
36506           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36507           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36508           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
36509         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
36510         The remainder were to add Copyright dates, increment serial numbers,
36511         undo some changes in comments, exclude m4/intl.m4, and add quotes
36512         around the "1" in ",1" where the unusual spacing prohibited the
36513         above regexps from doing the job.  For more details, see
36514         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
36515         * m4/acl.m4: Modified.
36516         * m4/afs.m4: Likewise.
36517         * m4/alloca.m4: Likewise.
36518         * m4/argp.m4: Likewise.
36519         * m4/argz.m4: Likewise.
36520         * m4/atexit.m4: Likewise.
36521         * m4/bison-i18n.m4: Likewise.
36522         * m4/bison.m4: Likewise.
36523         * m4/byteswap.m4: Likewise.
36524         * m4/c-stack.m4: Likewise.
36525         * m4/c-strtod.m4: Likewise.
36526         * m4/calloc.m4: Likewise.
36527         * m4/canonicalize-lgpl.m4: Likewise.
36528         * m4/chown.m4: Likewise.
36529         * m4/clock_time.m4: Likewise.
36530         * m4/codeset.m4: Likewise.
36531         * m4/copy-file.m4: Likewise.
36532         * m4/csharp.m4: Likewise.
36533         * m4/csharpcomp.m4: Likewise.
36534         * m4/csharpexec.m4: Likewise.
36535         * m4/d-ino.m4: Likewise.
36536         * m4/d-type.m4: Likewise.
36537         * m4/dirfd.m4: Likewise.
36538         * m4/double-slash-root.m4: Likewise.
36539         * m4/eaccess.m4: Likewise.
36540         * m4/eealloc.m4: Likewise.
36541         * m4/environ.m4: Likewise.
36542         * m4/errno_h.m4: Likewise.
36543         * m4/euidaccess.m4: Likewise.
36544         * m4/execute.m4: Likewise.
36545         * m4/fatal-signal.m4: Likewise.
36546         * m4/fchdir.m4: Likewise.
36547         * m4/fcntl_h.m4: Likewise.
36548         * m4/fileblocks.m4: Likewise.
36549         * m4/filenamecat.m4: Likewise.
36550         * m4/findprog.m4: Likewise.
36551         * m4/flexmember.m4: Likewise.
36552         * m4/fnmatch.m4: Likewise.
36553         * m4/fopen.m4: Likewise.
36554         * m4/fpending.m4: Likewise.
36555         * m4/fprintf-posix.m4: Likewise.
36556         * m4/free.m4: Likewise.
36557         * m4/frexp.m4: Likewise.
36558         * m4/frexpl.m4: Likewise.
36559         * m4/fsusage.m4: Likewise.
36560         * m4/ftruncate.m4: Likewise.
36561         * m4/gc-camellia.m4: Likewise.
36562         * m4/gc-random.m4: Likewise.
36563         * m4/gc.m4: Likewise.
36564         * m4/getaddrinfo.m4: Likewise.
36565         * m4/getcwd-abort-bug.m4: Likewise.
36566         * m4/getcwd-path-max.m4: Likewise.
36567         * m4/getdate.m4: Likewise.
36568         * m4/getdomainname.m4: Likewise.
36569         * m4/getgroups.m4: Likewise.
36570         * m4/gethostname.m4: Likewise.
36571         * m4/gethrxtime.m4: Likewise.
36572         * m4/getline.m4: Likewise.
36573         * m4/getloadavg.m4: Likewise.
36574         * m4/getndelim2.m4: Likewise.
36575         * m4/getpass.m4: Likewise.
36576         * m4/gettext.m4: Likewise.
36577         * m4/gettime.m4: Likewise.
36578         * m4/gettimeofday.m4: Likewise.
36579         * m4/gnulib-common.m4: Likewise.
36580         * m4/group-member.m4: Likewise.
36581         * m4/host-os.m4: Likewise.
36582         * m4/iconv.m4: Likewise.
36583         * m4/iconv_open.m4: Likewise.
36584         * m4/inet_ntop.m4: Likewise.
36585         * m4/inet_pton.m4: Likewise.
36586         * m4/inline.m4: Likewise.
36587         * m4/intldir.m4: Likewise.
36588         * m4/intlmacosx.m4: Likewise.
36589         * m4/intmax.m4: Likewise.
36590         * m4/intmax_t.m4: Likewise.
36591         * m4/inttypes.m4: Likewise.
36592         * m4/inttypes_h.m4: Likewise.
36593         * m4/inttypes-pri.m4: Likewise.
36594         * m4/isapipe.m4: Likewise.
36595         * m4/isnand.m4: Likewise.
36596         * m4/isnanf.m4: Likewise.
36597         * m4/isnanl.m4: Likewise.
36598         * m4/javacomp.m4: Likewise.
36599         * m4/javaexec.m4: Likewise.
36600         * m4/jm-winsz1.m4: Likewise.
36601         * m4/jm-winsz2.m4: Likewise.
36602         * m4/lchown.m4: Likewise.
36603         * m4/lcmessage.m4: Likewise.
36604         * m4/ldexpl.m4: Likewise.
36605         * m4/lib-ld.m4: Likewise.
36606         * m4/lib-link.m4: Likewise.
36607         * m4/libsigsegv.m4: Likewise.
36608         * m4/link-follow.m4: Likewise.
36609         * m4/localcharset.m4: Likewise.
36610         * m4/locale-fr.m4: Likewise.
36611         * m4/locale-ja.m4: Likewise.
36612         * m4/locale-tr.m4: Likewise.
36613         * m4/locale-zh.m4: Likewise.
36614         * m4/lock.m4: Likewise.
36615         * m4/longlong.m4: Likewise.
36616         * m4/ls-mntd-fs.m4: Likewise.
36617         * m4/lstat.m4: Likewise.
36618         * m4/malloc.m4: Likewise.
36619         * m4/mathl.m4: Likewise.
36620         * m4/mbrtowc.m4: Likewise.
36621         * m4/mbstate_t.m4: Likewise.
36622         * m4/mbswidth.m4: Likewise.
36623         * m4/memchr.m4: Likewise.
36624         * m4/memcmp.m4: Likewise.
36625         * m4/memcpy.m4: Likewise.
36626         * m4/memmem.m4: Likewise.
36627         * m4/memmove.m4: Likewise.
36628         * m4/mempcpy.m4: Likewise.
36629         * m4/memrchr.m4: Likewise.
36630         * m4/memset.m4: Likewise.
36631         * m4/minmax.m4: Likewise.
36632         * m4/mkdir-slash.m4: Likewise.
36633         * m4/mkdtemp.m4: Likewise.
36634         * m4/mktime.m4: Likewise.
36635         * m4/mmap-anon.m4: Likewise.
36636         * m4/mountlist.m4: Likewise.
36637         * m4/nanosleep.m4: Likewise.
36638         * m4/nls.m4: Likewise.
36639         * m4/nocrash.m4: Likewise.
36640         * m4/open.m4: Likewise.
36641         * m4/openat.m4: Likewise.
36642         * m4/openmp.m4: Likewise.
36643         * m4/pathmax.m4: Likewise.
36644         * m4/perl.m4: Likewise.
36645         * m4/physmem.m4: Likewise.
36646         * m4/pipe.m4: Likewise.
36647         * m4/po.m4: Likewise.
36648         * m4/poll.m4: Likewise.
36649         * m4/posixtm.m4: Likewise.
36650         * m4/posixver.m4: Likewise.
36651         * m4/printf-frexp.m4: Likewise.
36652         * m4/printf-frexpl.m4: Likewise.
36653         * m4/printf-posix.m4: Likewise.
36654         * m4/printf-posix-rpl.m4: Likewise.
36655         * m4/printf.m4: Likewise.
36656         * m4/progtest.m4: Likewise.
36657         * m4/putenv.m4: Likewise.
36658         * m4/readline.m4: Likewise.
36659         * m4/readlink.m4: Likewise.
36660         * m4/readutmp.m4: Likewise.
36661         * m4/realloc.m4: Likewise.
36662         * m4/regex.m4: Likewise.
36663         * m4/relocatable.m4: Likewise.
36664         * m4/relocatable-lib.m4: Likewise.
36665         * m4/rename-dest-slash.m4: Likewise.
36666         * m4/rename.m4: Likewise.
36667         * m4/rmdir-errno.m4: Likewise.
36668         * m4/rmdir.m4: Likewise.
36669         * m4/roundf.m4: Likewise.
36670         * m4/roundl.m4: Likewise.
36671         * m4/rpmatch.m4: Likewise.
36672         * m4/save-cwd.m4: Likewise.
36673         * m4/selinux-selinux-h.m4: Likewise.
36674         * m4/setenv.m4: Likewise.
36675         * m4/settime.m4: Likewise.
36676         * m4/sig2str.m4: Likewise.
36677         * m4/sig_atomic_t.m4: Likewise.
36678         * m4/signalblocking.m4: Likewise.
36679         * m4/signbit.m4: Likewise.
36680         * m4/sigpipe.m4: Likewise.
36681         * m4/sockets.m4: Likewise.
36682         * m4/sockpfaf.m4: Likewise.
36683         * m4/st_dm_mode.m4: Likewise.
36684         * m4/stat-time.m4: Likewise.
36685         * m4/stdbool.m4: Likewise.
36686         * m4/stdint.m4: Likewise.
36687         * m4/stdint_h.m4: Likewise.
36688         * m4/stpcpy.m4: Likewise.
36689         * m4/stpncpy.m4: Likewise.
36690         * m4/strcase.m4: Likewise.
36691         * m4/strchrnul.m4: Likewise.
36692         * m4/strcspn.m4: Likewise.
36693         * m4/strdup.m4: Likewise.
36694         * m4/strftime.m4: Likewise.
36695         * m4/strndup.m4: Likewise.
36696         * m4/strnlen.m4: Likewise.
36697         * m4/strpbrk.m4: Likewise.
36698         * m4/strptime.m4: Likewise.
36699         * m4/strsep.m4: Likewise.
36700         * m4/strtod.m4: Likewise.
36701         * m4/strtoimax.m4: Likewise.
36702         * m4/strtok_r.m4: Likewise.
36703         * m4/strtol.m4: Likewise.
36704         * m4/strtoll.m4: Likewise.
36705         * m4/strtoul.m4: Likewise.
36706         * m4/strtoull.m4: Likewise.
36707         * m4/strtoumax.m4: Likewise.
36708         * m4/strverscmp.m4: Likewise.
36709         * m4/threadlib.m4: Likewise.
36710         * m4/timegm.m4: Likewise.
36711         * m4/tm_gmtoff.m4: Likewise.
36712         * m4/tmpdir.m4: Likewise.
36713         * m4/tmpfile.m4: Likewise.
36714         * m4/tzset.m4: Likewise.
36715         * m4/uintmax_t.m4: Likewise.
36716         * m4/unlinkdir.m4: Likewise.
36717         * m4/unlocked-io.m4: Likewise.
36718         * m4/uptime.m4: Likewise.
36719         * m4/userspec.m4: Likewise.
36720         * m4/utimbuf.m4: Likewise.
36721         * m4/utime.m4: Likewise.
36722         * m4/utimes-null.m4: Likewise.
36723         * m4/utimes.m4: Likewise.
36724         * m4/vararrays.m4: Likewise.
36725         * m4/vasnprintf.m4: Likewise.
36726         * m4/vfprintf-posix.m4: Likewise.
36727         * m4/vprintf-posix.m4: Likewise.
36728         * m4/wait-process.m4: Likewise.
36729         * m4/wchar_t.m4: Likewise.
36730         * m4/wint_t.m4: Likewise.
36731         * m4/write-any-file.m4: Likewise.
36732         * m4/yield.m4: Likewise.
36733
36734 2009-01-13  Bruno Haible  <bruno@clisp.org>
36735
36736         Avoid test-copy-file.sh failures when ACL support insufficient.
36737         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
36738         TESTS_ENVIRONMENT.
36739         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
36740         Reported by Jim Meyering.
36741
36742 2009-01-13  Bruno Haible  <bruno@clisp.org>
36743
36744         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
36745         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
36746         * modules/unistdio/u8-printf-parse (Files): Likewise.
36747         * modules/unistdio/u32-printf-parse (Files): Likewise.
36748         * modules/unistdio/ulc-printf-parse (Files): Likewise.
36749
36750 2009-01-13  Simon Josefsson  <simon@josefsson.org>
36751
36752         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
36753         and m4/inttypes_h.m4 too.
36754
36755 2009-01-12  Eric Blake  <ebb9@byu.net>
36756
36757         tests: IRIX 6.2 cc can't compile -0.0 into .data
36758         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
36759         rather than at compile-time.
36760         * tests/test-floorl.c (minus_zero): Likewise.
36761         * tests/test-frexpl.c (minus_zero): Likewise.
36762         * tests/test-isnan.c (minus_zerol): Likewise.
36763         * tests/test-isnanl.h (minus_zero): Likewise.
36764         * tests/test-ldexpl.c (minus_zero): Likewise.
36765         * tests/test-roundl.c (minus_zero): Likewise.
36766         * tests/test-signbit.c (minus_zerol): Likewise.
36767         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36768         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36769         * tests/test-truncl.c (minus_zero): Likewise.
36770         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36771         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36772         Reported by Tom G. Christensen and Nelson H. F. Beebe.
36773
36774 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36775
36776         regex: fix glibc bug 9697
36777         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
36778         handling.
36779
36780 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36781
36782         regex: fix glibc bug 697
36783         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
36784         being NULL also if there are no backreferences.
36785
36786 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36787
36788         regex: merge glibc changes
36789         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
36790         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
36791         re_string_skip_chars, re_string_reconstruct): Likewise.
36792         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
36793
36794 2009-01-07  Jim Meyering  <meyering@redhat.com>
36795
36796         poll: filter through cppi
36797         * lib/poll.c: Indent cpp directives to reflect nesting.
36798
36799 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
36800
36801         poll: don't return uninitialized
36802         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
36803
36804 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
36805
36806         avoid compile failure on AIX 6.1
36807         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
36808         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
36809
36810 2009-01-04  Jim Meyering  <meyering@redhat.com>
36811
36812         remove duplicate inclusion of <stdio.h>
36813         * tests/test-fprintf-posix.c: Likewise.
36814         * tests/test-printf-posix.c: Likewise.
36815         * tests/test-snprintf-posix.c: Likewise.
36816         * tests/test-sprintf-posix.c: Likewise.
36817         * tests/test-vasprintf-posix.c: Likewise.
36818         * tests/test-vfprintf-posix.c: Likewise.
36819         * tests/test-vprintf-posix.c: Likewise.
36820         * tests/test-vsnprintf-posix.c: Likewise.
36821         * tests/test-vsprintf-posix.c: Likewise.
36822
36823 2009-01-03  Jim Meyering  <meyering@redhat.com>
36824
36825         gnulib-tool: fix sed-based filtering
36826         * gnulib-tool (func_filter_filelist): Remove extra backslash
36827         in sed_fff_filter definition.
36828
36829 2009-01-02  Jim Meyering  <meyering@redhat.com>
36830
36831         strftime: avoid compilation failure on Solaris 2.6
36832         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
36833         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
36834         Don't #define mbrlen or mbsinit, since now they're guaranteed to
36835         be available.  Reported by Tom G. Christensen.  Details in
36836         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
36837
36838 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36839             Bruno Haible  <bruno@clisp.org>
36840
36841         Speed up gnulib-tool by doing more string processing through shell
36842         built-ins.
36843         * gnulib-tool (fast_func_append): New variable.
36844         (func_remove_prefix, func_remove_suffix): New functions.
36845         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
36846         (func_filter_filelist): New function.
36847         (func_get_dependencies): Use func_remove_suffix instead of sed.
36848         (func_get_automake_snippet): Use func_filter_filelist instead of a
36849         subshell and sed invocation.
36850
36851 2009-01-01  Bruno Haible  <bruno@clisp.org>
36852
36853         Fix a security bug.
36854         * gnulib-tool (func_import, import, update): Don't allow the characters
36855         '"', '$', '`', '\' in macro arguments that become part of commands that
36856         are evaluated.
36857
36858 2009-01-01  Bruno Haible  <bruno@clisp.org>
36859
36860         * gnulib-tool (func_reset_sigpipe): Add more comments.
36861
36862 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36863
36864         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
36865         func_emit_tests_Makefile_am, func_import): Abort loops early if we
36866         already know the answer.
36867
36868 2009-01-01  Jim Meyering  <meyering@redhat.com>
36869
36870         * lib/version-etc.c (version_etc_va): Update copyright year.
36871
36872 2008-12-30  Bruno Haible  <bruno@clisp.org>
36873
36874         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
36875         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
36876         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
36877
36878 2008-12-29  Eric Blake  <ebb9@byu.net>
36879
36880         multiarch: avoid autoconf AC_REQUIRE bug
36881         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
36882         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
36883         2.63 and older.
36884         Reported by Bruno Haible, and analyzed in
36885         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
36886
36887 2008-12-29  Bruno Haible  <bruno@clisp.org>
36888
36889         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
36890         files in subdirectories correctly.
36891         Reported by Ralf Wildenhues.
36892
36893 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36894
36895         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
36896         rather than 'join FILE -', for Solaris join.
36897
36898 2008-12-29  Bruno Haible  <bruno@clisp.org>
36899
36900         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
36901         quoting.
36902         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
36903         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
36904         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
36905         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
36906         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
36907         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
36908         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
36909         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
36910         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
36911         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
36912         * m4/nls.m4 (AM_NLS): Likewise.
36913         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
36914         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
36915         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
36916         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
36917         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
36918         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
36919         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
36920         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
36921         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
36922         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
36923         * m4/xsize.m4 (gl_XSIZE): Likewise.
36924         Suggested by Jim Meyering.
36925
36926 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36927
36928         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
36929         * lib/parse-duration.c: use a switch instead of cascading if's.
36930
36931 2008-12-29  Eric Blake  <ebb9@byu.net>
36932
36933         wchar.h: supply WEOF on Irix 5.3
36934         * lib/wchar.in.h (wint_t): Also supply WEOF.
36935         * lib/wctype.in.h (wint_t): Likewise.
36936         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
36937         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
36938         Reported by Tom G. Christensen.
36939
36940 2008-12-26  Bruno Haible  <bruno@clisp.org>
36941
36942         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
36943         i486, i586, i686.
36944
36945 2008-12-26  Bruno Haible  <bruno@clisp.org>
36946
36947         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
36948
36949 2008-12-26  Bruno Haible  <bruno@clisp.org>
36950
36951         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
36952         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
36953         not __STDC_CONSTANT_MACROS.
36954         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36955
36956 2008-12-25  Bruno Haible  <bruno@clisp.org>
36957
36958         Add support for universal builds to vasnprintf.
36959         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
36960         universal builds, guess no.
36961         * modules/vasnprintf-posix (Depends-on): Add multiarch.
36962         * modules/vasprintf-posix (Depends-on): Likewise.
36963         * modules/fprintf-posix (Depends-on): Likewise.
36964         * modules/vfprintf-posix (Depends-on): Likewise.
36965         * modules/snprintf-posix (Depends-on): Likewise.
36966         * modules/vsnprintf-posix (Depends-on): Likewise.
36967         * modules/sprintf-posix (Depends-on): Likewise.
36968         * modules/vsprintf-posix (Depends-on): Likewise.
36969         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36970         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36971         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36972         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36973         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36974         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36975         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36976
36977         Add support for universal builds to <inttypes.h>.
36978         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
36979         _SCNu64_PREFIX): In Apple
36980         universal builds, define directly, using _LP64.
36981         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
36982         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
36983         * modules/inttypes (Depends-on): Add multiarch.
36984         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36985
36986         Add support for universal builds to <stdint.h>.
36987         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
36988         universal builds, define directly, using _LP64.
36989         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
36990         Apple universal builds, don't test for the size and suffix of ptrdiff_t
36991         and size_t.
36992         * modules/stdint (Depends-on): Add multiarch.
36993         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36994
36995         New module 'multiarch'.
36996         * modules/multiarch: New file.
36997         * m4/multiarch.m4: New file.
36998
36999 2008-12-25  Bruno Haible  <bruno@clisp.org>
37000
37001         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
37002
37003 2008-12-25  Bruno Haible  <bruno@clisp.org>
37004
37005         * modules/btowc (License): Relicense under LGPLv2+.
37006         * modules/mbsinit (License): Likewise.
37007         * modules/mbrtowc (License): Likewise.
37008         * modules/wcrtomb (License): Likewise.
37009         * modules/streq (License): Likewise.
37010         Reported by David Lutterkort <lutter@redhat.com>.
37011
37012 2008-12-23  Bruno Haible  <bruno@clisp.org>
37013
37014         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
37015
37016 2008-12-23  Bruno Haible  <bruno@clisp.org>
37017
37018         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37019         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37020         GETADDRINFO_LIB, not in LIBS.
37021         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37022         * modules/canon-host (Link): Likewise.
37023         * NEWS: Mention the change.
37024         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37025         GETADDRINFO_LIB.
37026
37027 2008-12-22  Bruno Haible  <bruno@clisp.org>
37028
37029         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37030         * doc/posix-functions/iswalpha_l.texi: Likewise.
37031         * doc/posix-functions/iswblank_l.texi: Likewise.
37032         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37033         * doc/posix-functions/iswctype_l.texi: Likewise.
37034         * doc/posix-functions/iswdigit_l.texi: Likewise.
37035         * doc/posix-functions/iswgraph_l.texi: Likewise.
37036         * doc/posix-functions/iswlower_l.texi: Likewise.
37037         * doc/posix-functions/iswprint_l.texi: Likewise.
37038         * doc/posix-functions/iswpunct_l.texi: Likewise.
37039         * doc/posix-functions/iswspace_l.texi: Likewise.
37040         * doc/posix-functions/iswupper_l.texi: Likewise.
37041         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37042         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37043         * doc/posix-functions/open_wmemstream.texi: Likewise.
37044         * doc/posix-functions/swscanf.texi: Likewise.
37045         * doc/posix-functions/towctrans_l.texi: Likewise.
37046         * doc/posix-functions/towlower.texi: Likewise.
37047         * doc/posix-functions/towlower_l.texi: Likewise.
37048         * doc/posix-functions/towupper.texi: Likewise.
37049         * doc/posix-functions/towupper_l.texi: Likewise.
37050         * doc/posix-functions/vfwprintf.texi: Likewise.
37051         * doc/posix-functions/vfwscanf.texi: Likewise.
37052         * doc/posix-functions/vswscanf.texi: Likewise.
37053         * doc/posix-functions/vwprintf.texi: Likewise.
37054         * doc/posix-functions/vwscanf.texi: Likewise.
37055         * doc/posix-functions/wcpcpy.texi: Likewise.
37056         * doc/posix-functions/wcpncpy.texi: Likewise.
37057         * doc/posix-functions/wcscasecmp.texi: Likewise.
37058         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37059         * doc/posix-functions/wcscoll_l.texi: Likewise.
37060         * doc/posix-functions/wcsdup.texi: Likewise.
37061         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37062         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37063         * doc/posix-functions/wcsnlen.texi: Likewise.
37064         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37065         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37066         * doc/posix-functions/wctrans_l.texi: Likewise.
37067         * doc/posix-functions/wctype_l.texi: Likewise.
37068         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37069         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37070         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37071         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37072         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37073         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37074         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37075         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37076         * doc/glibc-functions/wcschrnul.texi: Likewise.
37077         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37078         * doc/glibc-functions/wcstod_l.texi: Likewise.
37079         * doc/glibc-functions/wcstof_l.texi: Likewise.
37080         * doc/glibc-functions/wcstol_l.texi: Likewise.
37081         * doc/glibc-functions/wcstold_l.texi: Likewise.
37082         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37083         * doc/glibc-functions/wcstoq.texi: Likewise.
37084         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37085         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37086         * doc/glibc-functions/wcstouq.texi: Likewise.
37087         * doc/glibc-functions/wmempcpy.texi: Likewise.
37088
37089 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37090             Eric Blake  <ebb9@byu.net>
37091             Paolo Bonzini  <bonzini@gnu.org>
37092             Bruno Haible  <bruno@clisp.org>
37093
37094         Make c-stack work on Haiku.
37095         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37096         (c_stack_action): Use SA_ONSTACK flag.
37097
37098 2008-12-22  Bruno Haible  <bruno@clisp.org>
37099
37100         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37101
37102 2008-12-22  Bruno Haible  <bruno@clisp.org>
37103
37104         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37105         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37106         being overridden.
37107         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37108         New macros.
37109         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37110         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37111         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37112         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37113
37114 2008-12-22  Bruno Haible  <bruno@clisp.org>
37115
37116         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37117         from test code.
37118
37119 2008-12-22  Eric Blake  <ebb9@byu.net>
37120
37121         Avoid gcc warnings on cygwin.
37122         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37123         Avoid unused variable.
37124         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37125         Likewise.
37126
37127 2008-12-22  Bruno Haible  <bruno@clisp.org>
37128
37129         Remove HAVE_MBRTOWC conditionals.
37130         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37131         (mbscasecmp): Assume mbrtowc function.
37132         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37133         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37134         * lib/mbschr.c: Include mbuiter.h unconditionally.
37135         (mbschr): Assume mbrtowc function.
37136         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37137         (mbscspn): Assume mbrtowc function.
37138         * lib/mbslen.c: Include mbuiter.h unconditionally.
37139         (mbslen): Assume mbrtowc function.
37140         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37141         (mbsncasecmp): Assume mbrtowc function.
37142         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37143         (mbsnlen): Assume mbrtowc function.
37144         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37145         (mbspbrk): Assume mbrtowc function.
37146         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37147         (mbspcasecmp): Assume mbrtowc function.
37148         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37149         (mbsrchr): Assume mbrtowc function.
37150         * lib/mbssep.c: Include mbuiter.h unconditionally.
37151         (mbssep): Assume mbrtowc function.
37152         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37153         (mbsspn): Assume mbrtowc function.
37154         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37155         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37156         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37157         (mbstok_r): Assume mbrtowc function.
37158         * lib/propername.c: Include mbuiter.h unconditionally.
37159         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37160         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37161         (trim2): Assume mbrtowc function.
37162         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37163         (mbsnwidth): Assume mbrtowc function.
37164         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37165         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37166         fallback definitions.
37167         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37168
37169 2008-12-22  Bruno Haible  <bruno@clisp.org>
37170
37171         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37172
37173 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37174
37175         * modules/regex: Request emulations for the mb*/wc* functions we need.
37176         * m4/regex.m4: Don't look for those functions here.
37177         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37178
37179 2008-12-22  Bruno Haible  <bruno@clisp.org>
37180
37181         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37182
37183 2008-12-21  Bruno Haible  <bruno@clisp.org>
37184
37185         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37186         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37187         (Include): Remove conditionalization.
37188         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37189         (Include): Remove conditionalization.
37190         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37191         (Include): Remove conditionalization.
37192         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37193         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37194         * NEWS: Mention the change.
37195         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37196         via Sergey Poznyakoff <gray@gnu.org.ua>.
37197
37198 2008-12-21  Bruno Haible  <bruno@clisp.org>
37199
37200         * MODULES.html.sh (Extended multibyte and wide character utilities
37201         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37202         wcrtomb, wcsrtombs.
37203         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37204         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37205         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37206         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37207
37208 2008-12-21  Bruno Haible  <bruno@clisp.org>
37209
37210         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37211
37212 2008-12-21  Bruno Haible  <bruno@clisp.org>
37213
37214         * modules/wcsnrtombs-tests: New file.
37215         * tests/test-wcsnrtombs1.sh: New file.
37216         * tests/test-wcsnrtombs2.sh: New file.
37217         * tests/test-wcsnrtombs3.sh: New file.
37218         * tests/test-wcsnrtombs4.sh: New file.
37219         * tests/test-wcsnrtombs.c: New file.
37220
37221         New module 'wcsnrtombs'.
37222         * lib/wchar.in.h (wcsnrtombs): New declaration.
37223         * lib/wcsnrtombs.c: New file.
37224         * lib/wcsrtombs-state.c: New file.
37225         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37226         (internal_state): Remove variable.
37227         * m4/wcsnrtombs.m4: New file.
37228         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37229         compilation units.
37230         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37231         HAVE_WCSNRTOMBS.
37232         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37233         HAVE_WCSNRTOMBS.
37234         * modules/wcsnrtombs: New file.
37235         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37236         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
37237
37238 2008-12-21  Bruno Haible  <bruno@clisp.org>
37239
37240         * modules/wcsrtombs-tests: New file.
37241         * tests/test-wcsrtombs1.sh: New file.
37242         * tests/test-wcsrtombs2.sh: New file.
37243         * tests/test-wcsrtombs3.sh: New file.
37244         * tests/test-wcsrtombs4.sh: New file.
37245         * tests/test-wcsrtombs.c: New file.
37246
37247         New module 'wcsrtombs'.
37248         * lib/wchar.in.h (wcsrtombs): New declaration.
37249         * lib/wcsrtombs.c: New file.
37250         * m4/wcsrtombs.m4: New file.
37251         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
37252         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37253         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
37254         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37255         * modules/wcsrtombs: New file.
37256         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
37257         bugs.
37258
37259 2008-12-21  Bruno Haible  <bruno@clisp.org>
37260
37261         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
37262         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
37263         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
37264         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
37265         if not correct.
37266         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
37267         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
37268         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37269         m4/locale-zh.m4, m4/codeset.m4.
37270         * doc/posix-functions/wcrtomb.texi: Document the bug.
37271
37272 2008-12-21  Bruno Haible  <bruno@clisp.org>
37273
37274         Work around a btowc() bug on IRIX 6.5.
37275         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
37276         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
37277         REPLACE_WTOBC if not.
37278         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
37279         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
37280         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
37281
37282 2008-12-21  Bruno Haible  <bruno@clisp.org>
37283
37284         * modules/wcrtomb-tests: New file.
37285         * tests/test-wcrtomb.sh: New file.
37286         * tests/test-wcrtomb.c: New file.
37287
37288         New module 'wcrtomb'.
37289         * lib/wchar.in.h (wcrtomb): New declaration.
37290         * lib/wcrtomb.c: New file.
37291         * m4/wcrtomb.m4: New file.
37292         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
37293         HAVE_WCRTOMB.
37294         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
37295         HAVE_WCRTOMB.
37296         * modules/wcrtomb: New file.
37297         * doc/posix-functions/wcrtomb.texi: Mention the new module.
37298
37299 2008-12-21  Bruno Haible  <bruno@clisp.org>
37300
37301         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
37302         * modules/mbsrtowcs (Files): Likewise.
37303         * modules/wctob (Files): Likewise.
37304         * modules/c-strcase-tests (Files): Likewise.
37305         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37306         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37307         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37308         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37309         * modules/vasnprintf-posix-tests (Files): Likewise.
37310
37311 2008-12-21  William Pursell  <bill.pursell@gmail.com>
37312
37313         gitlog-to-changelog: pass all command-line arguments to git-log
37314         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
37315         it is sometimes convenient to filter the commits in various ways.
37316         gitlog-to-changelog only allows --since to specify a start date,
37317         but git-log itself supports many other filtering mechanisms.
37318         At the moment, I want to filter by branch name.  Rather than
37319         adding a --branch option to gitlog-to-changelog, it seems more
37320         flexible to simply pass all options directly to git-log and let
37321         git do the work.  Notice that this effectively makes --since a
37322         redundant option for gitlog-to-changelog, but removing it would
37323         require current usage to change since calls would then require
37324         an additional '--'.
37325
37326 2008-12-21  Bruno Haible  <bruno@clisp.org>
37327
37328         * modules/mbsnrtowcs-tests: New file.
37329         * tests/test-mbsnrtowcs1.sh: New file.
37330         * tests/test-mbsnrtowcs2.sh: New file.
37331         * tests/test-mbsnrtowcs3.sh: New file.
37332         * tests/test-mbsnrtowcs4.sh: New file.
37333         * tests/test-mbsnrtowcs.c: New file.
37334
37335         New module 'mbsnrtowcs'.
37336         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37337         * lib/mbsnrtowcs.c: New file.
37338         * lib/mbsrtowcs-state.c: New file.
37339         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37340         (internal_state): Remove variable.
37341         * m4/mbsnrtowcs.m4: New file.
37342         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37343         compilation units.
37344         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37345         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37346         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37347         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37348         * modules/mbsnrtowcs: New file.
37349         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37350         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37351         portability problem.
37352
37353 2008-12-21  Bruno Haible  <bruno@clisp.org>
37354
37355         Work around mbsrtowcs bug.
37356         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37357         (gl_FUNC_MBSRTOWCS): Invoke it.
37358         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37359         m4/locale-zh.m4.
37360         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37361
37362 2008-12-21  Bruno Haible  <bruno@clisp.org>
37363
37364         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37365
37366 2008-12-21  Bruno Haible  <bruno@clisp.org>
37367
37368         Update doc for AIX.
37369         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37370         16-bit wchar_t type.
37371         * doc/posix-functions/btowc.texi: Likewise.
37372         * doc/posix-functions/fgetwc.texi: Likewise.
37373         * doc/posix-functions/fgetws.texi: Likewise.
37374         * doc/posix-functions/fputwc.texi: Likewise.
37375         * doc/posix-functions/fputws.texi: Likewise.
37376         * doc/posix-functions/fwide.texi: Likewise.
37377         * doc/posix-functions/fwprintf.texi: Likewise.
37378         * doc/posix-functions/fwscanf.texi: Likewise.
37379         * doc/posix-functions/getwchar.texi: Likewise.
37380         * doc/posix-functions/getwc.texi: Likewise.
37381         * doc/posix-functions/iswalnum.texi: Likewise.
37382         * doc/posix-functions/iswalpha.texi: Likewise.
37383         * doc/posix-functions/iswblank.texi: Likewise.
37384         * doc/posix-functions/iswcntrl.texi: Likewise.
37385         * doc/posix-functions/iswctype.texi: Likewise.
37386         * doc/posix-functions/iswdigit.texi: Likewise.
37387         * doc/posix-functions/iswgraph.texi: Likewise.
37388         * doc/posix-functions/iswlower.texi: Likewise.
37389         * doc/posix-functions/iswprint.texi: Likewise.
37390         * doc/posix-functions/iswpunct.texi: Likewise.
37391         * doc/posix-functions/iswspace.texi: Likewise.
37392         * doc/posix-functions/iswupper.texi: Likewise.
37393         * doc/posix-functions/iswxdigit.texi: Likewise.
37394         * doc/posix-functions/mbrtowc.texi: Likewise.
37395         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37396         * doc/posix-functions/mbstowcs.texi: Likewise.
37397         * doc/posix-functions/mbtowc.texi: Likewise.
37398         * doc/posix-functions/putwchar.texi: Likewise.
37399         * doc/posix-functions/putwc.texi: Likewise.
37400         * doc/posix-functions/swprintf.texi: Likewise.
37401         * doc/posix-functions/tolower.texi: Likewise.
37402         * doc/posix-functions/toupper.texi: Likewise.
37403         * doc/posix-functions/towctrans.texi: Likewise.
37404         * doc/posix-functions/ungetwc.texi: Likewise.
37405         * doc/posix-functions/vswprintf.texi: Likewise.
37406         * doc/posix-functions/wcrtomb.texi: Likewise.
37407         * doc/posix-functions/wcscat.texi: Likewise.
37408         * doc/posix-functions/wcschr.texi: Likewise.
37409         * doc/posix-functions/wcscmp.texi: Likewise.
37410         * doc/posix-functions/wcscoll.texi: Likewise.
37411         * doc/posix-functions/wcscpy.texi: Likewise.
37412         * doc/posix-functions/wcscspn.texi: Likewise.
37413         * doc/posix-functions/wcsftime.texi: Likewise.
37414         * doc/posix-functions/wcslen.texi: Likewise.
37415         * doc/posix-functions/wcsncat.texi: Likewise.
37416         * doc/posix-functions/wcsncmp.texi: Likewise.
37417         * doc/posix-functions/wcsncpy.texi: Likewise.
37418         * doc/posix-functions/wcspbrk.texi: Likewise.
37419         * doc/posix-functions/wcsrchr.texi: Likewise.
37420         * doc/posix-functions/wcsrtombs.texi: Likewise.
37421         * doc/posix-functions/wcsspn.texi: Likewise.
37422         * doc/posix-functions/wcsstr.texi: Likewise.
37423         * doc/posix-functions/wcstod.texi: Likewise.
37424         * doc/posix-functions/wcstof.texi: Likewise.
37425         * doc/posix-functions/wcstoimax.texi: Likewise.
37426         * doc/posix-functions/wcstok.texi: Likewise.
37427         * doc/posix-functions/wcstold.texi: Likewise.
37428         * doc/posix-functions/wcstoll.texi: Likewise.
37429         * doc/posix-functions/wcstol.texi: Likewise.
37430         * doc/posix-functions/wcstombs.texi: Likewise.
37431         * doc/posix-functions/wcstoull.texi: Likewise.
37432         * doc/posix-functions/wcstoul.texi: Likewise.
37433         * doc/posix-functions/wcstoumax.texi: Likewise.
37434         * doc/posix-functions/wcswidth.texi: Likewise.
37435         * doc/posix-functions/wcsxfrm.texi: Likewise.
37436         * doc/posix-functions/wctob.texi: Likewise.
37437         * doc/posix-functions/wctomb.texi: Likewise.
37438         * doc/posix-functions/wctrans.texi: Likewise.
37439         * doc/posix-functions/wctype.texi: Likewise.
37440         * doc/posix-functions/wcwidth.texi: Likewise.
37441         * doc/posix-functions/wmemchr.texi: Likewise.
37442         * doc/posix-functions/wmemcmp.texi: Likewise.
37443         * doc/posix-functions/wmemcpy.texi: Likewise.
37444         * doc/posix-functions/wmemmove.texi: Likewise.
37445         * doc/posix-functions/wmemset.texi: Likewise.
37446         * doc/posix-functions/wprintf.texi: Likewise.
37447         * doc/posix-functions/wscanf.texi: Likewise.
37448
37449 2008-12-21  Bruno Haible  <bruno@clisp.org>
37450
37451         Update doc for HP-UX 11.11.
37452         * doc/posix-functions/btowc.texi: Clarify that the function is missing
37453         in HP-UX version 11.00, not in all versions of HP-UX 11.
37454         * doc/posix-functions/fwide.texi: Likewise.
37455         * doc/posix-functions/fwprintf.texi: Likewise.
37456         * doc/posix-functions/fwscanf.texi: Likewise.
37457         * doc/posix-functions/inet_ntop.texi: Likewise.
37458         * doc/posix-functions/inet_pton.texi: Likewise.
37459         * doc/posix-functions/mbrlen.texi: Likewise.
37460         * doc/posix-functions/mbrtowc.texi: Likewise.
37461         * doc/posix-functions/mbsinit.texi: Likewise.
37462         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37463         * doc/posix-functions/swprintf.texi: Likewise.
37464         * doc/posix-functions/swscanf.texi: Likewise.
37465         * doc/posix-functions/towctrans.texi: Likewise.
37466         * doc/posix-functions/vfwprintf.texi: Likewise.
37467         * doc/posix-functions/vswprintf.texi: Likewise.
37468         * doc/posix-functions/vwprintf.texi: Likewise.
37469         * doc/posix-functions/wcrtomb.texi: Likewise.
37470         * doc/posix-functions/wcsrtombs.texi: Likewise.
37471         * doc/posix-functions/wcsstr.texi: Likewise.
37472         * doc/posix-functions/wctob.texi: Likewise.
37473         * doc/posix-functions/wctrans.texi: Likewise.
37474         * doc/posix-functions/wmemchr.texi: Likewise.
37475         * doc/posix-functions/wmemcmp.texi: Likewise.
37476         * doc/posix-functions/wmemcpy.texi: Likewise.
37477         * doc/posix-functions/wmemmove.texi: Likewise.
37478         * doc/posix-functions/wmemset.texi: Likewise.
37479         * doc/posix-functions/wprintf.texi: Likewise.
37480         * doc/posix-functions/wscanf.texi: Likewise.
37481
37482 2008-12-21  Bruno Haible  <bruno@clisp.org>
37483
37484         Work around a portability problem.
37485         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
37486         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
37487
37488 2008-12-20  Bruno Haible  <bruno@clisp.org>
37489
37490         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
37491         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
37492         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
37493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
37494         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
37495
37496         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
37497         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
37498         set.
37499         (GNULIB_defined_mbstate_t): New macro.
37500         (mbsinit): Redefine if REPLACE_MBSINIT is set.
37501         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
37502         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
37503         reuses the system's mbrtowc function but works around the bugs.
37504         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
37505         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
37506         macros.
37507         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
37508         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
37509         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
37510         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
37511         REPLACE_MBSINIT if mbsinit needs to be overridden.
37512         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
37513         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37514         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
37515         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37516         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37517         m4/locale-zh.m4.
37518         (Depends): Add mbsinit.
37519         * modules/mbsinit (Depends): Add mbrtowc.
37520         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
37521
37522 2008-12-20  Bruno Haible  <bruno@clisp.org>
37523
37524         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
37525         so that there are no conversion errors on AIX.
37526         * tests/test-mbsrtowcs.c (main): LIkewise.
37527
37528 2008-12-20  Bruno Haible  <bruno@clisp.org>
37529
37530         Work around wctob bug on Solaris <= 9.
37531         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
37532         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
37533         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
37534         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
37535         * modules/wctob (Files): Add m4/locale-fr.m4.
37536         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
37537
37538 2008-12-20  Bruno Haible  <bruno@clisp.org>
37539
37540         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
37541         /dev/null.
37542         * tests/test-select-in.sh: Likewise.
37543         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37544
37545 2008-12-20  Bruno Haible  <bruno@clisp.org>
37546
37547         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
37548         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
37549         Cygwin 1.5.x.
37550
37551 2008-12-20  Bruno Haible  <bruno@clisp.org>
37552
37553         Ensure mbstate_t is defined on HP-UX 11.11.
37554         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
37555         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
37556         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
37557         AC_USE_SYSTEM_EXTENSIONS.
37558         * modules/fnmatch (Depends-on): Add extensions.
37559         * modules/mbrlen (Depends-on): Likewise.
37560         * modules/mbrtowc (Depends-on): Likewise.
37561         * modules/mbsinit (Depends-on): Likewise.
37562         * modules/mbsrtowcs (Depends-on): Likewise.
37563         * modules/mbswidth (Depends-on): Likewise.
37564         * modules/quotearg (Depends-on): Likewise.
37565         * modules/strftime (Depends-on): Likewise.
37566
37567 2008-12-20  Bruno Haible  <bruno@clisp.org>
37568
37569         Ensure wctob is declared on IRIX 6.5.
37570         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
37571         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
37572         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
37573         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
37574         of HAVE_WCTOB.
37575         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
37576         HAVE_WCTOB.
37577         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
37578
37579 2008-12-19  Bruno Haible  <bruno@clisp.org>
37580
37581         * modules/mbsrtowcs-tests: New file.
37582         * tests/test-mbsrtowcs1.sh: New file.
37583         * tests/test-mbsrtowcs2.sh: New file.
37584         * tests/test-mbsrtowcs3.sh: New file.
37585         * tests/test-mbsrtowcs4.sh: New file.
37586         * tests/test-mbsrtowcs.c: New file.
37587
37588         New module 'mbsrtowcs'.
37589         * lib/wchar.in.h (mbsrtowcs): New declaration.
37590         * lib/mbsrtowcs.c: New file.
37591         * m4/mbsrtowcs.m4: New file.
37592         * modules/mbsrtowcs: New file.
37593         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
37594         HAVE_MBSRTOWCS.
37595         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
37596         HAVE_MBSRTOWCS.
37597         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
37598
37599 2008-12-19  Bruno Haible  <bruno@clisp.org>
37600
37601         New module 'mbrlen'.
37602         * lib/wchar.in.h (mbrlen): New declaration.
37603         * lib/mbrlen.c: New file.
37604         * m4/mbrlen.m4: New file.
37605         * modules/mbrlen: New file.
37606         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
37607         HAVE_MBRLEN.
37608         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
37609         HAVE_MBRLEN.
37610         * doc/posix-functions/mbrlen.texi: Document the new module.
37611
37612 2008-12-19  Bruno Haible  <bruno@clisp.org>
37613
37614         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
37615         * modules/mbrtowc (Depends-on): Add verify.
37616         Suggested by Paul Eggert.
37617
37618 2008-12-18  Bruno Haible  <bruno@clisp.org>
37619
37620         * modules/mbsinit-tests: New file.
37621         * tests/test-mbsinit.sh: New file.
37622         * tests/test-mbsinit.c: New file.
37623
37624 2008-12-18  Bruno Haible  <bruno@clisp.org>
37625
37626         * modules/mbrtowc-tests: New file.
37627         * tests/test-mbrtowc1.sh: New file.
37628         * tests/test-mbrtowc2.sh: New file.
37629         * tests/test-mbrtowc3.sh: New file.
37630         * tests/test-mbrtowc4.sh: New file.
37631         * tests/test-mbrtowc.c: New file.
37632
37633         New module 'mbrtowc'.
37634         * lib/wchar.in.h (mbstate_t): Override when the system does not have
37635         mbsinit and mbrtowc.
37636         (mbrtowc): New declaration.
37637         * lib/mbrtowc.c: New file.
37638         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
37639         * modules/mbrtowc: New file.
37640         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
37641         HAVE_MBRTOWC.
37642         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
37643         HAVE_MBRTOWC.
37644         * doc/posix-functions/mbrtowc.texi: Document the new module.
37645
37646 2008-12-18  Bruno Haible  <bruno@clisp.org>
37647
37648         New module 'wctob'.
37649         * lib/wchar.in.h (wctob): New declaration.
37650         * lib/wctob.c: New file.
37651         * m4/wctob.m4: New file.
37652         * modules/wctob: New file.
37653         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
37654         HAVE_WCTOB.
37655         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
37656         * doc/posix-functions/wctob.texi: Document the new module.
37657
37658 2008-12-18  Bruno Haible  <bruno@clisp.org>
37659
37660         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
37661         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
37662
37663 2008-12-18  Simon Josefsson  <simon@josefsson.org>
37664
37665         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
37666         G. Christensen" <tgc@jupiterrise.com>.
37667
37668         * lib/flock.c: Need to include errno.h.  Reported by "Tom
37669         G. Christensen" <tgc@jupiterrise.com>.
37670
37671         * lib/flock.c: Need to include string.h.  Reported by "Tom
37672         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
37673         <ebb9@byu.net>.
37674
37675 2008-12-18  Bruno Haible  <bruno@clisp.org>
37676
37677         * m4/locale-ja.m4: New file, from GNU gettext.
37678
37679 2008-12-17  Bruno Haible  <bruno@clisp.org>
37680
37681         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
37682         Suggested by Eric Blake.
37683
37684 2008-12-17  Bruno Haible  <bruno@clisp.org>
37685
37686         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
37687
37688 2008-12-17  Bruno Haible  <bruno@clisp.org>
37689
37690         * lib/mbsinit.c: Include verify.h. Verify an assumption.
37691         * modules/mbsinit (Depends-on): Add verify.
37692         Suggested by Paul Eggert.
37693
37694 2008-12-17  Bruno Haible  <bruno@clisp.org>
37695
37696         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
37697         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
37698         gl_FUNC_MBRTOWC.
37699         * m4/mbiter.m4 (gl_MBITER): LIkewise.
37700         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
37701         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
37702         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
37703         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
37704         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
37705         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
37706         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
37707         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
37708         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
37709         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
37710         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
37711         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
37712         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
37713         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
37714         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37715         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
37716         * modules/trim (configure.ac): Likewise.
37717
37718 2008-12-17  Bruno Haible  <bruno@clisp.org>
37719
37720         * modules/btowc-tests: New file.
37721         * tests/test-btowc1.sh: New file.
37722         * tests/test-btowc2.sh: New file.
37723         * tests/test-btowc.c: New file.
37724
37725         New module 'btowc'.
37726         * lib/wchar.in.h (btowc): New declaration.
37727         * lib/btowc.c: New file.
37728         * m4/btowc.m4: New file.
37729         * modules/btowc: New file.
37730         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
37731         HAVE_BTOWC.
37732         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
37733         * doc/posix-functions/btowc.texi: Document the new module.
37734
37735 2008-12-17  Bruno Haible  <bruno@clisp.org>
37736
37737         New module 'mbsinit'.
37738         * lib/wchar.in.h (mbsinit): New declaration.
37739         * lib/mbsinit.c: New file.
37740         * m4/mbsinit.m4: New file.
37741         * modules/mbsinit: New file.
37742         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
37743         HAVE_MBSINIT.
37744         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
37745         HAVE_MBSINIT.
37746         * doc/posix-functions/mbsinit.texi: Document the new module.
37747
37748 2008-12-16  Bruno Haible  <bruno@clisp.org>
37749
37750         * lib/unistd.in.h: Add comment.
37751         * tests/test-environ.c: Don't include <stdlib.h>.
37752
37753 2008-12-16  Bruno Haible  <bruno@clisp.org>
37754
37755         * lib/parse-duration.h (parse_duration): Document return value
37756         convention.
37757         * lib/parse-duration.c: Include specification header first. Add
37758         comments.
37759         (_): Remove macro.
37760         (parse_year_month_day, parse_hour_minute_second): Move side effects
37761         outside of strchr call.
37762         (parse_non_iso8601): Move side effects outside of isspace call.
37763         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
37764         call.
37765
37766 2008-12-16  Bruno Haible  <bruno@clisp.org>
37767
37768         * tests/test-parse-duration.sh: Produce no output when the test
37769         succeeds.
37770
37771 2008-12-16  Bruno Haible  <bruno@clisp.org>
37772
37773         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
37774         expressions.
37775
37776 2008-12-15  Bruno Haible  <bruno@clisp.org>
37777
37778         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
37779         * doc/glibc-functions/flistxattr.texi: Likewise.
37780         * doc/glibc-functions/fopencookie.texi: Likewise.
37781         * doc/glibc-functions/fremovexattr.texi: Likewise.
37782         * doc/glibc-functions/fsetxattr.texi: Likewise.
37783         * doc/glibc-functions/getxattr.texi: Likewise.
37784         * doc/glibc-functions/lgetxattr.texi: Likewise.
37785         * doc/glibc-functions/listxattr.texi: Likewise.
37786         * doc/glibc-functions/llistxattr.texi: Likewise.
37787         * doc/glibc-functions/lremovexattr.texi: Likewise.
37788         * doc/glibc-functions/lsetxattr.texi: Likewise.
37789         * doc/glibc-functions/removexattr.texi: Likewise.
37790         * doc/glibc-functions/setxattr.texi: Likewise.
37791         * doc/posix-functions/open_memstream.texi: Likewise.
37792
37793 2008-12-15  Eric Blake  <ebb9@byu.net>
37794
37795         Update doc for cygwin 1.7.
37796         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
37797         functions.
37798         * doc/posix-functions/fchmodat.texi: Likewise.
37799         * doc/posix-functions/fchownat.texi: Likewise.
37800         * doc/posix-functions/fdopendir.texi: Likewise.
37801         * doc/posix-functions/fmemopen.texi: Likewise.
37802         * doc/posix-functions/freeaddrinfo.texi: Likewise.
37803         * doc/posix-functions/fstatat.texi: Likewise.
37804         * doc/posix-functions/futimens.texi: Likewise.
37805         * doc/posix-functions/gai_strerror.texi: Likewise.
37806         * doc/posix-functions/getaddrinfo.texi: Likewise.
37807         * doc/posix-functions/getnameinfo.texi: Likewise.
37808         * doc/posix-functions/if_freenameindex.texi: Likewise.
37809         * doc/posix-functions/if_indextoname.texi: Likewise.
37810         * doc/posix-functions/if_nameindex.texi: Likewise.
37811         * doc/posix-functions/if_nametoindex.texi: Likewise.
37812         * doc/posix-functions/insque.texi: Likewise.
37813         * doc/posix-functions/linkat.texi: Likewise.
37814         * doc/posix-functions/llrint.texi: Likewise.
37815         * doc/posix-functions/llrintf.texi: Likewise.
37816         * doc/posix-functions/llrintl.texi: Likewise.
37817         * doc/posix-functions/lockf.texi: Likewise.
37818         * doc/posix-functions/lrintl.texi: Likewise.
37819         * doc/posix-functions/mkdirat.texi: Likewise.
37820         * doc/posix-functions/mkfifoat.texi: Likewise.
37821         * doc/posix-functions/mknodat.texi: Likewise.
37822         * doc/posix-functions/mq_close.texi: Likewise.
37823         * doc/posix-functions/mq_getattr.texi: Likewise.
37824         * doc/posix-functions/mq_notify.texi: Likewise.
37825         * doc/posix-functions/mq_open.texi: Likewise.
37826         * doc/posix-functions/mq_receive.texi: Likewise.
37827         * doc/posix-functions/mq_send.texi: Likewise.
37828         * doc/posix-functions/mq_setattr.texi: Likewise.
37829         * doc/posix-functions/mq_timedreceive.texi: Likewise.
37830         * doc/posix-functions/mq_timedsend.texi: Likewise.
37831         * doc/posix-functions/mq_unlink.texi: Likewise.
37832         * doc/posix-functions/open_memstream.texi: Likewise.
37833         * doc/posix-functions/openat.texi: Likewise.
37834         * doc/posix-functions/posix_fadvise.texi: Likewise.
37835         * doc/posix-functions/posix_fallocate.texi: Likewise.
37836         * doc/posix-functions/posix_madvise.texi: Likewise.
37837         * doc/posix-functions/posix_memalign.texi: Likewise.
37838         * doc/posix-functions/posix_openpt.texi: Likewise.
37839         * doc/posix-functions/readlinkat.texi: Likewise.
37840         * doc/posix-functions/remque.texi: Likewise.
37841         * doc/posix-functions/renameat.texi: Likewise.
37842         * doc/posix-functions/rintl.texi: Likewise.
37843         * doc/posix-functions/sem_unlink.texi: Likewise.
37844         * doc/posix-functions/shm_open.texi: Likewise.
37845         * doc/posix-functions/shm_unlink.texi: Likewise.
37846         * doc/posix-functions/signgam.texi: Likewise.
37847         * doc/posix-functions/sigset.texi: Likewise.
37848         * doc/posix-functions/stpcpy.texi: Likewise.
37849         * doc/posix-functions/stpncpy.texi: Likewise.
37850         * doc/posix-functions/strerror.texi: Likewise.
37851         * doc/posix-functions/strtod.texi: Likewise.
37852         * doc/posix-functions/symlinkat.texi: Likewise.
37853         * doc/posix-functions/unlinkat.texi: Likewise.
37854         * doc/posix-functions/utimensat.texi: Likewise.
37855         * doc/glibc-functions/bindresvport.texi: Likewise.
37856         * doc/glibc-functions/dn_expand.texi: Likewise.
37857         * doc/glibc-functions/exp10.texi: Likewise.
37858         * doc/glibc-functions/exp10f.texi: Likewise.
37859         * doc/glibc-functions/fgetxattr.texi: Likewise.
37860         * doc/glibc-functions/flistxattr.texi: Likewise.
37861         * doc/glibc-functions/fopencookie.texi: Likewise.
37862         * doc/glibc-functions/freeifaddrs.texi: Likewise.
37863         * doc/glibc-functions/fremovexattr.texi: Likewise.
37864         * doc/glibc-functions/fsetxattr.texi: Likewise.
37865         * doc/glibc-functions/getifaddrs.texi: Likewise.
37866         * doc/glibc-functions/getxattr.texi: Likewise.
37867         * doc/glibc-functions/lgetxattr.texi: Likewise.
37868         * doc/glibc-functions/listxattr.texi: Likewise.
37869         * doc/glibc-functions/llistxattr.texi: Likewise.
37870         * doc/glibc-functions/lremovexattr.texi: Likewise.
37871         * doc/glibc-functions/lsetxattr.texi: Likewise.
37872         * doc/glibc-functions/pow10.texi: Likewise.
37873         * doc/glibc-functions/pow10f.texi: Likewise.
37874         * doc/glibc-functions/rcmd_af.texi: Likewise.
37875         * doc/glibc-functions/removexattr.texi: Likewise.
37876         * doc/glibc-functions/res_init.texi: Likewise.
37877         * doc/glibc-functions/res_mkquery.texi: Likewise.
37878         * doc/glibc-functions/res_query.texi: Likewise.
37879         * doc/glibc-functions/res_querydomain.texi: Likewise.
37880         * doc/glibc-functions/res_send.texi: Likewise.
37881         * doc/glibc-functions/rresvport_af.texi: Likewise.
37882         * doc/glibc-functions/setxattr.texi: Likewise.
37883         * doc/glibc-functions/strcasestr.texi: Likewise.
37884
37885 2008-12-15  Bruno Haible  <bruno@clisp.org>
37886
37887         Fix compilation error on OSF/1 4.0.
37888         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
37889         <sys/time.h>, simply delegate to the system header.
37890         Reported by Daniel Richard G. <oss@teragram.com>.
37891
37892 2008-12-15  Bruno Haible  <bruno@clisp.org>
37893
37894         * doc/posix-functions/openat.texi: Mention the 'openat' module.
37895         * doc/posix-functions/fchmodat.texi: Likewise.
37896         * doc/posix-functions/fchownat.texi: Likewise.
37897         * doc/posix-functions/fdopendir.texi: Likewise.
37898         * doc/posix-functions/fstatat.texi: Likewise.
37899         * doc/posix-functions/mkdirat.texi: Likewise.
37900         * doc/posix-functions/unlinkat.texi: Likewise.
37901
37902 2008-12-14  Bruno Haible  <bruno@clisp.org>
37903
37904         Update doc for POSIX:2008.
37905         * doc/posix-functions/faccessat.texi: New file.
37906         * doc/posix-functions/fchmodat.texi: New file.
37907         * doc/posix-functions/fchownat.texi: New file.
37908         * doc/posix-functions/fdopendir.texi: New file.
37909         * doc/posix-functions/fstatat.texi: New file.
37910         * doc/posix-functions/futimens.texi: New file.
37911         * doc/posix-functions/linkat.texi: New file.
37912         * doc/posix-functions/mkdirat.texi: New file.
37913         * doc/posix-functions/mkfifoat.texi: New file.
37914         * doc/posix-functions/mknodat.texi: New file.
37915         * doc/posix-functions/open_wmemstream.texi: New file.
37916         * doc/posix-functions/openat.texi: New file.
37917         * doc/posix-functions/psiginfo.texi: New file.
37918         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
37919         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
37920         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
37921         * doc/posix-functions/readlinkat.texi: New file.
37922         * doc/posix-functions/renameat.texi: New file.
37923         * doc/posix-functions/strerror_l.texi: New file.
37924         * doc/posix-functions/symlinkat.texi: New file.
37925         * doc/posix-functions/unlinkat.texi: New file.
37926         * doc/posix-functions/utimensat.texi: New file.
37927         * doc/gnulib.texi (Function Substitutes): Add these subsections.
37928
37929 2008-12-14  Bruno Haible  <bruno@clisp.org>
37930
37931         Update doc for POSIX:2008.
37932         * doc/posix-functions/alphasort.texi: Renamed from
37933         doc/glibc-functions/alphasort.texi.
37934         * doc/posix-functions/dirfd.texi: Renamed from
37935         doc/glibc-functions/dirfd.texi.
37936         * doc/posix-functions/dprintf.texi: Renamed from
37937         doc/glibc-functions/dprintf.texi.
37938         * doc/posix-functions/duplocale.texi: Renamed from
37939         doc/glibc-functions/duplocale.texi.
37940         * doc/posix-functions/fexecve.texi: Renamed from
37941         doc/glibc-functions/fexecve.texi.
37942         * doc/posix-functions/fmemopen.texi: Renamed from
37943         doc/glibc-functions/fmemopen.texi.
37944         * doc/posix-functions/freelocale.texi: Renamed from
37945         doc/glibc-functions/freelocale.texi.
37946         * doc/posix-functions/getdate_err.texi: Renamed from
37947         doc/glibc-functions/getdate_err.texi.
37948         * doc/posix-functions/isalnum_l.texi: Renamed from
37949         doc/glibc-functions/isalnum_l.texi.
37950         * doc/posix-functions/isalpha_l.texi: Renamed from
37951         doc/glibc-functions/isalpha_l.texi.
37952         * doc/posix-functions/isblank_l.texi: Renamed from
37953         doc/glibc-functions/isblank_l.texi.
37954         * doc/posix-functions/iscntrl_l.texi: Renamed from
37955         doc/glibc-functions/iscntrl_l.texi.
37956         * doc/posix-functions/isdigit_l.texi: Renamed from
37957         doc/glibc-functions/isdigit_l.texi.
37958         * doc/posix-functions/isgraph_l.texi: Renamed from
37959         doc/glibc-functions/isgraph_l.texi.
37960         * doc/posix-functions/islower_l.texi: Renamed from
37961         doc/glibc-functions/islower_l.texi.
37962         * doc/posix-functions/isprint_l.texi: Renamed from
37963         doc/glibc-functions/isprint_l.texi.
37964         * doc/posix-functions/ispunct_l.texi: Renamed from
37965         doc/glibc-functions/ispunct_l.texi.
37966         * doc/posix-functions/isspace_l.texi: Renamed from
37967         doc/glibc-functions/isspace_l.texi.
37968         * doc/posix-functions/isupper_l.texi: Renamed from
37969         doc/glibc-functions/isupper_l.texi.
37970         * doc/posix-functions/iswalnum_l.texi: Renamed from
37971         doc/glibc-functions/iswalnum_l.texi.
37972         * doc/posix-functions/iswalpha_l.texi: Renamed from
37973         doc/glibc-functions/iswalpha_l.texi.
37974         * doc/posix-functions/iswblank_l.texi: Renamed from
37975         doc/glibc-functions/iswblank_l.texi.
37976         * doc/posix-functions/iswcntrl_l.texi: Renamed from
37977         doc/glibc-functions/iswcntrl_l.texi.
37978         * doc/posix-functions/iswctype_l.texi: Renamed from
37979         doc/glibc-functions/iswctype_l.texi.
37980         * doc/posix-functions/iswdigit_l.texi: Renamed from
37981         doc/glibc-functions/iswdigit_l.texi.
37982         * doc/posix-functions/iswgraph_l.texi: Renamed from
37983         doc/glibc-functions/iswgraph_l.texi.
37984         * doc/posix-functions/iswlower_l.texi: Renamed from
37985         doc/glibc-functions/iswlower_l.texi.
37986         * doc/posix-functions/iswprint_l.texi: Renamed from
37987         doc/glibc-functions/iswprint_l.texi.
37988         * doc/posix-functions/iswpunct_l.texi: Renamed from
37989         doc/glibc-functions/iswpunct_l.texi.
37990         * doc/posix-functions/iswspace_l.texi: Renamed from
37991         doc/glibc-functions/iswspace_l.texi.
37992         * doc/posix-functions/iswupper_l.texi: Renamed from
37993         doc/glibc-functions/iswupper_l.texi.
37994         * doc/posix-functions/iswxdigit_l.texi: Renamed from
37995         doc/glibc-functions/iswxdigit_l.texi.
37996         * doc/posix-functions/isxdigit_l.texi: Renamed from
37997         doc/glibc-functions/isxdigit_l.texi.
37998         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
37999         doc/glibc-functions/mbsnrtowcs.texi.
38000         * doc/posix-functions/mkdtemp.texi: Renamed from
38001         doc/glibc-functions/mkdtemp.texi.
38002         * doc/posix-functions/newlocale.texi: Renamed from
38003         doc/glibc-functions/newlocale.texi.
38004         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
38005         doc/glibc-functions/nl_langinfo_l.texi.
38006         * doc/posix-functions/open_memstream.texi: Renamed from
38007         doc/glibc-functions/open_memstream.texi.
38008         * doc/posix-functions/opterr.texi: Renamed from
38009         doc/glibc-functions/opterr.texi.
38010         * doc/posix-functions/optind.texi: Renamed from
38011         doc/glibc-functions/optind.texi.
38012         * doc/posix-functions/optopt.texi: Renamed from
38013         doc/glibc-functions/optopt.texi.
38014         * doc/posix-functions/psignal.texi: Renamed from
38015         doc/glibc-functions/psignal.texi.
38016         * doc/posix-functions/scandir.texi: Renamed from
38017         doc/glibc-functions/scandir.texi.
38018         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38019         doc/glibc-functions/sched_get_priority_min.texi.
38020         * doc/posix-functions/signgam.texi: Renamed from
38021         doc/glibc-functions/signgam.texi.
38022         * doc/posix-functions/stpcpy.texi: Renamed from
38023         doc/glibc-functions/stpcpy.texi.
38024         * doc/posix-functions/stpncpy.texi: Renamed from
38025         doc/glibc-functions/stpncpy.texi.
38026         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38027         doc/glibc-functions/strcasecmp_l.texi.
38028         * doc/posix-functions/strcoll_l.texi: Renamed from
38029         doc/glibc-functions/strcoll_l.texi.
38030         * doc/posix-functions/strfmon_l.texi: Renamed from
38031         doc/glibc-functions/strfmon_l.texi.
38032         * doc/posix-functions/strftime_l.texi: Renamed from
38033         doc/glibc-functions/strftime_l.texi.
38034         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38035         doc/glibc-functions/strncasecmp_l.texi.
38036         * doc/posix-functions/strndup.texi: Renamed from
38037         doc/glibc-functions/strndup.texi.
38038         * doc/posix-functions/strnlen.texi: Renamed from
38039         doc/glibc-functions/strnlen.texi.
38040         * doc/posix-functions/strsignal.texi: Renamed from
38041         doc/glibc-functions/strsignal.texi.
38042         * doc/posix-functions/strxfrm_l.texi: Renamed from
38043         doc/glibc-functions/strxfrm_l.texi.
38044         * doc/posix-functions/timer_gettime.texi: Renamed from
38045         doc/glibc-functions/timer_gettime.texi.
38046         * doc/posix-functions/tolower_l.texi: Renamed from
38047         doc/glibc-functions/tolower_l.texi.
38048         * doc/posix-functions/toupper_l.texi: Renamed from
38049         doc/glibc-functions/toupper_l.texi.
38050         * doc/posix-functions/towctrans_l.texi: Renamed from
38051         doc/glibc-functions/towctrans_l.texi.
38052         * doc/posix-functions/towlower_l.texi: Renamed from
38053         doc/glibc-functions/towlower_l.texi.
38054         * doc/posix-functions/towupper_l.texi: Renamed from
38055         doc/glibc-functions/towupper_l.texi.
38056         * doc/posix-functions/uselocale.texi: Renamed from
38057         doc/glibc-functions/uselocale.texi.
38058         * doc/posix-functions/vdprintf.texi: Renamed from
38059         doc/glibc-functions/vdprintf.texi.
38060         * doc/posix-functions/wcpcpy.texi:
38061         Renamed from doc/glibc-functions/wcpcpy.texi.
38062         * doc/posix-functions/wcpncpy.texi: Renamed from
38063         doc/glibc-functions/wcpncpy.texi.
38064         * doc/posix-functions/wcscasecmp.texi: Renamed from
38065         doc/glibc-functions/wcscasecmp.texi.
38066         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38067         doc/glibc-functions/wcscasecmp_l.texi.
38068         * doc/posix-functions/wcscoll_l.texi: Renamed from
38069         doc/glibc-functions/wcscoll_l.texi.
38070         * doc/posix-functions/wcsdup.texi: Renamed from
38071         doc/glibc-functions/wcsdup.texi.
38072         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38073         doc/glibc-functions/wcsncasecmp.texi.
38074         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38075         doc/glibc-functions/wcsncasecmp_l.texi.
38076         * doc/posix-functions/wcsnlen.texi: Renamed from
38077         doc/glibc-functions/wcsnlen.texi.
38078         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38079         doc/glibc-functions/wcsnrtombs.texi.
38080         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38081         doc/glibc-functions/wcsxfrm_l.texi.
38082         * doc/posix-functions/wctrans_l.texi: Renamed from
38083         doc/glibc-functions/wctrans_l.texi.
38084         * doc/posix-functions/wctype_l.texi: Renamed from
38085         doc/glibc-functions/wctype_l.texi.
38086         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38087         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38088         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38089         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38090         these subsections.
38091         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38092         Remove sections.
38093
38094 2008-12-14  Bruno Haible  <bruno@clisp.org>
38095
38096         Update doc for POSIX:2008.
38097         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38098
38099 2008-12-14  Bruno Haible  <bruno@clisp.org>
38100
38101         Update doc for POSIX:2008.
38102         * doc/pastposix-functions/bcmp.texi: Renamed from
38103         doc/posix-functions/bcmp.texi.
38104         * doc/pastposix-functions/bcopy.texi: Renamed from
38105         doc/posix-functions/bcopy.texi.
38106         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38107         doc/posix-functions/bsd_signal.texi.
38108         * doc/pastposix-functions/bzero.texi: Renamed from
38109         doc/posix-functions/bzero.texi.
38110         * doc/pastposix-functions/ecvt.texi: Renamed from
38111         doc/posix-functions/ecvt.texi.
38112         * doc/pastposix-functions/fcvt.texi: Renamed from
38113         doc/posix-functions/fcvt.texi.
38114         * doc/pastposix-functions/ftime.texi: Renamed from
38115         doc/posix-functions/ftime.texi.
38116         * doc/pastposix-functions/gcvt.texi: Renamed from
38117         doc/posix-functions/gcvt.texi.
38118         * doc/pastposix-functions/getcontext.texi: Renamed from
38119         doc/posix-functions/getcontext.texi.
38120         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38121         doc/posix-functions/gethostbyaddr.texi.
38122         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38123         doc/posix-functions/gethostbyname.texi.
38124         * doc/pastposix-functions/getwd.texi: Renamed from
38125         doc/posix-functions/getwd.texi.
38126         * doc/pastposix-functions/h_errno.texi: Renamed from
38127         doc/posix-functions/h_errno.texi.
38128         * doc/pastposix-functions/index.texi: Renamed from
38129         doc/posix-functions/index.texi.
38130         * doc/pastposix-functions/makecontext.texi: Renamed from
38131         doc/posix-functions/makecontext.texi.
38132         * doc/pastposix-functions/mktemp.texi: Renamed from
38133         doc/posix-functions/mktemp.texi.
38134         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38135         doc/posix-functions/pthread_attr_getstackaddr.texi.
38136         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38137         doc/posix-functions/pthread_attr_setstackaddr.texi.
38138         * doc/pastposix-functions/rindex.texi: Renamed from
38139         doc/posix-functions/rindex.texi.
38140         * doc/pastposix-functions/scalb.texi: Renamed from
38141         doc/posix-functions/scalb.texi.
38142         * doc/pastposix-functions/setcontext.texi: Renamed from
38143         doc/posix-functions/setcontext.texi.
38144         * doc/pastposix-functions/swapcontext.texi: Renamed from
38145         doc/posix-functions/swapcontext.texi.
38146         * doc/pastposix-functions/ualarm.texi: Renamed from
38147         doc/posix-functions/ualarm.texi.
38148         * doc/pastposix-functions/usleep.texi: Renamed from
38149         doc/posix-functions/usleep.texi.
38150         * doc/pastposix-functions/vfork.texi: Renamed from
38151         doc/posix-functions/vfork.texi.
38152         * doc/pastposix-functions/wcswcs.texi: Renamed from
38153         doc/posix-functions/wcswcs.texi.
38154         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38155         (Function Substitutes): Update.
38156
38157 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38158
38159         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38160         m4/strerror.m4.
38161
38162 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38163             Bruno Haible  <bruno@clisp.org>
38164
38165         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38166
38167 2008-12-13  Bruno Haible  <bruno@clisp.org>
38168
38169         * modules/strtoull (Depends-on): Remove unistd.
38170
38171 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38172
38173         * modules/strtoull (Depends-on): Add stdlib.
38174
38175 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38176
38177         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38178
38179 2008-12-10  Jim Meyering  <meyering@redhat.com>
38180
38181         gl_ASSERT: don't say assertions are disabled when they're not
38182         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38183         "checking whether to enable assertions... no", when they are in
38184         fact enabled.  This is solely a bug in the output of configure.
38185         In spite of saying "no", NDEBUG was not defined in that case.
38186         Also, as noted by Eric Blake, leave assertions enabled upon
38187         --enable-assert=INVALID.
38188
38189 2008-12-10  Bruno Haible  <bruno@clisp.org>
38190
38191         Change MODULES.html to refer to POSIX:2008 where possible.
38192         * MODULES.html.sh (POSIX2008_URL): New variable.
38193         (posix_headers): Remove sys/timeb, ucontext.
38194         (posix2001_headers): New variable.
38195         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38196         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38197         index, makecontext, mktemp, pthread_attr_getstackaddr,
38198         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38199         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38200         (posix2001_functions): New variable.
38201         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38202         otherwise.
38203
38204 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38205
38206         add missing include to parse-duration.c
38207         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38208         * modules/parse-duration (Depends-on): Add xalloc.
38209
38210         fix sed script reading maint.mk
38211         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38212         (syntax-check-rules): Use it.
38213
38214 2008-12-09  Bruno Haible  <bruno@clisp.org>
38215
38216         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38217         MacOS X 10.4/PowerPC.
38218         Reported by Simon Josefsson.
38219
38220 2008-12-08  Jim Meyering  <meyering@redhat.com>
38221
38222         work around mingw's lack of some S_IF definitions
38223         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38224         Reported by Simon Josefsson.
38225
38226 2008-12-08  Bruno Haible  <bruno@clisp.org>
38227
38228         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38229         applied to variables. Needed on MacOS X 10.4/PowerPC.
38230         Reported by Simon Josefsson.
38231
38232 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38233         and Eric Blake  <ebb9@byu.net>
38234
38235         assert: honor --enable-assert
38236         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
38237         order to honor --enable-assert, rather than treating it as a
38238         synonym for --disable-assert.
38239
38240 2008-12-08  Jim Meyering  <meyering@redhat.com>
38241
38242         * lib/posixtm.c: Remove now-useless declaration of mktime.
38243
38244         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
38245
38246 2008-12-07  Bruno Haible  <bruno@clisp.org>
38247
38248         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
38249         test_once): Mark functions as static.
38250         * tests/test-tls.c (test_tls): Likewise.
38251
38252 2008-12-07  Bruno Haible  <bruno@clisp.org>
38253
38254         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
38255         iconv_register_autodetect.
38256
38257 2008-12-07  Jim Meyering  <meyering@redhat.com>
38258
38259         posixtm.c: avoid a warning
38260         * lib/posixtm.c (posixtime): Don't initialize tm0.
38261         It's no longer needed to placate gcc4's -Wuninitialized,
38262         and the attempt to placate would elicit a new warning.
38263
38264         unicodeio.c: mark unused parameters
38265         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38266         (fallback_failure_callback): Likewise.
38267
38268 2008-12-07  Bruno Haible  <bruno@clisp.org>
38269
38270         * gnulib-tool (func_create_testdir): When building the tests
38271         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
38272         Reported by Simon Josefsson.
38273
38274 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38275
38276         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
38277
38278 2008-12-06  Bruno Haible  <bruno@clisp.org>
38279
38280         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
38281         Suggested by Eric Blake.
38282
38283 2008-12-06  Bruno Haible  <bruno@clisp.org>
38284
38285         Fix a c-stack test failure on MacOS X.
38286         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
38287         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
38288         handler for SIGBUS as well.
38289         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
38290         install a signal handler for SIGBUS as well.
38291         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
38292
38293 2008-12-06  Bruno Haible  <bruno@clisp.org>
38294
38295         Advocacy documentation.
38296         * doc/gnulib-intro.texi (Benefits): New section.
38297         * doc/gnulib.texi: Update.
38298
38299 2008-12-06  Bruno Haible  <bruno@clisp.org>
38300
38301         Document the 'manywarnings' module.
38302         * doc/manywarnings.texi: New file.
38303         * doc/gnulib.texi: Include it.
38304
38305 2008-12-05  Eric Blake  <ebb9@byu.net>
38306
38307         tests: silence some gcc warnings
38308         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
38309         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
38310         type mismatches.
38311
38312 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38313             Bruno Haible  <bruno@clisp.org>
38314
38315         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
38316
38317 2008-11-29  Jim Meyering  <meyering@redhat.com>
38318
38319         unicodeio.c: mark unused parameters
38320         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38321         (fallback_failure_callback): Likewise.
38322
38323         fts: fix a thinko
38324         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
38325         (set_stat_type): Return S_IF*-valued "type" directly.
38326         Prompted by James Youngman's spotting a related bug.
38327         Confirmed by further testing through find.
38328
38329         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38330         * lib/fts.c (D_TYPE): Define.
38331         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38332         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38333         (s_ifmt_shift_bits): New function.
38334         (set_stat_type): New function.
38335         (fts_build): When not calling fts_stat, call set_stat_type
38336         to propagate dirent.d_type info to fts_read caller.
38337         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38338         fts_statp->st_mode type information may be valid.
38339
38340 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38341
38342         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38343         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38344         <sds@gnu.org>.
38345
38346 2008-11-20  Bruno Haible  <bruno@clisp.org>
38347
38348         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38349         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38350         INCLUDE_NEXT.
38351         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38352         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38353         * modules/math (Makefile.am): Substitute
38354         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38355         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38356
38357 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38358             Bruno Haible  <bruno@clisp.org>
38359
38360         * lib/stdint.in.h: Define all type macros so that their expansion is
38361         a single typedef'ed token. Fixes a compilation failure in Boost which
38362         does "using ::int8_t;".
38363
38364 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38365
38366         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38367         gl_MANYWARN_ALL_GCC.
38368         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38369         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38370         * modules/manywarnings: New file.
38371         * MODULES.html.sh: Mention manywarnings module.
38372
38373 2008-11-18  Bruno Haible  <bruno@clisp.org>
38374
38375         * doc/gnulib-tool.texi (Unit tests): New section.
38376
38377 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38378
38379         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38380         paths like 'lib/po/foo.po'.
38381
38382 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38383
38384         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38385         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38386
38387 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38388
38389         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38390         parameter works.
38391
38392 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38393
38394         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38395
38396 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38397
38398         * modules/parse-duration-tests: New file.
38399         * tests/test-parse-duration.sh: New file.
38400         * tests/test-parse-duration.c: New file.
38401
38402         New module 'parse-duration'.
38403         * lib/parse-duration.h: New file.
38404         * lib/parse-duration.c: New file.
38405         * modules/parse-duration: New file.
38406
38407 2008-11-17  Bruno Haible  <bruno@clisp.org>
38408
38409         * tests/test-select-out.sh: Comment out the first pipe test.
38410         Reported by Simon Josefsson.
38411
38412 2008-11-17  Bruno Haible  <bruno@clisp.org>
38413
38414         * modules/getaddrinfo (Depends-on): Add servent, hostent.
38415         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
38416         gl_HOSTENT.
38417
38418 2008-11-17  Bruno Haible  <bruno@clisp.org>
38419
38420         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
38421         -lnetwork and -lnet. Needed for Haiku and BeOS.
38422
38423 2008-11-16  Bruno Haible  <bruno@clisp.org>
38424
38425         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
38426
38427 2008-11-16  Bruno Haible  <bruno@clisp.org>
38428
38429         Avoid test failure on Haiku.
38430         * tests/test-fsync.c: Include <errno.h>.
38431         (main): Don't require that fsync (0) fails.
38432
38433 2008-11-15  Bruno Haible  <bruno@clisp.org>
38434
38435         New module 'hostent'.
38436         * modules/hostent: New file.
38437         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
38438
38439 2008-11-15  Bruno Haible  <bruno@clisp.org>
38440
38441         New module 'servent'.
38442         * modules/servent: New file.
38443         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
38444
38445 2008-11-15  Bruno Haible  <bruno@clisp.org>
38446
38447         Avoid generating same test program with two different rules.
38448         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
38449         test-frexp to test-frexp-nolibm.
38450         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
38451         test-frexpl to test-frexpl-nolibm.
38452
38453 2008-11-15  Bruno Haible  <bruno@clisp.org>
38454
38455         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
38456         $(FREXPL_LIBM).
38457
38458 2008-11-15  Bruno Haible  <bruno@clisp.org>
38459
38460         * lib/netdb.in.h: Activate the definitions also when the system's
38461         <netdb.h> has 'struct addrinfo'.
38462         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
38463         EAI_OVERFLOW or AI_NUMERICSERV.
38464         * doc/posix-headers/netdb.texi: Document the problem.
38465
38466 2008-11-15  Bruno Haible  <bruno@clisp.org>
38467
38468         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
38469
38470         Make the 'sched' module work on platforms where <sched.h> exists but
38471         is incomplete (such as Haiku).
38472         * lib/sched.in.h; Include the system's <sched.h> if it exists.
38473         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
38474         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
38475         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
38476         HAVE_STRUCT_SCHED_PARAM.
38477         * modules/sched (Depends-on): Add include_next.
38478         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
38479         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
38480         * doc/posix-headers/sched.texi: Document the issue.
38481
38482 2008-11-13  Jim Meyering  <meyering@redhat.com>
38483
38484         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
38485         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
38486         test would fail due to the difference in the Report bugs to ...
38487         line.  The expected address is empty, "<>", while the actual
38488         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
38489
38490 2008-11-12  Bruno Haible  <bruno@clisp.org>
38491
38492         lstat: don't compile lstat.c on systems lacking lstat
38493         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
38494         which don't have lstat; this is handled by lib/sys_stat.in.h already.
38495         Reported by Daniel P. Berrange via Jim Meyering.
38496
38497 2008-11-12  Jim Meyering  <meyering@redhat.com>
38498
38499         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
38500
38501 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38502
38503         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
38504         instead.
38505
38506 2008-11-12  Bruno Haible  <bruno@clisp.org>
38507
38508         * lib/unicodeio.c: Include unistr.h.
38509         (utf8_wctomb): Remove function.
38510         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
38511
38512 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38513
38514         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
38515         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
38516         <bruno@clisp.org>.
38517         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
38518
38519 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38520
38521         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
38522         * doc/gnulib.texi: Add section for warnings.
38523
38524 2008-11-11  Bruno Haible  <bruno@clisp.org>
38525
38526         * lib/sockets.h: Add a comment.
38527
38528 2008-11-11  Karl Berry  <karl@gnu.org>
38529
38530         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
38531
38532 2008-11-11  Eric Blake  <ebb9@byu.net>
38533
38534         fdl.texi: avoid git symlinks
38535         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
38536
38537 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38538
38539         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
38540
38541 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38542
38543         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
38544         (gl_WARN_ADD): Substitute $2 if literal.
38545
38546 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38547
38548         * m4/warning.m4: Remove.
38549
38550 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38551
38552         * m4/warnings.m4: Almost complete rewrite. :-)
38553
38554 2008-11-10  Simon Josefsson  <simon@josefsson.org>
38555
38556         * modules/warnings: New module.
38557         * m4/warnings.m4: New file.
38558         * MODULES.html.sh: Mention warnings module.
38559         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
38560         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38561
38562 2008-11-10  Eric Blake  <ebb9@byu.net>
38563
38564         fdl.texi: make a symlink to the latest version
38565         * doc/standards.texi: Revert today's earlier change.
38566         * doc/fdl-1.2.texi: Rename from old fdl.texi...
38567         * doc/fdl.texi: ...and replace this with a symlink to the newer
38568         fdl-1.3.texi.
38569
38570 2008-11-10  Bruno Haible  <bruno@clisp.org>
38571
38572         * tests/test-select-fd.c (main): Accept the result file name as fourth
38573         argument.
38574         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
38575         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
38576
38577 2008-11-10  Bruno Haible  <bruno@clisp.org>
38578
38579         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
38580         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
38581         as autoconf-substituted macros.
38582         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
38583         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
38584         gl_NETDB_H_DEFAULTS. Set these variables.
38585         * modules/netdb (Makefile.am): Substitute these variables.
38586
38587 2008-11-10  Eric Blake  <ebb9@byu.net>
38588
38589         standards.texi: include correct file for FDL 1.3
38590         * doc/standards.texi (GNU Free Documentation License): Change
38591         include file to pull in FDL 1.3, not 1.2.
38592
38593         fdl.texi: revert accidental change to license
38594         * doc/fdl.texi: This is FDL 1.2, not 1.3.
38595
38596 2008-11-10  Bruno Haible  <bruno@clisp.org>
38597
38598         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
38599         cross-compiling guesses also when the native compile gives no result.
38600
38601 2008-11-10  Bruno Haible  <bruno@clisp.org>
38602
38603         * lib/spawni.c (__spawni): Force variable into the stack.
38604
38605 2008-11-10  Bruno Haible  <bruno@clisp.org>
38606
38607         Add support for Haiku.
38608         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
38609         glibc and BeOS, but also on Haiku.
38610         * lib/fpurge.c (fpurge): Likewise.
38611         * lib/freadable.c (freadable): Likewise.
38612         * lib/freadahead.c (freadahead): Likewise.
38613         * lib/freading.c (freading): Likewise.
38614         * lib/freadptr.c (freadptr): Likewise.
38615         * lib/freadseek.c (freadptrinc): Likewise.
38616         * lib/fseeko.c (rpl_fseeko): Likewise.
38617         * lib/fseterr.c (fseterr): Likewise.
38618         * lib/fwritable.c (fwritable): Likewise.
38619         * lib/fwriting.c (fwriting): Likewise.
38620         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
38621
38622 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38623
38624         * lib/config.charset: Treat Haiku like BeOS.
38625
38626 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38627
38628         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
38629         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
38630
38631 2008-11-08  Bruno Haible  <bruno@clisp.org>
38632
38633         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
38634         AC_CACHE_CHECK.
38635
38636 2008-11-08  Bruno Haible  <bruno@clisp.org>
38637
38638         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
38639
38640 2008-11-08  Bruno Haible  <bruno@clisp.org>
38641
38642         * tests/test-select-fd.c: New file.
38643         * tests/test-select-in.sh: New file.
38644         * tests/test-select-out.sh: New file.
38645         * tests/test-select-stdin.c: New file.
38646         * modules/select-tests (Files): Add the new files.
38647         (Depends-on): Add gettimeofday.
38648         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
38649         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
38650         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
38651
38652 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
38653             Bruno Haible  <bruno@clisp.org>
38654
38655         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
38656
38657 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
38658
38659         * build-aux/pmccabe2html: Added support for C++ source files.
38660
38661 2008-11-05  Ben Pfaff  <blp@gnu.org>
38662
38663         Fix lib/close.c build on Windows.
38664         * modules/close (Files): Add lib/w32sock.h.
38665
38666 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
38667
38668         Accept Bison's NEWS format.
38669         * build-aux/announce-gen (print_news_deltas): Tweak
38670         $re_prefix.
38671
38672 2008-11-04  Bruno Haible  <bruno@clisp.org>
38673
38674         * modules/random_r (Maintainer): Add glibc.
38675
38676 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38677
38678         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
38679         by karl@freefriends.org (Karl Berry).
38680         * doc/alloca.texi: Likewise.
38681         * doc/c-ctype.texi: Likewise.
38682         * doc/c-strcase.texi: Likewise.
38683         * doc/c-strcaseeq.texi: Likewise.
38684         * doc/c-strcasestr.texi: Likewise.
38685         * doc/c-strstr.texi: Likewise.
38686         * doc/c-strtod.texi: Likewise.
38687         * doc/c-strtold.texi: Likewise.
38688         * doc/ctime.texi: Likewise.
38689         * doc/error.texi: Likewise.
38690         * doc/fdl.texi: Likewise.
38691         * doc/gcd.texi: Likewise.
38692         * doc/getdate.texi: Likewise.
38693         * doc/gnulib-intro.texi: Likewise.
38694         * doc/gnulib-tool.texi: Likewise.
38695         * doc/gnulib.texi: Likewise.
38696         * doc/inet_ntoa.texi: Likewise.
38697         * doc/maintain.texi: Likewise.
38698         * doc/make-stds.texi: Likewise.
38699         * doc/quote.texi: Likewise.
38700         * doc/regexprops-generic.texi: Likewise.
38701         * doc/standards.texi: Likewise.
38702         * doc/verify.texi: Likewise.
38703         * doc/visibility.texi: Likewise.
38704         * doc/gnulib.texi (GNU Free Documentation License): Include
38705         fdl-1.3.texi instead of fdl.texi.
38706
38707 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38708
38709         * doc/fdl-1.3.texi: New file, from
38710         <http://www.gnu.org/licenses/fdl-1.3.texi>.
38711         * modules/fdl-1.3: Add.
38712         * MODULES.html.sh: Add fdl-1.3.
38713
38714 2008-11-03  Bruno Haible  <bruno@clisp.org>
38715
38716         Make determination of absolute name of header file work with AIX xlc.
38717         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
38718         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
38719         preprocessing.
38720         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38721         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
38722
38723 2008-11-03  Simon Josefsson  <simon@josefsson.org>
38724
38725         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
38726         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
38727         <ludo@gnu.org>.
38728
38729 2008-11-02  Bruno Haible  <bruno@clisp.org>
38730
38731         Mark 'strpbrk' obsolete.
38732         * modules/strpbrk (Status, Notice): New sections.
38733         * modules/strtok_r (Depends-on): Add strpbrk.
38734
38735 2008-11-02  Bruno Haible  <bruno@clisp.org>
38736
38737         Mark 'strdup' obsolete.
38738         * modules/strdup (Status, Notice): New sections.
38739         * modules/findprog (Depends-on): Add strdup.
38740         * modules/getaddrinfo (Depends-on): Likewise.
38741         * modules/localename (Depends-on): Likewise.
38742         * modules/relocatable-lib (Depends-on): Likewise.
38743         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
38744         * modules/relocatable-prog (Depends-on): Likewise.
38745         * modules/trim (Depends-on): Likewise.
38746         * modules/unictype/gen-ctype (Depends-on): Likewise.
38747         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38748
38749 2008-11-02  Bruno Haible  <bruno@clisp.org>
38750
38751         Mark 'strcspn' obsolete.
38752         * modules/strcspn (Status, Notice): New sections.
38753
38754 2008-11-02  Bruno Haible  <bruno@clisp.org>
38755
38756         Mark 'rmdir' obsolete.
38757         * modules/rmdir (Status, Notice): New sections.
38758         * modules/clean-temp (Depends-on): Add rmdir.
38759         * modules/openat (Depends-on): Likewise.
38760
38761 2008-11-02  Bruno Haible  <bruno@clisp.org>
38762
38763         Mark 'raise' obsolete.
38764         * modules/raise (Status, Notice): New sections.
38765         (Include): Specify <signal.h>.
38766         * modules/stdio (Depends-on): Add raise.
38767         * modules/write (Depends-on): Likewise.
38768
38769 2008-11-02  Bruno Haible  <bruno@clisp.org>
38770
38771         Mark 'memset' obsolete.
38772         * modules/memset (Status, Notice): New sections.
38773
38774 2008-11-02  Bruno Haible  <bruno@clisp.org>
38775
38776         Mark 'memmove' obsolete.
38777         * modules/memmove (Status, Notice): New sections.
38778         * modules/argp (Depends-on): Add memmove.
38779         * modules/argz (Depends-on): Likewise.
38780         * modules/canonicalize (Depends-on): Likewise.
38781         * modules/canonicalize-lgpl (Depends-on): Likewise.
38782         * modules/fts (Depends-on): Likewise.
38783         * modules/getcwd (Depends-on): Likewise.
38784         * modules/human (Depends-on): Likewise.
38785         * modules/regex (Depends-on): Likewise.
38786         * modules/striconveh (Depends-on): Likewise.
38787         * modules/trim (Depends-on): Likewise.
38788         * modules/unistr/u8-move (Depends-on): Likewise.
38789         * modules/unistr/u16-move (Depends-on): Likewise.
38790         * modules/unistr/u32-move (Depends-on): Likewise.
38791
38792 2008-11-02  Bruno Haible  <bruno@clisp.org>
38793
38794         Mark 'memcpy' obsolete.
38795         * modules/memcpy (Status, Notice): New sections.
38796
38797 2008-11-02  Bruno Haible  <bruno@clisp.org>
38798
38799         Mark 'memcmp' obsolete.
38800         * modules/memcmp (Status, Notice): New sections.
38801         * modules/argmatch (Depends-on): Add memchr.
38802         * modules/backupfile (Depends-on): Likewise.
38803         * modules/c-strcasestr (Depends-on): Likewise.
38804         * modules/crypto/des (Depends-on): Likewise.
38805         * modules/csharpcomp (Depends-on): Likewise.
38806         * modules/fnmatch (Depends-on): Likewise.
38807         * modules/git-merge-changelog (Depends-on): Likewise.
38808         * modules/isnand (Depends-on): Likewise.
38809         * modules/isnand-nolibm (Depends-on): Likewise.
38810         * modules/isnanf (Depends-on): Likewise.
38811         * modules/isnanf-nolibm (Depends-on): Likewise.
38812         * modules/isnanl (Depends-on): Likewise.
38813         * modules/isnanl-nolibm (Depends-on): Likewise.
38814         * modules/mbchar (Depends-on): Likewise.
38815         * modules/memcoll (Depends-on): Likewise.
38816         * modules/quotearg (Depends-on): Likewise.
38817         * modules/regex (Depends-on): Likewise.
38818         * modules/relocatable-prog (Depends-on): Likewise.
38819         * modules/same (Depends-on): Likewise.
38820         * modules/signbit (Depends-on): Likewise.
38821         * modules/strcasestr-simple (Depends-on): Likewise.
38822         * modules/unictype/gen-ctype (Depends-on): Likewise.
38823         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38824         * modules/uniname/uniname (Depends-on): Likewise.
38825         * modules/unistr/u8-cmp (Depends-on): Likewise.
38826
38827 2008-11-02  Bruno Haible  <bruno@clisp.org>
38828
38829         Mark 'memchr' obsolete.
38830         * modules/memchr (Status, Notice): New sections.
38831         * modules/argp (Depends-on): Add memchr.
38832         * modules/base64 (Depends-on): Likewise.
38833         * modules/c-strcasestr (Depends-on): Likewise.
38834         * modules/chdir-long (Depends-on): Likewise.
38835         * modules/fnmatch (Depends-on): Likewise.
38836         * modules/getsubopt (Depends-on): Likewise.
38837         * modules/git-merge-changelog (Depends-on): Likewise.
38838         * modules/glob (Depends-on): Likewise.
38839         * modules/strcasestr-simple (Depends-on): Likewise.
38840         * modules/strnlen (Depends-on): Likewise.
38841
38842 2008-11-02  Bruno Haible  <bruno@clisp.org>
38843
38844         Mark 'atexit' obsolete.
38845         * modules/atexit (Status, Notice): New sections.
38846         * modules/chdir-long (Depends-on): Add atexit.
38847         * modules/wait-process (Depends-on): Likewise.
38848
38849 2008-11-02  Bruno Haible  <bruno@clisp.org>
38850
38851         * gnulib-tool: New option --with-obsolete.
38852         (func_usage): Document it.
38853         (func_modules_transitive_closure): Drop obsolete dependencies if
38854         incobsolete is not true.
38855         (func_import): Read and save the incobsolete variable to the cache.
38856
38857 2008-11-02  Bruno Haible  <bruno@clisp.org>
38858
38859         * modules/TEMPLATE-EXTENDED: New field 'Status'.
38860         * gnulib-tool: New option --extract-status.
38861         (func_usage): Document it.
38862         (sed_extract_prog): Recognize it.
38863         (func_get_status): New function.
38864
38865 2008-10-30  Simon Josefsson  <simon@josefsson.org>
38866
38867         * modules/sockets (License): Change from LGPL to LGPLv2+.
38868
38869 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38870
38871         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
38872
38873 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38874
38875         * MODULES.html.sh (Support for systems lacking POSIX:2001):
38876         Mention times and sys_times.
38877         * modules/sys_times, modules/sys_times-tests: New modules.
38878         * modules/times, modules/times-tests: Likewise
38879         * m4/sys_times_h.m4: New file.
38880         * lib/sys_times.in.h: Likewise
38881         * lib/times.c: Likewise.
38882         * tests/test-sys_times.c: Likewise.
38883         * tests/test-times.c: Likewise.
38884         * doc/posix-headers/sys_times.texi: Update.
38885         * doc/posix-functions/times.texi: Update.
38886
38887 2008-10-28  Jim Meyering  <meyering@redhat.com>
38888
38889         * modules/tempname (Depends-on): Add lstat.
38890
38891         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
38892
38893 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38894
38895         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
38896         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
38897         using idiom used elsewhere in gnulib.
38898
38899 2008-10-27  Jim Meyering  <meyering@redhat.com>
38900
38901         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
38902
38903 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38904
38905         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
38906         TESTS_ENVIRONMENT, for shell scripts that needs to call built
38907         programs.
38908         * tests/test-argp-2.sh: Use $EXEEXT when needed.
38909
38910 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38911
38912         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
38913
38914 2008-10-27  Bruno Haible  <bruno@clisp.org>
38915
38916         * tests/test-lstat.c: Include <stdio.h>.
38917
38918 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38919
38920         * modules/lstat-tests: New module.
38921         * tests/test-lstat.c: New file.
38922
38923 2008-10-26  Jim Meyering  <meyering@redhat.com>
38924
38925         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
38926
38927 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38928             Bruno Haible  <bruno@clisp.org>
38929
38930         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
38931         * modules/configmake (Include): Add a note that the include must come
38932         after all system headers.
38933         * lib/javaversion.c: Include configmake.h after all other includes.
38934
38935 2008-10-26  Bruno Haible  <bruno@clisp.org>
38936
38937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
38938         HAVE_STRUCT_RANDOM_DATA to 1.
38939         (gl_STDLIB_H): Simplify.
38940
38941 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38942
38943         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
38944         substitute HAVE_STRUCT_RANDOM_DATA.
38945         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
38946         random_data.
38947         * modules/stdlib (Makefile.am): Substitute
38948         HAVE_STRUCT_RANDOM_DATA.
38949
38950 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38951
38952         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
38953         * doc/gnulib-intro.texi (Copyright): Likewise.
38954
38955 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38956
38957         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
38958         findings.
38959
38960 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
38961             Bruno Haible  <bruno@clisp.org>
38962
38963         * lib/unistd.in.h: Include <winsock2.h>.
38964         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
38965         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
38966         Provide dummy declarations.
38967         (gethostname): Override.
38968         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
38969         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
38970         gl_PREREQ_SYS_H_WINSOCK2.
38971         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
38972         * doc/posix-functions/gethostname.texi: More details.
38973
38974 2008-10-25  Bruno Haible  <bruno@clisp.org>
38975
38976         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38977         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
38978         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
38979
38980         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
38981         here ...
38982         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
38983         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
38984         gl_UNISTD_H_DEFAULTS.
38985
38986 2008-10-25  Eric Blake  <ebb9@byu.net>
38987
38988         signbit: avoid spurious compiler failure
38989         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
38990         declarations inside function.
38991
38992 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38993             Bruno Haible  <bruno@clisp.org>
38994
38995         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
38996         * modules/random_r (Depends-on): Add stdint.
38997
38998 2008-10-24  Bruno Haible  <bruno@clisp.org>
38999
39000         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
39001         Eggert.
39002         * modules/strerror (License): Likewise.
39003
39004 2008-10-24  Jim Meyering  <meyering@redhat.com>
39005
39006         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
39007         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
39008
39009 2008-10-24  Eric Blake  <ebb9@byu.net>
39010
39011         getgroups: fix compilation when getgroups is available
39012         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
39013         but with <config.h> override of getgroups disabled.
39014
39015 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39016
39017         * doc/gnulib.texi (Header files): Add note about C++ problems.
39018         Explained by Bruno Haible <bruno@clisp.org>.
39019
39020 2008-10-23  Bruno Haible  <bruno@clisp.org>
39021
39022         Define a dummy SA_NODEFER macro on Interix.
39023         * lib/signal.in.h (SA_NODEFER): Define fallback.
39024         Reported by Aleksey Cheusov <cheusov@tut.by> via
39025         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39026
39027 2008-10-23  Bruno Haible  <bruno@clisp.org>
39028
39029         * modules/freadahead (License): Change to LGPLv2+.
39030         Suggested by Simon Josefsson.
39031
39032 2008-10-23  Jim Meyering  <meyering@redhat.com>
39033
39034         random_r: new module
39035         * modules/random_r: New file.
39036         * m4/random_r.m4: New file.
39037         * lib/random_r.c: New file, from glibc.
39038         * modules/random_r-tests: New file.
39039         * tests/test-random_r.c: New file.
39040         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39041          Declare.
39042         (RAND_MAX): Define.
39043         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39044         * modules/stdlib: Substitute them, too.
39045         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39046         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39047         * doc/glibc-functions/random_r.texi: Likewise.
39048         * doc/glibc-functions/setstate_r.texi: Likewise.
39049         * doc/glibc-functions/srandom_r.texi: Likewise.
39050         * config/srclist.txt: Mention it.
39051
39052 2008-10-23  David Lutterkort  <lutter@redhat.com>
39053
39054         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39055         link requirement
39056
39057 2008-10-23  Jim Meyering  <meyering@redhat.com>
39058
39059         selinux-h: mark parameters of stub functions as intentionally unused
39060         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39061         * lib/se-context.in.h: Likewise.
39062
39063 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39064
39065         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39066
39067 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39068
39069         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39070
39071 2008-10-22  Eric Blake  <ebb9@byu.net>
39072
39073         glthread/thread: avoid compiler warning
39074         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39075         Add unreachable abort to silence compiler.
39076
39077 2008-10-22  Eric Blake  <ebb9@byu.net>
39078
39079         netdb: also supply struct addrinfo for cygwin 1.5.x
39080         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39081         older cygwin.
39082         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39083         cygwin.
39084         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39085
39086 2008-10-22  Bruno Haible  <bruno@clisp.org>
39087
39088         * users.txt: Update entry about pspp.
39089
39090 2008-10-21  Bruno Haible  <bruno@clisp.org>
39091
39092         Simplification.
39093         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39094         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39095
39096         Simplification.
39097         * lib/ioctl.c (ioctl): Don't undefine.
39098         * lib/socket.c (socket): Don't undefine.
39099
39100         Remove unused module indicator macros.
39101         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39102         GNULIB_$1 as a C macro.
39103
39104         * doc/posix-functions/close.texi: Undo last change.
39105         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39106         Windows platforms.
39107
39108 2008-10-21  Bruno Haible  <bruno@clisp.org>
39109
39110         Add gethostname() declaration to <unistd.h>.
39111         * lib/unistd.in.h (gethostname): New declaration.
39112         * lib/gethostname.c: Include <unistd.h>.
39113         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39114         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39116         and HAVE_GETHOSTNAME.
39117         * modules/gethostname (Depends-on): Add unistd.
39118         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39119         (Include): Specify <unistd.h>.
39120         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39121         HAVE_GETHOSTNAME.
39122         * tests/test-gethostname.c: Include <unistd.h> first.
39123
39124 2008-10-21  Bruno Haible  <bruno@clisp.org>
39125
39126         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39127         * modules/select-tests (Depends-on): Likewise.
39128         Reported by Simon Josefsson.
39129
39130 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39131
39132         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39133         * lib/accept.c: New file, based on winsock.c.
39134         * lib/bind.c: New file, based on winsock.c.
39135         * lib/connect.c: New file, based on winsock.c.
39136         * lib/getpeername.c: New file, based on winsock.c.
39137         * lib/getsockname.c: New file, based on winsock.c.
39138         * lib/getsockopt.c: New file, based on winsock.c.
39139         * lib/ioctl.c: New file, based on winsock.c.
39140         * lib/listen.c: New file, based on winsock.c.
39141         * lib/recv.c: New file, based on winsock.c.
39142         * lib/recvfrom.c: New file, based on winsock.c.
39143         * lib/send.c: New file, based on winsock.c.
39144         * lib/sendto.c: New file, based on winsock.c.
39145         * lib/setsockopt.c: New file, based on winsock.c.
39146         * lib/shutdown.c: New file, based on winsock.c.
39147         * lib/socket.c: New file, based on winsock.c.
39148         * lib/w32sock.h: New file, based on winsock.c.
39149         * lib/winsock.c: Remove file.
39150         * modules/accept: Likewise.
39151         * modules/bind: Likewise.
39152         * modules/connect: Likewise.
39153         * modules/getpeername: Likewise.
39154         * modules/getsockname: Likewise.
39155         * modules/getsockopt: Likewise.
39156         * modules/ioctl: Likewise.
39157         * modules/listen: Likewise.
39158         * modules/recv: Likewise.
39159         * modules/recvfrom: Likewise.
39160         * modules/send: Likewise.
39161         * modules/sendto: Likewise.
39162         * modules/setsockopt: Likewise.
39163         * modules/shutdown: Likewise.
39164         * modules/socket: Use socket.c instead of winsock.c.
39165         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39166         * doc/posix-functions/accept.texi: Doc fix.
39167         * doc/posix-functions/bind.texi: Doc fix.
39168         * doc/posix-functions/close.texi: Doc fix.
39169         * doc/posix-functions/connect.texi: Doc fix.
39170         * doc/posix-functions/getpeername.texi: Doc fix.
39171         * doc/posix-functions/getsockname.texi: Doc fix.
39172         * doc/posix-functions/getsockopt.texi: Doc fix.
39173         * doc/posix-functions/ioctl.texi: Doc fix.
39174         * doc/posix-functions/listen.texi: Doc fix.
39175         * doc/posix-functions/recv.texi: Doc fix.
39176         * doc/posix-functions/recvfrom.texi: Doc fix.
39177         * doc/posix-functions/send.texi: Doc fix.
39178         * doc/posix-functions/sendto.texi: Doc fix.
39179         * doc/posix-functions/setsockopt.texi: Doc fix.
39180         * doc/posix-functions/shutdown.texi: Doc fix.
39181         * doc/posix-functions/socket.texi: Doc fix.
39182
39183 2008-10-20  Bruno Haible  <bruno@clisp.org>
39184
39185         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39186         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39187         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39188         as an alias for SIGABRT.
39189         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39190         (sigaction): Map it to SIGABRT.
39191         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39192
39193 2008-10-20  Bruno Haible  <bruno@clisp.org>
39194
39195         * lib/fts.c: Don't include lstat.h.
39196         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39197
39198         Move the lstat() declaration to <sys/stat.h>.
39199         * lib/lstat.h: Remove file.
39200         * lib/sys_stat.in.h: Add special invocation convention.
39201         (lstat): New declaration.
39202         * lib/lstat.c (orig_lstat): New function.
39203         (rpl_lstat): Use orig_lstat instead of lstat.
39204         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39205         AC_C_INLINE. Set REPLACE_LSTAT.
39206         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39207         and REPLACE_LSTAT.
39208         * modules/lstat (Files): Remove lib/lstat.h.
39209         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39210         (Include): Specify <sys/stat.h> instead of lstat.h.
39211         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39212         REPLACE_LSTAT.
39213         * NEWS: Mention the change.
39214
39215 2008-10-20  Bruno Haible  <bruno@clisp.org>
39216
39217         * modules/posix_spawn-tests: New file.
39218         * tests/test-posix_spawn3.c: New file.
39219
39220 2008-10-20  Bruno Haible  <bruno@clisp.org>
39221
39222         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39223         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39224         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39225         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39226         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39227
39228 2008-10-20  Bruno Haible  <bruno@clisp.org>
39229
39230         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39231         of posix_spawn on AIX 5.3.
39232
39233 2008-10-20  Bruno Haible  <bruno@clisp.org>
39234
39235         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39236
39237 2008-10-20  Bruno Haible  <bruno@clisp.org>
39238
39239         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
39240         of AC_LANG_PROGRAM.
39241
39242 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39243
39244         * lib/netdb.in.h: Don't define GNU specific constants until they
39245         are supported or needed.  Reported by Bruno Haible
39246         <bruno@clisp.org>.
39247
39248 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39249
39250         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
39251
39252 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39253
39254         * lib/getaddrinfo.h: Remove file.
39255         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
39256         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
39257         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
39258         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
39259         * modules/netdb: Substitute GNULIB_GETADDRINFO.
39260         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
39261         * tests/test-getaddrinfo.c: Likewise.
39262         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
39263         * NEWS: Mention change.
39264
39265 2008-10-19  Bruno Haible  <bruno@clisp.org>
39266
39267         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
39268
39269 2008-10-19  Bruno Haible  <bruno@clisp.org>
39270
39271         * lib/wait-process.c: Include simply <sys/wait.h>.
39272         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
39273         WIFSTOPPED): Remove fallback definitions.
39274         * modules/wait-process (Depends-on): Add sys_wait.
39275
39276         New module 'sys_wait'.
39277         * modules/sys_wait: New file.
39278         * lib/sys_wait.in.h: New file, partially copied from
39279         lib/wait-process.c.
39280         * m4/sys_wait_h.m4: New file.
39281         * doc/posix-headers/sys_wait.texi: Mention the new module.
39282
39283 2008-10-19  Bruno Haible  <bruno@clisp.org>
39284
39285         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
39286
39287 2008-10-19  Bruno Haible  <bruno@clisp.org>
39288
39289         Assume that waitpid() fills an 'int' status, not a 'union wait'.
39290         * lib/wait-process.c (WAIT_T): Remove type.
39291         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
39292         (wait_subprocess): Update.
39293
39294 2008-10-19  Bruno Haible  <bruno@clisp.org>
39295
39296         New module 'atoll'.
39297         * modules/atoll: New file.
39298         * lib/stdlib.in.h (atoll): New declaration.
39299         * lib/atoll.c: New file, from glibc with modifications.
39300         * m4/atoll.m4: New file.
39301         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
39302         HAVE_ATOLL.
39303         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
39304         * doc/posix-functions/atoll.texi: Mention the new module.
39305
39306 2008-10-19  Bruno Haible  <bruno@clisp.org>
39307
39308         Add strtoull() declaration to <stdlib.h>.
39309         * lib/stdlib.in.h (strtoull): New declaration.
39310         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39311         Set HAVE_STRTOULL.
39312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
39313         HAVE_STRTOULL.
39314         * modules/strtoull (Depends-on): Add stdlib.
39315         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39316         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
39317         HAVE_STRTOULL.
39318
39319 2008-10-19  Bruno Haible  <bruno@clisp.org>
39320
39321         Add strtoll() declaration to <stdlib.h>.
39322         * lib/stdlib.in.h (strtoll): New declaration.
39323         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39324         Set HAVE_STRTOLL.
39325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
39326         HAVE_STRTOLL.
39327         * modules/strtoll (Depends-on): Add stdlib.
39328         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39329         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39330
39331 2008-10-19  Bruno Haible  <bruno@clisp.org>
39332
39333         * modules/bcopy (Depends-on): Add strings.
39334         (Include): Specify <strings.h>.
39335
39336 2008-10-19  Bruno Haible  <bruno@clisp.org>
39337
39338         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39339
39340 2008-10-19  Bruno Haible  <bruno@clisp.org>
39341
39342         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39343         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39344         mingw.
39345
39346 2008-10-19  Bruno Haible  <bruno@clisp.org>
39347
39348         * lib/atanl.c: Don't include isnanl.h.
39349         * lib/cosl.c: Likewise.
39350         * lib/ldexpl.c: Likewise.
39351         * lib/logl.c: Likewise.
39352         * lib/sinl.c: Likewise.
39353         * lib/sqrtl.c: Likewise.
39354         * lib/tanl.c: Likewise.
39355
39356         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39357         * lib/isnanf.h: Remove file.
39358         * lib/isnand.h: Remove file.
39359         * lib/isnanl.h: Remove file.
39360         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39361         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39362         macros.
39363         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39364         HAVE_ISNANF, don't define it as a C macro.
39365         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39366         HAVE_ISNAND, don't define it as a C macro.
39367         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39368         HAVE_ISNANL, don't define it as a C macro.
39369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39370         HAVE_ISNAN[FDL].
39371         * modules/isnanf (Files): Remove lib/isnanf.h.
39372         (Depends-on): Add math.
39373         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39374         (Include): Specify <math.h> instead of isnanf.h.
39375         * modules/isnand (Files): Remove lib/isnand.h.
39376         (Depends-on): Add math.
39377         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39378         (Include): Specify <math.h> instead of isnand.h.
39379         * modules/isnanl (Files): Remove lib/isnanl.h.
39380         (Depends-on): Add math.
39381         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39382         (Include): Specify <math.h> instead of isnanl.h.
39383         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39384         HAVE_ISNAN[FDL].
39385         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39386         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39387         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39388         * NEWS: Mention the change.
39389
39390 2008-10-18  Bruno Haible  <bruno@clisp.org>
39391
39392         Add getusershell(), setusershell(), endusershell() declarations to
39393         <unistd.h>.
39394         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39395         declarations.
39396         * lib/getusershell.c: Include unistd.h.
39397         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39398         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39399         HAVE_GETUSERSHELL.
39400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39401         and HAVE_GETUSERSHELL.
39402         * modules/getusershell (Depends-on): Add unistd, extensions.
39403         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39404         (Include): Specify <unistd.h>.
39405         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
39406         HAVE_GETUSERSHELL.
39407
39408 2008-10-18  Bruno Haible  <bruno@clisp.org>
39409
39410         Add a getloadavg() declaration to <stdlib.h>.
39411         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
39412         getloadavg declaration.
39413         (getloadavg): New declaration.
39414         * lib/getloadavg.c: Include <stdlib.h> first.
39415         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
39416         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
39417         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
39418         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
39419         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39420         * modules/getloadavg (Depends-on): Add stdlib, extensions.
39421         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39422         (Include): Specify <stdlib.h>.
39423         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
39424         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39425
39426 2008-10-18  Bruno Haible  <bruno@clisp.org>
39427
39428         * lib/dirchownmod.c: Don't include lchmod.h.
39429
39430         Move the lchmod() declaration to <sys/stat.h>.
39431         * lib/lchmod.h: Remove file.
39432         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
39433         (lchmod): New declaration, moved here from lib/lchown.h.
39434         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
39435         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
39436         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
39437         and HAVE_LCHMOD.
39438         * modules/lchmod (Files): Remove lib/lchmod.h.
39439         (Depends-on): Add sys_stat, extensions.
39440         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39441         (Include): Specify <sys/stat.h> instead of lchmod.h.
39442         * modules/sys_stat (Depends-on): Add link-warning.
39443         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
39444         definition of GL_LINK_WARNING.
39445         * NEWS: Mention the change.
39446
39447 2008-10-18  Bruno Haible  <bruno@clisp.org>
39448
39449         * lib/fchdir.c: Don't include dirfd.h.
39450         * lib/fts.c: Likewise.
39451         * lib/getcwd.c: Likewise.
39452         * lib/glob.c: Likewise.
39453
39454         Move the dirfd() declaration to <dirent.h>.
39455         * lib/dirfd.h: Remove file.
39456         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
39457         (dirfd): New declaration.
39458         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
39459         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
39460         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
39461         HAVE_DECL_DIRFD.
39462         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
39463         HAVE_DECL_DIRFD.
39464         * modules/dirfd (Files): Remove lib/dirfd.h.
39465         (Depends-on): Add dirent, extensions.
39466         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
39467         (Include): Specify <dirent.h> instead of dirfd.h.
39468         * modules/dirent (Depends-on): Add link-warning.
39469         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
39470         definition of GL_LINK_WARNING.
39471         * NEWS: Mention the change.
39472
39473 2008-10-18  Bruno Haible  <bruno@clisp.org>
39474
39475         Move the euidaccess() declaration to <unistd.h>.
39476         * lib/euidaccess.h: Remove file.
39477         * lib/unistd.in.h (euidaccess): New declaration.
39478         * lib/euidaccess.c: Don't include euidaccess.h.
39479         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
39480         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
39481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
39482         and HAVE_EUIDACCESS.
39483         * modules/euidaccess (Files): Remove lib/euidaccess.h.
39484         (Depends-on): Add unistd.
39485         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39486         (Include): Specify <unistd.h> instead of euidaccess.h.
39487         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
39488         HAVE_EUIDACCESS.
39489         * NEWS: Mention the change.
39490
39491 2008-10-18  Bruno Haible  <bruno@clisp.org>
39492
39493         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
39494
39495         Move the getdomainname() declaration to <unistd.h>.
39496         * lib/getdomainname.h: Remove file.
39497         * lib/unistd.in.h (getdomainname): New declaration.
39498         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
39499         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39500         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39501         HAVE_GETDOMAINNAME.
39502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39503         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
39504         * modules/getdomainname (Files): Remove lib/getdomainname.h.
39505         (Depends-on): Add unistd, extensions.
39506         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39507         (Includes): Specify <unistd.h> instead of getdomainname.h.
39508         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
39509         HAVE_GETDOMAINNAME.
39510         * NEWS: Mention the change.
39511
39512 2008-10-18  Bruno Haible  <bruno@clisp.org>
39513
39514         * modules/dirent: New file.
39515         * m4/dirent_h.m4: New file.
39516         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
39517         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
39518         * modules/fchdir (Files): Remove lib/dirent.in.h.
39519         (Depends-on): Add dirent.
39520         (Makefile.am): Move rules to modules/dirent.
39521         * doc/posix-headers/dirent.texi: Mention the new module.
39522
39523 2008-10-18  Bruno Haible  <bruno@clisp.org>
39524
39525         Avoid -Wunused-parameter warnings in public gnulib header files.
39526         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
39527         macro.
39528         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
39529
39530 2008-10-18  Bruno Haible  <bruno@clisp.org>
39531
39532         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
39533         * doc/glibc-functions/error.texi: Mention the module 'error'.
39534         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
39535         * doc/glibc-functions/getdomainname.texi: Mention the module
39536         'getdomainname'.
39537         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
39538         * doc/glibc-functions/getpagesize.texi: Mention the module
39539         'getpagesize'.
39540         * doc/glibc-functions/getusershell.texi: Mention the module
39541         'getusershell'.
39542         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
39543         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
39544         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
39545         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
39546         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
39547         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
39548         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
39549         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
39550         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
39551         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
39552         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
39553         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
39554         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
39555         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
39556
39557 2008-10-17  Bruno Haible  <bruno@clisp.org>
39558
39559         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
39560         HP-UX and IRIX, use -0.0L.
39561         * tests/test-ceill.c (minus_zero): Likewise.
39562         * tests/test-floorl.c (minus_zero): Likewise.
39563         * tests/test-frexpl.c (minus_zero): Likewise.
39564         * tests/test-isnan.c (minus_zerol): Likewise.
39565         * tests/test-isnanl.h (minus_zero): Likewise.
39566         * tests/test-ldexpl.c (minus_zero): Likewise.
39567         * tests/test-roundl.c (minus_zero): Likewise.
39568         * tests/test-signbit.c (minus_zerol): Likewise.
39569         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39570         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39571         * tests/test-truncl.c (minus_zero): Likewise.
39572         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39573         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39574         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
39575         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39576
39577 2008-10-17  Bruno Haible  <bruno@clisp.org>
39578
39579         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
39580         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
39581         that it gets activated only for gcc >= 3.0.
39582         * lib/dirent.in.h: Likewise.
39583         * lib/errno.in.h: Likewise.
39584         * lib/fcntl.in.h: Likewise.
39585         * lib/float.in.h: Likewise.
39586         * lib/iconv.in.h: Likewise.
39587         * lib/inttypes.in.h: Likewise.
39588         * lib/locale.in.h: Likewise.
39589         * lib/math.in.h: Likewise.
39590         * lib/netdb.in.h: Likewise.
39591         * lib/netinet_in.in.h: Likewise.
39592         * lib/search.in.h: Likewise.
39593         * lib/signal.in.h: Likewise.
39594         * lib/spawn.in.h: Likewise.
39595         * lib/stdarg.in.h: Likewise.
39596         * lib/stdint.in.h: Likewise.
39597         * lib/stdio.in.h: Likewise.
39598         * lib/stdlib.in.h: Likewise.
39599         * lib/string.in.h: Likewise.
39600         * lib/strings.in.h: Likewise.
39601         * lib/sys_file.in.h: Likewise.
39602         * lib/sys_ioctl.in.h: Likewise.
39603         * lib/sys_select.in.h: Likewise.
39604         * lib/sys_socket.in.h: Likewise.
39605         * lib/sys_stat.in.h: Likewise.
39606         * lib/sys_time.in.h: Likewise.
39607         * lib/sysexits.in.h: Likewise.
39608         * lib/time.in.h: Likewise.
39609         * lib/unistd.in.h: Likewise.
39610         * lib/wchar.in.h: Likewise.
39611         * lib/wctype.in.h: Likewise.
39612         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39613
39614 2008-10-17  Jim Meyering  <meyering@redhat.com>
39615
39616         ignore-value: don't depend on inline module
39617         * modules/ignore-value (Depends-on): Remove 'inline'.
39618         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
39619         Suggestion from Bruno Haible.
39620
39621 2008-10-17  Bruno Haible  <bruno@clisp.org>
39622
39623         New implementation of condition variables for Win32.
39624         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
39625         (gl_linked_waitqueue_t): New type.
39626         (gl_cond_t): Use it.
39627         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
39628         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
39629         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
39630         (glthread_cond_init_func, glthread_cond_wait_func,
39631         glthread_cond_timedwait_func, glthread_cond_signal_func,
39632         glthread_cond_broadcast_func, glthread_cond_destroy_func):
39633         Reimplemented on the basis of gl_linked_waitqueue_t.
39634         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
39635         gl_waitqueue_t.
39636         (gl_rwlock_t): Update.
39637         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
39638
39639 2008-10-17  Simon Josefsson  <simon@josefsson.org>
39640
39641         * modules/recvfrom (Depends-on): Add dependency on getpeername.
39642         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39643
39644 2008-10-17  Jim Meyering  <meyering@redhat.com>
39645
39646         ignore-value: new module
39647         * modules/ignore-value: New file.
39648         * lib/ignore-value.h: New file.
39649         * MODULES.html.sh (Compiler warning management): New section,
39650         just for this module.  More to come.
39651
39652 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39653
39654         open-safer.c: avoid 'signed and unsigned in conditional...' warning
39655         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
39656         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
39657
39658 2008-10-16  Jim Meyering  <meyering@redhat.com>
39659
39660         openat-die.c: avoid 'no previous prototype' warning
39661         * lib/openat-die.c: Include "openat.h".
39662         Reported by Reuben Thomas <rrt@sc3d.org>.
39663
39664 2008-10-16  Simon Josefsson  <simon@josefsson.org>
39665
39666         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
39667         * lib/netdb.in.h: Fix typo.
39668         Reported by Bruno Haible  <bruno@clisp.org>
39669
39670         * lib/netdb.in.h: Include sys/socket.h for platforms without
39671         netdb.h, to get structures like hostent on MinGW.
39672         * modules/netdb (Depends-on): Add sys_socket.
39673
39674 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39675
39676         * modules/netdb, modules/netdb-tests: New file.
39677         * m4/netdb_h.m4: New file.
39678         * lib/netdb.in.h: Add, currently just an empty file pending
39679         definitions.
39680         * tests/test-netdb.c: New file.
39681         * doc/posix-headers/netdb.texi: Mention that we replace it if
39682         needed.
39683         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39684         netdb.
39685
39686 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39687
39688         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
39689         with code.
39690
39691 2008-10-13  Bruno Haible  <bruno@clisp.org>
39692
39693         * lib/glthread/cond.c (glthread_cond_wait_func,
39694         glthread_cond_timedwait_func): Add a comment.
39695
39696 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39697
39698         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
39699         * tests/test-select.c: Likewise,
39700
39701 2008-10-13  Bruno Haible  <bruno@clisp.org>
39702
39703         * lib/glthread/cond.c (glthread_cond_wait_func,
39704         glthread_cond_timedwait_func): Fix variable name.
39705         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39706
39707 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
39708
39709         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
39710         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
39711         struct sockaddr.sa_len.
39712         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
39713
39714 2008-10-13  Simon Josefsson  <simon@josefsson.org>
39715
39716         * build-aux/pmccabe2html: Add css and css_url parameters.
39717
39718 2008-10-12  Bruno Haible  <bruno@clisp.org>
39719
39720         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
39721         calling aclx_get.
39722         Reported by Rainer Tammer <tammer@tammer.net>.
39723
39724 2008-10-12  Bruno Haible  <bruno@clisp.org>
39725
39726         Use msvcrt aware primitives for creation/termination of Win32 threads.
39727         * lib/glthread/thread.c: Include <process.h>.
39728         (glthread_create_func): Use _beginthreadex instead of CreateThread.
39729         (wrapper_func): Update signature.
39730         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
39731
39732 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39733             Bruno Haible  <bruno@clisp.org>
39734
39735         Provide a Win32 implementation of the 'cond' module.
39736         * lib/glthread/cond.h [USE_WIN32]: New implementation.
39737         * lib/glthread/cond.c (glthread_cond_init_func,
39738         glthread_cond_wait_func, glthread_cond_timedwait_func,
39739         glthread_cond_signal_func, glthread_cond_broadcast_func,
39740         glthread_cond_destroy_func) [USE_WIN32]: New functions.
39741         * modules/cond (Dependencies): Add gettimeofday.
39742
39743 2008-10-11  Bruno Haible  <bruno@clisp.org>
39744
39745         Make sleep work on older versions of mingw.
39746         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
39747         only whether it exists.
39748         * doc/posix-functions/sleep.texi: Mention the problem with older
39749         versions of mingw.
39750
39751 2008-10-11  Bruno Haible  <bruno@clisp.org>
39752
39753         New module 'shutdown'.
39754         * modules/shutdown: New file.
39755         * lib/sys_socket.in.h (shutdown): New declaration.
39756         * lib/winsock.c (shutdown): New function.
39757         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39758         GNULIB_SHUTDOWN.
39759         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
39760         * doc/posix-functions/shutdown.texi: Document the new module.
39761
39762 2008-10-11  Jim Meyering  <meyering@redhat.com>
39763
39764         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
39765
39766 2008-10-11  Bruno Haible  <bruno@clisp.org>
39767
39768         New module 'fclose'.
39769         * modules/fclose: New file.
39770         * lib/stdio.in.h (fclose): New declaration.
39771         * lib/fclose.c: New file.
39772         * m4/fclose.m4: New file.
39773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
39774         REPLACE_FCLOSE.
39775         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
39776         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
39777         REPLACE_FCLOSE.
39778         * modules/close (Depends-on): fclose.
39779         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
39780
39781 2008-10-11  Bruno Haible  <bruno@clisp.org>
39782
39783         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
39784         set errno and don't call _close.
39785
39786 2008-10-10  Bruno Haible  <bruno@clisp.org>
39787
39788         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
39789         ACL, not afterwards. Fixes test failure on Cygwin.
39790
39791 2008-10-09  Ben Pfaff  <blp@gnu.org>
39792
39793         * build-aux/announce-gen: Fix gnulib version related part of usage
39794         message.  Die with a useful error message if no tarballs are
39795         found.
39796
39797 2008-10-10  Jim Meyering  <meyering@redhat.com>
39798
39799         bootstrap: use git's --depth=N option only if it's supported
39800         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
39801         recognize the --depth option.  Reported by Pádraig Brady.
39802
39803 2008-10-09  Bruno Haible  <bruno@clisp.org>
39804
39805         New module 'ioctl'.
39806         * modules/ioctl: New file.
39807         * lib/sys_socket.in.h (ioctl): Remove declaration.
39808         * lib/winsock.c: Include <sys/ioctl.h>.
39809         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
39810         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39811         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
39812         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
39813         * doc/posix-functions/ioctl.texi: Mention the new module.
39814
39815 2008-10-09  Bruno Haible  <bruno@clisp.org>
39816
39817         New module 'sys_ioctl'.
39818         * lib/sys_ioctl.in.h: New file.
39819         * m4/sys_ioctl_h.m4: New file.
39820         * modules/sys_ioctl: New file.
39821         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
39822
39823 2008-10-09  Bruno Haible  <bruno@clisp.org>
39824
39825         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
39826         * lib/winsock.c: Include <stdarg.h>.
39827         (rpl_ioctl): Change to second argument 'int' and then varargs.
39828
39829 2008-10-09  Bruno Haible  <bruno@clisp.org>
39830
39831         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
39832         when the sys_socket module is present and the system has <winsock2.h>.
39833
39834 2008-10-09  Bruno Haible  <bruno@clisp.org>
39835
39836         * doc/posix-functions/close.texi: Mention module 'close' instead of
39837         module 'sys_socket'.
39838
39839 2008-10-09  Bruno Haible  <bruno@clisp.org>
39840
39841         * doc/glibc-headers/sys_ioctl.texi: New file.
39842         * doc/gnulib.texi: Include it.
39843
39844 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39845             Bruno Haible  <bruno@clisp.org>
39846
39847         Combine the two replacements of 'close'.
39848         * lib/sys_socket.in.h (close): Define to a reminder to include
39849         <unistd.h>.
39850         (_gl_close_fd_maybe_socket): New declaration.
39851         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
39852         * lib/winsock.c (close): Remove undefinition.
39853         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
39854         needed for the gnulib module 'close'.
39855         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
39856         define to an error symbol or to a warning, if suitable.
39857         * lib/close.c: Include <sys/socket.h>.
39858         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
39859         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
39860         UNISTD_H_HAVE_WINSOCK2_H.
39861         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
39862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39863         UNISTD_H_HAVE_WINSOCK2_H.
39864         * modules/sys_socket (Files): Add m4/unistd_h.m4.
39865         (configure.ac): Set a module indicator.
39866         (Makefile.am): Substitute GNULIB_CLOSE.
39867         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
39868         * modules/poll-tests (Depends-on): Add close.
39869         * modules/select-tests (Depends-on): Likewise.
39870
39871 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39872             Bruno Haible  <bruno@clisp.org>
39873
39874         New module 'close'.
39875         * modules/close: New file.
39876         * lib/unistd.in.h (close): Move declaration out of the
39877         FCHDIR_REPLACEMENT scope.
39878         (_gl_unregister_fd): New declaration.
39879         * lib/close.c: New file.
39880         * lib/fchdir.c (rpl_close): Remove function.
39881         * m4/close.m4: New file.
39882         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
39883         close.
39884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
39885         REPLACE_CLOSE.
39886         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
39887         REPLACE_CLOSE.
39888         * modules/fchdir (Depends-on): Add close.
39889
39890 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39891             Bruno Haible  <bruno@clisp.org>
39892
39893         * lib/fcntl.in.h (open): Simplify conditionals.
39894         (_gl_register_fd): New declaration.
39895         * lib/fchdir.c (rpl_open): Remove function.
39896         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
39897         also.
39898         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
39899         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
39900         open.
39901
39902 2008-10-09  Jim Meyering  <meyering@redhat.com>
39903
39904         GNUmakefile: use the more name-space-friendly "_version"
39905         * top/GNUmakefile (_dummy): Update.
39906         (_version): Rename from "version".
39907
39908 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39909             Bruno Haible  <bruno@clisp.org>
39910
39911         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
39912         rpl_close.
39913         (_gl_register_fd): New function, extracted from rpl_open.
39914         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
39915         (rpl_open, rpl_opendir): Use _gl_register_fd.
39916
39917 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39918
39919         Fix organization of 'open' replacement.
39920         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
39921         (gl_FUNC_OPEN): Use it.
39922         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
39923
39924 2008-10-08  Bruno Haible  <bruno@clisp.org>
39925
39926         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
39927
39928 2008-10-08  Simon Josefsson  <simon@josefsson.org>
39929
39930         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
39931         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
39932         listen).
39933
39934 2008-10-08  Eric Blake  <ebb9@byu.net>
39935
39936         GNUmakefile: add 'make version' target
39937         * top/GNUmakefile (_curr-ver): Split version update rules...
39938         (version): ...into a target.
39939
39940 2008-10-07  Bruno Haible  <bruno@clisp.org>
39941
39942         Use a more portable replacement expression for -0.0L.
39943         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
39944         instead of -0.0L. Fix m4 quotation.
39945
39946         * tests/test-signbit.c: Include <float.h>.
39947         (minus_zero): New variable.
39948         (test_signbitl): Use minus_zero instead of -zero.
39949         * modules/signbit-tests (Depends-on): Add float.
39950
39951         * tests/test-ceill.c: Include <float.h>.
39952         (zero): Remove variable.
39953         (minus_zero): New variable.
39954         (main): Use minus_zero instead of -zero.
39955         * modules/ceill-tests (Depends-on): Add float.
39956
39957         * tests/test-floorl.c: Include <float.h>.
39958         (zero): Remove variable.
39959         (minus_zero): New variable.
39960         (main): Use minus_zero instead of -zero.
39961         * modules/floorl-tests (Depends-on): Add float.
39962
39963         * tests/test-roundl.c: Include <float.h>.
39964         (zero): Remove variable.
39965         (minus_zero): New variable.
39966         (main): Use minus_zero instead of -zero.
39967         * modules/roundl-tests (Depends-on): Add float.
39968
39969         * tests/test-truncl.c: Include <float.h>.
39970         (zero): Remove variable.
39971         (minus_zero): New variable.
39972         (main): Use minus_zero instead of -zero.
39973         * modules/truncl-tests (Depends-on): Add float.
39974
39975         * tests/test-frexpl.c (zero): Remove variable.
39976         (minus_zero): New variable.
39977         (main): Use minus_zero instead of -zero.
39978         * modules/frexpl-tests (Depends-on): Add float.
39979
39980         * tests/test-isnan.c (zerol): Remove variable.
39981         (minus_zerol): New variable.
39982         (test_long_double): Use minus_zerol instead of -zerol.
39983         * modules/isnan-tests (Depends-on): Add float.
39984
39985         * tests/test-isnanl.h (zero): Remove variable.
39986         (minus_zero): New variable.
39987         (main): Use minus_zero instead of -zero.
39988         * modules/isnanl-nolibm-tests (Depends-on): Add float.
39989         * modules/isnanl-tests (Depends-on): Add float.
39990
39991         * tests/test-ldexpl.c (zero): Remove variable.
39992         (minus_zero): New variable.
39993         (main): Use minus_zero instead of -zero.
39994         * modules/ldexpl-tests (Depends-on): Add float.
39995
39996         * tests/test-snprintf-posix.h (zerol): Remove variable.
39997         (minus_zerol): New variable.
39998         (test_function): Use minus_zerol instead of -zerol.
39999         * modules/snprintf-posix-tests (Depends-on): Add float.
40000         * modules/vsnprintf-posix-tests (Depends-on): Add float.
40001
40002         * tests/test-sprintf-posix.h (zerol): Remove variable.
40003         (minus_zerol): New variable.
40004         (test_function): Use minus_zerol instead of -zerol.
40005         * modules/sprintf-posix-tests (Depends-on): Add float.
40006         * modules/vsprintf-posix-tests (Depends-on): Add float.
40007
40008         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
40009         (minus_zerol): New variable.
40010         (test_function): Use minus_zerol instead of -zerol.
40011         * modules/vasnprintf-posix-tests (Depends-on): Add float.
40012
40013         * tests/test-vasprintf-posix.c (zerol): Remove variable.
40014         (minus_zerol): New variable.
40015         (test_function): Use minus_zerol instead of -zerol.
40016         * modules/vasprintf-posix-tests (Depends-on): Add float.
40017
40018 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40019
40020         * MODULES.html.sh (Support for building documentation): Mention
40021         pmccabe2html.  Sort entries.
40022
40023         Add pmccabe2html module, from gnupdf.
40024         * build-aux/pmccabe.css: New file.
40025         * build-aux/pmccabe2html: New file.
40026         * m4/pmccabe2html.m4: New file.
40027         * modules/pmccabe2html: New file.
40028
40029 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40030
40031         flock: new module
40032         * MODULES.html.sh: Add to list of modules.
40033         * lib/flock.c: flock implementation for Windows and Unix systems
40034         which have fcntl.
40035         * doc/glibc-functions/flock.texi: Update documentation.
40036         * lib/sys_file.in.h: <sys/file.h> header file.
40037         * m4/flock.m4: M4 macros.
40038         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40039         * modules/flock: flock module.
40040         * modules/flock-tests: flock tests module.
40041         * modules/sys_file: sys/file.h module.
40042         * tests/test-flock.c: test suite for flock.
40043
40044 2008-10-06  Jim Meyering  <meyering@redhat.com>
40045
40046         bootstrap: check for LT_INIT more portably still ;-)
40047         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40048         Spotted by Bruno Haible.
40049
40050 2008-10-06  Eric Blake  <ebb9@byu.net>
40051
40052         test-signbit: avoid tripping Irix cc bug on -0.0L
40053         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40054         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40055         entire testsuite consistent and avoids an Irix 6.2 bug.
40056
40057 2008-10-05  Bruno Haible  <bruno@clisp.org>
40058             Jim Meyering  <jim@meyering.net>
40059
40060         Add an option for ignoring EPIPE during close_stdout.
40061         * lib/closeout.h: Include <stdbool.h>.
40062         (close_stdout_set_ignore_EPIPE): New declaration.
40063         * lib/closeout.c: Include <stdbool.h>.
40064         (ignore_EPIPE): New variable.
40065         (close_stdout_set_ignore_EPIPE): New function.
40066         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40067         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40068         failure.
40069         * modules/closeout (Depends-on): Add stdbool.
40070
40071 2008-10-05  Bruno Haible  <bruno@clisp.org>
40072
40073         * modules/accept: New file.
40074         * modules/bind: New file.
40075         * modules/connect: New file.
40076         * modules/getpeername: New file.
40077         * modules/getsockname: New file.
40078         * modules/getsockopt: New file.
40079         * modules/listen: New file.
40080         * modules/recv: New file.
40081         * modules/recvfrom: New file.
40082         * modules/send: New file.
40083         * modules/sendto: New file.
40084         * modules/setsockopt: New file.
40085         * modules/socket: New file.
40086         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40087         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40088         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40089         the particular module is requested. Add a link warning when the
40090         particular module is not requested.
40091         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40092         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40093         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40094         the particular module is requested.
40095         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40096         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40097         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40098         * modules/sys_socket (Depends-on): Add link-warning.
40099         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40100         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40101         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40102         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40103         GL_LINK_WARNING.
40104         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40105         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40106         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40107         * doc/posix-functions/getpeername.texi: Mention the new module
40108         'getpeername'.
40109         * doc/posix-functions/getsockname.texi: Mention the new module
40110         'getsockname'.
40111         * doc/posix-functions/getsockopt.texi: Mention the new module
40112         'getsockopt'.
40113         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40114         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40115         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40116         * doc/posix-functions/send.texi: Mention the new module 'send'.
40117         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40118         * doc/posix-functions/setsockopt.texi: Mention the new module
40119         'setsockopt'.
40120         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40121         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40122         listen, connect, accept.
40123         * modules/select-tests (Depends-on): Likewise.
40124
40125 2008-10-05  Bruno Haible  <bruno@clisp.org>
40126
40127         * lib/winsock.c (strerror): Remove unused #undef.
40128         (rpl_close): Remove unused local variable.
40129
40130         * modules/sys_socket (Depends-on); Add errno.
40131
40132 2008-10-05  Bruno Haible  <bruno@clisp.org>
40133
40134         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40135         (select): Add a link warning when the 'select' module is not used.
40136         * modules/sys_select (Depends-on): Add link-warning.
40137         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40138         Suggested by Paolo Bonzini.
40139
40140 2008-10-05  Jim Meyering  <meyering@redhat.com>
40141
40142         bootstrap: check for LT_INIT more portably
40143         * build-aux/bootstrap: Avoid using grep -E, since it's not
40144         portable enough.  Suggestion from Bruno Haible.
40145
40146 2008-10-05  Bruno Haible  <bruno@clisp.org>
40147
40148         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40149         as being fixed by gnulib.
40150
40151 2008-10-05  Bruno Haible  <bruno@clisp.org>
40152
40153         * modules/select-tests: New file, mostly copied from
40154         modules/sys_select-tests.
40155         * tests/test-select.c: New file, mostly copied from
40156         tests/test-sys_select.c.
40157         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40158         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40159         (Makefile.am): Remove test_sys_select_LDADD.
40160
40161         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40162         to an undefined symbol, for an error message.
40163         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40164         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40165         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40166         winsock-select.c here.
40167         * modules/sys_select (Files): Remove lib/winsock-select.c.
40168         (Depends-on): Remove alloca.
40169         (Makefile.am): Substitute GNULIB_SELECT.
40170         * modules/select: New file.
40171         * doc/posix-functions/select.texi: Update.
40172
40173 2008-10-05  Bruno Haible  <bruno@clisp.org>
40174
40175         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40176         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40177         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40178         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40179         getdtablesize.
40180         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40181         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40182
40183 2008-10-05  Bruno Haible  <bruno@clisp.org>
40184
40185         * modules/getdtablesize-tests: New file.
40186         * tests/test-getdtablesize.c: New file.
40187
40188         New module 'getdtablesize'.
40189         * lib/unistd.in.h (getdtablesize): New declaration.
40190         * lib/getdtablesize.c: New file.
40191         * m4/getdtablesize.m4: New file.
40192         * modules/getdtablesize: New file.
40193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40194         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40195         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40196         HAVE_GETDTABLESIZE.
40197         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40198
40199 2008-10-05  Bruno Haible  <bruno@clisp.org>
40200
40201         * modules/sched (Makefile.am): Fix typo.
40202         Reported by Simon Josefsson.
40203
40204 2008-10-05  Jim Meyering  <meyering@redhat.com>
40205
40206         bootstrap: check for LT_INIT, too
40207         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40208         are deprecated.  Suggestion from Ralf Wildenhues.
40209
40210 2008-10-05  Bruno Haible  <bruno@clisp.org>
40211
40212         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40213         overriding them by ours.
40214         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40215
40216 2008-10-05  Jim Meyering  <meyering@redhat.com>
40217
40218         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40219         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40220         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40221
40222 2008-10-04  Bruno Haible  <bruno@clisp.org>
40223
40224         * modules/dup2 (License): Change to LGPLv2+.
40225         * modules/sleep (License): Likewise.
40226         * modules/perror (License): Likewise.
40227         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40228         Blake.
40229         * modules/signal (License): Likewise.
40230         * modules/sigprocmask (License): Likewise.
40231         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40232         Meyering.
40233
40234 2008-10-04  Bruno Haible  <bruno@clisp.org>
40235
40236         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
40237         Reported by Rainer Tammer <tammer@tammer.net>.
40238
40239 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
40240             Bruno Haible  <bruno@clisp.org>
40241
40242         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
40243         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
40244         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
40245
40246 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
40247
40248         filevercmp: new module
40249         * lib/filevercmp.h: New function filevercmp comparing version strings.
40250         * lib/filevercmp.c: Implementation of filevercmp function.
40251         * modules/filevercmp: Module metadata.
40252         * tests/test-filevercmp.c: Unit test for new module.
40253         * modules/filevercmp-tests: Unit test metadata.
40254         * MODULES.html.sh: Add filevercmp module.
40255
40256 2008-10-03  Bruno Haible  <bruno@clisp.org>
40257
40258         * lib/c-ctype.h: Add comment.
40259         Reported by Jim Meyering.
40260
40261 2008-10-02  Bruno Haible  <bruno@clisp.org>
40262
40263         * modules/posix_spawn-internal (Depends-on): Add 'open'.
40264
40265 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40266
40267         * build-aux/bootstrap: Allow renaming bootstrap, and change the
40268         name of bootstrap.conf accordingly.
40269
40270 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40271
40272         * build-aux/bootstrap: Install git-merge-changelog configuration
40273         items into .gitconfig if needed.
40274
40275 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40276
40277         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
40278         git repository, and initialize/update it accordingly.
40279
40280 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
40281
40282         * modules/fsync-tests: New file.
40283         * tests/test-fsync.c: New file.
40284
40285         New module 'fsync'.
40286         * lib/fsync.c: New file.
40287         * m4/fsync.m4: New file.
40288         * modules/fsync: New file.
40289         * lib/unistd.in.h (fsync): New declaration.
40290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
40291         GNULIB_FSYNC and HAVE_FSYNC.
40292         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
40293         * MODULES.html.sh (posix_functions): Add fsync.
40294         * doc/posix-functions/fsync.texi: Mention the new module.
40295
40296 2008-10-02  Jim Meyering  <meyering@redhat.com>
40297
40298         fts.c: sync with similar code from coreutils' remove.c
40299         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
40300         Guard also with "#if defined __linux__", since for now at least,
40301         this code is Linux-kernel-specific.
40302
40303 2008-10-02  Jim Meyering  <meyering@redhat.com>
40304
40305         fts: bug fixes
40306         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
40307         Include <sys/vfs.h>, not <sys/statfs.h>.
40308
40309         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
40310         Include <sys/vfs.h>, not <sys/statfs.h>.
40311
40312 2008-10-01  Bruno Haible  <bruno@clisp.org>
40313
40314         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
40315         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
40316         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
40317         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
40318         * doc/posix-functions/posix_spawnp.texi: Likewise.
40319         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
40320         whether posix_spawn actually works.
40321         * m4/pipe.m4 (gl_PIPE): Likewise.
40322         * modules/execute (Files): Add m4/posix_spawn.m4.
40323         * modules/pipe (Files): Add m4/posix_spawn.m4.
40324         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
40325
40326 2008-10-01  Jim Meyering  <meyering@redhat.com>
40327
40328         remove trailing spaces
40329         * NEWS: Likewise.
40330         * lib/poll.c (poll): Likewise.
40331         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40332         * lib/winsock.c (rpl_close): Likewise.
40333         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40334         * modules/yield: Likewise.
40335         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40336         * tests/test-sys_select.c (connect_to_socket): Likewise.
40337
40338         fts.c: adjust a new interface to be more generally useful
40339         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40340         (fts_build): Adjust caller.
40341
40342 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40343
40344         * modules/cond-tests: New file.
40345         * tests/test-cond.c: New file.
40346
40347 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40348             Bruno Haible  <bruno@clisp.org>
40349
40350         * modules/cond (Dependencies): Add errno, time.
40351         * lib/glthread/cond.h: Include <time.h>.
40352         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40353         across platforms.
40354
40355 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40356             Bruno Haible  <bruno@clisp.org>
40357
40358         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40359
40360 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40361             Bruno Haible  <bruno@clisp.org>
40362
40363         * modules/tls-tests (Depends-on): Add thread, yield.
40364         (configure.ac): Remove all checks.
40365         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40366         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40367         gl_thread_self): Remove definitions. Include glthread/thread.h and
40368         glthread/yield.h instead.
40369         (test_tls): Pass an additional NULL argument to gl_thread_join.
40370
40371 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40372             Bruno Haible  <bruno@clisp.org>
40373
40374         * modules/lock-tests (Depends-on): Add thread, yield.
40375         (configure.ac): Remove all checks.
40376         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40377         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40378         gl_thread_self): Remove definitions. Include glthread/thread.h and
40379         glthread/yield.h instead.
40380         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40381         additional NULL argument to gl_thread_join.
40382
40383 2008-09-30  Bruno Haible  <bruno@clisp.org>
40384
40385         Fix the Win32 implementation of the 'thread' module.
40386         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40387         pointer type.
40388         (gl_thread_self): Invoke gl_thread_self_func.
40389         (gl_thread_self_func): New declaration.
40390         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40391         (do_init_self_key, init_self_key): New functions.
40392         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40393         Remove some fields.
40394         (running_threads, running_lock): Remove variables.
40395         (get_current_thread_handle): New function.
40396         (gl_thread_self_func, wrapper_func, glthread_create_func,
40397         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40398         simplified.
40399
40400 2008-09-30  Bruno Haible  <bruno@clisp.org>
40401
40402         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
40403         files.
40404
40405 2008-09-30  Jim Meyering  <meyering@redhat.com>
40406
40407         fts.m4: correct the test for statfs.f_type
40408         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
40409         when checking for statfs.f_type.
40410
40411 2008-09-15  Simon Josefsson  <simon@josefsson.org>
40412
40413         tests: avoid some compiler warnings
40414         * tests/test-memchr.c (main): Pass NULL indirectly.
40415         * tests/test-getdate.c (main): Remove unused variable 'ret'.
40416
40417 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
40418
40419         getdate.y: disallow countable dayshifts like "4 yesterday ago"
40420         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
40421         exactly specified dayshifts.
40422         (dayshift): New rule.
40423         (rel): Add dayshift.
40424         (relative_time_table) [tomorrow, yesterday, today, now]:
40425         Use tDAY_SHIFT in place of tDAY_UNIT.
40426         * tests/test-getdate.c: Add tests for now-disallowed countable
40427         dayshifts, e.g., "4 yesterday ago".
40428
40429 2008-09-29  Bruno Haible  <bruno@clisp.org>
40430
40431         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
40432         * tests/test-posix_spawn1.in.sh: Renamed from
40433         tests/test-posix_spawn.in.sh.
40434         * tests/test-posix_spawn2.c: New file.
40435         * tests/test-posix_spawn2.in.sh: New file.
40436         * modules/posix_spawnp-tests (Files): Update.
40437         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
40438
40439 2008-09-29  Bruno Haible  <bruno@clisp.org>
40440
40441         Propagate effects of putenv/setenv/unsetenv to child processes.
40442         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
40443         * lib/pipe.c (create_pipe): Likewise.
40444
40445 2008-09-29  Bruno Haible  <bruno@clisp.org>
40446
40447         Enable use of shell scripts as executables in mingw.
40448         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
40449         run the program as a shell script.
40450         * lib/pipe.c (create_pipe): Likewise.
40451         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
40452         resulting array.
40453
40454 2008-09-29  Eric Blake  <ebb9@byu.net>
40455
40456         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
40457
40458 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
40459
40460         * doc/posix-functions/accept.texi: Update mingw problems.
40461         * doc/posix-functions/bind.texi: Update mingw problems.
40462         * doc/posix-functions/close.texi: Update mingw problems.
40463         * doc/posix-functions/connect.texi: Update mingw problems.
40464         * doc/posix-functions/getpeername.texi: Update mingw problems.
40465         * doc/posix-functions/getsockname.texi: Update mingw problems.
40466         * doc/posix-functions/getsockopt.texi: Update mingw problems.
40467         * doc/posix-functions/ioctl.texi: Update mingw problems.
40468         * doc/posix-functions/listen.texi: Update mingw problems.
40469         * doc/posix-functions/recv.texi: Update mingw problems.
40470         * doc/posix-functions/recvfrom.texi: Update mingw problems.
40471         * doc/posix-functions/select.texi: Update mingw problems.
40472         * doc/posix-functions/send.texi: Update mingw problems.
40473         * doc/posix-functions/sendto.texi: Update mingw problems.
40474         * doc/posix-functions/setsockopt.texi: Update mingw problems.
40475         * doc/posix-functions/socket.texi: Update mingw problems.
40476
40477 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
40478             Bruno Haible  <bruno@clisp.org>
40479
40480         * lib/sys_select.in.h: Include sys/time.h.
40481         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
40482         * modules/sys_select: Depend on sys_time.
40483         * tests/test-sys_select.c: Test that sys/select.h defines struct
40484         timeval fully.
40485
40486 2008-09-29  Bruno Haible  <bruno@clisp.org>
40487
40488         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
40489         * lib/sys_select.in.h: Likewise.
40490
40491 2008-09-29  Bruno Haible  <bruno@clisp.org>
40492
40493         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
40494
40495 2008-09-29  Bruno Haible  <bruno@clisp.org>
40496
40497         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
40498         Set LIBSOCKET instead of augmenting LIBS.
40499         * modules/sockets (Link): New section.
40500         * modules/sockets-tests (test_sockets_LDADD): New variable.
40501         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
40502         * modules/poll-tests (test_poll_LDADD): New variable.
40503         * NEWS: Document the change.
40504
40505 2008-09-29  Bruno Haible  <bruno@clisp.org>
40506
40507         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
40508         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
40509         ARPA_INET_H directly.
40510         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40511
40512 2008-09-28  Bruno Haible  <bruno@clisp.org>
40513
40514         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
40515         from gl_HEADER_SYS_SOCKET.
40516         (gl_HEADER_SYS_SOCKET): Invoke it.
40517         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40518
40519 2008-09-28  Bruno Haible  <bruno@clisp.org>
40520
40521         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
40522         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
40523         Needed on OSF/1 4.0.
40524
40525 2008-09-28  Bruno Haible  <bruno@clisp.org>
40526
40527         Override open more carefully.
40528         * lib/open.c (orig_open): New function.
40529         (rpl_open): Use orig_open instead of open.
40530         * lib/fcntl.in.h: Add special invocation convention.
40531         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
40532         (gl_FUNC_OPEN): Invoke it.
40533
40534         Override freopen more carefully.
40535         * lib/freopen.c (orig_freopen): New function.
40536         (rpl_freopen): Use orig_freopen instead of freopen.
40537         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
40538         (gl_FUNC_FREOPEN): Invoke it.
40539
40540         Override fopen more carefully.
40541         * lib/fopen.c (orig_fopen): New function.
40542         (rpl_fopen): Use orig_fopen instead of fopen.
40543         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
40544         (gl_FUNC_FOPEN): Invoke it.
40545         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
40546
40547 2008-09-28  Bruno Haible  <bruno@clisp.org>
40548
40549         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
40550         SIGPIPE.
40551
40552 2008-09-28  Bruno Haible  <bruno@clisp.org>
40553
40554         * tests/test-sigaction.c (handler, main): Disable the check whether
40555         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
40556         glibc systems with LinuxThreads.
40557
40558 2008-09-28  Bruno Haible  <bruno@clisp.org>
40559
40560         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
40561
40562         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
40563         with AIX xlc.
40564         * lib/fcntl.in.h (open): Likewise.
40565         Reported by Rainer Tammer <tammer@tammer.net>.
40566
40567 2008-09-28  Bruno Haible  <bruno@clisp.org>
40568
40569         * modules/posix_spawnp-tests: New file.
40570         * tests/test-posix_spawn.c: New file.
40571         * tests/test-posix_spawn.in.sh: New file.
40572
40573         New module 'posix_spawnp'.
40574         * modules/posix_spawnp: New file.
40575         * lib/spawnp.c: New file, from GNU libc with modifications.
40576         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
40577
40578         New module 'posix_spawn'.
40579         * modules/posix_spawn: New file.
40580         * lib/spawn.c: New file, from GNU libc with modifications.
40581         * doc/posix-functions/posix_spawn.texi: Mention the new module.
40582
40583         New module 'posix_spawnattr_destroy'.
40584         * modules/posix_spawnattr_destroy: New file.
40585         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
40586         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
40587         module.
40588
40589         New module 'posix_spawnattr_setsigmask'.
40590         * modules/posix_spawnattr_setsigmask: New file.
40591         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
40592         modifications.
40593         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
40594         new module.
40595
40596         New module 'posix_spawnattr_getsigmask'.
40597         * modules/posix_spawnattr_getsigmask: New file.
40598         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
40599         modifications.
40600         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
40601         new module.
40602
40603         New module 'posix_spawnattr_setsigdefault'.
40604         * modules/posix_spawnattr_setsigdefault: New file.
40605         * lib/spawnattr_setdefault.c: New file, from GNU libc with
40606         modifications.
40607         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
40608         new module.
40609
40610         New module 'posix_spawnattr_getsigdefault'.
40611         * modules/posix_spawnattr_getsigdefault: New file.
40612         * lib/spawnattr_getdefault.c: New file, from GNU libc with
40613         modifications.
40614         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
40615         new module.
40616
40617         New module 'posix_spawnattr_setschedpolicy'.
40618         * modules/posix_spawnattr_setschedpolicy: New file.
40619         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
40620         modifications.
40621         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
40622         new module.
40623
40624         New module 'posix_spawnattr_getschedpolicy'.
40625         * modules/posix_spawnattr_getschedpolicy: New file.
40626         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
40627         modifications.
40628         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
40629         new module.
40630
40631         New module 'posix_spawnattr_setschedparam'.
40632         * modules/posix_spawnattr_setschedparam: New file.
40633         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
40634         modifications.
40635         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
40636         new module.
40637
40638         New module 'posix_spawnattr_getschedparam'.
40639         * modules/posix_spawnattr_getschedparam: New file.
40640         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
40641         modifications.
40642         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
40643         new module.
40644
40645         New module 'posix_spawnattr_setpgroup'.
40646         * modules/posix_spawnattr_setpgroup: New file.
40647         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
40648         modifications.
40649         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
40650         module.
40651
40652         New module 'posix_spawnattr_getpgroup'.
40653         * modules/posix_spawnattr_getpgroup: New file.
40654         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
40655         modifications.
40656         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
40657         module.
40658
40659         New module 'posix_spawnattr_setflags'.
40660         * modules/posix_spawnattr_setflags: New file.
40661         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
40662         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
40663         module.
40664
40665         New module 'posix_spawnattr_getflags'.
40666         * modules/posix_spawnattr_getflags: New file.
40667         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
40668         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
40669         module.
40670
40671         New module 'posix_spawnattr_init'.
40672         * modules/posix_spawnattr_init: New file.
40673         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
40674         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
40675         module.
40676
40677         New module 'posix_spawn_file_actions_destroy'.
40678         * modules/posix_spawn_file_actions_destroy: New file.
40679         * lib/spawn_faction_destroy.c: New file, from GNU libc with
40680         modifications.
40681         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
40682         the new module.
40683
40684         New module 'posix_spawn_file_actions_addopen'.
40685         * modules/posix_spawn_file_actions_addopen: New file.
40686         * lib/spawn_faction_addopen.c: New file, from GNU libc with
40687         modifications.
40688         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40689         the new module.
40690
40691         New module 'posix_spawn_file_actions_adddup2'.
40692         * modules/posix_spawn_file_actions_adddup2: New file.
40693         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
40694         modifications.
40695         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40696         the new module.
40697
40698         New module 'posix_spawn_file_actions_addclose'.
40699         * modules/posix_spawn_file_actions_addclose: New file.
40700         * lib/spawn_faction_addclose.c: New file, from GNU libc with
40701         modifications.
40702         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40703         the new module.
40704
40705         New module 'posix_spawn_file_actions_init'.
40706         * modules/posix_spawn_file_actions_init: New file.
40707         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
40708         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
40709         new module.
40710
40711         New module 'posix_spawn-internal'.
40712         * modules/posix_spawn-internal: New file.
40713         * lib/spawn_int.h: New file, from GNU libc with modifications.
40714         * lib/spawni.c: New file, from GNU libc with modifications.
40715         * m4/posix_spawn.m4: New file.
40716
40717         New module 'spawn'.
40718         * modules/spawn: New file.
40719         * lib/spawn.in.h: New file, from GNU libc with modifications.
40720         * m4/spawn_h.m4: New file.
40721         * doc/posix-headers/spawn.texi: Mention the new module.
40722
40723 2008-09-28  Bruno Haible  <bruno@clisp.org>
40724
40725         * modules/sched-tests: New file.
40726         * tests/test-sched.c: New file.
40727
40728         New module 'sched'.
40729         * modules/sched: New file.
40730         * lib/sched.in.h: New file.
40731         * m4/sched_h.m4: New file.
40732         * doc/posix-headers/sched.texi: Mention the new module.
40733
40734 2008-09-27  Eric Blake  <ebb9@byu.net>
40735
40736         Fix previous patch, and tweak references to $0.
40737         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
40738         (func_version, func_gnulib_dir): Don't call this program
40739         gnulib-tool.
40740         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
40741         with using $0 in function.
40742         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
40743         (func_fatal_error): Reuse the name the user invoked us with.
40744
40745 2008-09-27  Bruno Haible  <bruno@clisp.org>
40746
40747         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
40748         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
40749         (gl_ICONV_H): Not here.
40750         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
40751         instead of assigning ICONV_H directly.
40752
40753         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
40754         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
40755         WCHAR_H directly.
40756
40757 2008-09-27  Bruno Haible  <bruno@clisp.org>
40758
40759         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
40760         * modules/arpa_inet (Depends-on): Add link-warning.
40761         (Makefile.am): Insert the definition of GL_LINK-WARNING.
40762         * modules/unistd (Makefile.am): Likewise.
40763
40764 2008-09-26  Bruno Haible  <bruno@clisp.org>
40765
40766         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
40767         variables.
40768         (func_version): Essentially copied from gnulib-tool.
40769         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
40770         func_readlink): Copied from gnulib-tool.
40771
40772 2008-09-26  Bruno Haible  <bruno@clisp.org>
40773
40774         * gnulib-tool (func_version): Change directory to $gnulib_dir before
40775         invoking git-version-gen.
40776
40777 2008-09-26  Bruno Haible  <bruno@clisp.org>
40778
40779         * posix-modules: Update to directory names changed on 2008-01-19.
40780         Remove commas in output before splitting into words. No more need to
40781         avoid 'ftruncate' since 2007-02-19.
40782
40783 2008-09-26  Bruno Haible  <bruno@clisp.org>
40784
40785         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
40786
40787 2008-09-26  Bruno Haible  <bruno@clisp.org>
40788
40789         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
40790         * modules/fwriteerror (Depends-on): Add errno.
40791
40792 2008-09-26  Bruno Haible  <bruno@clisp.org>
40793
40794         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
40795         * tests/test-vc-list-files-cvs.sh: Likewise.
40796
40797 2008-09-26  Bruno Haible  <bruno@clisp.org>
40798
40799         * doc/posix-headers/sys_resource.texi: Reorder items.
40800
40801 2008-09-26  Jim Meyering  <meyering@redhat.com>
40802
40803         fts: tweak inode comparison function
40804         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
40805         inode numbers, as documented.
40806
40807         fts: sort dirent entries on inode number before traversing
40808         This avoids a quadratic, seek-related performance penalty when
40809         operating on a directory containing many entries (measurable at 10k;
40810         3.5 hours at 2 million entries with a cold cache) on certain types
40811         of file systems, including ext3 and ext4, but not tmpfs.
40812         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
40813         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
40814         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
40815         (fs_handles_readdir_ordered_dirents_efficiently): New function.
40816         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
40817         (fts_build): Set the stat.st_ino member from D_INO.
40818         If it is likely to be useful, sort dirent entries on inode number.
40819
40820         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
40821         and the struct statfs.f_type member.
40822         * modules/fts (Depends-on): Add d-ino.
40823
40824 2008-09-26  Bruno Haible  <bruno@clisp.org>
40825
40826         * modules/sigpipe-die (Depends-on): Add sigpipe.
40827
40828         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
40829         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
40830         and GNULIB_STDIO_H_SIGPIPE are set.
40831         * lib/stdio-write.c: New file.
40832         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
40833         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40834         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40835         REPLACE_STDIO_WRITE_FUNCS.
40836         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
40837         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40838         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40839         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
40840         * modules/stdio (Files): Add lib/stdio-write.c.
40841         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
40842         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40843         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40844         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
40845         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
40846         REPLACE_FPRINTF_POSIX.
40847         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
40848         REPLACE_PRINTF_POSIX.
40849         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
40850         REPLACE_VFPRINTF_POSIX.
40851         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
40852         REPLACE_VPRINTF_POSIX.
40853         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
40854         SIGPIPE issue.
40855         * doc/posix-functions/fputc.texi: Likewise.
40856         * doc/posix-functions/fputs.texi: Likewise.
40857         * doc/posix-functions/fwrite.texi: Likewise.
40858         * doc/posix-functions/printf.texi: Likewise.
40859         * doc/posix-functions/putc.texi: Likewise.
40860         * doc/posix-functions/putchar.texi: Likewise.
40861         * doc/posix-functions/puts.texi: Likewise.
40862         * doc/posix-functions/vfprintf.texi: Likewise.
40863         * doc/posix-functions/vprintf.texi: Likewise.
40864
40865         * modules/safe-write (Depends-on): Add write.
40866
40867         * modules/sigpipe-tests: New file.
40868         * tests/test-sigpipe.c: New file.
40869         * tests/test-sigpipe.sh: New file.
40870
40871         * modules/write: New file.
40872         * lib/unistd.in.h: Include <sys/types.h>.
40873         (write): New declaration.
40874         * lib/write.c: New file.
40875         * m4/write.m4: New file.
40876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40877         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
40878         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
40879         GNULIB_WRITE, REPLACE_WRITE.
40880         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
40881         and the SIGPIPE issue.
40882
40883         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
40884         (raise): New declaration.
40885         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
40886         (ext_signal): New function.
40887         (rpl_raise): New function.
40888         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
40889         GNULIB_SIGNAL_H_SIGPIPE.
40890         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
40891         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
40892
40893         * modules/sigpipe: New file.
40894         * m4/sigpipe.m4: New file.
40895
40896 2008-09-25  Derek Price  <derek@ximbiot.com>
40897             Bruno Haible  <bruno@clisp.org>
40898
40899         * gnulib-tool (func_import): Report all license incompatibilities, not
40900         just the first one.
40901
40902 2008-09-25  Bruno Haible  <bruno@clisp.org>
40903
40904         * gnulib-tool (func_import): When computing the edits, consider not
40905         only the Makefile.ams that exist but also those that will be generated.
40906
40907 2008-09-25  Simon Josefsson  <simon@josefsson.org>
40908
40909         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
40910         fixes gnulib-tool --test warning about duplicate dependency.
40911
40912 2008-09-25  Bruno Haible  <bruno@clisp.org>
40913
40914         * gnulib-tool: Don't ask the user to perform edits in the generated
40915         Makefile.ams.
40916         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
40917         apply to the Makefile.am being generated.
40918         (func_emit_tests_Makefile_am): Execute edits that apply to the
40919         Makefile.am being generated.
40920         (func_import): Setup list of Makefile.am edits before emitting the
40921         Makefile.ams, not at the end.
40922         (func_create_testdir): Update.
40923         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40924
40925 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40926
40927         * gnulib-tool (func_import): Store the --tests-base option in the
40928         comment in gnulib-cache.m4.
40929
40930 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
40931
40932         * NEWS: Document increased portability that sys_select now provides.
40933
40934         * lib/sys_select.in.h: Install select wrapper.
40935         * lib/sys_socket.in.h: Use more descriptive name when there is no
40936         select wrapper.
40937         * lib/winsock-select.c: New.
40938         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
40939         Require gl_HEADER_SYS_SOCKET.
40940         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
40941         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
40942         * tests/test-sys_select.c: Add functional tests.
40943
40944 2008-09-24  Eric Blake  <ebb9@byu.net>
40945
40946         open, fopen: close fd leak in last patch
40947         * lib/open.c (rpl_open): Close fd before returning error.
40948         * lib/fopen.c (rpl_fopen): Close fd before returning error.
40949         * doc/posix-functions/open.texi (open): Document that Irix also
40950         has the bug.
40951         * doc/posix-functions/fopen.texi (fopen): Likewise.
40952         Reported by Paolo Bonzini.
40953
40954 2008-09-24  Bruno Haible  <bruno@clisp.org>
40955
40956         Ensure that a filename ending in a slash cannot be used to access a
40957         non-directory.
40958         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
40959         to check whether it's really a directory.
40960         * lib/fopen.c: Include fcntl.h, unistd.h.
40961         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
40962         and fdopen().
40963         * modules/fopen (Depends-on): Add unistd.
40964         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
40965         * tests/test-fopen.c (main): Likewise.
40966         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
40967         * doc/posix-functions/fopen.texi: Likewise.
40968         Reported by Eric Blake.
40969
40970 2008-09-23  Eric Blake  <ebb9@byu.net>
40971
40972         c-stack: avoid compiler optimizations when provoking overflow
40973         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
40974         recursion harder to optimize, to ensure a stack overflow occurs.
40975         * tests/test-c-stack.c (recurse): Likewise.
40976         Borrowed from libsigsegv.
40977
40978         c-stack: work around Irix sigaltstack bug
40979         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
40980         whether sigaltstack uses wrong end of stack_t (copied in part from
40981         libsigsegv).
40982         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
40983         Irix bug, without requiring an over-allocation.
40984         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
40985         bug.
40986
40987         fopen: document mingw bug on directories
40988         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
40989         not allowing a stream visiting a directory, even though reading
40990         from such a stream is not portable.
40991
40992 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40993
40994         * lib/poll.c: Rewrite.
40995         * modules/poll: Depend on alloca.
40996
40997 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40998
40999         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
41000         instead define prototypes for a full set of wrappers.  Ensure
41001         that Cygwin does not use the compatibility code, which is only
41002         for MinGW.
41003         * lib/winsock.c: New.
41004         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
41005         * modules/sys_socket: Add lib/winsock.c.
41006
41007         * modules/poll-tests: Add errno and perror.
41008         * tests/test-poll.c: Use ioctl, not ioctlsocket.
41009
41010 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41011
41012         * tests/test-poll.c: Downgrade minimum needed Winsock version.
41013
41014 2008-09-23  Bruno Haible  <bruno@clisp.org>
41015
41016         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
41017         * doc/glibc-functions/*: Likewise.
41018
41019 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41020
41021         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41022         success.
41023
41024 2008-09-22  Eric Blake  <ebb9@byu.net>
41025             Bruno Haible  <bruno@clisp.org>
41026
41027         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41028         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41029         supply %A but mishandle pseudo-NaN.
41030         Reported by Simon Josefsson.
41031
41032 2008-09-21  Bruno Haible  <bruno@clisp.org>
41033
41034         * tests/test-lock.c (main): Tweak skip message.
41035         * tests/test-tls.c (main): Likewise.
41036
41037 2008-09-21  Bruno Haible  <bruno@clisp.org>
41038
41039         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41040         whether 'struct sigaction' has sa_sigaction here...
41041         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41042         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41043
41044 2008-09-21  Bruno Haible  <bruno@clisp.org>
41045
41046         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41047         section.
41048         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41049         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41050         the new section.
41051         (Support for obsolete systems lacking POSIX:2001): New section.
41052         (String handling <string.h>): Move strdup to the new section.
41053         Suggested by Simon Josefsson and Paolo Bonzini.
41054
41055 2008-09-21  Bruno Haible  <bruno@clisp.org>
41056
41057         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41058         exponents in %e and %g results on 'long double'. Needed for mingw's
41059         improved *printf functions.
41060         * tests/test-vasprintf-posix.c (test_function): Likewise.
41061         * tests/test-snprintf-posix.h (test_function): Likewise.
41062         * tests/test-sprintf-posix.h (test_function): Likewise.
41063         Reported by Eric Blake.
41064
41065 2008-09-21  Bruno Haible  <bruno@clisp.org>
41066
41067         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41068         * tests/test-sprintf-posix.h (test_function): Likewise.
41069
41070 2008-09-21  Bruno Haible  <bruno@clisp.org>
41071
41072         * modules/getpass (Depends-on): Add strdup-posix.
41073
41074         New module 'strdup-posix'.
41075         * modules/strdup-posix: New file.
41076         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41077         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41078         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41079         REPLACE_STRDUP.
41080         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41081         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41082         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41083         strdup-posix.
41084
41085         * modules/strdup (Depends-on): Remove malloc-posix.
41086
41087 2008-09-20  Bruno Haible  <bruno@clisp.org>
41088
41089         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41090         Wildenhues.
41091
41092 2008-09-20  Bruno Haible  <bruno@clisp.org>
41093
41094         Ensure that wint_t gets defined on IRIX 5.3.
41095         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41096         * lib/wctype.in.h (wint_t): Likewise.
41097         (__wctype_wint_t): Remove type.
41098         (isw*): Use wint_t instead of __wctype_wint_t.
41099         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41100         * modules/wchar (Files): Add m4/wint_t.m4.
41101         (Makefile.am): Substitute HAVE_WINT_T.
41102         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41103         * tests/test-wctype.c: Check that wint_t is defined.
41104         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41105         * doc/posix-headers/wctype.texi: Likewise.
41106         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41107
41108 2008-09-18  Bruno Haible  <bruno@clisp.org>
41109
41110         * gnulib-tool (func_exit): Update comment.
41111
41112 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41113
41114         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41115         assumes strdup exists and does not depend on strdup to return
41116         ENOMEM on out of memory conditions.
41117
41118 2008-09-18  Bruno Haible  <bruno@clisp.org>
41119
41120         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
41121         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41122         digits for the exponent.
41123
41124 2008-09-18  Jim Meyering  <meyering@redhat.com>
41125             Bruno Haible  <bruno@clisp.org>
41126
41127         * lib/vasnprintf.c (decimal_point_char): Define also if
41128         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41129
41130 2008-09-16  Bruno Haible  <bruno@clisp.org>
41131         and Eric Blake  <ebb9@byu.net>
41132
41133         vasnprintf: support Irix 5.3
41134         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41135         that mishandle long double infinity.
41136         Reported by Tom G. Christensen.
41137
41138 2008-09-16  Bruno Haible  <bruno@clisp.org>
41139
41140         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41141         Solaris 9.
41142         * doc/glibc-functions/alphasort.texi: Likewise.
41143         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41144
41145 2008-09-16  Jim Meyering  <meyering@redhat.com>
41146
41147         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41148         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41149         a umask modification leak out of a subshell.  Otherwise, the
41150         opensolaris /bin/sh would be accepted and thus cause unwarranted
41151         failures in the coreutils test suite.
41152
41153 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41154
41155         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41156         to succeed.
41157
41158 2008-09-16  Jim Meyering  <meyering@redhat.com>
41159
41160         avoid spurious test failure when library is built without ACL support
41161         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41162         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41163         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41164         * tests/test-copy-acl.sh: Likewise.
41165
41166 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41167
41168         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41169         based on character occurrence counts.
41170
41171 2008-09-15  Eric Blake  <ebb9@byu.net>
41172
41173         tests: avoid some compiler warnings
41174         * tests/test-memchr.c (main): Pass NULL indirectly.
41175         * tests/test-closein.c (main): Avoid unused variable.
41176
41177 2008-09-15  Bruno Haible  <bruno@clisp.org>
41178
41179         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41180         are missing on OpenBSD 4.0 individually.
41181         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41182
41183 2008-09-15  Bruno Haible  <bruno@clisp.org>
41184
41185         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41186         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41187         * doc/posix-functions/perror.texi: Likewise.
41188         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41189         is missing.
41190         Reported by Eric Blake.
41191
41192         * lib/errno.in.h: Use replacement values >= 2000.
41193         Reported by Eric Blake.
41194
41195 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41196
41197         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41198         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41199         limit.
41200         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41201         compareseq was aborted.
41202
41203 2008-09-14  Bruno Haible  <bruno@clisp.org>
41204
41205         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41206         yvec_edit_count.
41207         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41208         (fstrcmp_bounded): Simplify result computation accordingly.
41209
41210 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41211
41212         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41213         (fstrcmp): Define in terms of fstrcmp_bounded.
41214         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41215         lower_bound argument.
41216         Return quickly if the result is certainly < lower_bound.
41217         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41218
41219 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41220
41221         * lib/diffseq.h (EARLY_ABORT): New macro.
41222         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41223         evaluates to true.
41224
41225 2008-09-14  Bruno Haible  <bruno@clisp.org>
41226
41227         * modules/perror-tests: New file.
41228         * tests/test-perror.sh: New file.
41229         * tests/test-perror.c: New file.
41230
41231         New module 'perror'.
41232         * lib/stdio.in.h (perror): New declaration.
41233         * lib/perror.c: New file.
41234         * m4/perror.m4: New file.
41235         * modules/perror: New file.
41236         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
41237         * doc/posix-functions/perror.texi: Mention the perror module.
41238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
41239         REPLACE_PERROR.
41240         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
41241         REPLACE_PERROR.
41242
41243 2008-09-14  Bruno Haible  <bruno@clisp.org>
41244
41245         * modules/stdio (Makefile.am): Reorder to match the order in
41246         lib/stdio.in.h.
41247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41248
41249 2008-09-13  Bruno Haible  <bruno@clisp.org>
41250
41251         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
41252
41253 2008-09-13  Bruno Haible  <bruno@clisp.org>
41254
41255         Extend strerror to cover the added errno values.
41256         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
41257         (rpl_strerror): Provide error messages for the added errno values and
41258         for the WSA* values.
41259         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
41260         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
41261         strerror.
41262         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
41263         * modules/strerror (Depends-on): Add errno.
41264         * doc/posix-functions/strerror.texi: Document the change.
41265         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
41266         and EOVERFLOW.
41267
41268 2008-09-13  Bruno Haible  <bruno@clisp.org>
41269
41270         * modules/EOVERFLOW: Remove file.
41271         * m4/eoverflow.m4: Remove file.
41272         * modules/EOVERFLOW-tests: Remove file.
41273         * tests/test-EOVERFLOW.c: Remove file.
41274         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
41275         * modules/ftell (Depends-on): Likewise.
41276         * modules/getdelim (Depends-on): Likewise.
41277         * modules/getugroups (Depends-on): Likewise.
41278         * modules/poll (Depends-on): Likewise.
41279         * modules/snprintf (Depends-on): Likewise.
41280         * modules/sprintf-posix (Depends-on): Likewise.
41281         * modules/vasnprintf (Depends-on): Likewise.
41282         * modules/vasprintf (Depends-on): Likewise.
41283         * modules/vfprintf-posix (Depends-on): Likewise.
41284         * modules/vsnprintf (Depends-on): Likewise.
41285         * modules/vsprintf-posix (Depends-on): Likewise.
41286         * modules/xvasprintf (Depends-on): Likewise.
41287         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41288         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
41289         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
41290         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
41291         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41292         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
41293         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
41294         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
41295         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41296         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
41297         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
41298         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
41299         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41300         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
41301         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
41302         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
41303         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41304         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
41305         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
41306         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
41307         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41308         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
41309         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
41310         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
41311         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
41312         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41313         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
41314         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
41315         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
41316         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
41317         * MODULES.html.sh: Remove EOVERFLOW.
41318         * NEWS: Mention the change.
41319
41320 2008-09-13  Bruno Haible  <bruno@clisp.org>
41321
41322         * modules/errno-tests: New file.
41323         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
41324
41325         * lib/errno.in.h: New file.
41326         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
41327         * modules/errno: New file.
41328         * doc/posix-headers/errno.texi: Update documentation.
41329         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41330
41331 2008-09-13  Bruno Haible  <bruno@clisp.org>
41332
41333         * tests/test-poll.c: Use #if for native Windows, rather than testing
41334         __MSVCRT__.
41335
41336 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41337             Bruno Haible  <bruno@clisp.org>
41338
41339         * lib/glob.c: Don't include <pwd.h> on native Windows.
41340         (WINDOWS32): New macro.
41341         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41342
41343 2008-09-13  Bruno Haible  <bruno@clisp.org>
41344
41345         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41346         (ETIMEDOUT): Remove macro.
41347         (glthread_cond_timedwait_multithreaded): New declaration.
41348         (glthread_cond_timedwait): Use it.
41349         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41350         (glthread_cond_timedwait_multithreaded): New function.
41351
41352 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41353
41354         * modules/poll-tests: Do not check for io.h.
41355         * tests/test-poll.c: Check for __MSVCRT__ instead.
41356
41357 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41358
41359         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41360         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41361         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41362
41363 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41364
41365         * modules/poll-tests: New.
41366         * tests/test-poll.c: New.
41367
41368 2008-09-12  Eric Blake  <ebb9@byu.net>
41369
41370         frexp: test for NetBSD failure on -0.0
41371         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41372         not all, bugs from NetBSD 3.0 have been fixed.
41373         * doc/posix-functions/frexp.texi (frexp): Document bug.
41374         Reported by Thomas Klausner.
41375
41376         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41377         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41378         literal -0.0.
41379         Reported by Jonathan C. Patschke <jp@centtech.com>.
41380
41381 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41382
41383         * lib/glthread/cond.h: Use dummy implementation also if
41384         USE_WIN32_THREADS.
41385
41386 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41387
41388         * modules/fnmatch-posix (License): Change to LGPLv2+.
41389         * modules/fnmatch-gnu (License): Likewise.
41390
41391 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41392
41393         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41394
41395 2008-09-11  Jim Meyering  <meyering@redhat.com>
41396
41397         * users.txt: Add gtk-vnc.
41398
41399 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41400
41401         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
41402         rotate amounts.
41403
41404         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
41405         required for 16-bit and 8-bit rotates.
41406         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
41407         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
41408         UINT8_MAX instead of hard-coded constants.
41409         Suggested by Paul Eggert.
41410
41411 2008-09-07  Bruno Haible  <bruno@clisp.org>
41412
41413         * tests/test-striconveh.c (main): Check behaviour when converting from
41414         UTF-7.
41415
41416         Make striconveh work better with stateful encodings.
41417         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
41418         that iconv does not increment the inptr when returning -1/EINVAL.
41419
41420 2008-09-07  Bruno Haible  <bruno@clisp.org>
41421
41422         * build-aux/config.rpath: Update according to libtool-2.2.6.
41423         * build-aux/config.libpath: Likewise.
41424
41425 2008-09-06  Bruno Haible  <bruno@clisp.org>
41426
41427         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
41428         * lib/freadptr.c (freadptr): Likewise.
41429         * lib/freadseek.c (freadptrinc): Likewise.
41430         Reported by Simon Josefsson.
41431
41432 2008-09-06  Bruno Haible  <bruno@clisp.org>
41433
41434         * modules/freadptr (License): Change to LGPLv2+.
41435         * modules/freadseek (License): Likewise.
41436         Suggested by Eric Blake.
41437
41438         * modules/memchr2 (License): Change to LGPLv2+.
41439         Approved by Eric Blake.
41440
41441 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41442             Bruno Haible  <bruno@clisp.org>
41443
41444         Make gnulib-tool work with native 'sed' on AIX.
41445         * gnulib-tool (sed_noop): New variable.
41446         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
41447         func_add_or_update, func_create_testdir): Use it to initialize sed
41448         script variables.
41449         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41450
41451 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
41452             Bruno Haible  <bruno@clisp.org>
41453
41454         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
41455         also works after #include directives.
41456
41457 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
41458
41459         getdate.y: reject an out-of-range timezone value
41460         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
41461         the range [-24...+24].  When specified with only one or two digits,
41462         * tests/test-getdate.c: Tests for the fix.
41463         * doc/getdate.texi: Document this change.
41464
41465 2008-09-03  Bruno Haible  <bruno@clisp.org>
41466
41467         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
41468
41469 2008-09-02  Simon Josefsson  <simon@josefsson.org>
41470
41471         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
41472         <bruce.korb@gmail.com> with ideas from Ben Pfaff
41473         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
41474         Blake <ebb9@byu.net>.
41475
41476         * tests/test-bitrotate.c: Add more test vectors.
41477
41478 2008-09-02  Eric Blake  <ebb9@byu.net>
41479
41480         vasnprintf-posix: handle large precision via %.*d
41481         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
41482         when handling it ourselves.
41483         * tests/test-vasnprintf-posix.c (test_function): Add test.
41484         * tests/test-snprintf-posix.h (test_function): Likewise.
41485         * tests/test-sprintf-posix.h (test_function): Likewise.
41486         * tests/test-vasprintf-posix.c (test_function): Likewise.
41487         Reported by Alain Guibert.
41488
41489 2008-09-01  Eric Blake  <ebb9@byu.net>
41490
41491         c-stack: make configure-time check more robust
41492         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
41493         successful sigaction call.
41494         Reported by Tom G. Christensen.
41495
41496 2008-09-01  Bruno Haible  <bruno@clisp.org>
41497
41498         New module 'findprog-lgpl'.
41499         * modules/findprog-lgpl: New file.
41500         * lib/findprog-lgpl.c: New file.
41501         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
41502         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
41503         to decide whether to use strdup or xstrdup, concatenated_filename or
41504         xconcatenated_filename.
41505
41506 2008-09-01  Bruno Haible  <bruno@clisp.org>
41507
41508         Split module 'concat-filename' into 'concat-filename' (LGPL) and
41509         'xconcat-filename' (GPL).
41510         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
41511         (License): Change to LGPLv2+.
41512         * modules/xconcat-filename: New file.
41513         * lib/concat-filename.h (concatenated_filename): Change specification.
41514         (xconcatenated_filename): New declaration.
41515         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
41516         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
41517         memory situations.
41518         * lib/xconcat-filename.c: New file.
41519         * NEWS: Mention the change.
41520         * lib/findprog.c: Include concat-filename.h, not filename.h.
41521         (find_in_path): Use xconcatenated_filename instead of
41522         concatenated_filename.
41523         * lib/javacomp.c: Include concat-filename.h, not filename.h.
41524         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41525         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41526         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41527         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
41528         instead of concatenated_filename.
41529         * lib/javaexec.c: Include concat-filename.h, not filename.h.
41530         (execute_java_class): Use xconcatenated_filename instead of
41531         concatenated_filename.
41532         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
41533         * modules/javacomp (Depends-on): Likewise.
41534         * modules/javaexec (Depends-on): Likewise.
41535
41536 2008-09-01  Bruno Haible  <bruno@clisp.org>
41537
41538         Split module 'filename' into 'filename' and 'concat-filename'.
41539         * modules/filename: Keep only lib/filename.h.
41540         (License): Change to LGPLv2+.
41541         * modules/concat-filename: New file, extracted from modules/filename.
41542         * lib/filename.h (concatenated_filename): Remove declaration.
41543         * lib/concat-filename.h: New file, extracted from lib/filename.h.
41544         * lib/concat-filename.c: Include concat-filename.h.
41545         * NEWS: Mention the change.
41546
41547 2008-09-01  Simon Josefsson  <simon@josefsson.org>
41548
41549         * lib/bitrotate.h (rotl8, rotr8): Add.
41550
41551         * modules/bitrotate (configure.ac): Need
41552         AC_REQUIRE([AC_C_INLINE]).
41553         (Description): Mention stdint.h.  Reported by Bruno Haible
41554         <bruno@clisp.org>.
41555
41556         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
41557         Paolo Bonzini <bonzini@gnu.org>.
41558
41559 2008-08-31  Bruno Haible  <bruno@clisp.org>
41560
41561         Assume Solaris specific bi-arch conventions on Solaris systems.
41562         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
41563         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
41564         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
41565         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
41566         like acl_libdirstem.
41567         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
41568         acl_libdirstem.
41569         * NEWS: Mention the change.
41570         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
41571
41572 2008-08-31  Jim Meyering  <meyering@redhat.com>
41573
41574         * lib/strftime.h: Add comments describing the two added arguments.
41575
41576         remove duplicate #include directives
41577         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
41578         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
41579
41580 2008-08-31  Bruno Haible  <bruno@clisp.org>
41581
41582         New module 'sigpipe-die'.
41583         * modules/sigpipe-die: New file.
41584         * lib/sigpipe-die.h: New file.
41585         * lib/sigpipe-die.c: New file.
41586         * MODULES.html.sh (Signal handling): Add sigpipe-die.
41587
41588 2008-08-31  Bruno Haible  <bruno@clisp.org>
41589
41590         Don't override previously installed signal handlers.
41591         * lib/fatal-signal.c (saved_sigactions): New variable.
41592         (uninstall_handlers): Reset the signal to the saved handler, not
41593         to SIG_DFL (except when ignored).
41594         (install_handlers): Save the previous handlers.
41595
41596 2008-08-30  Bruno Haible  <bruno@clisp.org>
41597
41598         * gnulib-tool (func_reset_sigpipe): New function.
41599         (func_get_automake_snippet, func_modules_transitive_closure,
41600         func_import): Invoke it before a join command that reads from stdin,
41601         to avoid "echo: write error: Broken pipe" error messages on stderr.
41602         Reported by Sam Steingold <sds@gnu.org>.
41603
41604 2008-08-30  Bruno Haible  <bruno@clisp.org>
41605
41606         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
41607         Code copied from m4/open.m4.
41608         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
41609         access and the filename ends in a slash. Code copied from lib/open.c.
41610         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
41611         * tests/test-fopen.c (main): Check against bug with trailing slash.
41612
41613 2008-08-29  Bruno Haible  <bruno@clisp.org>
41614
41615         Avoid some "gcc -pedantic" warnings.
41616         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
41617         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
41618         * lib/dirent.in.h: Likewise.
41619         * lib/fcntl.in.h: Likewise.
41620         * lib/float.in.h: Likewise.
41621         * lib/iconv.in.h: Likewise.
41622         * lib/inttypes.in.h: Likewise.
41623         * lib/locale.in.h: Likewise.
41624         * lib/math.in.h: Likewise.
41625         * lib/netinet_in.in.h: Likewise.
41626         * lib/search.in.h: Likewise.
41627         * lib/signal.in.h: Likewise.
41628         * lib/stdarg.in.h: Likewise.
41629         * lib/stdint.in.h: Likewise.
41630         * lib/stdio.in.h: Likewise.
41631         * lib/stdlib.in.h: Likewise.
41632         * lib/string.in.h: Likewise.
41633         * lib/strings.in.h: Likewise.
41634         * lib/sys_select.in.h: Likewise.
41635         * lib/sys_socket.in.h: Likewise.
41636         * lib/sys_stat.in.h: Likewise.
41637         * lib/sys_time.in.h: Likewise.
41638         * lib/sysexits.in.h: Likewise.
41639         * lib/time.in.h: Likewise.
41640         * lib/unistd.in.h: Likewise.
41641         * lib/wchar.in.h: Likewise.
41642         * lib/wctype.in.h: Likewise.
41643         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
41644         * modules/fchdir (Makefile.am): Likewise.
41645         * modules/fcntl (Makefile.am): Likewise.
41646         * modules/float (Makefile.am): Likewise.
41647         * modules/iconv_open (Makefile.am): Likewise.
41648         * modules/inttypes (Makefile.am): Likewise.
41649         * modules/locale (Makefile.am): Likewise.
41650         * modules/math (Makefile.am): Likewise.
41651         * modules/netinet_in (Makefile.am): Likewise.
41652         * modules/search (Makefile.am): Likewise.
41653         * modules/signal (Makefile.am): Likewise.
41654         * modules/stdarg (Makefile.am): Likewise.
41655         * modules/stdint (Makefile.am): Likewise.
41656         * modules/stdio (Makefile.am): Likewise.
41657         * modules/stdlib (Makefile.am): Likewise.
41658         * modules/string (Makefile.am): Likewise.
41659         * modules/strings (Makefile.am): Likewise.
41660         * modules/sys_select (Makefile.am): Likewise.
41661         * modules/sys_socket (Makefile.am): Likewise.
41662         * modules/sys_stat (Makefile.am): Likewise.
41663         * modules/sys_time (Makefile.am): Likewise.
41664         * modules/sysexits (Makefile.am): Likewise.
41665         * modules/time (Makefile.am): Likewise.
41666         * modules/unistd (Makefile.am): Likewise.
41667         * modules/wchar (Makefile.am): Likewise.
41668         * modules/wctype (Makefile.am): Likewise.
41669         Reported by Reuben Thomas <rrt@sc3d.org>.
41670
41671 2008-08-29  Bruno Haible  <bruno@clisp.org>
41672
41673         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
41674         any more.
41675
41676 2008-08-29  Simon Josefsson  <simon@josefsson.org>
41677
41678         * MODULES.html.sh (Misc): Add bitrotate.
41679
41680         * modules/bitrotate: New file.
41681
41682         * lib/bitrotate.h: New file.
41683
41684         * modules/bitrotate-tests: New file.
41685
41686         * tests/test-bitrotate.c: New file.
41687
41688         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
41689         on the bitrotate module.
41690
41691         * lib/arctwo.c: Use new bitrotate module.
41692
41693 2008-08-29  Jim Meyering  <meyering@redhat.com>
41694
41695         bootstrap: merge changes from coreutils
41696         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
41697         of copied files.  Remove a kludge, now that this is fixed.
41698         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
41699         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
41700         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
41701
41702 2008-08-29  Bruno Haible  <bruno@clisp.org>
41703
41704         * MODULES.html.sh: Remove --cvs-urls option.
41705
41706 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
41707
41708         maint.mk: adjust to file name change
41709         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
41710
41711 2008-08-28  Jim Meyering  <meyering@redhat.com>
41712
41713         * modules/getndelim2 (License): Relicense to LGPLv2+.
41714         Approved by Richard Stallman for the version of 1995, and by
41715         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
41716
41717 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
41718
41719         * lib/getdelim.c (flockfile, funlockfile): Make all of them
41720         dummy if one is not available.  Do not touch them if
41721         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
41722         (getc_maybe_unlocked): New.
41723         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
41724
41725 2008-08-26  Eric Blake  <ebb9@byu.net>
41726
41727         doc/INSTALL: resync from autoconf
41728         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
41729         (INSTALL_PRELUDE): Delete; this is done more efficiently by
41730         moving...
41731         * install.texi [!autoconf]: ...here.  Resync from autoconf.
41732         * INSTALL: Regenerate.
41733         * INSTALL.ISO: New file.
41734         * INSTALL.UTF-8: Likewise.
41735
41736 2008-08-26  Jim Meyering  <meyering@redhat.com>
41737
41738         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
41739         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
41740         these definitions conditional, so that they may be overridden, too.
41741
41742 2008-08-26  Bruno Haible  <bruno@clisp.org>
41743
41744         Generate INSTALL file variants with prettier quotes.
41745         * doc/Makefile (INSTALL_PRELUDE): New macro.
41746         (INSTALL): Use it.
41747         (INSTALL.ISO, INSTALL.UTF-8): New rules.
41748
41749 2008-08-26  Bruno Haible  <bruno@clisp.org>
41750
41751         Run makeinfo in an English locale.
41752         * doc/Makefile (MAKEINFO): New variable.
41753
41754 2008-08-26  Bruno Haible  <bruno@clisp.org>
41755
41756         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
41757         Suggested by Eric Blake.
41758
41759 2008-08-25  Bruno Haible  <bruno@clisp.org>
41760
41761         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
41762
41763 2008-08-25  Eric Blake  <ebb9@byu.net>
41764
41765         c-stack: test that stack overflow can be caught
41766         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
41767         that platform allows handling stack overflow; at least OS/2 EMX
41768         has sigaltstack, but crashes before transferring control to
41769         handler on stack overflow.
41770         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
41771         check for HAVE_STACK_OVERFLOW_HANDLING.
41772         Reported by Elbert Pol.
41773
41774 2008-08-25  Bruno Haible  <bruno@clisp.org>
41775
41776         * doc/posix-functions/strftime.texi: Fix description of strftime
41777         module.
41778
41779 2008-08-24  Bruno Haible  <bruno@clisp.org>
41780
41781         * tests/uniwidth/test-uc_width2.c: New file.
41782         * tests/uniwidth/test-uc_width2.sh: New file.
41783         * modules/uniwidth/width-tests (Files): Add the new files.
41784         (TESTS): Add uniwidth/test-uc_width2.sh.
41785         (TESTS_ENVIRONMENT): New variable.
41786         (check_PROGRAMS): Add test-uc_width2.
41787         (test_uc_width2_SOURCES): New variable.
41788
41789         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
41790         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
41791         not 0x00AB.
41792         Reported by Alexander V. Lukyanov <lav@netis.ru>.
41793
41794 2008-08-22  Eric Blake  <ebb9@byu.net>
41795
41796         test-lock, test-tls: mention why a test is skipped
41797         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
41798         skipped.
41799         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
41800
41801         count-one-bits: relax license
41802         * modules/count-one-bits (License): Relicense to LGPLv2+.
41803         Suggested by Ludovic Courtès, approved by Ben Pfaff.
41804
41805 2008-08-22  Andreas Schwab  <schwab@suse.de>
41806
41807         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
41808         Remove spurious space in assignment.
41809
41810 2008-08-21  Simon Josefsson  <simon@josefsson.org>
41811
41812         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
41813         Paul Eggert <eggert@CS.UCLA.EDU>.
41814
41815 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
41816
41817         * modules/gettext: Add m4/threadlib.m4.
41818
41819 2008-08-19  Eric Blake  <ebb9@byu.net>
41820
41821         test-c-stack: fix compilation failure on FreeBSD 5.0
41822         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
41823         headers before <sys/resource.h>.
41824         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
41825         the bug.
41826         Reported by Nelson H. F. Beebe.
41827
41828         strverscmp: migrate from "strverscmp.h" to <string.h>
41829         * modules/string (Makefile.am): Add new hooks.
41830         * modules/strverscmp (Files): Remove strverscmp.h.
41831         (Depends-on): Add string.
41832         (configure.ac): Add indicator.
41833         (Include): Mention new header.
41834         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
41835         defaults.
41836         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
41837         results.
41838         * lib/strverscmp.h: Delete.
41839         * lib/string.in.h (strverscmp): Provide declaration, when needed.
41840         * tests/test-strverscmp.c (includes): Adjust client.
41841         * lib/check-version.c (includes): Likewise.
41842         * NEWS: Document the change.
41843
41844         strverscmp: add unit test
41845         * modules/strverscmp-tests: New file.
41846         * tests/test-strverscmp.c: Likewise.
41847
41848 2008-08-19  Simon Josefsson  <simon@josefsson.org>
41849
41850         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
41851         regarding Windows crypto stuff, from Mono.
41852
41853 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
41854
41855         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
41856         if present, for intel RND.  Return error on failures.
41857
41858 2008-08-18  Ben Pfaff  <blp@gnu.org>
41859
41860         gitlog-to-changelog: give better diagnostic for failed pipe-open
41861         * build-aux/gitlog-to-changelog: Improve error message: suggest
41862         that the version of Git may be too old.
41863
41864 2008-08-18  Simon Josefsson  <simon@josefsson.org>
41865
41866         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
41867         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
41868
41869 2008-08-18  Bruno Haible  <bruno@clisp.org>
41870
41871         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
41872         pthread_in_use().
41873
41874 2008-08-18  Bruno Haible  <bruno@clisp.org>
41875
41876         * lib/glthread/threadlib.c: Include <pthread.h>.
41877
41878 2008-08-18  Bruno Haible  <bruno@clisp.org>
41879
41880         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
41881         glthread_recursive_lock_* macros.
41882         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
41883         Fix syntax error.
41884
41885 2008-08-18  Bruno Haible  <bruno@clisp.org>
41886
41887         * lib/glthread/thread.c: Avoid forcing a context switch right after
41888         thread creation.
41889
41890 2008-08-17  Bruno Haible  <bruno@clisp.org>
41891
41892         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
41893         * lib/glthread/thread.h: Provide Win32 specific implementation.
41894         * modules/thread (Files): Add lib/glthread/thread.c.
41895         (Depends-on): Add lock.
41896         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
41897
41898 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41899
41900         New module 'yield'.
41901         * modules/yield: New file.
41902         * lib/glthread/yield.h: New file.
41903         * m4/yield.m4: New file.
41904         * MODULES.html.sh (Multithreading): Add yield.
41905
41906 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41907
41908         New module 'thread'.
41909         * modules/thread: New file.
41910         * lib/glthread/thread.h: New file.
41911         * m4/thread.m4: New file.
41912         * MODULES.html.sh (Multithreading): Add thread.
41913
41914 2008-08-17  Bruno Haible  <bruno@clisp.org>
41915
41916         * lib/glthread/lock.h: Include <stdlib.h> always.
41917         * lib/glthread/tls.h: Likewise.
41918         * lib/glthread/cond.h: Likewise.
41919
41920 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41921
41922         New module 'cond'.
41923         * modules/cond: New file.
41924         * lib/glthread/cond.h: New file.
41925         * lib/glthread/cond.c: New file.
41926         * m4/cond.m4: New file.
41927         * MODULES.html.sh (Multithreading): Add cond.
41928
41929 2008-08-16  Eric Blake  <ebb9@byu.net>
41930
41931         c-stack: fix regression on Irix 5.3 from 2008-06-21
41932         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
41933         sa_sigaction...
41934         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
41935         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
41936         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
41937         * modules/signal (Makefile.am): Use the value.
41938         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
41939         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
41940         * doc/posix-headers/signal.texi (signal.h): Document this
41941         portability issue.
41942         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
41943         Reported by Tom G. Christensen.
41944
41945 2008-08-17  Bruno Haible  <bruno@clisp.org>
41946
41947         New module 'threadlib'.
41948         * modules/threadlib: New file.
41949         * lib/glthread/threadlib.c: New file, extracted from
41950         lib/glthread/lock.c.
41951         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
41952         functions.
41953         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
41954         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
41955         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
41956         macros.
41957         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
41958         (gl_DISABLE_THREADS): Remove macro.
41959         * modules/lock (Files): Remove build-aux/config.rpath.
41960         (Depends-on): Remove havelib. Add threadlib.
41961         (configure.ac-early): Remove section.
41962         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
41963         * modules/tls (Depends-on): Remove lock. Add threadlib.
41964         (Link): New section, copied from threadlib.
41965         * MODULES.html.sh (Multithreading): Add threadlib.
41966
41967 2008-08-14  Bruno Haible  <bruno@clisp.org>
41968
41969         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
41970         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
41971         glthread_rwlock_unlock, glthread_rwlock_destroy,
41972         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
41973         glthread_recursive_lock_destroy): Define as macros always.
41974         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
41975         glthread_lock_lock.
41976         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
41977         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
41978         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
41979         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
41980         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
41981         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
41982         (glthread_recursive_lock_lock_func): Renamed from
41983         glthread_recursive_lock_lock.
41984         (glthread_recursive_lock_unlock_func): Renamed from
41985         glthread_recursive_lock_unlock.
41986         (glthread_recursive_lock_destroy_func): Renamed from
41987         glthread_recursive_lock_destroy.
41988
41989 2008-08-14  Bruno Haible  <bruno@clisp.org>
41990
41991         * lib/glthread/lock.h: Renamed from lib/lock.h.
41992         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
41993         * lib/glthread/tls.h: Renamed from lib/tls.h.
41994         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
41995         * lib/fstrcmp.c: Update includes.
41996         * lib/strsignal.c: Update includes.
41997         * modules/lock (Files, Makefile.am): Update.
41998         (Include): Change to "glthread/lock.h".
41999         * modules/tls (Files, Makefile.am): Update.
42000         (Include): Change to "glthread/tls.h".
42001         * tests/test-lock.c: Update includes.
42002         * tests/test-tls.c: Update includes.
42003         * NEWS: Mention the renamed header files.
42004
42005 2008-08-11  Jim Meyering  <meyering@redhat.com>
42006
42007         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
42008
42009 2008-08-11  Eric Blake  <ebb9@byu.net>
42010
42011         test-c-stack: avoid C99-ism
42012         * tests/test-c-stack.c (main): Fix whitespace, move declaration
42013         before statement.
42014         Reported by Alain Guibert.
42015
42016 2008-08-10  Jim Meyering  <meyering@redhat.com>
42017
42018         ensure that return value of uinttostr et al are not ignored
42019         * lib/inttostr.h (__GNUC_PREREQ): Define.
42020         (__attribute_warn_unused_result__): Define.
42021         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42022
42023 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42024
42025         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42026         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42027
42028 2008-08-07  Jim Meyering  <meyering@redhat.com>
42029
42030         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42031
42032         * modules/mkstemp (License): Relicense under LGPLv2+.
42033         * modules/tempname (License): Likewise.
42034
42035 2008-08-06  Bruno Haible  <bruno@clisp.org>
42036
42037         * lib/poll.c (poll): Further micro-optimization.
42038
42039 2008-08-06  Jim Meyering  <meyering@redhat.com>
42040
42041         inet_pton.c: use locale-independent tolower
42042         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42043         (inet_pton6): Use c_tolower rather than tolower.
42044         * modules/inet_pton (Depends-on): Add c-ctype.
42045
42046 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42047
42048         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42049         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42050
42051 2008-08-06  Jim Meyering  <meyering@redhat.com>
42052
42053         * modules/inet_pton (License): Relicense under LGPLv2+.
42054
42055 2008-08-03  Bruno Haible  <bruno@clisp.org>
42056
42057         Additional non-aborting API for lock and tls.
42058         * lib/lock.h: Include <errno.h>.
42059         (glthread_lock_init): New macro/function.
42060         (gl_lock_init): Define as wrapper around glthread_lock_init.
42061         (glthread_lock_lock): New macro/function.
42062         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42063         (glthread_lock_unlock): New macro/function.
42064         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42065         (glthread_lock_destroy): New macro/function.
42066         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42067         (glthread_rwlock_init): New macro/function.
42068         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42069         (glthread_rwlock_rdlock): New macro/function.
42070         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42071         (glthread_rwlock_wrlock): New macro/function.
42072         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42073         (glthread_rwlock_unlock): New macro/function.
42074         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42075         (glthread_rwlock_destroy): New macro/function.
42076         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42077         (glthread_recursive_lock_init): New macro/function.
42078         (gl_recursive_lock_init): Define as wrapper around
42079         glthread_recursive_lock_init.
42080         (glthread_recursive_lock_lock): New macro/function.
42081         (gl_recursive_lock_lock): Define as wrapper around
42082         glthread_recursive_lock_lock.
42083         (glthread_recursive_lock_unlock): New macro/function.
42084         (gl_recursive_lock_unlock): Define as wrapper around
42085         glthread_recursive_lock_unlock.
42086         (glthread_recursive_lock_destroy): New macro/function.
42087         (gl_recursive_lock_destroy): Define as wrapper around
42088         glthread_recursive_lock_destroy.
42089         (glthread_once): New macro/function.
42090         (gl_once): Define as wrapper around glthread_once.
42091         Update function declarations.
42092         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42093         glthread_rwlock_init. Return error code.
42094         (glthread_rwlock_rdlock_multithreaded): Renamed from
42095         glthread_rwlock_rdlock. Return error code.
42096         (glthread_rwlock_wrlock_multithreaded): Renamed from
42097         glthread_rwlock_wrlock. Return error code.
42098         (glthread_rwlock_unlock_multithreaded): Renamed from
42099         glthread_rwlock_unlock. Return error code.
42100         (glthread_rwlock_destroy_multithreaded): Renamed from
42101         glthread_rwlock_destroy. Return error code.
42102         (glthread_recursive_lock_init_multithreaded): Renamed from
42103         glthread_recursive_lock_init. Return error code.
42104         (glthread_recursive_lock_lock_multithreaded): Renamed from
42105         glthread_recursive_lock_lock. Return error code.
42106         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42107         glthread_recursive_lock_unlock. Return error code.
42108         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42109         glthread_recursive_lock_destroy. Return error code.
42110         (glthread_once_call): Make static.
42111         (glthread_once_multithreaded): Renamed from glthread_once.
42112         * lib/tls.h: Include <errno.h>.
42113         (glthread_tls_key_init): New macro/function.
42114         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42115         (glthread_tls_set): New macro/function.
42116         (gl_tls_set): Define as wrapper around glthread_tls_set.
42117         (glthread_tls_key_destroy): New macro/function.
42118         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42119         Update function declarations.
42120         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42121         glthread_tls_get.
42122         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42123
42124 2008-08-04  Eric Blake  <ebb9@byu.net>
42125
42126         gnumakefile: use space, not TAB, outside of targets
42127         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42128
42129 2008-08-02  Jim Meyering  <meyering@redhat.com>
42130
42131         getdate.y: avoid locale-dependent date parsing failure
42132         In Turkish locales, getdate would fail to recognize keywords
42133         containing a lowercase "i".  The solution is not to rely on
42134         locale-sensitive case-conversion.
42135         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42136         (lookup_word): Use c_toupper in place of toupper.
42137         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42138         Reported by Vefa Bicakci <bicave@superonline.com> in
42139         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42140         * modules/getdate (Depends-on): Add c-ctype.
42141
42142 2008-08-02  Bruno Haible  <bruno@clisp.org>
42143
42144         * gnulib-tool (func_import): When updating or creating a .gitignore
42145         file, prepend each added line with a slash, and ignore leading slashes
42146         from the existing lines.
42147         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42148
42149 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42150
42151         Portability fix for GNU make 3.79.1.
42152         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42153         versions do not understand.
42154
42155 2008-08-01  Bruno Haible  <bruno@clisp.org>
42156
42157         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42158         * tests/test-isnanf.h (zero): New variable.
42159         (main): Avoid literal -0.0f.
42160         * tests/test-isnand.h (zero): New variable.
42161         (main): Avoid literal -0.0.
42162         * tests/test-isnanl.h (zero): New variable.
42163         (main): Avoid literal -0.0L.
42164         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42165         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42166         -0.0, -0.0L.
42167         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42168         (test_signbitd): Avoid literal -0.0.
42169         (test_signbitl): Avoid literal -0.0L.
42170         * tests/test-ceilf1.c (zero): New variable.
42171         (main): Avoid literal -0.0f.
42172         * tests/test-ceill.c (zero): New variable.
42173         (main): Avoid literal -0.0L.
42174         * tests/test-floorf1.c (zero): New variable.
42175         (main): Avoid literal -0.0f.
42176         * tests/test-floorl.c (zero): New variable.
42177         (main): Avoid literal -0.0L.
42178         * tests/test-roundf1.c (zero): New variable.
42179         (main): Avoid literal -0.0f.
42180         * tests/test-round1.c (zero): New variable.
42181         (main): Avoid literal -0.0.
42182         * tests/test-roundl.c (zero): New variable.
42183         (main): Avoid literal -0.0L.
42184         * tests/test-truncf1.c (zero): New variable.
42185         (main): Avoid literal -0.0f.
42186         * tests/test-trunc1.c (zero): New variable.
42187         (main): Avoid literal -0.0.
42188         * tests/test-truncl.c (zero): New variable.
42189         (main): Avoid literal -0.0L.
42190         * tests/test-frexp.c (zero): New variable.
42191         (main): Avoid literal -0.0.
42192         * tests/test-frexpl.c (zero): New variable.
42193         (main): Avoid literal -0.0L.
42194         * tests/test-ldexpl.c (zero): New variable.
42195         (main): Avoid literal -0.0L.
42196         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42197         (zerod, zerol): New variables.
42198         (test_function): Avoid literals -0.0, -0.0L.
42199         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42200         (zerod, zerol): New variables.
42201         (test_function): Avoid literals -0.0, -0.0L.
42202         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42203         (zerod, zerol): New variables.
42204         (test_function): Avoid literals -0.0, -0.0L.
42205         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42206         (zerod, zerol): New variables.
42207         (test_function): Avoid literals -0.0, -0.0L.
42208         * tests/test-strtod.c (zero): New variable.
42209         (main): Avoid literal -0.0.
42210         Reported by Jonathan C. Patschke <jp@centtech.com>.
42211
42212 2008-07-31  Jim Meyering  <meyering@redhat.com>
42213
42214         sha256.h: correct definition of SHA224_DIGEST_SIZE
42215         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42216         Reported by Paulie Pena IV <paulie4@gmail.com>.
42217         Define as 224 / 8, rather than as a literal.
42218         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42219         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42220         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42221
42222 2008-07-31  Bruno Haible  <bruno@clisp.org>
42223
42224         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42225         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42226         Reported by Jonathan Patschke <jp@centtech.com>.
42227
42228 2008-07-31  Bruno Haible  <bruno@clisp.org>
42229
42230         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42231         Reported by Paolo Bonzini <bonzini@gnu.org>.
42232
42233 2008-07-30  Eric Blake  <ebb9@byu.net>
42234
42235         test-strtod: allow compilation without -lm
42236         * tests/test-strtod.c (main): Avoid link dependence on fabs.
42237         Reported by Dennis Clarke <blastwave@gmail.com>.
42238
42239 2008-07-28  Jim Meyering  <meyering@redhat.com>
42240
42241         bootstrap: work also when there are no .po files in po/
42242         * build-aux/bootstrap (update_po_files): Complete the change
42243         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
42244
42245 2008-07-27  Jim Meyering  <meyering@redhat.com>
42246
42247         * users.txt: Add zile.
42248
42249 2008-07-26  Ben Pfaff  <blp@gnu.org>
42250
42251         Add missing dependencies on new m4/exponent[fdl].m4 files.
42252         * modules/isnanf-nolibm: Add m4/exponentf.m4.
42253         * modules/isnand-nolibm: Add m4/exponentd.m4.
42254         * modules/isnanl-nolibm: Add m4/exponentl.m4.
42255         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
42256         m4/isnan[fdl].m4, because the macros actually used moved.
42257         Reported by Jim Meyering.
42258
42259 2008-07-14  Ben Pfaff  <blp@gnu.org>
42260
42261         Add isinf module.
42262         * lib/isinf.c: New file.
42263         * lib/math.in.h: Define isinf macro if we have decided to replace
42264         it.
42265         * m4/isinf.m4: New file.
42266         * m4/math_h.m4: Initialize and substitute variables for isinf
42267         module.
42268         * modules/isinf: New file.
42269         * modules/isinf-tests: New file.
42270         * modules/math: Add substitutions for new module.
42271         * tests/test-isinf.c: New file.
42272         * doc/posix-functions/isinf.texi: Mention new module.
42273         * MODULES.html.sh: Mention new module.
42274
42275 2008-07-14  Ben Pfaff  <blp@gnu.org>
42276
42277         Factor out some macros for use by additional modules.
42278         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
42279         exponentf.m4.
42280         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
42281         exponentd.m4.
42282         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
42283         file exponentl.m4.
42284         * m4/exponentf.m4: New file.
42285         * m4/exponentd.m4: New file.
42286         * m4/exponentl.m4: New file.
42287         * modules/isnanf: Use new file m4/exponentf.m4.
42288         * modules/isnand: Use new file m4/exponentd.m4.
42289         * modules/isnanl: Use new file m4/exponentl.m4.
42290
42291 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
42292
42293         mktime.c: normalize tp->tm_isdst value to -1/0/1.
42294         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
42295         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
42296         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
42297
42298         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
42299         readlink on platforms without PATH_MAX.
42300
42301 2008-07-21  Eric Blake  <ebb9@byu.net>
42302
42303         Warn, not fail, on stale version.
42304         * top/GNUmakefile (_curr-ver): Tone down previous patch.
42305
42306         Don't allow installation with stale devel version number.
42307         * top/GNUmakefile (_is-install-target): New macro.
42308         (_curr-ver): Forbid installation with stale version number.
42309
42310 2008-07-20  Bruno Haible  <bruno@clisp.org>
42311
42312         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
42313         TESTS_ENVIRONMENT.
42314         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
42315
42316 2008-07-20  Bruno Haible  <bruno@clisp.org>
42317
42318         * lib/c-stack.h (c_stack_action): Add documentation.
42319         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
42320
42321 2008-07-20  Bruno Haible  <bruno@clisp.org>
42322
42323         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
42324         * modules/readlink (License): Likewise.
42325
42326 2008-07-17  Eric Blake  <ebb9@byu.net>
42327
42328         * modules/c-stack (Link): Fix typo.
42329
42330         Make c-stack use libsigsegv, when available.
42331         * modules/c-stack (Depends-on): Add libsigsegv.
42332         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42333         needed.
42334         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42335         (segv_handler, overflow_handler, c_stack_action)
42336         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42337         implementation when libsigsegv is available, but only when using
42338         the library is necessary.
42339         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42340         comment, explaining why XSI check fails on Linux.
42341         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42342         * tests/test-c-stack2.sh: Tweak skip message.
42343         * NEWS: Document new link-time requirements.
42344
42345 2008-07-16  Eric Blake  <ebb9@byu.net>
42346
42347         c-stack: Expose false positives when not using libsigsegv.
42348         * modules/c-stack-tests (Files): Expand test.
42349         * tests/test-c-stack.c (main): Add means to conditionally trigger
42350         non-overflow SIGSEGV.
42351         * tests/test-c-stack2.sh: New file.
42352
42353 2008-07-14  Bruno Haible  <bruno@clisp.org>
42354
42355         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42356         Reported by Eric Blake.
42357
42358 2008-07-14  Sam Steingold  <sds@gnu.org>
42359             Bruno Haible  <bruno@clisp.org>
42360
42361         New module libsigsegv.
42362         * modules/libsigsegv: New file.
42363         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42364         modifications.
42365         * MODULES.html.sh (Signal handling): New section.
42366
42367 2008-07-14  Bruno Haible  <bruno@clisp.org>
42368
42369         * modules/unictype/ctype-* (Description): Add the word "function".
42370         Improves the resulting doc in MODULES.html.
42371
42372 2008-07-12  Ben Pfaff  <blp@gnu.org>
42373
42374         Add longlong module.
42375         * modules/longlong: New file.
42376
42377 2008-07-12  Bruno Haible  <bruno@clisp.org>
42378
42379         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42380         to empty.
42381
42382 2008-07-10  Ben Pfaff  <blp@gnu.org>
42383
42384         Add isnan module.
42385         * doc/posix-functions/isnan.texi: Mention new module.
42386         * lib/math.in.h: Define isnan macro if we have decided to replace
42387         it.
42388         * m4/isnan.m4: New file.
42389         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42390         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42391         also.
42392         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42393         redundancy.
42394         * m4/math_h.m4: Initialize and substitute variables for isnan
42395         module.
42396         * modules/isnan: New file.
42397         * modules/isnan-tests: New file.
42398         * modules/math: Add substitutions for new module.
42399         * tests/test-isnan.c: New file.
42400         * MODULES.html.sh: Mention new module.
42401
42402 2008-07-10  Ben Pfaff  <blp@gnu.org>
42403
42404         Add isnanf module.
42405         * lib/isnanf.m4: New file.
42406         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
42407         (gl_HAVE_ISNANF_IN_LIBM): New macro.
42408         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
42409         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
42410         * modules/isnanf: New file.
42411         * modules/isnanf-tests: New file.
42412         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
42413         files.
42414         * tests/test-isnanf-nolibm.c: factored most of its contents into
42415         new file tests/test-isnanf.h.
42416         * tests/test-isnanf.h: New file.
42417         * tests/test-isnanf.c: New file.
42418         * MODULES.html.sh: Mention new module.
42419         * doc/glibc-functions/isnanf.texi: Mention new module.
42420
42421 2008-07-10  Ben Pfaff  <blp@gnu.org>
42422
42423         Add isnand module.
42424         * lib/isnand.h: New file.
42425         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
42426         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
42427         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
42428         functionality also.
42429         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
42430         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
42431         (gl_HAVE_ISNAND_IN_LIBM): New macro.
42432         * modules/isnand: New file.
42433         * modules/isnand-tests: New file.
42434         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
42435         files.
42436         * tests/test-isnand-nolibm.c: factored most of its contents into
42437         new file tests/test-isnand.h.
42438         * tests/test-isnand.h: New file.
42439         * tests/test-isnand.c: New file.
42440         * MODULES.html.sh: Mention new module.
42441
42442 2008-07-10  Ben Pfaff  <blp@gnu.org>
42443
42444         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
42445         * lib/isnand.h: Rename lib/isnand-nolibm.h.
42446         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
42447         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
42448         * modules/isnanf-nolibm: Update references to renamed files.
42449         * modules/isnand-nolibm: Likewise.
42450         * modules/isnanf-nolibm-tests: Likewise.
42451         * modules/isnand-nolibm-tests: Likewise.
42452         * lib/frexp.c: Likewise.
42453         * lib/isfinite.c: Likewise.
42454         * lib/signbitd.c: Likewise.
42455         * lib/signbitf.c: Likewise.
42456         * lib/vasnprintf.c: Likewise.
42457         * tests/test-ceilf1.c: Likewise.
42458         * tests/test-ceilf2.c: Likewise.
42459         * tests/test-floorf1.c: Likewise.
42460         * tests/test-floorf2.c: Likewise.
42461         * tests/test-frexp.c: Likewise.
42462         * tests/test-round1.c: Likewise.
42463         * tests/test-round2.c: Likewise.
42464         * tests/test-roundf1.c: Likewise.
42465         * tests/test-strtod.c: Likewise.
42466         * tests/test-trunc1.c: Likewise.
42467         * tests/test-trunc2.c: Likewise.
42468         * tests/test-truncf1.c: Likewise.
42469         * tests/test-truncf2.c: Likewise.
42470         * NEWS: Mention the renamed header files.
42471
42472 2008-07-11  Jim Meyering  <meyering@redhat.com>
42473
42474         vc-list-files: make the last-resort awk code more portable
42475         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
42476         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
42477         does not support it.
42478
42479 2008-07-10  Eric Blake  <ebb9@byu.net>
42480
42481         Work with tar's bootstrap.
42482         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
42483         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
42484         an m4 comment.
42485
42486 2008-07-09  Jim Meyering  <meyering@redhat.com>
42487
42488         posix-shell.m4: fix typo that made this test malfunction
42489         * m4/posix-shell.m4: Remove capitalization in variable name.
42490
42491 2008-07-08  Bruno Haible  <bruno@clisp.org>
42492
42493         * m4/onceonly.m4: Update comments.
42494         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42495
42496 2008-07-04  Jim Meyering  <meyering@redhat.com>
42497
42498         * users.txt: Add vc-dwim.
42499         (bison, coreutils): Use the gitweb URL.
42500
42501 2008-07-03  Jim Meyering  <meyering@redhat.com>
42502
42503         * users.txt: Add libffcall.  From Sam Steingold.
42504
42505 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
42506
42507         getdate.y: do not ignore TZ with relative day, month or year offset
42508         * lib/getdate.y (get_date): Move the tz-handling block to follow the
42509         relative-date-handling, since otherwise, the latter would clobber the
42510         sole output (an updated Start value) of the tz-handling block.
42511         * tests/test-getdate.c: Tests for the fix
42512
42513 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42514
42515         Recognize 'foo_LIBRARIES += libgnu.a'.
42516         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
42517         makefile snippet has already specified an installation location,
42518         also using '+='.
42519
42520 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
42521
42522         getdate.y: factor out common actions
42523         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
42524         Use them in place of open-coded actions.
42525
42526 2008-07-01  Simon Josefsson  <simon@josefsson.org>
42527
42528         Add self-test for getdate module.
42529         * modules/getdate-tests: New file.
42530         * tests/test-getdate.c: New file.
42531
42532 2008-06-29  Bruno Haible  <bruno@clisp.org>
42533
42534         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
42535         .gitignore.
42536         Reported by Sylvain Beucler <beuc@beuc.net>.
42537
42538 2008-06-29  Bruno Haible  <bruno@clisp.org>
42539
42540         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
42541         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
42542
42543 2008-06-29  Bruno Haible  <bruno@clisp.org>
42544
42545         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
42546         EXTRA_DIST.
42547         Reported by Sylvain Beucler <beuc@beuc.net>.
42548
42549 2008-06-26  Jim Meyering  <meyering@redhat.com>
42550
42551         make several modules depend on the "open" module
42552         This provides slightly increased consistency when opening-for-write
42553         the name of a non-directory spelled with a trailing slash.
42554         * modules/chdir-safer: Likewise.
42555         * modules/chown: Likewise.
42556         * modules/clean-temp: Likewise.
42557         * modules/copy-file: Likewise.
42558         * modules/fchdir: Likewise.
42559         * modules/fcntl-safer: Likewise.
42560         * modules/pipe: Likewise.
42561         * modules/utime: Likewise.
42562         Prompted by Eric Blake and Bruno Haible.
42563
42564 2008-06-24  Andreas Schwab  <schwab@suse.de>
42565
42566         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
42567         literals can be used as initializers for global variables.
42568
42569 2008-06-23  Eric Blake  <ebb9@byu.net>
42570
42571         Make gnulib-cache.m4 easier to diff.
42572         * gnulib-tool (func_import): Allow newlines when reading cached
42573         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
42574
42575 2008-06-23  Bruno Haible  <bruno@clisp.org>
42576
42577         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
42578         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
42579         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
42580         m4/signalblocking.m4.
42581         (gl_PREREQ_SIGACTION): Don't invoke it.
42582         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
42583         gl_PREREQ_SIG_HANDLER_H.
42584         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42585         Don't check for sigaction here.
42586
42587 2008-06-23  Bruno Haible  <bruno@clisp.org>
42588
42589         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
42590         (install_handlers): Don't set the SA_RESETHAND flag.
42591
42592 2008-06-23  Bruno Haible  <bruno@clisp.org>
42593
42594         * m4/sigaction.m4: Comment fixes.
42595         * lib/signal.in.h: Likewise.
42596
42597 2008-06-23  Eric Blake  <ebb9@byu.net>
42598
42599         Fix typo.
42600         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
42601
42602         Avoid SA_ namespace.
42603         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
42604         Reported by Ralf Wildenhues.
42605
42606         Avoid test failure due to SA_RESTORER.
42607         * tests/test-sigaction.c (SA_MASK): New macro.
42608         (main): Avoid failing due to extension flags being set.
42609         Reported by Jim Meyering.
42610
42611         Revert use of sig-handler.h in sigprocmask.c.
42612         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
42613         it requires the existence of struct sigaction.
42614         * lib/sigprocmask.c (handler_t): Restore typedef.
42615         (rpl_signal, old_handlers): Use local type.
42616
42617 2008-06-22  Bruno Haible  <bruno@clisp.org>
42618
42619         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
42620         conditionally.
42621         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42622
42623 2008-06-22  Bruno Haible  <bruno@clisp.org>
42624
42625         * doc/posix-functions/siginterrupt.texi: Move note.
42626
42627         * lib/signal.in.h (SA_RESTART): New macro.
42628         * lib/sigaction.c: Update comment.
42629
42630         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
42631
42632         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
42633         (gl_PREREQ_SIGPROCMASK): Invoke it.
42634         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
42635
42636         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
42637
42638         * lib/sigprocmask.c: Update a comment.
42639
42640 2008-06-21  Eric Blake  <ebb9@byu.net>
42641
42642         Use sigaction module rather than signal().
42643         * modules/c-stack (Depends-on): Add sigaction.
42644         * modules/fatal-signal (Depends-on): Likewise.
42645         * modules/nanosleep (Depends-on): Likewise.
42646         * modules/sigprocmask (Files): Add sig-handler.h.
42647         * modules/sigaction (Files): Likewise.
42648         * lib/sig-handler.h (get_handler): New file, suggested by Paul
42649         Eggert.
42650         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
42651         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
42652         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42653         (init_fatal_signals): Likewise.
42654         * lib/nanosleep.c (rpl_nanosleep): Likewise.
42655         (siginterrupt): Delete fallback.
42656         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
42657         instead.
42658         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
42659         siginterrupt.
42660
42661         New module sigaction, for mingw.
42662         * modules/sigaction: New module...
42663         * modules/sigaction-tests: ...and its test.
42664         * m4/sigaction.m4: New file.
42665         * lib/sigaction.c: Likewise.
42666         * tests/test-sigaction.c: Likewise.
42667         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
42668         * modules/signal (Makefile.am): Likewise.
42669         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
42670         needed.
42671         * doc/posix-headers/signal.texi (signal.h): Mention provided
42672         types.
42673         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
42674         that sigaction is preferable.
42675         * doc/posix-functions/sigaction.texi (sigaction): Mention new
42676         module.
42677         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42678         sigaction.
42679
42680         Improve robustness of sigprocmask by overriding signal.
42681         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
42682         is in use.
42683         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
42684         (SIGKILL, SIGSTOP): Provide fallbacks.
42685         (rpl_signal): Implement.
42686         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
42687         signal can be called inside handlers.
42688
42689         Fix nanosleep module on mingw.
42690         * modules/nanosleep (Depends-on): Add sys_select.
42691         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
42692
42693         Fix licensing of sigprocmask.
42694         * modules/raise (License): Relicense as LGPL.
42695
42696 2008-06-21  Bruno Haible  <bruno@clisp.org>
42697
42698         * lib/propername.c (proper_name_utf8): Don't use the transliterated
42699         result if it contains question marks.
42700         Reported by Michael Geng <linux@michaelgeng.de>.
42701
42702 2008-06-19  Bruno Haible  <bruno@clisp.org>
42703
42704         Fix CVS-ism.
42705         * doc/gnulib.texi: Include updated-stamp.texi.
42706         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
42707         (updated-stamp.texi): New rule.
42708         (gnulib.info): Depend on it.
42709         * doc/.gitignore: Add updated-stamp.texi.
42710         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
42711
42712 2008-06-19  Bruno Haible  <bruno@clisp.org>
42713
42714         * doc/Makefile (gnulib.info): Update and simplify dependencies.
42715         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42716
42717 2008-06-19  Eric Blake  <ebb9@byu.net>
42718
42719         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
42720         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
42721         Reported by Stepan Kasal.
42722
42723 2008-06-18  Bruno Haible  <bruno@clisp.org>
42724
42725         * lib/fatal-signal.c (init_fatal_signals): Add comment.
42726         Reported by Eric Blake.
42727
42728 2008-06-18  Eric Blake  <ebb9@byu.net>
42729
42730         Work around cygwin 1.5.25 strsignal bug.
42731         * tests/test-strsignal.c: Allow for const char *.
42732         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
42733
42734 2008-06-18  Simon Josefsson  <simon@josefsson.org>
42735
42736         * users.txt: Update URL to article and add author/date
42737         information.
42738
42739 2008-06-17  Bruno Haible  <bruno@clisp.org>
42740
42741         New macro gl_DISABLE_THREADS.
42742         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
42743         if the user did not pass --enable-threads or --disable-threads option.
42744         (gl_DISABLE_THREADS): New macro.
42745         Reported by Eric Blake <ebb9@byu.net>.
42746
42747 2008-06-17  Bruno Haible  <bruno@clisp.org>
42748
42749         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
42750         when the macro ignores it.
42751         Based on a patch by Eric Blake <ebb9@byu.net>.
42752
42753 2008-06-17  Bruno Haible  <bruno@clisp.org>
42754
42755         * modules/tls (License): Change to LGPLv2+.
42756         Reported by Eric Blake.
42757
42758 2008-06-17  Eric Blake  <ebb9@byu.net>
42759
42760         Simplify c-stack prerequisites.
42761         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
42762         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
42763         no longer requires <ucontext.h> to exist.  Optimize setrlimit
42764         check.
42765         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
42766         <sys/resource.h>.
42767
42768         Move c-stack test into testsuite.
42769         * modules/c-stack-tests: New file.
42770         * lib/c-stack.c [DEBUG]: Move test program...
42771         * tests/test-c-stack.c: ...into this new file.  Skip rather than
42772         fail test if sigaltstack is lacking.
42773         * tests/test-c-stack.sh: New driver file.
42774
42775 2008-06-16  Eric Blake  <ebb9@byu.net>
42776
42777         Use raise module consistently.
42778         * modules/fatal-signal (Depends-on): Add raise.
42779         * modules/sigprocmask (Depends-on): Likewise.
42780         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
42781         * lib/sigprocmask.c (sigprocmask): Likewise.
42782         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42783         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
42784
42785         Fix compliance bug in sigpending.
42786         * lib/sigprocmask.c (sigpending): Return pending array via
42787         parameter, not return value.
42788
42789 2008-06-14  Eric Blake  <ebb9@byu.net>
42790
42791         Improve obstack-printf test code.
42792         * tests/test-obstack-printf.c (test_function): Fix comment, and
42793         simplify usage of obstack_* in macros.  Add a test for coverage.
42794         Reported by Bruno Haible.
42795
42796 2008-06-14  Bruno Haible  <bruno@clisp.org>
42797
42798         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
42799         array size as a constant, not as a const variable.
42800         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
42801         AC_USE_SYSTEM_EXTENSIONS.
42802         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42803         Test whether the obstack_printf function actually exists.
42804         * modules/obstack-printf (Depends-on): Add extensions.
42805         (Include): Remove obstack.h.
42806         * modules/obstack-printf-posix (Depends-on): Add extensions.
42807         (Include): Remove obstack.h.
42808
42809 2008-06-13  Eric Blake  <ebb9@byu.net>
42810
42811         Add obstack-printf and obstack-printf-posix modules.
42812         * modules/obstack-printf: New file.
42813         * modules/obstack-printf-posix: Likewise.
42814         * MODULES.html.sh (Misc): Mention them.
42815         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42816         Likewise.
42817         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42818         Likewise.
42819         * modules/stdio (Makefile.am): Accomodate new modules.
42820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42821         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
42822         Declare.
42823         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
42824         functions.
42825         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
42826         (gl_REPLACE_OBSTACK_PRINTF): New macros
42827         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
42828         * tests/test-obstack-printf.c: New file.
42829         * modules/obstack-printf-tests: Likewise.
42830         * modules/obstack-printf-posix-tests: Likewise.
42831
42832 2008-06-11  Bruno Haible  <bruno@clisp.org>
42833
42834         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
42835         * lib/open.c: Include errno.h.
42836         (open): Fail when attempting to write to a file that has a trailing
42837         slash.
42838         * tests/test-open.c (main): Test against trailing slash bug.
42839         * doc/posix-functions/open.texi: Mention the trailing slash bug.
42840
42841 2008-06-10  Bruno Haible  <bruno@clisp.org>
42842
42843         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
42844         for $? to work inside the trap command, with various /bin/sh-s.
42845         * tests/test-vc-list-files-cvs.sh: Likewise.
42846
42847 2008-06-10  Bruno Haible  <bruno@clisp.org>
42848
42849         * lib/acl-internal.h: Don't include gettext.h here.
42850         * lib/set-mode-acl.c: Include gettext.h here.
42851         * lib/copy-acl.c: Likewise.
42852
42853 2008-06-10  Bruno Haible  <bruno@clisp.org>
42854
42855         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
42856         * lib/wait-process.c (wait_subprocess): Likewise.
42857         * lib/execute.h (execute): Add termsigp argument.
42858         * lib/execute.c (execute): Likewise.
42859         * lib/csharpcomp.c (compile_csharp_using_pnet,
42860         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
42861         * lib/csharpexec.c (execute_csharp_using_pnet,
42862         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
42863         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
42864         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
42865         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
42866         is_jikes_present): Update.
42867         * lib/javaexec.c (execute_java_class): Update.
42868         * lib/javaversion.c (execute_and_read_line): Update.
42869         * NEWS: Document the changes.
42870         Reported by Eric Blake.
42871
42872 2008-06-10  Eric Blake  <ebb9@byu.net>
42873
42874         Add missing include.
42875         * tests/test-strstr.c (includes): Add <signal.h>.
42876         * tests/test-strcasestr.c (includes): Likewise.
42877         * tests/test-memmem.c (includes): Likewise.
42878
42879 2008-06-10  Bruno Haible  <bruno@clisp.org>
42880
42881         * lib/wait-process.c (wait_subprocess): Add an assertion.
42882
42883 2008-06-10  Bruno Haible  <bruno@clisp.org>
42884
42885         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
42886
42887 2008-06-10  Bruno Haible  <bruno@clisp.org>
42888
42889         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
42890         using alarm().
42891         * tests/test-strcasestr.c (main): Likewise.
42892         * tests/test-strstr.c (main): Likewise.
42893
42894 2008-06-09  Bruno Haible  <bruno@clisp.org>
42895
42896         Work around the Solaris 10 ACE ACLs ABI change.
42897         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
42898         declare if ACL_NO_TRIVIAL is present.
42899         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
42900         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
42901         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
42902         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
42903         define if ACL_NO_TRIVIAL is present.
42904         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
42905         and use the current ABI.
42906         (file_has_acl): Use same #if condition as elsewhere.
42907         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
42908         in use, and use the current ABI.
42909         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
42910         Reported by Jim Meyering.
42911
42912 2008-06-09  Eric Blake  <ebb9@byu.net>
42913
42914         Work around environments that (stupidly) ignore SIGALRM.
42915         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
42916         before using alarm().
42917         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42918         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42919         Reported by Ian Beckwith <ianb@erislabs.net>.
42920
42921         Produce autobuild blurb earlier in log.
42922         * modules/autobuild (configure.ac-early): Move AB_INIT here.
42923
42924 2008-06-09  Jim Meyering  <meyering@redhat.com>
42925         and OndÅ™ej Vašík  <ovasik@redhat.com>
42926
42927         utimens.c: correct kernel bug work-around
42928         OndÅ™ej Vašík found that the invalid return value of 280 indicates
42929         failure, not success, and the kernel bug we're trying to work
42930         around affects not just the utimensat call, but also the fallback
42931         futimens call.
42932         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
42933         not success.
42934         [HAVE_FUTIMENS]: Use the same work-around, here.
42935
42936 2008-06-09  Jim Meyering  <meyering@redhat.com>
42937
42938         add more guards around definition of ACE_-related code
42939         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
42940         ALLOW and ACE_OWNER are also defined.
42941
42942 2008-06-08  Bruno Haible  <bruno@clisp.org>
42943
42944         * lib/acl-internal.h: Add me as co-author.
42945         * lib/file-has-acl.c: Likewise.
42946         * lib/set-mode-acl.c: Likewise.
42947         * lib/copy-acl.c: Likewise.
42948
42949 2008-06-08  Bruno Haible  <bruno@clisp.org>
42950
42951         Add support for AIX ACLs.
42952         * lib/acl-internal.h (acl_nontrivial): New declaration.
42953         * lib/file-has-acl.c (acl_nontrivial): New function.
42954         (file_has_acl): Add implementation using AIX 4 ACL API.
42955         * lib/set-mode-acl.c (qset_acl): Likewise.
42956         * lib/copy-acl.c (qcopy_acl): Likewise.
42957
42958 2008-06-08  Bruno Haible  <bruno@clisp.org>
42959
42960         Add support for HP-UX ACLs.
42961         * lib/acl-internal.h (acl_nontrivial): New declaration.
42962         * lib/file-has-acl.c (acl_nontrivial): New function.
42963         (file_has_acl): Add implementation using HP-UX 11 ACL API.
42964         * lib/set-mode-acl.c (qset_acl): Likewise.
42965         * lib/copy-acl.c (qcopy_acl): Likewise.
42966
42967 2008-06-08  Bruno Haible  <bruno@clisp.org>
42968
42969         Add support for Cygwin ACLs.
42970         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
42971         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
42972         the chmod_or_fchmod call.
42973         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
42974
42975 2008-06-08  Bruno Haible  <bruno@clisp.org>
42976
42977         Fix bug with setuid modes in Solaris 10+ code.
42978         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
42979         succeeded, when the mode contains some special bits.
42980
42981 2008-06-08  Bruno Haible  <bruno@clisp.org>
42982
42983         Add support for Solaris 7..10 ACLs.
42984         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
42985         declarations.
42986         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
42987         functions.
42988         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
42989         * lib/set-mode-acl.c (qset_acl): Likewise.
42990         * lib/copy-acl.c (qcopy_acl): Likewise.
42991
42992 2008-06-08  Bruno Haible  <bruno@clisp.org>
42993
42994         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
42995         declaration.
42996         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
42997         (acl_access_nontrivial): Remove MacOS X case.
42998         (file_has_acl): Use acl_extended_nontrivial.
42999         * lib/copy-acl.c (qcopy_acl): Likewise.
43000
43001 2008-06-08  Bruno Haible  <bruno@clisp.org>
43002
43003         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
43004
43005 2008-06-08  Jim Meyering  <meyering@redhat.com>
43006
43007         * modules/acl (Maintainer): Add Bruno Haible.
43008
43009 2008-06-07  Bruno Haible  <bruno@clisp.org>
43010
43011         Improve support for Tru64 ACLs.
43012         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
43013         ACL on OSF/1.
43014
43015 2008-06-07  Bruno Haible  <bruno@clisp.org>
43016
43017         Add support for MacOS X ACLs.
43018         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43019         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43020         * lib/set-mode-acl.c (qset_acl): Likewise.
43021         * lib/copy-acl.c (qcopy_acl): Likewise.
43022
43023 2008-06-07  Bruno Haible  <bruno@clisp.org>
43024
43025         Fix memory leak introduced on 2008-05-22.
43026         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43027         use.
43028
43029 2008-06-07  Bruno Haible  <bruno@clisp.org>
43030
43031         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43032         to construct an empty ACL.
43033
43034 2008-06-07  Bruno Haible  <bruno@clisp.org>
43035
43036         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43037         precisely.
43038         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43039
43040 2008-06-07  Bruno Haible  <bruno@clisp.org>
43041
43042         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43043         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43044
43045 2008-06-07  Bruno Haible  <bruno@clisp.org>
43046
43047         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43048         regardless of POSIX.
43049         * doc/posix-functions/_longjmp.texi: Likewise.
43050         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43051         SystemV platform in this case.
43052
43053 2008-06-06  Eric Blake  <ebb9@byu.net>
43054
43055         Document abort() bugs.
43056         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43057
43058         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43059         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43060         sigsetjmp.
43061         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43062         siglongjmp, but only as a macro.
43063         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43064         is obsolete.
43065         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43066
43067         Tweak documentation to cover cygwin argz bugs.
43068         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43069         argz bug fix; no code change needed since no cygwin releases
43070         occurred between the last fix and the bug being tested.
43071         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43072         module and recently fixed cygwin bugs.
43073         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43074         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43075         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43076         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43077         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43078         Likewise.
43079         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43080         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43081         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43082         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43083         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43084         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43085         Likewise.
43086
43087         Avoid gcc warning on cygwin.
43088         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43089         !ACL_NO_TRIVIAL]: Avoid unused variable.
43090
43091 2008-06-05  Eric Blake  <ebb9@byu.net>
43092
43093         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43094         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43095         git-version-gen fails to come up with a version.
43096         Reported by Simon Josefsson.
43097
43098 2008-06-05  Jim Meyering  <meyering@redhat.com>
43099             Paul Eggert  <eggert@cs.ucla.edu>
43100
43101         utimens.c: work around a probable Linux kernel bug
43102         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43103         appears to be a kernel bug that causes utimensat to return 280
43104         instead of 0, indicating success.
43105
43106 2008-06-04  Bruno Haible  <bruno@clisp.org>
43107
43108         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43109         2008-06-01 commit.
43110
43111 2008-06-04  Bruno Haible  <bruno@clisp.org>
43112
43113         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43114         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43115         (file_has_acl): Use it. Save errno afterwards.
43116         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43117
43118 2008-06-03  Bruno Haible  <bruno@clisp.org>
43119
43120         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43121         draft code. Simplify #ifs.
43122         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43123         Put Solaris code after POSIX-draft code. Fix comments regarding
43124         Solaris 10, HP-UX. Mention Cygwin.
43125         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43126
43127 2008-06-03  Eric Blake  <ebb9@byu.net>
43128
43129         Provide fallback for older kernels.
43130         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43131         Provide runtime fallback if kernel lacks support.
43132         Reported by Mike Frysinger.
43133
43134 2008-06-02  Bruno Haible  <bruno@clisp.org>
43135
43136         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43137         it exists.
43138
43139 2008-06-02  Bruno Haible  <bruno@clisp.org>
43140
43141         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43142         * lib/copy-acl.c (qcopy_acl): Update comment.
43143
43144 2008-06-02  Bruno Haible  <bruno@clisp.org>
43145
43146         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43147         like ACL APIs.
43148
43149 2008-06-02  Bruno Haible  <bruno@clisp.org>
43150
43151         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43152         * tests/test-set-mode-acl.sh: Likewise.
43153         * tests/test-copy-acl.sh: Likewise.
43154         * tests/test-copy-file.sh: Likewise.
43155
43156 2008-06-02  Bruno Haible  <bruno@clisp.org>
43157
43158         * tests/test-file-has-acl.sh: Remove unused code.
43159
43160 2008-06-01  Bruno Haible  <bruno@clisp.org>
43161
43162         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43163         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43164         messages.
43165         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43166
43167 2008-06-01  Bruno Haible  <bruno@clisp.org>
43168
43169         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43170         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43171         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43172         APIs.
43173         * modules/acl-tests (configure.ac): Remove tests now contained in
43174         m4/acl.m4.
43175
43176 2008-06-02  Jim Meyering  <meyering@redhat.com>
43177
43178         announce-gen: use a better key-server host name
43179         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43180         it may be more consistently reliable.  Suggested by Werner Koch
43181         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43182
43183 2008-06-01  Bruno Haible  <bruno@clisp.org>
43184
43185         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43186         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43187
43188 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43189
43190         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43191
43192 2008-06-01  Bruno Haible  <bruno@clisp.org>
43193
43194         New ACL tests.
43195         * tests/test-file-has-acl.sh: New file.
43196         * tests/test-file-has-acl.c: New file.
43197         * tests/test-set-mode-acl.sh: New file.
43198         * tests/test-set-mode-acl.c: New file.
43199         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43200         * tests/test-copy-acl.c: New file.
43201         * modules/acl-tests: New file, based on modules/copy-file-tests.
43202         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43203         (Depends-on): Add acl-tests.
43204         (configure.ac): Remove checks.
43205         (Makefile.am): Don't create test-sameacls program here any more.
43206
43207 2008-06-01  Bruno Haible  <bruno@clisp.org>
43208
43209         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43210         * tests/test-sameacls.c: Include progname.h.
43211         (main): Invoke set_program_name. Portability fixes for MacOS X,
43212         Solaris, HP-UX.
43213
43214 2008-06-01  Bruno Haible  <bruno@clisp.org>
43215
43216         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43217         function.
43218         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43219
43220 2008-06-01  Bruno Haible  <bruno@clisp.org>
43221
43222         * modules/rpmatch (Depends-on): Add strdup.
43223
43224 2008-06-01  Bruno Haible  <bruno@clisp.org>
43225
43226         * lib/pipe.c: Include unistd-safer.h.
43227         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43228         * modules/pipe (Depends-on): Add unistd-safer.
43229
43230 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43231
43232         * modules/autobuild (configure.ac): Call AB_INIT.
43233
43234 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43235
43236         * tests/test-getaddrinfo.c: Don't print debug messages by default.
43237         Suggested by Bruno Haible <bruno@clisp.org>.
43238
43239 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43240
43241         * tests/test-base64.c: Cast size_t to unsigned long when invoking
43242         printf.  Use %lu instead of %d.  Reported by Bruno Haible
43243         <bruno@clisp.org>.
43244
43245 2008-05-29  Eric Blake  <ebb9@byu.net>
43246
43247         Prefer new POSIX 200x interfaces over futimesat.
43248         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
43249         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
43250         when available.
43251         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
43252
43253 2008-05-28  Bruno Haible  <bruno@clisp.org>
43254
43255         * modules/stpcpy (License): Change to LGPLv2+.
43256         Requested by David Lutterkort <dlutter@redhat.com>.
43257
43258 2008-05-27  Bruno Haible  <bruno@clisp.org>
43259
43260         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
43261         current mingw.
43262         Reported by Jose E. Marchesi <jemarch@gnu.org>.
43263
43264 2008-05-27  Bruno Haible  <bruno@clisp.org>
43265
43266         * modules/iconv_open (Link): New section, from module 'iconv'.
43267         * modules/striconv (Link): Likewise.
43268         * modules/striconveh (Link): Likewise.
43269         * modules/xstriconv (Link): Likewise.
43270         * modules/unicodeio (Link): Likewise.
43271         * modules/propername (Link): Likewise.
43272         Reported by Jim Meyering.
43273
43274 2008-05-26  Jim Meyering  <meyering@redhat.com>
43275
43276         sha256: do not artificially restrict buffer length to be < 2^32
43277         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
43278         uint32_t to size_t.
43279         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
43280         to match.
43281
43282         avoid unaligned access errors, e.g., on sparc
43283         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
43284         direct access through a possibly-unaligned uint64* pointer.
43285         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
43286         direct access through a possibly-unaligned uint32* pointer.
43287         Prompted by this patch from Tom "spot" Callaway:
43288         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
43289
43290         sha512.c: fix typo in comment
43291         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
43292
43293 2008-05-25  Bruno Haible  <bruno@clisp.org>
43294
43295         * lib/set-mode-acl.c: Renamed from lib/acl.c.
43296         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
43297         (Makefile.am): Update lib_SOURCES.
43298
43299 2008-05-25  Bruno Haible  <bruno@clisp.org>
43300
43301         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
43302
43303 2008-05-25  Jim Meyering  <meyering@redhat.com>
43304
43305         useless-if-before-free: freed expr may have white-space differences
43306         * build-aux/useless-if-before-free: Recognize cases in which the
43307         freed expression differs from the tested one in embedded white
43308         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
43309         $1 was used, so we can't make any regexp shy.  Improved tests now
43310         detect this.
43311
43312         useless-if-before-free: accept white space in the expression.
43313         * build-aux/useless-if-before-free: For now, any white space
43314         in the expression must be identical in the free argument.
43315
43316         useless-if-before-free: efficiency tweak
43317         * build-aux/useless-if-before-free: Make the expression-matching
43318         regexp "shy".
43319         Make the *outer* regexp shy, not the expr-matching one.
43320
43321         update code-in-comment to accept cast of free arg
43322         * build-aux/useless-if-before-free: Update regexp.
43323
43324 2008-05-25  Bruno Haible  <bruno@clisp.org>
43325
43326         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
43327         * modules/copy-file-tests (Files, Makefile.am): Update.
43328         * tests/test-copy-file.c (func_test_copy): Update.
43329
43330 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43331
43332         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43333
43334 2008-05-23  Bruno Haible  <bruno@clisp.org>
43335
43336         Improve support for ACLs on OSF/1.
43337         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43338         Remove fallback for unknown flavors of ACLs.
43339
43340 2008-05-22  Bruno Haible  <bruno@clisp.org>
43341
43342         Add support for ACLs on OSF/1.
43343         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43344         replacements.
43345         (acl_free_text): New macro fallback.
43346         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43347         acl_free.
43348         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43349         acl_free_text function. Require AC_C_INLINE.
43350
43351 2008-05-22  Bruno Haible  <bruno@clisp.org>
43352
43353         Make copy_acl work on MacOS X 10.5.
43354         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43355         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43356         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43357         If MODE_INSIDE_ACL, don't assume that every system has the same text
43358         representation for ACLs as FreeBSD.
43359         * lib/copy-acl.c (copy_acl): Add support for platforms with
43360         !MODE_INSIDE_ACL.
43361         * lib/file-has-acl.c (file_has_acl): Likewise.
43362         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43363         FreeBSD, MacOS X, or IRIX, respectively.
43364
43365 2008-05-22  Bruno Haible  <bruno@clisp.org>
43366
43367         * lib/acl.h: Don't include <sys/acl.h>.
43368         (GETACLCNT): Move fallback to lib/acl-internal.h.
43369         * lib/acl-internal.h: Include <sys/acl.h> here.
43370         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43371
43372 2008-05-22  Bruno Haible  <bruno@clisp.org>
43373
43374         Split off copy_acl function to separate file.
43375         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43376         * lib/acl.c (copy_acl): Moved function to separate file.
43377         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43378         * modules/acl (Files): Add lib/copy-acl.c.
43379         (Makefiles.am): Augment lib_SOURCES.
43380
43381 2008-05-22  Bruno Haible  <bruno@clisp.org>
43382
43383         * modules/copy-file-tests: New file.
43384         * tests/test-copy-file.sh: New file.
43385         * tests/test-copy-file.c: New file.
43386         * tests/test-copy-file-sameacls.c: New file.
43387
43388 2008-05-22  Eric Blake  <ebb9@byu.net>
43389
43390         Avoid gcc warning.
43391         * tests/test-memcmp.c (main): Pass NULL indirectly.
43392
43393 2008-05-21  Bruno Haible  <bruno@clisp.org>
43394
43395         Add reference doc about ACLs.
43396         * doc/acl-resources.txt: New file.
43397         * doc/acl-cygwin.txt: New file.
43398
43399 2008-05-21  Bruno Haible  <bruno@clisp.org>
43400
43401         Avoid one more warning from gcc.
43402         * lib/vasnprintf.c (IF_LINT): Update comments.
43403         (VASNPRINTF): Use it also for the 'prefix' array initializer.
43404
43405 2008-05-21  Jim Meyering  <meyering@redhat.com>
43406
43407         avoid a warning from gcc
43408         * lib/vasnprintf.c (IF_LINT): Define.
43409         (scale10_round_decimal_long_double):
43410         Use it to avoid a "may be used uninitialized" warning.
43411         (scale10_round_decimal_double): Likewise.
43412
43413 2008-05-21  Simon Josefsson  <simon@josefsson.org>
43414
43415         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
43416         declared.
43417
43418 2008-05-20  Bruno Haible  <bruno@clisp.org>
43419
43420         * tests/test-memcmp.c (main): Test also the sign of the result. Test
43421         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
43422
43423 2008-05-20  Simon Josefsson  <simon@josefsson.org>
43424
43425         * modules/memcmp-tests: New file.
43426         * tests/test-memcmp.c: New file.
43427
43428 2008-05-19  Bruno Haible  <bruno@clisp.org>
43429
43430         * modules/propername (Notice, configure.ac): Put quoted "..." into
43431         --keyword option.
43432         * lib/propername.h: Update comments accordingly.
43433         Reported by Eric Blake.
43434
43435 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
43436
43437         * modules/getpass-gnu (Depends-on): Add fseeko.
43438
43439 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43440
43441         * modules/base64-tests: New file.
43442
43443 2008-05-19  Bo Borgerson <gigabo@gmail.com>
43444
43445         * lib/base64.c (base64_decode_ctx): If a decode context structure
43446         was passed in use it to ignore newlines.  If a context structure
43447         was _not_ passed in, continue to treat newlines as garbage (this
43448         is the historical behavior).  Formerly base64_decode.
43449         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43450         takes a decode context structure.
43451         * lib/base64.h (base64_decode): Macro for four-argument calls.
43452         (base64_decode_alloc): Likewise.
43453         * lib/base64.c (base64_decode_ctx): If a decode context structure
43454         was passed in use it to ignore newlines.  If a context structure
43455         was _not_ passed in, continue to treat newlines as garbage (this
43456         is the historical behavior).  Formerly base64_decode.
43457         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43458         takes a decode context structure.
43459         * lib/base64.h (base64_decode): Macro for four-argument calls.
43460         (base64_decode_alloc): Likewise.
43461
43462 2008-05-19  Jim Meyering  <meyering@redhat.com>
43463
43464         avoid a warning from gcc
43465         * lib/trim.c (IF_LINT): Define.
43466         (trim2): Use it to avoid a "may be used uninitialized" warning.
43467
43468         Fix doc typo.
43469         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
43470
43471 2008-05-19  Bruno Haible  <bruno@clisp.org>
43472
43473         * doc/glibc-functions/getpass.texi: Document limits of other
43474         implementations.
43475
43476 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43477             Bruno Haible <bruno@clisp.org>
43478
43479         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
43480
43481 2008-05-18  Bruno Haible  <bruno@clisp.org>
43482
43483         * modules/propername: New file, from GNU gettext.
43484         * lib/propername.h: New file, from GNU gettext.
43485         * lib/propername.c: New file, from GNU gettext.
43486         * MODULES.html.sh (Internationalization functions): Add propername.
43487
43488 2008-05-16  Jim Meyering  <meyering@redhat.com>
43489             Bruno Haible  <bruno@clisp.org>
43490
43491         Avoid some warnings from "gcc -Wshadow".
43492         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
43493
43494 2008-05-15  Eric Blake  <ebb9@byu.net>
43495
43496         Extend previous patch to cygwin 1.7.0.
43497         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
43498         fast implementation in cygwin >= 1.7.0.
43499         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43500         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43501
43502 2008-05-15  Bruno Haible  <bruno@clisp.org>
43503
43504         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
43505         implementation in glibc >= 2.9.
43506         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43507         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43508
43509 2008-05-15  Bruno Haible  <bruno@clisp.org>
43510
43511         * MODULES.html.sh (Internationalization functions): Remove linebreak.
43512         (Unicode string functions): Add unilbrk/*.
43513         Reported by Karl Berry.
43514
43515 2008-05-15  Eric Blake  <ebb9@byu.net>
43516
43517         Fix violation of <stdbool.h> replacement in regex.
43518         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
43519         * lib/regexec.c (re_search_internal): Likewise.
43520         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
43521
43522 2008-05-15  Jim Meyering  <meyering@redhat.com>
43523
43524         avoid distracting test output when git or cvs is not found
43525         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
43526         * tests/test-vc-list-files-git.sh: Likewise.
43527
43528 2008-05-15  Eric Blake  <ebb9@byu.net>
43529
43530         Glibc finally accepted the memmem speedup code, bugzilla #5514.
43531         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
43532         glibc version.
43533         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43534         * doc/posix-functions/strstr.texi (strstr): Likewise.
43535         * lib/str-two-way.h (MAX): Sychronize with glibc.
43536
43537 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
43538
43539         * lib/regcomp.c (optimize_utf8): Add a note on why we test
43540         opr.ctx_type.
43541         (calc_first): Initialize constraint field.
43542         (duplicate_node_closure): Use it instead of special casing ANCHORS.
43543         Fix grammar.
43544         (duplicate_node): Merge constraint field for all node types.
43545         (calc_eclosure_iter): Look at constraint field for all node types.
43546         * lib/regex_internal.c (create_cd_newstate): Don't look at
43547         opr.ctx_type.
43548
43549 2008-05-14  Bruno Haible  <bruno@clisp.org>
43550
43551         Help GCC to do better code generation.
43552         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
43553         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43554         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
43555         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
43556         Declare with attribute 'malloc' if supported.
43557
43558 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
43559
43560         use "echo STR|wc -c" rather than unportable "expr length STR"
43561         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
43562         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
43563
43564 2008-05-14  Jim Meyering  <meyering@redhat.com>
43565
43566         use dd ibs=$n count=1 ... rather than less-portable head -c$n
43567         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
43568         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
43569         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
43570         via Collin Lasse.
43571
43572 2008-05-14  Eric Blake  <ebb9@byu.net>
43573
43574         Avoid quadratic growth in gl_LIBSOURCES.
43575         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
43576         Suggested by Bruno Haible.
43577
43578         Test xmemdup0.
43579         * modules/xmemdup0-tests: New file.
43580         * tests/test-xmemdup0.c: Likewise.
43581
43582 2008-05-13  Eric Blake  <ebb9@byu.net>
43583
43584         Split xmemdup0 into its own module.
43585         * modules/xmemdup0: New file.
43586         * lib/xmemdup0.h: Likewise.
43587         * lib/xmemdup0.c: Likewise.
43588         * MODULES.html.sh (Memory management functions): Add xmemdup0.
43589         * lib/xalloc.h (xmemdup0): Remove.
43590         * lib/xmalloc.c (xmemdup0): Likewise.
43591
43592 2008-05-13  Eric Blake  <ebb9@byu.net>
43593             Bruno Haible  <bruno@clisp.org>
43594
43595         Reduce number of forks required during autoconf.
43596         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
43597         and gl_LIBSOURCES_DIR.
43598         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
43599         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
43600         m4_syscmd per file.
43601         <m4_foreach_w>: Move...
43602         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
43603
43604 2008-05-13  Eric Blake  <ebb9@byu.net>
43605
43606         * gnulib-tool: Fix various comment typos.
43607
43608 2008-05-12  Bruno Haible  <bruno@clisp.org>
43609
43610         Tailor the linebreaking algorithm.
43611         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
43612
43613 2008-05-12  Bruno Haible  <bruno@clisp.org>
43614
43615         Update to Unicode 5.0.0.
43616         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43617         LBP_JV, LBP_JT. Redistribute values.
43618         (unilbrk_table): Change size.
43619         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
43620         Unicode TR#14 rev. 22.
43621         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43622         LBP_JV, LBP_JT. Redistribute values.
43623         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
43624         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
43625         Update.
43626         * lib/unilbrk/lbrkprop1.h: Regenerated.
43627         * lib/unilbrk/lbrkprop2.h: Regenerated.
43628         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
43629         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
43630         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
43631         Likewise.
43632         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
43633         Likewise.
43634         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
43635         result.
43636         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43637         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43638         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
43639         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
43640         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
43641         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
43642
43643 2008-05-11  Bruno Haible  <bruno@clisp.org>
43644
43645         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
43646
43647 2008-05-11  Bruno Haible  <bruno@clisp.org>
43648
43649         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
43650         * modules/unilbrk/gen-lbrk: New file.
43651
43652 2008-05-11  Bruno Haible  <bruno@clisp.org>
43653
43654         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
43655         * m4/sha512.m4 (gl_SHA512): Likewise.
43656
43657 2008-05-11  Jim Meyering  <meyering@redhat.com>
43658
43659         New modules: crypto/sha256, crypto/sha512 (from coreutils)
43660         * modules/crypto/sha256: New file.
43661         * modules/crypto/sha512: Likewise.
43662         * lib/sha256.c: Likewise.
43663         * lib/sha256.h: Likewise.
43664         * lib/sha512.c: Likewise.
43665         * lib/sha512.h: Likewise.
43666         * lib/u64.h: Likewise.
43667         * m4/sha256.m4: Likewise.
43668         * m4/sha512.m4: Likewise.
43669         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
43670
43671 2008-05-10  Bruno Haible  <bruno@clisp.org>
43672
43673         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
43674         (Input/Output <stdio.h>): Add xprintf.
43675         (Signal handling <signal.h>): Add strsignal.
43676         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
43677         (Core language properties): Add func.
43678         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
43679         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
43680         strings.
43681         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
43682         (Input/output): New section.
43683         (File system functions): Add openat-die, stat-macros.
43684         (Networking functions): Add sockets.
43685         (Unicode string functions): Add unictype/*.
43686         (Support for building libraries and executables): Add gperf.
43687         (Support for building documentation): Add agpl-3.0.
43688         (Misc): Add nocrash.
43689
43690 2008-05-10  Bruno Haible  <bruno@clisp.org>
43691
43692         * modules/unictype/gen-ctype: New file.
43693
43694 2008-05-10  Jim Meyering  <meyering@redhat.com>
43695
43696         Make chdir-safer.c more efficient on a system with no symlinks.
43697         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
43698         also if ELOOP is zero.  Suggested by Bruno Haible.
43699
43700         Make chdir-safer.c slightly safer.
43701         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
43702         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
43703
43704         Avoid compile failure on systems without ELOOP (like mingw).
43705         * lib/chdir-safer.c (ELOOP): Define if not already defined.
43706         Reported by Bruno Haible.
43707
43708 2008-05-10  Bruno Haible  <bruno@clisp.org>
43709
43710         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
43711         (is_utf8_encoding): Use a case-insensitive comparison.
43712         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
43713         streq.
43714
43715 2008-05-10  Bruno Haible  <bruno@clisp.org>
43716
43717         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
43718         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
43719         * lib/unilbrk/ulc-common.h (iconv_string_length,
43720         iconv_string_keeping_offsets): Remove declarations.
43721         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
43722         Don't include <iconv.h>, streq.h, xsize.h.
43723         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
43724         conversion.
43725         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
43726         <iconv.h>, streq.h, xsize.h.
43727         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
43728         conversion.
43729         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
43730         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
43731         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
43732         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
43733
43734 2008-05-10  Bruno Haible  <bruno@clisp.org>
43735
43736         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
43737         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
43738
43739         * modules/unilbrk/u32-width-linebreaks-tests: New file.
43740         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
43741
43742         * modules/unilbrk/u16-width-linebreaks-tests: New file.
43743         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
43744
43745         * modules/unilbrk/u8-width-linebreaks-tests: New file.
43746         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
43747
43748         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
43749         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
43750
43751         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
43752         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
43753
43754         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
43755         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
43756
43757         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
43758         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
43759
43760 2008-05-10  Bruno Haible  <bruno@clisp.org>
43761
43762         Split up 'linebreak' module.
43763         * lib/unilbrk.h: New file, based on lib/linebreak.h.
43764         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
43765         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
43766         modifications.
43767         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
43768         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
43769         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
43770         lib/linebreak.c.
43771         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
43772         lib/linebreak.c.
43773         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
43774         lib/linebreak.c.
43775         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
43776         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
43777         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
43778         lib/linebreak.c.
43779         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
43780         lib/linebreak.c.
43781         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
43782         lib/linebreak.c.
43783         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
43784         lib/linebreak.c.
43785         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
43786         lib/linebreak.c.
43787         * modules/unilbrk/base: New file.
43788         * modules/unilbrk/tables: New file.
43789         * modules/unilbrk/u8-possible-linebreaks: New file.
43790         * modules/unilbrk/u16-possible-linebreaks: New file.
43791         * modules/unilbrk/u32-possible-linebreaks: New file.
43792         * modules/unilbrk/ulc-common: New file.
43793         * modules/unilbrk/ulc-possible-linebreaks: New file.
43794         * modules/unilbrk/u8-width-linebreaks: New file.
43795         * modules/unilbrk/u16-width-linebreaks: New file.
43796         * modules/unilbrk/u32-width-linebreaks: New file.
43797         * modules/unilbrk/ulc-width-linebreaks: New file.
43798         * lib/linebreak.h: Remove file.
43799         * lib/linebreak.c: Remove file.
43800         * m4/linebreak.m4: Remove file.
43801         * modules/linebreak: Remove file.
43802         * NEWS: Mention the changes.
43803
43804 2008-05-09  Eric Blake  <ebb9@byu.net>
43805
43806         Add xmemdup0.
43807         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
43808         implementation.
43809         * lib/xmalloc.c (xmemdup0): New C implementation.
43810
43811 2008-05-08  Bruno Haible  <bruno@clisp.org>
43812
43813         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
43814
43815 2008-05-07  Eric Blake  <ebb9@byu.net>
43816
43817         Support cross-compilation of <wctype.h>.
43818         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
43819         AC_CACHE_CHECK.
43820
43821 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
43822
43823         * build-aux/vc-list-files: Add support for bzr.
43824
43825 2008-05-03  Jim Meyering  <meyering@redhat.com>
43826
43827         avoid failed assertion with tight malloc
43828         * tests/test-getndelim2.c: Correct an off-by-one assertion.
43829
43830 2008-05-03  Simon Josefsson  <simon@josefsson.org>
43831
43832         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
43833         are needed from arpa/inet.h.
43834         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
43835         Reported by Bruno Haible.
43836
43837 2008-05-02  Jim Meyering  <meyering@redhat.com>
43838
43839         avoid compilation error on FreeBSD 6
43840         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
43841
43842 2008-05-01  Jim Meyering  <meyering@redhat.com>
43843
43844         useless-if-before-free: correct --help's exit status description
43845         * build-aux/useless-if-before-free (usage): Like grep, exit 0
43846         for one or more matches, etc.  Reported by Bruno Haible.
43847
43848         vc-list-files: make the stand-alone gnulib test work
43849         * modules/vc-list-files-tests (configure.ac):
43850         Define and AC_SUBST abs_aux_dir.
43851         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
43852         $(abs_top_srcdir) to each script and having each of them
43853         duplicate the work of setting PATH, set PATH here, using
43854         the new variable, abs_aux_dir instead.
43855         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
43856         * tests/test-vc-list-files-git.sh: Likewise.
43857         Reported by Bruno Haible.
43858
43859 2008-05-01  Bruno Haible  <bruno@clisp.org>
43860
43861         * lib/getndelim2.c (getndelim2): Fix newsize computation during
43862         reallocation. Rename 'done' to 'found_delimiter'.
43863
43864 2008-05-01  Jim Meyering  <meyering@redhat.com>
43865
43866         vc-list-files: accommodate /bin/sh like the one from Solaris 10
43867         * build-aux/vc-list-files: Use `...`, not $(...).
43868
43869 2008-04-30  Jim Meyering  <meyering@redhat.com>
43870
43871         add tests for vc-list-files
43872         * modules/vc-list-files-tests: New module.
43873         * tests/test-vc-list-files-cvs.sh: New file.
43874         * tests/test-vc-list-files-git.sh: New file.
43875
43876         avoid a warning from gcc
43877         * lib/getndelim2.c (IF_LINT): Define.
43878         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
43879
43880         vc-list-files: work properly with build-aux/cvsu, too
43881         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
43882         to all cvs-based clauses.
43883
43884         vc-list-files: work properly in the CVS+awk case, too
43885         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
43886
43887         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
43888         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
43889         take more than one file argument, so .  Add quotes, just in case $dir
43890         ever contains a shell meta-character.  Prompted by Soren Hansen in
43891         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
43892
43893 2008-04-29  Eric Blake  <ebb9@byu.net>
43894
43895         Optimize getndelim2 to use block operations when possible.
43896         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
43897         freadseek, and memchr2.
43898         * lib/getndelim2.c (getndelim2): Use them for block reads.
43899
43900 2008-04-29  Bruno Haible  <bruno@clisp.org>
43901
43902         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
43903         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43904         * modules/inet_ntop (Depends-on): Add extensions.
43905         * modules/inet_pton (Depends-on): Likewise.
43906         Reported by Simon Josefsson.
43907
43908 2008-04-29  Jim Meyering  <meyering@redhat.com>
43909
43910         When the is more than one match in a block, match all of them.
43911         * build-aux/useless-if-before-free: Iterate through each block
43912         until there are no more matches.
43913
43914         Fix broken useless-if-before-free script.
43915         * build-aux/useless-if-before-free: Fix typo: missing "?" after
43916         the expression to match cast of argument to free-like function.
43917
43918 2008-04-29  Eric Blake  <ebb9@byu.net>
43919
43920         Use new header.
43921         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
43922
43923 2008-04-29  Jim Meyering  <meyering@redhat.com>
43924
43925         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
43926         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
43927         by gnulib to exist and to declare e.g., inet_ntop.
43928         Don't include "inet_ntop.h", now removed.
43929
43930         * m4/arpa_inet_h.m4: Remove trailing blanks.
43931
43932 2008-04-29  Eric Blake  <ebb9@byu.net>
43933
43934         Silence valgrind on safe reads beyond potential array bounds.
43935         * lib/rawmemchr.valgrind: New file.
43936         * lib/strchrnul.valgrind: Likewise.
43937         * modules/rawmemchr (Files): Distribute new file.
43938         * modules/strchrnul (Files): Likewise.
43939         Suggested by Bruno Haible.
43940
43941 2008-04-29  Bruno Haible  <bruno@clisp.org>
43942
43943         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
43944         (inet_ntop, inet_pton): Change portability warning's wording.
43945         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
43946         Invoke gl_CHECK_NEXT_HEADERS.
43947         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
43948         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
43949         set ARPA_INET_H.
43950         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43951         * modules/arpa_inet (Description): No longer only for systems that
43952         lack it.
43953         (Depends-on): Add include_next.
43954         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
43955         HAVE_ARPA_INET_H.
43956
43957 2008-04-29  Jim Meyering  <meyering@redhat.com>
43958
43959         * modules/mkdir (License): Re-license as LGPLv2+.
43960
43961 2008-04-29  Bruno Haible  <bruno@clisp.org>
43962
43963         * modules/rawmemchr (Maintainer): Set to Eric.
43964         * modules/strchrnul (Maintainer): Likewise.
43965
43966 2008-04-29  Simon Josefsson  <simon@josefsson.org>
43967
43968         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
43969         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
43970
43971         * modules/arpa_inet (arpa/inet.h): Use them.
43972
43973 2008-04-28  Eric Blake  <ebb9@byu.net>
43974
43975         Test getndelim2.
43976         * modules/getndelim2-tests: New file.
43977         * tests/test-getndelim2.c: Likewise.
43978         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
43979         stream.
43980         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
43981
43982         * MODULES.html.sh: Document new module.
43983
43984 2008-04-20  Bruno Haible  <bruno@clisp.org>
43985
43986         * lib/c-stack.c (die): Use raise.
43987         * modules/c-stack (Depends-on): Add raise.
43988
43989 2008-04-28  Bruno Haible  <bruno@clisp.org>
43990
43991         Expect rpmatch to be declared.
43992         * lib/yesno.c (rpmatch): Remove declaration.
43993
43994         Declare rpmatch.
43995         * lib/stdlib.in.h (rpmatch): New declaration.
43996         * lib/rpmatch.c: Include <stdlib.h> first.
43997         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
43998         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
43999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
44000         HAVE_RPMATCH.
44001         * modules/rpmatch (Depends-on): Add stdlib, extensions.
44002         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44003         (Include): Set to <stdlib.h>.
44004         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
44005         HAVE_RPMATCH.
44006         * NEWS: Document the change.
44007
44008 2008-04-28  Bruno Haible  <bruno@clisp.org>
44009
44010         Change rpmatch to use nl_langinfo when appropriate.
44011         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
44012         (N_): New macro.
44013         (localized_pattern): New function/macro.
44014         (try): Remove match, nomatch arguments. Copy the pattern into safe
44015         memory before caching it.
44016         (rpmatch): Use localized_pattern. Add translator comments.
44017         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
44018         Suggested by Eric Blake.
44019         * modules/rpmatch (Depends-on): Add stdbool.
44020
44021 2008-04-28  Eric Blake  <ebb9@byu.net>
44022
44023         Add rawmemchr module, matching glibc.
44024         * modules/string (Makefile.am): New indicator.
44025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44026         * lib/string.in.h (rawmemchr): Declare when appropriate.
44027         * modules/rawmemchr: New file.
44028         * m4/rawmemchr.m4: Likewise.
44029         * lib/rawmemchr.c: Likewise.
44030         * modules/rawmemchr-tests: Likewise.
44031         * tests/test-rawmemchr.c: Likewise.
44032         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44033         module.
44034         * modules/strchrnul (Depends-on): Add rawmemchr.
44035         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44036
44037         Whitespace cleanup.
44038         * tests/test-strchrnul.c: Reindent.
44039         * lib/strchrnul.c: Likewise.
44040
44041         Optimize and test strchrnul.
44042         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44043         * modules/strchrnul-tests: New file.
44044         * tests/test-strchrnul.c: Likewise.
44045
44046         Remove intprops dependency.
44047         * modules/memchr (Depends-on): Remove intprops.
44048         * modules/memrchr (Depends-on): Likewise.
44049         * modules/memchr2 (Depends-on): Likewise.
44050         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44051         * lib/memrchr.c (__memrchr): Likewise.
44052         * lib/memrchr2.c (memchr2): Likewise.
44053         Reported by Simon Josefsson.
44054
44055 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44056
44057         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44058         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44059
44060 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44061
44062         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44063
44064         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44065
44066         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44067
44068         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44069         declarations.
44070         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44071
44072         * m4/inet_pton.m4: Don't check for header files.
44073
44074         * m4/inet_ntop.m4: Don't check for header files.
44075
44076 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44077
44078         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44079         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44080         trigger for cygwin).
44081         Reported by Bruno Haible  <bruno@clisp.org>.
44082
44083 2008-04-28  Bruno Haible  <bruno@clisp.org>
44084
44085         * doc/posix-functions/strdup.texi: Mention mingw problem.
44086
44087 2008-04-27  Bruno Haible  <bruno@clisp.org>
44088
44089         * modules/stat-time-tests (Depends-on): Add sleep.
44090         * tests/test-stat-time.c (force_unlink): New function.
44091         (cleanup): Use it.
44092         (test_mtime): Remove the ctime related tests.
44093         (test_ctime): New function, containing the ctime related tests.
44094         (main): Call test_ctime, except on native Windows platforms.
44095
44096 2008-04-27  Bruno Haible  <bruno@clisp.org>
44097
44098         * lib/rpmatch.c (rpmatch): Add some comments.
44099         Reported by James Youngman <jay@gnu.org>.
44100
44101 2008-04-27  Bruno Haible  <bruno@clisp.org>
44102
44103         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44104         quiet NaNs.
44105
44106 2008-04-27  Bruno Haible  <bruno@clisp.org>
44107
44108         Make test-yesno.sh work on mingw.
44109         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44110         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44111         (main): Set stdin to binary mode.
44112         * modules/yesno-tests (Depends-on): Add binary-io.
44113
44114 2008-04-27  Bruno Haible  <bruno@clisp.org>
44115
44116         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44117         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44118         argument that lie outside the IEEE 854 domain.
44119         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44120         (gl_ISFINITE): Use it.
44121         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44122
44123 2008-04-27  Bruno Haible  <bruno@clisp.org>
44124
44125         Allow local renaming in config.h.
44126         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44127
44128 2008-04-27  Bruno Haible  <bruno@clisp.org>
44129
44130         * lib/memchr.c (__memchr): Change type of 'i'.
44131         * lib/memchr2.c (memchr2): Likewise.
44132
44133 2008-04-26  Eric Blake  <ebb9@byu.net>
44134         and Bruno Haible  <bruno@clisp.org>
44135
44136         Optimize and test memrchr.
44137         * modules/memrchr (Depends-on): Add intprops.
44138         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44139         * modules/memrchr-tests: New file.
44140         * tests/test-memrchr.c: New file.
44141
44142 2008-04-26  Bruno Haible  <bruno@clisp.org>
44143
44144         Add tentative support for DragonFly BSD.
44145         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44146         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44147         fp.
44148         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44149         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44150         * lib/fpurge.c (fpurge): Likewise.
44151         * lib/freadable.c (freaadable): Likewise.
44152         * lib/freadahead.c (freadahead): Likewise.
44153         * lib/freading.c (freading): Likewise.
44154         * lib/freadptr.c (freadptr): Likewise.
44155         * lib/freadseek.c (freadptrinc): Likewise.
44156         * lib/fseeko.c (fseeko): Likewise.
44157         * lib/fseterr.c (fseterr): Likewise.
44158         * lib/fwritable.c (fwritable): Likewise.
44159         * lib/fwriting.c (fwriting): Likewise.
44160
44161 2008-04-26  Bruno Haible  <bruno@clisp.org>
44162
44163         * lib/stdio-impl.h: New file.
44164         * lib/fbufmode.c: Include stdio-impl.h.
44165         (fbufmode): Use fp_, remove redundant #defines.
44166         * lib/fflush.c: Include stdio-impl.h.
44167         (clear_ungetc_buffer): Remove redundant #defines.
44168         * lib/fpurge.c: Include stdio-impl.h.
44169         (fpurge): Remove redundant #defines.
44170         * lib/freadable.c: Include stdio-impl.h.
44171         (freadable): Remove redundant #defines.
44172         * lib/freadahead.c: Include stdio-impl.h.
44173         (freadahead): Remove redundant #defines.
44174         * lib/freading.c: Include stdio-impl.h.
44175         (freading): Remove redundant #defines.
44176         * lib/freadptr.c: Include stdio-impl.h.
44177         (freadptr): Remove redundant #defines.
44178         * lib/freadseek.c: Include stdio-impl.h.
44179         (freadptrinc): Remove redundant #defines.
44180         * lib/fseeko.c: Include stdio-impl.h.
44181         (rpl_fseeko): Remove redundant #defines.
44182         * lib/fseterr.c: Include stdio-impl.h.
44183         (fseterr): Remove redundant #defines.
44184         * lib/fwritable.c: Include stdio-impl.h.
44185         (fwritable: Remove redundant #defines.
44186         * lib/fwriting.c: Include stdio-impl.h.
44187         (fwriting): Remove redundant #defines.
44188         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44189         * modules/fflush (Files): Likewise.
44190         * modules/fpurge (Files): Likewise.
44191         * modules/freadable (Files): Likewise.
44192         * modules/freadahead (Files): Likewise.
44193         * modules/freading (Files): Likewise.
44194         * modules/freadptr (Files): Likewise.
44195         * modules/freadseek (Files): Likewise.
44196         * modules/fseeko (Files): Likewise.
44197         * modules/fseterr (Files): Likewise.
44198         * modules/fwritable (Files): Likewise.
44199         * modules/fwriting (Files): Likewise.
44200
44201 2008-04-26  Bruno Haible  <bruno@clisp.org>
44202
44203         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44204         restore_seek_optimization, update_fpos_cache): New functions, extracted
44205         from rpl_fflush.
44206         (rpl_fflush): Use them.
44207         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44208         (gl_REPLACE_FFLUSH): Use it.
44209
44210 2008-04-26  Bruno Haible  <bruno@clisp.org>
44211
44212         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44213         on Solaris.
44214         * tests/test-xstrtoimax.sh: Likewise.
44215         * tests/test-xstrtoumax.sh: Likewise.
44216         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44217
44218 2008-04-26  Bruno Haible  <bruno@clisp.org>
44219
44220         * modules/memchr-tests: New file.
44221         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44222
44223 2008-04-26  Eric Blake  <ebb9@byu.net>
44224             Bruno Haible  <bruno@clisp.org>
44225
44226         * lib/memchr.c: Include intprops.h.
44227         (__memchr): Optimize parallel detection of matching bytes. Rename local
44228         variables. Add explanatory comments.
44229
44230 2008-04-26  Bruno Haible  <bruno@clisp.org>
44231
44232         Fix module 'memchr', broken since 2000-10-28.
44233         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44234
44235 2008-04-26  Bruno Haible  <bruno@clisp.org>
44236
44237         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
44238         comments.
44239
44240 2008-04-25  Eric Blake  <ebb9@byu.net>
44241
44242         Use native fstatat on cygwin 1.7.0.
44243         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
44244         first.
44245
44246 2008-04-23  Eric Blake  <ebb9@byu.net>
44247
44248         Improve memchr2 performance.
44249         * lib/memchr2.c (memchr2): Further optimize parallel detection of
44250         NUL bytes.
44251         * modules/memchr2 (Depends-on): Use intprops.h.
44252
44253 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44254
44255         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
44256         an inline function instead of a CPP macro.  Patch by Ben Pfaff
44257         <blp@cs.stanford.edu>.
44258
44259 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44260
44261         * lib/arpa_inet.in.h: New file.
44262
44263         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
44264         (Makefile.am): Sed in substitute header file.
44265
44266         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
44267         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
44268
44269         * modules/inet_ntop (configure.ac): Use
44270         gl_ARPA_INET_MODULE_INDICATOR.
44271
44272         * modules/inet_pton (configure.ac): Use
44273         gl_ARPA_INET_MODULE_INDICATOR.
44274
44275 2008-04-22  Jim Meyering  <meyering@redhat.com>
44276
44277         * modules/verify (License): Re-license as LGPLv2+.
44278
44279 2008-04-22  Simon Josefsson  <simon@josefsson.org>
44280
44281         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
44282         parameter to void* as per POSIX standard (MinGW uses char*).
44283
44284 2008-04-21  Bruno Haible  <bruno@clisp.org>
44285
44286         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44287         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44288         Define to replacements if REPLACE_ISWCNTRL is 1.
44289         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
44290         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
44291         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
44292         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
44293         what it fixes.
44294         * doc/posix-functions/iswalpha.texi: Likewise.
44295         * doc/posix-functions/iswblank.texi: Likewise.
44296         * doc/posix-functions/iswcntrl.texi: Likewise.
44297         * doc/posix-functions/iswdigit.texi: Likewise.
44298         * doc/posix-functions/iswgraph.texi: Likewise.
44299         * doc/posix-functions/iswlower.texi: Likewise.
44300         * doc/posix-functions/iswprint.texi: Likewise.
44301         * doc/posix-functions/iswpunct.texi: Likewise.
44302         * doc/posix-functions/iswspace.texi: Likewise.
44303         * doc/posix-functions/iswupper.texi: Likewise.
44304         * doc/posix-functions/iswxdigit.texi: Likewise.
44305         Reported by Alain Guibert.
44306
44307 2008-04-21  Bruno Haible  <bruno@clisp.org>
44308
44309         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
44310         Patch by Alain Guibert.
44311
44312 2008-04-21  Bruno Haible  <bruno@clisp.org>
44313
44314         Fix test failures on mingw.
44315         * tests/test-xstrtol.c (print_no_progname): New function.
44316         (main): Install it in error_print_progname hook.
44317         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
44318         * tests/test-xstrtoimax.sh: Likewise.
44319         * tests/test-xstrtoumax.sh: Likewise.
44320
44321 2008-04-21  Bruno Haible  <bruno@clisp.org>
44322
44323         Fix test failure on mingw.
44324         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
44325
44326 2008-04-21  Bruno Haible  <bruno@clisp.org>
44327
44328         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44329         Actually assign a value.
44330
44331 2008-04-20  Bruno Haible  <bruno@clisp.org>
44332
44333         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44334         take 2.
44335         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44336         'canonicalize-lgpl' module is also used.
44337         * lib/canonicalize-lgpl.c: Undo last change.
44338         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44339
44340 2008-04-20  Bruno Haible  <bruno@clisp.org>
44341
44342         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44343         config.h. Provide _mkdir based fallback for mingw.
44344         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44345         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44346         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44347         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44348         rather than defining mkdir in config.h.
44349         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44350         (gl_SYS_STAT_H_DEFAULTS): New macro.
44351         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44352         HAVE_IO_H any more.
44353         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44354         HAVE_DECL_MKDIR and HAVE_IO_H.
44355
44356 2008-04-20  Bruno Haible  <bruno@clisp.org>
44357
44358         * lib/isapipe.c: Port to native Windows platforms.
44359
44360 2008-04-20  Bruno Haible  <bruno@clisp.org>
44361
44362         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44363
44364 2008-04-21  Eric Blake  <ebb9@byu.net>
44365
44366         Work around preprocessors that don't handle UINTMAX_MAX.
44367         * lib/memchr2.c (memchr2): Avoid embedded #if.
44368         Reported by Alain Guibert, fix suggested by Bruno Haible.
44369
44370 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44371
44372         * doc/posix-functions/strftime.texi (strftime): Explain better
44373         Windows incompatibility.  Suggested by Micah Cowan
44374         <micah@cowan.name>.
44375
44376 2008-04-20  Bruno Haible  <bruno@clisp.org>
44377
44378         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44379         unistr/u8-mblen.
44380
44381 2008-04-20  Bruno Haible  <bruno@clisp.org>
44382
44383         Fix test failure on platforms with non-GNU iconv.
44384         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44385         (U_TO_U8): Use it, rather than u16_to_u8.
44386         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44387         units at the end of the input string.
44388         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44389
44390 2008-04-20  Bruno Haible  <bruno@clisp.org>
44391
44392         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44393         when the resulting length is 0.
44394         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44395
44396 2008-04-20  Bruno Haible  <bruno@clisp.org>
44397
44398         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44399         works.
44400         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44401
44402 2008-04-20  Bruno Haible  <bruno@clisp.org>
44403
44404         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
44405         * modules/tsearch-tests (configure.ac): Test for initstate function.
44406
44407 2008-04-20  Bruno Haible  <bruno@clisp.org>
44408
44409         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
44410         for nlink_t if missing.
44411         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
44412
44413 2008-04-19  Bruno Haible  <bruno@clisp.org>
44414
44415         Work around snprintf bug on Linux libc5.
44416         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
44417         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44418         gl_SNPRINTF_SIZE1.
44419         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44420         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
44421         that test failed.
44422         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
44423         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
44424         * modules/snprintf (Files): Add m4/printf.m4.
44425         * modules/vsnprintf (Files): Likewise.
44426         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
44427         * doc/posix-functions/vsnprintf.texi: Likewise.
44428
44429 2008-04-19  Bruno Haible  <bruno@clisp.org>
44430
44431         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
44432         from 0.0058 to less than 10^-7.
44433
44434 2008-04-19  Bruno Haible  <bruno@clisp.org>
44435
44436         Fix rounding when a precision is given.
44437         * lib/vasnprintf.c (is_borderline): New function.
44438         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
44439         9...9x.
44440         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
44441         %e, %g.
44442         * tests/test-vasprintf-posix.c (test_function): Likewise.
44443         * tests/test-snprintf-posix.h (test_function): Likewise.
44444         * tests/test-sprintf-posix.h (test_function): Likewise.
44445         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
44446         * tests/test-printf-posix.h (test_function): Likewise.
44447         * tests/test-printf-posix.output: Update.
44448         Reported by John Darrington <john@darrington.wattle.id.au> via
44449         Ben Pfaff <blp@cs.stanford.edu>.
44450
44451 2008-04-18  Simon Josefsson  <simon@josefsson.org>
44452
44453         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
44454         Suggested by Bruno Haible <bruno@clisp.org>.
44455
44456 2008-04-17  Bruno Haible  <bruno@clisp.org>
44457
44458         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
44459         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
44460         implementation.
44461         Patch by Bruce Merry <bmerry@gmail.com>.
44462
44463 2008-04-17  Simon Josefsson  <simon@josefsson.org>
44464
44465         * doc/posix-functions/strftime.texi (strftime): Mention that %e
44466         doesn't work under Windows.
44467
44468 2008-04-16  Bruno Haible  <bruno@clisp.org>
44469
44470         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
44471         New macros.
44472         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
44473         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
44474         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
44475         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
44476         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
44477         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
44478         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
44479         macros.
44480         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
44481         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
44482         Northern Sotho, Uighur.
44483
44484 2008-04-16  Bruno Haible  <bruno@clisp.org>
44485
44486         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
44487         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
44488         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
44489         Reported by Daniel Bergström <daniel@octocode.com>.
44490
44491 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
44492             Bruno Haible  <bruno@clisp.org>
44493
44494         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
44495         function.
44496         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
44497         New functions, mostly extracted from gl_locale_name_default.
44498         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
44499
44500 2008-04-16  Eric Blake  <ebb9@byu.net>
44501
44502         Adjust strtod detection to catch glibc 2.7 bug.
44503         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
44504         Reported by John Gatewood Ham.
44505
44506 2008-04-16  Bruno Haible  <bruno@clisp.org>
44507
44508         Add tentative support for Linux libc5.
44509         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
44510         * lib/fpurge.c (fpurge): Likewise.
44511         * lib/freadable.c (freadable): Likewise.
44512         * lib/freadahead.c (freadahead): Likewise.
44513         * lib/freading.c (freading): Likewise.
44514         * lib/freadptr.c (freadptr): Likewise.
44515         * lib/freadseek.c (freadptrinc): Likewise.
44516         * lib/fseeko.c (rpl_fseeko): Likewise.
44517         * lib/fseterr.c (fseterr): Likewise.
44518         * lib/fwritable.c (fwritable): Likewise.
44519         * lib/fwriting.c (fwriting): Likewise.
44520         Reported by Alain Guibert <alguibert+bts@free.fr>.
44521
44522 2008-04-15  Bruno Haible  <bruno@clisp.org>
44523
44524         * modules/mathl (configure.ac): Define module indicator.
44525
44526 2008-04-15  Bruno Haible  <bruno@clisp.org>
44527
44528         * lib/logl.c (logl): Remove unused variables.
44529
44530 2008-04-15  Bruno Haible  <bruno@clisp.org>
44531
44532         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
44533         fails.
44534
44535 2008-04-15  Bruno Haible  <bruno@clisp.org>
44536
44537         * lib/trim.c (trim2): Fix argument of isspace() macro.
44538
44539 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
44540
44541         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
44542         to 0.
44543         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
44544
44545 2008-04-14  Bruno Haible  <bruno@clisp.org>
44546
44547         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
44548         AC_LANG_PROGRAM argument.
44549         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
44550         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
44551         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44552         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44553         * m4/math_h.m4 (gl_MATH_H): Likewise.
44554         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44555         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44556         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44557         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
44558         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44559         * m4/regex.m4 (gl_REGEX): Likewise.
44560         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
44561         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
44562         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44563         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
44564         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44565         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44566         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44567         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44568
44569 2008-04-14  Jim Meyering  <meyering@redhat.com>
44570
44571         test-strtod: fix typos: s/abs/fabs/
44572         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
44573
44574 2008-04-13  Bruno Haible  <bruno@clisp.org>
44575
44576         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
44577         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
44578         module is also used and while not building the reloc-wrapper.
44579
44580 2008-04-13  Bruno Haible  <bruno@clisp.org>
44581
44582         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
44583
44584 2008-04-13  Bruno Haible  <bruno@clisp.org>
44585
44586         Fix AIX compilation failure introduced on 2008-04-02.
44587         * tests/test-frexp.c (exp): Undefine before redefining.
44588         * tests/test-frexpl.c (exp): Likewise.
44589
44590 2008-04-13  Bruno Haible  <bruno@clisp.org>
44591
44592         Work around a HP-UX stdio bug.
44593         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
44594         * tests/test-ftello.c (main): Likewise.
44595         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
44596         * doc/posix-functions/ftello.texi: Likewise.
44597
44598 2008-04-13  Bruno Haible  <bruno@clisp.org>
44599
44600         Make test-signbit pass on HP-UX/hppa.
44601         * tests/test-signbit.c (minus_zerol): New variable.
44602         (test_signbitl): Use it.
44603
44604 2008-04-13  Bruno Haible  <bruno@clisp.org>
44605
44606         Make truncl work on OSF/1 4.0.
44607         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
44608         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44609         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44610         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
44611         HAVE_DECL_TRUNCL.
44612         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
44613         HAVE_DECL_TRUNCL.
44614         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
44615
44616 2008-04-13  Bruno Haible  <bruno@clisp.org>
44617
44618         * lib/unictype.h: Remove trailing comma from enumeration definitions.
44619
44620 2008-04-13  Bruno Haible  <bruno@clisp.org>
44621
44622         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
44623         expression, so as to avoid HP-UX 11 cc compiler bug.
44624
44625 2008-04-13  Bruno Haible  <bruno@clisp.org>
44626
44627         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
44628
44629 2008-04-13  Bruno Haible  <bruno@clisp.org>
44630
44631         * lib/git-merge-changelog.c: Remove empty declaration outside of
44632         functions.
44633
44634 2008-04-13  Bruno Haible  <bruno@clisp.org>
44635
44636         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
44637
44638 2008-04-13  Bruno Haible  <bruno@clisp.org>
44639
44640         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
44641         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
44642         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
44643         also if it exists but lacks definitions of the SHUT_* macros.
44644         * modules/sys_socket (Description): Update.
44645         Reported by Elbert Pol <e.pol@chello.nl>.
44646
44647 2008-04-13  Bruno Haible  <bruno@clisp.org>
44648
44649         * lib/localcharset.c (OS2): Don't redefine if already defined.
44650         Reported by Elbert Pol <e.pol@chello.nl>.
44651
44652 2008-04-13  Bruno Haible  <bruno@clisp.org>
44653
44654         * lib/binary-io.h [__EMX__]: Include <io.h>.
44655         Reported by Elbert Pol <e.pol@chello.nl>.
44656
44657 2008-04-12  Bruno Haible  <bruno@clisp.org>
44658
44659         * lib/fpucw.h: Enable the definitions also for x86_64.
44660         Needed for NetBSD/x86_64.
44661         Reported by Thomas Klausner <tk@giga.or.at>.
44662
44663 2008-04-12  Bruno Haible  <bruno@clisp.org>
44664
44665         * tests/test-strtod.c: Include isnand.h.
44666         (main): Use isnand instead of isnan.
44667         Reported by Jim Meyering.
44668
44669 2008-04-12  Bruno Haible  <bruno@clisp.org>
44670
44671         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
44672         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44673
44674 2008-04-12  Jim Meyering  <meyering@redhat.com>
44675
44676         * m4/math_h.m4 (gl_MATH_H): Fix typos.
44677
44678 2008-04-12  Bruno Haible  <bruno@clisp.org>
44679
44680         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
44681         Reported by Elbert Pol <e.pol@chello.nl>.
44682
44683 2008-04-12  Eric Blake  <ebb9@byu.net>
44684
44685         Work around Solaris 10 math.h bug.
44686         * m4/math_h.m4 (gl_MATH_H): Check for bug.
44687         (gl_MATH_H_DEFAULTS): Set up default.
44688         * modules/math (Makefile.am): Replace new indicators.
44689         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
44690         * tests/test-math.c (main): Test this.
44691         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
44692         * doc/posix-headers/math.texi (math.h): Mention bug.
44693         Reported by Nelson H. F. Beebe and Jim Meyering.
44694
44695 2008-04-11  Bruno Haible  <bruno@clisp.org>
44696
44697         Adapt to future versions of Apple GCC.
44698         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
44699         Reported by Peter O'Gorman <peter@pogma.com>.
44700
44701 2008-04-11  Bruno Haible  <bruno@clisp.org>
44702
44703         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
44704
44705 2008-04-11  Bruno Haible  <bruno@clisp.org>
44706
44707         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
44708
44709         * modules/getaddrinfo-tests (Makefile.am): Define
44710         test_getaddrinfo_LDADD.
44711
44712 2008-04-11  Bruno Haible  <bruno@clisp.org>
44713
44714         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
44715         (init): Fix syntax error.
44716         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
44717         is declared.
44718
44719 2008-04-11  Bruno Haible  <bruno@clisp.org>
44720
44721         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
44722         * modules/glob (Depends-on): Add stdbool.
44723
44724 2008-04-11  Bruno Haible  <bruno@clisp.org>
44725
44726         * lib/trim.c: Include <string.h>.
44727
44728 2008-04-11  Eric Blake  <ebb9@byu.net>
44729
44730         Avoid compile failure on OS/2.
44731         * lib/regex_internal.h (internal_function): Disable optimization
44732         on OS/2 (__EMX__), where it caused compiler error.
44733         Reported by Elbert Pol.
44734
44735 2008-04-11  Bruno Haible  <bruno@clisp.org>
44736
44737         Flush the standard error stream before aborting. Needed on mingw.
44738         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
44739         * tests/test-array_list.c (ASSERT): Likewise.
44740         * tests/test-array_oset.c (ASSERT): Likewise.
44741         * tests/test-avltree_list.c (ASSERT): Likewise.
44742         * tests/test-avltree_oset.c (ASSERT): Likewise.
44743         * tests/test-avltreehash_list.c (ASSERT): Likewise.
44744         * tests/test-binary-io.c (ASSERT): Likewise.
44745         * tests/test-byteswap.c (ASSERT): Likewise.
44746         * tests/test-c-ctype.c (ASSERT): Likewise.
44747         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
44748         * tests/test-c-strcasestr.c (ASSERT): Likewise.
44749         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
44750         * tests/test-c-strstr.c (ASSERT): Likewise.
44751         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
44752         * tests/test-canonicalize.c (ASSERT): Likewise.
44753         * tests/test-carray_list.c (ASSERT): Likewise.
44754         * tests/test-ceilf1.c (ASSERT): Likewise.
44755         * tests/test-ceilf2.c (ASSERT): Likewise.
44756         * tests/test-ceill.c (ASSERT): Likewise.
44757         * tests/test-count-one-bits.c (ASSERT): Likewise.
44758         * tests/test-fbufmode.c (ASSERT): Likewise.
44759         * tests/test-fflush2.c (ASSERT): Likewise.
44760         * tests/test-floorf1.c (ASSERT): Likewise.
44761         * tests/test-floorf2.c (ASSERT): Likewise.
44762         * tests/test-floorl.c (ASSERT): Likewise.
44763         * tests/test-fopen.c (ASSERT): Likewise.
44764         * tests/test-fpending.c (ASSERT): Likewise.
44765         * tests/test-fprintf-posix.c (ASSERT): Likewise.
44766         * tests/test-fpurge.c (ASSERT): Likewise.
44767         * tests/test-freadable.c (ASSERT): Likewise.
44768         * tests/test-freadahead.c (ASSERT): Likewise.
44769         * tests/test-freading.c (ASSERT): Likewise.
44770         * tests/test-freadptr.c (ASSERT): Likewise.
44771         * tests/test-freadptr2.c (ASSERT): Likewise.
44772         * tests/test-freadseek.c (ASSERT): Likewise.
44773         * tests/test-freopen.c (ASSERT): Likewise.
44774         * tests/test-frexp.c (ASSERT): Likewise.
44775         * tests/test-frexpl.c (ASSERT): Likewise.
44776         * tests/test-fseek.c (ASSERT): Likewise.
44777         * tests/test-fseeko.c (ASSERT): Likewise.
44778         * tests/test-fstrcmp.c (ASSERT): Likewise.
44779         * tests/test-ftell.c (ASSERT): Likewise.
44780         * tests/test-ftello.c (ASSERT): Likewise.
44781         * tests/test-func.c (ASSERT): Likewise.
44782         * tests/test-fwritable.c (ASSERT): Likewise.
44783         * tests/test-fwriting.c (ASSERT): Likewise.
44784         * tests/test-getdelim.c (ASSERT): Likewise.
44785         * tests/test-getline.c (ASSERT): Likewise.
44786         * tests/test-i-ring.c (ASSERT): Likewise.
44787         * tests/test-iconv-utf.c (ASSERT): Likewise.
44788         * tests/test-iconv.c (ASSERT): Likewise.
44789         * tests/test-isfinite.c (ASSERT): Likewise.
44790         * tests/test-isnand.c (ASSERT): Likewise.
44791         * tests/test-isnanf.c (ASSERT): Likewise.
44792         * tests/test-isnanl.h (ASSERT): Likewise.
44793         * tests/test-ldexpl.c (ASSERT): Likewise.
44794         * tests/test-linked_list.c (ASSERT): Likewise.
44795         * tests/test-linkedhash_list.c (ASSERT): Likewise.
44796         * tests/test-localename.c (ASSERT): Likewise.
44797         * tests/test-lseek.c (ASSERT): Likewise.
44798         * tests/test-mbscasecmp.c (ASSERT): Likewise.
44799         * tests/test-mbscasestr1.c (ASSERT): Likewise.
44800         * tests/test-mbscasestr2.c (ASSERT): Likewise.
44801         * tests/test-mbscasestr3.c (ASSERT): Likewise.
44802         * tests/test-mbscasestr4.c (ASSERT): Likewise.
44803         * tests/test-mbschr.c (ASSERT): Likewise.
44804         * tests/test-mbscspn.c (ASSERT): Likewise.
44805         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
44806         * tests/test-mbspbrk.c (ASSERT): Likewise.
44807         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
44808         * tests/test-mbsrchr.c (ASSERT): Likewise.
44809         * tests/test-mbsspn.c (ASSERT): Likewise.
44810         * tests/test-mbsstr1.c (ASSERT): Likewise.
44811         * tests/test-mbsstr2.c (ASSERT): Likewise.
44812         * tests/test-mbsstr3.c (ASSERT): Likewise.
44813         * tests/test-memchr2.c (ASSERT): Likewise.
44814         * tests/test-memmem.c (ASSERT): Likewise.
44815         * tests/test-open.c (ASSERT): Likewise.
44816         * tests/test-printf-frexp.c (ASSERT): Likewise.
44817         * tests/test-printf-frexpl.c (ASSERT): Likewise.
44818         * tests/test-printf-posix.c (ASSERT): Likewise.
44819         * tests/test-quotearg.c (ASSERT): Likewise.
44820         * tests/test-rbtree_list.c (ASSERT): Likewise.
44821         * tests/test-rbtree_oset.c (ASSERT): Likewise.
44822         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
44823         * tests/test-round1.c (ASSERT): Likewise.
44824         * tests/test-roundf1.c (ASSERT): Likewise.
44825         * tests/test-roundl.c (ASSERT): Likewise.
44826         * tests/test-signbit.c (ASSERT): Likewise.
44827         * tests/test-sleep.c (ASSERT): Likewise.
44828         * tests/test-snprintf-posix.c (ASSERT): Likewise.
44829         * tests/test-snprintf.c (ASSERT): Likewise.
44830         * tests/test-sprintf-posix.c (ASSERT): Likewise.
44831         * tests/test-stat-time.c (ASSERT): Likewise.
44832         * tests/test-strcasestr.c (ASSERT): Likewise.
44833         * tests/test-strerror.c (ASSERT): Likewise.
44834         * tests/test-striconv.c (ASSERT): Likewise.
44835         * tests/test-striconveh.c (ASSERT): Likewise.
44836         * tests/test-striconveha.c (ASSERT): Likewise.
44837         * tests/test-strsignal.c (ASSERT): Likewise.
44838         * tests/test-strstr.c (ASSERT): Likewise.
44839         * tests/test-strtod.c (ASSERT): Likewise.
44840         * tests/test-trunc1.c (ASSERT): Likewise.
44841         * tests/test-trunc2.c (ASSERT): Likewise.
44842         * tests/test-truncf1.c (ASSERT): Likewise.
44843         * tests/test-truncf2.c (ASSERT): Likewise.
44844         * tests/test-truncl.c (ASSERT): Likewise.
44845         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
44846         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
44847         * tests/test-vasnprintf.c (ASSERT): Likewise.
44848         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
44849         * tests/test-vasprintf.c (ASSERT): Likewise.
44850         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
44851         * tests/test-vprintf-posix.c (ASSERT): Likewise.
44852         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
44853         * tests/test-vsnprintf.c (ASSERT): Likewise.
44854         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
44855         * tests/test-wcwidth.c (ASSERT): Likewise.
44856         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
44857         * tests/test-xprintf-posix.c (ASSERT): Likewise.
44858         * tests/test-xvasprintf.c (ASSERT): Likewise.
44859         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
44860         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
44861         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
44862         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
44863         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
44864         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
44865         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
44866         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
44867         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
44868         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
44869         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
44870         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
44871         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
44872         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
44873         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
44874         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
44875         * tests/unictype/test-block_list.c (ASSERT): Likewise.
44876         * tests/unictype/test-block_of.c (ASSERT): Likewise.
44877         * tests/unictype/test-block_test.c (ASSERT): Likewise.
44878         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
44879         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
44880         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
44881         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
44882         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
44883         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
44884         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
44885         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
44886         * tests/unictype/test-combining.c (ASSERT): Likewise.
44887         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
44888         * tests/unictype/test-digit.c (ASSERT): Likewise.
44889         * tests/unictype/test-mirror.c (ASSERT): Likewise.
44890         * tests/unictype/test-numeric.c (ASSERT): Likewise.
44891         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
44892         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
44893         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
44894         * tests/unictype/test-scripts.c (ASSERT): Likewise.
44895         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
44896         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
44897         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
44898         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
44899         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
44900         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
44901         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
44902         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
44903         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
44904         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
44905         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
44906         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
44907         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
44908         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
44909         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
44910         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
44911         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
44912         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
44913         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
44914         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
44915         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
44916         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
44917         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
44918         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
44919         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
44920         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
44921         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
44922         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
44923         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
44924         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
44925         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
44926         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
44927         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
44928         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
44929         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
44930         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
44931         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
44932         Reported by Eric Blake.
44933
44934 2008-04-11  Bruno Haible  <bruno@clisp.org>
44935
44936         * lib/wchar.in.h: Tweak comment.
44937
44938 2008-04-11  Bruno Haible  <bruno@clisp.org>
44939
44940         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
44941         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
44942         gl_COMMON.
44943         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
44944
44945 2008-04-11  Bruno Haible  <bruno@clisp.org>
44946
44947         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
44948
44949 2008-04-11  Simon Josefsson  <simon@josefsson.org>
44950
44951         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
44952         of attempting to use non-existing /dev/*random.  Based on patch
44953         from Adam Strzelecki <ono@java.pl> in
44954         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
44955
44956 2008-04-08  Bruno Haible  <bruno@clisp.org>
44957
44958         Add tentative support for emx+gcc.
44959         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
44960         * lib/fpurge.c (fpurge): Likewise.
44961         * lib/freadable.c (freadable): Likewise.
44962         * lib/freadahead.c (freadahead): Likewise.
44963         * lib/freading.c (freading): Likewise.
44964         * lib/freadptr.c (freadptr): Likewise.
44965         * lib/freadseek.c (freadptrinc): Likewise.
44966         * lib/fseeko.c (rpl_fseeko): Likewise.
44967         * lib/fseterr.c (fseterr): Likewise.
44968         * lib/fwritable.c (fwritable): Likewise.
44969         * lib/fwriting.c (fwriting): Likewise.
44970         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
44971
44972 2008-04-09  Eric Blake  <ebb9@byu.net>
44973
44974         Avoid some autoconf warnings.
44975         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
44976         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
44977         * m4/afs.m4 (gl_AFS): Likewise.
44978         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
44979         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
44980         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44981         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
44982         (gl_INTEGER_TYPE_SUFFIX): Likewise.
44983         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
44984         (AC_CHECK_DECLS_ONCE): Likewise.
44985         Rename file...
44986         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
44987         gnulib-tool requires autoconf 2.59 or better.
44988         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
44989
44990 2008-04-08  Eric Blake  <ebb9@byu.net>
44991
44992         Use 'git describe --match' if present (added in git 1.5.5).
44993         * build-aux/git-version-gen: Limit result to tags that match 'v*'
44994         if possible.
44995
44996 2008-04-08  Bruno Haible  <bruno@clisp.org>
44997
44998         Add tentative support for OpenServer.
44999         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
45000         _ptr, _cnt.
45001         * lib/fpurge.c (fpurge): Likewise.
45002         * lib/freadable.c (freadable): Likewise.
45003         * lib/freadahead.c (freadahead): Likewise.
45004         * lib/freading.c (freading): Likewise.
45005         * lib/freadptr.c (freadptr): Likewise.
45006         * lib/freadseek.c (freadptrinc): Likewise.
45007         * lib/fseeko.c (rpl_fseeko): Likewise.
45008         * lib/fseterr.c (fseterr): Likewise.
45009         * lib/fwritable.c (fwritable): Likewise.
45010         * lib/fwriting.c (fwriting): Likewise.
45011         Reported by Roger Cornelius <rac@tenzing.org> and
45012         Brian K. White <brian@aljex.com>.
45013
45014 2008-04-06  Jim Meyering  <meyering@redhat.com>
45015
45016         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
45017
45018 2008-04-06  Bruno Haible  <bruno@clisp.org>
45019
45020         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45021         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45022         * tests/test-printf-posix.sh: Likewise.
45023         * tests/test-vfprintf-posix.sh: Likewise.
45024         * tests/test-vprintf-posix.sh: Likewise.
45025         * tests/test-xprintf-posix.sh: Likewise.
45026
45027 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45028
45029         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45030         hide error from 'ls', needed on OS/2.
45031         Report by Elbert Pol <elbert.pol@gmail.com>.
45032
45033 2008-04-04  Eric Blake  <ebb9@byu.net>
45034
45035         Make test-fseeko.c failures meaningful.
45036         * tests/test-fseeko.c: Print line number on failure.
45037         * tests/test-fseek.c: Likewise.
45038         Reported by Nelson H. F. Beebe.
45039
45040         Improve strtod bug detection check.
45041         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45042         required for Solaris 10.
45043         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45044
45045 2008-04-04  Bruno Haible  <bruno@clisp.org>
45046
45047         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45048         by m4/setenv.m4.
45049
45050 2008-04-03  Eric Blake  <ebb9@byu.net>
45051
45052         Ensure sane .version contents.
45053         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45054         version string.
45055         * build-aux/git-version-gen: Improve documentation.
45056
45057         Make GNU make output nicer.
45058         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45059         MAKECMDGOALS to enforce message for all command line targets.  Set
45060         srcdir for use in maint.mk.
45061
45062         Another maintainer tweak.
45063         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45064         a target that regenerates version.
45065
45066 2008-04-03  Jim Meyering  <meyering@redhat.com>
45067
45068         vc-list-files: don't cause coreutils "make po-check" failure
45069         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45070
45071 2008-04-03  Eric Blake  <ebb9@byu.net>
45072
45073         Allow VPATH usage of vc-list-files.
45074         * build-aux/vc-list-files (scriptversion): Add timestamp.
45075         (options): Add --help, --version, -C.
45076         (CVS): Support installed cvsu.
45077
45078 2008-04-02  Bruno Haible  <bruno@clisp.org>
45079
45080         Avoid some "statement with no effect" warnings from gcc.
45081         * tests/test-wctype.c (main): Explicitly ignore unused values.
45082         Reported by Jim Meyering.
45083
45084 2008-04-02  Jim Meyering  <meyering@redhat.com>
45085
45086         Avoid some warnings from "gcc -Wshadow".
45087         * tests/test-frexp.c (exp): Define to a different identifier.
45088         * tests/test-frexpl.c (exp): Likewise.
45089
45090 2008-04-03  Jim Meyering  <meyering@redhat.com>
45091
45092         bootstrap: remove dangling *.[ch] symlinks from lib
45093         * build-aux/bootstrap [dangling symlink removal]: Move find's
45094         -depth option to precede all others, to avoid a warning.
45095         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45096
45097 2008-04-02  Bruno Haible  <bruno@clisp.org>
45098
45099         Avoid some warnings from "gcc -Wshadow".
45100         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45101         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45102         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45103         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45104         Reported by Jim Meyering.
45105
45106 2008-04-01  Bruno Haible  <bruno@clisp.org>
45107
45108         Fix test to work on IRIX 6.5 with cc.
45109         * tests/test-math.c (numeric_equal): New function.
45110         (main): Use it.
45111
45112 2008-04-01  Bruno Haible  <bruno@clisp.org>
45113
45114         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45115
45116 2008-04-01  Bruno Haible  <bruno@clisp.org>
45117
45118         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
45119         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45120         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
45121         (Depends-on): Remove math.
45122
45123         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45124         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45125         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45126         (Depends-on): Remove math.
45127
45128         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45129         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45130         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45131         (Depends-on): Remove math.
45132         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45133         (Depends-on): Remove math.
45134
45135         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45136         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45137         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45138         (Depends-on): Remove math.
45139         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45140         (Depends-on): Remove math.
45141
45142         * tests/test-round1.c: Include nan.h.
45143         (main): Use NaNd instead of NAN.
45144         * modules/round-tests (Files): Add tests/nan.h.
45145
45146         * tests/test-trunc1.c: Include nan.h.
45147         (main): Use NaNd instead of NAN.
45148         * modules/trunc-tests (Files): Add tests/nan.h.
45149
45150         * tests/test-roundf1.c: Include nan.h.
45151         (main): Use NaNf instead of NAN.
45152         * modules/roundf-tests (Files): Add tests/nan.h.
45153
45154         * tests/test-truncf1.c: Include nan.h.
45155         (main): Use NaNf instead of NAN.
45156         * modules/truncf-tests (Files): Add tests/nan.h.
45157
45158         * tests/test-ceilf1.c: Include nan.h.
45159         (main): Use NaNf instead of NAN.
45160         * modules/ceilf-tests (Files): Add tests/nan.h.
45161
45162         * tests/test-floorf1.c: Include nan.h.
45163         (main): Use NaNf instead of NAN.
45164         * modules/floorf-tests (Files): Add tests/nan.h.
45165
45166         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45167         (main): Use NaNf instead of NAN.
45168         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45169
45170         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45171         (main): Use NaNd instead of NAN.
45172         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45173
45174         * tests/test-frexp.c: Include nan.h.
45175         (main): Use NaNd instead of NAN.
45176         * modules/frexp-tests (Files): Add tests/nan.h.
45177
45178         * lib/isnan.c: Don't include <math.h>.
45179         (FUNC): Don't use NAN macro.
45180         * modules/isnand-nolibm (Depends-on): Remove math.
45181         * modules/isnanf-nolibm (Depends-on): Remove math.
45182         * modules/isnanl (Depends-on): Remove math.
45183         * modules/isnanl-nolibm (Depends-on): Remove math.
45184
45185         * tests/nan.h: New file.
45186
45187 2008-04-01  Eric Blake  <ebb9@byu.net>
45188
45189         Fix typos.
45190         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45191         values to be the right type.
45192
45193         For now, cater to gnulib strtod inaccuracies.
45194         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45195         fractional results.  While not as nice from a QoI perspective, it
45196         is a quicker patch than correctly implementing decimal to binary
45197         rounding.
45198
45199 2008-03-31  Eric Blake  <ebb9@byu.net>
45200
45201         Guarantee a definition of NAN.
45202         * lib/math.in.h (NAN): Define if missing.
45203         * tests/test-math.c (main): Test it.
45204         * doc/posix-headers/math.texi (math.h): Document this.
45205         * lib/isnan.c (rpl_isnand): Use it.
45206         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45207         * tests/test-floorf1.c (NaN): Likewise.
45208         * tests/test-frexp.c (NaN): Likewise.
45209         * tests/test-isnand.c (NaN): Likewise.
45210         * tests/test-isnanf.c (NaN): Likewise.
45211         * tests/test-round1.c (NaN): Likewise.
45212         * tests/test-roundf1.c (NaN): Likewise.
45213         * tests/test-snprintf-posix.h (NaN): Likewise.
45214         * tests/test-sprintf-posix.h (NaN): Likewise.
45215         * tests/test-trunc1.c (NaN): Likewise.
45216         * tests/test-truncf1.c (NaN): Likewise.
45217         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45218         * tests/test-vasprintf-posix.c (NaN): Likewise.
45219         * modules/isnand-nolibm (Depends-on): Add math.
45220         * modules/isnanf-nolibm (Depends-on): Likewise.
45221         * modules/isnanl (Depends-on): Likewise.
45222         * modules/isnanl-nolibm (Depends-on): Likewise.
45223         * modules/snprintf-posix-tests (Depends-on): Likewise.
45224         * modules/sprintf-posix-tests (Depends-on): Likewise.
45225         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45226         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45227         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45228         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45229
45230 2008-03-31  Bruno Haible  <bruno@clisp.org>
45231
45232         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45233         * doc/posix-functions/strtod.texi: Likewise.
45234
45235 2008-03-31  Bruno Haible  <bruno@clisp.org>
45236
45237         * tests/test-strtod.c (main): Don't use C99 syntax.
45238
45239 2008-03-31  Bruno Haible  <bruno@clisp.org>
45240
45241         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
45242         Reported by Eric Blake.
45243
45244 2008-03-31  Jim Meyering  <meyering@redhat.com>
45245
45246         Don't compare actual signbit return values.
45247         * tests/test-strtod.c (main): Rather, compare only their
45248         zero/non-zero nature.
45249
45250 2008-03-31  Eric Blake  <ebb9@byu.net>
45251
45252         More strtod documentation.
45253         * doc/posix-functions/strtod.texi (strtod): Interpret more test
45254         failures as distinct bugs.
45255
45256 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45257
45258         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
45259         Problem reported by Erik Benada in
45260         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
45261
45262 2008-03-30  Bruno Haible  <bruno@clisp.org>
45263
45264         * tests/test-strtod.c: Add comments about which assertion fails on which
45265         platform.
45266         * doc/posix-functions/strtod.texi: Add info about many more platforms.
45267
45268 2008-03-30  Eric Blake  <ebb9@byu.net>
45269
45270         Test signbit behavior on zeros.
45271         * tests/test-signbit.c (test_signbitf): Add tests for zero.
45272         (test_signbitd, test_signbitl): Likewise.
45273
45274         More strtod touchups.
45275         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
45276         sign of negative underflow, for now.  Use .5, not .1.
45277         * doc/posix-functions/strtod.texi (strtod): Mention these
45278         limitations.
45279         Reported by Jim Meyering.
45280
45281 2008-03-30  Bruno Haible  <bruno@clisp.org>
45282
45283         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
45284         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
45285
45286 2008-03-30  Bruno Haible  <bruno@clisp.org>
45287
45288         Avoid failure when attempting to return empty iconv results on some
45289         platforms.
45290         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
45291         allocation, don't report ENOMEM when the resulting string is empty.
45292
45293 2008-03-30  Bruno Haible  <bruno@clisp.org>
45294
45295         Fix buffer overrun.
45296         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
45297         Don't consider the width for tmp_length. Check count against tmp_length
45298         before doing the padding. Ensure enough allocation during padding.
45299
45300 2008-03-30  Eric Blake  <ebb9@byu.net>
45301
45302         strtod touchups.
45303         * lib/strtod.c (strtod): Avoid compiler warnings.
45304         Reported by Jim Meyering.
45305
45306 2008-03-30  Bruno Haible  <bruno@clisp.org>
45307
45308         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
45309         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
45310         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
45311         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
45312         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
45313         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
45314         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
45315         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
45316
45317         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
45318         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
45319         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
45320         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
45321         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
45322         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
45323         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
45324         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45325
45326         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
45327         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45328         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45329         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45330         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45331         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45332         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45333         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45334
45335         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45336         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45337
45338         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45339         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45340
45341         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45342         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45343
45344         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45345         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45346         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45347
45348         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45349         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45350         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45351
45352         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45353         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45354         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45355
45356         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45357         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45358         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45359
45360         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45361         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45362         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45363         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45364         (Depends-on): Add EOVERFLOW.
45365         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45366         (Depends-on): Add EOVERFLOW.
45367         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45368         (Depends-on): Add EOVERFLOW.
45369         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45370         (Depends-on): Add EOVERFLOW.
45371         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45372         (Depends-on): Add EOVERFLOW.
45373         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45374         (Depends-on): Add EOVERFLOW.
45375         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45376         (Depends-on): Add EOVERFLOW.
45377         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45378         (Depends-on): Add EOVERFLOW.
45379
45380         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45381         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45382         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45383
45384         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45385         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45386         * modules/snprintf (Depends-on): Add EOVERFLOW.
45387
45388         * lib/poll.c (EOVERFLOW): Remove fallback.
45389         * modules/poll (Depends-on): Add EOVERFLOW.
45390
45391         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45392         * modules/getugroups (Depends-on): Add EOVERFLOW.
45393
45394         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45395         * modules/getdelim (Depends-on): Add EOVERFLOW.
45396
45397         * lib/ftell.c (EOVERFLOW): Remove fallback.
45398         * modules/ftell (Depends-on): Add EOVERFLOW.
45399
45400         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45401         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
45402         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
45403
45404         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
45405
45406         * modules/EOVERFLOW-tests: New file.
45407         * tests/test-EOVERFLOW.c: New file.
45408
45409         * modules/EOVERFLOW: New file.
45410         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
45411
45412 2008-03-30  Bruno Haible  <bruno@clisp.org>
45413
45414         Fix bug introduced on 2007-06-10.
45415         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
45416         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
45417
45418 2008-03-30  Bruno Haible  <bruno@clisp.org>
45419
45420         Improve freadseek's efficiency after ungetc.
45421         * lib/freadseek.c: Include freadahead.h.
45422         (freadptrinc): New function, extracted from freadseek.
45423         (freadseek): Use it in a loop. Use freadahead to determine the number
45424         of loop iterations.
45425         * modules/freadseek (Depends-on): Add freadahead.
45426         (configure.ac): Require AC_C_INLINE.
45427
45428 2008-03-30  Bruno Haible  <bruno@clisp.org>
45429
45430         * lib/freadseek.c (freadseek): Don't ignore the return value of
45431         freadptr.
45432
45433 2008-03-29  Eric Blake  <ebb9@byu.net>
45434
45435         Add hex float support.
45436         * modules/strtod (Depends-on): Add c-ctype.
45437         (Link): Mention POW_LIB.
45438         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
45439         whitespace between 'e' and exponent.
45440         * tests/test-strtod.c (main): Enable hex float tests.
45441         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
45442         now provides.
45443
45444         Document various strtod bugs, with some fixes.
45445         * doc/posix-functions/strtod.texi (strtod): Document bugs with
45446         "-0x", "inf", "nan", and hex constants.
45447         * doc/posix-functions/atof.texi (atof): Likewise.
45448         * modules/stdlib (Makefile.am): Support strtod.
45449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45450         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
45451         detect additional strtod bugs.
45452         * lib/stdlib.in.h (rpl_strtod): Add declarations.
45453         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
45454         bool where appropriate.  Parse 'inf' and 'nan'.
45455         * tests/test-strtod.c: New file.
45456         * modules/strtod (Depends-on): Add stdbool, stdlib.
45457         (configure.ac): Turn on module indicator.
45458         * modules/strtod-tests: New module.
45459
45460 2008-03-29  Eric Blake  <ebb9@byu.net>
45461
45462         Fix ftell on mingw.
45463         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
45464         * modules/ftell-tests (Depends-on): Add binary-io.
45465         * modules/ftello-tests (Depends-on): Likewise.
45466         * tests/test-ftell.c (main): Enhance test to cover behavior after
45467         ungetc.  Enforce binary mode.
45468         * tests/test-ftello.c (main): Likewise.
45469
45470         Pass test-freadseek on cygwin.
45471         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
45472         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
45473         ungetc buffer.
45474
45475         * tests/test-fflush2.c (main): Fix typo.
45476
45477 2008-03-29  Bruno Haible  <bruno@clisp.org>
45478
45479         * tests/test-fflush2.c (main): Temporarily disable the contents of
45480         this test.
45481         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
45482         Reported by Eric Blake.
45483
45484 2008-03-28  Simon Josefsson  <simon@josefsson.org>
45485
45486         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
45487         (GC_SHA224_DIGEST_SIZE): Add.
45488
45489         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
45490         (gc_hash_digest_length): Likewise.
45491         (gc_hash_buffer): Likewise.
45492
45493 2008-03-25  Bruno Haible  <bruno@clisp.org>
45494
45495         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
45496         detail which gettext release to use.
45497         Reported by Simon Josefsson.
45498
45499 2008-03-26  Jim Meyering  <meyering@redhat.com>
45500
45501         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
45502         * modules/gnumakefile (clean-GNUmakefile): Also, use
45503         test ... && ... || : syntax rather than if-then ... fi.
45504
45505         gnumakefile: Don't double-quote-expand $(VPATH) value.
45506         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
45507
45508 2008-03-24  Eric Blake  <ebb9@byu.net>
45509
45510         Alter GNUmakefile to install into top directory.
45511         * modules/maintainer-makefile: Split, and add dependency...
45512         * modules/gnumakefile: to this new module.
45513         * build-aux/GNUmakefile: Move...
45514         * top/GNUmakefile: ...here.
45515         * build-aux/maint.mk: Move...
45516         * top/maint.mk: ...here.
45517         * MODULES.html.sh (Support for maintaining...): Document new
45518         module.
45519
45520 2008-03-23  Bruno Haible  <bruno@clisp.org>
45521
45522         * gnulib-tool: New options --vc-files, --no-vc-files.
45523         (func_usage): Document them.
45524         (vc_files): New variable.
45525         (func_import): Consider vc_files.
45526         (func_create_testdir): Set vc_files to empty.
45527         Suggested by Jim Meyering and Karl Berry.
45528
45529 2008-03-23  Bruno Haible  <bruno@clisp.org>
45530
45531         Fix regex compilation error on HP-UX 11.
45532         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
45533         * modules/regex (Files): Add m4/mbstate_t.m4.
45534         Reported by Ton Voon <ton.voon@altinity.com>.
45535
45536 2008-03-23  Bruno Haible  <bruno@clisp.org>
45537
45538         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
45539
45540 2008-03-23  Eric Blake  <ebb9@byu.net>
45541             Bruno Haible  <bruno@clisp.org>
45542
45543         Install files from top/ in the destination directory.
45544         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45545         augmentation also for the files from top/.
45546         (func_import, func_create_testdir): Rewrite file names:
45547         top/filename -> filename.
45548
45549 2008-03-23  Bruno Haible  <bruno@clisp.org>
45550
45551         Tweak "gnulib --version" output.
45552         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
45553
45554 2008-03-23  Bruno Haible  <bruno@clisp.org>
45555
45556         Tweak "gnulib --version" output.
45557         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
45558         rather than contents of ChangeLog, when possible.
45559
45560 2008-03-21  Eric Blake  <ebb9@byu.net>
45561
45562         More --version tweaks.
45563         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
45564         date of last ChangeLog entry.
45565
45566 2008-03-21  Jim Meyering  <meyering@redhat.com>
45567
45568         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
45569
45570 2008-03-20  Eric Blake  <ebb9@byu.net>
45571
45572         VPATH fix.
45573         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
45574
45575 2008-03-20  Simon Josefsson  <simon@josefsson.org>
45576
45577         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
45578         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
45579
45580 2008-03-20  Eric Blake  <ebb9@byu.net>
45581
45582         Sync GNUmakefile with coreutils.
45583         * build-aux/GNUmakefile (have-Makefile): Rename...
45584         (_have-Makefile): ...to this, for namespace consideration.
45585         (GNUmakefile.cfg): Include, if present.
45586         (_autoreconf): Define a default.
45587         (_is-dist-target): New rule for rebuilds to pick up intra-release
45588         version.
45589         (maint-cfg.mk): Rename...
45590         (cfg.mk): ...to this.
45591
45592 2008-03-18  Jim Meyering  <meyering@redhat.com>
45593
45594         New script and module: mktempd
45595         * MODULES.html.sh (maint+release support): Add mktempd.
45596         * build-aux/mktempd: New file.
45597         * modules/mktempd: New file.
45598
45599 2008-03-15  Jim Meyering  <meyering@redhat.com>
45600
45601         Undo last change.
45602         * lib/sha1.c, lib/md5.c: 63 != ~63.
45603         Reported by Andreas Schwab.
45604
45605         sha1.c, md5.c: Hoist a redundant expression.
45606         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
45607         "ctx->buflen" only once, before calling *_process_block.
45608         * lib/md5.c (md5_process_bytes): Likewise.
45609
45610 2008-03-14  Eric Blake  <ebb9@byu.net>
45611
45612         Bump copyright year in files generated by gnulib-tool.
45613         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
45614         gnulib-tool, rather than hard-coding it.
45615
45616         Fix 'gnulib-tool --version' output to work with git.
45617         * gnulib-tool (func_gnulib_dir): New function, extracted from...
45618         (startup): ...here.
45619         (func_version): Use it to invoke git-version-gen, rather than
45620         relying on CVS keyword expansion.  Modernize wording.
45621         (cvsdatestamp, last_checkin_date, version): Kill unused
45622         variables.
45623
45624 2008-03-12  Jim Meyering  <meyering@redhat.com>
45625
45626         Recognize optional cast of the argument to free.
45627         * build-aux/useless-if-before-free: Update regexps.
45628
45629         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
45630
45631 2008-03-11  Bruno Haible  <bruno@clisp.org>
45632
45633         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
45634         by a single package.
45635         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
45636         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
45637         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
45638         Reported by Sam Steingold <sds@gnu.org>.
45639
45640 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45641
45642         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
45643         repositories.
45644
45645 2008-03-11  Bruno Haible  <bruno@clisp.org>
45646
45647         Avoid conflicts between local macro definitions.
45648         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45649         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
45650
45651 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
45652             Bruno Haible  <bruno@clisp.org>
45653
45654         Make va_copy work with some version of xlc on AIX 5.1.
45655         * lib/stdarg.in.h: New file.
45656         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
45657         On AIX, use a <stdarg.h> file substitute.
45658         * modules/stdarg (Files): Add lib/stdarg.in.h.
45659         (Depends-on): Add include_next.
45660         (Makefile.am): Build a stdarg.h substitute if requested.
45661         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
45662
45663 2008-03-10  Bruno Haible  <bruno@clisp.org>
45664
45665         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
45666         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45667         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45668
45669 2008-03-10  Bruno Haible  <bruno@clisp.org>
45670
45671         * modules/stdlib (Depends-on): Add include_next, remove
45672         absolute-header.
45673
45674 2008-03-09  Bruno Haible  <bruno@clisp.org>
45675
45676         * lib/freadahead.h (freadahead): Document more precisely.
45677         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
45678         the sum of both buffer sizes.
45679         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
45680         * NEWS: Document the change.
45681
45682 2008-03-09  Bruno Haible  <bruno@clisp.org>
45683
45684         Extend freadptr to return also the buffer size.
45685         * lib/freadptr.h (freadptr): Add sizep argument.
45686         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
45687         (freadptr): Add sizep argument. Determine buffer size like freadahead
45688         does.
45689         * tests/test-freadptr.c: Don't include freadahead.h.
45690         (main): Adapt for new calling convention of freadptr.
45691         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
45692         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
45693         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
45694         tests/test-freadptr2.sh.
45695         (Depends): Remove freadahead.
45696         (TESTS): Add test-freadptr2.sh.
45697         (check_PROGRAMS): Add test-freadptr2.
45698
45699 2008-03-09  Bruno Haible  <bruno@clisp.org>
45700
45701         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
45702         Report and solution by Simon Josefsson.
45703
45704 2008-03-06  Bruno Haible  <bruno@clisp.org>
45705
45706         Make fflush after ungetc work on BSD platforms.
45707         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
45708         * tests/test-fflush2.c: New file.
45709         * tests/test-fflush2.sh: New file.
45710         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
45711         tests/test-fflush2.c.
45712         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
45713         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
45714
45715 2008-03-06  Eric Blake  <ebb9@byu.net>
45716
45717         Likewise for ftello.
45718         * modules/ftello (Dependencies): Add extensions.
45719         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
45720
45721 2008-03-06  Bruno Haible  <bruno@clisp.org>
45722
45723         * modules/fseeko (Dependencies): Add extensions.
45724         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
45725         Needed on glibc systems.
45726
45727 2008-03-06  Bruno Haible  <bruno@clisp.org>
45728
45729         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
45730         email address.
45731         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45732
45733 2008-03-06  Bruno Haible  <bruno@clisp.org>
45734
45735         * users.txt: Add libgnupdf.
45736
45737 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45738
45739         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
45740         (Header File Substitutes, Function Substitutes,
45741         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
45742         (Build robot for gnulib): Fix typo.
45743
45744 2008-03-06  Bruno Haible  <bruno@clisp.org>
45745
45746         * doc/gnulib-tool.texi (VCS Issues): Small updates.
45747         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45748
45749 2008-03-06  Bruno Haible  <bruno@clisp.org>
45750
45751         * doc/func.texi: New file, extracted from doc/gnulib.texi.
45752         * doc/gnulib.texi: Include it.
45753
45754 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45755
45756         * modules/func (License): Change license to unlimited; there was
45757         no LGPL parts in the module anyway.
45758
45759 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45760
45761         * modules/__func__: Renamed to modules/func.
45762         * modules/__func__-tests: Renamed to modules/func-tests.
45763         * tests/test-__func__.c: Renamed to tests/test-func.c.
45764         * m4/__func__.m4: Renamed to m4/func.m4.
45765         * doc/gnulib.texi (__func__): Section renamed to func.
45766         Suggested by Eric Blake <ebb9@byu.net>.
45767
45768 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45769
45770         * doc/gnulib.texi (__func__): Use C99 terminology when talking
45771         about __func__.  Make example self-contained.  Suggested by Eric
45772         Blake <ebb9@byu.net>.
45773
45774         * tests/test-__func__.c (main): Avoid extraneous () around __func.
45775         Suggested by Eric Blake <ebb9@byu.net>.
45776
45777 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45778
45779         * modules/__func__: New file.
45780         * modules/__func__-tests: New file.
45781         * tests/test-__func__.c: New file.
45782         * m4/__func__.m4: New file.
45783         * doc/gnulib.texi (__func__): Document __func__ module.
45784
45785 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45786
45787         * modules/byteswap (License): Re-license as LGPLv2+.
45788
45789 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45790
45791         * doc/Makefile: Add pdf target.
45792
45793 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45794
45795         * modules/inline (License): Use 'unlimited', since there are only
45796         *.m4 files in this module.
45797
45798 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45799             Bruno Haible  <bruno@clisp.org>
45800
45801         Add support for HP C 7.1 on OpenVMS 8.3.
45802         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
45803
45804 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45805
45806         Update VMS specifics.
45807         * lib/getopt.c [VMS]: Remove include of unixlib.h.
45808
45809 2008-03-02  Jim Meyering  <meyering@redhat.com>
45810
45811         Remove the last dependency on the "free" module.
45812         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
45813         Reported by Bob Proulx.
45814
45815         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
45816
45817         Remove useless "if" tests before free.  Deprecate "free" module.
45818         * doc/posix-functions/free.texi: Mention that this
45819         module is no longer useful.
45820         * modules/free (Notice): Say this module is obsolete.
45821         * modules/readutmp (Depends-on): Remove free.
45822         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
45823         * lib/putenv.c (putenv): Likewise.
45824         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
45825         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
45826         * tests/test-c-strcasestr.c (main): Likewise.
45827         * tests/test-c-strstr.c (main): Likewise.
45828         * tests/test-mbscasestr1.c (main): Likewise.
45829         * tests/test-mbscasestr2.c (main): Likewise.
45830         * tests/test-mbsstr1.c (main): Likewise.
45831         * tests/test-mbsstr2.c (main): Likewise.
45832         * tests/test-memmem.c (main): Likewise.
45833         * tests/test-strcasestr.c (main): Likewise.
45834         * tests/test-striconv.c (main): Likewise.
45835         * tests/test-striconveh.c (main): Likewise.
45836         * tests/test-striconveha.c (main): Likewise.
45837         * tests/test-strstr.c (main): Likewise.
45838
45839         * build-aux/git-version-gen: Adjust a comment and the Usage string.
45840
45841         bootstrap: sync from coreutils again
45842         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
45843
45844 2008-03-01  Jim Meyering  <meyering@redhat.com>
45845
45846         bootstrap: sync from coreutils
45847         * build-aux/bootstrap (update_po_files): Copy a .po file into place
45848         also when the target doesn't exist.
45849
45850 2008-03-01  Eric Blake  <ebb9@byu.net>
45851
45852         Fix bugs in last patch.
45853         * lib/memchr2.c (memchr2): Fix typo.
45854         * tests/test-memchr2.c: Test previous bug, and don't use GNU
45855         extension.
45856         Reported by Bruce Korb.
45857
45858         New module 'memchr2'.
45859         * modules/memchr2: New file.
45860         * modules/memchr2-tests: Likewise.
45861         * lib/memchr2.h: Likewise.
45862         * lib/memchr2.c: Likewise, based on memchr.c.
45863         * tests/test-memchr2.c: New test.
45864         * MODULES.html.sh (String handling): Add memchr2.
45865
45866 2008-02-29  Bruno Haible  <bruno@clisp.org>
45867
45868         * modules/freadseek-tests: New file.
45869         * tests/test-freadseek.sh: New file.
45870         * tests/test-freadseek.c: New file.
45871
45872         New module 'freadseek'.
45873         * modules/freadseek: New file.
45874         * lib/freadseek.h: New file.
45875         * lib/freadseek.c: New file.
45876         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
45877
45878 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
45879
45880         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
45881         wydawca.
45882
45883         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
45884         program_invocation_name and program_invocation_short_name are
45885         present.
45886
45887 2008-02-28  Bruno Haible  <bruno@clisp.org>
45888
45889         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
45890         * tests/test-freadptr.sh: Also test non-seekable stdin.
45891
45892 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
45893
45894         * build-aux/bootstrap (source_base, m4_base)
45895         (doc_base, tests_base): New variables.
45896         (gnulib_tool_options): Do not hardcode base directories, use
45897         the above variables instead.
45898
45899 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
45900
45901         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
45902
45903 2008-02-28  Bruno Haible  <bruno@clisp.org>
45904
45905         * modules/freadptr-tests: New file.
45906         * tests/test-freadptr.sh: New file.
45907         * tests/test-freadptr.c: New file.
45908
45909         New module 'freadptr'.
45910         * modules/freadptr: New file.
45911         * lib/freadptr.h: New file.
45912         * lib/freadptr.c: New file.
45913         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
45914
45915 2008-02-26  Karl Berry  <karl@freefriends.org>
45916
45917         Sync from Libtool:
45918         * libltdl/argz.c (argz_add, argz_count): New functions.
45919         * libltdl/argz.in.h: Declare them.
45920         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
45921
45922 2008-02-22  Bruno Haible  <bruno@clisp.org>
45923
45924         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
45925         is a pointer type.  Needed for HP-UX 10.
45926         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
45927         * doc/posix-functions/gmtime_r.texi: Likewise.
45928         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45929
45930 2008-02-24  Bruno Haible  <bruno@clisp.org>
45931
45932         * modules/environ-tests: New file.
45933         * tests/test-environ.c: New file.
45934
45935         New module 'environ'.
45936         * modules/environ: New file.
45937         * lib/unistd.in.h (environ): New declaration.
45938         * m4/environ.m4: New file.
45939         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
45940         after use.
45941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
45942         HAVE_DECL_ENVIRON.
45943         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
45944         HAVE_DECL_ENVIRON.
45945         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
45946         wrong claim that 'environ' is missing on some systems.
45947         * modules/execute (Depends-on): Add environ.
45948         * lib/execute.c (environ): Remove fallback declaration.
45949         * modules/pipe (Depends-on): Add environ.
45950         * lib/pipe.c (environ): Remove fallback declaration.
45951         * modules/setenv (Depends-on): Add environ.
45952         * lib/setenv.c (environ): Remove fallback declaration.
45953         * modules/unsetenv (Depends-on): Add environ.
45954         * lib/unsetenv.c (environ): Remove fallback declaration.
45955         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
45956         m4/environ.m4.
45957         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
45958         (gl_PREREQ_UNSETENV): Likewise.
45959
45960 2008-02-24  Bruno Haible  <bruno@clisp.org>
45961
45962         * doc/posix-functions/environ.texi: Document the MacOS X problem.
45963
45964 2008-02-20  Bob Proulx  <bob@proulx.com>
45965
45966         Enable use of older two part flavor 'git describe'.
45967         * build-aux/git-version-gen: If using the older two part flavor of
45968         git version then recreate the third part now present in the
45969         newer three part flavor of git describe.
45970
45971 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
45972
45973         * lib/fts.c (fts_build): Typo correction to comment.
45974
45975 2008-02-17  Bruno Haible  <bruno@clisp.org>
45976
45977         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
45978         generating no-op conflicts.
45979
45980 2008-02-17  Bruno Haible  <bruno@clisp.org>
45981
45982         Speed up by 10%.
45983         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
45984         result_entries, rather than an index-based loop.
45985
45986 2008-02-17  Bruno Haible  <bruno@clisp.org>
45987
45988         Speed up by 25%.
45989         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
45990         'hashcode_cached'.
45991         (entry_create): New function.
45992         (entry_hashcode): Use the cached hashcode if possible.
45993         (read_changelog_file, try_split_merged_entry): Use entry_create.
45994
45995 2008-02-17  Bruno Haible  <bruno@clisp.org>
45996
45997         Speed up from O(n^2) to O(n) for long ChangeLog files.
45998         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
45999         (read_changelog_file): Change implementation of entries_reversed list
46000         to rbtreehash.
46001         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
46002
46003 2008-02-17  Bruno Haible  <bruno@clisp.org>
46004
46005         New option --split-merged-entry.
46006         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
46007         (find_paragraph_end, try_split_merged_entry): New functions.
46008         (long_options): Add option --split-merged-entry.
46009         (usage): Document option --split-merged-entry.
46010         (main): Implement option --split-merged-entry.
46011         Reported by Eric Blake.
46012
46013 2008-02-17  Bruno Haible  <bruno@clisp.org>
46014
46015         * lib/git-merge-changelog.c: Include c-strstr.h.
46016         (main): Support the "git pull --rebase" situation.
46017         * modules/git-merge-changelog (Depends-on): Add c-strstr.
46018         Reported by Eric Blake.
46019
46020 2008-02-16  Eric Blake  <ebb9@byu.net>
46021
46022         Avoid doubling \ in common case of "c-maybe" quoting style.
46023         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46024         eliding outer quotes.
46025         * lib/quotearg.h: Document this.
46026         * tests/test-quotearg.c (result_strings, inputs, results_g)
46027         (flag_results, locale_results): Test it by adding a new string to
46028         each test group.
46029         (compare_strings): Test new string.
46030
46031 2008-02-13  Eric Blake  <ebb9@byu.net>
46032
46033         Avoid trigraph quoting in default output.
46034         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46035         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46036         unless explicitly requested.
46037         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46038
46039 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46040
46041         Don't rely on signed integer overflowing to negative value.
46042         * lib/getugroups.c (getugroups): Include <limits.h>.
46043         Instead, compare against INT_MAX, and increment only if the test passes.
46044
46045 2008-02-13  Jim Meyering  <meyering@redhat.com>
46046         and Eric Blake  <ebb9@byu.net>
46047
46048         Avoid shadowing warning and compile errors on Linux.
46049         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46050         forwarding macros on Linux.
46051         (dcgettext): Define a stub, for Linux.
46052         (results_g, main): Avoid warnings.
46053
46054 2008-02-12  Eric Blake  <ebb9@byu.net>
46055
46056         Silence warning in last patch.
46057         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46058
46059         Quotearg part 4: add tests, fix c-maybe colon quoting.
46060         * lib/quotearg.h: Improve documentation.
46061         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46062         escapes when adding outer quotes.  When quoting trigraphs, use
46063         valid C notation.  When quoting NUL, omit extra characters if next
46064         character is not digit.  Alter prototype.
46065         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46066         callers.
46067         * modules/quotearg-tests: New module.
46068         * tests/test-quotearg.c: New test.
46069
46070 2008-02-07  Eric Blake  <ebb9@byu.net>
46071
46072         Quotearg part 3: add flag to control outer quote elision.
46073         * lib/quotearg.h (c_maybe_quoting_style): New style.
46074         (enum quoting_flags): Better documentation of flags.
46075         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46076         c-maybe style.
46077         (quotearg_buffer_restyled): Handle new flag to elide outer
46078         quotes.
46079
46080         Quotearg part 2: add flag that can control NUL elision.
46081         * lib/quotearg.h (set_quoting_flags): New prototype.
46082         * lib/quotearg.c (struct quoting_options): Add flag field.
46083         (set_quoting_flags): New function.
46084         (quotearg_buffer_restyled): Add flags parameter.
46085         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46086         (quotearg_n_options): Set the flag, since length cannot be
46087         returned.
46088         (quoting_options_from_style): Default flags correctly.
46089
46090         Quotearg part 1: more wrappers, restore quotearg_char state.
46091         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46092         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46093         (quotearg_colon_mem): New wrappers.
46094         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46095         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46096         functions.
46097         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46098         (quotearg_colon_mem): New functions.
46099
46100 2008-02-11  Bruno Haible  <bruno@clisp.org>
46101
46102         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46103         library in the current directory: it does not work with parallel make.
46104         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46105
46106 2008-02-11  Bruno Haible  <bruno@clisp.org>
46107
46108         * .gitattributes: New file.
46109
46110 2008-02-11  Jim Meyering  <meyering@redhat.com>
46111
46112         useless-if-before-free: Fix reversed exit values.
46113         * build-aux/useless-if-before-free: Use correct values
46114         for EXIT_MATCH and EXIT_NO_MATCH.
46115
46116         * build-aux/useless-if-before-free: Close stdout carefully.
46117
46118 2008-02-10  Bruno Haible  <bruno@clisp.org>
46119
46120         New module 'git-merge-changelog'.
46121         * modules/git-merge-changelog: New file.
46122         * lib/git-merge-changelog.c: New file.
46123
46124 2008-02-10  Jim Meyering  <meyering@redhat.com>
46125
46126         useless-if-before-free: New option: --list (-l).
46127
46128         useless-if-before-free: Don't exit immediately upon open failure.
46129         * build-aux/useless-if-before-free: Exit 2 for errors.
46130         Upon failure to open a file, don't exit immediately.
46131         Rather, just warn and continue with any remaining files.
46132
46133 2008-02-10  Bruno Haible  <bruno@clisp.org>
46134
46135         New abstract list operation 'node_set_value'.
46136         * lib/gl_list.h (gl_list_node_set_value): New function.
46137         (struct gl_list_implementation): New field node_set_value.
46138         * lib/gl_list.c (gl_list_node_set_value): New function.
46139         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46140         (gl_array_list_implementation): Update.
46141         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46142         (gl_carray_list_implementation): Update.
46143         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46144         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46145         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46146         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46147         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46148         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46149         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46150         Update.
46151         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46152         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46153         (gl_sublist_list_implementation): Update.
46154
46155 2008-02-10  Bruno Haible  <bruno@clisp.org>
46156
46157         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46158         Needed when ELEMENT is #defined to 'some_type *'.
46159
46160 2008-02-10  Jim Meyering  <meyering@redhat.com>
46161
46162         New script and module: useless-if-before-free
46163         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46164         * build-aux/useless-if-before-free: New file.
46165         * modules/useless-if-before-free: New file.
46166
46167         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46168
46169         xstrtol_error: Fix typo.
46170         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46171         s/exit_failure/exit_status/.
46172
46173 2008-02-09  Jim Meyering  <meyering@redhat.com>
46174
46175         New script and module: gitlog-to-changelog
46176         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46177         * modules/gitlog-to-changelog: New file.
46178         * build-aux/gitlog-to-changelog: New file.
46179
46180 2008-02-08  Jim Meyering  <meyering@redhat.com>
46181
46182         Avoid two "parameter unused" warnings.
46183         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46184         Mark "st" as used.
46185
46186         Use "git COMMAND", not "git-COMMAND".
46187         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46188         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46189         * build-aux/git-version-gen: Use "git status", not "git-status".
46190
46191 2008-02-07  Bruno Haible  <bruno@clisp.org>
46192
46193         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46194         Avoids a crash on Windows Vista.
46195         Reported by Adam Strzelecki <ono@java.pl> via
46196         Simon Josefsson <simon@josefsson.org>.
46197
46198 2008-02-06  Bruno Haible  <bruno@clisp.org>
46199
46200         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46201         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46202         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46204         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46205         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46206         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46207         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46208         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46209         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46210         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46211         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46212         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46213         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46214         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46215         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46216         left-adjust flag.
46217         * tests/test-snprintf-posix.h (test_function): Likewise.
46218         * tests/test-sprintf-posix.h (test_function): Likewise.
46219         * tests/test-vasprintf-posix.c (test_function): Likewise.
46220         * doc/posix-functions/fprintf.texi: Update.
46221         * doc/posix-functions/printf.texi: Update.
46222         * doc/posix-functions/snprintf.texi: Update.
46223         * doc/posix-functions/sprintf.texi: Update.
46224         * doc/posix-functions/vfprintf.texi: Update.
46225         * doc/posix-functions/vprintf.texi: Update.
46226         * doc/posix-functions/vsnprintf.texi: Update.
46227         * doc/posix-functions/vsprintf.texi: Update.
46228         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46229
46230 2008-02-06  Bruno Haible  <bruno@clisp.org>
46231
46232         Fix bug introduced on 2008-01-26.
46233         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46234
46235 2008-02-06  Bruno Haible  <bruno@clisp.org>
46236
46237         Fix bug introduced on 2007-06-10.
46238         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
46239         !NEED_PRINTF_FLAG_ZERO.
46240
46241 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
46242
46243         getloadavg: use libperfstat on AIX5
46244         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
46245
46246 2008-02-03  Bruno Haible  <bruno@clisp.org>
46247
46248         * lib/diffseq.h: Add comments about required #includes.
46249         Reported by Michael Biggs <gnulib@doubleplum.net>.
46250
46251 2008-02-01  Bruno Haible  <bruno@clisp.org>
46252
46253         * users.txt: Add gnuit.
46254
46255 2008-01-31  Bruno Haible  <bruno@clisp.org>
46256
46257         * lib/md4.c (set_uint32): Mark as inline.
46258         * lib/md5.c (set_uint32): Likewise.
46259         * lib/sha1.c (set_uint32): Likewise.
46260         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
46261         * m4/md5.m4 (gl_MD5): Likewise.
46262         * m4/sha1.m4 (gl_SHA1): Likewise.
46263
46264 2008-01-31  Jim Meyering  <meyering@redhat.com>
46265
46266         Use "sizeof VAR", rather than a literal "4".
46267         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
46268         * lib/md4.c (md4_read_ctx): Likewise.
46269         * lib/sha1.c (sha1_read_ctx): Likewise.
46270
46271 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46272
46273         * tests/test-sha1.c: New file, based on test-md5.c.
46274
46275         * modules/crypto/sha1-tests: New file.
46276
46277 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46278
46279         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
46280
46281 2008-01-31  Jim Meyering  <meyering@redhat.com>
46282
46283         Prefer "sizeof v" over the equivalent "4".
46284         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
46285         * lib/md5.c (set_uint32): Likewise.
46286         * lib/sha1.c (set_uint32): Likewise.
46287
46288 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46289
46290         * lib/sha1.c (set_uint32): Mark function as static.
46291
46292 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46293
46294         md2: clarify comments to say that alignment is not required.
46295         * lib/md2.h: Remove warning about alignment in comment.
46296         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
46297         never been required.
46298
46299 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46300
46301         md4: adapt alignment constraint fix from sha1.
46302         * lib/md4.c (set_uint32): New function, from sha1.c
46303         (md4_read_ctx): Use it.
46304         (md4_finish_ctx): Doc fix.
46305         * lib/md4.h: Doc fix.
46306
46307 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46308
46309         md5: adapt alignment constraint fix from sha1.
46310         * lib/md5.c (set_uint32): New function, from sha1.c
46311         (md5_read_ctx): Use it.
46312         (md5_finish_ctx): Doc fix.
46313         * lib/md5.h: Doc fix.
46314
46315 2008-01-30  Peter Palfrader  <weasel@debian.org>
46316
46317         sha1: remove the result buffer alignment constraint
46318         * lib/sha1.c (set_uint32): New function.
46319         (sha1_read_ctx): Rewrite to remove the result buffer alignment
46320         constraint.
46321         (sha1_finish_ctx): Remove comment warning about alignment constraint.
46322         * lib/sha1.h: Likewise.
46323
46324 2008-01-30  Andreas Schwab  <schwab@suse.de>
46325             Bruno Haible  <bruno@clisp.org>
46326
46327         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46328         correct definition of LDBL_MIN_EXP.
46329
46330 2008-01-30  Karl Berry  <karl@gnu.org>
46331
46332         * config/srclist-update: try to preserve x bit on updates.
46333         * config/srclistvars.sh: update for karl.
46334
46335 2008-01-29  Jim Meyering  <meyering@redhat.com>
46336
46337         vasnprintf.c: Avoid warning about unused label
46338         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46339         "overflow" label definition and associated code with the
46340         same cpp condition that guards the sole use of that label.
46341
46342 2008-01-26  Bruno Haible  <bruno@clisp.org>
46343
46344         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46345         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46346         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46347         * lib/isnanl-nolibm.h (isnanl): Likewise.
46348         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46349
46350 2008-01-26  Bruno Haible  <bruno@clisp.org>
46351
46352         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46353         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46354
46355 2008-01-26  Bruno Haible  <bruno@clisp.org>
46356
46357         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46358         GCC >= 4.0 built-in.
46359         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46360
46361 2008-01-26  Bruno Haible  <bruno@clisp.org>
46362
46363         Rename isnan, applicable to 'double' only, to isnand.
46364         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46365         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46366         (configure.ac): Update.
46367         (Include): Replace "isnan.h" with "isnand.h".
46368         * m4/isnand.m4: Renamed from m4/isnan.m4.
46369         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46370         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46371         instead of isnan.c.
46372         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46373         instead of HAVE_ISNAN_IN_LIBC.
46374         (isnand): Renamed from isnan.
46375         * lib/isnand.c: New file.
46376         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46377         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46378         (Makefile.am): Update.
46379         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46380         Include isnand.h instead of isnan.h.
46381         (main): Test isnand instead of isnan.
46382         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46383         isnan-nolibm.
46384         * modules/frexp (Depends-on): Likewise.
46385         * modules/frexp-tests (Depends-on): Likewise.
46386         * modules/frexp-nolibm (Depends-on): Likewise.
46387         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46388         * modules/isfinite (Depends-on): Likewise.
46389         * modules/round-tests (Depends-on): Likewise.
46390         * modules/signbit (Depends-on): Likewise.
46391         * modules/signbit-tests (Depends-on): Likewise.
46392         * modules/snprintf-posix (Depends-on): Likewise.
46393         * modules/sprintf-posix (Depends-on): Likewise.
46394         * modules/trunc-tests (Depends-on): Likewise.
46395         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46396         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46397         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46398         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46399         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46400         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46401         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46402         * modules/vasnprintf-posix (Depends-on): Likewise.
46403         * modules/vasprintf-posix (Depends-on): Likewise.
46404         * modules/vfprintf-posix (Depends-on): Likewise.
46405         * modules/vsnprintf-posix (Depends-on): Likewise.
46406         * modules/vsprintf-posix (Depends-on): Likewise.
46407         * lib/frexp.c: Include isnand.h instead of isnan.h.
46408         (ISNAN): Set to isnand instead of isnan.
46409         * lib/isfinite.c: Include isnand.h instead of isnan.h.
46410         (gl_isfinited): Use isnand instead of isnan.
46411         * lib/signbitd.c: Include isnand.h instead of isnan.h.
46412         (gl_signbitd): Use isnand instead of isnan.
46413         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
46414         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
46415         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
46416         (main): Use isnand instead of isnan.
46417         * tests/test-round1.c: Include isnand.h.
46418         (main): Use isnand instead of isnan.
46419         * tests/test-round2.c: Include isnand.h instead of isnan.h.
46420         (ISNAN): Set to isnand instead of isnan.
46421         * tests/test-trunc1.c: Include isnand.h.
46422         (main): Use isnand instead of isnan.
46423         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
46424         (equal): Use isnand instead of isnan.
46425         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
46426         isnand-nolibm.
46427         * NEWS: Mention the change.
46428
46429 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46430             Bruno Haible  <bruno@clisp.org>
46431
46432         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
46433         the GCC builtins for signbits are present and set
46434         REPLACE_SIGNBIT_USING_GCC if so.
46435         * lib/math.in.h (signbit): Define using GCC builtins if
46436         REPLACE_SIGNBIT_USING_GCC is set.
46437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
46438         REPLACE_SIGNBIT_USING_GCC.
46439         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
46440
46441 2008-01-25  Jim Meyering  <meyering@redhat.com>
46442
46443         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
46444         * lib/poll.c: Include <config.h>, not "config.h".
46445         * tests/test-getaddrinfo.c: Likewise.
46446
46447 2008-01-25  Simon Josefsson  <simon@josefsson.org>
46448
46449         * modules/sockets-tests: New file.
46450
46451 2008-01-24  Simon Josefsson  <simon@josefsson.org>
46452
46453         * modules/sockets: New module, can be used to call WSA_Startup and
46454         WSA_Cleanup when needed.
46455
46456         * lib/sockets.h, lib/sockets.c: New files.
46457
46458         * m4/sockets.m4: New file.
46459
46460         * tests/test-sockets.c: New file.
46461
46462 2008-01-19  Bruno Haible  <bruno@clisp.org>
46463
46464         * doc/posix-headers: Renamed from doc/headers.
46465         * doc/posix-functions: Renamed from doc/functions.
46466         * doc/gnulib.texi: Update.
46467
46468 2008-01-19  Bruno Haible  <bruno@clisp.org>
46469
46470         * doc/glibc-functions/strcasestr.texi: Include contents of
46471         doc/functions/strcasestr.texi, fixing the list of platforms.
46472         * doc/functions/strcasestr.texi: Remove file.
46473
46474 2008-01-19  Bruno Haible  <bruno@clisp.org>
46475
46476         * doc/glibc-functions/memmem.texi: Include contents of
46477         doc/functions/memmem.texi.
46478         * doc/functions/memmem.texi: Remove file.
46479
46480 2008-01-18  Bruno Haible  <bruno@clisp.org>
46481
46482         * doc/glibc-functions/*.texi: New files.
46483         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
46484         to use the new files.
46485
46486 2008-01-17  Bruno Haible  <bruno@clisp.org>
46487
46488         * tests/test-gethostname.c (main): Fix printf statement.
46489
46490 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46491
46492         * modules/gethostname-tests: New file.
46493
46494         * tests/test-gethostname.c: New file.
46495
46496 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46497
46498         * lib/gethostname.c: Include string.h unconditionally, strncpy is
46499         used by the UNAME case.  Reported by Bruno Haible
46500         <bruno@clisp.org>.
46501
46502 2008-01-17  Eric Blake  <ebb9@byu.net>
46503
46504         Convert c-strcasestr to be more efficient.
46505         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
46506         (Depends-on): Add c-strcase, remove malloca, strnlen.
46507         * tests/test-c-strcasestr.c (main): Enhance test.
46508         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
46509
46510 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46511
46512         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
46513         Use it in creating po/Makevars.
46514
46515 2008-01-15  Simon Josefsson  <simon@josefsson.org>
46516
46517         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
46518         Applications that requires it should initialize libgcrypt
46519         manually.
46520
46521 2008-01-16  Simon Josefsson  <simon@josefsson.org>
46522
46523         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
46524
46525 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
46526
46527         Fix problem with getdate on mingw32 reported by Simon Josefsson
46528         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
46529         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
46530         tzname", when deciding whether to declare tzname.
46531         * lib/strftime.c (tzname): Likewise.
46532
46533 2008-01-15  Bruno Haible  <bruno@clisp.org>
46534
46535         Work around a MacOS X 10.5 bug in frexpl().
46536         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
46537         * doc/functions/frexpl.texi: Document the bug.
46538         Reported by Elias Pipping <pipping@gentoo.org>.
46539
46540 2008-01-14  Eric Blake  <ebb9@byu.net>
46541
46542         Touch up previous patch.
46543         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
46544         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
46545
46546         Convert strcasestr module to use Two-Way algorithm.
46547         * modules/strcasestr-simple: New module, based on the old
46548         strcasestr, but with Two-Way rather than KMP.
46549         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
46550         * lib/string.in.h (rpl_strcasestr): Declare.
46551         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
46552         performance.
46553         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
46554         * modules/string (Makefile.am): Support strcasestr.
46555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46556         * modules/strcasestr-tests (Depends-on): Check for alarm.
46557         * tests/test-strcasestr.c: Augment test.
46558         * lib/str-two-way.h: Clean up stray macro.
46559         * NEWS: Document new module.
46560         * MODULES.html.sh (string handling): Likewise.
46561         * doc/functions/strcasestr.texi: New file.
46562         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
46563         here, since it is not a POSIX function.
46564
46565 2008-01-14  Colin Watson  <cjwatson@debian.org>
46566             Bruno Haible  <bruno@clisp.org>
46567
46568         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
46569         works fine; if not, set REPLACE_STRSIGNAL.
46570         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
46571         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46572         REPLACE_STRSIGNAL.
46573         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
46574         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
46575         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
46576
46577 2008-01-14  Bruno Haible  <bruno@clisp.org>
46578
46579         * modules/strsignal (Include): Change to <string.h>.
46580
46581 2008-01-14  Colin Watson  <cjwatson@debian.org>
46582
46583         * modules/argp (Notice): Add a notice recommending to change
46584         XGETTEXT_OPTIONS.
46585         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
46586
46587 2008-01-13  Colin Watson  <cjwatson@debian.org>
46588
46589         * modules/strsignal-tests: New file.
46590         * tests/test-strsignal.c: New file.
46591
46592         * lib/strsignal.c: New file, from glibc with modifications.
46593         * lib/siglist.h: New file, from glibc with modifications.
46594         * lib/string.in.h (strsignal): New declaration.
46595         * m4/strsignal.m4: New file.
46596         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46597         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
46598         * modules/strsignal: New file.
46599         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
46600         HAVE_DECL_STRSIGNAL.
46601
46602 2008-01-13  Bruno Haible  <bruno@clisp.org>
46603
46604         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
46605         locale encoding is not ASCII. Needed for OpenBSD 4.0.
46606         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46607         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46608
46609 2008-01-13  Bruno Haible  <bruno@clisp.org>
46610
46611         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
46612         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
46613         * lib/argp.h (__attribute__): Likewise.
46614         * lib/c-stack.c (__attribute__): Likewise.
46615         * lib/error.h (__attribute__): Likewise.
46616         * lib/fts.c (__attribute__): Likewise.
46617         * lib/openat.h (__attribute__): Likewise.
46618         * lib/stdio.in.h (__attribute__): Likewise.
46619         * lib/string.in.h (__attribute__): Likewise.
46620         * lib/utimens.c (__attribute__): Likewise.
46621         * lib/vasnprintf.h (__attribute__): Likewise.
46622         * lib/xalloc.h (__attribute__): Likewise.
46623         * lib/xprintf.h (__attribute__): Likewise.
46624         * lib/xstrtol.h (__attribute__): Likewise.
46625         * lib/xvasprintf.h (__attribute__): Likewise.
46626
46627 2008-01-12  Bruno Haible  <bruno@clisp.org>
46628
46629         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
46630         * doc/glibc-headers/a.out.texi: New file.
46631         * doc/glibc-headers/aliases.texi: New file.
46632         * doc/glibc-headers/alloca.texi: New file.
46633         * doc/glibc-headers/ar.texi: New file.
46634         * doc/glibc-headers/argp.texi: New file.
46635         * doc/glibc-headers/argz.texi: New file.
46636         * doc/glibc-headers/byteswap.texi: New file.
46637         * doc/glibc-headers/crypt.texi: New file.
46638         * doc/glibc-headers/endian.texi: New file.
46639         * doc/glibc-headers/envz.texi: New file.
46640         * doc/glibc-headers/err.texi: New file.
46641         * doc/glibc-headers/error.texi: New file.
46642         * doc/glibc-headers/execinfo.texi: New file.
46643         * doc/glibc-headers/fpu_control.texi: New file.
46644         * doc/glibc-headers/fstab.texi: New file.
46645         * doc/glibc-headers/fts.texi: New file.
46646         * doc/glibc-headers/getopt.texi: New file.
46647         * doc/glibc-headers/ieee754.texi: New file.
46648         * doc/glibc-headers/ifaddrs.texi: New file.
46649         * doc/glibc-headers/libintl.texi: New file.
46650         * doc/glibc-headers/mcheck.texi: New file.
46651         * doc/glibc-headers/mntent.texi: New file.
46652         * doc/glibc-headers/obstack.texi: New file.
46653         * doc/glibc-headers/paths.texi: New file.
46654         * doc/glibc-headers/printf.texi: New file.
46655         * doc/glibc-headers/pty.texi: New file.
46656         * doc/glibc-headers/resolv.texi: New file.
46657         * doc/glibc-headers/shadow.texi: New file.
46658         * doc/glibc-headers/sysexits.texi: New file.
46659         * doc/glibc-headers/ttyent.texi: New file.
46660
46661 2008-01-12  Jim Meyering  <meyering@redhat.com>
46662
46663         announce-gen: emit Gnulib's git-based version string.
46664         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
46665         New option --gnulib-version=V, where V is expected to be
46666         the output of running git describe in the gnulib directory.
46667         (get_tool_versions): Request feedback on xdelta.  I suspect it's
46668         not useful, and plan to stop publishing an xdelta file with each
46669         coreutils release.
46670
46671         * build-aux/announce-gen: Also check for lzma-compressed files.
46672
46673 2008-01-11  Bruno Haible  <bruno@clisp.org>
46674
46675         * tests/test-memmem.c (main): Increase maximum allowed time.
46676         * tests/test-strstr.c (main): Likewise.
46677
46678 2008-01-11  Bruno Haible  <bruno@clisp.org>
46679
46680         * doc/functions/memmem.texi: Add more precisions about platforms.
46681         * doc/functions/strstr.texi: Likewise.
46682
46683 2008-01-10  Eric Blake  <ebb9@byu.net>
46684
46685         * m4/strstr.m4: Delete cruft from copy-n-paste.
46686         Reported by Bruno Haible.
46687
46688 2008-01-10  Bruno Haible  <bruno@clisp.org>
46689
46690         Make c-strstr rely on strstr.
46691         * lib/c-strstr.c: Don't include str-kmp.h.
46692         (c_strstr): Define in terms of strstr.
46693         * modules/c-strstr (Files): Remove lib/str-kmp.h.
46694         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
46695
46696 2008-01-10  Bruno Haible  <bruno@clisp.org>
46697
46698         * doc/gnulib.texi (String Functions in C Locale): New section.
46699         * doc/c-ctype.texi: New file.
46700         * doc/c-strcase.texi: New file.
46701         * doc/c-strcaseeq.texi: New file.
46702         * doc/c-strcasestr.texi: New file.
46703         * doc/c-strstr.texi: New file.
46704         * doc/c-strtod.texi: New file.
46705         * doc/c-strtold.texi: New file.
46706
46707 2008-01-10  Eric Blake  <ebb9@byu.net>
46708
46709         * lib/relocatable.h: Fix a comment.
46710
46711 2008-01-10  Eric Blake  <ebb9@byu.net>
46712
46713         Share two-way algorithm.
46714         * lib/str-two-way.h: New file, merged from...
46715         * lib/memmem.c: ...here...
46716         * lib/strstr.c: ...and here.
46717         * modules/memmem (Files): Use it.
46718         * modules/strstr (Files): Likewise.
46719
46720         Avoid quadratic strstr implementations.
46721         * lib/strstr.c: New file.
46722         * m4/strstr.m4: Likewise.
46723         * modules/strstr: Likewise.
46724         * modules/strstr-tests: Likewise.
46725         * tests/test-strstr.c: Likewise.
46726         * lib/string.in.h (rpl_strstr): Declare.
46727         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
46728         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
46729         * modules/string (Makefile.am): Likewise.
46730         * MODULES.html.sh (string handling): Mention new module.
46731         * doc/functions/strstr.texi (strstr): Document the bug.
46732
46733 2008-01-10  Bruno Haible  <bruno@clisp.org>
46734
46735         * lib/relocatable.h (relocate): State whether result is freshly
46736         allocated or not.
46737         * lib/relocatable.c (relocate): Return a freshly allocated string
46738         instead of a pointer to a privately held string.
46739         Reported by Sylvain Beucler <beuc@gnu.org>.
46740
46741 2008-01-10  Colin Watson  <cjwatson@debian.org>
46742
46743         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
46744         s/S_ISNLK/S_ISLNK/.
46745
46746 2008-01-09  Bruno Haible  <bruno@clisp.org>
46747
46748         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
46749         and other files.
46750         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
46751         if it's only a guess.
46752         * modules/memmem: Simplify by depending on memmem-simple.
46753
46754 2008-01-09  Bruno Haible  <bruno@clisp.org>
46755
46756         Work around OpenBSD 4.0 tdelete() bug.
46757         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
46758         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
46759         macros and don't redefine the enum values.
46760         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
46761         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
46762         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
46763
46764 2008-01-09  Bruno Haible  <bruno@clisp.org>
46765
46766         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
46767         (main): Don't perform the tests if setlocale did not install a UTF-8
46768         locale. Needed on OpenBSD 4.0.
46769         * modules/wcwidth-tests (Depends-on): Add localcharset.
46770
46771 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46772
46773         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
46774         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
46775         * NEWS: announce this.
46776         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
46777
46778 2008-01-09  Simon Josefsson  <simon@josefsson.org>
46779         and Eric Blake  <ebb9@byu.net>
46780
46781         Add memmem-simple module.
46782         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
46783         (gl_FUNC_MEMMEM): Separate performance from presence checks.
46784         * modules/memmem-simple: New file.
46785         * modules/memmem (Description): Tweak.
46786         * MODULES.html.sh (string handling): Mention new module.
46787         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
46788         addressed by memmem-simple.
46789         * NEWS: Document the difference.
46790
46791 2008-01-09  Eric Blake  <ebb9@byu.net>
46792
46793         Give gcc some memmem optimization hints.
46794         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
46795         (strcasestr): Declare as pure.
46796         * modules/memmem (Maintainer): Claim my implementation.
46797
46798 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46799
46800         Support AIX 6.1 and higher.
46801         * build-aux/config.libpath: Likewise.
46802         * build-aux/config.rpath: Likewise.
46803
46804 2008-01-08  Jim Meyering  <meyering@redhat.com>
46805             Bruno Haible  <bruno@clisp.org>
46806
46807         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
46808         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
46809         Reported by Peter Fales in
46810         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
46811
46812 2008-01-08  Bruno Haible  <bruno@clisp.org>
46813
46814         * modules/unictype/category-of (Depends-on): Add
46815         unictype/category-none.
46816         * modules/unictype/category-and-tests (Depends-on): Add
46817         unictype/category-{L,N,Lu,Nd}.
46818         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
46819         * modules/unictype/category-or-tests (Depends-on): Add
46820         unictype/category-{L,N}.
46821         * modules/unictype/category-name-tests (Depends-on): Add
46822         unictype/category-{Z,Nl}.
46823         Reported by Simon Josefsson.
46824
46825 2008-01-08  Bruno Haible  <bruno@clisp.org>
46826
46827         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
46828         convention better.
46829         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
46830         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
46831         Reported by Peter Miller <millerp@canb.auug.org.au>.
46832
46833 2008-01-08  Eric Blake  <ebb9@byu.net>
46834
46835         Rewrite memmem to guarantee linear complexity without malloc.
46836         * lib/memmem.c (memmem): Use Two-Way rather than
46837         Knuth-Morris-Pratt, to allow O(1) space usage.
46838         (critical_factorization, two_way_short_needle)
46839         (two_way_long_needle): New functions.
46840         (knuth_morris_pratt): Delete.
46841         * modules/memmem (Depends-on): No longer need malloca or stdbool.
46842         Add stdint.
46843         * tests/test-memmem.c (main): Add tests for periodic needle and
46844         sublinear performance.
46845         * doc/functions/memmem.texi (memmem): Document other deficiencies
46846         in cygwin and older glibc.
46847
46848 2008-01-08  Bruno Haible  <bruno@clisp.org>
46849
46850         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
46851         augmentation.
46852
46853 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
46854
46855         Add a configure time option: --disable-acl.
46856         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
46857         AC_ARG_ENABLE(acl).
46858
46859 2008-01-06  Simon Josefsson  <simon@josefsson.org>
46860
46861         * tests/test-localename.c: Don't include obsolete "setenv.h".
46862
46863         * modules/localename-tests (Depends-on): Need unsetenv.
46864
46865 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46866
46867         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
46868
46869 2008-01-06  Colin Watson  <cjwatson@debian.org>
46870
46871         * users.txt: Add man-db.
46872
46873 2008-01-07  Bruno Haible  <bruno@clisp.org>
46874
46875         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
46876         previous section name.
46877
46878 2008-01-07  Bruno Haible  <bruno@clisp.org>
46879
46880         * lib/progname.c (set_program_name): Don't strip off a leading
46881         "lt-" prefix outside a .libs directory.
46882         Suggested by Paul Eggert.
46883
46884 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
46885             Bruno Haible  <bruno@clisp.org>
46886
46887         Improve memory cleanup in 'relocatable' module.
46888         * lib/relocatable.h (compute_curr_prefix): Change return type to
46889         'char *'.
46890         * lib/relocatable.c (compute_curr_prefix): Change return type to
46891         'char *'. Free curr_installdir after use.
46892         (relocate): Free curr_prefix_better after use.
46893         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
46894
46895 2008-01-01  Bruno Haible  <bruno@clisp.org>
46896
46897         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
46898         failure on older glibc systems.
46899         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46900
46901 2008-01-05  Eric Blake  <ebb9@byu.net>
46902
46903         Avoid quadratic system memmem.
46904         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
46905         Reported by Ralf Wildenhues.
46906
46907         Fix memmem test for mingw.
46908         * modules/memmem-tests (configure.ac): Check for alarm.
46909         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
46910         it.
46911         * doc/functions/memmem.texi: New file.
46912         * doc/gnulib.texi (Function Substitutes): Add memmem.
46913         Reported by Bruno Haible.
46914
46915 2008-01-04  Bruno Haible  <bruno@clisp.org>
46916
46917         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
46918         Require gl_HEADER_STRINGS_H_DEFAULTS, not
46919         gl_HEADER_STRING_H_DEFAULTS.
46920
46921 2008-01-04  Eric Blake  <ebb9@byu.net>
46922
46923         Shorten duration of memmem test.
46924         * tests/test-memmem.c (main): Use alarm to declare failure if test
46925         is taking too long.
46926         Reported by Ralf Wildenhues.
46927
46928 2007-12-21  Simon Josefsson  <simon@josefsson.org>
46929
46930         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
46931         string, needed by strerror.
46932
46933 2008-01-03  Colin Watson  <cjwatson@debian.org>
46934             Bruno Haible  <bruno@clisp.org>
46935
46936         * doc/gnulib-tool.texi (Localization): New section.
46937
46938 2008-01-02  Bruno Haible  <bruno@clisp.org>
46939
46940         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
46941         variables to 'unsigned char *' type.
46942         Reported by Paul Eggert.
46943
46944 2008-01-02  Jim Meyering  <jim@meyering.net>
46945
46946         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
46947
46948 2007-12-31  Jim Meyering  <jim@meyering.net>
46949
46950         Avoid use of private FTS type name.
46951         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
46952
46953 2007-12-30  Karl Berry  <karl@gnu.org>
46954
46955         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
46956         work around defect in Texinfo and/or the standalone Info browser.
46957
46958 2007-12-30  Bruno Haible  <bruno@clisp.org>
46959
46960         Unify 5 copies of the KMP code.
46961         * lib/str-kmp.h: New file.
46962         * lib/c-strcasestr.c: Include str-kmp.h.
46963         (knuth_morris_pratt): Remove function.
46964         (c_strcasestr): Update.
46965         * lib/c-strstr.c: Include str-kmp.h.
46966         (knuth_morris_pratt): Remove function.
46967         (c_strcasestr): Update.
46968         * lib/mbscasestr.c: Include str-kmp.h.
46969         (knuth_morris_pratt_unibyte): Remove function.
46970         * lib/mbsstr.c: Include str-kmp.h.
46971         (knuth_morris_pratt_unibyte): Remove function.
46972         * lib/strcasestr.c: Include str-kmp.h.
46973         (knuth_morris_pratt): Remove function.
46974         (strcasestr): Update.
46975         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
46976         * modules/c-strstr (Files): Likewise.
46977         * modules/mbscasestr (Files): Likewise.
46978         * modules/mbsstr (Files): Likewise.
46979         * modules/strcasestr (Files): Likewise.
46980         Suggested by Paul Eggert.
46981
46982 2007-12-30  Bruno Haible  <bruno@clisp.org>
46983
46984         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
46985         defined.
46986
46987 2007-12-30  Bruno Haible  <bruno@clisp.org>
46988
46989         * lib/xmalloca.h: Include xalloc.h.
46990         (xnmalloca): New macro.
46991
46992 2007-12-30  Bruno Haible  <bruno@clisp.org>
46993
46994         * lib/malloca.h (nmalloca): New macro.
46995         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
46996         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
46997         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
46998         knuth_morris_pratt_multibyte): Likewise.
46999         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
47000         knuth_morris_pratt_multibyte): Likewise.
47001         * lib/memmem.c (knuth_morris_pratt): Likewise.
47002         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
47003
47004 2007-12-25  Bruno Haible  <bruno@clisp.org>
47005
47006         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
47007         * lib/glob.c: Don't include openat.h.
47008         (link_exists2_p): Add back the code that deals with the
47009         !GLOB_ALTDIRFUNC case.
47010         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
47011         let it do the filename concatenation.
47012         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
47013         * modules/glob (Depends-on): Remove openat.
47014
47015 2007-12-31  Bruno Haible  <bruno@clisp.org>
47016
47017         * modules/dirfd (License): Change to LGPLv2+.
47018         Approved by Jim Meyering.
47019
47020 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47021
47022         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47023         when multiplying M by sizeof (size_t).
47024
47025 2007-12-10  Martin Lambers  <marlam@marlam.de>
47026
47027         Override getpagesize on mingw.
47028         * lib/getpagesize.c: New file.
47029         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47030         * modules/getpagesize (Files): Add lib/getpagesize.c.
47031         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47033         REPLACE_GETPAGESIZE.
47034         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47035
47036 2007-12-25  Bruno Haible  <bruno@clisp.org>
47037
47038         * modules/localcharset (Notice): New field.
47039         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47040         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47041
47042 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47043             Bruno Haible  <bruno@clisp.org>
47044
47045         Avoid using the syntax symbol() in formatted documentation.
47046         * MODULES.html.sh (func_module): When replacing symbol() with a
47047         hyperlink, remove the parentheses. Show an error if some remain.
47048         Recognize and render the '...' syntax.
47049         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47050         Rework. Add paragraph about GCC's inlining.
47051         * doc/alloca.texi: Likewise.
47052         * doc/error.texi: Remove parentheses from symbol reference.
47053         * doc/gnulib-intro.texi: Likewise.
47054         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47055         * modules/fnmatch (Description): Reword to say "the ... function".
47056         * modules/full-read (Description): Likewise.
47057         * modules/full-write (Description): Likewise.
47058         * modules/safe-read (Description): Likewise.
47059         * modules/safe-write (Description): Likewise.
47060         * modules/strchrnul (Description): Likewise.
47061         * modules/trim (Description): Likewise.
47062         * modules/error (Description): Remove parentheses from symbol
47063         references.
47064         * modules/verror (Description): Likewise.
47065         Reported by Karl Berry.
47066
47067 2007-12-25  Bruno Haible  <bruno@clisp.org>
47068
47069         Fixup after 2007-10-16 commit.
47070         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47071
47072 2007-12-24  Bruno Haible  <bruno@clisp.org>
47073
47074         Make --enable-relocatable work with DESTDIR.
47075         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47076         to compute installdir from destprog.
47077         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47078         also set the RELOC_DESTDIR variable.
47079         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47080
47081 2007-12-24  Bruno Haible  <bruno@clisp.org>
47082
47083         Fix link error due to xalloc_die().
47084         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47085         of xreadlink.
47086         * lib/relocwrapper.c: Update comments.
47087         * build-aux/install-reloc: Remove xreadlink.c from file list.
47088         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47089         xreadlink.c.
47090         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47091
47092 2007-12-24  Bruno Haible  <bruno@clisp.org>
47093
47094         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47095         * lib/setenv.h: Remove file.
47096         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47097         lib/setenv.h.
47098         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47099         (Depends-on): Add stdlib.
47100         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47101         gl_FUNC_UNSETENV.
47102         (Include): Replace setenv.h with <stdlib.h>.
47103         * modules/unsetenv: New file.
47104         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47105         * lib/unsetenv.c: Include <stdlib.h> first.
47106         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47107         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47108         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47109         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47110         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47111         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47113         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47114         * doc/functions/unsetenv.texi: Update.
47115         * modules/xsetenv (Depends-on): Add unsetenv.
47116         * modules/getdate (Depends-on): Likewise.
47117         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47118         * lib/xsetenv.c: Don't include setenv.h.
47119         * lib/getdate.y: Likewise.
47120         * lib/relocwrapper.c: Likewise.
47121         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47122         (Depends-on): Add stdlib.
47123         * NEWS: Mention the changes.
47124         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47125
47126 2007-12-23  Bruno Haible  <bruno@clisp.org>
47127
47128         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47129         indentation.
47130
47131 2007-12-23  Bruno Haible  <bruno@clisp.org>
47132
47133         * lib/c-strcasestr.c: Add more comments.
47134         * lib/c-strstr.c: Likewise.
47135         * lib/mbscasestr.c: Likewise.
47136         * lib/mbsstr.c: Likewise.
47137         * lib/strcasestr.c: Likewise.
47138         * lib/memmem.c: Likewise.
47139
47140 2007-12-23  Bruno Haible  <bruno@clisp.org>
47141
47142         * tests/test-memmem.c: Include <string.h> first.
47143
47144 2007-12-22  Bruno Haible  <bruno@clisp.org>
47145
47146         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47147         the contents of $testsbase.
47148         Reported by Ralf Wildenhues.
47149
47150 2007-12-22  Bruno Haible  <bruno@clisp.org>
47151
47152         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47153         two variables local_ldadd_before, local_ldadd_last.
47154
47155 2007-12-20  Eric Blake  <ebb9@byu.net>
47156
47157         Work around circular library issue when cross-compiling.
47158         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47159         that progname.o does not need to pull in rpl_memcmp.
47160
47161 2007-12-19  Eric Blake  <ebb9@byu.net>
47162
47163         Fix memmem to avoid O(n^2) worst-case complexity.
47164         * lib/memmem.c (knuth_morris_pratt): New function.
47165         (memmem): Use it if first few naive iterations fail.
47166         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47167         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47168         * modules/memchr (License): Likewise.
47169         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47170         malloca.
47171         * tests/test-memmem.c: Rewrite, borrowing ideas from
47172         test-mbsstr1.c; the old version wouldn't even compile!
47173         * modules/memmem-tests: New file.
47174         * lib/string.in.h (rpl_memmem): Add declaration.
47175         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47176         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47177         REPLACE_MEMMEM.
47178
47179 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47180
47181         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47182         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47183         before any system include files, and undef after them all.  This
47184         should fix a problem on VMS reported by John E. Malmberg in
47185         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47186
47187 2007-12-17  Eric Blake  <ebb9@byu.net>
47188
47189         Revert addition of verify, for BSD/OS.
47190         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47191         can't handle large files, for the sake of obsolete platforms.
47192         * modules/fseeko (Depends-on): Remove verify.
47193         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47194         * doc/functions/ftello.texi (ftello): Likewise.
47195         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47196         Reported by Larry Jones.
47197
47198 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47199
47200         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47201         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47202
47203 2007-12-17  Jim Meyering  <meyering@redhat.com>
47204
47205         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47206         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47207         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47208         * modules/getcwd (Depends-on): Add openat.
47209         Reported by Petr Salinger.
47210
47211 2007-12-17  Bruno Haible  <bruno@clisp.org>
47212
47213         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47214         avoid a segmentation fault of the configure test on x86_64 systems.
47215
47216 2007-12-15  Jim Meyering  <meyering@redhat.com>
47217
47218         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47219
47220 2007-12-13  Eric Blake  <ebb9@byu.net>
47221
47222         Another fseek test.
47223         * tests/test-fseek.c (main): Also test ungetc handling.
47224         * tests/test-fseeko.c (main): Likewise.
47225         * modules/fseeko (Depends-on): Add verify.
47226         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47227         large.
47228         Reported by Larry Jones.
47229
47230         Fix fseeko on mingw.
47231         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47232         seek.
47233
47234         Beef up fseek tests.
47235         * tests/test-fseek.c (main): Also test eof handling.
47236         * tests/test-fseeko.c (main): Likewise.
47237         Reported by Larry Jones.
47238
47239 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
47240
47241         Fix fseeko on BSD-based platforms.
47242         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
47243         successful seek.
47244
47245 2007-12-12  Eric Blake  <ebb9@byu.net>
47246
47247         Allow circular dependency of separate libtests.a
47248         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
47249         when use_libtests.
47250
47251 2007-12-11  Eric Blake  <ebb9@byu.net>
47252
47253         Fix bug with -0.0L in previous patch.
47254         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
47255         * tests/test-isnan.c (main): Also test on zeroes.
47256         * tests/test-isnanf.c (main): Likewise.
47257         * tests/test-isnanl.h (main): Likewise.
47258
47259         Detect pseudo-denormals on x86 even when cross-compiling.
47260         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
47261         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
47262         invalid bit patterns that happen to satisfy ==.
47263
47264         Avoid link failures with separate libtests.a.
47265         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
47266         last, to satisfy circular dependencies.
47267
47268 2007-12-11  Eric Blake  <ebb9@byu.net>
47269         and Bruno Haible  <bruno@clisp.org>
47270
47271         Fix OpenBSD 4.0 <float.h> handling of long double.
47272         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
47273         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
47274         * doc/headers/float.texi (float.h): Document OpenBSD bug.
47275
47276 2007-12-11  Jim Meyering  <meyering@redhat.com>
47277
47278         * users.txt: Add libvirt.
47279
47280         Support versions of autoconf prior to 2.59c.
47281         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
47282         if it is not already defined.
47283
47284 2007-12-09  Bruno Haible  <bruno@clisp.org>
47285
47286         Let 'gnulib-tool --import' collect sources needed for the tests in
47287         tests/ rather than in lib/.
47288         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
47289         argument. If true, add rules to generate libtests.a, and put libtests.a
47290         into $(LDADD). Consider source files in subdirectories and set
47291         uses_subdirs.
47292         (func_emit_initmacro_start, func_emit_initmacro_end,
47293         func_emit_initmacro_done): Pass all arguments explicitly.
47294         (func_import): Determine two module lists main_modules,
47295         testsrelated_modules. Determine use_libtests. Determine two variables
47296         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
47297         instead of just sed_transform_lib_file. Determine two variables
47298         main_files and testsrelated_files. Compute 'files' as the union of
47299         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
47300         func_add_or_update. In the generated gnulib-comp.m4, collect the
47301         object files for tests/ in different variables than those for lib/.
47302         Substitute LIBTESTS_LIBDEPS.
47303         (func_create_testdir): Combine the uses_subdirs results from
47304         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
47305
47306 2007-12-09  Bruno Haible  <bruno@clisp.org>
47307
47308         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
47309         the build-aux directory.
47310
47311 2007-12-09  Bruno Haible  <bruno@clisp.org>
47312
47313         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
47314         introduced on 2006-09-09.
47315
47316 2007-12-07  Jim Meyering  <meyering@redhat.com>
47317
47318         Let these macros work also with autoconf-2.59.
47319         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
47320         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
47321         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47322
47323 2007-12-06  Jim Meyering  <meyering@redhat.com>
47324
47325         Avoid a configure-time syntax error in gl_FUNC_ACL.
47326         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
47327         function in each branch, before testing the cache variable.
47328
47329 2007-12-04  Eric Blake  <ebb9@byu.net>
47330
47331         Make scripts executable.
47332         * build-aux/config.guess: Add execute permissions.
47333         * build-aux/config.sub: Likewise.
47334         * build-aux/gendocs.sh: Likewise.
47335
47336         Fix frexp on mingw.
47337         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47338         cross-compiling.
47339         * doc/functions/frexp.texi (frexp): Document the bug.
47340
47341         Make cygwin fseeko check more reliable.
47342         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47343         version numbers, rather than unrelated feature check.
47344         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47345         * doc/functions/ftello.texi (ftello): Likewise.
47346         Reported by Bruno Haible.
47347
47348         * m4/strerror.m4: Bump version number.
47349
47350 2007-12-03  Bruno Haible  <bruno@clisp.org>
47351
47352         * doc/functions/mprotect.texi: Mention the mingw problem.
47353
47354 2007-12-03  Eric Blake  <ebb9@byu.net>
47355
47356         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47357         REPLACE_STRERROR is initialized before this macro.
47358
47359 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47360
47361         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47362         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47363         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47364         put -lsec in even for programs other than 'ls'.  This fixes a problem
47365         for gettext reported by Bruno Haible in
47366         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47367         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47368         Add support for Solaris 10.  This isn't efficient, but should get the
47369         job done for now.
47370
47371 2007-12-03  James Youngman  <jay@gnu.org>
47372
47373         * doc/regexprops-generic.texi: change "an close-group" to "a
47374         close-group" and "illegal" to "not allowed".
47375
47376 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47377
47378         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47379         pr_byname.h. Needed for the rare case when the maintainer has done
47380         "make maintainer-clean" in the source directory and then attempts a
47381         build outside the source directory.
47382         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47383         scripts_byname.h.
47384
47385 2007-12-02  Martin Lambers <marlam@marlam.de>
47386             Bruno Haible  <bruno@clisp.org>
47387
47388         * lib/getpagesize.h: Remove file.
47389         * lib/unistd.in.h: Include declaration of getpagesize here.
47390         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47391         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47392         HAVE_SYS_PARAM_H.
47393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47394         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47395         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47396         (Depends-on): Add unistd.
47397         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47398         (Include): Use <unistd.h> instead of getpagesize.h.
47399         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47400         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47401         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
47402         gl_GETPAGESIZE invocation, already handled by module dependency.
47403         * lib/pagealign_alloc.c: Don't include getpagesize.h.
47404
47405 2007-12-02  Bruno Haible  <bruno@clisp.org>
47406
47407         * modules/strings-tests: New file.
47408         * tests/test-strings.c: New file.
47409
47410         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
47411         * lib/strings.in.h: New file.
47412         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
47413         * m4/strings_h.m4: New file.
47414         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
47415         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
47416         * modules/strings: New file.
47417         * modules/string (Makefile.am): Update.
47418         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
47419         Reported by Karl Berry.
47420
47421 2007-12-01  Eric Blake  <ebb9@byu.net>
47422
47423         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
47424         accomodate fix in cygwin 1.5.25.
47425
47426 2007-12-01  Jim Meyering  <meyering@redhat.com>
47427
47428         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
47429         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
47430         that would inhibit utf8-optimization of a regexp containing line-
47431         or buffer-anchors, e.g., `^', `$'.
47432
47433 2007-11-30  Bruno Haible  <bruno@clisp.org>
47434
47435         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
47436         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
47437         glthread_recursive_lock_init.
47438         * lib/lock.c (glthread_recursive_lock_init)
47439         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
47440         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47441
47442 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
47443
47444         New function qset_acl, like set_acl but with syscall semantics.
47445         * lib/acl.h (qset_acl): New decl.
47446         * lib/acl.c (qset_acl): New function.
47447         (set_acl): Use new function.  Use more-consistent diagnostics.
47448
47449 2007-11-28  Jim Meyering  <meyering@redhat.com>
47450
47451         * modules/physmem (License): Change from GPL to LGPLv2+.
47452
47453 2007-11-26  Bruno Haible  <bruno@clisp.org>
47454
47455         * lib/vasnprintf.c (decode_long_double): Don't abort if the
47456         'long double' type has excess precision.
47457         Reported by Jim Meyering in
47458         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
47459
47460 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47461
47462         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
47463         Sync from <http://gnu.org/licenses>.
47464         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
47465         with license text from same location.
47466         * doc/maintain.texi, doc/standards.texi:  Sync from
47467         <http://savannah.gnu.org/projects/gnustandards>.
47468
47469 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
47470         and Jim Meyering  <meyering@redhat.com>
47471
47472         Adjust getdate' grammar to accept a slightly more regular language.
47473         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
47474         Before, the former was rejected.
47475         * lib/getdate.y (digits_to_date_time): New function, factored
47476         out of ...
47477         (number): ...here.  Just call digits_to_date_time.
47478         (hybrid): New non-terminal to handle an <unsigned number,
47479         signed relative offset> sequence consistently.
47480
47481 2007-11-18  Jim Meyering  <meyering@redhat.com>
47482
47483         Pull my changes from coreutils:
47484         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
47485         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
47486         use of $gnulib_tool_option_extras, so that it's separated from the
47487         preceding argument.
47488
47489         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
47490         * build-aux/bootstrap (cp_mark_as_generated): Create any required
47491         parent destination directories before copying a file into place.
47492
47493 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47494
47495         bootstrap: work also with 4-argument variant of AC_INIT
47496         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
47497
47498 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47499
47500         Port test-getaddrinfo to Solaris.
47501         Problem reported by Bruno Haible in
47502         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
47503         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
47504         explanation of setting 'hints'.
47505         Don't reject an implementation merely because it returns EAI_SERVICE.
47506         (EAI_SERVICE): Define to 0 if not defined.
47507
47508 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47509
47510         The license of gnu-make and posix-shell is now "GPLed build tool".
47511         * modules/gnu-make (License): Likewise.
47512         * modules/posix-shell (License): Likewise.
47513
47514         New module posix-shell, for determining a POSIX shell
47515         or perhaps something that is close enough to a POSIX shell.
47516         * m4/posix-shell.m4: New file.
47517         * modules/posix-shell: New file.
47518
47519         * MODULES.html.sh: Mention new module.
47520
47521         New module gnu-make, for determining whether we're using GNU Make.
47522         * m4/gnu-make.m4: New file.
47523         * modules/gnu-make: New file.
47524         * MODULES.html.sh: Mention new module.
47525
47526 2007-11-14  Jim Meyering  <meyering@redhat.com>
47527
47528         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
47529         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
47530         use this macro to create a function _definition_.
47531         Remove useless "#undef ARGMATCH_DIE".
47532
47533 2007-11-14  Bruno Haible  <bruno@clisp.org>
47534
47535         * lib/config.charset: Update for OpenBSD 4.1.
47536         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
47537
47538 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
47539
47540         Document 64-bit #if problems in stdint.texi.
47541         * doc/headers/stdint.texi (stdint.h): Mention problems with
47542         64-bit-#if, and how to work around them.
47543
47544         Don't insist on 'long long int' support in the preprocessor.  It
47545         breaks too many things.  For example, PRIdMAX still uses a 'long
47546         long int' format with the latest Sun compiler, even though
47547         HAVE_LONG_LONG_INT isn't defined due to that compiler's
47548         preprocessor problem.  This causes the latest coreutils to dump
47549         core on Solaris 10 sparc with the Sun C compiler.
47550         Instead, fix the 2007-10-16 problem in a different way, by evaluating
47551         the troublesome expressions at configure-time, not at #if-time.
47552         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
47553         preprocessor.
47554         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
47555         compile-time C checks, done at 'configure'-time.
47556         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
47557         * modules/inttypes (Makefile): Substitute the new symbols that
47558         gl_INTTYPES_H now generates.
47559         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
47560
47561 2007-11-12  Bruno Haible  <bruno@clisp.org>
47562
47563         Tests for Unicode character classification functions.
47564
47565         * modules/unictype/bidicategory-byname-tests: New file.
47566         * modules/unictype/bidicategory-name-tests: New file.
47567         * modules/unictype/bidicategory-of-tests: New file.
47568         * modules/unictype/bidicategory-test-tests: New file.
47569         * modules/unictype/block-list-tests: New file.
47570         * modules/unictype/block-of-tests: New file.
47571         * modules/unictype/block-test-tests: New file.
47572         * modules/unictype/category-C-tests: New file.
47573         * modules/unictype/category-Cc-tests: New file.
47574         * modules/unictype/category-Cf-tests: New file.
47575         * modules/unictype/category-Cn-tests: New file.
47576         * modules/unictype/category-Co-tests: New file.
47577         * modules/unictype/category-Cs-tests: New file.
47578         * modules/unictype/category-L-tests: New file.
47579         * modules/unictype/category-Ll-tests: New file.
47580         * modules/unictype/category-Lm-tests: New file.
47581         * modules/unictype/category-Lo-tests: New file.
47582         * modules/unictype/category-Lt-tests: New file.
47583         * modules/unictype/category-Lu-tests: New file.
47584         * modules/unictype/category-M-tests: New file.
47585         * modules/unictype/category-Mc-tests: New file.
47586         * modules/unictype/category-Me-tests: New file.
47587         * modules/unictype/category-Mn-tests: New file.
47588         * modules/unictype/category-N-tests: New file.
47589         * modules/unictype/category-Nd-tests: New file.
47590         * modules/unictype/category-Nl-tests: New file.
47591         * modules/unictype/category-No-tests: New file.
47592         * modules/unictype/category-P-tests: New file.
47593         * modules/unictype/category-Pc-tests: New file.
47594         * modules/unictype/category-Pd-tests: New file.
47595         * modules/unictype/category-Pe-tests: New file.
47596         * modules/unictype/category-Pf-tests: New file.
47597         * modules/unictype/category-Pi-tests: New file.
47598         * modules/unictype/category-Po-tests: New file.
47599         * modules/unictype/category-Ps-tests: New file.
47600         * modules/unictype/category-S-tests: New file.
47601         * modules/unictype/category-Sc-tests: New file.
47602         * modules/unictype/category-Sk-tests: New file.
47603         * modules/unictype/category-Sm-tests: New file.
47604         * modules/unictype/category-So-tests: New file.
47605         * modules/unictype/category-Z-tests: New file.
47606         * modules/unictype/category-Zl-tests: New file.
47607         * modules/unictype/category-Zp-tests: New file.
47608         * modules/unictype/category-Zs-tests: New file.
47609         * modules/unictype/category-and-not-tests: New file.
47610         * modules/unictype/category-and-tests: New file.
47611         * modules/unictype/category-byname-tests: New file.
47612         * modules/unictype/category-name-tests: New file.
47613         * modules/unictype/category-none-tests: New file.
47614         * modules/unictype/category-of-tests: New file.
47615         * modules/unictype/category-or-tests: New file.
47616         * modules/unictype/category-test-withtable-tests: New file.
47617         * modules/unictype/combining-class-tests: New file.
47618         * modules/unictype/ctype-alnum-tests: New file.
47619         * modules/unictype/ctype-alpha-tests: New file.
47620         * modules/unictype/ctype-blank-tests: New file.
47621         * modules/unictype/ctype-cntrl-tests: New file.
47622         * modules/unictype/ctype-digit-tests: New file.
47623         * modules/unictype/ctype-graph-tests: New file.
47624         * modules/unictype/ctype-lower-tests: New file.
47625         * modules/unictype/ctype-print-tests: New file.
47626         * modules/unictype/ctype-punct-tests: New file.
47627         * modules/unictype/ctype-space-tests: New file.
47628         * modules/unictype/ctype-upper-tests: New file.
47629         * modules/unictype/ctype-xdigit-tests: New file.
47630         * modules/unictype/decimal-digit-tests: New file.
47631         * modules/unictype/digit-tests: New file.
47632         * modules/unictype/mirror-tests: New file.
47633         * modules/unictype/numeric-tests: New file.
47634         * modules/unictype/property-alphabetic-tests: New file.
47635         * modules/unictype/property-ascii-hex-digit-tests: New file.
47636         * modules/unictype/property-bidi-arabic-digit-tests: New file.
47637         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
47638         * modules/unictype/property-bidi-block-separator-tests: New file.
47639         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
47640         * modules/unictype/property-bidi-common-separator-tests: New file.
47641         * modules/unictype/property-bidi-control-tests: New file.
47642         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
47643         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
47644         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
47645         * modules/unictype/property-bidi-european-digit-tests: New file.
47646         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
47647         * modules/unictype/property-bidi-left-to-right-tests: New file.
47648         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
47649         * modules/unictype/property-bidi-other-neutral-tests: New file.
47650         * modules/unictype/property-bidi-pdf-tests: New file.
47651         * modules/unictype/property-bidi-segment-separator-tests: New file.
47652         * modules/unictype/property-bidi-whitespace-tests: New file.
47653         * modules/unictype/property-byname-tests: New file.
47654         * modules/unictype/property-combining-tests: New file.
47655         * modules/unictype/property-composite-tests: New file.
47656         * modules/unictype/property-currency-symbol-tests: New file.
47657         * modules/unictype/property-dash-tests: New file.
47658         * modules/unictype/property-decimal-digit-tests: New file.
47659         * modules/unictype/property-default-ignorable-code-point-tests: New file.
47660         * modules/unictype/property-deprecated-tests: New file.
47661         * modules/unictype/property-diacritic-tests: New file.
47662         * modules/unictype/property-extender-tests: New file.
47663         * modules/unictype/property-format-control-tests: New file.
47664         * modules/unictype/property-grapheme-base-tests: New file.
47665         * modules/unictype/property-grapheme-extend-tests: New file.
47666         * modules/unictype/property-grapheme-link-tests: New file.
47667         * modules/unictype/property-hex-digit-tests: New file.
47668         * modules/unictype/property-hyphen-tests: New file.
47669         * modules/unictype/property-id-continue-tests: New file.
47670         * modules/unictype/property-id-start-tests: New file.
47671         * modules/unictype/property-ideographic-tests: New file.
47672         * modules/unictype/property-ids-binary-operator-tests: New file.
47673         * modules/unictype/property-ids-trinary-operator-tests: New file.
47674         * modules/unictype/property-ignorable-control-tests: New file.
47675         * modules/unictype/property-iso-control-tests: New file.
47676         * modules/unictype/property-join-control-tests: New file.
47677         * modules/unictype/property-left-of-pair-tests: New file.
47678         * modules/unictype/property-line-separator-tests: New file.
47679         * modules/unictype/property-logical-order-exception-tests: New file.
47680         * modules/unictype/property-lowercase-tests: New file.
47681         * modules/unictype/property-math-tests: New file.
47682         * modules/unictype/property-non-break-tests: New file.
47683         * modules/unictype/property-not-a-character-tests: New file.
47684         * modules/unictype/property-numeric-tests: New file.
47685         * modules/unictype/property-other-alphabetic-tests: New file.
47686         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
47687         * modules/unictype/property-other-grapheme-extend-tests: New file.
47688         * modules/unictype/property-other-id-continue-tests: New file.
47689         * modules/unictype/property-other-id-start-tests: New file.
47690         * modules/unictype/property-other-lowercase-tests: New file.
47691         * modules/unictype/property-other-math-tests: New file.
47692         * modules/unictype/property-other-uppercase-tests: New file.
47693         * modules/unictype/property-paired-punctuation-tests: New file.
47694         * modules/unictype/property-paragraph-separator-tests: New file.
47695         * modules/unictype/property-pattern-syntax-tests: New file.
47696         * modules/unictype/property-pattern-white-space-tests: New file.
47697         * modules/unictype/property-private-use-tests: New file.
47698         * modules/unictype/property-punctuation-tests: New file.
47699         * modules/unictype/property-quotation-mark-tests: New file.
47700         * modules/unictype/property-radical-tests: New file.
47701         * modules/unictype/property-sentence-terminal-tests: New file.
47702         * modules/unictype/property-soft-dotted-tests: New file.
47703         * modules/unictype/property-space-tests: New file.
47704         * modules/unictype/property-terminal-punctuation-tests: New file.
47705         * modules/unictype/property-test-tests: New file.
47706         * modules/unictype/property-titlecase-tests: New file.
47707         * modules/unictype/property-unassigned-code-value-tests: New file.
47708         * modules/unictype/property-unified-ideograph-tests: New file.
47709         * modules/unictype/property-uppercase-tests: New file.
47710         * modules/unictype/property-variation-selector-tests: New file.
47711         * modules/unictype/property-white-space-tests: New file.
47712         * modules/unictype/property-xid-continue-tests: New file.
47713         * modules/unictype/property-xid-start-tests: New file.
47714         * modules/unictype/property-zero-width-tests: New file.
47715         * modules/unictype/scripts-tests: New file.
47716         * modules/unictype/syntax-c-ident-tests: New file.
47717         * modules/unictype/syntax-c-whitespace-tests: New file.
47718         * modules/unictype/syntax-java-ident-tests: New file.
47719         * modules/unictype/syntax-java-whitespace-tests: New file.
47720         * tests/unictype/test-bidi_byname.c: New file.
47721         * tests/unictype/test-bidi_name.c: New file.
47722         * tests/unictype/test-bidi_of.c: New file.
47723         * tests/unictype/test-bidi_test.c: New file.
47724         * tests/unictype/test-block_list.c: New file.
47725         * tests/unictype/test-block_of.c: New file.
47726         * tests/unictype/test-block_test.c: New file.
47727         * tests/unictype/test-categ_and.c: New file.
47728         * tests/unictype/test-categ_and_not.c: New file.
47729         * tests/unictype/test-categ_byname.c: New file.
47730         * tests/unictype/test-categ_name.c: New file.
47731         * tests/unictype/test-categ_none.c: New file.
47732         * tests/unictype/test-categ_of.c: New file.
47733         * tests/unictype/test-categ_or.c: New file.
47734         * tests/unictype/test-categ_test_withtable.c: New file.
47735         * tests/unictype/test-combining.c: New file.
47736         * tests/unictype/test-decdigit.c: New file.
47737         * tests/unictype/test-digit.c: New file.
47738         * tests/unictype/test-mirror.c: New file.
47739         * tests/unictype/test-numeric.c: New file.
47740         * tests/unictype/test-pr_byname.c: New file.
47741         * tests/unictype/test-pr_test.c: New file.
47742         * tests/unictype/test-predicate-part1.h: New file.
47743         * tests/unictype/test-predicate-part2.h: New file.
47744         * tests/unictype/test-scripts.c: New file.
47745         * tests/unictype/test-sy_c_ident.c: New file.
47746         * tests/unictype/test-sy_java_ident.c: New file.
47747
47748         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
47749         for Unicode 5.0.0.
47750         * tests/unictype/test-categ_Cc.c: Likewise.
47751         * tests/unictype/test-categ_Cf.c: Likewise.
47752         * tests/unictype/test-categ_Cn.c: Likewise.
47753         * tests/unictype/test-categ_Co.c: Likewise.
47754         * tests/unictype/test-categ_Cs.c: Likewise.
47755         * tests/unictype/test-categ_L.c: Likewise.
47756         * tests/unictype/test-categ_Ll.c: Likewise.
47757         * tests/unictype/test-categ_Lm.c: Likewise.
47758         * tests/unictype/test-categ_Lo.c: Likewise.
47759         * tests/unictype/test-categ_Lt.c: Likewise.
47760         * tests/unictype/test-categ_Lu.c: Likewise.
47761         * tests/unictype/test-categ_M.c: Likewise.
47762         * tests/unictype/test-categ_Mc.c: Likewise.
47763         * tests/unictype/test-categ_Me.c: Likewise.
47764         * tests/unictype/test-categ_Mn.c: Likewise.
47765         * tests/unictype/test-categ_N.c: Likewise.
47766         * tests/unictype/test-categ_Nd.c: Likewise.
47767         * tests/unictype/test-categ_Nl.c: Likewise.
47768         * tests/unictype/test-categ_No.c: Likewise.
47769         * tests/unictype/test-categ_P.c: Likewise.
47770         * tests/unictype/test-categ_Pc.c: Likewise.
47771         * tests/unictype/test-categ_Pd.c: Likewise.
47772         * tests/unictype/test-categ_Pe.c: Likewise.
47773         * tests/unictype/test-categ_Pf.c: Likewise.
47774         * tests/unictype/test-categ_Pi.c: Likewise.
47775         * tests/unictype/test-categ_Po.c: Likewise.
47776         * tests/unictype/test-categ_Ps.c: Likewise.
47777         * tests/unictype/test-categ_S.c: Likewise.
47778         * tests/unictype/test-categ_Sc.c: Likewise.
47779         * tests/unictype/test-categ_Sk.c: Likewise.
47780         * tests/unictype/test-categ_Sm.c: Likewise.
47781         * tests/unictype/test-categ_So.c: Likewise.
47782         * tests/unictype/test-categ_Z.c: Likewise.
47783         * tests/unictype/test-categ_Zl.c: Likewise.
47784         * tests/unictype/test-categ_Zp.c: Likewise.
47785         * tests/unictype/test-categ_Zs.c: Likewise.
47786         * tests/unictype/test-ctype_alnum.c: Likewise.
47787         * tests/unictype/test-ctype_alpha.c: Likewise.
47788         * tests/unictype/test-ctype_blank.c: Likewise.
47789         * tests/unictype/test-ctype_cntrl.c: Likewise.
47790         * tests/unictype/test-ctype_digit.c: Likewise.
47791         * tests/unictype/test-ctype_graph.c: Likewise.
47792         * tests/unictype/test-ctype_lower.c: Likewise.
47793         * tests/unictype/test-ctype_print.c: Likewise.
47794         * tests/unictype/test-ctype_punct.c: Likewise.
47795         * tests/unictype/test-ctype_space.c: Likewise.
47796         * tests/unictype/test-ctype_upper.c: Likewise.
47797         * tests/unictype/test-ctype_xdigit.c: Likewise.
47798         * tests/unictype/test-decdigit.h: Likewise.
47799         * tests/unictype/test-digit.h: Likewise.
47800         * tests/unictype/test-numeric.h: Likewise.
47801         * tests/unictype/test-pr_alphabetic.c: Likewise.
47802         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
47803         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
47804         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
47805         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
47806         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
47807         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
47808         * tests/unictype/test-pr_bidi_control.c: Likewise.
47809         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
47810         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
47811         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
47812         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
47813         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
47814         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
47815         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
47816         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
47817         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
47818         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
47819         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
47820         * tests/unictype/test-pr_combining.c: Likewise.
47821         * tests/unictype/test-pr_composite.c: Likewise.
47822         * tests/unictype/test-pr_currency_symbol.c: Likewise.
47823         * tests/unictype/test-pr_dash.c: Likewise.
47824         * tests/unictype/test-pr_decimal_digit.c: Likewise.
47825         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
47826         * tests/unictype/test-pr_deprecated.c: Likewise.
47827         * tests/unictype/test-pr_diacritic.c: Likewise.
47828         * tests/unictype/test-pr_extender.c: Likewise.
47829         * tests/unictype/test-pr_format_control.c: Likewise.
47830         * tests/unictype/test-pr_grapheme_base.c: Likewise.
47831         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
47832         * tests/unictype/test-pr_grapheme_link.c: Likewise.
47833         * tests/unictype/test-pr_hex_digit.c: Likewise.
47834         * tests/unictype/test-pr_hyphen.c: Likewise.
47835         * tests/unictype/test-pr_id_continue.c: Likewise.
47836         * tests/unictype/test-pr_id_start.c: Likewise.
47837         * tests/unictype/test-pr_ideographic.c: Likewise.
47838         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
47839         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
47840         * tests/unictype/test-pr_ignorable_control.c: Likewise.
47841         * tests/unictype/test-pr_iso_control.c: Likewise.
47842         * tests/unictype/test-pr_join_control.c: Likewise.
47843         * tests/unictype/test-pr_left_of_pair.c: Likewise.
47844         * tests/unictype/test-pr_line_separator.c: Likewise.
47845         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
47846         * tests/unictype/test-pr_lowercase.c: Likewise.
47847         * tests/unictype/test-pr_math.c: Likewise.
47848         * tests/unictype/test-pr_non_break.c: Likewise.
47849         * tests/unictype/test-pr_not_a_character.c: Likewise.
47850         * tests/unictype/test-pr_numeric.c: Likewise.
47851         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
47852         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
47853         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
47854         * tests/unictype/test-pr_other_id_continue.c: Likewise.
47855         * tests/unictype/test-pr_other_id_start.c: Likewise.
47856         * tests/unictype/test-pr_other_lowercase.c: Likewise.
47857         * tests/unictype/test-pr_other_math.c: Likewise.
47858         * tests/unictype/test-pr_other_uppercase.c: Likewise.
47859         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
47860         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
47861         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
47862         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
47863         * tests/unictype/test-pr_private_use.c: Likewise.
47864         * tests/unictype/test-pr_punctuation.c: Likewise.
47865         * tests/unictype/test-pr_quotation_mark.c: Likewise.
47866         * tests/unictype/test-pr_radical.c: Likewise.
47867         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
47868         * tests/unictype/test-pr_soft_dotted.c: Likewise.
47869         * tests/unictype/test-pr_space.c: Likewise.
47870         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
47871         * tests/unictype/test-pr_titlecase.c: Likewise.
47872         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
47873         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
47874         * tests/unictype/test-pr_uppercase.c: Likewise.
47875         * tests/unictype/test-pr_variation_selector.c: Likewise.
47876         * tests/unictype/test-pr_white_space.c: Likewise.
47877         * tests/unictype/test-pr_xid_continue.c: Likewise.
47878         * tests/unictype/test-pr_xid_start.c: Likewise.
47879         * tests/unictype/test-pr_zero_width.c: Likewise.
47880         * tests/unictype/test-sy_c_whitespace.c: Likewise.
47881         * tests/unictype/test-sy_java_whitespace.c: Likewise.
47882
47883 2007-11-12  Bruno Haible  <bruno@clisp.org>
47884
47885         Unicode character classification functions.
47886         * lib/unictype.h: New file.
47887         * modules/unictype/base: New file.
47888         * modules/unictype/category-L: New file.
47889         * modules/unictype/category-Lu: New file.
47890         * modules/unictype/category-Ll: New file.
47891         * modules/unictype/category-Lt: New file.
47892         * modules/unictype/category-Lm: New file.
47893         * modules/unictype/category-Lo: New file.
47894         * modules/unictype/category-M: New file.
47895         * modules/unictype/category-Mn: New file.
47896         * modules/unictype/category-Mc: New file.
47897         * modules/unictype/category-Me: New file.
47898         * modules/unictype/category-N: New file.
47899         * modules/unictype/category-Nd: New file.
47900         * modules/unictype/category-Nl: New file.
47901         * modules/unictype/category-No: New file.
47902         * modules/unictype/category-P: New file.
47903         * modules/unictype/category-Pc: New file.
47904         * modules/unictype/category-Pd: New file.
47905         * modules/unictype/category-Ps: New file.
47906         * modules/unictype/category-Pe: New file.
47907         * modules/unictype/category-Pi: New file.
47908         * modules/unictype/category-Pf: New file.
47909         * modules/unictype/category-Po: New file.
47910         * modules/unictype/category-S: New file.
47911         * modules/unictype/category-Sm: New file.
47912         * modules/unictype/category-Sc: New file.
47913         * modules/unictype/category-Sk: New file.
47914         * modules/unictype/category-So: New file.
47915         * modules/unictype/category-Z: New file.
47916         * modules/unictype/category-Zs: New file.
47917         * modules/unictype/category-Zl: New file.
47918         * modules/unictype/category-Zp: New file.
47919         * modules/unictype/category-C: New file.
47920         * modules/unictype/category-Cc: New file.
47921         * modules/unictype/category-Cf: New file.
47922         * modules/unictype/category-Cs: New file.
47923         * modules/unictype/category-Co: New file.
47924         * modules/unictype/category-Cn: New file.
47925         * modules/unictype/category-or: New file.
47926         * modules/unictype/category-of: New file.
47927         * modules/unictype/category-test: New file.
47928         * modules/unictype/category-test-withtable: New file.
47929         * modules/unictype/category-byname: New file.
47930         * modules/unictype/category-none: New file.
47931         * modules/unictype/category-and: New file.
47932         * modules/unictype/category-and-not: New file.
47933         * modules/unictype/category-name: New file.
47934         * modules/unictype/combining-class: New file.
47935         * modules/unictype/category-all: New file.
47936         * modules/unictype/bidicategory-all: New file.
47937         * modules/unictype/bidicategory-byname: New file.
47938         * modules/unictype/bidicategory-name: New file.
47939         * modules/unictype/bidicategory-of: New file.
47940         * modules/unictype/bidicategory-test: New file.
47941         * modules/unictype/decimal-digit: New file.
47942         * modules/unictype/digit: New file.
47943         * modules/unictype/numeric: New file.
47944         * modules/unictype/mirror: New file.
47945         * modules/unictype/property-white-space: New file.
47946         * modules/unictype/property-alphabetic: New file.
47947         * modules/unictype/property-other-alphabetic: New file.
47948         * modules/unictype/property-not-a-character: New file.
47949         * modules/unictype/property-default-ignorable-code-point: New file.
47950         * modules/unictype/property-other-default-ignorable-code-point: New
47951         file.
47952         * modules/unictype/property-deprecated: New file.
47953         * modules/unictype/property-logical-order-exception: New file.
47954         * modules/unictype/property-variation-selector: New file.
47955         * modules/unictype/property-private-use: New file.
47956         * modules/unictype/property-unassigned-code-value: New file.
47957         * modules/unictype/property-uppercase: New file.
47958         * modules/unictype/property-other-uppercase: New file.
47959         * modules/unictype/property-lowercase: New file.
47960         * modules/unictype/property-other-lowercase: New file.
47961         * modules/unictype/property-titlecase: New file.
47962         * modules/unictype/property-soft-dotted: New file.
47963         * modules/unictype/property-id-start: New file.
47964         * modules/unictype/property-other-id-start: New file.
47965         * modules/unictype/property-id-continue: New file.
47966         * modules/unictype/property-other-id-continue: New file.
47967         * modules/unictype/property-xid-start: New file.
47968         * modules/unictype/property-xid-continue: New file.
47969         * modules/unictype/property-pattern-white-space: New file.
47970         * modules/unictype/property-pattern-syntax: New file.
47971         * modules/unictype/property-join-control: New file.
47972         * modules/unictype/property-grapheme-base: New file.
47973         * modules/unictype/property-grapheme-extend: New file.
47974         * modules/unictype/property-other-grapheme-extend: New file.
47975         * modules/unictype/property-grapheme-link: New file.
47976         * modules/unictype/property-bidi-control: New file.
47977         * modules/unictype/property-bidi-left-to-right: New file.
47978         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
47979         * modules/unictype/property-bidi-arabic-right-to-left: New file.
47980         * modules/unictype/property-bidi-european-digit: New file.
47981         * modules/unictype/property-bidi-eur-num-separator: New file.
47982         * modules/unictype/property-bidi-eur-num-terminator: New file.
47983         * modules/unictype/property-bidi-arabic-digit: New file.
47984         * modules/unictype/property-bidi-common-separator: New file.
47985         * modules/unictype/property-bidi-block-separator: New file.
47986         * modules/unictype/property-bidi-segment-separator: New file.
47987         * modules/unictype/property-bidi-whitespace: New file.
47988         * modules/unictype/property-bidi-non-spacing-mark: New file.
47989         * modules/unictype/property-bidi-boundary-neutral: New file.
47990         * modules/unictype/property-bidi-pdf: New file.
47991         * modules/unictype/property-bidi-embedding-or-override: New file.
47992         * modules/unictype/property-bidi-other-neutral: New file.
47993         * modules/unictype/property-hex-digit: New file.
47994         * modules/unictype/property-ascii-hex-digit: New file.
47995         * modules/unictype/property-ideographic: New file.
47996         * modules/unictype/property-unified-ideograph: New file.
47997         * modules/unictype/property-radical: New file.
47998         * modules/unictype/property-ids-binary-operator: New file.
47999         * modules/unictype/property-ids-trinary-operator: New file.
48000         * modules/unictype/property-zero-width: New file.
48001         * modules/unictype/property-space: New file.
48002         * modules/unictype/property-non-break: New file.
48003         * modules/unictype/property-iso-control: New file.
48004         * modules/unictype/property-format-control: New file.
48005         * modules/unictype/property-dash: New file.
48006         * modules/unictype/property-hyphen: New file.
48007         * modules/unictype/property-punctuation: New file.
48008         * modules/unictype/property-line-separator: New file.
48009         * modules/unictype/property-paragraph-separator: New file.
48010         * modules/unictype/property-quotation-mark: New file.
48011         * modules/unictype/property-sentence-terminal: New file.
48012         * modules/unictype/property-terminal-punctuation: New file.
48013         * modules/unictype/property-currency-symbol: New file.
48014         * modules/unictype/property-math: New file.
48015         * modules/unictype/property-other-math: New file.
48016         * modules/unictype/property-paired-punctuation: New file.
48017         * modules/unictype/property-left-of-pair: New file.
48018         * modules/unictype/property-combining: New file.
48019         * modules/unictype/property-composite: New file.
48020         * modules/unictype/property-decimal-digit: New file.
48021         * modules/unictype/property-numeric: New file.
48022         * modules/unictype/property-diacritic: New file.
48023         * modules/unictype/property-extender: New file.
48024         * modules/unictype/property-ignorable-control: New file.
48025         * modules/unictype/property-test: New file.
48026         * modules/unictype/property-byname: New file.
48027         * modules/unictype/property-all: New file.
48028         * modules/unictype/scripts: New file.
48029         * modules/unictype/scripts-all: New file.
48030         * modules/unictype/block-of: New file.
48031         * modules/unictype/block-test: New file.
48032         * modules/unictype/block-list: New file.
48033         * modules/unictype/block-all: New file.
48034         * modules/unictype/syntax-c-whitespace: New file.
48035         * modules/unictype/syntax-java-whitespace: New file.
48036         * modules/unictype/syntax-c-ident: New file.
48037         * modules/unictype/syntax-java-ident: New file.
48038         * modules/unictype/ctype-alnum: New file.
48039         * modules/unictype/ctype-alpha: New file.
48040         * modules/unictype/ctype-cntrl: New file.
48041         * modules/unictype/ctype-digit: New file.
48042         * modules/unictype/ctype-graph: New file.
48043         * modules/unictype/ctype-lower: New file.
48044         * modules/unictype/ctype-print: New file.
48045         * modules/unictype/ctype-punct: New file.
48046         * modules/unictype/ctype-space: New file.
48047         * modules/unictype/ctype-upper: New file.
48048         * modules/unictype/ctype-xdigit: New file.
48049         * modules/unictype/ctype-blank: New file.
48050         * lib/unictype/bidi_byname.c: New file.
48051         * lib/unictype/bidi_name.c: New file.
48052         * lib/unictype/bidi_of.c: New file.
48053         * lib/unictype/bidi_test.c: New file.
48054         * lib/unictype/bitmap.h: New file.
48055         * lib/unictype/block_test.c: New file.
48056         * lib/unictype/blocks.c: New file.
48057         * lib/unictype/categ_C.c: New file.
48058         * lib/unictype/categ_Cc.c: New file.
48059         * lib/unictype/categ_Cf.c: New file.
48060         * lib/unictype/categ_Cn.c: New file.
48061         * lib/unictype/categ_Co.c: New file.
48062         * lib/unictype/categ_Cs.c: New file.
48063         * lib/unictype/categ_L.c: New file.
48064         * lib/unictype/categ_Ll.c: New file.
48065         * lib/unictype/categ_Lm.c: New file.
48066         * lib/unictype/categ_Lo.c: New file.
48067         * lib/unictype/categ_Lt.c: New file.
48068         * lib/unictype/categ_Lu.c: New file.
48069         * lib/unictype/categ_M.c: New file.
48070         * lib/unictype/categ_Mc.c: New file.
48071         * lib/unictype/categ_Me.c: New file.
48072         * lib/unictype/categ_Mn.c: New file.
48073         * lib/unictype/categ_N.c: New file.
48074         * lib/unictype/categ_Nd.c: New file.
48075         * lib/unictype/categ_Nl.c: New file.
48076         * lib/unictype/categ_No.c: New file.
48077         * lib/unictype/categ_P.c: New file.
48078         * lib/unictype/categ_Pc.c: New file.
48079         * lib/unictype/categ_Pd.c: New file.
48080         * lib/unictype/categ_Pe.c: New file.
48081         * lib/unictype/categ_Pf.c: New file.
48082         * lib/unictype/categ_Pi.c: New file.
48083         * lib/unictype/categ_Po.c: New file.
48084         * lib/unictype/categ_Ps.c: New file.
48085         * lib/unictype/categ_S.c: New file.
48086         * lib/unictype/categ_Sc.c: New file.
48087         * lib/unictype/categ_Sk.c: New file.
48088         * lib/unictype/categ_Sm.c: New file.
48089         * lib/unictype/categ_So.c: New file.
48090         * lib/unictype/categ_Z.c: New file.
48091         * lib/unictype/categ_Zl.c: New file.
48092         * lib/unictype/categ_Zp.c: New file.
48093         * lib/unictype/categ_Zs.c: New file.
48094         * lib/unictype/categ_and.c: New file.
48095         * lib/unictype/categ_and_not.c: New file.
48096         * lib/unictype/categ_byname.c: New file.
48097         * lib/unictype/categ_name.c: New file.
48098         * lib/unictype/categ_none.c: New file.
48099         * lib/unictype/categ_of.c: New file.
48100         * lib/unictype/categ_or.c: New file.
48101         * lib/unictype/categ_test.c: New file.
48102         * lib/unictype/combining.c: New file.
48103         * lib/unictype/ctype_alnum.c: New file.
48104         * lib/unictype/ctype_alpha.c: New file.
48105         * lib/unictype/ctype_blank.c: New file.
48106         * lib/unictype/ctype_cntrl.c: New file.
48107         * lib/unictype/ctype_digit.c: New file.
48108         * lib/unictype/ctype_graph.c: New file.
48109         * lib/unictype/ctype_lower.c: New file.
48110         * lib/unictype/ctype_print.c: New file.
48111         * lib/unictype/ctype_punct.c: New file.
48112         * lib/unictype/ctype_space.c: New file.
48113         * lib/unictype/ctype_upper.c: New file.
48114         * lib/unictype/ctype_xdigit.c: New file.
48115         * lib/unictype/decdigit.c: New file.
48116         * lib/unictype/digit.c: New file.
48117         * lib/unictype/identsyntaxmap.h: New file.
48118         * lib/unictype/mirror.c: New file.
48119         * lib/unictype/numeric.c: New file.
48120         * lib/unictype/pr_alphabetic.c: New file.
48121         * lib/unictype/pr_ascii_hex_digit.c: New file.
48122         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48123         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48124         * lib/unictype/pr_bidi_block_separator.c: New file.
48125         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48126         * lib/unictype/pr_bidi_common_separator.c: New file.
48127         * lib/unictype/pr_bidi_control.c: New file.
48128         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48129         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48130         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48131         * lib/unictype/pr_bidi_european_digit.c: New file.
48132         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48133         * lib/unictype/pr_bidi_left_to_right.c: New file.
48134         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48135         * lib/unictype/pr_bidi_other_neutral.c: New file.
48136         * lib/unictype/pr_bidi_pdf.c: New file.
48137         * lib/unictype/pr_bidi_segment_separator.c: New file.
48138         * lib/unictype/pr_bidi_whitespace.c: New file.
48139         * lib/unictype/pr_byname.c: New file.
48140         * lib/unictype/pr_byname.gperf: New file.
48141         * lib/unictype/pr_combining.c: New file.
48142         * lib/unictype/pr_composite.c: New file.
48143         * lib/unictype/pr_currency_symbol.c: New file.
48144         * lib/unictype/pr_dash.c: New file.
48145         * lib/unictype/pr_decimal_digit.c: New file.
48146         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48147         * lib/unictype/pr_deprecated.c: New file.
48148         * lib/unictype/pr_diacritic.c: New file.
48149         * lib/unictype/pr_extender.c: New file.
48150         * lib/unictype/pr_format_control.c: New file.
48151         * lib/unictype/pr_grapheme_base.c: New file.
48152         * lib/unictype/pr_grapheme_extend.c: New file.
48153         * lib/unictype/pr_grapheme_link.c: New file.
48154         * lib/unictype/pr_hex_digit.c: New file.
48155         * lib/unictype/pr_hyphen.c: New file.
48156         * lib/unictype/pr_id_continue.c: New file.
48157         * lib/unictype/pr_id_start.c: New file.
48158         * lib/unictype/pr_ideographic.c: New file.
48159         * lib/unictype/pr_ids_binary_operator.c: New file.
48160         * lib/unictype/pr_ids_trinary_operator.c: New file.
48161         * lib/unictype/pr_ignorable_control.c: New file.
48162         * lib/unictype/pr_iso_control.c: New file.
48163         * lib/unictype/pr_join_control.c: New file.
48164         * lib/unictype/pr_left_of_pair.c: New file.
48165         * lib/unictype/pr_line_separator.c: New file.
48166         * lib/unictype/pr_logical_order_exception.c: New file.
48167         * lib/unictype/pr_lowercase.c: New file.
48168         * lib/unictype/pr_math.c: New file.
48169         * lib/unictype/pr_non_break.c: New file.
48170         * lib/unictype/pr_not_a_character.c: New file.
48171         * lib/unictype/pr_numeric.c: New file.
48172         * lib/unictype/pr_other_alphabetic.c: New file.
48173         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48174         * lib/unictype/pr_other_grapheme_extend.c: New file.
48175         * lib/unictype/pr_other_id_continue.c: New file.
48176         * lib/unictype/pr_other_id_start.c: New file.
48177         * lib/unictype/pr_other_lowercase.c: New file.
48178         * lib/unictype/pr_other_math.c: New file.
48179         * lib/unictype/pr_other_uppercase.c: New file.
48180         * lib/unictype/pr_paired_punctuation.c: New file.
48181         * lib/unictype/pr_paragraph_separator.c: New file.
48182         * lib/unictype/pr_pattern_syntax.c: New file.
48183         * lib/unictype/pr_pattern_white_space.c: New file.
48184         * lib/unictype/pr_private_use.c: New file.
48185         * lib/unictype/pr_punctuation.c: New file.
48186         * lib/unictype/pr_quotation_mark.c: New file.
48187         * lib/unictype/pr_radical.c: New file.
48188         * lib/unictype/pr_sentence_terminal.c: New file.
48189         * lib/unictype/pr_soft_dotted.c: New file.
48190         * lib/unictype/pr_space.c: New file.
48191         * lib/unictype/pr_terminal_punctuation.c: New file.
48192         * lib/unictype/pr_test.c: New file.
48193         * lib/unictype/pr_titlecase.c: New file.
48194         * lib/unictype/pr_unassigned_code_value.c: New file.
48195         * lib/unictype/pr_unified_ideograph.c: New file.
48196         * lib/unictype/pr_uppercase.c: New file.
48197         * lib/unictype/pr_variation_selector.c: New file.
48198         * lib/unictype/pr_white_space.c: New file.
48199         * lib/unictype/pr_xid_continue.c: New file.
48200         * lib/unictype/pr_xid_start.c: New file.
48201         * lib/unictype/pr_zero_width.c: New file.
48202         * lib/unictype/scripts.c: New file.
48203         * lib/unictype/sy_c_ident.c: New file.
48204         * lib/unictype/sy_c_whitespace.c: New file.
48205         * lib/unictype/sy_java_ident.c: New file.
48206         * lib/unictype/sy_java_whitespace.c: New file.
48207
48208         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48209         Unicode 5.0.0.
48210         * lib/unictype/blocks.h: Likewise.
48211         * lib/unictype/categ_C.h: Likewise.
48212         * lib/unictype/categ_Cc.h: Likewise.
48213         * lib/unictype/categ_Cf.h: Likewise.
48214         * lib/unictype/categ_Cn.h: Likewise.
48215         * lib/unictype/categ_Co.h: Likewise.
48216         * lib/unictype/categ_Cs.h: Likewise.
48217         * lib/unictype/categ_L.h: Likewise.
48218         * lib/unictype/categ_Ll.h: Likewise.
48219         * lib/unictype/categ_Lm.h: Likewise.
48220         * lib/unictype/categ_Lo.h: Likewise.
48221         * lib/unictype/categ_Lt.h: Likewise.
48222         * lib/unictype/categ_Lu.h: Likewise.
48223         * lib/unictype/categ_M.h: Likewise.
48224         * lib/unictype/categ_Mc.h: Likewise.
48225         * lib/unictype/categ_Me.h: Likewise.
48226         * lib/unictype/categ_Mn.h: Likewise.
48227         * lib/unictype/categ_N.h: Likewise.
48228         * lib/unictype/categ_Nd.h: Likewise.
48229         * lib/unictype/categ_Nl.h: Likewise.
48230         * lib/unictype/categ_No.h: Likewise.
48231         * lib/unictype/categ_P.h: Likewise.
48232         * lib/unictype/categ_Pc.h: Likewise.
48233         * lib/unictype/categ_Pd.h: Likewise.
48234         * lib/unictype/categ_Pe.h: Likewise.
48235         * lib/unictype/categ_Pf.h: Likewise.
48236         * lib/unictype/categ_Pi.h: Likewise.
48237         * lib/unictype/categ_Po.h: Likewise.
48238         * lib/unictype/categ_Ps.h: Likewise.
48239         * lib/unictype/categ_S.h: Likewise.
48240         * lib/unictype/categ_Sc.h: Likewise.
48241         * lib/unictype/categ_Sk.h: Likewise.
48242         * lib/unictype/categ_Sm.h: Likewise.
48243         * lib/unictype/categ_So.h: Likewise.
48244         * lib/unictype/categ_Z.h: Likewise.
48245         * lib/unictype/categ_Zl.h: Likewise.
48246         * lib/unictype/categ_Zp.h: Likewise.
48247         * lib/unictype/categ_Zs.h: Likewise.
48248         * lib/unictype/categ_of.h: Likewise.
48249         * lib/unictype/combining.h: Likewise.
48250         * lib/unictype/ctype_alnum.h: Likewise.
48251         * lib/unictype/ctype_alpha.h: Likewise.
48252         * lib/unictype/ctype_blank.h: Likewise.
48253         * lib/unictype/ctype_cntrl.h: Likewise.
48254         * lib/unictype/ctype_digit.h: Likewise.
48255         * lib/unictype/ctype_graph.h: Likewise.
48256         * lib/unictype/ctype_lower.h: Likewise.
48257         * lib/unictype/ctype_print.h: Likewise.
48258         * lib/unictype/ctype_punct.h: Likewise.
48259         * lib/unictype/ctype_space.h: Likewise.
48260         * lib/unictype/ctype_upper.h: Likewise.
48261         * lib/unictype/ctype_xdigit.h: Likewise.
48262         * lib/unictype/decdigit.h: Likewise.
48263         * lib/unictype/digit.h: Likewise.
48264         * lib/unictype/mirror.h: Likewise.
48265         * lib/unictype/numeric.h: Likewise.
48266         * lib/unictype/pr_alphabetic.h: Likewise.
48267         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
48268         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
48269         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
48270         * lib/unictype/pr_bidi_block_separator.h: Likewise.
48271         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
48272         * lib/unictype/pr_bidi_common_separator.h: Likewise.
48273         * lib/unictype/pr_bidi_control.h: Likewise.
48274         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
48275         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
48276         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
48277         * lib/unictype/pr_bidi_european_digit.h: Likewise.
48278         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
48279         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
48280         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
48281         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
48282         * lib/unictype/pr_bidi_pdf.h: Likewise.
48283         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
48284         * lib/unictype/pr_bidi_whitespace.h: Likewise.
48285         * lib/unictype/pr_combining.h: Likewise.
48286         * lib/unictype/pr_composite.h: Likewise.
48287         * lib/unictype/pr_currency_symbol.h: Likewise.
48288         * lib/unictype/pr_dash.h: Likewise.
48289         * lib/unictype/pr_decimal_digit.h: Likewise.
48290         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
48291         * lib/unictype/pr_deprecated.h: Likewise.
48292         * lib/unictype/pr_diacritic.h: Likewise.
48293         * lib/unictype/pr_extender.h: Likewise.
48294         * lib/unictype/pr_format_control.h: Likewise.
48295         * lib/unictype/pr_grapheme_base.h: Likewise.
48296         * lib/unictype/pr_grapheme_extend.h: Likewise.
48297         * lib/unictype/pr_grapheme_link.h: Likewise.
48298         * lib/unictype/pr_hex_digit.h: Likewise.
48299         * lib/unictype/pr_hyphen.h: Likewise.
48300         * lib/unictype/pr_id_continue.h: Likewise.
48301         * lib/unictype/pr_id_start.h: Likewise.
48302         * lib/unictype/pr_ideographic.h: Likewise.
48303         * lib/unictype/pr_ids_binary_operator.h: Likewise.
48304         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
48305         * lib/unictype/pr_ignorable_control.h: Likewise.
48306         * lib/unictype/pr_iso_control.h: Likewise.
48307         * lib/unictype/pr_join_control.h: Likewise.
48308         * lib/unictype/pr_left_of_pair.h: Likewise.
48309         * lib/unictype/pr_line_separator.h: Likewise.
48310         * lib/unictype/pr_logical_order_exception.h: Likewise.
48311         * lib/unictype/pr_lowercase.h: Likewise.
48312         * lib/unictype/pr_math.h: Likewise.
48313         * lib/unictype/pr_non_break.h: Likewise.
48314         * lib/unictype/pr_not_a_character.h: Likewise.
48315         * lib/unictype/pr_numeric.h: Likewise.
48316         * lib/unictype/pr_other_alphabetic.h: Likewise.
48317         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
48318         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
48319         * lib/unictype/pr_other_id_continue.h: Likewise.
48320         * lib/unictype/pr_other_id_start.h: Likewise.
48321         * lib/unictype/pr_other_lowercase.h: Likewise.
48322         * lib/unictype/pr_other_math.h: Likewise.
48323         * lib/unictype/pr_other_uppercase.h: Likewise.
48324         * lib/unictype/pr_paired_punctuation.h: Likewise.
48325         * lib/unictype/pr_paragraph_separator.h: Likewise.
48326         * lib/unictype/pr_pattern_syntax.h: Likewise.
48327         * lib/unictype/pr_pattern_white_space.h: Likewise.
48328         * lib/unictype/pr_private_use.h: Likewise.
48329         * lib/unictype/pr_punctuation.h: Likewise.
48330         * lib/unictype/pr_quotation_mark.h: Likewise.
48331         * lib/unictype/pr_radical.h: Likewise.
48332         * lib/unictype/pr_sentence_terminal.h: Likewise.
48333         * lib/unictype/pr_soft_dotted.h: Likewise.
48334         * lib/unictype/pr_space.h: Likewise.
48335         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48336         * lib/unictype/pr_titlecase.h: Likewise.
48337         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48338         * lib/unictype/pr_unified_ideograph.h: Likewise.
48339         * lib/unictype/pr_uppercase.h: Likewise.
48340         * lib/unictype/pr_variation_selector.h: Likewise.
48341         * lib/unictype/pr_white_space.h: Likewise.
48342         * lib/unictype/pr_xid_continue.h: Likewise.
48343         * lib/unictype/pr_xid_start.h: Likewise.
48344         * lib/unictype/pr_zero_width.h: Likewise.
48345         * lib/unictype/scripts.h: Likewise.
48346         * lib/unictype/scripts_byname.gperf: Likewise.
48347         * lib/unictype/sy_c_ident.h: Likewise.
48348         * lib/unictype/sy_c_whitespace.h: Likewise.
48349         * lib/unictype/sy_java_ident.h: Likewise.
48350         * lib/unictype/sy_java_whitespace.h: Likewise.
48351
48352         * lib/unictype/Makefile: New file.
48353         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48354         glibc.
48355         * lib/unictype/3level.h: New file, copied from glibc.
48356         * lib/unictype/3levelbit.h: New file.
48357
48358 2007-11-11  Bruno Haible  <bruno@clisp.org>
48359
48360         * modules/gperf: New file.
48361         * modules/iconv_open (Depends-on): Add it.
48362         (Makefile.am): Remove the GPERF definition.
48363
48364 2007-11-11  Bruno Haible  <bruno@clisp.org>
48365
48366         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48367         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48368
48369 2007-11-11  Bruno Haible  <bruno@clisp.org>
48370
48371         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48372         (usage): Remove function.
48373
48374 2007-11-11  Bruno Haible  <bruno@clisp.org>
48375
48376         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48377         gl_FUNC_CEILF_LIBS.
48378         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48379         gl_FUNC_CEIL_LIBS.
48380         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48381         gl_FUNC_CEILL_LIBS.
48382         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48383         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48384         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48385
48386 2007-11-11  Bruno Haible  <bruno@clisp.org>
48387
48388         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48389         roundf were declared but do not exist on functions.
48390         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48391         roundl were declared but do not exist on functions.
48392         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48393         HAVE_FLOORL_AND_CEILL, respectively.
48394         Needed for Sun C on Solaris 10.
48395
48396 2007-11-11  Bruno Haible  <bruno@clisp.org>
48397
48398         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48399         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48400         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48401         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
48402         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
48403         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
48404         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48405         HAVE_DECL_ROUNDF.
48406         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
48407         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
48408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
48409         of HAVE_DECL_ROUND*.
48410         * modules/math (Makefile.am): Update.
48411
48412 2007-11-10  Bruno Haible  <bruno@clisp.org>
48413
48414         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
48415         ptrdiff_t as m4/intl.m4.
48416
48417 2007-11-10  Jim Meyering  <meyering@redhat.com>
48418
48419         Avoid link failure for the argmatch test.
48420         * tests/test-argmatch.c (usage): Define function to avoid a link
48421         failure: argmatch_die requires a usage function.
48422
48423 2007-11-09  Bruno Haible  <bruno@clisp.org>
48424
48425         * doc/functions/snprintf.texi: Mention BeOS deficiency.
48426         * doc/functions/vsnprintf.texi: Likewise.
48427         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
48428         with a size argument < 2.
48429
48430 2007-11-09  Bruno Haible  <bruno@clisp.org>
48431
48432         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
48433         buffer. Fixes an inefficiency introduced on 2007-11-03.
48434
48435 2007-11-09  Bruno Haible  <bruno@clisp.org>
48436
48437         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
48438         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
48439
48440 2007-11-08  Jim Meyering  <meyering@redhat.com>
48441
48442         Change cache variable name prefix "jm_" to "gl_" everywhere.
48443         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
48444         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
48445         * m4/uptime.m4: s/gl_/jm_/
48446
48447 2007-11-07  Bruno Haible  <bruno@clisp.org>
48448
48449         Update to GNU gettext 0.17.
48450         * m4/intl.m4: Update to GNU gettext 0.17.
48451         * m4/po.m4: Likewise.
48452         * modules/gettext (Files): Remove m4/ulonglong.m4.
48453         (configure.ac): Require gettext infrastructure from version 0.17.
48454
48455 2007-11-06  Bruno Haible  <bruno@clisp.org>
48456
48457         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
48458         symbolic values are not defined in a public header.
48459         * lib/freadable.c (freadable) [QNX]: Likewise.
48460         * lib/freadahead.c (freadahead) [QNX]: Likewise.
48461         * lib/freading.c (freading) [QNX]: Likewise.
48462         * lib/fseterr.c (fseterr) [QNX]: Likewise.
48463         * lib/fwritable.c (fwritable) [QNX]: Likewise.
48464         * lib/fwriting.c (fwriting) [QNX]: Likewise.
48465         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
48466         Reported by Alain Magloire.
48467
48468         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
48469
48470 2007-11-05  Bruno Haible  <bruno@clisp.org>
48471
48472         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
48473         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
48474         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
48475         Reported by Eric Blake.
48476
48477 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48478             Bruno Haible  <bruno@clisp.org>
48479
48480         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
48481         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
48482         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
48483         (malloc): Undefine also before including <stdlib.h>.
48484         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
48485         Needed on OSF/1 4.0.
48486
48487 2007-11-05  Jim Meyering  <meyering@redhat.com>
48488
48489         git-version-gen: sync from coreutils.
48490         * build-aux/git-version-gen: Add comments.
48491         Change the first '-' to '.' in the snapshot version string,
48492         e.g., 6.9-377-08144 -> 6.9.377-08144
48493         Remove first parameter.
48494         Don't declare a version "-dirty" merely because a time
48495         stamp has changed.
48496
48497 2007-11-04  Bruno Haible  <bruno@clisp.org>
48498
48499         * lib/lock.h: Protect all macro definitions containing an 'if'
48500         statement through a "do { ... } while (0)".
48501         * lib/tls.h: Likewise.
48502
48503 2007-11-04  Bruno Haible  <bruno@clisp.org>
48504
48505         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
48506
48507 2007-11-04  Bruno Haible  <bruno@clisp.org>
48508
48509         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
48510         * modules/fprintf-posix (Depends-on): Add nocrash.
48511         * modules/snprintf-posix (Depends-on): Likewise.
48512         * modules/sprintf-posix (Depends-on): Likewise.
48513         * modules/vasnprintf-posix (Depends-on): Likewise.
48514         * modules/vasprintf-posix (Depends-on): Likewise.
48515         * modules/vfprintf-posix (Depends-on): Likewise.
48516         * modules/vsnprintf-posix (Depends-on): Likewise.
48517         * modules/vsprintf-posix (Depends-on): Likewise.
48518         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48519         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48520         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48521         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48522         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48523         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48524         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48525
48526 2007-11-04  Bruno Haible  <bruno@clisp.org>
48527
48528         * modules/nocrash: New file.
48529         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
48530         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
48531
48532 2007-11-04  Bruno Haible  <bruno@clisp.org>
48533
48534         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
48535         precision handling.
48536         * tests/test-vasprintf-posix.c (test_function): Likewise.
48537         * tests/test-snprintf-posix.h (test_function): Likewise.
48538         * tests/test-sprintf-posix.h (test_function): Likewise.
48539
48540         Fix *printf behaviour for large precisions on mingw and BeOS.
48541         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
48542         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
48543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
48544         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48545         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48546         gl_PRINTF_PRECISION and test its result. Invoke
48547         gl_PREREQ_VASNPRINTF_PRECISION.
48548         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48549         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48550         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48551         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48552         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48553         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48554         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48555         * doc/functions/fprintf.texi: Update.
48556         * doc/functions/printf.texi: Update.
48557         * doc/functions/snprintf.texi: Update.
48558         * doc/functions/sprintf.texi: Update.
48559         * doc/functions/vfprintf.texi: Update.
48560         * doc/functions/vprintf.texi: Update.
48561         * doc/functions/vsnprintf.texi: Update.
48562         * doc/functions/vsprintf.texi: Update.
48563
48564 2007-11-04  Bruno Haible  <bruno@clisp.org>
48565
48566         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
48567
48568 2007-11-04  Bruno Haible  <bruno@clisp.org>
48569
48570         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
48571         Reported by Sylvain Beucler <beuc@gnu.org>.
48572
48573 2007-11-03  Bruno Haible  <bruno@clisp.org>
48574
48575         * tests/test-fprintf-posix2.sh: New file.
48576         * tests/test-fprintf-posix2.c: New file.
48577         * modules/fprintf-posix-tests (Files): Add them.
48578         (TESTS): Add test-fprintf-posix2.sh.
48579         (configure.ac): Check for getrlimit and setrlimit.
48580         (check_PROGRAMS): Add test-fprintf-posix2.
48581
48582         * tests/test-printf-posix2.sh: New file.
48583         * tests/test-printf-posix2.c: New file.
48584         * modules/printf-posix-tests (Files): Add them.
48585         (TESTS): Add test-printf-posix2.sh.
48586         (configure.ac): Check for getrlimit and setrlimit.
48587         (check_PROGRAMS): Add test-printf-posix2.
48588
48589         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
48590         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
48591         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
48592         (decode_double): New function, copied from decode_long_double.
48593         (scale10_round_decimal_decoded): New function, extracted from
48594         scale10_round_decimal_long_double.
48595         (scale10_round_decimal_long_double): Use it.
48596         (scale10_round_decimal_double): New function.
48597         (floorlog10): New function.
48598         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
48599         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
48600         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48601         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48602         gl_PRINTF_ENOMEM and test its result. Invoke
48603         gl_PREREQ_VASNPRINTF_ENOMEM.
48604         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48605         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48606         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48607         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48608         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48609         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48610         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48611         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
48612         * modules/snprintf-posix (Depends-on): Likewise.
48613         * modules/sprintf-posix (Depends-on): Likewise.
48614         * modules/vasnprintf-posix (Depends-on): Likewise.
48615         * modules/vasprintf-posix (Depends-on): Likewise.
48616         * modules/vfprintf-posix (Depends-on): Likewise.
48617         * modules/vsnprintf-posix (Depends-on): Likewise.
48618         * modules/vsprintf-posix (Depends-on): Likewise.
48619         * doc/functions/fprintf.texi: Update.
48620         * doc/functions/printf.texi: Update.
48621         * doc/functions/snprintf.texi: Update.
48622         * doc/functions/sprintf.texi: Update.
48623         * doc/functions/vfprintf.texi: Update.
48624         * doc/functions/vprintf.texi: Update.
48625         * doc/functions/vsnprintf.texi: Update.
48626         * doc/functions/vsprintf.texi: Update.
48627
48628 2007-11-03  Bruno Haible  <bruno@clisp.org>
48629
48630         * modules/frexp-nolibm-tests: New file.
48631
48632         * modules/frexp-nolibm: New file.
48633         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
48634
48635 2007-11-03  Bruno Haible  <bruno@clisp.org>
48636
48637         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
48638         value is C99 compliant.
48639         Needed for OSF/1 5.1.
48640
48641 2007-11-03  Bruno Haible  <bruno@clisp.org>
48642
48643         Fix out-of-memory handling of vasnprintf.
48644         * lib/printf-parse.c: Include <errno.h>.
48645         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
48646         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
48647         is already set.
48648
48649 2007-11-02  Eric Blake  <ebb9@byu.net>
48650
48651         Fix tests on cygwin.
48652         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
48653
48654 2007-11-01  Bruno Haible  <bruno@clisp.org>
48655
48656         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
48657         warning.
48658         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
48659         needed for POSIX compatibility.
48660
48661 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
48662
48663         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
48664         for compatibility with GNU.
48665
48666 2007-11-01  Bruno Haible  <bruno@clisp.org>
48667
48668         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
48669         (putenv): Renamed from rpl_putenv. Change argument type from
48670         'const char *' to 'char *'.
48671         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
48672         of defining putenv in config.h, just set REPLACE_PUTENV.
48673         * modules/putenv (Depends-on): Add stdlib.
48674         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48675         (Include): Use <stdlib.h>.
48676         * lib/stdlib.in.h (putenv): New declaration.
48677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
48678         REPLACE_PUTENV.
48679         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
48680         REPLACE_PUTENV.
48681         Needed for MacOS X 10.5.0.
48682         Reported by Peter O'Gorman <peter@pogma.com>.
48683
48684 2007-11-01  Jim Meyering  <meyering@redhat.com>
48685
48686         Treat an empty date string exactly like "0".
48687         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
48688         if the remaining date string (to be parsed) is empty, use "0".
48689         Reported by Mischa Molhoek and discussed in this thread:
48690         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
48691
48692 2007-10-31  Bruno Haible  <bruno@clisp.org>
48693
48694         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
48695         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
48696         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
48697         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
48698         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
48699         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
48700
48701 2007-10-31  Bruno Haible  <bruno@clisp.org>
48702
48703         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
48704         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
48705         (AC_TYPE_LONG_LONG_INT): Use it.
48706         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
48707         it as well.
48708         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
48709         to m4/longlong.m4.
48710         * modules/stdint (Files): Remove m4/ulonglong.m4.
48711         * modules/strtoull (Files): Use m4/longlong.m4 instead of
48712         m4/ulonglong.m4.
48713         * modules/strtoumax (Files): Likewise.
48714
48715 2007-10-30  Bruno Haible  <bruno@clisp.org>
48716
48717         * modules/xvasprintf-posix: New file.
48718         Suggested by Eric Blake.
48719
48720 2007-10-30  Bruno Haible  <bruno@clisp.org>
48721
48722         * modules/xprintf-posix-tests: New file.
48723         * tests/test-xprintf-posix.sh: New file.
48724         * tests/test-xprintf-posix.c: New file.
48725         * tests/test-xfprintf-posix.c: New file.
48726
48727         * modules/xprintf-posix: New file.
48728
48729 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48730
48731         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
48732         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
48733         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
48734
48735 2007-10-29  Bruno Haible  <bruno@clisp.org>
48736
48737         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
48738         contain the special marker '_cv_'.
48739         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48740         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48741         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48742         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
48743         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48744         Reported by Ralf Wildenhues.
48745
48746 2007-10-29  Bruno Haible  <bruno@clisp.org>
48747
48748         * gnulib-tool (func_import): When --lgpl is not specified, set
48749         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
48750         GPLv3.
48751         Reported by Simon Josefsson.
48752
48753 2007-10-28  Bruno Haible  <bruno@clisp.org>
48754
48755         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
48756         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
48757         HAVE_DECL_ISFINITE.
48758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48759         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
48760         HAVE_DECL_ISFINITE.
48761
48762 2007-10-28  Bruno Haible  <bruno@clisp.org>
48763
48764         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
48765         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
48766
48767 2007-10-28  Bruno Haible  <bruno@clisp.org>
48768
48769         Fix link errors with Sun C 5.0 on Solaris 10.
48770         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
48771         function is declared but not present in the compiler's libm.
48772         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48773         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48774         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
48775         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
48776         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
48777         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
48778         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
48779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48780         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
48781         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
48782         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
48783         HAVE_DECL_FLOORL.
48784
48785 2007-10-28  Bruno Haible  <bruno@clisp.org>
48786
48787         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
48788         gl_FUNC_FLOORL. Cache the result.
48789         (gl_FUNC_FLOORL): Use it.
48790         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
48791         gl_FUNC_CEILL. Cache the result.
48792         (gl_FUNC_CEILL): Use it.
48793
48794         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
48795         gl_FUNC_FLOOR. Cache the result.
48796         (gl_FUNC_FLOOR): Use it.
48797         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
48798         gl_FUNC_CEIL. Cache the result.
48799         (gl_FUNC_CEIL): Use it.
48800
48801         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
48802         gl_FUNC_FLOORF. Cache the result.
48803         (gl_FUNC_FLOORF): Use it.
48804         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
48805         gl_FUNC_CEILF. Cache the result.
48806         (gl_FUNC_CEILF): Use it.
48807
48808 2007-10-28  Bruno Haible  <bruno@clisp.org>
48809
48810         * gnulib-tool: Allow specifying the LGPL version number through
48811         --lgpl=2 or --lgpl=3.
48812         (func_usage): Document --lgpl with argument.
48813         Handle --lgpl=... arguments.
48814         (func_import): Recognize also gl_LGPL calls with an argument. When
48815         --lgpl=2 is used and the module's license is just LGPL, report an
48816         error. Set sed_transform_lib_file according to the lgpl variable. In
48817         the generated files, use --lgpl or gl_LGPL invocations with argument,
48818         if necessary.
48819         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
48820         an LGPv2+ license.
48821         * doc/gnulib-tool.texi (Modified imports): Update explanation of
48822         gl_LGPL macro.
48823
48824 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48825             Bruno Haible  <bruno@clisp.org>
48826
48827         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
48828         (u16_uctomb_aux): Likewise.
48829         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
48830         !HAVE_INLINE.
48831         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
48832
48833 2007-10-28  Bruno Haible  <bruno@clisp.org>
48834
48835         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
48836         Invoke AM_GETTEXT_OPTION if it exists.
48837         * modules/vasprintf: Likewise.
48838         * modules/verror: Likewise.
48839         * modules/xprintf: Likewise.
48840         * modules/xvasprintf: Likewise.
48841
48842 2007-10-27  Ben Pfaff  <blp@gnu.org>
48843
48844         * lib/math.in.h: Define isfinite macro and prototypes for
48845         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
48846         implementations.
48847         * m4/math_h.m4: New substitutions for isfinite module.
48848         * lib/isfinite.c: New file.
48849         * m4/isfinite.m4: New file.
48850         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
48851         * modules/isfinite: New file.
48852         * modules/isfinite-tests: New file.
48853         * tests/tests-isfinite.c: New file.
48854         * doc/functions/isfinite.texi: Mention isfinite module.
48855         * MODULES.html.sh: Mention new module.
48856
48857 2007-10-27  Ben Pfaff  <blp@gnu.org>
48858
48859         Ralf Wildenhues reported that Tru64 4.0D declares the round
48860         functions but does not have definitions.
48861         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
48862         cannot be found in any library, set the output variable to
48863         "missing" instead of "".
48864         * m4/round.m4: Also use our substitute if we cannot find round in
48865         any library, even if it is declared.
48866         * m4/roundf.m4: Likewise for roundf.
48867         * m4/roundl.m4: Likewise for roundl.
48868         * lib/math.in.h: Undefine roundf, round, roundl before defining
48869         their replacements, to allow for hypothetical systems where these
48870         may be defined as macros but not available in libraries.
48871
48872 2007-10-27  Bruno Haible  <bruno@clisp.org>
48873
48874         * doc/gnulib.texi: Invoke @firstparagraphindent.
48875         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
48876         changes in gnulib.
48877         (Source changes): New section.
48878
48879 2007-10-26  Bruno Haible  <bruno@clisp.org>
48880
48881         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
48882         borrowed from autoconf.
48883
48884 2007-10-26  Bruno Haible  <bruno@clisp.org>
48885
48886         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
48887         strerror returned the empty string. Needed on HP-UX 11.00.
48888
48889 2007-10-24  Micah Cowan  <micah@cowan.name>
48890
48891         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
48892         * build-aux/bootstrap: Remove support for now-unnecessary option,
48893         --cvs-user, and envvars CVS_USER, CVS_RSH.
48894
48895 2007-10-24  Jim Meyering  <meyering@redhat.com>
48896
48897         Avoid diagnostics from sha1sum when there is no cached checksum.
48898         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
48899         if the po.s1 file hasn't been created yet.
48900
48901         * build-aux/bootstrap: Sync from coreutils:
48902         2007-10-24  Jim Meyering  <meyering@redhat.com>
48903         Get gnulib from the git repository, not from an obsolete cvs one.
48904         * build-aux/bootstrap: Suggestion from Micah Cowan.
48905         2007-10-04  Jim Meyering  <jim@meyering.net>
48906         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
48907         (update_po_files): Work also when there are no .po files in po/.
48908
48909 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48910
48911         * README: Append ".git" to git and cg examples.
48912         Problem reported by Benoit Sigoure.
48913
48914 2007-10-23  Micah Cowan  <micah@cowan.name>
48915
48916         * users.txt: Add wget.
48917
48918 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48919
48920         Fix linking of some unistdio tests on FreeBSD.
48921         * modules/unistdio/u16-vsnprintf-tests
48922         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
48923         * modules/unistdio/u16-vsprintf-tests
48924         (test_u16_vsnprintf1_LDADD): Likewise.
48925         * modules/unistdio/u32-vsnprintf-tests
48926         (test_u32_vsnprintf1_LDADD): Likewise.
48927         * modules/unistdio/u32-vsprintf-tests
48928         (test_u32_vsprintf1_LDADD): Likewise.
48929         * modules/unistdio/u8-vsnprintf-tests
48930         (test_u8_vsnprintf1_LDADD): Likewise.
48931         * modules/unistdio/u8-vsprintf-tests
48932         (test_u8_vsprintf1_LDADD): Likewise.
48933         * modules/unistdio/ulc-vsnprintf-tests
48934         (test_ulc_vsnprintf1_LDADD): Likewise.
48935         * modules/unistdio/ulc-vsprintf-tests
48936         (test_ulc_vsprintf1_LDADD): Likewise.
48937
48938         Fix linking of some uniconv tests on FreeBSD.
48939         * modules/uniconv/u16-conv-from-enc-tests
48940         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
48941         * modules/uniconv/u16-conv-to-enc-tests
48942         (test_u16_conv_to_enc_LDADD): Likewise.
48943         * modules/uniconv/u16-strconv-from-enc-tests
48944         (test_u16_strconv_from_enc_LDADD): Likewise.
48945         * modules/uniconv/u16-strconv-to-enc-tests
48946         (test_u16_strconv_to_enc_LDADD): Likewise.
48947         * modules/uniconv/u32-conv-from-enc-tests
48948         (test_u32_conv_from_enc_LDADD): Likewise.
48949         * modules/uniconv/u32-conv-to-enc-tests
48950         (test_u32_conv_to_enc_LDADD): Likewise.
48951         * modules/uniconv/u32-strconv-from-enc-tests
48952         (test_u32_strconv_from_enc_LDADD): Likewise.
48953         * modules/uniconv/u32-strconv-to-enc-tests
48954         (test_u32_strconv_to_enc_LDADD): Likewise.
48955         * modules/uniconv/u8-conv-from-enc-tests
48956         (test_u8_conv_from_enc_LDADD): Likewise.
48957         * modules/uniconv/u8-conv-to-enc-tests
48958         (test_u8_conv_to_enc_LDADD): Likewise.
48959         * modules/uniconv/u8-strconv-from-enc-tests
48960         (test_u8_strconv_from_enc_LDADD): Likewise.
48961         * modules/uniconv/u8-strconv-to-enc-tests
48962         (test_u8_strconv_to_enc_LDADD): Likewise.
48963
48964 2007-10-22  Bruno Haible  <bruno@clisp.org>
48965
48966         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
48967         size.
48968
48969 2007-10-22  Eric Blake  <ebb9@byu.net>
48970
48971         Tweak x*printf documentation.
48972         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
48973         variable name and comments.
48974         Suggested by Bruno Haible.
48975
48976 2007-10-22  Bruno Haible  <bruno@clisp.org>
48977
48978         * lib/acl.c (copy_acl): Fix file name in comment.
48979
48980 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48981
48982         Fix Tru64 problem with stdbool.h.
48983         * lib/stdbool.in.h (false, true):
48984         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
48985         Don't declare as an enum in this situation; it runs afoul of Tru64.
48986         Problem reported by Steven M. Schweda in
48987         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
48988
48989 2007-10-22  Eric Blake  <ebb9@byu.net>
48990
48991         Also wrap vf?printf.
48992         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
48993         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
48994         (xvprintf, xvfprintf): New functions.
48995
48996 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48997
48998         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
48999         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
49000
49001         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
49002         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
49003
49004 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49005
49006         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
49007         by Bruno Haible.
49008
49009 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49010
49011         * lib/getloadavg.c
49012         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
49013         Undef `sys' after including sys/table.h, for Tru64 4.0D.
49014
49015         * tests/test-i-ring.c: Work for C89.
49016
49017 2007-10-22  Bruno Haible  <bruno@clisp.org>
49018
49019         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49020         -1u, in preprocessor expression, so that we don't test for the bug
49021         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49022         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49023
49024 2007-10-22  Eric Blake  <ebb9@byu.net>
49025
49026         * tests/test-yesno.sh: Silence stderr during test.
49027
49028 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49029
49030         * modules/crypto/gc-camellia: New file.
49031
49032         * m4/gc-camellia.m4: New file.
49033
49034         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49035
49036         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49037
49038 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49039
49040         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49041         --help to stdout.  Reported by sms@antinode.org (Steven
49042         M. Schweda).
49043
49044 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49045
49046         * users.txt: Fix link to libksba.
49047
49048 2007-10-21  Ben Pfaff  <blp@gnu.org>
49049
49050         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49051         round.c roundf implementation that depends on floorf and ceilf to
49052         be tested unconditionally.
49053
49054 2007-10-21  Ben Pfaff  <blp@gnu.org>
49055
49056         * m4/check-libm-func.m4: Removed.
49057         * m4/check-math-lib.m4: New file.
49058         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49059         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49060         definition and lack of AC_LIBOBJ([roundf]).
49061         * m4/roundl.m4: Ditto, and similarly for roundl.
49062         * modules/round: Reference new m4 file.
49063         * modules/roundf: Ditto.
49064         * modules/roundl: Ditto.
49065         * tests/test-round2.c (main): Use ROUND instead of round.
49066         Bug report from Bruno Haible.
49067
49068 2007-10-21  Bruno Haible  <bruno@clisp.org>
49069
49070         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49071         context.
49072
49073 2007-10-21  Bruno Haible  <bruno@clisp.org>
49074
49075         * tests/test-wcwidth.c (main): Allow negative result for some control
49076         characters.
49077
49078         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49079         Needed on OSF/1 5.1.
49080
49081 2007-10-21  Bruno Haible  <bruno@clisp.org>
49082
49083         * tests/test-floorf1.c: Include isnanf.h.
49084         (main): Use isnanf() instead of isnan().
49085         * tests/test-ceilf1.c: Include isnanf.h.
49086         (main): Use isnanf() instead of isnan().
49087         * tests/test-truncf1.c: Include isnanf.h.
49088         (main): Use isnanf() instead of isnan().
49089         * tests/test-roundf1.c: Include isnanf.h.
49090         (main): Use isnanf() instead of isnan().
49091
49092 2007-10-21  Eric Blake  <ebb9@byu.net>
49093
49094         * users.txt: Update URL for m4.
49095
49096 2007-10-21  Bruno Haible  <bruno@clisp.org>
49097
49098         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49099
49100 2007-10-21  Bruno Haible  <bruno@clisp.org>
49101
49102         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49103         Git's management files if the CVS files are not present.
49104
49105 2007-10-20  Bruno Haible  <bruno@clisp.org>
49106
49107         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49108         gcc-3.4.x.
49109
49110 2007-10-20  Ben Pfaff  <blp@gnu.org>
49111
49112         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49113         implementations.
49114         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49115         * lib/round.c: New file.
49116         * lib/roundf.c: New file.
49117         * lib/roundl.c: New file.
49118         * m4/round.m4: New file.
49119         * m4/roundf.m4: New file.
49120         * m4/roundl.m4: New file.
49121         * m4/check-libm-func-m4: New file.
49122         * modules/math: Replace round, roundf, roundl related @VARS@ in
49123         math.in.h.
49124         * modules/round: New file.
49125         * modules/round-tests: New file.
49126         * modules/roundf: New file.
49127         * modules/roundf-tests: New file.
49128         * modules/roundl: New file.
49129         * modules/roundl-tests: New file.
49130         * tests/test-round1.c: New file.
49131         * tests/test-round2.c: New file.
49132         * tests/test-roundf1.c: New file.
49133         * tests/test-roundf2.c: New file.
49134         * tests/test-roundl.c: New file.
49135         * doc/functions/round.texi: Mention round module.
49136         * doc/functions/roundf.texi: Mention roundf module.
49137         * doc/functions/roundl.texi: Mention roundl module.
49138         * MODULES.html.sh: Mention new modules.
49139         Thanks to Bruno Haible for suggestions.
49140
49141 2007-10-20  Jim Meyering  <meyering@redhat.com>
49142
49143         * lib/xprintf.c: Include <config.h> unconditionally.
49144
49145         Change xprintf's license to GPL.
49146         * modules/xprintf (License): s/LGPL/GPL/, since this module
49147         depends on modules (exit and exitfail) which are GPL.
49148         Suggestion from Bruno Haible.
49149
49150         xprintf fixes.
49151         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49152         Use a clearer diagnostic.
49153         Patch from Bruno Haible.
49154
49155 2007-10-20  Bruno Haible  <bruno@clisp.org>
49156
49157         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49158         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49159         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49160
49161 2007-10-20  Bruno Haible  <bruno@clisp.org>
49162
49163         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49164         precision in the comparison result > x - 1 or similar.
49165         * tests/test-ceilf2.c (correct_result_p): Likewise.
49166         * tests/test-truncf2.c (correct_result_p): Likewise.
49167         * tests/test-trunc2.c (correct_result_p): Likewise.
49168         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49169
49170 2007-10-20  Bruno Haible  <bruno@clisp.org>
49171
49172         * modules/ceil: New file.
49173         * m4/ceil.m4: New file.
49174         * doc/functions/ceil.texi: Mention the 'ceil' module.
49175
49176 2007-10-20  Bruno Haible  <bruno@clisp.org>
49177
49178         * modules/floor: New file.
49179         * m4/floor.m4: New file.
49180         * doc/functions/floor.texi: Mention the 'floor' module.
49181
49182 2007-10-20  Bruno Haible  <bruno@clisp.org>
49183
49184         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49185         of %a.
49186         * modules/floorf-tests (Depends-on): Likewise.
49187         * modules/truncf-tests (Depends-on): Likewise.
49188         * modules/trunc-tests (Depends-on): Likewise.
49189         Reported by Ben Pfaff.
49190
49191 2007-10-19  Jim Meyering  <meyering@redhat.com>
49192
49193         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49194         Don't bother testing specific errno values.  Just test ferror.
49195
49196         New module: xprintf
49197         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49198
49199 2007-10-19  Bruno Haible  <bruno@clisp.org>
49200
49201         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49202         syntax.
49203         * modules/javaexec (Makefile.am): Likewise.
49204         * modules/relocatable-prog (Makefile.am): Likewise.
49205         Suggested by Jim Meyering.
49206
49207 2007-10-18  Bruno Haible  <bruno@clisp.org>
49208
49209         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49210         Reported by Jim Meyering.
49211
49212 2007-10-18  Eric Blake  <ebb9@byu.net>
49213
49214         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49215
49216 2007-10-18  Bruno Haible  <bruno@clisp.org>
49217
49218         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49219         the format string into writable memory. Needed in Fortify conditions.
49220
49221 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49222             Bruno Haible  <bruno@clisp.org>
49223
49224         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49225         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49226         * modules/trim (Depends-on): Add mbchar.
49227         (configure.ac): Add gl_FUNC_MBRTOWC.
49228         (Makefile.am): Augment lib_SOURCES.
49229
49230 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49231
49232         Modify glob.c to use fstatat and dirfd, to simplify it.
49233         Suggested by Eric Blake.
49234         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49235         Don't include <stdbool.h>; not used.
49236         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
49237         (link_exists_p): Simplify implementation, since we can now assume
49238         dirfd and fstatat.
49239         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
49240
49241 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49242
49243         * gnulib-tool (func_get_dependencies): Fix sed script to
49244         match only tests.
49245
49246 2007-10-17  Bruno Haible  <bruno@clisp.org>
49247
49248         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
49249         allow locale names without encoding suffix.
49250         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49251         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49252
49253 2007-10-16  Bruno Haible  <bruno@clisp.org>
49254
49255         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
49256         * lib/getgroups.c (getgroups): Likewise.
49257         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
49258
49259 2007-10-16  Bruno Haible  <bruno@clisp.org>
49260
49261         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
49262         * modules/malloc-posix (License): Likewise.
49263         * modules/realloc-posix (License): Likewise.
49264         * modules/calloc-posix (License): Likewise.
49265         * modules/intprops (License): Change from GPL to LGPL, with
49266         Paul Eggert's approval.
49267
49268 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49269
49270         Merge glibc changes into lib/glob.c.
49271
49272         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
49273         2007-10-15 04:59:03 UTC.  Here are the changes:
49274
49275         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
49276
49277         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
49278
49279         * lib/glob.c: Add some branch prediction throughout.
49280
49281         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
49282
49283         [BZ #5103]
49284         * lib/glob.c (glob): Recognize patterns starting \/.
49285
49286         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
49287
49288         [BZ #3996]
49289         * lib/glob.c (attribute_hidden): Define if not defined.
49290         (glob): Unescape dirname, filename or username when needed and not
49291         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
49292         is NULL.  Handle unescaped [ in pattern without closing ].
49293         Don't pass GLOB_CHECK down to recursive glob for directories.
49294         (__glob_pattern_type): New function.
49295         (__glob_pattern_p): Implement using __glob_pattern_type.
49296         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
49297         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
49298         Remove unreachable code.
49299
49300         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
49301
49302         * lib/glob.c (glob_in_dir): Add some comments and asserts to
49303         explain why there are no leaks.
49304
49305         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
49306
49307         [BZ #3253]
49308         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
49309         time, rather allocate increasingly bigger arrays of pointers, if
49310         possible with alloca, if too large with malloc.
49311
49312 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49313
49314         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
49315         Problem reported by H.Merijn Brand in
49316         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
49317         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
49318         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49319
49320 2007-10-15  Bruno Haible  <bruno@clisp.org>
49321
49322         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
49323         with explicit rpl_ prefix.
49324         * lib/fopen.c (fopen): Likewise.
49325         * lib/freopen.c (freopen): Likewise.
49326         * lib/iconv.c (iconv): Likewise.
49327         * lib/iconv_close.c (iconv_close): Likewise.
49328
49329 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49330
49331         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49332
49333 2007-10-15  Bruno Haible  <bruno@clisp.org>
49334
49335         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49336         <stddef.h> instead of <stdlib.h> since we only need NULL.
49337         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49338
49339 2007-10-15  Bruno Haible  <bruno@clisp.org>
49340
49341         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49342         Replace paragraph talking about LIBOBJS.
49343         Reported by Colin Watson <cjwatson@debian.org>.
49344
49345 2007-10-15  Bruno Haible  <bruno@clisp.org>
49346
49347         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49348         <stdlib.h> before using NULL.
49349
49350 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49351
49352         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49353         Reported by Albert Chin <china@thewrittenword.com>.
49354
49355 2007-10-14  Bruno Haible  <bruno@clisp.org>
49356
49357         * modules/iconv_open-utf-tests: New file.
49358         * tests/test-iconv-utf.c: New file.
49359
49360         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49361         * modules/iconv_open-utf: New file.
49362         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49363         (iconv, iconv_close): New declarations.
49364         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49365         be defined.
49366         (iconv_open): Add special handling of conversion between UTF-8 and
49367         UTF-{16,32}{BE,LE}.
49368         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49369         * lib/iconv_close.c: New file.
49370         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49371         gl_FUNC_ICONV_OPEN.
49372         (gl_FUNC_ICONV_OPEN): Use it.
49373         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49374         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49375         and REPLACE_ICONV_UTF.
49376         * modules/iconv_open (Depends-on): Add c-strcase.
49377         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49378         ICONV_CONST.
49379         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49380
49381 2007-10-13  Albert Chin  <china@thewrittenword.com>
49382             Bruno Haible  <bruno@clisp.org>
49383
49384         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49385         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49386
49387 2007-10-13  Bruno Haible  <bruno@clisp.org>
49388
49389         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49390         defined, use the ISO C99 inline semantics.
49391         * lib/argp.h (ARGP_EI): Likewise.
49392
49393 2007-10-13  Bruno Haible  <bruno@clisp.org>
49394
49395         Handle 'inline' change in gcc 4.3.0.
49396         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49397         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49398         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49399         argp_fmtstream_point): Disable 'extern' declaration if the function
49400         definition is going to be provided inline.
49401         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
49402         semantics, not the ISO C99 inline semantics.
49403         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
49404         'extern' declaration if the function definition is going to be provided
49405         inline.
49406         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
49407         the GNU C inline semantics, not the ISO C99 inline semantics. With
49408         GCC 4.2, avoid a warning.
49409
49410 2007-10-13  Bruno Haible  <bruno@clisp.org>
49411
49412         * lib/freading.h (freading): Enable the use of __freading for
49413         glibc >= 2.7.
49414         * lib/freading.c (freading): Likewise.
49415
49416 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49417
49418         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
49419         "warning: C99 inline functions are not supported; using GNU89".
49420
49421 2007-10-12  Bruno Haible  <bruno@clisp.org>
49422
49423         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
49424         of 2.
49425         * tests/test-ceilf2.c: New file.
49426         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
49427
49428         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
49429         * modules/ceilf-tests: Update.
49430
49431 2007-10-12  Bruno Haible  <bruno@clisp.org>
49432
49433         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
49434         of 2.
49435         * tests/test-floorf2.c: New file.
49436         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
49437
49438         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
49439         * modules/floorf-tests: Update.
49440
49441 2007-10-12  Bruno Haible  <bruno@clisp.org>
49442
49443         * tests/test-trunc2.c: New file.
49444         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
49445
49446         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
49447         * modules/trunc-tests: Update.
49448
49449 2007-10-12  Bruno Haible  <bruno@clisp.org>
49450
49451         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
49452         of 2.
49453         * tests/test-truncf2.c: New file.
49454         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
49455
49456         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
49457         * modules/truncf-tests: Update.
49458
49459 2007-10-11  Eric Blake  <ebb9@byu.net>
49460
49461         Don't claim strerror is broken on Interix.
49462         * doc/functions/strerror.texi (strerror): Known broken systems are
49463         now Solaris 8, and not Interix.
49464         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
49465         Interix on cross-compile.
49466         Reported by Martin Koeppe in
49467         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
49468
49469 2007-10-11  Bruno Haible  <bruno@clisp.org>
49470
49471         * modules/i-ring-tests: New file.
49472         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
49473         instead of assert.
49474
49475 2007-10-11  Bruno Haible  <bruno@clisp.org>
49476
49477         * modules/filenamecat-tests: New file.
49478         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
49479         * lib/filenamecat.c: Remove test code.
49480
49481 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49482
49483         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
49484
49485         * lib/strerror.c: Include <string.h> always, to test interface,
49486         and to remove the need for the dummy.
49487         Include intprops.h to compute width instead of doing it ourselves
49488         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
49489         (strerror): Define it to return NULL if there's no system strerror.
49490         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
49491         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
49492         ancient pre-strerror Unix systems well any more.  Saying "unknown
49493         system error" is enough.
49494         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
49495         simpler strerror.c implementation.
49496         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
49497         Simplify the tests to reflect the simpler strerror implementation.
49498         * modules/strerror (Depends-on): Add intprops.
49499
49500 2007-10-09  Eric Blake  <ebb9@byu.net>
49501
49502         Silence test-fpending.
49503         * modules/fpending-tests (Files): Add wrapper script.
49504         * tests/test-fpending.sh: New file.
49505
49506 2007-10-09  Bruno Haible  <bruno@clisp.org>
49507
49508         * MODULES.html.sh (func_module): Don't create a hyperlink for
49509         function names like 'printf_frexp'.
49510         (Misc): Add crc, memxor.
49511         (Characteristics of floating types): New section.
49512         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
49513         isnanf-nolibm, signbit, trunc, truncf, truncl.
49514         (Enhancements for ISO C 99 functions): New subsection Input/output.
49515         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
49516         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
49517         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
49518         (Compatibility checks for POSIX:2001 functions): Add clock-time.
49519         (Enhancements for POSIX:2001 functions): Add chdir-long.
49520         (File system functions): Add areadlink, chdir-safer, read-file.
49521         Remove cycle-check.
49522         (File system as inode set): New section.
49523         (Date and time): Add gethrxtime.
49524         (Multithreading): Add openmp.
49525         (Internationalization functions): Add localename.
49526         (Unicode string functions): Add unistr/u*-mbsnlen.
49527         (Support for maintaining and releasing projects): Add git-version-gen.
49528         (Lone files): Remove directories.
49529
49530 2007-10-08  Ben Pfaff  <blp@gnu.org>
49531
49532         * lib/xmalloca.h: Fix typo in comment.
49533
49534 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49535
49536         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
49537         when avoiding problems with integer overflow.  Use a portable test
49538         instead.
49539
49540 2007-10-08  Simon Josefsson  <simon@josefsson.org>
49541
49542         * modules/dummy (License): Change to LGPLv2+.
49543         * modules/float (License): Likewise
49544         * modules/realloc (License): Likewise
49545         * modules/stdlib (License): Likewise
49546
49547 2007-10-07  Bruno Haible  <bruno@clisp.org>
49548
49549         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
49550         * floor.c (TWO_MANT_DIG): Likewise.
49551         * ceil.c (TWO_MANT_DIG): Likewise.
49552         Reported by Ben Pfaff.
49553
49554 2007-10-07  Bruno Haible  <bruno@clisp.org>
49555
49556         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
49557         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
49558         * lib/frexp.c (FUNC): Likewise.
49559         * lib/printf-frexp.h (printf_frexp): Likewise.
49560         * lib/printf-frexpl.h (printf_frexpl): Likewise.
49561         * lib/printf-frexp.c (FUNC): Likewise.
49562         Suggested by Jim Meyering.
49563
49564 2007-10-07  Jim Meyering  <meyering@redhat.com>
49565
49566         Make xnanosleep's integer overflow test more robust.
49567         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
49568         so that gcc-4.3.0 doesn't optimize away this test for overflow.
49569
49570 2007-10-07  Bruno Haible  <bruno@clisp.org>
49571
49572         * NEWS: Mention the license change.
49573
49574         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
49575         abbreviations in the modules files.
49576
49577         Change copyright notice from GPLv2+ to GPLv3+.
49578         * README: Change copyright notice.
49579         * MODULES.html.sh: Likewise.
49580         * build-aux/bootstrap.conf: Likewise.
49581         * build-aux/config.libpath: Likewise.
49582         * build-aux/csharpcomp.sh.in: Likewise.
49583         * build-aux/csharpexec.sh.in: Likewise.
49584         * build-aux/install-reloc: Likewise.
49585         * build-aux/javacomp.sh.in: Likewise.
49586         * build-aux/javaexec.sh.in: Likewise.
49587         * build-aux/ldd.sh.in: Likewise.
49588         * build-aux/reloc-ldflags: Likewise.
49589         * build-aux/relocatable.sh.in: Likewise.
49590         * build-aux/x-to-1.in: Likewise.
49591         * check-module: Likewise.
49592         * config/srclistvars.sh: Likewise.
49593         * gnulib-tool: Likewise.
49594         * lib/acl-internal.h: Likewise.
49595         * lib/acl.c: Likewise.
49596         * lib/acl.h: Likewise.
49597         * lib/acl_entries.c: Likewise.
49598         * lib/areadlink-with-size.c: Likewise.
49599         * lib/areadlink.c: Likewise.
49600         * lib/areadlink.h: Likewise.
49601         * lib/argmatch.c: Likewise.
49602         * lib/argmatch.h: Likewise.
49603         * lib/argp-ba.c: Likewise.
49604         * lib/argp-eexst.c: Likewise.
49605         * lib/argp-fmtstream.c: Likewise.
49606         * lib/argp-fmtstream.h: Likewise.
49607         * lib/argp-fs-xinl.c: Likewise.
49608         * lib/argp-help.c: Likewise.
49609         * lib/argp-namefrob.h: Likewise.
49610         * lib/argp-parse.c: Likewise.
49611         * lib/argp-pin.c: Likewise.
49612         * lib/argp-pv.c: Likewise.
49613         * lib/argp-pvh.c: Likewise.
49614         * lib/argp-xinl.c: Likewise.
49615         * lib/argp.h: Likewise.
49616         * lib/at-func.c: Likewise.
49617         * lib/atanl.c: Likewise.
49618         * lib/backupfile.c: Likewise.
49619         * lib/backupfile.h: Likewise.
49620         * lib/basename.c: Likewise.
49621         * lib/binary-io.h: Likewise.
49622         * lib/byteswap.in.h: Likewise.
49623         * lib/c-stack.c: Likewise.
49624         * lib/c-stack.h: Likewise.
49625         * lib/c-strcasestr.c: Likewise.
49626         * lib/c-strcasestr.h: Likewise.
49627         * lib/c-strstr.c: Likewise.
49628         * lib/c-strstr.h: Likewise.
49629         * lib/c-strtod.c: Likewise.
49630         * lib/calloc.c: Likewise.
49631         * lib/canon-host.c: Likewise.
49632         * lib/canon-host.h: Likewise.
49633         * lib/canonicalize-lgpl.c: Likewise.
49634         * lib/canonicalize.c: Likewise.
49635         * lib/canonicalize.h: Likewise.
49636         * lib/ceil.c: Likewise.
49637         * lib/ceilf.c: Likewise.
49638         * lib/ceill.c: Likewise.
49639         * lib/chdir-long.c: Likewise.
49640         * lib/chdir-long.h: Likewise.
49641         * lib/chdir-safer.c: Likewise.
49642         * lib/chdir-safer.h: Likewise.
49643         * lib/chown.c: Likewise.
49644         * lib/classpath.c: Likewise.
49645         * lib/classpath.h: Likewise.
49646         * lib/clean-temp.c: Likewise.
49647         * lib/clean-temp.h: Likewise.
49648         * lib/cloexec.c: Likewise.
49649         * lib/close-stream.c: Likewise.
49650         * lib/closein.c: Likewise.
49651         * lib/closein.h: Likewise.
49652         * lib/closeout.c: Likewise.
49653         * lib/closeout.h: Likewise.
49654         * lib/concat-filename.c: Likewise.
49655         * lib/copy-file.c: Likewise.
49656         * lib/copy-file.h: Likewise.
49657         * lib/count-one-bits.h: Likewise.
49658         * lib/crc.c: Likewise.
49659         * lib/crc.h: Likewise.
49660         * lib/creat-safer.c: Likewise.
49661         * lib/csharpcomp.c: Likewise.
49662         * lib/csharpcomp.h: Likewise.
49663         * lib/csharpexec.c: Likewise.
49664         * lib/csharpexec.h: Likewise.
49665         * lib/cycle-check.c: Likewise.
49666         * lib/cycle-check.h: Likewise.
49667         * lib/diacrit.c: Likewise.
49668         * lib/diacrit.h: Likewise.
49669         * lib/diffseq.h: Likewise.
49670         * lib/dirchownmod.c: Likewise.
49671         * lib/dirent.in.h: Likewise.
49672         * lib/dirfd.c: Likewise.
49673         * lib/dirfd.h: Likewise.
49674         * lib/dirname.c: Likewise.
49675         * lib/dirname.h: Likewise.
49676         * lib/dummy.c: Likewise.
49677         * lib/dup-safer.c: Likewise.
49678         * lib/dup2.c: Likewise.
49679         * lib/eealloc.h: Likewise.
49680         * lib/error.c: Likewise.
49681         * lib/error.h: Likewise.
49682         * lib/euidaccess.c: Likewise.
49683         * lib/exclude.c: Likewise.
49684         * lib/exclude.h: Likewise.
49685         * lib/execute.c: Likewise.
49686         * lib/execute.h: Likewise.
49687         * lib/exitfail.c: Likewise.
49688         * lib/exitfail.h: Likewise.
49689         * lib/expl.c: Likewise.
49690         * lib/fatal-signal.c: Likewise.
49691         * lib/fatal-signal.h: Likewise.
49692         * lib/fbufmode.c: Likewise.
49693         * lib/fbufmode.h: Likewise.
49694         * lib/fchdir.c: Likewise.
49695         * lib/fchmodat.c: Likewise.
49696         * lib/fchownat.c: Likewise.
49697         * lib/fcntl--.h: Likewise.
49698         * lib/fcntl-safer.h: Likewise.
49699         * lib/fcntl.in.h: Likewise.
49700         * lib/fd-safer.c: Likewise.
49701         * lib/fflush.c: Likewise.
49702         * lib/file-has-acl.c: Likewise.
49703         * lib/file-set.c: Likewise.
49704         * lib/file-type.c: Likewise.
49705         * lib/file-type.h: Likewise.
49706         * lib/fileblocks.c: Likewise.
49707         * lib/filemode.c: Likewise.
49708         * lib/filemode.h: Likewise.
49709         * lib/filename.h: Likewise.
49710         * lib/filenamecat.c: Likewise.
49711         * lib/filenamecat.h: Likewise.
49712         * lib/findprog.c: Likewise.
49713         * lib/findprog.h: Likewise.
49714         * lib/float.in.h: Likewise.
49715         * lib/floor.c: Likewise.
49716         * lib/floorf.c: Likewise.
49717         * lib/floorl.c: Likewise.
49718         * lib/fopen-safer.c: Likewise.
49719         * lib/fopen.c: Likewise.
49720         * lib/fpending.c: Likewise.
49721         * lib/fpending.h: Likewise.
49722         * lib/fprintf.c: Likewise.
49723         * lib/fprintftime.h: Likewise.
49724         * lib/fpucw.h: Likewise.
49725         * lib/fpurge.c: Likewise.
49726         * lib/fpurge.h: Likewise.
49727         * lib/freadable.c: Likewise.
49728         * lib/freadable.h: Likewise.
49729         * lib/freadahead.c: Likewise.
49730         * lib/freadahead.h: Likewise.
49731         * lib/freading.c: Likewise.
49732         * lib/freading.h: Likewise.
49733         * lib/free.c: Likewise.
49734         * lib/freopen.c: Likewise.
49735         * lib/frexp.c: Likewise.
49736         * lib/frexpl.c: Likewise.
49737         * lib/fseek.c: Likewise.
49738         * lib/fseterr.c: Likewise.
49739         * lib/fseterr.h: Likewise.
49740         * lib/fstatat.c: Likewise.
49741         * lib/fstrcmp.c: Likewise.
49742         * lib/fstrcmp.h: Likewise.
49743         * lib/fsusage.c: Likewise.
49744         * lib/fsusage.h: Likewise.
49745         * lib/ftell.c: Likewise.
49746         * lib/ftello.c: Likewise.
49747         * lib/fts-cycle.c: Likewise.
49748         * lib/fts.c: Likewise.
49749         * lib/fts_.h: Likewise.
49750         * lib/full-read.c: Likewise.
49751         * lib/full-read.h: Likewise.
49752         * lib/full-write.c: Likewise.
49753         * lib/full-write.h: Likewise.
49754         * lib/fwritable.c: Likewise.
49755         * lib/fwritable.h: Likewise.
49756         * lib/fwriteerror.c: Likewise.
49757         * lib/fwriteerror.h: Likewise.
49758         * lib/fwriting.c: Likewise.
49759         * lib/fwriting.h: Likewise.
49760         * lib/gcd.c: Likewise.
49761         * lib/gcd.h: Likewise.
49762         * lib/getcwd.c: Likewise.
49763         * lib/getdate.h: Likewise.
49764         * lib/getdate.y: Likewise.
49765         * lib/getdomainname.c: Likewise.
49766         * lib/getdomainname.h: Likewise.
49767         * lib/getgroups.c: Likewise.
49768         * lib/gethostname.c: Likewise.
49769         * lib/gethrxtime.c: Likewise.
49770         * lib/gethrxtime.h: Likewise.
49771         * lib/getloadavg.c: Likewise.
49772         * lib/getndelim2.c: Likewise.
49773         * lib/getndelim2.h: Likewise.
49774         * lib/getnline.c: Likewise.
49775         * lib/getnline.h: Likewise.
49776         * lib/getopt.c: Likewise.
49777         * lib/getopt.in.h: Likewise.
49778         * lib/getopt1.c: Likewise.
49779         * lib/getopt_int.h: Likewise.
49780         * lib/getpagesize.h: Likewise.
49781         * lib/getsubopt.c: Likewise.
49782         * lib/gettime.c: Likewise.
49783         * lib/getugroups.c: Likewise.
49784         * lib/getugroups.h: Likewise.
49785         * lib/getusershell.c: Likewise.
49786         * lib/gl_anyavltree_list1.h: Likewise.
49787         * lib/gl_anyavltree_list2.h: Likewise.
49788         * lib/gl_anyhash_list1.h: Likewise.
49789         * lib/gl_anyhash_list2.h: Likewise.
49790         * lib/gl_anylinked_list1.h: Likewise.
49791         * lib/gl_anylinked_list2.h: Likewise.
49792         * lib/gl_anyrbtree_list1.h: Likewise.
49793         * lib/gl_anyrbtree_list2.h: Likewise.
49794         * lib/gl_anytree_list1.h: Likewise.
49795         * lib/gl_anytree_list2.h: Likewise.
49796         * lib/gl_anytree_oset.h: Likewise.
49797         * lib/gl_anytreehash_list1.h: Likewise.
49798         * lib/gl_anytreehash_list2.h: Likewise.
49799         * lib/gl_array_list.c: Likewise.
49800         * lib/gl_array_list.h: Likewise.
49801         * lib/gl_array_oset.c: Likewise.
49802         * lib/gl_array_oset.h: Likewise.
49803         * lib/gl_avltree_list.c: Likewise.
49804         * lib/gl_avltree_list.h: Likewise.
49805         * lib/gl_avltree_oset.c: Likewise.
49806         * lib/gl_avltree_oset.h: Likewise.
49807         * lib/gl_avltreehash_list.c: Likewise.
49808         * lib/gl_avltreehash_list.h: Likewise.
49809         * lib/gl_carray_list.c: Likewise.
49810         * lib/gl_carray_list.h: Likewise.
49811         * lib/gl_linked_list.c: Likewise.
49812         * lib/gl_linked_list.h: Likewise.
49813         * lib/gl_linkedhash_list.c: Likewise.
49814         * lib/gl_linkedhash_list.h: Likewise.
49815         * lib/gl_list.c: Likewise.
49816         * lib/gl_list.h: Likewise.
49817         * lib/gl_oset.c: Likewise.
49818         * lib/gl_oset.h: Likewise.
49819         * lib/gl_rbtree_list.c: Likewise.
49820         * lib/gl_rbtree_list.h: Likewise.
49821         * lib/gl_rbtree_oset.c: Likewise.
49822         * lib/gl_rbtree_oset.h: Likewise.
49823         * lib/gl_rbtreehash_list.c: Likewise.
49824         * lib/gl_rbtreehash_list.h: Likewise.
49825         * lib/gl_sublist.c: Likewise.
49826         * lib/gl_sublist.h: Likewise.
49827         * lib/group-member.c: Likewise.
49828         * lib/group-member.h: Likewise.
49829         * lib/hard-locale.c: Likewise.
49830         * lib/hard-locale.h: Likewise.
49831         * lib/hash-pjw.c: Likewise.
49832         * lib/hash-pjw.h: Likewise.
49833         * lib/hash-triple.c: Likewise.
49834         * lib/hash.c: Likewise.
49835         * lib/hash.h: Likewise.
49836         * lib/human.c: Likewise.
49837         * lib/human.h: Likewise.
49838         * lib/i-ring.c: Likewise.
49839         * lib/i-ring.h: Likewise.
49840         * lib/idcache.c: Likewise.
49841         * lib/imaxabs.c: Likewise.
49842         * lib/imaxdiv.c: Likewise.
49843         * lib/inet_pton.c: Likewise.
49844         * lib/inet_pton.h: Likewise.
49845         * lib/intprops.h: Likewise.
49846         * lib/inttostr.c: Likewise.
49847         * lib/inttostr.h: Likewise.
49848         * lib/inttypes.in.h: Likewise.
49849         * lib/isapipe.c: Likewise.
49850         * lib/isdir.c: Likewise.
49851         * lib/isnan.c: Likewise.
49852         * lib/isnan.h: Likewise.
49853         * lib/isnanf.c: Likewise.
49854         * lib/isnanf.h: Likewise.
49855         * lib/isnanl-nolibm.h: Likewise.
49856         * lib/isnanl.c: Likewise.
49857         * lib/isnanl.h: Likewise.
49858         * lib/javacomp.c: Likewise.
49859         * lib/javacomp.h: Likewise.
49860         * lib/javaexec.c: Likewise.
49861         * lib/javaexec.h: Likewise.
49862         * lib/javaversion.c: Likewise.
49863         * lib/javaversion.h: Likewise.
49864         * lib/javaversion.java: Likewise.
49865         * lib/lbrkprop.h: Likewise.
49866         * lib/lchmod.h: Likewise.
49867         * lib/lchown.c: Likewise.
49868         * lib/ldexpl.c: Likewise.
49869         * lib/linebreak.c: Likewise.
49870         * lib/linebreak.h: Likewise.
49871         * lib/linebuffer.c: Likewise.
49872         * lib/linebuffer.h: Likewise.
49873         * lib/locale.in.h: Likewise.
49874         * lib/logl.c: Likewise.
49875         * lib/long-options.c: Likewise.
49876         * lib/long-options.h: Likewise.
49877         * lib/lstat.c: Likewise.
49878         * lib/lstat.h: Likewise.
49879         * lib/math.in.h: Likewise.
49880         * lib/mbchar.c: Likewise.
49881         * lib/mbchar.h: Likewise.
49882         * lib/mbfile.h: Likewise.
49883         * lib/mbiter.h: Likewise.
49884         * lib/mbscasecmp.c: Likewise.
49885         * lib/mbscasestr.c: Likewise.
49886         * lib/mbschr.c: Likewise.
49887         * lib/mbscspn.c: Likewise.
49888         * lib/mbslen.c: Likewise.
49889         * lib/mbsncasecmp.c: Likewise.
49890         * lib/mbsnlen.c: Likewise.
49891         * lib/mbspbrk.c: Likewise.
49892         * lib/mbspcasecmp.c: Likewise.
49893         * lib/mbsrchr.c: Likewise.
49894         * lib/mbssep.c: Likewise.
49895         * lib/mbsspn.c: Likewise.
49896         * lib/mbsstr.c: Likewise.
49897         * lib/mbstok_r.c: Likewise.
49898         * lib/mbswidth.c: Likewise.
49899         * lib/mbswidth.h: Likewise.
49900         * lib/mbuiter.h: Likewise.
49901         * lib/memcasecmp.c: Likewise.
49902         * lib/memcasecmp.h: Likewise.
49903         * lib/memchr.c: Likewise.
49904         * lib/memcmp.c: Likewise.
49905         * lib/memcoll.c: Likewise.
49906         * lib/memcoll.h: Likewise.
49907         * lib/memcpy.c: Likewise.
49908         * lib/memrchr.c: Likewise.
49909         * lib/mkancesdirs.c: Likewise.
49910         * lib/mkdir-p.c: Likewise.
49911         * lib/mkdir-p.h: Likewise.
49912         * lib/mkdir.c: Likewise.
49913         * lib/mkdirat.c: Likewise.
49914         * lib/mkdtemp.c: Likewise.
49915         * lib/mkstemp-safer.c: Likewise.
49916         * lib/mkstemp.c: Likewise.
49917         * lib/modechange.c: Likewise.
49918         * lib/modechange.h: Likewise.
49919         * lib/mountlist.c: Likewise.
49920         * lib/mountlist.h: Likewise.
49921         * lib/mpsort.c: Likewise.
49922         * lib/nanosleep.c: Likewise.
49923         * lib/obstack.c: Likewise.
49924         * lib/obstack.h: Likewise.
49925         * lib/open-safer.c: Likewise.
49926         * lib/open.c: Likewise.
49927         * lib/openat-die.c: Likewise.
49928         * lib/openat-priv.h: Likewise.
49929         * lib/openat-proc.c: Likewise.
49930         * lib/openat.c: Likewise.
49931         * lib/openat.h: Likewise.
49932         * lib/pagealign_alloc.c: Likewise.
49933         * lib/pagealign_alloc.h: Likewise.
49934         * lib/physmem.c: Likewise.
49935         * lib/physmem.h: Likewise.
49936         * lib/pipe-safer.c: Likewise.
49937         * lib/pipe.c: Likewise.
49938         * lib/pipe.h: Likewise.
49939         * lib/posixtm.c: Likewise.
49940         * lib/posixtm.h: Likewise.
49941         * lib/posixver.c: Likewise.
49942         * lib/printf-frexp.c: Likewise.
49943         * lib/printf-frexp.h: Likewise.
49944         * lib/printf-frexpl.c: Likewise.
49945         * lib/printf-frexpl.h: Likewise.
49946         * lib/printf.c: Likewise.
49947         * lib/progname.c: Likewise.
49948         * lib/progname.h: Likewise.
49949         * lib/progreloc.c: Likewise.
49950         * lib/putenv.c: Likewise.
49951         * lib/quote.c: Likewise.
49952         * lib/quote.h: Likewise.
49953         * lib/quotearg.c: Likewise.
49954         * lib/quotearg.h: Likewise.
49955         * lib/raise.c: Likewise.
49956         * lib/readline.c: Likewise.
49957         * lib/readline.h: Likewise.
49958         * lib/readlink.c: Likewise.
49959         * lib/readtokens.c: Likewise.
49960         * lib/readtokens.h: Likewise.
49961         * lib/readtokens0.c: Likewise.
49962         * lib/readtokens0.h: Likewise.
49963         * lib/readutmp.c: Likewise.
49964         * lib/readutmp.h: Likewise.
49965         * lib/realloc.c: Likewise.
49966         * lib/relocwrapper.c: Likewise.
49967         * lib/rename-dest-slash.c: Likewise.
49968         * lib/rename.c: Likewise.
49969         * lib/rmdir.c: Likewise.
49970         * lib/rpmatch.c: Likewise.
49971         * lib/safe-read.c: Likewise.
49972         * lib/safe-read.h: Likewise.
49973         * lib/safe-write.c: Likewise.
49974         * lib/safe-write.h: Likewise.
49975         * lib/same-inode.h: Likewise.
49976         * lib/same.c: Likewise.
49977         * lib/same.h: Likewise.
49978         * lib/save-cwd.c: Likewise.
49979         * lib/save-cwd.h: Likewise.
49980         * lib/savedir.c: Likewise.
49981         * lib/savedir.h: Likewise.
49982         * lib/savewd.c: Likewise.
49983         * lib/savewd.h: Likewise.
49984         * lib/search.in.h: Likewise.
49985         * lib/setenv.c: Likewise.
49986         * lib/setenv.h: Likewise.
49987         * lib/settime.c: Likewise.
49988         * lib/sh-quote.c: Likewise.
49989         * lib/sh-quote.h: Likewise.
49990         * lib/sig2str.c: Likewise.
49991         * lib/sig2str.h: Likewise.
49992         * lib/signal.in.h: Likewise.
49993         * lib/signbitd.c: Likewise.
49994         * lib/signbitf.c: Likewise.
49995         * lib/signbitl.c: Likewise.
49996         * lib/sigprocmask.c: Likewise.
49997         * lib/sincosl.c: Likewise.
49998         * lib/sleep.c: Likewise.
49999         * lib/sprintf.c: Likewise.
50000         * lib/sqrtl.c: Likewise.
50001         * lib/stat-time.h: Likewise.
50002         * lib/stdio--.h: Likewise.
50003         * lib/stdio-safer.h: Likewise.
50004         * lib/stdlib--.h: Likewise.
50005         * lib/stdlib-safer.h: Likewise.
50006         * lib/stdlib.in.h: Likewise.
50007         * lib/stpcpy.c: Likewise.
50008         * lib/stpncpy.c: Likewise.
50009         * lib/strchrnul.c: Likewise.
50010         * lib/strcspn.c: Likewise.
50011         * lib/strerror.c: Likewise.
50012         * lib/strftime.c: Likewise.
50013         * lib/strftime.h: Likewise.
50014         * lib/striconveh.c: Likewise.
50015         * lib/striconveh.h: Likewise.
50016         * lib/striconveha.c: Likewise.
50017         * lib/striconveha.h: Likewise.
50018         * lib/stripslash.c: Likewise.
50019         * lib/strnlen1.c: Likewise.
50020         * lib/strnlen1.h: Likewise.
50021         * lib/strtod.c: Likewise.
50022         * lib/strtoimax.c: Likewise.
50023         * lib/strtok_r.c: Likewise.
50024         * lib/strtol.c: Likewise.
50025         * lib/strtoll.c: Likewise.
50026         * lib/strtoul.c: Likewise.
50027         * lib/strtoull.c: Likewise.
50028         * lib/sysexits.in.h: Likewise.
50029         * lib/tempname.c: Likewise.
50030         * lib/tempname.h: Likewise.
50031         * lib/timespec.h: Likewise.
50032         * lib/tls.c: Likewise.
50033         * lib/tls.h: Likewise.
50034         * lib/tmpdir.c: Likewise.
50035         * lib/tmpdir.h: Likewise.
50036         * lib/tmpfile-safer.c: Likewise.
50037         * lib/tmpfile.c: Likewise.
50038         * lib/trigl.c: Likewise.
50039         * lib/trigl.h: Likewise.
50040         * lib/trim.c: Likewise.
50041         * lib/trim.h: Likewise.
50042         * lib/trunc.c: Likewise.
50043         * lib/truncf.c: Likewise.
50044         * lib/truncl.c: Likewise.
50045         * lib/tsearch.c: Likewise.
50046         * lib/unicodeio.c: Likewise.
50047         * lib/unicodeio.h: Likewise.
50048         * lib/unistd--.h: Likewise.
50049         * lib/unistd-safer.h: Likewise.
50050         * lib/unistdio/ulc-fprintf.c: Likewise.
50051         * lib/unistdio/ulc-vfprintf.c: Likewise.
50052         * lib/unlinkdir.c: Likewise.
50053         * lib/unlinkdir.h: Likewise.
50054         * lib/unlocked-io.h: Likewise.
50055         * lib/unsetenv.c: Likewise.
50056         * lib/userspec.c: Likewise.
50057         * lib/utime.c: Likewise.
50058         * lib/utimecmp.c: Likewise.
50059         * lib/utimecmp.h: Likewise.
50060         * lib/utimens.c: Likewise.
50061         * lib/verify.h: Likewise.
50062         * lib/verror.c: Likewise.
50063         * lib/verror.h: Likewise.
50064         * lib/version-etc-fsf.c: Likewise.
50065         * lib/version-etc.c: Likewise.
50066         * lib/version-etc.h: Likewise.
50067         * lib/vfprintf.c: Likewise.
50068         * lib/vprintf.c: Likewise.
50069         * lib/vsprintf.c: Likewise.
50070         * lib/w32spawn.h: Likewise.
50071         * lib/wait-process.c: Likewise.
50072         * lib/wait-process.h: Likewise.
50073         * lib/wcwidth.c: Likewise.
50074         * lib/write-any-file.c: Likewise.
50075         * lib/xalloc-die.c: Likewise.
50076         * lib/xalloc.h: Likewise.
50077         * lib/xasprintf.c: Likewise.
50078         * lib/xgetcwd.c: Likewise.
50079         * lib/xgetcwd.h: Likewise.
50080         * lib/xgetdomainname.c: Likewise.
50081         * lib/xgetdomainname.h: Likewise.
50082         * lib/xgethostname.c: Likewise.
50083         * lib/xmalloc.c: Likewise.
50084         * lib/xmalloca.c: Likewise.
50085         * lib/xmalloca.h: Likewise.
50086         * lib/xmemcoll.c: Likewise.
50087         * lib/xnanosleep.c: Likewise.
50088         * lib/xreadlink.c: Likewise.
50089         * lib/xreadlink.h: Likewise.
50090         * lib/xsetenv.c: Likewise.
50091         * lib/xsetenv.h: Likewise.
50092         * lib/xstriconv.c: Likewise.
50093         * lib/xstriconv.h: Likewise.
50094         * lib/xstrndup.c: Likewise.
50095         * lib/xstrndup.h: Likewise.
50096         * lib/xstrtod.c: Likewise.
50097         * lib/xstrtod.h: Likewise.
50098         * lib/xstrtol-error.c: Likewise.
50099         * lib/xstrtol.c: Likewise.
50100         * lib/xstrtol.h: Likewise.
50101         * lib/xtime.h: Likewise.
50102         * lib/xvasprintf.c: Likewise.
50103         * lib/xvasprintf.h: Likewise.
50104         * lib/yesno.c: Likewise.
50105         * lib/yesno.h: Likewise.
50106         * posix-modules: Likewise.
50107         * tests/test-alloca-opt.c: Likewise.
50108         * tests/test-arcfour.c: Likewise.
50109         * tests/test-arctwo.c: Likewise.
50110         * tests/test-argmatch.c: Likewise.
50111         * tests/test-argp-2.sh: Likewise.
50112         * tests/test-argp.c: Likewise.
50113         * tests/test-arpa_inet.c: Likewise.
50114         * tests/test-array_list.c: Likewise.
50115         * tests/test-array_oset.c: Likewise.
50116         * tests/test-atexit.c: Likewise.
50117         * tests/test-avltree_list.c: Likewise.
50118         * tests/test-avltree_oset.c: Likewise.
50119         * tests/test-avltreehash_list.c: Likewise.
50120         * tests/test-base64.c: Likewise.
50121         * tests/test-binary-io.c: Likewise.
50122         * tests/test-byteswap.c: Likewise.
50123         * tests/test-c-ctype.c: Likewise.
50124         * tests/test-c-strcasecmp.c: Likewise.
50125         * tests/test-c-strcasestr.c: Likewise.
50126         * tests/test-c-strncasecmp.c: Likewise.
50127         * tests/test-c-strstr.c: Likewise.
50128         * tests/test-canonicalize-lgpl.c: Likewise.
50129         * tests/test-canonicalize.c: Likewise.
50130         * tests/test-carray_list.c: Likewise.
50131         * tests/test-ceilf.c: Likewise.
50132         * tests/test-ceill.c: Likewise.
50133         * tests/test-count-one-bits.c: Likewise.
50134         * tests/test-crc.c: Likewise.
50135         * tests/test-dirname.c: Likewise.
50136         * tests/test-fbufmode.c: Likewise.
50137         * tests/test-fcntl.c: Likewise.
50138         * tests/test-fflush.c: Likewise.
50139         * tests/test-floorf.c: Likewise.
50140         * tests/test-floorl.c: Likewise.
50141         * tests/test-fopen.c: Likewise.
50142         * tests/test-fprintf-posix.c: Likewise.
50143         * tests/test-fprintf-posix.h: Likewise.
50144         * tests/test-fpurge.c: Likewise.
50145         * tests/test-freadable.c: Likewise.
50146         * tests/test-freadahead.c: Likewise.
50147         * tests/test-freading.c: Likewise.
50148         * tests/test-freopen.c: Likewise.
50149         * tests/test-frexp.c: Likewise.
50150         * tests/test-frexpl.c: Likewise.
50151         * tests/test-fseek.c: Likewise.
50152         * tests/test-fseeko.c: Likewise.
50153         * tests/test-fseterr.c: Likewise.
50154         * tests/test-fstrcmp.c: Likewise.
50155         * tests/test-ftell.c: Likewise.
50156         * tests/test-ftello.c: Likewise.
50157         * tests/test-fwritable.c: Likewise.
50158         * tests/test-fwriting.c: Likewise.
50159         * tests/test-getaddrinfo.c: Likewise.
50160         * tests/test-getpass.c: Likewise.
50161         * tests/test-gettimeofday.c: Likewise.
50162         * tests/test-hmac-md5.c: Likewise.
50163         * tests/test-hmac-sha1.c: Likewise.
50164         * tests/test-iconv.c: Likewise.
50165         * tests/test-iconvme.c: Likewise.
50166         * tests/test-inttypes.c: Likewise.
50167         * tests/test-isnan.c: Likewise.
50168         * tests/test-isnanf.c: Likewise.
50169         * tests/test-isnanl-nolibm.c: Likewise.
50170         * tests/test-isnanl.c: Likewise.
50171         * tests/test-isnanl.h: Likewise.
50172         * tests/test-ldexpl.c: Likewise.
50173         * tests/test-linked_list.c: Likewise.
50174         * tests/test-linkedhash_list.c: Likewise.
50175         * tests/test-locale.c: Likewise.
50176         * tests/test-localename.c: Likewise.
50177         * tests/test-lock.c: Likewise.
50178         * tests/test-lseek.c: Likewise.
50179         * tests/test-malloca.c: Likewise.
50180         * tests/test-math.c: Likewise.
50181         * tests/test-mbscasecmp.c: Likewise.
50182         * tests/test-mbscasestr1.c: Likewise.
50183         * tests/test-mbscasestr2.c: Likewise.
50184         * tests/test-mbscasestr3.c: Likewise.
50185         * tests/test-mbscasestr4.c: Likewise.
50186         * tests/test-mbschr.c: Likewise.
50187         * tests/test-mbscspn.c: Likewise.
50188         * tests/test-mbsncasecmp.c: Likewise.
50189         * tests/test-mbspbrk.c: Likewise.
50190         * tests/test-mbspcasecmp.c: Likewise.
50191         * tests/test-mbsrchr.c: Likewise.
50192         * tests/test-mbsspn.c: Likewise.
50193         * tests/test-mbsstr1.c: Likewise.
50194         * tests/test-mbsstr2.c: Likewise.
50195         * tests/test-mbsstr3.c: Likewise.
50196         * tests/test-md5.c: Likewise.
50197         * tests/test-memmem.c: Likewise.
50198         * tests/test-netinet_in.c: Likewise.
50199         * tests/test-open.c: Likewise.
50200         * tests/test-printf-frexp.c: Likewise.
50201         * tests/test-printf-frexpl.c: Likewise.
50202         * tests/test-printf-posix.c: Likewise.
50203         * tests/test-printf-posix.h: Likewise.
50204         * tests/test-rbtree_list.c: Likewise.
50205         * tests/test-rbtree_oset.c: Likewise.
50206         * tests/test-rbtreehash_list.c: Likewise.
50207         * tests/test-read-file.c: Likewise.
50208         * tests/test-rijndael.c: Likewise.
50209         * tests/test-search.c: Likewise.
50210         * tests/test-signbit.c: Likewise.
50211         * tests/test-sleep.c: Likewise.
50212         * tests/test-snprintf-posix.c: Likewise.
50213         * tests/test-snprintf-posix.h: Likewise.
50214         * tests/test-snprintf.c: Likewise.
50215         * tests/test-sprintf-posix.c: Likewise.
50216         * tests/test-sprintf-posix.h: Likewise.
50217         * tests/test-stat-time.c: Likewise.
50218         * tests/test-stdbool.c: Likewise.
50219         * tests/test-stdint.c: Likewise.
50220         * tests/test-stdio.c: Likewise.
50221         * tests/test-stdlib.c: Likewise.
50222         * tests/test-stpncpy.c: Likewise.
50223         * tests/test-strcasestr.c: Likewise.
50224         * tests/test-striconv.c: Likewise.
50225         * tests/test-striconveh.c: Likewise.
50226         * tests/test-striconveha.c: Likewise.
50227         * tests/test-string.c: Likewise.
50228         * tests/test-sys_select.c: Likewise.
50229         * tests/test-sys_socket.c: Likewise.
50230         * tests/test-sys_stat.c: Likewise.
50231         * tests/test-sys_time.c: Likewise.
50232         * tests/test-sysexits.c: Likewise.
50233         * tests/test-time.c: Likewise.
50234         * tests/test-tls.c: Likewise.
50235         * tests/test-trunc.c: Likewise.
50236         * tests/test-truncf.c: Likewise.
50237         * tests/test-truncl.c: Likewise.
50238         * tests/test-unistd.c: Likewise.
50239         * tests/test-vasnprintf-posix.c: Likewise.
50240         * tests/test-vasnprintf-posix2.c: Likewise.
50241         * tests/test-vasnprintf.c: Likewise.
50242         * tests/test-vasprintf-posix.c: Likewise.
50243         * tests/test-vasprintf.c: Likewise.
50244         * tests/test-verify.c: Likewise.
50245         * tests/test-vfprintf-posix.c: Likewise.
50246         * tests/test-vprintf-posix.c: Likewise.
50247         * tests/test-vsnprintf-posix.c: Likewise.
50248         * tests/test-vsnprintf.c: Likewise.
50249         * tests/test-vsprintf-posix.c: Likewise.
50250         * tests/test-wchar.c: Likewise.
50251         * tests/test-wctype.c: Likewise.
50252         * tests/test-wcwidth.c: Likewise.
50253         * tests/test-xstrtol.c: Likewise.
50254         * tests/test-xvasprintf.c: Likewise.
50255         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50256         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50257         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50258         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50259         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50260         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50261         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50262         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50263         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50264         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50265         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50266         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50267         * tests/uniname/test-uninames.c: Likewise.
50268         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50269         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
50270         * tests/unistdio/test-u16-printf1.h: Likewise.
50271         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50272         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50273         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50274         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50275         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50276         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50277         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50278         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
50279         * tests/unistdio/test-u32-printf1.h: Likewise.
50280         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50281         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50282         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50283         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50284         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50285         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50286         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50287         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
50288         * tests/unistdio/test-u8-printf1.h: Likewise.
50289         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50290         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50291         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50292         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50293         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50294         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50295         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50296         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
50297         * tests/unistdio/test-ulc-printf1.h: Likewise.
50298         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50299         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50300         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50301         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50302         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50303         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50304         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50305         * tests/uniwidth/test-u16-width.c: Likewise.
50306         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50307         * tests/uniwidth/test-u32-width.c: Likewise.
50308         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50309         * tests/uniwidth/test-u8-width.c: Likewise.
50310         * tests/uniwidth/test-uc_width.c: Likewise.
50311         * config/srclist-update: Likewise.
50312         (fixlicense): Update to GPLv3+.
50313
50314         Change copyright notice from LGPLv2.1+ to LGPLv3+.
50315         * tests/test-tsearch.c: Change copyright notice.
50316
50317         Change copyright notice from LGPLv2.0+ to LGPLv3+.
50318         * lib/c-strcaseeq.h: Change copyright notice.
50319         * lib/streq.h: Likewise.
50320         * lib/uniconv.h: Likewise.
50321         * lib/uniconv/u-conv-from-enc.h: Likewise.
50322         * lib/uniconv/u-conv-to-enc.h: Likewise.
50323         * lib/uniconv/u-strconv-from-enc.h: Likewise.
50324         * lib/uniconv/u-strconv-to-enc.h: Likewise.
50325         * lib/uniconv/u16-conv-from-enc.c: Likewise.
50326         * lib/uniconv/u16-conv-to-enc.c: Likewise.
50327         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50328         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50329         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50330         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50331         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50332         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50333         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50334         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50335         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50336         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50337         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50338         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50339         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50340         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50341         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50342         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50343         * lib/uniname.h: Likewise.
50344         * lib/uniname/uniname.c: Likewise.
50345         * lib/unistdio.h: Likewise.
50346         * lib/unistdio/u-asnprintf.h: Likewise.
50347         * lib/unistdio/u-asprintf.h: Likewise.
50348         * lib/unistdio/u-printf-args.c: Likewise.
50349         * lib/unistdio/u-printf-args.h: Likewise.
50350         * lib/unistdio/u-printf-parse.h: Likewise.
50351         * lib/unistdio/u-snprintf.h: Likewise.
50352         * lib/unistdio/u-sprintf.h: Likewise.
50353         * lib/unistdio/u-vasprintf.h: Likewise.
50354         * lib/unistdio/u-vsnprintf.h: Likewise.
50355         * lib/unistdio/u-vsprintf.h: Likewise.
50356         * lib/unistdio/u16-asnprintf.c: Likewise.
50357         * lib/unistdio/u16-asprintf.c: Likewise.
50358         * lib/unistdio/u16-printf-parse.c: Likewise.
50359         * lib/unistdio/u16-snprintf.c: Likewise.
50360         * lib/unistdio/u16-sprintf.c: Likewise.
50361         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50362         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50363         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50364         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50365         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50366         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50367         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50368         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50369         * lib/unistdio/u16-vasnprintf.c: Likewise.
50370         * lib/unistdio/u16-vasprintf.c: Likewise.
50371         * lib/unistdio/u16-vsnprintf.c: Likewise.
50372         * lib/unistdio/u16-vsprintf.c: Likewise.
50373         * lib/unistdio/u32-asnprintf.c: Likewise.
50374         * lib/unistdio/u32-asprintf.c: Likewise.
50375         * lib/unistdio/u32-printf-parse.c: Likewise.
50376         * lib/unistdio/u32-snprintf.c: Likewise.
50377         * lib/unistdio/u32-sprintf.c: Likewise.
50378         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50379         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50380         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50381         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50382         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50383         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50384         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50385         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50386         * lib/unistdio/u32-vasnprintf.c: Likewise.
50387         * lib/unistdio/u32-vasprintf.c: Likewise.
50388         * lib/unistdio/u32-vsnprintf.c: Likewise.
50389         * lib/unistdio/u32-vsprintf.c: Likewise.
50390         * lib/unistdio/u8-asnprintf.c: Likewise.
50391         * lib/unistdio/u8-asprintf.c: Likewise.
50392         * lib/unistdio/u8-printf-parse.c: Likewise.
50393         * lib/unistdio/u8-snprintf.c: Likewise.
50394         * lib/unistdio/u8-sprintf.c: Likewise.
50395         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50396         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50397         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50398         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50399         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50400         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50401         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
50402         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
50403         * lib/unistdio/u8-vasnprintf.c: Likewise.
50404         * lib/unistdio/u8-vasprintf.c: Likewise.
50405         * lib/unistdio/u8-vsnprintf.c: Likewise.
50406         * lib/unistdio/u8-vsprintf.c: Likewise.
50407         * lib/unistdio/ulc-asnprintf.c: Likewise.
50408         * lib/unistdio/ulc-asprintf.c: Likewise.
50409         * lib/unistdio/ulc-printf-parse.c: Likewise.
50410         * lib/unistdio/ulc-snprintf.c: Likewise.
50411         * lib/unistdio/ulc-sprintf.c: Likewise.
50412         * lib/unistdio/ulc-vasnprintf.c: Likewise.
50413         * lib/unistdio/ulc-vasprintf.c: Likewise.
50414         * lib/unistdio/ulc-vsnprintf.c: Likewise.
50415         * lib/unistdio/ulc-vsprintf.c: Likewise.
50416         * lib/unistr.h: Likewise.
50417         * lib/unistr/u-cpy-alloc.h: Likewise.
50418         * lib/unistr/u-cpy.h: Likewise.
50419         * lib/unistr/u-endswith.h: Likewise.
50420         * lib/unistr/u-move.h: Likewise.
50421         * lib/unistr/u-set.h: Likewise.
50422         * lib/unistr/u-startswith.h: Likewise.
50423         * lib/unistr/u-stpcpy.h: Likewise.
50424         * lib/unistr/u-stpncpy.h: Likewise.
50425         * lib/unistr/u-strcat.h: Likewise.
50426         * lib/unistr/u-strcpy.h: Likewise.
50427         * lib/unistr/u-strcspn.h: Likewise.
50428         * lib/unistr/u-strdup.h: Likewise.
50429         * lib/unistr/u-strlen.h: Likewise.
50430         * lib/unistr/u-strncat.h: Likewise.
50431         * lib/unistr/u-strncpy.h: Likewise.
50432         * lib/unistr/u-strnlen.h: Likewise.
50433         * lib/unistr/u-strpbrk.h: Likewise.
50434         * lib/unistr/u-strspn.h: Likewise.
50435         * lib/unistr/u-strstr.h: Likewise.
50436         * lib/unistr/u-strtok.h: Likewise.
50437         * lib/unistr/u16-check.c: Likewise.
50438         * lib/unistr/u16-chr.c: Likewise.
50439         * lib/unistr/u16-cmp.c: Likewise.
50440         * lib/unistr/u16-cpy-alloc.c: Likewise.
50441         * lib/unistr/u16-cpy.c: Likewise.
50442         * lib/unistr/u16-endswith.c: Likewise.
50443         * lib/unistr/u16-mblen.c: Likewise.
50444         * lib/unistr/u16-mbsnlen.c: Likewise.
50445         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50446         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50447         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50448         * lib/unistr/u16-mbtouc.c: Likewise.
50449         * lib/unistr/u16-mbtoucr.c: Likewise.
50450         * lib/unistr/u16-move.c: Likewise.
50451         * lib/unistr/u16-next.c: Likewise.
50452         * lib/unistr/u16-prev.c: Likewise.
50453         * lib/unistr/u16-set.c: Likewise.
50454         * lib/unistr/u16-startswith.c: Likewise.
50455         * lib/unistr/u16-stpcpy.c: Likewise.
50456         * lib/unistr/u16-stpncpy.c: Likewise.
50457         * lib/unistr/u16-strcat.c: Likewise.
50458         * lib/unistr/u16-strchr.c: Likewise.
50459         * lib/unistr/u16-strcmp.c: Likewise.
50460         * lib/unistr/u16-strcpy.c: Likewise.
50461         * lib/unistr/u16-strcspn.c: Likewise.
50462         * lib/unistr/u16-strdup.c: Likewise.
50463         * lib/unistr/u16-strlen.c: Likewise.
50464         * lib/unistr/u16-strmblen.c: Likewise.
50465         * lib/unistr/u16-strmbtouc.c: Likewise.
50466         * lib/unistr/u16-strncat.c: Likewise.
50467         * lib/unistr/u16-strncmp.c: Likewise.
50468         * lib/unistr/u16-strncpy.c: Likewise.
50469         * lib/unistr/u16-strnlen.c: Likewise.
50470         * lib/unistr/u16-strpbrk.c: Likewise.
50471         * lib/unistr/u16-strrchr.c: Likewise.
50472         * lib/unistr/u16-strspn.c: Likewise.
50473         * lib/unistr/u16-strstr.c: Likewise.
50474         * lib/unistr/u16-strtok.c: Likewise.
50475         * lib/unistr/u16-to-u32.c: Likewise.
50476         * lib/unistr/u16-to-u8.c: Likewise.
50477         * lib/unistr/u16-uctomb-aux.c: Likewise.
50478         * lib/unistr/u16-uctomb.c: Likewise.
50479         * lib/unistr/u32-check.c: Likewise.
50480         * lib/unistr/u32-chr.c: Likewise.
50481         * lib/unistr/u32-cmp.c: Likewise.
50482         * lib/unistr/u32-cpy-alloc.c: Likewise.
50483         * lib/unistr/u32-cpy.c: Likewise.
50484         * lib/unistr/u32-endswith.c: Likewise.
50485         * lib/unistr/u32-mblen.c: Likewise.
50486         * lib/unistr/u32-mbsnlen.c: Likewise.
50487         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50488         * lib/unistr/u32-mbtouc.c: Likewise.
50489         * lib/unistr/u32-mbtoucr.c: Likewise.
50490         * lib/unistr/u32-move.c: Likewise.
50491         * lib/unistr/u32-next.c: Likewise.
50492         * lib/unistr/u32-prev.c: Likewise.
50493         * lib/unistr/u32-set.c: Likewise.
50494         * lib/unistr/u32-startswith.c: Likewise.
50495         * lib/unistr/u32-stpcpy.c: Likewise.
50496         * lib/unistr/u32-stpncpy.c: Likewise.
50497         * lib/unistr/u32-strcat.c: Likewise.
50498         * lib/unistr/u32-strchr.c: Likewise.
50499         * lib/unistr/u32-strcmp.c: Likewise.
50500         * lib/unistr/u32-strcpy.c: Likewise.
50501         * lib/unistr/u32-strcspn.c: Likewise.
50502         * lib/unistr/u32-strdup.c: Likewise.
50503         * lib/unistr/u32-strlen.c: Likewise.
50504         * lib/unistr/u32-strmblen.c: Likewise.
50505         * lib/unistr/u32-strmbtouc.c: Likewise.
50506         * lib/unistr/u32-strncat.c: Likewise.
50507         * lib/unistr/u32-strncmp.c: Likewise.
50508         * lib/unistr/u32-strncpy.c: Likewise.
50509         * lib/unistr/u32-strnlen.c: Likewise.
50510         * lib/unistr/u32-strpbrk.c: Likewise.
50511         * lib/unistr/u32-strrchr.c: Likewise.
50512         * lib/unistr/u32-strspn.c: Likewise.
50513         * lib/unistr/u32-strstr.c: Likewise.
50514         * lib/unistr/u32-strtok.c: Likewise.
50515         * lib/unistr/u32-to-u16.c: Likewise.
50516         * lib/unistr/u32-to-u8.c: Likewise.
50517         * lib/unistr/u32-uctomb.c: Likewise.
50518         * lib/unistr/u8-check.c: Likewise.
50519         * lib/unistr/u8-chr.c: Likewise.
50520         * lib/unistr/u8-cmp.c: Likewise.
50521         * lib/unistr/u8-cpy-alloc.c: Likewise.
50522         * lib/unistr/u8-cpy.c: Likewise.
50523         * lib/unistr/u8-endswith.c: Likewise.
50524         * lib/unistr/u8-mblen.c: Likewise.
50525         * lib/unistr/u8-mbsnlen.c: Likewise.
50526         * lib/unistr/u8-mbtouc-aux.c: Likewise.
50527         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50528         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50529         * lib/unistr/u8-mbtouc.c: Likewise.
50530         * lib/unistr/u8-mbtoucr.c: Likewise.
50531         * lib/unistr/u8-move.c: Likewise.
50532         * lib/unistr/u8-next.c: Likewise.
50533         * lib/unistr/u8-prev.c: Likewise.
50534         * lib/unistr/u8-set.c: Likewise.
50535         * lib/unistr/u8-startswith.c: Likewise.
50536         * lib/unistr/u8-stpcpy.c: Likewise.
50537         * lib/unistr/u8-stpncpy.c: Likewise.
50538         * lib/unistr/u8-strcat.c: Likewise.
50539         * lib/unistr/u8-strchr.c: Likewise.
50540         * lib/unistr/u8-strcmp.c: Likewise.
50541         * lib/unistr/u8-strcpy.c: Likewise.
50542         * lib/unistr/u8-strcspn.c: Likewise.
50543         * lib/unistr/u8-strdup.c: Likewise.
50544         * lib/unistr/u8-strlen.c: Likewise.
50545         * lib/unistr/u8-strmblen.c: Likewise.
50546         * lib/unistr/u8-strmbtouc.c: Likewise.
50547         * lib/unistr/u8-strncat.c: Likewise.
50548         * lib/unistr/u8-strncmp.c: Likewise.
50549         * lib/unistr/u8-strncpy.c: Likewise.
50550         * lib/unistr/u8-strnlen.c: Likewise.
50551         * lib/unistr/u8-strpbrk.c: Likewise.
50552         * lib/unistr/u8-strrchr.c: Likewise.
50553         * lib/unistr/u8-strspn.c: Likewise.
50554         * lib/unistr/u8-strstr.c: Likewise.
50555         * lib/unistr/u8-strtok.c: Likewise.
50556         * lib/unistr/u8-to-u16.c: Likewise.
50557         * lib/unistr/u8-to-u32.c: Likewise.
50558         * lib/unistr/u8-uctomb-aux.c: Likewise.
50559         * lib/unistr/u8-uctomb.c: Likewise.
50560         * lib/unitypes.h: Likewise.
50561         * lib/uniwidth.h: Likewise.
50562         * lib/uniwidth/cjk.h: Likewise.
50563         * lib/uniwidth/u16-strwidth.c: Likewise.
50564         * lib/uniwidth/u16-width.c: Likewise.
50565         * lib/uniwidth/u32-strwidth.c: Likewise.
50566         * lib/uniwidth/u32-width.c: Likewise.
50567         * lib/uniwidth/u8-strwidth.c: Likewise.
50568         * lib/uniwidth/u8-width.c: Likewise.
50569         * lib/uniwidth/width.c: Likewise.
50570
50571 2007-10-07  Bruno Haible  <bruno@clisp.org>
50572
50573         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
50574         The file is still under LGPL (see modules/inttypes).
50575
50576 2007-10-06  Bruno Haible  <bruno@clisp.org>
50577
50578         * modules/trunc (Dependencies): Add 'extensions'.
50579         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
50580         Reported by Ben Pfaff <blp@gnu.org>.
50581
50582 2007-10-06  Bruno Haible  <bruno@clisp.org>
50583
50584         * modules/freopen-tests: New file.
50585         * tests/test-freopen.c: New file.
50586
50587         * modules/fopen-tests: New file.
50588         * tests/test-fopen.c: New file.
50589
50590         * modules/fopen: New file.
50591         * lib/fopen.c: New file.
50592         * m4/fopen.m4: New file.
50593         * modules/freopen: New file.
50594         * lib/freopen.c: New file.
50595         * m4/freopen.m4: New file.
50596         * lib/stdio.in.h (fopen, freopen): New declarations.
50597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
50598         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50599         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
50600         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50601         * doc/functions/fopen.texi: Mention the 'fopen' module.
50602         * doc/functions/freopen.texi: Mention the 'freopen' module.
50603
50604 2007-10-06  Bruno Haible  <bruno@clisp.org>
50605
50606         * modules/open-tests: New file.
50607         * tests/test-open.c: New file.
50608
50609         * modules/open: New file.
50610         * lib/open.c: New file.
50611         * m4/open.m4: New file.
50612         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
50613         lib/open.c does.
50614         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
50615         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
50616         macros.
50617         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
50618         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
50619         REPLACE_OPEN.
50620         * doc/functions/open.texi: Mention the 'open' module.
50621
50622 2007-10-04  Bruno Haible  <bruno@clisp.org>
50623
50624         * modules/ceill-tests: New file.
50625         * tests/test-ceill.c: New file.
50626
50627         * modules/ceill: New file.
50628         * lib/ceill.c: Replace entire file.
50629         * m4/ceill.m4: New file.
50630         * lib/math.in.h (ceill): Replace declaration.
50631         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
50632         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
50633         * doc/functions/ceill.texi: Mention the 'ceill' module.
50634         * modules/mathl (Files): Remove lib/ceill.c.
50635         (Depends-on): Add ceill.
50636
50637 2007-10-04  Bruno Haible  <bruno@clisp.org>
50638
50639         * modules/ceilf-tests: New file.
50640         * tests/test-ceilf.c: New file.
50641
50642         * modules/ceilf: New file.
50643         * lib/ceil.c: New file.
50644         * lib/ceilf.c: New file.
50645         * m4/ceilf.m4: New file.
50646         * lib/math.in.h (ceilf): New declaration.
50647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
50648         HAVE_DECL_CEILF.
50649         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
50650         HAVE_DECL_CEILF.
50651         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
50652
50653 2007-10-04  Bruno Haible  <bruno@clisp.org>
50654
50655         * modules/floorl-tests: New file.
50656         * tests/test-floorl.c: New file.
50657
50658         * modules/floorl: New file.
50659         * lib/floorl.c: Replace entire file.
50660         * m4/floorl.m4: New file.
50661         * lib/math.in.h (floorl): Replace declaration.
50662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
50663         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
50664         * doc/functions/floorl.texi: Mention the 'floorl' module.
50665         * modules/mathl (Files): Remove lib/floorl.c.
50666         (Depends-on): Add floorl.
50667
50668 2007-10-04  Bruno Haible  <bruno@clisp.org>
50669
50670         * modules/floorf-tests: New file.
50671         * tests/test-floorf.c: New file.
50672
50673         * modules/floorf: New file.
50674         * lib/floor.c: New file.
50675         * lib/floorf.c: New file.
50676         * m4/floorf.m4: New file.
50677         * lib/math.in.h (floorf): New declaration.
50678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
50679         HAVE_DECL_FLOORF.
50680         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
50681         HAVE_DECL_FLOORF.
50682         * doc/functions/floorf.texi: Mention the 'floorf' module.
50683
50684 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
50685             Bruno Haible  <bruno@clisp.org>
50686
50687         Advertise for the Git server instead of the CVS server.
50688         * doc/gnulib-intro.texi (Steady Development): Mention the Git
50689         repository instead of the CVS one.
50690         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
50691         about all VCS systems generically.
50692         * doc/gnulib.texi (Introduction): Capitalize `Git'.
50693
50694 2007-10-04  Bruno Haible  <bruno@clisp.org>
50695
50696         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
50697         means.
50698         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
50699
50700 2007-10-04  Bruno Haible  <bruno@clisp.org>
50701
50702         * modules/truncl-tests: New file.
50703         * tests/test-truncl.c: New file.
50704
50705         * modules/truncl: New file.
50706         * lib/truncl.c: New file.
50707         * m4/truncl.m4: New file.
50708         * lib/math.in.h (truncl): New declaration.
50709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
50710         HAVE_DECL_TRUNCL.
50711         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
50712         HAVE_DECL_TRUNCL.
50713         * doc/functions/truncl.texi: Mention the 'truncl' module.
50714
50715 2007-10-04  Bruno Haible  <bruno@clisp.org>
50716
50717         * modules/truncf-tests: New file.
50718         * tests/test-truncf.c: New file.
50719
50720         * modules/truncf: New file.
50721         * lib/trunc.c: Make paramerizable through USE_* macros.
50722         * lib/truncf.c: New file.
50723         * m4/truncf.m4: New file.
50724         * lib/math.in.h (truncf): New declaration.
50725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
50726         HAVE_DECL_TRUNCF.
50727         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
50728         HAVE_DECL_TRUNCF.
50729         * doc/functions/truncf.texi: Mention the 'truncf' module.
50730
50731 2007-10-03  Bruno Haible  <bruno@clisp.org>
50732
50733         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50734         augmentation also for tests modules.
50735         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
50736         * modules/atexit-tests (Makefile.am): Likewise.
50737         * modules/binary-io-tests (Makefile.am): Likewise.
50738         * modules/c-strcase-tests (Makefile.am): Likewise.
50739         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
50740         * modules/canonicalize-tests (Makefile.am): Likewise.
50741         * modules/closein-tests (Makefile.am): Likewise.
50742         * modules/fprintf-posix-tests (Makefile.am): Likewise.
50743         * modules/freadahead-tests (Makefile.am): Likewise.
50744         * modules/fseek-tests (Makefile.am): Likewise.
50745         * modules/fseeko-tests (Makefile.am): Likewise.
50746         * modules/ftell-tests (Makefile.am): Likewise.
50747         * modules/ftello-tests (Makefile.am): Likewise.
50748         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
50749         * modules/isnanl-tests (Makefile.am): Likewise.
50750         * modules/lseek-tests (Makefile.am): Likewise.
50751         * modules/mbscasecmp-tests (Makefile.am): Likewise.
50752         * modules/mbscasestr-tests (Makefile.am): Likewise.
50753         * modules/mbschr-tests (Makefile.am): Likewise.
50754         * modules/mbscspn-tests (Makefile.am): Likewise.
50755         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
50756         * modules/mbspbrk-tests (Makefile.am): Likewise.
50757         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
50758         * modules/mbsrchr-tests (Makefile.am): Likewise.
50759         * modules/mbsspn-tests (Makefile.am): Likewise.
50760         * modules/mbsstr-tests (Makefile.am): Likewise.
50761         * modules/printf-posix-tests (Makefile.am): Likewise.
50762         * modules/snprintf-posix-tests (Makefile.am): Likewise.
50763         * modules/sprintf-posix-tests (Makefile.am): Likewise.
50764         * modules/tsearch-tests (Makefile.am): Likewise.
50765         * modules/uniname/uniname-tests (Makefile.am): Likewise.
50766         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
50767         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
50768         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
50769         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
50770         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
50771         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
50772         * modules/vprintf-posix-tests (Makefile.am): Likewise.
50773         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
50774         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
50775         * modules/xstrtoimax-tests (Makefile.am): Likewise.
50776         * modules/xstrtol-tests (Makefile.am): Likewise.
50777         * modules/xstrtoumax-tests (Makefile.am): Likewise.
50778         * modules/yesno-tests (Makefile.am): Likewise.
50779
50780 2007-10-03  Bruno Haible  <bruno@clisp.org>
50781
50782         * modules/trunc-tests: New file.
50783         * tests/test-trunc.c: New file.
50784
50785         * modules/trunc: New file.
50786         * lib/trunc.c: New file.
50787         * m4/trunc.m4: New file.
50788         * lib/math.in.h (trunc): New declaration.
50789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
50790         HAVE_DECL_TRUNC.
50791         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
50792         HAVE_DECL_TRUNC.
50793         * doc/functions/trunc.texi: Mention the 'trunc' module.
50794
50795 2007-10-03  Bruno Haible  <bruno@clisp.org>
50796
50797         * tests/test-fpending.c: New file, mostly copied
50798         from coreutils/lib/t-fpending.c.
50799         * modules/fpending-tests: New file.
50800
50801 2007-10-03  Bruno Haible  <bruno@clisp.org>
50802
50803         Port the stdio extensions to QNX (untested).
50804         * lib/fseterr.c (fseterr): Add support for QNX.
50805         * lib/fbufmode.c (fbufmode): Likewise.
50806         * lib/freadable.c (freadable): Likewise.
50807         * lib/fwritable.c (fwritable): Likewise.
50808         * lib/freading.c (freading): Likewise.
50809         * lib/fwriting.c (fwriting): Likewise.
50810         * lib/freadahead.c (freadahed): Likewise.
50811         * lib/fpurge.c (fpurge): Likewise.
50812         * lib/fseeko.c (rpl_fseeko): Likewise.
50813
50814 2007-10-03  Bruno Haible  <bruno@clisp.org>
50815             Jim Meyering  <jim@meyering.net>
50816             Eric Blake  <ebb9@byu.net>
50817
50818         * doc/relocatable.texi: Use @command instead of @program.
50819
50820 2007-10-02  Jim Meyering  <jim@meyering.net>
50821
50822         Perform one more "_.h" -> ".in.h" substitution.
50823         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
50824         instead of unistd_.h here, too.
50825
50826 2007-10-01  Bruno Haible  <bruno@clisp.org>
50827
50828         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
50829         Needed for the alloca-opt module.
50830
50831 2007-09-30  Bruno Haible  <bruno@clisp.org>
50832
50833         * lib/alloca.in.h: Renamed from lib/alloca_.h.
50834         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
50835         alloca_.h.
50836         * lib/argz.in.h: Renamed from lib/argz_.h.
50837         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
50838         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
50839         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
50840         byteswap_.h.
50841         * lib/dirent.in.h: Renamed from lib/dirent_.h.
50842         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
50843         dirent_.h.
50844         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
50845         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
50846         fcntl_.h.
50847         * lib/float.in.h: Renamed from lib/float_.h.
50848         * modules/float (Files, Makefile.am): Use float.in.h instead of
50849         float_.h.
50850         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
50851         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
50852         fnmatch_.h.
50853         * lib/getopt.in.h: Renamed from lib/getopt_.h.
50854         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
50855         getopt_.h.
50856         * lib/glob.in.h: Renamed from lib/glob_.h.
50857         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
50858         * lib/iconv.in.h: Renamed from lib/iconv_.h.
50859         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
50860         iconv_.h.
50861         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
50862         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
50863         inttypes_.h.
50864         * lib/locale.in.h: Renamed from lib/locale_.h.
50865         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
50866         locale_.h.
50867         * lib/math.in.h: Renamed from lib/math_.h.
50868         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
50869         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
50870         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
50871         of netinet_in_.h. Add dependency.
50872         * lib/poll.in.h: Renamed from lib/poll_.h.
50873         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
50874         * lib/search.in.h: Renamed from lib/search_.h.
50875         * modules/search (Files, Makefile.am): Use search.in.h instead of
50876         search_.h.
50877         * lib/signal.in.h: Renamed from lib/signal_.h.
50878         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
50879         _signal.h.
50880         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
50881         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
50882         stdbool_.h.
50883         * lib/stdint.in.h: Renamed from lib/stdint_.h.
50884         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
50885         stdint_.h.
50886         * lib/stdio.in.h: Renamed from lib/stdio_.h.
50887         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
50888         stdio_.h.
50889         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
50890         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
50891         stdlib_.h.
50892         * lib/string.in.h: Renamed from lib/string_.h.
50893         * modules/string (Files, Makefile.am): Use string.in.h instead of
50894         string_.h.
50895         * doc/gnulib-tool.texi (Initial import): Update.
50896         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
50897         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
50898         of sys_select_.h. Add dependency.
50899         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
50900         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
50901         of sys_socket_.h.
50902         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
50903         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
50904         sys_stat_.h.
50905         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
50906         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
50907         sys_time_.h.
50908         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
50909         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
50910         sysexits_.h.
50911         * lib/time.in.h: Renamed from lib/time_.h.
50912         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
50913         * lib/unistd.in.h: Renamed from lib/unistd_.h.
50914         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
50915         unistd_.h.
50916         * lib/wchar.in.h: Renamed from lib/wchar_.h.
50917         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
50918         wchar_.h.
50919         * lib/wctype.in.h: Renamed from lib/wctype_.h.
50920         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
50921         wctype_.h.
50922         * build-aux/bootstrap (slurp): Update.
50923         * lib/.cppi-disable: Update.
50924
50925 2007-09-30  Bruno Haible  <bruno@clisp.org>
50926
50927         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
50928         Needed on BeOS.
50929
50930 2007-09-30  Bruno Haible  <bruno@clisp.org>
50931
50932         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
50933
50934 2007-09-29  Bruno Haible  <bruno@clisp.org>
50935
50936         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
50937
50938 2007-09-29  Bruno Haible  <bruno@clisp.org>
50939
50940         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
50941         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
50942         * build-aux/install-reloc: Compile also areadlink.c.
50943         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
50944
50945 2007-09-29  Bruno Haible  <bruno@clisp.org>
50946
50947         * gnulib-tool (func_emit_initmacro_done): Indentation.
50948
50949 2007-09-29  Bruno Haible  <bruno@clisp.org>
50950
50951         * README: Add CVS checkout update instructions.
50952         Info from Bob Proulx <bob@proulx.com>.
50953
50954 2007-09-28  Eric Blake  <ebb9@byu.net>
50955
50956         Provide move-if-change.
50957         * build-aux/move-if-change: New file, based on best practice
50958         rather than any canonical upstream location.
50959
50960 2007-09-28  Jim Meyering  <jim@meyering.net>
50961
50962         Fix canonicalize loop-detection corner case.
50963         Do not attempt to stat the symlink values stored via seen_triple.
50964         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
50965         on linux-2.6.18, (but not 2.6.22).
50966         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
50967         triple_compare.  The former compares dev,ino,filename, while the latter
50968         would actually stat dirname(filename) when dev and ino were equal.
50969         * lib/hash-triple.c: Install <string.h>.
50970         (STREQ): Define.
50971         (triple_compare_ino_str): New function.
50972         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
50973
50974 2007-09-28  Eric Blake  <ebb9@byu.net>
50975
50976         Enforce that AC_REPLACE_FUNCS files exist.
50977         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
50978         override check for typos.
50979
50980         Fix test-closein on Solaris 10.
50981         * tests/test-closein.c (main): Don't assume stdin can be inherited
50982         closed on all systems.
50983         * tests/test-closein.sh: Likewise.
50984         Reported by Piotr Tarnowski.
50985
50986 2007-09-28  Jim Meyering  <jim@meyering.net>
50987
50988         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
50989
50990 2007-09-27  Jim Meyering  <jim@meyering.net>
50991
50992         canonicalize: Avoid a false-positive cycle failure.
50993         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
50994         Sort.  Remove cycle-check.
50995         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
50996         not cycle-check.h.
50997         (seen_triple): New function.
50998         (canonicalize_filename_mode): Use it instead of cycle-check.
50999         * tests/test-canonicalize.c: Add a test for this bug.
51000         * tests/test-canonicalize.sh: Set up and run the test.
51001
51002         New module, file-set, from coreutils.
51003         * modules/file-set: Define it.
51004         * lib/file-set.c, lib/file-set.h: Implement.
51005
51006         New module, hash-triple, from coreutils.
51007         * modules/hash-triple: Define it.
51008         * lib/hash-triple.c, lib/hash-triple.h: Implement.
51009
51010 2007-09-25  Eric Blake  <ebb9@byu.net>
51011
51012         Fix strerror on Interix.
51013         * lib/string_.h (strerror): Declare replacement.
51014         * doc/functions/strerror.texi (strerror): Document the Interix
51015         shortcoming.
51016         * modules/string (Makefile.am): Support new hooks.
51017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
51018         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51019         gl_FUNC_STRERROR_SEPARATE.
51020         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51021         * lib/strerror.c (rpl_strerror): Provide replacement.
51022         * modules/strerror (Depends-on): Add string.
51023         (configure.ac): Detect use of module.
51024         * tests/test-strerror.c: New file.
51025         * modules/strerror-tests: New test module.
51026         * modules/argp (Depends-on): Add strerror.
51027         * modules/error (Depends-on): Likewise.
51028         Reported by Martin Koeppe.
51029
51030 2007-09-24  Bruno Haible  <bruno@clisp.org>
51031
51032         * README: Update git instructions.
51033
51034 2007-09-24  Eric Blake  <ebb9@byu.net>
51035
51036         Revert fpending breakage from 2007-09-08.
51037         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51038         __fpending.c.
51039
51040 2007-09-24  Jim Meyering  <jim@meyering.net>
51041
51042         filenamecat.c: Add a test.
51043         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51044         showing how the function works when DIR is the empty string.
51045
51046 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51047
51048         * tests/test-canonicalize.sh: Turn on executable bit.
51049
51050 2007-09-19  Eric Blake  <ebb9@byu.net>
51051
51052         * README: Update CVS instructions.
51053
51054 2007-09-18  Bruno Haible  <bruno@clisp.org>
51055
51056         * modules/areadlink: New file.
51057         * lib/areadlink.h (areadlink): New declaration.
51058         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51059
51060 2007-09-17  Jim Meyering  <jim@meyering.net>
51061
51062         * lib/savewd.c (ESTALE) [!defined]: Define.
51063         Reported to be required on Interix by Martin Koeppe.
51064
51065 2007-09-17  Bruno Haible  <bruno@clisp.org>
51066
51067         * gnulib-tool (func_version): Use $version.
51068
51069 2007-09-16  Bruno Haible  <bruno@clisp.org>
51070
51071         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51072         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51073         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51074         Reported by Greg Schafer <gschafer@zip.com.au>.
51075
51076 2007-09-15  Bruno Haible  <bruno@clisp.org>
51077
51078         * gnulib-tool (sed): Try a little harder to make bash understand the
51079         alias.
51080         Reported by Bruce Korb <bruce.korb@gmail.com>.
51081
51082 2007-09-13  Eric Blake  <ebb9@byu.net>
51083
51084         * ChangeLog: Remove conflict markers.
51085
51086 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51087
51088         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51089         Reported by Bruno Haible <bruno@clisp.org>.
51090
51091 2007-09-12  Bruno Haible  <bruno@clisp.org>
51092
51093         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51094         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51095         is not defined.
51096
51097 2007-09-12  Eric Blake  <ebb9@byu.net>
51098
51099         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51100         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51101         Autoconf definition.
51102         * modules/euidaccess (Depends-on): Add extensions, for
51103         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51104         * modules/fnmatch (Depends-on): Likewise.
51105         * modules/getaddrinfo (Depends-on): Likewise.
51106         * modules/getdelim (Depends-on): Likewise.
51107         * modules/getline (Depends-on): Likewise.
51108         * modules/getsubopt (Depends-on): Likewise.
51109         * modules/gettext (Depends-on): Likewise.
51110         * modules/group-member (Depends-on): Likewise.
51111         * modules/mbchar (Depends-on): Likewise.
51112         * modules/memmem (Depends-on): Likewise.
51113         * modules/mempcpy (Depends-on): Likewise.
51114         * modules/memrchr (Depends-on): Likewise.
51115         * modules/pagealign_alloc (Depends-on): Likewise.
51116         * modules/readutmp (Depends-on): Likewise.
51117         * modules/stpcpy (Depends-on): Likewise.
51118         * modules/stpncpy (Depends-on): Likewise.
51119         * modules/strchrnul (Depends-on): Likewise.
51120         * modules/strndup (Depends-on): Likewise.
51121         * modules/strsep (Depends-on): Likewise.
51122         * modules/strverscmp (Depends-on): Likewise.
51123         * modules/vasprintf (Depends-on): Likewise.
51124         * modules/wcwidth (Depends-on): Likewise.
51125         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51126         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51127         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51128         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51129         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51130         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51131         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51132         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51133         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51134         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51135         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51136         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51137         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51138         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51139         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51140         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51141         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51142         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51143         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51144         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51145         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51146         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51147         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51148         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51149         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51150         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51151         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51152         so that lock.m4 can be used in gettext without extensions module.
51153
51154 2007-09-11  Bruno Haible  <bruno@clisp.org>
51155
51156         * m4/isc-posix.m4: Remove file.
51157         Suggested by Eric Blake.
51158
51159 2007-09-11  Eric Blake  <ebb9@byu.net>
51160
51161         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51162
51163 2007-09-10  Bruno Haible  <bruno@clisp.org>
51164
51165         * posix-modules: Fix typo in error message.
51166         Reported by Matt <mkraai@beckman.com>.
51167
51168 2007-09-09  Bruno Haible  <bruno@clisp.org>
51169
51170         * doc/functions/getdelim.texi: Update list of platforms lacking the
51171         function.
51172         * doc/functions/getline.texi: Likewise.
51173
51174 2007-09-09  Jim Meyering  <jim@meyering.net>
51175
51176         * lib/hash.c (hash_initialize): Detect calloc failure.
51177         Reported by Bruno Haible.
51178
51179 2007-09-09  Bruno Haible  <bruno@clisp.org>
51180
51181         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51182         malloc or realloc fails.
51183
51184 2007-09-09  Bruno Haible  <bruno@clisp.org>
51185
51186         * modules/getcwd (Depends-on): Add malloc-posix.
51187         * modules/glob (Depends-on): Likewise.
51188         * modules/putenv (Depends-on): Likewise.
51189         * modules/strdup (Depends-on): Likewise.
51190         * modules/getdelim (Depends-on): Add realloc-posix.
51191         * modules/read-file (Depends-on): Likewise.
51192
51193 2007-09-09  Bruno Haible  <bruno@clisp.org>
51194
51195         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51196         (gl_FUNC_MALLOC_POSIX): Require it.
51197         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51198         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51199         * modules/realloc (Files): Add m4/malloc.m4.
51200         * modules/calloc (Files): Likewise.
51201
51202 2007-09-09  Bruno Haible  <bruno@clisp.org>
51203
51204         * modules/malloc-posix: New file.
51205         * modules/malloc (Depends-on): Add malloc-posix.
51206         * lib/malloc.c: Include errno.h.
51207         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51208         and a POSIX-compatible malloc into a single function. Set ENOMEM
51209         when returning NULL.
51210         * m4/malloc.m4: New file.
51211         * doc/functions/malloc.texi: Mention the malloc-posix module.
51212         * lib/stdlib_.h (malloc): New declaration.
51213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51214         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51215         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51216         and HAVE_MALLOC_POSIX.
51217
51218 2007-09-09  Bruno Haible  <bruno@clisp.org>
51219
51220         * modules/realloc-posix: New file.
51221         * modules/realloc (Depends-on): Add realloc-posix.
51222         * lib/realloc.c: Include errno.h.
51223         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51224         and a POSIX-compatible realloc into a single function. Set ENOMEM
51225         when returning NULL.
51226         * m4/realloc.m4: New file.
51227         * doc/functions/realloc.texi: Mention the realloc-posix module.
51228         * lib/stdlib_.h (realloc): New declaration.
51229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51230         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51231         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51232         and HAVE_REALLOC_POSIX.
51233
51234 2007-09-09  Bruno Haible  <bruno@clisp.org>
51235
51236         * modules/calloc-posix: New file.
51237         * modules/calloc (Depends-on): Add calloc-posix.
51238         * lib/calloc.c: Include errno.h.
51239         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
51240         and a POSIX-compatible calloc into a single function. Set ENOMEM
51241         when returning NULL.
51242         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
51243         * doc/functions/calloc.texi: Mention the calloc-posix module.
51244         * lib/stdlib_.h (calloc): New declaration.
51245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51246         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
51247         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
51248         and HAVE_CALLOC_POSIX.
51249
51250 2007-09-09  Bruno Haible  <bruno@clisp.org>
51251
51252         Allow for modules to show an arbitrary notice.
51253         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
51254         * gnulib-tool: New option --extract-notice.
51255         (func_usage): Document it.
51256         (sed_extract_prog): Update.
51257         (func_get_notice): New function.
51258         (func_modules_notice): New function.
51259         (func_import, func_create_testdir): Invoke it.
51260         Suggested by Jim Meyering.
51261
51262 2007-09-09  Bruno Haible  <bruno@clisp.org>
51263
51264         * gnulib-tool: New options --verbose, --quiet.
51265         (func_usage): Document them.
51266         (verbose): New variable.
51267         (func_execute_command): New function.
51268         (func_import): Don't show the module list and the file list if
51269         $verbose < 0.
51270         (func_create_testdir): Likewise. Use func_execute_command.
51271         (func_create_megatestdir): Use func_execute_command.
51272
51273 2007-09-08  Bruno Haible  <bruno@clisp.org>
51274
51275         * gnulib-tool (func_import): Prefer rsync over wget when available,
51276         for fetching the PO files.
51277
51278 2007-09-08  Bruno Haible  <bruno@clisp.org>
51279
51280         * posix-modules: New file. Portions copied from gnulib-tool.
51281         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
51282
51283 2007-09-08  Jim Meyering  <jim@meyering.net>
51284
51285         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
51286         * lib/fpending.h: Rename from __fpending.h.
51287         * lib/fpending.c: Rename from __fpending.c.
51288         Include "fpending.h", not "__fpending.h".
51289         * lib/__fpending.h, lib/__fpending.c: Remove files.
51290         * modules/fpending (Files): Reflect new file names.
51291         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
51292
51293 2007-09-08  Bruno Haible  <bruno@clisp.org>
51294
51295         * m4/inttypes-h.m4: Remove stub file.
51296
51297 2007-09-07  Simon Josefsson  <simon@josefsson.org>
51298
51299         * doc/headers/stdint.texi: Discuss #include_next issue.
51300
51301 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51302
51303         * build-aux/bootstrap: Remove obsolete comment about wget --help.
51304
51305 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51306
51307         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
51308         in variable name.
51309
51310 2007-09-03  Jim Meyering  <jim@meyering.net>
51311
51312         New module: git-version-gen.
51313         * modules/git-version-gen: New file.
51314
51315         Import changes from coreutils for bootstrap script.
51316
51317         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
51318
51319         bootstrap: uses rsync to download the .po files
51320         * build-aux/bootstrap (po_download_command_format): New global.
51321         (download_po_files): Use rsync.
51322         (update_po_files): Don't remove .po files after download,
51323         so future rsync runs can take advantage of the copies.
51324
51325         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
51326
51327         Solve the unnecessary-.po-file-regeneration problem once and for all.
51328         * build-aux/bootstrap (download_po_files): New function, renamed from
51329         get_translations.  Now, downloads, but doesn't update LINGUAS.
51330         (update_po_files): New function.
51331
51332         bootstrap: Ignore more.
51333         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51334         uniwidth to e.g., lib/.gitignore.
51335         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51336
51337         * build-aux/bootstrap: New setting: vc_ignore.
51338         (insert_sorted_if_absent): Create $file if absent.
51339         Adapt to new, possibly empty, list: $vc_ignore.
51340
51341         bootstrap: generate more ignorable names
51342         * build-aux/bootstrap (slurp): When generating ignorable names,
51343         also map .sin to .sed, .gperf to .c, and .y to .c.
51344
51345 2007-09-03  Jim Meyering  <jim@meyering.net>
51346
51347         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51348         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51349
51350 2007-09-02  Bruno Haible  <bruno@clisp.org>
51351
51352         Fix mis-recognition of 'mcs' on QNX 6.
51353         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51354         output contains the string "Mono".
51355         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51356         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51357
51358 2007-09-01  Bruno Haible  <bruno@clisp.org>
51359
51360         Fix collision between uniwidth/* and linebreak modules.
51361         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51362         u32_width): Remove declarations.
51363         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51364         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51365         streq3, streq2, streq1, streq0): Remove functions.
51366         (STREQ): Remove macro.
51367         (is_cjk_encoding): Remove function.
51368         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51369         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51370         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51371         * NEWS: Document the change.
51372
51373 2007-09-01  Bruno Haible  <bruno@clisp.org>
51374
51375         * lib/streq.h: Add double-inclusion guard.
51376
51377 2007-09-01  Karl Berry  <karl@gnu.org>
51378
51379         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51380
51381 2007-08-28  Jim Meyering  <jim@meyering.net>
51382
51383         Rename mreadlink_with_size to areadlink_with_size.
51384         * NEWS: Document the change.
51385         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51386         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51387         * lib/mreadlink.h: Rename this to...
51388         * lib/areadlink.h: ...this.
51389         * modules/mreadlink-with-size: Rename this to...
51390         * modules/areadlink-with-size: ...this.
51391         * lib/canonicalize.c: Reflect the renaming.
51392         * modules/canonicalize: Likewise.
51393
51394 2007-08-26  Bruno Haible  <bruno@clisp.org>
51395
51396         * gnulib-tool (func_import): When deciding which files to remove,
51397         consider also dangling symbolic links.
51398         Reported by Eric Blake.
51399
51400 2007-08-26  Bruno Haible  <bruno@clisp.org>
51401
51402         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
51403
51404 2007-08-23  Simon Josefsson  <simon@josefsson.org>
51405
51406         * lib/readline.c: Don't include getline.h, the prototype is now
51407         found in stdio.h.
51408
51409 2007-08-23  Jim Meyering  <jim@meyering.net>
51410
51411         Getdelim touchup.
51412         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
51413         around the funlockfile call, since funlockfile never sets errno.
51414         Don't set errno upon failed realloc.
51415
51416 2007-08-22  Eric Blake  <ebb9@byu.net>
51417
51418         Getline touchups.
51419         * lib/getdelim.c (getdelim): Revert regression that required *n to
51420         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
51421         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
51422         getdelim, rather than whether implementation is missing.
51423         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
51424         * lib/stdio_.h (getline): Also declare if replacement is
51425         required.
51426         * doc/functions/getdelim.texi: New file.
51427         * doc/functions/getline.texi: Likewise.
51428         * doc/gnulib.texi (Function Substitutes): Add new files.
51429         Reported by Bruno Haible.
51430
51431 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
51432
51433         * users.txt: Add Guile.
51434
51435 2007-08-22  Eric Blake  <ebb9@byu.net>
51436
51437         * tests/test-getdelim.c (main): Use remove, not unlink.
51438         * tests/test-getline.c (main): Likewise.
51439
51440         Move getline and getdelim into stdio.h, per POSIX 200x.
51441         * modules/getline (Files): Remove getline.h.
51442         (Depends-on): Add stdio.
51443         (configure.ac): Add module indicator.
51444         * modules/getdelim (Files): Remove getdelim.h.
51445         (Depends-on): Add stdio.
51446         (configure.ac): Add module indicator.
51447         * modules/stdio (Makefile.am): Work with new indicators.
51448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
51449         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
51450         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51451         * lib/getdelim.h: Delete.
51452         * lib/getline.h: Delete.
51453         * lib/stdio_.h (getdelim, getline): Declare.
51454         * modules/getdelim-tests: New module.
51455         * modules/getline-tests: Likewise.
51456         * tests/test-getdelim.c: New file.
51457         * tests/test-getline.c: Likewise.
51458         * NEWS: Document the change.
51459         * lib/getline.c: Update choice of header.
51460         * lib/csharpcomp.c: Likewise.
51461         * lib/getpass.c: Likewise.
51462         * lib/javacomp.c: Likewise.
51463         * lib/javaversion.c: Likewise.
51464         * lib/yesno.c: Likewise.
51465         * lib/getdelim.c: Likewise.
51466         (getdelim): Set errno on failure, and avoid memory leak.
51467
51468 2007-08-19  Bruno Haible  <bruno@clisp.org>
51469
51470         * modules/closein (Depends-on): Add freadahead.
51471         * lib/closein.c: Include freadahead.h.
51472         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
51473         is zero.
51474
51475 2007-08-19  Bruno Haible  <bruno@clisp.org>
51476
51477         * modules/freadahead-tests: New file.
51478         * tests/test-freadahead.sh: New file.
51479         * tests/test-freadahead.c: New file.
51480
51481         * modules/freadahead: New file.
51482         * lib/freadahead.h: New file.
51483         * lib/freadahead.c: New file.
51484         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
51485         fbufmode, fpurge, freadable, fwritable.
51486
51487 2007-08-19  Eric Blake  <ebb9@byu.net>
51488
51489         Test yesno in combination with closein.
51490         * lib/yesno.c (yesno): Document use of stdin.
51491         * modules/yesno-tests (Files): New module.
51492         * tests/test-yesno.c (main): New file.
51493         * tests/test-yesno.sh: Likewise.
51494
51495 2007-08-19  Bruno Haible  <bruno@clisp.org>
51496
51497         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
51498         * lib/fseeko.c (rpl_fseeko): Likewise.
51499         * lib/fseterr.c (fseterr): Likewise.
51500
51501 2007-08-19  Bruno Haible  <bruno@clisp.org>
51502
51503         * tests/test-lseek.c (main): Disable a test for BeOS.
51504         * doc/functions/lseek.texi: Document the BeOS bug.
51505
51506 2007-08-19  Bruno Haible  <bruno@clisp.org>
51507             Eric Blake  <ebb9@byu.net>
51508
51509         * lib/lseek.c: Include <sys/stat.h>.
51510         (rpl_lseek): Add workaround code also for Unix platforms.
51511         Needed for BeOS.
51512         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
51513         * doc/functions/lseek.texi: Document BeOS definiency.
51514
51515 2007-08-18  Bruno Haible  <bruno@clisp.org>
51516
51517         * modules/fstrcmp-tests: New file.
51518         * tests/test-fstrcmp.c: New file.
51519
51520 2007-08-18  Bruno Haible  <bruno@clisp.org>
51521
51522         * modules/fstrcmp: New file, from GNU gettext with modifications.
51523         * lib/fstrcmp.h: New file, from GNU gettext.
51524         * lib/fstrcmp.c: New file, from GNU gettext.
51525         * MODULES.html.sh (String handling): Add fstrcmp.
51526
51527 2007-08-18  Bruno Haible  <bruno@clisp.org>
51528
51529         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
51530         'bool'.
51531         (diag, compareseq): Remove const from the ctxt argument.
51532         (USE_HEURISTIC): Undefine at the end.
51533
51534 2007-08-18  Jim Meyering  <jim@meyering.net>
51535
51536         New file: lib/idcache.h
51537         * NEWS: Mention the addition.
51538         * modules/idcache (Files): Add lib/idcache.h
51539         * lib/idcache.c: Include "idcache.h".
51540         Don't include <sys/types.h>.
51541         Add a FIXME comment.
51542         Move file-scoped "static" declarations to the top.
51543         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
51544
51545 2007-08-17  Bruno Haible  <bruno@clisp.org>
51546         and Paul Eggert  <eggert@cs.ucla.edu>
51547
51548         * MODULES.html.sh: Add diffseq.
51549         * modules/diffseq: New file.
51550         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
51551         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
51552
51553 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51554
51555         Import changes from coreutils for bootstrap script.
51556
51557         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
51558
51559         * build-aux/bootstrap (slurp): Work even in environments where
51560         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
51561         current code does not slurp files whose names start with ".", and
51562         this looks like it might be a troublesome area.
51563
51564         2007-07-11  Jim Meyering  <jim@meyering.net>
51565
51566         If there's a GPL vN copyright comment, require that N == 3.
51567
51568         2007-07-08  Jim Meyering  <jim@meyering.net>
51569
51570         Run the coreutils-specific code only if tests/Makefile.am.in exists.
51571         * build-aux/bootstrap (mam_template): Move definition out of loop.
51572
51573         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
51574
51575         * build-aux/bootstrap (symlink_to_dir): Rename function from
51576         symlink_to_gnulib.  Add a directory parameter.  Update all
51577         callers.
51578         (cp_mark_as_generated): Also check for -- and link to -- files in
51579         gl/.
51580
51581         2007-07-08  Jim Meyering  <jim@meyering.net>
51582
51583         Adapt to deeper hierarchy in gnulib.
51584         * build-aux/bootstrap (symlink_to_dir): If the destination
51585         directory doesn't exist, create it. This is required at least for
51586         "lib/uniwidth/cjk.h".
51587
51588         2007-05-15  Jim Meyering  <jim@meyering.net>
51589
51590         * build-aux/bootstrap: Now that generated Makefile.am files
51591         are no longer under version control, they must be created at
51592         bootstrap time.
51593
51594 2007-08-14  Ben Pfaff  <blp@gnu.org>
51595
51596         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
51597
51598 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51599
51600         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
51601         given the changes below.
51602         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
51603         even on hosts that have padding bits beyond the supported 64.
51604
51605 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51606
51607         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
51608         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
51609         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
51610         depends on it.
51611         (xstrtol_error): Remove.
51612         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
51613         but with a different signature.
51614         (ATTRIBUTE_NORETURN, __attribute__): New macros.
51615         * lib/xstrtol-error.c: Include exitfail.h.
51616         (xstrtol_fatal): New function, with a different signature from the
51617         old xstrtol_error, so that the caller need not worry about passing
51618         in an exit status, or about storage management of the option argument.
51619         (xstrtol_error): Now a static function.  Redo signature to
51620         implement xstrtol_fatal.  Output the correct number of hyphens in
51621         front of the option so that the caller need not worry about
51622         storage management.
51623         (N_): New macro.
51624         (_): Remove; not used now.
51625         * modules/xstrtol: Depend on getopt.
51626         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
51627         of old STRTOL_FATAL_ERROR macro.
51628         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
51629         of test program.
51630         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
51631         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
51632
51633 2007-08-08  Eric Blake  <ebb9@byu.net>
51634
51635         * lib/xstrtol-error.c: Add missing include.
51636
51637         Move xstrtol messages into gnulib domain, when --pobase is used.
51638         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
51639         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
51640         * modules/xstrtol (Files): Distribute new file.
51641         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
51642         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
51643         * tests/test-xstrtol.c: ...into new file.
51644         * tests/test-xstrtoul.c: Also test xstrtoul.
51645         * tests/test-xstrtoimax.c: Also test xstrtoimax.
51646         * tests/test-xstrtoumax.c: Also test xstrtoumax.
51647         * tests/test-xstrtol.sh: Drive the tests.
51648         * tests/test-xstrtoimax.sh: Likewise.
51649         * tests/test-xstrtoumax.sh: Likewise.
51650         * modules/xstrtol-tests: New module.
51651         * modules/xstrtoimax-tests: Likewise.
51652         * modules/xstrtoumax-tests: Likewise.
51653
51654 2007-08-08  Jim Meyering  <jim@meyering.net>
51655
51656         New function: mfile_name_concat.
51657         * lib/filenamecat.c (mfile_name_concat): New function, just like
51658         file_name_concat, but return NULL upon failure rather than exiting
51659         with a diagnostic.
51660         * lib/filenamecat.h: Declare it.
51661
51662 2007-08-07  Bruno Haible  <bruno@clisp.org>
51663
51664         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
51665         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
51666         warning from gcc.
51667         Reported by Eric Blake.
51668
51669 2007-08-07  Simon Josefsson  <simon@josefsson.org>
51670
51671         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
51672         * modules/crypto/arcfour (License): Likewise.
51673         * modules/crypto/des-tests (License): Likewise.
51674         * modules/crypto/gc-arctwo-tests (License): Likewise.
51675         * modules/crypto/gc-des-tests (License): Likewise.
51676         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
51677         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
51678         * modules/crypto/gc-md2-tests (License): Likewise.
51679         * modules/crypto/gc-md4-tests (License): Likewise.
51680         * modules/crypto/gc-md5-tests (License): Likewise.
51681         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
51682         * modules/crypto/gc-rijndael-tests (License): Likewise.
51683         * modules/crypto/gc-sha1-tests (License): Likewise.
51684         * modules/crypto/gc-tests (License): Likewise.
51685         * modules/crypto/hmac-md5 (License): Likewise.
51686         * modules/crypto/hmac-sha1 (License): Likewise.
51687         * modules/crypto/md2-tests (License): Likewise.
51688         * modules/crypto/md4-tests (License): Likewise.
51689         * modules/crypto/md5 (License): Likewise.
51690         * modules/crypto/rijndael (License): Likewise.
51691         * modules/crypto/sha1 (License): Likewise.
51692         * modules/memxor (License): Likewise.
51693
51694 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51695         and Bruno Haible  <bruno@clisp.org>
51696
51697         * NEWS: Describe interface changes to human, xstrtol.
51698         * lib/human.h: Include <xstrtol.h>.
51699         (human_options): Return enum strtol_error, not int.  Remove
51700         bool arg; take int * instead.
51701         * lib/human.c: Don't include "gettext.h".
51702         (_): Remove; no longer used.
51703         Don't include <xstrtol.h>, since human.h does it.
51704         (human_options): Adjust to abovementioned interface changes.
51705         Do not report error to stderr; that's now the caller's
51706         responsibility.
51707         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
51708         interface change.
51709         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
51710         Str, Argument_type_string.  All uses changed.  Put " argument"
51711         in diagnostics to make them clearer.  Change wording of suffix
51712         message for clarity.
51713         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
51714         Argument_type_string.
51715         (STRTOL_FATAL_WARN): Remove; no longer used.
51716         * modules/human (Depends-on): Remove gettext-h.
51717
51718 2007-08-06  Simon Josefsson  <simon@josefsson.org>
51719
51720         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
51721
51722 2007-07-31  Bruno Haible  <bruno@clisp.org>
51723
51724         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
51725         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
51726         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
51727
51728 2007-07-31  Bruno Haible  <bruno@clisp.org>
51729
51730         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
51731         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
51732
51733 2007-07-30  Bruno Haible  <bruno@clisp.org>
51734
51735         * modules/base64 (License): Use the synonymous term "LGPLv2+".
51736         * modules/c-ctype (License): Likewise.
51737         * modules/c-strcase (License): Likewise.
51738         * modules/check-version (License): Likewise.
51739         * modules/iconv (License): Likewise.
51740         * modules/iconv_open (License): Likewise.
51741         * modules/read-file (License): Likewise.
51742         * modules/striconv (License): Likewise.
51743         * modules/strverscmp (License): Likewise.
51744         * modules/vasprintf (License): Likewise.
51745         * modules/crypto/des (License): Likewise.
51746         * modules/crypto/gc (License): Likewise.
51747         * modules/crypto/gc-arcfour (License): Likewise.
51748         * modules/crypto/gc-arctwo (License): Likewise.
51749         * modules/crypto/gc-des (License): Likewise.
51750         * modules/crypto/gc-hmac-md5 (License): Likewise.
51751         * modules/crypto/gc-hmac-sha1 (License): Likewise.
51752         * modules/crypto/gc-md2 (License): Likewise.
51753         * modules/crypto/gc-md4 (License): Likewise.
51754         * modules/crypto/gc-md5 (License): Likewise.
51755         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
51756         * modules/crypto/gc-random (License): Likewise.
51757         * modules/crypto/gc-rijndael (License): Likewise.
51758         * modules/crypto/gc-sha1 (License): Likewise.
51759         * modules/crypto/md2 (License): Likewise.
51760         * modules/crypto/md4 (License): Likewise.
51761
51762 2007-07-30  Jim Meyering  <jim@meyering.net>
51763
51764         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
51765         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
51766         it has valid stat data.  This bug would cause du not to count the
51767         sizes of inaccessible directories.
51768         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
51769         in <http://bugzilla.redhat.com/250077>.
51770
51771 2007-07-25  Peter O'Gorman  <peter@pogma.com>
51772             Bruno Haible  <bruno@clisp.org>
51773
51774         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
51775         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
51776         #include_next, gives a diagnostic about it, but reports no error in
51777         the exit code.
51778         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51779
51780 2007-07-24  Ben Pfaff  <blp@gnu.org>
51781
51782         Improve name: "count-one-bits" is better than "popcount".
51783         * MODULES.html.sh: Update name.
51784         * lib/popcount.h: Renamed lib/count-one-bits.h.
51785         (popcount): Renamed count_one_bits.
51786         (popcountl): Renamed count_one_bits_l.
51787         (popcountll): Renamed count_one_bits_ll.
51788         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
51789         * modules/popcount: Renamed module/count-one-bits.
51790         * modules/popcount-tests: Renamed module/count-one-bits-tests.
51791         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
51792
51793 2007-07-23  Ben Pfaff  <blp@gnu.org>
51794
51795         * lib/popcount.h (popcount32): Reduce size of constants, to allow
51796         better code generation, and add U to large constants to avoid
51797         warnings, in non-GCC case.
51798         Suggested by Bruno Haible.
51799
51800 2007-07-23  Ben Pfaff  <blp@gnu.org>
51801
51802         * lib/popcount.h: Use verify_true instead of if...abort.
51803         * modules/popcount: Depend on verify module.
51804         Suggested by Jim Meyering.
51805
51806 2007-07-23  Bruno Haible  <bruno@clisp.org>
51807
51808         * gnulib-tool (func_import): Create a .cvsignore file also when the
51809         directory is not yet in CVS but the toplevel directory is. When
51810         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
51811         Reported by Karl Berry.
51812
51813 2007-07-22  Ben Pfaff  <blp@gnu.org>
51814
51815         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
51816         case.
51817         Suggested by Eric Blake.
51818
51819 2007-07-22  Ben Pfaff  <blp@gnu.org>
51820
51821         New module: popcount.
51822         * MODULES.html.sh: Add popcount.
51823         * modules/popcount: New file.
51824         * modules/popcount-tests: New file.
51825         * tests/test-popcount.c: New file.
51826         * lib/popcount.h: New file.
51827         * m4/popcount.m4: New file.
51828
51829 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51830
51831         * build-aux/announce-gen: Update to GPLv3.
51832
51833         * build-aux/config.guess: Update from config.
51834
51835 2007-07-21  Bruno Haible  <bruno@clisp.org>
51836
51837         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
51838         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
51839
51840 2007-07-20  Jim Meyering  <jim@meyering.net>
51841
51842         * check-module: Diagnose a self-dependency.
51843
51844 2007-07-19  Bruno Haible  <bruno@clisp.org>
51845
51846         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
51847         empty.
51848         Reported by Eric Blake.
51849
51850 2007-07-18  Bruno Haible  <bruno@clisp.org>
51851
51852         * gnulib-tool: New options --po-base, --po-domain.
51853         (func_usage): Document them.
51854         (pobase, po_domain): New variables.
51855         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
51856         DEFAULT_TEXT_DOMAIN.
51857         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
51858         (func_import): Consider pobase and po_domain. Create a po/ directory.
51859         (func_create_testdir): Set pobase and po_domain to empty.
51860         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
51861         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
51862
51863 2007-07-18  Bruno Haible  <bruno@clisp.org>
51864
51865         * gnulib-tool (func_get_automake_snippet): Synthesize also an
51866         EXTRA_DIST augmentation for files in build-aux/.
51867
51868 2007-07-16  Bruno Haible  <bruno@clisp.org>
51869
51870         * modules/lseek (License): Use the synonymous term "LGPLv2+".
51871         * modules/getdelim (License): Likewise.
51872
51873 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51874
51875         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
51876         * modules/d-type (License): Likewise.
51877         * modules/extensions (License): Likewise.
51878         * modules/fnmatch (License): Likewise.
51879         * modules/fseeko (License): Likewise.
51880         * modules/getaddrinfo (License): Likewise.
51881         * modules/getline (License): Likewise.
51882         * modules/getlogin_r (License): Likewise.
51883         * modules/getpass (License): Likewise.
51884         * modules/gettimeofday (License): Likewise.
51885         * modules/glob (License): Likewise.
51886         * modules/inet_ntop (License): Likewise.
51887         * modules/malloc (License): Likewise.
51888         * modules/malloca (License): Likewise.
51889         * modules/memmem (License): Likewise.
51890         * modules/mempcpy (License): Likewise.
51891         * modules/memset (License): Likewise.
51892         * modules/minmax (License): Likewise.
51893         * modules/mktime (License): Likewise.
51894         * modules/netinet_in (License): Likewise.
51895         * modules/pathmax (License): Likewise.
51896         * modules/poll (License): Likewise.
51897         * modules/regex (License): Likewise.
51898         * modules/snprintf (License): Likewise.
51899         * modules/stdbool (License): Likewise.
51900         * modules/stdint (License): Likewise.
51901         * modules/stdio (License): Likewise.
51902         * modules/strcase (License): Likewise.
51903         * modules/strcasestr (License): Likewise.
51904         * modules/strdup (License): Likewise.
51905         * modules/string (License): Likewise.
51906         * modules/strndup (License): Likewise.
51907         * modules/strnlen (License): Likewise.
51908         * modules/strpbrk (License): Likewise.
51909         * modules/strptime (License): Likewise.
51910         * modules/strsep (License): Likewise.
51911         * modules/sys_select (License): Likewise.
51912         * modules/sys_socket (License): Likewise.
51913         * modules/sys_stat (License): Likewise.
51914         * modules/sys_time (License): Likewise.
51915         * modules/time (License): Likewise.
51916         * modules/time_r (License): Likewise.
51917         * modules/timegm (License): Likewise.
51918         * modules/unistd (License): Likewise.
51919         * modules/vsnprintf (License): Likewise.
51920         * modules/wctype (License): Likewise.
51921
51922 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51923
51924         * modules/argz (License): LGPLv2+.
51925
51926 2007-07-15  Karl Berry  <karl@gnu.org>
51927
51928         * doc/gnulib.texi: revise node structure per new fdl.texi.
51929
51930 2007-07-14  Bruno Haible  <bruno@clisp.org>
51931
51932         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
51933         the output file.
51934         * lib/uniname/uninames.h: Regenerated.
51935
51936 2007-07-14  Karl Berry  <karl@gnu.org>
51937
51938         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
51939         omitting sectioning and index commands.
51940
51941 2007-07-13  Bruno Haible  <bruno@clisp.org>
51942
51943         New gnulib-tool option --more-symlinks.
51944         * gnulib-tool (func_usage): Document --more-symlinks.
51945         (do_copyrights): New variable.
51946         Recognize option --more-symlinks.
51947         (func_import): Don't add a copyright notice transform to
51948         sed_transform_lib_file if do_copyrights is empty.
51949
51950 2007-07-13  Bruno Haible  <bruno@clisp.org>
51951
51952         * lib/vasnprintf.c (decimal_point_char): Define also if
51953         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
51954         && !NEED_PRINTF_DIRECTIVE_A.
51955         Reported by Clemens Koller <clemens.koller@anagramm.de> via
51956         Gary V. Vaughan <gary@gnu.org>.
51957
51958 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
51959
51960         * lib/inttypes_.h: Undo previous change, since it was fixed
51961         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
51962
51963 2007-07-13  Bruno Haible  <bruno@clisp.org>
51964
51965         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
51966         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
51967
51968 2007-07-13  Jim Meyering  <jim@meyering.net>
51969
51970         df: Don't fail for Tru64's "file-on-file mount".
51971         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
51972         so we fall through and use statfs instead.  Details here:
51973         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
51974         Reported by Albert Chin.
51975
51976 2007-07-13  Bruno Haible  <bruno@clisp.org>
51977
51978         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
51979         * modules/configmake (License): Likewise.
51980         * modules/gettext (License): Likewise.
51981         * modules/gettext-h (License): Likewise.
51982         * modules/include_next (License): Likewise.
51983         * modules/link-warning (License): Likewise.
51984         * modules/localcharset (License): Likewise.
51985         * modules/localename (License): Likewise.
51986         * modules/lock (License): Likewise.
51987         * modules/relocatable-lib-lgpl (License): Likewise.
51988         * modules/size_max (License): Likewise.
51989         * modules/vasnprintf (License): Likewise.
51990         * modules/wchar (License): Likewise.
51991         * modules/xsize (License): Likewise.
51992
51993 2007-07-13  Bruno Haible  <bruno@clisp.org>
51994
51995         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
51996         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
51997
51998 2007-07-12  Bruno Haible  <bruno@clisp.org>
51999
52000         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
52001         in the modules files.
52002
52003 2007-07-11  Karl Berry  <karl@gnu.org>
52004
52005         * MODULES.html.sh (func_module): use
52006          sed -e '\|^'"${includefile}"'$|d'
52007          instead of /.../d, to avoid errors on $includefile's containing /.
52008
52009 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52010
52011         * gnulib-tool (func_import): Avoid duplication of --avoid
52012         statements
52013         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
52014         names to `_' in variable names.
52015
52016 2007-07-10  Eric Blake  <ebb9@byu.net>
52017
52018         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52019         * NEWS: Document this change.
52020
52021 2007-07-08  Bruno Haible  <bruno@clisp.org>
52022
52023         Update to Unicode 5.0.
52024         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52025         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52026         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52027         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52028         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52029         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52030         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52031         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52032         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52033         U+10A3F, U+1D242..U+1D244.
52034         (nonspacing_table_ind): Update.
52035         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52036         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52037
52038 2007-07-08  Bruno Haible  <bruno@clisp.org>
52039
52040         Update to Unicode 5.0.
52041         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52042         code transform. Extend the name index field of unicode_name_to_code and
52043         unicode_code_to_name from 16 to 24 bits.
52044         * lib/uniname/uniname.c (unicode_character_name,
52045         unicode_name_character): Add the range 0x12xxx to the code transform.
52046         * lib/uniname/uninames.h: Regenerated.
52047         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52048
52049 2007-07-07  Bruno Haible  <bruno@clisp.org>
52050
52051         * modules/wcwidth-tests: New file.
52052         * tests/test-wcwidth.c: New file.
52053
52054         Work around MacOS X wcwidth() bug.
52055         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52056         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52057         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52058         original wcwidth in non-UTF-8 locales.
52059         * modules/wcwidth (Depends-on): Add localcharset, streq,
52060         uniwidth/width.
52061         * doc/functions/wcwidth.texi: Update.
52062
52063 2007-07-07  Bruno Haible  <bruno@clisp.org>
52064
52065         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52066         (wcwidth): New declaration.
52067         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52068         macros.
52069         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52070         here. Prepare for creating <wchar.h> unconditionally.
52071         * modules/wchar (Depends-on): Add link-warning.
52072         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52073         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52074         * lib/wcwidth.h: Remove file.
52075         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52076         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52077         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52078         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52079         (Include): Replace wcwidth.h with <wchar.h>.
52080         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52081         * lib/mbchar.h: Don't include wcwidth.h.
52082         * lib/mbswidth.c: Likewise.
52083         * NEWS: Mention the change.
52084
52085 2007-07-07  Bruno Haible  <bruno@clisp.org>
52086
52087         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52088         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52089         definition with an external declaration.
52090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52091         defined as a function. Remove AC_C_INLINE requirement.
52092         * modules/wcwidth (Files): Add lib/wcwidth.c.
52093         (Makefile.am): Remove redundant statement.
52094
52095 2007-07-07  Bruno Haible  <bruno@clisp.org>
52096
52097         * MODULES.html.sh (Unicode string functions): Add the new modules.
52098
52099         * tests/uniwidth/test-u32-strwidth.c: New file.
52100         * modules/uniwidth/u32-strwidth-tests: New file.
52101
52102         * lib/uniwidth/u32-strwidth.c: New file.
52103         * modules/uniwidth/u32-strwidth: New file.
52104
52105         * tests/uniwidth/test-u16-strwidth.c: New file.
52106         * modules/uniwidth/u16-strwidth-tests: New file.
52107
52108         * lib/uniwidth/u16-strwidth.c: New file.
52109         * modules/uniwidth/u16-strwidth: New file.
52110
52111         * tests/uniwidth/test-u8-strwidth.c: New file.
52112         * modules/uniwidth/u8-strwidth-tests: New file.
52113
52114         * lib/uniwidth/u8-strwidth.c: New file.
52115         * modules/uniwidth/u8-strwidth: New file.
52116
52117         * tests/uniwidth/test-u32-width.c: New file.
52118         * modules/uniwidth/u32-width-tests: New file.
52119
52120         * lib/uniwidth/u32-width.c: New file.
52121         * modules/uniwidth/u32-width: New file.
52122
52123         * tests/uniwidth/test-u16-width.c: New file.
52124         * modules/uniwidth/u16-width-tests: New file.
52125
52126         * lib/uniwidth/u16-width.c: New file.
52127         * modules/uniwidth/u16-width: New file.
52128
52129         * tests/uniwidth/test-u8-width.c: New file.
52130         * modules/uniwidth/u8-width-tests: New file.
52131
52132         * lib/uniwidth/u8-width.c: New file.
52133         * modules/uniwidth/u8-width: New file.
52134
52135         * tests/uniwidth/test-uc_width.c: New file.
52136         * modules/uniwidth/width-tests: New file.
52137
52138         * lib/uniwidth/width.c: New file, from GNU libiconv.
52139         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52140         * modules/uniwidth/width: New file.
52141
52142         * lib/uniwidth.h: New file, from GNU libiconv.
52143         * modules/uniwidth/base: New file.
52144
52145 2007-07-07  Bruno Haible  <bruno@clisp.org>
52146
52147         * lib/uniname.h: New file, from GNU gettext.
52148         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52149         * lib/uniname/uninames.h: New file, from GNU gettext.
52150         * lib/uniname/uniname.c: New file, from GNU gettext.
52151         * tests/uniname/test-uninames.sh: New file.
52152         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52153         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52154         * modules/uniname/base: New file.
52155         * modules/uniname/uniname: New file.
52156         * modules/uniname/uniname-tests: New file.
52157         * MODULES.html.sh (Unicode string functions): Add the new modules.
52158
52159 2007-07-06  Bruno Haible  <bruno@clisp.org>
52160
52161         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52162
52163 2007-07-06  Bruno Haible  <bruno@clisp.org>
52164
52165         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52166         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52167         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52168         include <sys/time.h>.
52169         Reported by Eric Blake.
52170
52171 2007-07-06  Eric Blake  <ebb9@byu.net>
52172
52173         Fix testing canonicalize on cygwin.
52174         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52175         Revert patch from 2007-06-19.
52176         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52177         canonicalize module is also in use.
52178         * tests/test-canonicalize.c: New file.
52179         * tests/test-canonicalize.sh: Likewise.
52180         * modules/canonicalize-tests: Likewise.
52181
52182 2007-07-06  Jim Meyering  <jim@meyering.net>
52183
52184         * lib/getugroups.c (getugroups): Detect getgrent failure.
52185         Adjust comment to reflect reality: this function may return -1.
52186
52187 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52188
52189         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52190         the new TP address.
52191         (usage): Fix typo
52192         (gnulib_mk): New variable.
52193
52194 2007-07-05  Jim Meyering  <jim@meyering.net>
52195
52196         Don't let endgrent clobber errno, no matter how improbable.
52197         * lib/getugroups.c (getugroups): Save and restore errno around
52198         endgrent call.
52199
52200         Close the group DB even when failing with 2^31 or more members.
52201         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52202
52203 2007-07-04  Jim Meyering  <jim@meyering.net>
52204
52205         * lib/getugroups.h: New file.
52206         * lib/getugroups.c: Include "getugroups.h".
52207         Remove uses of "register" keyword.
52208         Move local variable, "cp", down into scope where used.
52209         Give "username" parameter the "const" attribute.
52210         * modules/getugroups (Files): Add lib/getugroups.h
52211
52212 2007-07-04  Karl Berry  <karl@gnu.org>
52213
52214         * MODULES.html.sh (func_all_modules): Complete rename of
52215         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52216
52217 2007-07-02  Bruno Haible  <bruno@clisp.org>
52218
52219         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52220         mode, when inttypes.h comes from gnulib.
52221         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52222
52223 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52224
52225         * NEWS: Mention lgpl module name change.
52226
52227         * modules/lgpl-2.1: Renamed from lgpl.
52228
52229         * NEWS: Mention gpl module name change.
52230
52231         * modules/gpl-3.0: New file, based on gpl-2.0.
52232
52233         * modules/gpl-2.0: Renamed from gpl.
52234
52235         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52236         doc/gpl-2.0.texi.
52237
52238 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52239
52240         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
52241         #define __STDC_LIMIT_MACROS temporarily while including
52242         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
52243         Problem reported by Joel E. Denny in
52244         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
52245
52246 2007-07-01  Bruno Haible  <bruno@clisp.org>
52247
52248         * lib/unistdio.h: New file.
52249         * lib/unistdio/u-asnprintf.h: New file.
52250         * lib/unistdio/u-asprintf.h: New file.
52251         * lib/unistdio/u-printf-args.c: New file.
52252         * lib/unistdio/u-printf-args.h: New file.
52253         * lib/unistdio/u-printf-parse.h: New file.
52254         * lib/unistdio/u-snprintf.h: New file.
52255         * lib/unistdio/u-sprintf.h: New file.
52256         * lib/unistdio/u-vasprintf.h: New file.
52257         * lib/unistdio/u-vsnprintf.h: New file.
52258         * lib/unistdio/u-vsprintf.h: New file.
52259         * lib/unistdio/ulc-asnprintf.c: New file.
52260         * lib/unistdio/ulc-asprintf.c: New file.
52261         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
52262         * lib/unistdio/ulc-printf-parse.c: New file.
52263         * lib/unistdio/ulc-snprintf.c: New file.
52264         * lib/unistdio/ulc-sprintf.c: New file.
52265         * lib/unistdio/ulc-vasnprintf.c: New file.
52266         * lib/unistdio/ulc-vasprintf.c: New file.
52267         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
52268         * lib/unistdio/ulc-vsnprintf.c: New file.
52269         * lib/unistdio/ulc-vsprintf.c: New file.
52270         * lib/unistdio/u8-asnprintf.c: New file.
52271         * lib/unistdio/u8-asprintf.c: New file.
52272         * lib/unistdio/u8-printf-parse.c: New file.
52273         * lib/unistdio/u8-snprintf.c: New file.
52274         * lib/unistdio/u8-sprintf.c: New file.
52275         * lib/unistdio/u8-vasnprintf.c: New file.
52276         * lib/unistdio/u8-vasprintf.c: New file.
52277         * lib/unistdio/u8-vsnprintf.c: New file.
52278         * lib/unistdio/u8-vsprintf.c: New file.
52279         * lib/unistdio/u8-u8-asnprintf.c: New file.
52280         * lib/unistdio/u8-u8-asprintf.c: New file.
52281         * lib/unistdio/u8-u8-snprintf.c: New file.
52282         * lib/unistdio/u8-u8-sprintf.c: New file.
52283         * lib/unistdio/u8-u8-vasnprintf.c: New file.
52284         * lib/unistdio/u8-u8-vasprintf.c: New file.
52285         * lib/unistdio/u8-u8-vsnprintf.c: New file.
52286         * lib/unistdio/u8-u8-vsprintf.c: New file.
52287         * lib/unistdio/u16-asnprintf.c: New file.
52288         * lib/unistdio/u16-asprintf.c: New file.
52289         * lib/unistdio/u16-printf-parse.c: New file.
52290         * lib/unistdio/u16-snprintf.c: New file.
52291         * lib/unistdio/u16-sprintf.c: New file.
52292         * lib/unistdio/u16-vasnprintf.c: New file.
52293         * lib/unistdio/u16-vasprintf.c: New file.
52294         * lib/unistdio/u16-vsnprintf.c: New file.
52295         * lib/unistdio/u16-vsprintf.c: New file.
52296         * lib/unistdio/u16-u16-asnprintf.c: New file.
52297         * lib/unistdio/u16-u16-asprintf.c: New file.
52298         * lib/unistdio/u16-u16-snprintf.c: New file.
52299         * lib/unistdio/u16-u16-sprintf.c: New file.
52300         * lib/unistdio/u16-u16-vasnprintf.c: New file.
52301         * lib/unistdio/u16-u16-vasprintf.c: New file.
52302         * lib/unistdio/u16-u16-vsnprintf.c: New file.
52303         * lib/unistdio/u16-u16-vsprintf.c: New file.
52304         * lib/unistdio/u32-asnprintf.c: New file.
52305         * lib/unistdio/u32-asprintf.c: New file.
52306         * lib/unistdio/u32-printf-parse.c: New file.
52307         * lib/unistdio/u32-snprintf.c: New file.
52308         * lib/unistdio/u32-sprintf.c: New file.
52309         * lib/unistdio/u32-vasnprintf.c: New file.
52310         * lib/unistdio/u32-vasprintf.c: New file.
52311         * lib/unistdio/u32-vsnprintf.c: New file.
52312         * lib/unistdio/u32-vsprintf.c: New file.
52313         * lib/unistdio/u32-u32-asnprintf.c: New file.
52314         * lib/unistdio/u32-u32-asprintf.c: New file.
52315         * lib/unistdio/u32-u32-snprintf.c: New file.
52316         * lib/unistdio/u32-u32-sprintf.c: New file.
52317         * lib/unistdio/u32-u32-vasnprintf.c: New file.
52318         * lib/unistdio/u32-u32-vasprintf.c: New file.
52319         * lib/unistdio/u32-u32-vsnprintf.c: New file.
52320         * lib/unistdio/u32-u32-vsprintf.c: New file.
52321         * tests/unistdio/test-ulc-asnprintf1.c: New file.
52322         * tests/unistdio/test-ulc-asnprintf1.h: New file.
52323         * tests/unistdio/test-ulc-printf1.h: New file.
52324         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
52325         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
52326         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
52327         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52328         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52329         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52330         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52331         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52332         * tests/unistdio/test-u8-asnprintf1.c: New file.
52333         * tests/unistdio/test-u8-asnprintf1.h: New file.
52334         * tests/unistdio/test-u8-printf1.h: New file.
52335         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52336         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52337         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52338         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52339         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52340         * tests/unistdio/test-u8-vasprintf1.c: New file.
52341         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52342         * tests/unistdio/test-u8-vsprintf1.c: New file.
52343         * tests/unistdio/test-u16-asnprintf1.c: New file.
52344         * tests/unistdio/test-u16-asnprintf1.h: New file.
52345         * tests/unistdio/test-u16-printf1.h: New file.
52346         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52347         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52348         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52349         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52350         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52351         * tests/unistdio/test-u16-vasprintf1.c: New file.
52352         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52353         * tests/unistdio/test-u16-vsprintf1.c: New file.
52354         * tests/unistdio/test-u32-asnprintf1.c: New file.
52355         * tests/unistdio/test-u32-asnprintf1.h: New file.
52356         * tests/unistdio/test-u32-printf1.h: New file.
52357         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52358         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52359         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52360         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52361         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52362         * tests/unistdio/test-u32-vasprintf1.c: New file.
52363         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52364         * tests/unistdio/test-u32-vsprintf1.c: New file.
52365         * modules/unistdio/base: New file.
52366         * modules/unistdio/u-printf-args: New file.
52367         * modules/unistdio/ulc-asnprintf: New file.
52368         * modules/unistdio/ulc-asprintf: New file.
52369         * modules/unistdio/ulc-fprintf: New file.
52370         * modules/unistdio/ulc-printf-parse: New file.
52371         * modules/unistdio/ulc-snprintf: New file.
52372         * modules/unistdio/ulc-sprintf: New file.
52373         * modules/unistdio/ulc-vasnprintf: New file.
52374         * modules/unistdio/ulc-vasprintf: New file.
52375         * modules/unistdio/ulc-vfprintf: New file.
52376         * modules/unistdio/ulc-vsnprintf: New file.
52377         * modules/unistdio/ulc-vsprintf: New file.
52378         * modules/unistdio/u8-asnprintf: New file.
52379         * modules/unistdio/u8-asprintf: New file.
52380         * modules/unistdio/u8-printf-parse: New file.
52381         * modules/unistdio/u8-snprintf: New file.
52382         * modules/unistdio/u8-sprintf: New file.
52383         * modules/unistdio/u8-vasnprintf: New file.
52384         * modules/unistdio/u8-vasprintf: New file.
52385         * modules/unistdio/u8-vsnprintf: New file.
52386         * modules/unistdio/u8-vsprintf: New file.
52387         * modules/unistdio/u8-u8-asnprintf: New file.
52388         * modules/unistdio/u8-u8-asprintf: New file.
52389         * modules/unistdio/u8-u8-snprintf: New file.
52390         * modules/unistdio/u8-u8-sprintf: New file.
52391         * modules/unistdio/u8-u8-vasnprintf: New file.
52392         * modules/unistdio/u8-u8-vasprintf: New file.
52393         * modules/unistdio/u8-u8-vsnprintf: New file.
52394         * modules/unistdio/u8-u8-vsprintf: New file.
52395         * modules/unistdio/u16-asnprintf: New file.
52396         * modules/unistdio/u16-asprintf: New file.
52397         * modules/unistdio/u16-printf-parse: New file.
52398         * modules/unistdio/u16-snprintf: New file.
52399         * modules/unistdio/u16-sprintf: New file.
52400         * modules/unistdio/u16-vasnprintf: New file.
52401         * modules/unistdio/u16-vasprintf: New file.
52402         * modules/unistdio/u16-vsnprintf: New file.
52403         * modules/unistdio/u16-vsprintf: New file.
52404         * modules/unistdio/u16-u16-asnprintf: New file.
52405         * modules/unistdio/u16-u16-asprintf: New file.
52406         * modules/unistdio/u16-u16-snprintf: New file.
52407         * modules/unistdio/u16-u16-sprintf: New file.
52408         * modules/unistdio/u16-u16-vasnprintf: New file.
52409         * modules/unistdio/u16-u16-vasprintf: New file.
52410         * modules/unistdio/u16-u16-vsnprintf: New file.
52411         * modules/unistdio/u16-u16-vsprintf: New file.
52412         * modules/unistdio/u32-asnprintf: New file.
52413         * modules/unistdio/u32-asprintf: New file.
52414         * modules/unistdio/u32-printf-parse: New file.
52415         * modules/unistdio/u32-snprintf: New file.
52416         * modules/unistdio/u32-sprintf: New file.
52417         * modules/unistdio/u32-vasnprintf: New file.
52418         * modules/unistdio/u32-vasprintf: New file.
52419         * modules/unistdio/u32-vsnprintf: New file.
52420         * modules/unistdio/u32-vsprintf: New file.
52421         * modules/unistdio/u32-u32-asnprintf: New file.
52422         * modules/unistdio/u32-u32-asprintf: New file.
52423         * modules/unistdio/u32-u32-snprintf: New file.
52424         * modules/unistdio/u32-u32-sprintf: New file.
52425         * modules/unistdio/u32-u32-vasnprintf: New file.
52426         * modules/unistdio/u32-u32-vasprintf: New file.
52427         * modules/unistdio/u32-u32-vsnprintf: New file.
52428         * modules/unistdio/u32-u32-vsprintf: New file.
52429         * modules/unistdio/ulc-asnprintf-tests: New file.
52430         * modules/unistdio/ulc-vasnprintf-tests: New file.
52431         * modules/unistdio/ulc-vasprintf-tests: New file.
52432         * modules/unistdio/ulc-vsnprintf-tests: New file.
52433         * modules/unistdio/ulc-vsprintf-tests: New file.
52434         * modules/unistdio/u8-asnprintf-tests: New file.
52435         * modules/unistdio/u8-vasnprintf-tests: New file.
52436         * modules/unistdio/u8-vasprintf-tests: New file.
52437         * modules/unistdio/u8-vsnprintf-tests: New file.
52438         * modules/unistdio/u8-vsprintf-tests: New file.
52439         * modules/unistdio/u16-asnprintf-tests: New file.
52440         * modules/unistdio/u16-vasnprintf-tests: New file.
52441         * modules/unistdio/u16-vasprintf-tests: New file.
52442         * modules/unistdio/u16-vsnprintf-tests: New file.
52443         * modules/unistdio/u16-vsprintf-tests: New file.
52444         * modules/unistdio/u32-asnprintf-tests: New file.
52445         * modules/unistdio/u32-vasnprintf-tests: New file.
52446         * modules/unistdio/u32-vasprintf-tests: New file.
52447         * modules/unistdio/u32-vsnprintf-tests: New file.
52448         * modules/unistdio/u32-vsprintf-tests: New file.
52449         * MODULES.html.sh (Unicode string functions): Add the new modules.
52450
52451 2007-07-01  Bruno Haible  <bruno@clisp.org>
52452
52453         * lib/sprintf.c (sprintf): Limit the available length estimation,
52454         to avoid address wraparound.
52455         * lib/vsprintf.c (vsprintf): Likewise.
52456         * modules/sprintf-posix (Dependencies): Add stdint.
52457         * modules/vsprintf-posix (Dependencies): Likewise.
52458
52459 2007-07-01  Bruno Haible  <bruno@clisp.org>
52460
52461         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
52462         Windows PATH as well. Conservative double-quoting. Comments.
52463
52464 2007-07-01  Bruno Haible  <bruno@clisp.org>
52465             Eric Blake  <ebb9@byu.net>
52466             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52467
52468         * gnulib-tool (self_abspathname): Fix algorithm to cope with
52469         empty components in $PATH, denoting '.'.
52470
52471 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52472
52473         * gnulib-tool: Fix indentation.
52474         (func_create_megatestdir): Likewise.
52475         Report by Bruno Haible.
52476
52477 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52478
52479         Sync from Automake.
52480         * build-aux/gnupload: Fix shell portability issues with for loops.
52481         Report by Karl Berry.
52482
52483 2007-06-29  Simon Josefsson  <simon@josefsson.org>
52484
52485         * build-aux/maint.mk (POURL): Use translationproject.org.
52486
52487 2007-06-27  Simon Josefsson  <simon@josefsson.org>
52488             Bruno Haible  <bruno@clisp.org>
52489
52490         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
52491         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
52492         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
52493         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
52494         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
52495
52496 2007-06-27  Bruno Haible  <bruno@clisp.org>
52497
52498         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
52499         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
52500
52501 2007-06-26  Karl Berry  <karl@gnu.org>
52502
52503         * MODULES.html.sh: remove xreadlink-with-size.
52504
52505 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52506
52507         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
52508         method that I hope also handles the double-include problem noted
52509         by Bruno Haible in
52510         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
52511
52512 2007-06-23  Bruno Haible  <bruno@clisp.org>
52513
52514         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52515         Don't let the 'mostlyclean' target fail if the last subdirectory could
52516         not be removed.
52517         Reported by Karl Berry.
52518
52519 2007-06-23  Bruno Haible  <bruno@clisp.org>
52520
52521         * gnulib-tool (echo): Add a speedier workaround for ksh.
52522         * tests/test-echo.sh: Likewise.
52523
52524 2007-06-23  Bruno Haible  <bruno@clisp.org>
52525
52526         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
52527         * tests/test-echo.sh: Likewise.
52528
52529 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52530
52531         * gnulib-tool (IFS): Initialize early, so we don't set it to
52532         empty later.
52533         (self_abspathname): Rewrite algorithm to set it, reindent.
52534         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
52535         (func_create_megatestdir): Merge some sed scripts.
52536
52537 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52538
52539         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
52540         exposed by Sun Studio 11 cc on Solaris 8.
52541
52542 2007-06-22  Bruno Haible  <bruno@clisp.org>
52543
52544         * gnulib-tool (echo): Ensure the echo primitive does not interpret
52545         backslashes.
52546         * tests/test-echo.sh: New file.
52547
52548 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52549
52550         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
52551         simplify `sed_replace_build_aux' scripts, they are portable but
52552         echoing them with `echo' is not.
52553         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
52554
52555 2007-06-21  Karl Berry  <karl@gnu.org>
52556
52557         * config/srclist.txt: guess we can't handle the licenses via
52558         srclist at the moment.
52559
52560 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52561
52562         * MODULES.html.sh: Add include_next.
52563         * modules/include_next: New file.
52564
52565 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52566
52567         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
52568         INCLUDE_NEXT.
52569         (gl_CHECK_NEXT_HEADERS): New macro.
52570         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
52571         the obsolescent gl_ABSOLUTE_HEADER.
52572         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
52573         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
52574         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
52575         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52576         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52577         * m4/math_h.m4 (gl_MATH_H): Likewise.
52578         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52579         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52580         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52581         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52582         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52583         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52584         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52585         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52586         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52587         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52588         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
52589         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
52590         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
52591         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52592         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52593         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52594         * m4/inttypes.m4 (gl_INTTYPES_H): Define
52595         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
52596         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
52597         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
52598         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
52599         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
52600         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
52601         * lib/float_.h: Likewise.
52602         * lib/inttypes_.h: Likewise.
52603         * lib/math_.h: Likewise.
52604         * lib/search_.h: Likewise.
52605         * lib/signal_.h: Likewise.
52606         * lib/stdint_.h: Likewise.
52607         * lib/stdio_.h: Likewise.
52608         * lib/stdlib_.h: Likewise.
52609         * lib/string_.h: Likewise.
52610         * lib/sys_stat_.h: Likewise.
52611         * lib/sys_time_.h: Likewise.
52612         * lib/time_.h: Likewise.
52613         * lib/unistd_.h: Likewise.
52614         * lib/wchar_.h: Likewise.
52615         * lib/wctype_.h: Likewise.
52616         * lib/dirent_.h: Likewise.
52617         * lib/iconv_.h: Likewise.
52618         * lib/locale_.h: Likewise.
52619         * lib/netinet_in_.h: Likewise.
52620         * lib/sys_select_.h: Likewise.
52621         * lib/sys_socket_.h: Likewise.
52622         * lib/sysexits_.h: Likewise.
52623         * modules/fcntl (Depends-on): Depend on include_next, not
52624         absolute_header.
52625         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
52626         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
52627         * modules/fchdir: Likewise.
52628         * modules/float: Likewise.
52629         * modules/iconv_open: Likewise.
52630         * modules/inttypes: Likewise.
52631         * modules/locale: Likewise.
52632         * modules/math: Likewise.
52633         * modules/netinet_in: Likewise.
52634         * modules/search: Likewise.
52635         * modules/signal: Likewise.
52636         * modules/stdint: Likewise.
52637         * modules/stdio: Likewise.
52638         * modules/stdlib: Likewise.
52639         * modules/string: Likewise.
52640         * modules/sys_select: Likewise.
52641         * modules/sys_socket: Likewise.
52642         * modules/sys_stat: Likewise.
52643         * modules/sys_time: Likewise.
52644         * modules/sysexits: Likewise.
52645         * modules/time: Likewise.
52646         * modules/unistd: Likewise.
52647         * modules/wchar: Likewise.
52648         * modules/wctype: Likewise.
52649         * modules/sys_stat: Change maintainer to "all".
52650         * modules/unistd: Likewise.
52651
52652 2007-06-20  Karl Berry  <karl@gnu.org>
52653
52654         * config/srclist.txt: track www changes in license files.
52655
52656 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
52657
52658         * build-aux/bootstrap: Remove stray dot.
52659         Make sure build_aux settings are honored when linking
52660         gnulib_extra_files.
52661
52662 2007-06-19  Eric Blake  <ebb9@byu.net>
52663
52664         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52665         Allow compilation on cygwin.
52666
52667 2007-06-19  Jim Meyering  <jim@meyering.net>
52668
52669         xreadlink-with-size: Remove module.  No longer used.
52670         Ex-callers now use xreadlink or mreadlink-with-size.
52671         * modules/xreadlink-with-size: Remove module.
52672         * lib/xreadlink-with-size.c: Remove file.
52673         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
52674         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
52675         just before the function definition *is* accurate.
52676
52677         Eliminate one way canonicalize_filename_mode could exit.
52678         * lib/canonicalize.c (canonicalize_filename_mode):
52679         Use mreadlink_with_size, not xreadlink_with_size.
52680
52681 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
52682
52683         Detect porting problems to FreeBSD/arm, which has time_t wider than
52684         long int.  Original problem reported for GNU diff by Xin Li in
52685         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
52686         * modules/getdate (Depends-on): Add intprops, verify.
52687         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
52688         is an integer type no wider than long int.
52689
52690 2007-06-18  Jim Meyering  <jim@meyering.net>
52691
52692         New module: mreadlink-with-size.
52693         * MODULES.html.sh: Add mreadlink-with-size.
52694         * modules/mreadlink-with-size: New module
52695         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
52696         not xreadlink-with-size.
52697         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
52698
52699 2007-06-16  Bruno Haible  <bruno@clisp.org>
52700
52701         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
52702         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
52703         Reported by Gary V. Vaughan <gary@gnu.org>.
52704
52705 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
52706
52707         Revamp lchown so that it lives in unistd.h where it belongs.
52708         * lib/lchown.h: Remove.
52709         * lib/dirchownmod.c: Don't include lib/lchown.h.
52710         * lib/fchownat.c: Likewise.
52711         * lib/openat.c: Likewise.
52712         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
52713         does not follow symlinks.
52714         (EOPNOTSUPP): Define if not defined.
52715         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
52716         is defined to 0.
52717         (lchown): New decl.
52718         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
52719         Do not check for lchown decl.
52720         Set REPLACE_LCHOWN.
52721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
52722         REPLACE_LCHOWN.
52723         * modules/chown: Make it clear it follows symlinks.
52724         * modules/lchown: Make it clear it doesn't follow symlinks.
52725         (Files): Remove lib/lchown.h
52726         (Depends-on): Add unistd.
52727         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
52728         (Include): Include <unistd.h>, not "lchown.h".
52729         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
52730         REPLACE_LCHOWN.
52731
52732 2007-06-15  Jim Meyering  <jim@meyering.net>
52733
52734         Change license (GPL to LGPL) of fsusage and dependents.
52735         * modules/fsusage (License): Change to LGPL.
52736         * modules/full-read (License): Likewise.
52737         * modules/full-write (License): Likewise.
52738         * modules/safe-read (License): Likewise.
52739         * modules/safe-write (License): Likewise.
52740
52741 2007-06-14  Ben Pfaff  <blp@gnu.org>
52742
52743         Missing part of allocsa -> malloca transition.
52744         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
52745         gl_MALLOCA.
52746
52747 2007-06-12  Bruno Haible  <bruno@clisp.org>
52748
52749         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
52750         to ia64, x86_64, i386.
52751         Reported by Eric Blake.
52752
52753 2007-06-12  Bruno Haible  <bruno@clisp.org>
52754
52755         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
52756         cross-compiling to x86_64.
52757
52758 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
52759
52760         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
52761         glitch reported by Ralf Wildenhues in
52762         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
52763
52764         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
52765         Vin Shelton.
52766
52767 2007-06-11  Bruno Haible  <bruno@clisp.org>
52768
52769         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
52770         replacement string.
52771         Reported by Eric Blake.
52772
52773 2007-06-10  Bruno Haible  <bruno@clisp.org>
52774
52775         Prepare vasnprintf code for use with Unicode strings.
52776         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
52777         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
52778         TYPE_U32_STRING.
52779         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
52780         a_u32_string variants.
52781         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52782         * lib/printf-args.c: Don't include config.h and the specification
52783         header if PRINTF_FETCHARGS is already defined.
52784         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52785         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
52786         TYPE_U16_STRING, TYPE_U32_STRING.
52787         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
52788         u16_directive, u16_directives, u32_directive, u32_directives): New
52789         types.
52790         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
52791         New declarations.
52792         * lib/printf-parse.c: Don't include config.h and the specification
52793         header if PRINTF_PARSE is already defined. Eliminate the set of
52794         parameters for WIDE_CHAR_VERSION; the user of this file must provide
52795         them now. Include c-ctype.h.
52796         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
52797         directive and CHAR_T_ONLY_ASCII.
52798         * lib/vasnprintf.c: Don't include config.h and the specification header
52799         if VASNPRINTF is already defined.
52800         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
52801         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
52802         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
52803         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
52804         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
52805         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
52806         code accordingly.
52807         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
52808         pad_ourselves also in this case, with the 'c' and 's' directives, and
52809         with a different notion of "width".
52810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
52811
52812 2007-06-10  Bruno Haible  <bruno@clisp.org>
52813
52814         * modules/unistr/u32-mbsnlen: New file.
52815         * lib/unistr/u32-mbsnlen.c: New file.
52816
52817         * modules/unistr/u16-mbsnlen: New file.
52818         * lib/unistr/u16-mbsnlen.c: New file.
52819
52820         * modules/unistr/u8-mbsnlen: New file.
52821         * lib/unistr/u8-mbsnlen.c: New file.
52822
52823         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
52824         declarations.
52825
52826 2007-06-10  Bruno Haible  <bruno@clisp.org>
52827
52828         * lib/string_.h (mbsnlen): New declaration.
52829         * lib/mbsnlen.c: New file.
52830         * m4/mbsnlen.m4: New file.
52831         * modules/mbsnlen: New file.
52832         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
52833         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
52834         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
52835
52836 2007-06-10  Bruno Haible  <bruno@clisp.org>
52837
52838         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
52839
52840 2007-06-10  Bruno Haible  <bruno@clisp.org>
52841
52842         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
52843         * lib/mbuiter.h: Likewise.
52844
52845 2007-06-10  Bruno Haible  <bruno@clisp.org>
52846
52847         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
52848         declaration.
52849
52850 2007-06-10  Karl Berry  <karl@gnu.org>
52851
52852         * config/srclist.txt: remove gettext entries, Bruno prefers
52853         to update individually.
52854
52855 2007-06-10  Bruno Haible  <bruno@clisp.org>
52856
52857         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
52858         'maxlen'. Ensure only length + width bytes are allocated, not
52859         length + 1 + width.
52860
52861 2007-06-09  Bruno Haible  <bruno@clisp.org>
52862
52863         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
52864         (CHAR_T): Remove macro.
52865         (VASNPRINTF): Update.
52866
52867 2007-06-09  Bruno Haible  <bruno@clisp.org>
52868
52869         * MODULES.html.sh (Unicode string functions): Add the new modules.
52870
52871         * modules/uniconv/u32-conv-to-enc: New file.
52872         * lib/uniconv/u32-conv-to-enc.c: New file.
52873         * modules/uniconv/u32-conv-to-enc-tests: New file.
52874         * tests/uniconv/test-u32-conv-to-enc.c: New file.
52875
52876         * modules/uniconv/u16-conv-to-enc: New file.
52877         * lib/uniconv/u16-conv-to-enc.c: New file.
52878         * lib/uniconv/u-conv-to-enc.h: New file.
52879         * modules/uniconv/u16-conv-to-enc-tests: New file.
52880         * tests/uniconv/test-u16-conv-to-enc.c: New file.
52881
52882         * modules/uniconv/u8-conv-to-enc: New file.
52883         * lib/uniconv/u8-conv-to-enc.c: New file.
52884         * modules/uniconv/u8-conv-to-enc-tests: New file.
52885         * tests/uniconv/test-u8-conv-to-enc.c: New file.
52886
52887         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
52888         u32_conv_to_encoding): New declarations.
52889
52890 2007-06-09  Bruno Haible  <bruno@clisp.org>
52891
52892         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
52893
52894 2007-06-09  Bruno Haible  <bruno@clisp.org>
52895
52896         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
52897         * modules/malloca: Renamed from modules/allocsa, updated.
52898         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
52899         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
52900         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
52901         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
52902         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
52903         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
52904         * modules/xmalloca: Renamed from modules/xallocsa, updated.
52905         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
52906         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
52907         * modules/c-strcasestr (Depends-on): Update.
52908         * lib/c-strcasestr.c: Update.
52909         * modules/c-strstr (Depends-on): Update.
52910         * lib/c-strstr.c: Update.
52911         * modules/canonicalize-lgpl (Depends-on): Update.
52912         * lib/canonicalize-lgpl.c: Update.
52913         * modules/clean-temp (Depends-on): Update.
52914         * lib/clean-temp.c: Update.
52915         * modules/csharpcomp (Depends-on): Update.
52916         * lib/csharpcomp.c: Update.
52917         * modules/csharpexec (Depends-on): Update.
52918         * lib/csharpexec.c: Update.
52919         * modules/javacomp (Depends-on): Update.
52920         * lib/javacomp.c: Update.
52921         * modules/javaexec (Depends-on): Update.
52922         * lib/javaexec.c: Update.
52923         * modules/mbscasestr (Depends-on): Update.
52924         * lib/mbscasestr.c: Update.
52925         * modules/mbsstr (Depends-on): Update.
52926         * lib/mbsstr.c: Update.
52927         * modules/setenv (Depends-on): Update.
52928         * lib/setenv.c: Update.
52929         * modules/strcasestr (Depends-on): Update.
52930         * lib/strcasestr.c: Update.
52931         * modules/striconveha (Depends-on): Update.
52932         * lib/striconveha.c: Update.
52933         * modules/relocatable-prog-wrapper (Files): Update.
52934         * lib/relocwrapper.c: Update.
52935         * build-aux/install-reloc: Update.
52936         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
52937
52938 2007-06-08  Bruno Haible  <bruno@clisp.org>
52939
52940         Port to uClibc.
52941         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
52942         * lib/fpurge.c (fpurge): Likewise.
52943         * lib/freading.c (freading): Likewise.
52944         * lib/fseeko.c (rpl_fseeko): Likewise.
52945         * lib/fseterr.c (fseterr): Likewise.
52946         * lib/fwriting.c (fwriting): Likewise.
52947         * tests/test-fflush.c (main): Avoid a failure on uClibc.
52948
52949 2007-06-08  Bruno Haible  <bruno@clisp.org>
52950
52951         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
52952         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
52953         * modules/gettext (Files): Add m4/intlmacosx.m4.
52954
52955 2007-06-07  Bruno Haible  <bruno@clisp.org>
52956
52957         * modules/localename-tests: New file.
52958         * tests/test-localename.c: New file.
52959
52960         New module 'localename'.
52961         * lib/localename.h: New file.
52962         * lib/localename.c: New file, from GNU gettext.
52963         * m4/localename.m4: New file.
52964         * modules/localename: New file.
52965
52966 2007-06-07  Bruno Haible  <bruno@clisp.org>
52967
52968         Work around the lack of <wchar.h> on some builds of uClibc.
52969         * doc/headers/wchar.texi: Update.
52970         * lib/wchar_.h: Include <wchar.h> only if it exists.
52971         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
52972         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
52973         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
52974         doesn't exist.
52975         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
52976         * modules/mbfile (Depends-on): Add wchar.
52977         * modules/mbiter (Depends-on): Likewise.
52978         * modules/mbuiter (Depends-on): Likewise.
52979         Reported by Simon Josefsson.
52980
52981 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
52982
52983         Work around problem reported by Steven M. Schweda in
52984         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
52985         Tru64 5.1B with the Compaq compiler environment installed declares
52986         an 'isblank' function but does not define it in the C library.
52987         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
52988         * lib/regex_internal.h (isblank): Likewise.
52989         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
52990         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52991
52992 2007-06-05  Bruno Haible  <bruno@clisp.org>
52993
52994         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
52995         ia64.
52996         * modules/printf-safe: New file.
52997         * modules/fprintf-posix (Depends-on): Add printf-safe.
52998         * modules/printf-posix (Depends-on): Likewise.
52999         * modules/snprintf-posix (Depends-on): Likewise.
53000         * modules/sprintf-posix (Depends-on): Likewise.
53001         * modules/vasnprintf-posix (Depends-on): Likewise.
53002         * modules/vasprintf-posix (Depends-on): Likewise.
53003         * modules/vfprintf-posix (Depends-on): Likewise.
53004         * modules/vprintf-posix (Depends-on): Likewise.
53005         * modules/vsnprintf-posix (Depends-on): Likewise.
53006         * modules/vsprintf-posix (Depends-on): Likewise.
53007         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
53008         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
53009         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
53010         "no" on i386, x86_64, ia64.
53011         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
53012         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53013         on i386, x86_64, ia64.
53014         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
53015         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53016         on i386, x86_64, ia64.
53017         * tests/test-vasnprintf-posix.c: Include float.h.
53018         (LDBL80_WORDS): New macro.
53019         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53020         on i386, x86_64, ia64.
53021         * tests/test-vasprintf-posix.c: Include float.h.
53022         (LDBL80_WORDS): New macro.
53023         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53024         on i386, x86_64, ia64.
53025         * tests/test-snprintf-posix.c: Include float.h.
53026         * tests/test-sprintf-posix.c: Likewise.
53027         * tests/test-vsnprintf-posix.c: Likewise.
53028         * tests/test-vsprintf-posix.c: Likewise.
53029
53030 2007-06-05  Bruno Haible  <bruno@clisp.org>
53031
53032         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53033         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53034         non-IEEE numbers on i386, x86_64, ia64.
53035         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53036         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53037         * tests/test-isnanl.h: Include float.h.
53038         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53039
53040 2007-06-05  Bruno Haible  <bruno@clisp.org>
53041
53042         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53043         also the %a / %A. Handle the %a / %A code before this extra handling.
53044
53045 2007-06-05  Bruno Haible  <bruno@clisp.org>
53046
53047         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53048         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53049
53050 2007-06-05  Bruno Haible  <bruno@clisp.org>
53051
53052         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53053         typo in variable name.
53054
53055 2007-06-05  Eric Blake  <ebb9@byu.net>
53056
53057         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53058         Reported by Simon Josefsson.
53059
53060 2007-06-04  Bruno Haible  <bruno@clisp.org>
53061
53062         Avoid test failures on some PowerPC platforms.
53063         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53064         Define differently for PowerPC.
53065         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53066         Reported by Gary V. Vaughan <gary@gnu.org>.
53067
53068 2007-06-02  Bruno Haible  <bruno@clisp.org>
53069
53070         Fix test-stdint failure on FreeBSD/ia64.
53071         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53072         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53073         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53074         * doc/headers/stdint.texi: Update.
53075
53076 2007-06-01  Bruno Haible  <bruno@clisp.org>
53077
53078         * tests/test-binary-io.c (main): Pass a third argument to open().
53079         Reported by Gary V. Vaughan <gary@gnu.org>.
53080
53081 2007-06-01  Bruno Haible  <bruno@clisp.org>
53082
53083         * doc/functions/frexpl.texi: Update for mingw.
53084
53085 2007-06-01  Bruno Haible  <bruno@clisp.org>
53086
53087         * tests/test-lseek.c (main): Disable test of errno for invalid third
53088         argument.
53089         * doc/functions/lseek.texi: Update.
53090         Reported by Gary V. Vaughan <gary@gnu.org>.
53091
53092 2007-05-28  Bruno Haible  <bruno@clisp.org>
53093
53094         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53095
53096 2007-05-31  Eric Blake  <ebb9@byu.net>
53097
53098         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53099         cross compiling.
53100
53101 2007-05-30  Eric Blake  <ebb9@byu.net>
53102         and Bruno Haible  <bruno@clisp.org>
53103
53104         Work around mingw test failures exposed by m4-1.4.9b.
53105         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53106         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53107         moment.
53108
53109 2007-05-30  Bruno Haible  <bruno@clisp.org>
53110
53111         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53112         assuming that they are closed. Needed on HP-UX 11.
53113
53114 2007-05-29  Bruno Haible  <bruno@clisp.org>
53115
53116         Fix a problem with #include_next.
53117         * lib/dirent_.h: Split the double-inclusion guard.
53118         * lib/fcntl_.h: Likewise.
53119         * lib/float_.h: Likewise.
53120         * lib/iconv_.h: Likewise.
53121         * lib/inttypes_.h: Likewise.
53122         * lib/locale_.h: Likewise.
53123         * lib/math_.h: Likewise.
53124         * lib/netinet_in_.h: Likewise.
53125         * lib/search_.h: Likewise.
53126         * lib/signal_.h: Likewise.
53127         * lib/stdint_.h: Likewise.
53128         * lib/stdio_.h: Likewise.
53129         * lib/stdlib_.h: Likewise.
53130         * lib/string_.h: Likewise.
53131         * lib/sys_select_.h: Likewise.
53132         * lib/sys_socket_.h: Likewise.
53133         * lib/sys_stat_.h: Likewise.
53134         * lib/sys_time_.h: Likewise.
53135         * lib/sysexits_.h: Likewise.
53136         * lib/time_.h: Likewise.
53137         * lib/unistd_.h: Likewise.
53138         * lib/wchar_.h: Likewise.
53139         * lib/wctype_.h: Likewise.
53140
53141 2007-05-29  Bruno Haible  <bruno@clisp.org>
53142
53143         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53144         for the moment.
53145
53146 2007-05-29  Bruno Haible  <bruno@clisp.org>
53147
53148         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53149         invocation.
53150         Reported by Eric Blake.
53151
53152 2007-05-29  Bruno Haible  <bruno@clisp.org>
53153
53154         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53155         compiling case.
53156
53157 2007-05-29  Eric Blake  <ebb9@byu.net>
53158             Bruno Haible  <bruno@clisp.org>
53159
53160         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53161         cross compiles.
53162
53163 2007-05-28  Eric Blake  <ebb9@byu.net>
53164
53165         * modules/closein-tests (test_closein_LDADD): Support test on
53166         cygwin with libtool.
53167
53168 2007-05-28  Bruno Haible  <bruno@clisp.org>
53169
53170         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53171         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53172         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53173         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53174         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53175         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53176         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53177         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53178         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53179
53180 2007-05-28  Eric Blake  <ebb9@byu.net>
53181
53182         Unconditionally include <config.h> in unit tests.
53183         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53184         * tests/test-allocsa.c, tests/test-arcfour.c,
53185         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53186         tests/test-array_list.c, tests/test-array_oset.c,
53187         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53188         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53189         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53190         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53191         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53192         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53193         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53194         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53195         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53196         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53197         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53198         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53199         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53200         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53201         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53202         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53203         test-md5.c, test-memmem.c, test-printf-posix.c,
53204         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53205         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53206         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53207         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53208         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53209         test-vasnprintf-posix2.c, test-vasnprintf.c,
53210         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53211         test-vfprintf-posix.c, test-vprintf-posix.c,
53212         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53213         test-xvasprintf.c: Likewise.
53214
53215 2007-05-28  Bruno Haible  <bruno@clisp.org>
53216
53217         * gnulib-tool (func_import): Remember the --with-tests command-line
53218         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53219         Reported by Eric Blake.
53220
53221 2007-05-28  Bruno Haible  <bruno@clisp.org>
53222
53223         * modules/ftell-tests: New file.
53224         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53225         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53226
53227         * lib/ftell.c: New file.
53228         * modules/ftell: New file.
53229         * m4/ftell.m4: New file.
53230         * doc/functions/ftell.texi: Update.
53231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53232         REPLACE_FTELL.
53233         * lib/stdio_.h (rpl_ftell): New declaration.
53234         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53235         REPLACE_FTELL.
53236
53237 2007-05-28  Eric Blake  <ebb9@byu.net>
53238
53239         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
53240
53241 2007-05-28  Bruno Haible  <bruno@clisp.org>
53242
53243         * modules/fseek-tests: New file.
53244         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
53245         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
53246
53247         * lib/fseek.c: New file.
53248         * modules/fseek: New file.
53249         * m4/fseek.m4: New file.
53250         * doc/functions/fseek.texi: Update.
53251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
53252         REPLACE_FSEEK.
53253         * lib/stdio_.h (rpl_fseek): New declaration.
53254         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
53255         REPLACE_FSEEK.
53256
53257 2007-05-28  Bruno Haible  <bruno@clisp.org>
53258
53259         * lib/stdio_.h (fflush): More comments.
53260
53261 2007-05-28  Bruno Haible  <bruno@clisp.org>
53262
53263         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
53264         runtime test.
53265
53266 2007-05-28  Eric Blake  <ebb9@byu.net>
53267
53268         Improve lseek module.
53269         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
53270         * lib/unistd_.h (lseek): Scale back link warning message.
53271         * tests/test-lseek.c: Beef up test.
53272         * tests/test-lseek.sh: Exercise more facets of lseek.
53273         Reported by Bruno Haible.
53274
53275 2007-05-28  Bruno Haible  <bruno@clisp.org>
53276
53277         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
53278         to define.
53279
53280 2007-05-27  Bruno Haible  <bruno@clisp.org>
53281
53282         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
53283
53284 2007-05-27  Bruno Haible  <bruno@clisp.org>
53285
53286         * modules/openmp: New file.
53287         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
53288         Noah Misch.
53289
53290 2007-05-26  Bruno Haible  <bruno@clisp.org>
53291
53292         * modules/chdir-long (Depends-on): Add fchdir.
53293         * modules/chdir-safer (Depends-on): Likewise.
53294         * modules/fts (Depends-on): Likewise.
53295         * modules/fts-lgpl (Depends-on): Likewise.
53296         * modules/openat (Depends-on): Likewise.
53297         * modules/savewd (Depends-on): Likewise.
53298
53299 2007-05-24  Eric Blake  <ebb9@byu.net>
53300
53301         Fix lseek on mingw.
53302         * modules/lseek: New module.
53303         * m4/lseek.m4: New file.
53304         * lib/lseek.c: New file.
53305         * modules/lseek-tests: New file.
53306         * tests/test-lseek.c: New file.
53307         * tests/test-lseek.sh: New file.
53308         * MODULES.html.sh: Document lseek module.
53309         * modules/fflush (Depends-on): Add lseek, fseeko.
53310         * modules/fseeko (Depends-on): Likewise.
53311         * modules/ftello (Depends-on): Likewise.
53312         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
53313         broken.
53314         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
53315         broken.
53316         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
53317         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
53318         * lib/ftello.c (rpl_ftello): Likewise.
53319         * tests/test-fseeko.c (main): Test this.
53320         * tests/test-fseeko.sh: Likewise.
53321         * tests/test-ftello.c (main): Likewise.
53322         * tests/test-ftello.sh: Likewise.
53323         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
53324         implies replacing fseek.
53325         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
53326         HAVE_FTELLO.
53327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53328         * modules/unistd (Makefile.am): Likewise.
53329         * lib/unistd_.h (lseek): Declare a replacement.
53330         * doc/functions/lseek.texi (lseek): Document this fix.
53331         * doc/functions/fseek.texi (fseek): Likewise.
53332         * doc/functions/ftell.texi (ftell): Likewise.
53333
53334 2007-05-24  Bruno Haible  <bruno@clisp.org>
53335
53336         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53337         in the printed representation of a NaN.
53338         * tests/test-vasprintf-posix.c (test_function): Likewise.
53339         * tests/test-snprintf-posix.h (test_function): Likewise.
53340         * tests/test-sprintf-posix.h (test_function): Likewise.
53341         Reported by Eric Blake.
53342
53343 2007-05-23  Eric Blake  <ebb9@byu.net>
53344
53345         Fix fseeko/ftello on cygwin 1.5.24.
53346         * doc/functions/fseeko.texi (fseeko): Document the fix.
53347         * doc/functions/ftello.texi (ftello): Document the fix.
53348         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53349         * doc/functions/stdout.text (stdout): New file.
53350         * doc/functions/stderr.text (stderr): New file.
53351         * doc/gnulib.texi (Function Substitutes): Use new files.
53352         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53353         prior to 1.7.0.
53354         * tests/test-ftello.c (main): Likewise for ftello.
53355         * tests/test-fseeko.sh: New file.
53356         * tests/test-ftello.sh: New file.
53357         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53358         with seekable stdin.
53359         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53360         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53361         (gl_REPLACE_FSEEKO): New macro.
53362         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53363         * modules/fseeko (Files): Distribute fseeko.c.
53364         * modules/ftello (Files): Distribute ftello.c.
53365         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53366         mode.
53367         * lib/ftello.c (rpl_ftello): New file.
53368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53369         fseeko, ftello.
53370         (gl_STDIN_LARGE_OFFSET): New macro.
53371         * modules/stdio (Makefile.am): Perform the replacement.
53372         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53373
53374 2007-05-23  Bruno Haible  <bruno@clisp.org>
53375
53376         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53377         GNULIB_POSIXCHECK is defined.
53378
53379 2007-05-21  Bruno Haible  <bruno@clisp.org>
53380
53381         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53382         Check also the output for NaN arguments. When cross-compiling, guess
53383         no on IRIX.
53384         * lib/vasnprintf.c: Update comments.
53385         * tests/test-vasnprintf-posix.c (strisnan): New function.
53386         (test_function): Use it.
53387         * tests/test-vasprintf-posix.c (strisnan): New function.
53388         (test_function): Use it.
53389         * tests/test-snprintf-posix.h (strisnan): New function.
53390         (test_function): Use it.
53391         * tests/test-sprintf-posix.h (strisnan): New function.
53392         (test_function): Use it.
53393         Reported by Eric Blake.
53394
53395 2007-05-20  Bruno Haible  <bruno@clisp.org>
53396
53397         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53398         numbers that fails on BeOS.
53399         * doc/functions/frexpl.texi: Update.
53400
53401 2007-05-20  Jim Meyering  <jim@meyering.net>
53402
53403         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
53404         forced upon us by glibc-2.6.
53405
53406 2007-05-20  Bruno Haible  <bruno@clisp.org>
53407
53408         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
53409         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
53410         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
53411         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
53412         NEED_PRINTF_INFINITE.
53413         (is_infinitel): New function.
53414         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
53415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
53416         gl_PREREQ_VASNPRINTF_INFINITE.
53417         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
53418         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53419         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
53420         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
53421         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
53422         gl_PREREQ_VASNPRINTF_INFINITE.
53423         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53424         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53425         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53426         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53427         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53429         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53430         * doc/functions/fprintf.texi: Update.
53431         * doc/functions/printf.texi: Update.
53432         * doc/functions/snprintf.texi: Update.
53433         * doc/functions/sprintf.texi: Update.
53434         * doc/functions/vfprintf.texi: Update.
53435         * doc/functions/vprintf.texi: Update.
53436         * doc/functions/vsnprintf.texi: Update.
53437         * doc/functions/vsprintf.texi: Update.
53438
53439 2007-05-20  Bruno Haible  <bruno@clisp.org>
53440
53441         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
53442         was not found in libc.
53443         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
53444
53445 2007-05-20  Bruno Haible  <bruno@clisp.org>
53446
53447         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53448         printed as "-nan" instead of "nan".
53449         * tests/test-vasprintf-posix.c (test_function): Likewise.
53450         * tests/test-snprintf-posix.h (test_function): Likewise.
53451         * tests/test-sprintf-posix.h (test_function): Likewise.
53452         Needed for HP-UX 11.
53453
53454 2007-05-20  Jim Meyering  <jim@meyering.net>
53455
53456         Fix buggy test for the fchownat-deref bug.
53457         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
53458         symlink required for the run-test.  Without it, this test would
53459         always declare that fchownat doesn't work, and client code would
53460         unnecessarily use the replacement function with fixed libc.
53461         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
53462         Reported by Greg Schafer.
53463
53464 2007-05-19  Bruno Haible  <bruno@clisp.org>
53465
53466         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
53467         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
53468         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
53469         Needed for IRIX 6.5 and Solaris 2.5.1.
53470
53471 2007-05-19  Bruno Haible  <bruno@clisp.org>
53472
53473         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
53474         (test_function): Skip tests involving -0.0 on platforms where
53475         -0.0 = 0.0.
53476         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
53477         (test_function): Skip tests involving -0.0 on platforms where
53478         -0.0 = 0.0.
53479         * tests/test-snprintf-posix.h (have_minus_zero): New function.
53480         (test_function): Skip tests involving -0.0 on platforms where
53481         -0.0 = 0.0.
53482         * tests/test-sprintf-posix.h (have_minus_zero): New function.
53483         (test_function): Skip tests involving -0.0 on platforms where
53484         -0.0 = 0.0.
53485         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
53486         tests.
53487         * tests/test-printf-posix.h (test_function): Likewise.
53488         * tests/test-printf-posix.output: Remove all -0.0 related results.
53489         Needed for IRIX 6.5.
53490
53491 2007-05-19  Bruno Haible  <bruno@clisp.org>
53492
53493         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53494         printed as "nan0x7fffffff" instead of "nan".
53495         * tests/test-vasprintf-posix.c (test_function): Likewise.
53496         * tests/test-snprintf-posix.h (test_function): Likewise.
53497         * tests/test-sprintf-posix.h (test_function): Likewise.
53498         * tests/test-fprintf-posix.h (NaN): Remove macro.
53499         (test_function): Remove all NaN related tests.
53500         * tests/test-printf-posix.h (NaN): Remove macro.
53501         (test_function): Remove all NaN related tests.
53502         * tests/test-printf-posix.output: Remove all NaN related results.
53503         Needed for IRIX 6.5.
53504
53505 2007-05-19  Bruno Haible  <bruno@clisp.org>
53506
53507         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
53508         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
53509
53510 2007-05-19  Bruno Haible  <bruno@clisp.org>
53511
53512         * lib/float_.h: New file.
53513         * m4/float_h.m4: New file.
53514         * modules/float: New file.
53515         * modules/isnanl (Dependencies): Add float.
53516         * modules/isnanl-nolibm (Dependencies): Likewise.
53517         * modules/mathl (Dependencies): Likewise.
53518         * modules/printf-frexpl (Dependencies): Likewise.
53519         * modules/signbit (Dependencies): Likewise.
53520         * modules/vasnprintf (Dependencies): Likewise.
53521         * doc/headers/float.texi: Update.
53522
53523 2007-05-19  Jim Meyering  <jim@meyering.net>
53524
53525         * lib/utimens.c (gl_futimens): Rename from futimens,
53526         now that glibc-2.6 declares futimens.
53527         * lib/utimens.h: Likewise.
53528
53529 2007-05-19  Bruno Haible  <bruno@clisp.org>
53530
53531         Avoid test failures on mingw.
53532         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
53533         * tests/test-printf-posix.sh: Likewise.
53534         * tests/test-vfprintf-posix.sh: Likewise.
53535         * tests/test-vprintf-posix.sh: Likewise.
53536
53537 2007-05-19  Bruno Haible  <bruno@clisp.org>
53538
53539         Fix *printf result for NaN, Inf, -0.0 on mingw.
53540         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
53541         * lib/vasnprintf.c: Include math.h and isnan.h.
53542         (is_infinite_or_zero): New function.
53543         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
53544         values in the %f, %F, %e, %E, %g, %G directives.
53545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
53546         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53547         gl_PRINTF_INFINITE and test its result. Invoke
53548         gl_PREREQ_VASNPRINTF_INFINITE.
53549         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53550         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53551         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53552         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53553         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53554         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53555         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53556         * doc/functions/fprintf.texi: Update.
53557         * doc/functions/printf.texi: Update.
53558         * doc/functions/snprintf.texi: Update.
53559         * doc/functions/sprintf.texi: Update.
53560         * doc/functions/vfprintf.texi: Update.
53561         * doc/functions/vprintf.texi: Update.
53562         * doc/functions/vsnprintf.texi: Update.
53563         * doc/functions/vsprintf.texi: Update.
53564
53565 2007-05-19  Bruno Haible  <bruno@clisp.org>
53566
53567         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
53568         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
53569         Instead of multiplying with 10^k, set extra_zeroes to k.
53570         (scale10_round_long_double): Remove function.
53571
53572 2007-05-18  Bruno Haible  <bruno@clisp.org>
53573
53574         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
53575         introduced on 2007-05-06.
53576
53577 2007-05-18  Bruno Haible  <bruno@clisp.org>
53578
53579         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
53580         %g directives.
53581         * tests/test-vasprintf-posix.c (test_function): Likewise.
53582         * tests/test-snprintf-posix.h (test_function): Likewise.
53583         * tests/test-sprintf-posix.h (test_function): Likewise.
53584
53585 2007-05-18  Bruno Haible  <bruno@clisp.org>
53586
53587         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
53588         (strmatch): New function.
53589         (test_function): Test the %f directive on numbers of various exponents.
53590         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
53591         (strmatch): New function.
53592         (test_function): Test the %f directive on numbers of various exponents.
53593         * tests/test-snprintf-posix.h (strmatch): New function.
53594         (test_function): Test the %f directive on numbers of various exponents.
53595         * tests/test-sprintf-posix.h (strmatch): New function.
53596         (test_function): Test the %f directive on numbers of various exponents.
53597         * tests/test-snprintf-posix.c (SIZEOF): New macro.
53598         * tests/test-sprintf-posix.c (SIZEOF): New macro.
53599         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
53600         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
53601
53602 2007-05-18  Bruno Haible  <bruno@clisp.org>
53603
53604         Add support for 'long double' number output.
53605         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
53606         * lib/vasnprintf.c: Include math.h and float+.h.
53607         (mp_limb_t): New type.
53608         (GMP_LIMB_BITS): New macro.
53609         (mp_twolimb_t): New type.
53610         (GMP_TWOLIMB_BITS): New macro.
53611         (mpn_t): New type.
53612         (multiply, divide, convert_to_decimal, decode_long_double,
53613         scale10_round_long_double, scale10_round_decimal_long_double,
53614         floorlog10l): New functions.
53615         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
53616         for the %f, %F, %e, %E, %g, %G directives.
53617         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
53618         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53619         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
53620         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
53621         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53622         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53623         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53624         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53625         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53626         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53627         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53628         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
53629         * modules/snprintf-posix (Depends-on): Likewise.
53630         * modules/sprintf-posix (Depends-on): Likewise.
53631         * modules/vasnprintf-posix (Depends-on): Likewise.
53632         * modules/vasprintf-posix (Depends-on): Likewise.
53633         * modules/vfprintf-posix (Depends-on): Likewise.
53634         * modules/vsnprintf-posix (Depends-on): Likewise.
53635         * modules/vsprintf-posix (Depends-on): Likewise.
53636         * modules/vasnprintf (Files): Add lib/float+.h.
53637         * doc/functions/fprintf.texi: Update.
53638         * doc/functions/printf.texi: Update.
53639         * doc/functions/snprintf.texi: Update.
53640         * doc/functions/sprintf.texi: Update.
53641         * doc/functions/vfprintf.texi: Update.
53642         * doc/functions/vprintf.texi: Update.
53643         * doc/functions/vsnprintf.texi: Update.
53644         * doc/functions/vsprintf.texi: Update.
53645
53646 2007-05-18  Bruno Haible  <bruno@clisp.org>
53647
53648         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
53649
53650 2007-05-18  Bruno Haible  <bruno@clisp.org>
53651
53652         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
53653         for printing 64-bit integers. Needed for mingw.
53654
53655 2007-05-18  Bruno Haible  <bruno@clisp.org>
53656
53657         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53658         gl_FUNC_FREXPL_WORKS.
53659         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
53660
53661 2007-05-18  Bruno Haible  <bruno@clisp.org>
53662
53663         * modules/frexpl-nolibm-tests: New file.
53664
53665         * modules/frexpl-nolibm: New file.
53666         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
53667
53668 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53669
53670         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
53671         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53672         GCC 4.2, which otherwise issues a lot of warnings.
53673         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
53674         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
53675         Likewise.
53676         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
53677         * modules/iconv_open (iconv.h): Likewise.
53678         * modules/locale (locale.h): Likewise.
53679         * modules/netinet_in (netinet/in.h): Likewise.
53680         * modules/sys_select (sys_select.h): Likewise.
53681         * modules/sys_socket (sys/socket.h): Likewise.
53682         * modules/sys_stat (sys/stat.h): Likewise.
53683         * modules/sysexits (sysexits.h): Likewise.
53684         * modules/unistd (unistd.h): Likewise.
53685
53686 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53687
53688         * modules/closein-tests (Makefile.am): Distribute
53689         `test-closein.sh'.
53690
53691 2007-05-17  Bruno Haible  <bruno@clisp.org>
53692
53693         * tests/test-printf-posix.output: Renamed from
53694         tests/test-fprintf-posix.out.
53695         * modules/fprintf-posix-tests: Update.
53696         * modules/printf-posix-tests: Update.
53697         * modules/vfprintf-posix-tests: Update.
53698         * modules/vprintf-posix-tests: Update.
53699         * tests/test-fprintf-posix.sh: Update.
53700         * tests/test-printf-posix.sh: Update.
53701         * tests/test-vfprintf-posix.sh: Update.
53702         * tests/test-vprintf-posix.sh: Update.
53703         Reported by Ralf Wildenhues.
53704
53705 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53706
53707         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
53708         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53709         GCC 4.2, which otherwise issues a lot of warnings.
53710         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
53711         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
53712         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
53713         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
53714         it should no longer be needed.
53715         * lib/string_.h: Likewise.
53716         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
53717         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
53718         * modules/inttypes (inttypes.h): Likewise.
53719         * modules/math (math.h): Likewise.
53720         * modules/search (search.h): Likewise.
53721         * modules/signal (signal.h): Likewise.
53722         * modules/stdint (stdint.h): Likewise.
53723         * modules/stdio (stdio.h): Likewise.
53724         * modules/stdlib (stdlib.h): Likewise.
53725         * modules/string (string.h): Likewise.
53726         * modules/sys_time (sys/time.h): Likewise.
53727         * modules/time (time.h): Likewise.
53728         * modules/wchar (wchar.h): Likewise.
53729         * modules/wctype (wtype.h): Likewise.
53730
53731 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53732
53733         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
53734
53735 2007-05-13  Bruno Haible  <bruno@clisp.org>
53736
53737         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
53738         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53739         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
53740         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53741         (gl_PREREQ_STRTOK_R): Don't require it here.
53742
53743 2007-05-13  Bruno Haible  <bruno@clisp.org>
53744
53745         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
53746         when used in C++ mode.
53747
53748 2007-05-12  Bruno Haible  <bruno@clisp.org>
53749
53750         * lib/linebuffer.h: Tweak doc.
53751         * lib/linebuffer.c: Likewise.
53752
53753 2007-05-12  James Youngman  <jay@gnu.org>
53754
53755         * lib/linebuffer.c (readlinebuffer_delim): New function,
53756         like readlinebuffer, but use a caller-specified delimiter.
53757         (readlinebuffer): Just call readlinebuffer_delim with '\n'
53758         as the delimiter.
53759         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
53760
53761 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53762
53763         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
53764         * modules/openat (Files): Remove openat-die.c.
53765         (Depends-on): Add openat-die.
53766         * modules/openat-die: New module.
53767
53768 2007-05-06  Bruno Haible  <bruno@clisp.org>
53769
53770         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
53771         Update with info about Cygwin.
53772         * doc/functions/fprintf.texi: Update.
53773         * doc/functions/printf.texi: Update.
53774         * doc/functions/snprintf.texi: Update.
53775         * doc/functions/sprintf.texi: Update.
53776         * doc/functions/vfprintf.texi: Update.
53777         * doc/functions/vprintf.texi: Update.
53778         * doc/functions/vsnprintf.texi: Update.
53779         * doc/functions/vsprintf.texi: Update.
53780         Reported by Eric Blake.
53781
53782 2007-05-06  Bruno Haible  <bruno@clisp.org>
53783
53784         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
53785         padding ourselves for the floating-point directives.
53786         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
53787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
53788         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53789         gl_PRINTF_FLAG_ZERO and test its result. Invoke
53790         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
53791         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53792         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53793         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53794         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53795         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53796         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53797         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53798         * tests/test-snprintf-posix.h (test_function): Also check the width
53799         and some flags in the %f directive.
53800         * tests/test-sprintf-posix.h (test_function): Likewise.
53801         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53802         * tests/test-vasprintf-posix.c (test_function): Likewise.
53803         * doc/functions/fprintf.texi: Update.
53804         * doc/functions/printf.texi: Update.
53805         * doc/functions/snprintf.texi: Update.
53806         * doc/functions/sprintf.texi: Update.
53807         * doc/functions/vfprintf.texi: Update.
53808         * doc/functions/vprintf.texi: Update.
53809         * doc/functions/vsnprintf.texi: Update.
53810         * doc/functions/vsprintf.texi: Update.
53811
53812 2007-05-06  Bruno Haible  <bruno@clisp.org>
53813
53814         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
53815         pass the ' flag character to sprintf or snprintf.
53816         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
53817         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
53818         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53819         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
53820         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
53821         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53822         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53823         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53824         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53825         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53826         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53827         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53828         * tests/test-snprintf-posix.h (test_function): Also check the grouping
53829         flag.
53830         * tests/test-sprintf-posix.h (test_function): Likewise.
53831         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53832         * tests/test-vasprintf-posix.c (test_function): Likewise.
53833         * doc/functions/fprintf.texi: Update.
53834         * doc/functions/printf.texi: Update.
53835         * doc/functions/snprintf.texi: Update.
53836         * doc/functions/sprintf.texi: Update.
53837         * doc/functions/vfprintf.texi: Update.
53838         * doc/functions/vprintf.texi: Update.
53839         * doc/functions/vsnprintf.texi: Update.
53840         * doc/functions/vsprintf.texi: Update.
53841
53842 2007-05-01  Bruno Haible  <bruno@clisp.org>
53843
53844         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
53845
53846 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
53847
53848         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
53849         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
53850
53851 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53852
53853         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
53854         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
53855         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
53856
53857 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
53858
53859         * lib/argp-help.c (struct hol_entry): New member `ord'.
53860         (HOL_ENTRY_PTRCMP): Use ord for comparison
53861         (hol_sort): Initialize ord.
53862
53863 2007-05-01  Bruno Haible  <bruno@clisp.org>
53864
53865         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
53866         Reported by Eric Blake.
53867         * doc/gnulib.texi (Function Substitutes): Update.
53868
53869 2007-05-01  Bruno Haible  <bruno@clisp.org>
53870
53871         * doc/functions.texi: Remove file, now redundant through
53872         doc/functions/*.texi.
53873
53874 2007-05-01  Bruno Haible  <bruno@clisp.org>
53875
53876         * modules/argp (Depends-on): Add sleep.
53877
53878 2007-05-01  Bruno Haible  <bruno@clisp.org>
53879
53880         * modules/sleep-tests: New file.
53881         * tests/test-sleep.c: New file.
53882
53883         * modules/sleep: New file.
53884         * lib/sleep.c: New file.
53885         * m4/sleep.m4: New file.
53886         * lib/unistd_.h (sleep): New declaration.
53887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
53888         HAVE_SLEEP.
53889         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
53890         * doc/functions/sleep.texi: Document the sleep module.
53891
53892 2007-05-01  Bruno Haible  <bruno@clisp.org>
53893
53894         * lib/sigprocmask.h: Remove file.
53895         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
53896         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
53897         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
53898         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
53899         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
53900         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
53901         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
53902         HAVE_SIGSET_T as a shell variable.
53903         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
53904         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
53905         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
53906         (Depends-on): Add signal. Remove verify.
53907         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
53908         (Include): Mention <signal.h> instead of sigprocmask.h.
53909         * NEWS: Mention the change.
53910         * lib/fatal-signal.c: Don't include sigprocmask.h.
53911
53912 2007-05-01  Bruno Haible  <bruno@clisp.org>
53913
53914         * modules/signal: New file.
53915         * lib/signal_.h: New file.
53916         * m4/signal_h.m4: New file.
53917
53918 2007-05-01  Bruno Haible  <bruno@clisp.org>
53919
53920         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
53921         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
53922         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
53923         HAVE_WCTYPE_CTMP_BUG into wctype.h.
53924
53925 2007-05-01  Bruno Haible  <bruno@clisp.org>
53926
53927         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
53928         configure time.
53929         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
53930         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
53931         * modules/sys_stat (Makefile.am): Substitute their values into
53932         sys/stat.h.
53933
53934 2007-05-01  Bruno Haible  <bruno@clisp.org>
53935
53936         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
53937         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
53938         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
53939
53940 2007-05-01  Bruno Haible  <bruno@clisp.org>
53941
53942         * doc/header/assert.texi: Undo last change: don't mention the gnulib
53943         'assert' module here.
53944
53945 2007-05-01  Bruno Haible  <bruno@clisp.org>
53946
53947         * doc/functions/*.texi: New files.
53948         * doc/functions/google-ranking.txt: New file.
53949         * doc/gnulib.texi (Function Substitutes): New chapter.
53950         (ctime, inet_ntoa): Remove sections.
53951         * doc/ctime.texi: Remove file.
53952         * doc/inet_ntoa.texi: Remove file.
53953         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
53954         dependencies.
53955         (%.info): New rule, specifying a --reference-limit.
53956
53957 2007-05-01  Bruno Haible  <bruno@clisp.org>
53958
53959         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
53960
53961 2007-05-01  Bruno Haible  <bruno@clisp.org>
53962
53963         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
53964         the portability of 'mkdir' to mingw systems.
53965
53966 2007-05-01  Bruno Haible  <bruno@clisp.org>
53967
53968         * doc/headers/google-ranking.txt: New file.
53969
53970 2007-04-30  Eric Blake  <ebb9@byu.net>
53971
53972         Prefer fseeko to fseek.
53973         * modules/getpass (Depends-on): Add fseeko.
53974         * lib/getpass.c (getpass): Use fseeko, not fseek.
53975
53976 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
53977
53978         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
53979         assumes the sorting is stable, while most qsort implementations
53980         are not.  Use argument addresses to ensure they never compare as
53981         equal.
53982
53983         * tests/test-argp-2.sh (usage-indent test): Fix output
53984         (func_compare): Restore diff options
53985         * tests/test-argp.c: Restore #include "progname.h"
53986
53987 2007-04-29  Bruno Haible  <bruno@clisp.org>
53988
53989         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
53990         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53991         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
53992         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53993         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
53994         (configure.ac): Define CHECK_SNPRINTF_POSIX.
53995         (TESTS, check_PROGRAMS): Add test-snprintf.
53996         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
53997         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
53998         (TESTS, check_PROGRAMS): Add test-vsnprintf.
53999         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
54000         assertions that fail on HP-UX, OSF/1, or IRIX.
54001         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
54002
54003 2007-04-29  Bruno Haible  <bruno@clisp.org>
54004
54005         * MODULES.html.sh (posix_functions): Remove 'contents'.
54006
54007 2007-04-29  Karl Berry  <karl@gnu.org>
54008
54009         * config/srclist.txt (gendocs_template_min): new entry.
54010
54011 2007-04-29  Bruno Haible  <bruno@clisp.org>
54012
54013         Work around fpurge bug on BSD systems.
54014         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
54015         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
54016         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
54017         fpurge to rpl_fpurge if the system already has this function.
54018         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54019         the case where the system already has this function. Correct invariants
54020         on BSD systems.
54021         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54022         BSD systems.
54023
54024 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54025
54026         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54027         proposed by Sven Verdoolaege.
54028
54029         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54030         options.
54031         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54032         (usage and help tests): Update
54033
54034 2007-04-29  Bruno Haible  <bruno@clisp.org>
54035
54036         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54037         Print more information in case of failure. Disable a test on BeOS.
54038
54039 2007-04-29  Bruno Haible  <bruno@clisp.org>
54040
54041         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54042         This helps debugging on systems on which no gdb is available.
54043
54044 2007-04-29  Bruno Haible  <bruno@clisp.org>
54045
54046         * lib/freading.h: Improve comments.
54047         * lib/fwriting.h: Likewise.
54048         * tests/test-freading.c (main): Don't check freading immediately after
54049         repositioning. Needed for glibc.
54050
54051 2007-04-29  Bruno Haible  <bruno@clisp.org>
54052
54053         * lib/freading.c (freading): Trivial simplification.
54054
54055 2007-04-28  Bruno Haible  <bruno@clisp.org>
54056
54057         * tests/test-fwriting.c (main): Also test the interaction between
54058         fflush and fwriting.
54059         * modules/fwriting-tests (Depends-on): Add fflush.
54060
54061         * tests/test-freading.c (main): Also test the interaction between
54062         fflush and freading.
54063         * modules/freading-tests (Depends-on): Add fflush.
54064
54065 2007-04-28  Bruno Haible  <bruno@clisp.org>
54066
54067         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54068         fseeko and ftello.
54069         Suggested by Eric Blake.
54070
54071 2007-04-28  Jim Meyering  <jim@meyering.net>
54072
54073         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54074         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54075         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54076
54077 2007-04-27  Eric Blake  <ebb9@byu.net>
54078
54079         * doc/headers/assert.texi (assert.h): Document assert module use.
54080
54081 2007-04-27  Bruno Haible  <bruno@clisp.org>
54082
54083         * doc/headers/*.texi: New files.
54084         * doc/gnulib.texi (Header File Substitutes): New chapter.
54085         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54086         dependencies.
54087         (standards.info ,standards.html, standards.dvi): Update dependencies.
54088         (mostlyclean, clean): New targets.
54089
54090 2007-04-27  Bruno Haible  <bruno@clisp.org>
54091
54092         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54093         * modules/sysexits (Files, Makefile.am): Update.
54094
54095         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54096         * modules/sys_socket (Files, Makefile.am): Update.
54097
54098         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54099         * modules/sys_stat (Files, Makefile.am): Update.
54100
54101 2007-04-27  Eric Blake  <ebb9@byu.net>
54102
54103         * lib/freading.h: Improve comments.
54104         * lib/fwriting.h: Likewise.
54105         * lib/fflush.c: Likewise.
54106
54107         Fix closein for mingw.
54108         * modules/closein-tests: Add tests for closein.
54109         * tests/test-closein.c: New file.
54110         * tests/test-closein.sh: Likewise.
54111         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54112         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54113
54114 2007-04-27  Bruno Haible  <bruno@clisp.org>
54115
54116         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54117         version is < 6.
54118         * lib/math_.h [__DECC]: Likewise.
54119         * lib/stdio_.h [__DECC]: Likewise.
54120         * lib/stdlib_.h [__DECC]: Likewise.
54121         * lib/string_.h [__DECC]: Likewise.
54122         * lib/time_.h [__DECC]: Likewise.
54123         * lib/wchar_.h [__DECC]: Likewise.
54124         * lib/wctype_.h [__DECC]: Likewise.
54125
54126 2007-04-27  Bruno Haible  <bruno@clisp.org>
54127
54128         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54129
54130 2007-04-27  Bruno Haible  <bruno@clisp.org>
54131
54132         * lib/fflush.c: Add comments.
54133         * modules/fpurge-tests (Depends-on): Add fflush.
54134         * modules/freadable-tests (Depends-on): Likewise.
54135         * modules/fwritable-tests (Depends-on): Likewise.
54136
54137 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54138
54139         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54140         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54141         Report by Bruno Haible <bruno@clisp.org>.
54142
54143 2007-04-26  Eric Blake  <ebb9@byu.net>
54144
54145         Fix fflush on mingw.
54146         * modules/fflush (Depends-on): Add freading.
54147         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54148         but unread data.
54149
54150 2007-04-26  Eric Blake  <ebb9@byu.net>
54151         and Bruno Haible  <bruno@clisp.org>
54152
54153         Implement freading and fwriting.
54154         * lib/freading.c: New file.
54155         * lib/freading.h: Likewise.
54156         * m4/freading.m4: Likewise.
54157         * modules/freading: Likewise.
54158         * modules/freading-tests: Likewise.
54159         * tests/test-freading.c: Likewise.
54160         * lib/fwriting.c: New file.
54161         * lib/fwriting.h: Likewise.
54162         * m4/fwriting.m4: Likewise.
54163         * modules/fwriting: Likewise.
54164         * modules/fwriting-tests: Likewise.
54165         * tests/test-fwriting.c: Likewise.
54166         * MODULES.html.sh (File stream based Input/Output): Mention them.
54167
54168 2007-04-26  Bruno Haible  <bruno@clisp.org>
54169
54170         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54171         'long' when we assume it.
54172         Suggested by Eric Blake.
54173
54174 2007-04-26  Bruno Haible  <bruno@clisp.org>
54175
54176         Ensure fseeko, ftello are declared on glibc systems.
54177         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54178         * modules/fseeko (configure.ac-early): Likewise.
54179         * modules/ftello (configure.ac-early): Likewise.
54180         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54181         AC_FUNC_FSEEKO for this.
54182         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54183         (gl_CHECK_FSEEKO): Remove macro.
54184
54185 2007-04-26  Bruno Haible  <bruno@clisp.org>
54186
54187         * tests/test-fflush.c (main): Also check the ftell result after
54188         fflush and fseek/fseeko.
54189         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54190         file descriptor position cache in the stream.
54191         * lib/fseeko.c (rpl_fseeko): Likewise.
54192
54193 2007-04-26  Bruno Haible  <bruno@clisp.org>
54194
54195         * modules/fflush-tests (Depends-on): Add fseeko.
54196
54197 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54198             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54199
54200         * lib/argz_.h: ensure error_t definition is obtained in same
54201         mechanism system argz.h would have.
54202         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54203         argz facilities are known bad.  Err on the side of caution if
54204         cross-compiling.
54205
54206 2007-04-25  Eric Blake  <ebb9@byu.net>
54207
54208         * lib/fpurge.c (includes): Use stdlib.h for free.
54209         * tests/test-fflush.c (main): Also test fflush-fseeko.
54210
54211 2007-04-25  Bruno Haible  <bruno@clisp.org>
54212
54213         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54214         * lib/fseeko.c: New file.
54215         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54216         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54217         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54218         gl_FUNC_FSEEKO.
54219         (gl_FUNC_FSEEKO): Invoke it.
54220         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54221         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54222         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54223
54224 2007-04-25  Bruno Haible  <bruno@clisp.org>
54225
54226         * modules/fflush (Depends-on): Add ftello.
54227
54228 2007-04-25  Bruno Haible  <bruno@clisp.org>
54229
54230         * modules/ftello-tests: New file.
54231         * tests/test-ftello.c: New file.
54232
54233         * modules/ftello: New file.
54234         * m4/ftello.m4: New file.
54235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54236         HAVE_FTELLO.
54237         * lib/stdio_.h (ftello): New declaration.
54238         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
54239         HAVE_FTELLO.
54240
54241 2007-04-25  Bruno Haible  <bruno@clisp.org>
54242
54243         * modules/fseeko-tests: New file.
54244         * tests/test-fseeko.c: New file.
54245
54246         * modules/fseeko: New file.
54247         * m4/fseeko.m4: New file.
54248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
54249         HAVE_FSEEKO.
54250         * lib/stdio_.h (fseeko): New declaration.
54251         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
54252         HAVE_FSEEKO.
54253
54254 2007-04-25  Bruno Haible  <bruno@clisp.org>
54255
54256         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
54257
54258 2007-04-25  Bruno Haible  <bruno@clisp.org>
54259
54260         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
54261         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
54262         * tests/test-unistd.c: Likewise.
54263         * tests/test-fcntl.c: Likewise.
54264
54265 2007-04-23  Eric Blake  <ebb9@byu.net>
54266
54267         * lib/fflush.c: Fix missing include.
54268         Reported by Bruno Haible.
54269
54270 2007-04-23  Bruno Haible  <bruno@clisp.org>
54271
54272         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
54273         Reported by Eric Blake.
54274
54275 2007-04-23  Bruno Haible  <bruno@clisp.org>
54276
54277         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
54278
54279 2007-04-23  Bruno Haible  <bruno@clisp.org>
54280
54281         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
54282
54283 2007-04-23  Bruno Haible  <bruno@clisp.org>
54284
54285         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
54286         Needed on HP-UX 11.
54287
54288 2007-04-16  Eric Blake  <ebb9@byu.net>
54289
54290         Make fflush rely on fpurge.
54291         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
54292         open coding all variants.
54293         * modules/fflush (Depends-on): Add fpurge and unistd.
54294         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
54295         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
54296
54297         Fix --with-tests compilation on cygwin.
54298         * modules/argmatch-tests (Makefile.am): List gnulib library first
54299         in LDADD.
54300         * modules/argp-tests (Makefile.am): Likewise.
54301         * modules/array-list-tests (Makefile.am): Likewise.
54302         * modules/array-oset-tests (Makefile.am): Likewise.
54303         * modules/avltree-list-tests (Makefile.am): Likewise.
54304         * modules/avltree-oset-tests (Makefile.am): Likewise.
54305         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54306         * modules/carray-list-tests (Makefile.am): Likewise.
54307         * modules/dirname-tests (Makefile.am): Likewise.
54308         * modules/frexp-tests (Makefile.am): Likewise.
54309         * modules/isnanl-tests (Makefile.am): Likewise.
54310         * modules/linked-list-tests (Makefile.am): Likewise.
54311         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54312         * modules/lock-tests (Makefile.am): Likewise.
54313         * modules/rbtree-list-tests (Makefile.am): Likewise.
54314         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54315         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54316         * modules/tls-tests (Makefile.am): Likewise.
54317         * modules/tsearch-tests (Makefile.am): Likewise.
54318         * modules/xvasprintf-tests (Makefile.am): Likewise.
54319
54320         Fix fpurge for cygwin.
54321         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
54322         value.
54323         * modules/fpurge-tests (Depends-on): Clean up trash.
54324
54325 2007-04-16  Simon Josefsson  <simon@josefsson.org>
54326
54327         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54328
54329         * m4/autobuild.m4: Re-indent.
54330
54331 2007-04-13  Bruno Haible  <bruno@clisp.org>
54332
54333         * modules/fpurge-tests: New file.
54334         * tests/test-fpurge.c: New file.
54335
54336         * modules/fpurge: New file.
54337         * lib/fpurge.h: New file.
54338         * lib/fpurge.c: New file.
54339         * m4/fpurge.m4: New file.
54340
54341 2007-04-13  Bruno Haible  <bruno@clisp.org>
54342
54343         * modules/fbufmode-tests: New file.
54344         * tests/test-fbufmode.c: New file.
54345
54346         * modules/fbufmode: New file.
54347         * lib/fbufmode.h: New file.
54348         * lib/fbufmode.c: New file.
54349         * m4/fbufmode.m4: New file.
54350
54351 2007-04-13  Bruno Haible  <bruno@clisp.org>
54352
54353         * modules/fwritable-tests: New file.
54354         * tests/test-fwritable.c: New file.
54355
54356         * modules/fwritable: New file.
54357         * lib/fwritable.h: New file.
54358         * lib/fwritable.c: New file.
54359         * m4/fwritable.m4: New file.
54360
54361 2007-04-13  Bruno Haible  <bruno@clisp.org>
54362
54363         * modules/freadable-tests: New file.
54364         * tests/test-freadable.c: New file.
54365
54366         * modules/freadable: New file.
54367         * lib/freadable.h: New file.
54368         * lib/freadable.c: New file.
54369         * m4/freadable.m4: New file.
54370
54371 2007-04-13  Bruno Haible  <bruno@clisp.org>
54372
54373         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54374         MOSTLYCLEANFILES.
54375
54376 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54377
54378         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54379         gzip bootstrap.conf to avoid dragging in i18n machinery.
54380         (gnulib_tool_option): Use it.
54381
54382 2007-04-13  Bruno Haible  <bruno@clisp.org>
54383
54384         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54385         %F directives.
54386         * tests/test-vasprintf-posix.c (test_function): Likewise.
54387         * tests/test-snprintf-posix.h (test_function): Likewise.
54388         * tests/test-sprintf-posix.h (test_function): Likewise.
54389         * tests/test-fprintf-posix.h (test_function): Likewise.
54390         * tests/test-printf-posix.h (test_function): Likewise.
54391         * tests/test-fprintf-posix.out: Likewise.
54392
54393 2007-04-13  Bruno Haible  <bruno@clisp.org>
54394
54395         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54396         * modules/tls-tests (configure.ac): Likewise.
54397         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54398
54399 2007-04-13  Bruno Haible  <bruno@clisp.org>
54400
54401         * lib/tls.c (glthread_tls_get): Fix return type.
54402         Patch by Arto C. Nirkko <anirkko@insel.ch>.
54403
54404 2007-04-12  Eric Blake  <ebb9@byu.net>
54405
54406         * modules/gettime (Depends-on): Remove gettime.
54407         Reported by Dmitry V. Levin.
54408
54409 2007-04-12  Bruno Haible  <bruno@clisp.org>
54410
54411         * modules/fflush (Include): Mention <stdio.h>.
54412         * modules/strtoimax (Include): Mention <inttypes.h>.
54413         * modules/strtoumax (Include): Likewise.
54414
54415 2007-04-12  Eric Blake  <ebb9@byu.net>
54416
54417         * .cvsignore: New file.
54418         * .gitignore: Likewise.
54419
54420 2007-04-12  Bruno Haible  <bruno@clisp.org>
54421
54422         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
54423         not before, since $(LDADD) often contains libgnu.a.
54424         * modules/striconv-tests (test_striconv_LDADD): Likewise.
54425         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
54426         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
54427         Needed on Cygwin.
54428
54429 2007-04-12  Eric Blake  <ebb9@byu.net>
54430
54431         Work around glibc's failure to flush stdin on fclose.
54432         * lib/closein.c (close_stdin): Flush stdin before closing.
54433
54434         Work around glibc's failure to reset seekable stdin on exit.
54435         * modules/closein: New module.
54436         * lib/closein.c: New file.
54437         * lib/closein.h: Likewise.
54438         * m4/closein.m4: Likewise.
54439         * MODULES.html.sh (File stream based Input/Output): Document it.
54440
54441 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54442
54443         * gnulib-tool: Rename generated 'autobuild' script to
54444         'do-autobuild' in --create-megatestdir output.
54445
54446         * doc/gnulib.texi (Build robot for gnulib): Fix.
54447
54448 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54449
54450         * modules/sysexits (Depends-on): Add absolute-header.
54451
54452 2007-04-12  Eric Blake  <ebb9@byu.net>
54453
54454         No need to preserve errno on success.
54455         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
54456         Reported by Bruno Haible.
54457
54458 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54459
54460         * MODULES.html.sh (Support for maintaining and releasing
54461         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
54462
54463 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54464
54465         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
54466
54467 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54468
54469         * modules/autobuild: New module.
54470
54471         * m4/autobuild.m4: New file.
54472
54473 2007-04-11  Bruno Haible  <bruno@clisp.org>
54474
54475         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
54476         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
54477         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
54478         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
54479         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54480         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54481         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54482         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54483         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54484         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54485         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
54486         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54487         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54488         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
54489         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54490         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54491         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
54492         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54493         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54494         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
54495         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54496         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54497         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
54498         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54499         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54500         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
54501         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54502         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54503         Reported by Eric Blake.
54504
54505 2007-04-11  Bruno Haible  <bruno@clisp.org>
54506
54507         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
54508
54509 2007-04-10  Bruno Haible  <bruno@clisp.org>
54510
54511         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
54512         for NaN and Infinity. Needed on FreeBSD 6.1.
54513         * tests/test-vasnprintf-posix.c (test_function): Undo last change
54514         regarding results for "%010a" of Infinity and NaN.
54515         * tests/test-vasprintf-posix.c (test_function): Likewise.
54516         * tests/test-snprintf-posix.h (test_function): Likewise.
54517         * tests/test-sprintf-posix.h (test_function): Likewise.
54518         * tests/test-fprintf-posix.h (test_function): Likewise.
54519         * tests/test-printf-posix.h (test_function): Likewise.
54520         * tests/test-fprintf-posix.out: Likewise.
54521
54522 2007-04-10  Bruno Haible  <bruno@clisp.org>
54523
54524         * modules/locale-tests: New file.
54525         * tests/test-locale.c: New file.
54526
54527         * modules/locale: New file.
54528         * lib/locale_.h: New file.
54529         * m4/locale_h.m4: New file.
54530
54531 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
54532             Bruno Haible  <bruno@clisp.org>
54533
54534         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
54535         be determined, test for availability of the copysignf, copysign,
54536         copysignl functions.
54537         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
54538         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
54539         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
54540
54541 2007-04-09  Eric Blake  <ebb9@byu.net>
54542
54543         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
54544         * modules/stdio (Makefile.am): Support fflush.
54545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54546         * modules/fflush: New file.
54547         * lib/fflush.c: Likewise.
54548         * m4/fflush.m4: Likewise.
54549         * modules/fflush-tests: New test.
54550         * tests/test-fflush.c: Likewise.
54551         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
54552
54553 2007-04-06  Bruno Haible  <bruno@clisp.org>
54554
54555         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
54556         (VASNPRINTF): Use signbit for faster determination whether to print a
54557         minus sign.
54558         * modules/vasnprintf (Files): Remove lib/float+.h.
54559         * modules/fprintf-posix (Depends-on): Add signbit.
54560         * modules/snprintf-posix (Depends-on): Likewise.
54561         * modules/sprintf-posix (Depends-on): Likewise.
54562         * modules/vasnprintf-posix (Depends-on): Likewise.
54563         * modules/vasprintf-posix (Depends-on): Likewise.
54564         * modules/vfprintf-posix (Depends-on): Likewise.
54565         * modules/vsnprintf-posix (Depends-on): Likewise.
54566         * modules/vsprintf-posix (Depends-on): Likewise.
54567
54568 2007-04-06  Bruno Haible  <bruno@clisp.org>
54569
54570         * tests/test-frexp.c (main): Test also the sign bit of zero results.
54571         * tests/test-frexpl.c (main): Likewise.
54572         * tests/test-ldexpl.c (main): Likewise.
54573         * modules/frexp-tests (Depends-on): Add signbit.
54574         * modules/frexpl-tests (Depdends-on): Likewise.
54575         * modules/ldexpl-tests (Depdends-on): Likewise.
54576
54577 2007-04-06  Bruno Haible  <bruno@clisp.org>
54578
54579         * modules/signbit-tests: New file.
54580         * tests/test-signbit.c: New file.
54581
54582         * modules/signbit: New file.
54583         * lib/signbitf.c: New file.
54584         * lib/signbitd.c: New file.
54585         * lib/signbitl.c: New file.
54586         * m4/signbit.m4: New file.
54587         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
54588         (signbit): New macro.
54589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
54590         REPLACE_SIGNBIT.
54591         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
54592         REPLACE_FREXPL into math.h.
54593
54594 2007-04-06  Bruno Haible  <bruno@clisp.org>
54595
54596         * modules/isnanf-nolibm-tests: New file.
54597         * tests/test-isnanf.c: New file.
54598
54599         * modules/isnanf-nolibm: New file.
54600         * lib/isnanf.h: New file.
54601         * lib/isnanf.c: New file.
54602         * lib/isnan.c: Consider the USE_FLOAT macro.
54603         * m4/isnanf.m4: New file.
54604
54605 2007-04-06  Bruno Haible  <bruno@clisp.org>
54606
54607         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
54608         (Link): New section.
54609
54610         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
54611
54612 2007-04-06  Bruno Haible  <bruno@clisp.org>
54613
54614         Assume the 'long double' type.
54615         * m4/longdouble.m4: Remove file.
54616         * config/srclist.txt: Don't mention longdouble.m4.
54617         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
54618         * lib/float+.h: Likewise.
54619         * lib/frexp.c: Likewise.
54620         * lib/printf-args.h: Likewise.
54621         * lib/printf-args.c: Likewise.
54622         * lib/printf-frexp.c: Likewise.
54623         * lib/printf-parse.c: Likewise.
54624         * lib/vasnprintf.c: Likewise.
54625         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
54626         * m4/intl.m4: Likewise.
54627         * m4/isnanl.m4: Likewise.
54628         * m4/printf.m4: Likewise.
54629         * m4/printf-frexpl.m4: Likewise.
54630         * m4/vasnprintf.m4: Likewise.
54631         * modules/allocsa (Files): Remove m4/longdouble.m4.
54632         * modules/gettext (Files): Likewise.
54633         * modules/relocatable-prog-wrapper (Files): Likewise.
54634         * modules/vasnprintf (Files): Likewise.
54635         * modules/isnanl (Files): Likewise.
54636         (Include): Simplify.
54637         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
54638         (Include): Simplify.
54639         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
54640         (Include): Simplify.
54641         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
54642         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54643         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
54644         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54645         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54646         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54647         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
54648         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54649         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54650         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54651         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
54652         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54653         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
54654         * tests/test-isnanl.c: Likewise.
54655         * tests/test-snprintf-posix.h: Likewise.
54656         * tests/test-sprintf-posix.h: Likewise.
54657         * tests/test-vasnprintf-posix.c: Likewise.
54658         * tests/test-vasnprintf-posix2.c: Likewise.
54659         * tests/test-vasprintf-posix.c: Likewise.
54660
54661 2007-04-06  Bruno Haible  <bruno@clisp.org>
54662
54663         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
54664         * lib/math_.h [__DECC]: Include the overridden include file through
54665         #include_next, outside the double-inclusion guard.
54666         * lib/stdio_.h [__DECC]: Likewise.
54667         * lib/stdlib_.h [__DECC]: Likewise.
54668         * lib/string_.h [__DECC]: Likewise.
54669         * lib/time_.h [__DECC]: Likewise.
54670         * lib/wchar_.h [__DECC]: Likewise.
54671         * lib/wctype_.h [__DECC]: Likewise.
54672         * lib/inttypes_.h [__DECC]: Likewise.
54673         Reported by Albert Chin <china@thewrittenword.com> in
54674         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
54675
54676 2007-04-04  Eric Blake  <ebb9@byu.net>
54677
54678         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
54679         1.5.x.
54680
54681 2007-04-04  Bruno Haible  <bruno@clisp.org>
54682
54683         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
54684         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
54685
54686 2007-04-04  Bruno Haible  <bruno@clisp.org>
54687
54688         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
54689         results for "%010a" of Infinity and NaN.
54690         * tests/test-vasprintf-posix.c (test_function): Likewise.
54691         * tests/test-snprintf-posix.h (test_function): Likewise.
54692         * tests/test-sprintf-posix.h (test_function): Likewise.
54693         * tests/test-fprintf-posix.h (test_function): Remove these tests.
54694         * tests/test-printf-posix.h (test_function): Likewise.
54695         * tests/test-fprintf-posix.out: Update.
54696         Needed for FreeBSD 6.1.
54697
54698 2007-04-04  Bruno Haible  <bruno@clisp.org>
54699
54700         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
54701         directly used by the gnulib modules nor by gnulib-tool.
54702
54703 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
54704
54705         * DEPENDENCIES: Give overall description of version dependency
54706         desirability.  Use more-typical names for apps.
54707         Add shell, coreutils, diffutils, grep, tar, gzip.
54708
54709 2007-04-04  Simon Josefsson  <simon@josefsson.org>
54710
54711         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
54712
54713 2007-04-04  Karl Berry  <karl@gnu.org>
54714
54715         * MODULES.html.sh (func_module): missing '.
54716
54717 2007-04-03  Bruno Haible  <bruno@clisp.org>
54718
54719         * modules/argmatch-tests (Makefile.am): New variable
54720         test_argmatch_LDADD.
54721         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
54722         * modules/array-list-tests (Makefile.am): New variable
54723         test_array_list_LDADD.
54724         * modules/array-oset-tests (Makefile.am): New variable
54725         test_array_oset_LDADD.
54726         * modules/avltree-list-tests (Makefile.am): New variable
54727         test_avltree_list_LDADD.
54728         * modules/avltree-oset-tests (Makefile.am): New variable
54729         test_avltree_oset_LDADD.
54730         * modules/avltreehash-list-tests (Makefile.am): New variable
54731         test_avltreehash_list_LDADD.
54732         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
54733         test_canonicalize_lgpl_LDADD.
54734         * modules/carray-list-tests (Makefile.am): New variable
54735         test_carray_list_LDADD.
54736         * modules/dirname-tests (Makefile.am): New variable
54737         test_dirname_LDADD.
54738         * modules/linked-list-tests (Makefile.am): New variable
54739         test_linked_list_LDADD.
54740         * modules/linkedhash-list-tests (Makefile.am): New variable
54741         test_linkedhash_list_LDADD.
54742         * modules/rbtree-list-tests (Makefile.am): New variable
54743         test_rbtree_list_LDADD.
54744         * modules/rbtree-oset-tests (Makefile.am): New variable
54745         test_rbtree_oset_LDADD.
54746         * modules/rbtreehash-list-tests (Makefile.am): New variable
54747         test_rbtreehash_list_LDADD.
54748         * modules/xvasprintf-tests (Makefile.am): New variable
54749         test_xvasprintf_LDADD.
54750         Reported by Eric Blake.
54751
54752 2007-04-03  Eric Blake  <ebb9@byu.net>
54753
54754         * DEPENDENCIES: Weaken m4 requirements.
54755
54756 2007-04-03  Bruno Haible  <bruno@clisp.org>
54757
54758         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
54759         * modules/isnanl-tests (configure.ac): Likewise.
54760
54761 2007-04-03  Ben Pfaff  <blp@gnu.org>
54762
54763         * modules/iconv_open: Add $(srcdir)/ to source directory
54764         references in Makefile fragments that call gperf, to fix VPATH
54765         builds.
54766
54767 2007-04-03  Bruno Haible  <bruno@clisp.org>
54768
54769         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
54770         * lib/ldexpl.c: Undo last change.
54771
54772 2007-04-03  Bruno Haible  <bruno@clisp.org>
54773
54774         * modules/printf-frexpl (Depends-on): Undo last change.
54775         (Files): Add m4/ldexpl.m4.
54776
54777 2007-04-03  Bruno Haible  <bruno@clisp.org>
54778
54779         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
54780         * modules/isnanl (Link): New section.
54781
54782         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
54783         * modules/frexp (Link): New section.
54784
54785         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
54786         * modules/frexpl (Link): New section.
54787
54788         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
54789         * modules/ldexpl (Link): New section.
54790
54791 2007-04-03  Bruno Haible  <bruno@clisp.org>
54792
54793         * modules/TEMPLATE-EXTENDED: New file.
54794         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
54795
54796 2007-04-03  Bruno Haible  <bruno@clisp.org>
54797
54798         * DEPENDENCIES: New file.
54799         Suggested by Simon Josefsson.
54800
54801 2007-04-03  Bruno Haible  <bruno@clisp.org>
54802
54803         * doc/gnulib.texi: Escape @.
54804
54805 2007-04-03  James Youngman  <jay@gnu.org>
54806         and Paul Eggert  <eggert@cs.ucla.edu>
54807
54808         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
54809         birthtime on all systems that have birthtime, not just those which
54810         use st_birthtimensec rather than st_birthtim.  Putting zero in
54811         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
54812         that the birth time is not available for files on an NFS mount.
54813
54814 2007-04-03  Simon Josefsson  <simon@josefsson.org>
54815
54816         * modules/memxor: Move back from crypto/, suggested by Bruno.
54817         * modules/crypto/hmac-sha1: Fix memxor dependency.
54818
54819         * modules/crypto/gc: Moved from ../.
54820
54821 2007-04-02  Eric Blake  <ebb9@byu.net>
54822
54823         * lib/ldexpl.c (includes): Avoid libm.
54824
54825         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
54826
54827 2007-04-02  Bruno Haible  <bruno@clisp.org>
54828
54829         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
54830         on IRIX.
54831
54832 2007-04-02  Bruno Haible  <bruno@clisp.org>
54833
54834         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
54835         x86 or x86_64 platforms running MacOS X.
54836         Reported by Ryan Schmidt <@ryandesign.com>.
54837
54838 2007-04-02  Bruno Haible  <bruno@clisp.org>
54839
54840         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
54841         i386.
54842
54843 2007-04-01  Simon Josefsson  <simon@josefsson.org>
54844
54845         * modules/crypto/arcfour: Moved from ../.
54846         * modules/crypto/arcfour-tests: Moved from ../.
54847         * modules/crypto/arctwo: Moved from ../.
54848         * modules/crypto/arctwo-tests: Moved from ../.
54849         * modules/crypto/des: Moved from ../.
54850         * modules/crypto/des-tests: Moved from ../.
54851         * modules/crypto/gc-arcfour: Moved from ../.
54852         * modules/crypto/gc-arcfour-tests: Moved from ../.
54853         * modules/crypto/gc-arctwo: Moved from ../.
54854         * modules/crypto/gc-arctwo-tests: Moved from ../.
54855         * modules/crypto/gc-des: Moved from ../.
54856         * modules/crypto/gc-des-tests: Moved from ../.
54857         * modules/crypto/gc-hmac-md5: Moved from ../.
54858         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
54859         * modules/crypto/gc-hmac-sha1: Moved from ../.
54860         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
54861         * modules/crypto/gc-md2: Moved from ../.
54862         * modules/crypto/gc-md2-tests: Moved from ../.
54863         * modules/crypto/gc-md4: Moved from ../.
54864         * modules/crypto/gc-md4-tests: Moved from ../.
54865         * modules/crypto/gc-md5: Moved from ../.
54866         * modules/crypto/gc-md5-tests: Moved from ../.
54867         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
54868         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
54869         * modules/crypto/gc-random: Moved from ../.
54870         * modules/crypto/gc-rijndael: Moved from ../.
54871         * modules/crypto/gc-rijndael-tests: Moved from ../.
54872         * modules/crypto/gc-sha1: Moved from ../.
54873         * modules/crypto/gc-sha1-tests: Moved from ../.
54874         * modules/crypto/gc-tests: Moved from ../.
54875         * modules/crypto/hmac-md5: Moved from ../.
54876         * modules/crypto/hmac-md5-tests: Moved from ../.
54877         * modules/crypto/hmac-sha1: Moved from ../.
54878         * modules/crypto/hmac-sha1-tests: Moved from ../.
54879         * modules/crypto/md2: Moved from ../.
54880         * modules/crypto/md2-tests: Moved from ../.
54881         * modules/crypto/md4: Moved from ../.
54882         * modules/crypto/md4-tests: Moved from ../.
54883         * modules/crypto/md5: Moved from ../.
54884         * modules/crypto/md5-tests: Moved from ../.
54885         * modules/crypto/memxor: Moved from ../.
54886         * modules/crypto/rijndael: Moved from ../.
54887         * modules/crypto/rijndael-tests: Moved from ../.
54888         * modules/crypto/sha1: Moved from ../.
54889
54890 2007-03-30  James Youngman  <jay@gnu.org>
54891
54892         * tests/test-stat-time.c (prepare_test): use chmod() rather than
54893         rename() to change the ctime of a file (because ctime is unaffected
54894         by rename on jfs2 on AIX 5.1).
54895         (main): Start by doing cleanup, in case a previous run failed leaving
54896         test files behind.
54897
54898 2007-03-31  Bruno Haible  <bruno@clisp.org>
54899
54900         Support old proprietary implementations of iconv.
54901         * modules/iconv_open: New file.
54902         * lib/iconv_.h: New file.
54903         * m4/iconv_h.m4: New file.
54904         * lib/iconv_open.c: New file.
54905         * lib/iconv_open-aix.gperf: New file.
54906         * lib/iconv_open-hpux.gperf: New file.
54907         * lib/iconv_open-irix.gperf: New file.
54908         * lib/iconv_open-osf.gperf: New file.
54909         * m4/iconv_open.m4: New file.
54910         * modules/linebreak (Depends-on): Add iconv_open.
54911         * modules/striconv (Depends-on): Likewise.
54912         * modules/striconveh (Depends-on): Likewise.
54913         * modules/unicodeio (Depends-on): Likewise.
54914         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
54915         (iconv_t)(-1).
54916         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
54917         conversion if cd is (iconv_t)(-1).
54918         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
54919         is not possible.
54920
54921 2007-03-31  Bruno Haible  <bruno@clisp.org>
54922
54923         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
54924         work on Solaris either. Protect also second use of "autodetect_jp".
54925
54926 2007-03-31  Bruno Haible  <bruno@clisp.org>
54927
54928         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
54929         the function is not present.
54930
54931 2007-03-31  Bruno Haible  <bruno@clisp.org>
54932
54933         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
54934         the function is not present.
54935
54936 2007-03-31  Bruno Haible  <bruno@clisp.org>
54937
54938         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
54939         a bug in HP-UX iconv_open().
54940
54941 2007-03-31  Bruno Haible  <bruno@clisp.org>
54942
54943         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
54944         (Mathematics <math.h>): New section, add fpieee.
54945         (Input/output <stdio.h>): Add fseterr.
54946         (Mathematics <math.h>): New section, add printf-frexp.
54947         (Container data structures): Add sublist.
54948         (Core language properties): Add fpucw, inline.
54949         (Functions for greatest-width integer types <inttypes.h>): Add
54950         imaxabs, imaxdiv, inttypes.
54951         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
54952         isnanl-nolibm, ldexp.
54953         (Mathematics <math.h>): New section, add printf-frexpl.
54954         (Support for systems lacking POSIX:2001): Add fprintf-posix,
54955         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
54956         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
54957         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
54958         (Unicode string functions): Add unistr/u*-mbtoucr.
54959         (Java): Add javacomp-script, javaexec-script.
54960         (C#): Add csharpcomp-script, csharpexec-script.
54961         (Support for building libraries and executables): Add havelib,
54962         relocatable-*.
54963         (Support for maintaining and releasing projects): Renamed from
54964         'Support for maintaining and release projects'. Add announce-gen.
54965
54966 2007-03-31  Bruno Haible  <bruno@clisp.org>
54967
54968         * README: Talk primarily about git.
54969         (git and CVS): Renamed from CVS.
54970         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
54971         gnulib is available through git.
54972         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
54973
54974 2007-03-30  Bruno Haible  <bruno@clisp.org>
54975
54976         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
54977         * lib/poll_.h: Likewise.
54978         * lib/stat_.h: Likewise.
54979         * lib/sys_time_.h: Likewise.
54980         * lib/sysexit_.h: Likewise.
54981         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
54982         * lib/stdbool_.h: Likewise.
54983         * lib/byteswap_.h: Add double-inclusion guard.
54984
54985 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
54986
54987         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
54988
54989 2007-03-30  Karl Berry  <karl@gnu.org>
54990
54991         * config/srclist-update: double space after USA in the license
54992         substitution, since that's how it's usually (?) written.
54993
54994 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
54995
54996         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
54997         reported by Bruno Haible.
54998
54999 2007-03-29  Bruno Haible  <bruno@clisp.org>
55000
55001         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
55002         a bug in AIX iconv().
55003
55004 2007-03-29  Bruno Haible  <bruno@clisp.org>
55005
55006         * modules/ldexpl-tests: New file.
55007         * tests/test-ldexpl.c: New file.
55008
55009 2007-03-29  Bruno Haible  <bruno@clisp.org>
55010
55011         * lib/ldexpl.c: Include fpucw.h.
55012         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
55013         multiplication.
55014         * modules/ldexpl (Depends-on): Add fpucw.
55015
55016 2007-03-29  Bruno Haible  <bruno@clisp.org>
55017
55018         * modules/ldexpl: New file.
55019         * m4/ldexpl.m4: New file.
55020         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55021         set.
55022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55023         REPLACE_LDEXPL.
55024         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55025         REPLACE_LDEXPL.
55026         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55027         gl_FUNC_LDEXPL_WORKS.
55028         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55029         * modules/mathl (Files): Remove lib/ldexpl.c.
55030         (Depends-on): Add ldexpl.
55031
55032 2007-03-29  Bruno Haible  <bruno@clisp.org>
55033
55034         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55035
55036 2007-03-29  Bruno Haible  <bruno@clisp.org>
55037
55038         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55039         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55040         and possibly also HP-UX.
55041         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55042         work on AIX, IRIX, HP-UX, OSF/1.
55043         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55044         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55045         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55046         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55047         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55048         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55049
55050 2007-03-29  Bruno Haible  <bruno@clisp.org>
55051
55052         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55053
55054 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55055
55056         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55057         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55058
55059 2007-03-29  Eric Blake  <ebb9@byu.net>
55060
55061         * lib/acl-internal.h: Remove redundant include.
55062         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55063         Cygwin when a file is locked.
55064
55065 2007-03-29  Bruno Haible  <bruno@clisp.org>
55066
55067         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55068         file.
55069         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55070
55071 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55072
55073         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55074         try to remove a parent directory if the child couldn't be removed
55075         (except for the first rmdir, which could fail because the child
55076         doesn't exist).  Problem reported by Jeff Blaine in
55077         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55078
55079 2007-03-28  Bruno Haible  <bruno@clisp.org>
55080
55081         * lib/striconveh.c (utf8conv_carefully): New function.
55082         (mem_cd_iconveh_internal): Invoke it.
55083
55084 2007-03-28  Bruno Haible  <bruno@clisp.org>
55085
55086         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55087         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55088         input.
55089         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55090         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55091         unistr/u8-uctomb.
55092
55093 2007-03-28  Bruno Haible  <bruno@clisp.org>
55094
55095         * modules/unistr/u8-mbtoucr: New file.
55096         * lib/unistr/u8-mbtoucr.c: New file.
55097         * modules/unistr/u16-mbtoucr: New file.
55098         * lib/unistr/u16-mbtoucr.c: New file.
55099         * modules/unistr/u16-mbtoucr: New file.
55100         * lib/unistr/u16-mbtoucr.c: New file.
55101         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55102
55103 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55104             Bruno Haible  <bruno@clisp.org>
55105
55106         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55107         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55108         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55109
55110         * m4/stdio_h.m4: Add stubs for vasprintf too.
55111
55112         * modules/stdio: Support vasprintf in sed command.
55113
55114         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55115         vasprintf.h.  Add stdio module indicator.
55116
55117         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55118         vasprintf.h.
55119
55120         * lib/vasprintf.h: File removed.
55121
55122         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55123         * lib/vasprintf.c: Ditto.
55124         * lib/xvasprintf.c: Ditto.
55125         * tests/test-vasprintf-posix.c: Ditto.
55126         * tests/test-vasprintf.c: Ditto.
55127
55128 2007-03-27  Bruno Haible  <bruno@clisp.org>
55129
55130         Make vasnprintf multithread-safe.
55131         * lib/vasnprintf.c (decimal_point_char): New function.
55132         (VASNPRINTF): Use it.
55133         Suggested by Simon Josefsson.
55134
55135 2007-03-27  Eric Blake  <ebb9@byu.net>
55136
55137         Support sub-second birthtime on cygwin.
55138         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55139         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55140         (get_stat_birthtime): Also work with st_birthtim.
55141
55142 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55143
55144         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55145         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55146         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55147         (get_stat_birthtime_ns): Simplify compile-time tests.
55148         (get_stat_birthtime): Change the API to look like
55149         get_stat_mtime etc., except return a negative tv_nsec on error.
55150         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55151         Don't check for "spare" fields.
55152         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55153         or for struct stat.st_birthtime, as these tests aren't used.
55154         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55155
55156 2007-03-27  Bruno Haible  <bruno@clisp.org>
55157
55158         * lib/stat-time.h: Include <sys/stat.h>.
55159
55160 2007-03-27  James Youngman  <jay@gnu.org>
55161
55162         * lib/stat-time.h (get_stat_birthtime): New function for
55163           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55164         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55165           and its variants.
55166         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55167         * modules/stat-time-test: New file.
55168         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55169
55170 2007-03-26  Bruno Haible  <bruno@clisp.org>
55171
55172         Better support of signalling NaNs.
55173         * lib/atanl.c: Include isnanl.h.
55174         (atanl): Perform test for NaN at the beginning of the function and
55175         through a call to isnanl.
55176         * lib/cosl.c: Include isnanl.h.
55177         (cosl): Perform test for NaN at the beginning of the function and
55178         through a call to isnanl.
55179         * lib/ldexpl.c: Include isnanl.h.
55180         (ldexpl): Perform test for NaN through a call to isnanl.
55181         * lib/logl.c: Include isnanl.h.
55182         (logl): Perform test for NaN at the beginning of the function and
55183         through a call to isnanl.
55184         * lib/sinl.c: Include isnanl.h.
55185         (sinl): Perform test for NaN at the beginning of the function and
55186         through a call to isnanl.
55187         * lib/sqrtl.c: Include isnanl.h.
55188         (sqrtl): Perform test for NaN at the beginning of the function and
55189         through a call to isnanl.
55190         * lib/tanl.c: Include isnanl.h.
55191         (tanl): Perform test for NaN at the beginning of the function and
55192         through a call to isnanl.
55193         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55194         * modules/mathl (Depends-on): Add isnanl.
55195
55196 2007-03-26  Eric Blake  <ebb9@byu.net>
55197
55198         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55199         regression in logic sense of previous patch.
55200
55201 2007-03-26  Bruno Haible  <bruno@clisp.org>
55202
55203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55204         unportable shell command "if ! ...".
55205         Reported by Ralf Wildenhues.
55206
55207 2007-03-25  Bruno Haible  <bruno@clisp.org>
55208
55209         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55210         <sysexits.h> file, and only add EX_CONFIG.
55211         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55212         absolute file name and whether it is sufficient. Substitute also
55213         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55214         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55215         ABSOLUTE_SYSEXITS_H into sysexits.h.
55216
55217 2007-03-25  Bruno Haible  <bruno@clisp.org>
55218
55219         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55220         hints is NULL.
55221
55222 2007-03-25  Bruno Haible  <bruno@clisp.org>
55223
55224         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55225         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55226
55227 2007-03-25  Bruno Haible  <bruno@clisp.org>
55228
55229         * lib/vasnprintf.c: Include langinfo.h.
55230         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55231         multithread-safe.
55232         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55233         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55234         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55235         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55236         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55237         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55238         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55239         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
55240         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55241         Reported by Simon Josefsson.
55242
55243 2007-03-25  Bruno Haible  <bruno@clisp.org>
55244
55245         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
55246         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
55247         * modules/vasnprintf (Depends-on): Add stdint.
55248
55249 2007-03-25  Bruno Haible  <bruno@clisp.org>
55250
55251         * modules/fpieee: New file.
55252         * m4/fpieee.m4: New file.
55253         * modules/isnan-nolibm (Depends-on): Add fpieee.
55254         * modules/isnanl-nolibm (Depends-on): Add fpieee.
55255         * modules/isnanl (Depends-on): Add fpieee.
55256
55257 2007-03-25  Bruno Haible  <bruno@clisp.org>
55258
55259         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
55260
55261 2007-03-25  Bruno Haible  <bruno@clisp.org>
55262
55263         Avoid test failures on IRIX 6.5.
55264         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
55265         (main): Use it.
55266         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
55267         macros.
55268         (main): Use them.
55269
55270 2007-03-25  Bruno Haible  <bruno@clisp.org>
55271
55272         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
55273         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
55274         exists but doesn't work.
55275         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
55276         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
55277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
55278         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
55279         math.h.
55280
55281 2007-03-25  Bruno Haible  <bruno@clisp.org>
55282
55283         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
55284         returns inf. Needed on IRIX 6.5.
55285
55286 2007-03-25  Bruno Haible  <bruno@clisp.org>
55287
55288         * tests/test-frexpl.c: Include isnanl-nolibm.h.
55289         (main): Use isnanl instead of x != x idiom.
55290         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
55291
55292         * tests/test-frexp.c: Include isnan.h.
55293         (main): Use isnan instead of x != x idiom.
55294         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
55295
55296 2007-03-25  Bruno Haible  <bruno@clisp.org>
55297
55298         * tests/test-frexp.c (NaN): New function/macro.
55299         (main): Use it instead of 0.0 / 0.0.
55300         * tests/test-isnan.c (NaN): New function/macro.
55301         (main): Use it instead of 0.0 / 0.0.
55302         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
55303         (test_function): Use it instead of 0.0 / 0.0.
55304         * tests/test-vasprintf-posix.c (NaN): New function/macro.
55305         (test_function): Use it instead of 0.0 / 0.0.
55306         * tests/test-snprintf-posix.h (NaN): New function/macro.
55307         (test_function): Use it instead of 0.0 / 0.0.
55308         * tests/test-sprintf-posix.h (NaN): New function/macro.
55309         (test_function): Use it instead of 0.0 / 0.0.
55310         * tests/test-fprintf-posix.h (NaN): New function/macro.
55311         (test_function): Use it instead of 0.0 / 0.0.
55312         * tests/test-printf-posix.h (NaN): New function/macro.
55313         (test_function): Use it instead of 0.0 / 0.0.
55314
55315         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
55316
55317 2007-03-25  Bruno Haible  <bruno@clisp.org>
55318
55319         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
55320
55321 2007-03-25  Bruno Haible  <bruno@clisp.org>
55322
55323         * lib/regexec.c (merge_state_with_log): Make static.
55324
55325 2007-03-25  Bruno Haible  <bruno@clisp.org>
55326
55327         * lib/trigl.c (kernel_rem_pio2): Make static.
55328
55329 2007-03-25  Bruno Haible  <bruno@clisp.org>
55330
55331         * lib/sincosl.c (sincosl_table): Make static.
55332
55333 2007-03-25  Bruno Haible  <bruno@clisp.org>
55334
55335         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55336         if the compiler does not support C99.
55337
55338 2007-03-25  Bruno Haible  <bruno@clisp.org>
55339
55340         * modules/time (Makefile.am): Ensure all rule action lines start with a
55341         tab.
55342
55343 2007-03-24  Bruno Haible  <bruno@clisp.org>
55344
55345         * modules/tsearch-tests: New file.
55346         * tests/test-tsearch.sh: New file.
55347         * tests/test-tsearch.c: New file, mostly copied from glibc.
55348
55349         * modules/search-tests: New file.
55350         * tests/test-search.c: New file.
55351
55352         * modules/search: New file.
55353         * lib/search_.h: New file, incorporating lib/tsearch.h.
55354         * m4/search_h.m4: New file.
55355         * lib/tsearch.h: Remove file.
55356         * lib/tsearch.c: Include search.h instead of tsearch.h.
55357         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55358         HAVE_TSEARCH.
55359         * modules/tsearch (Files): Remove lib/tsearch.h.
55360         (Depends-on): Add search.
55361         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55362         (Include): Change tsearch.h into search.h.
55363
55364 2007-03-24  Bruno Haible  <bruno@clisp.org>
55365
55366         * modules/fpucw: New file.
55367         * lib/fpucw.h: New file.
55368         * lib/frexp.c: Include fpucw.h.
55369         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55370         (FUNC): Use them.
55371         * lib/printf-frexp.c: Include fpucw.h.
55372         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55373         (FUNC): Use them.
55374         * lib/vasnprintf.c: Include fpucw.h.
55375         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55376         'long double' calculations.
55377         * tests/test-frexpl.c: Include fpucw.h.
55378         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55379         * tests/test-printf-frexpl.c: Include fpucw.h.
55380         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55381         * modules/frexpl (Depends-on): Add fpucw.
55382         * modules/printf-frexpl (Depends-on): Likewise.
55383         * modules/fprintf-posix (Depends-on): Likewise.
55384         * modules/snprintf-posix (Depends-on): Likewise.
55385         * modules/sprintf-posix (Depends-on): Likewise.
55386         * modules/vasnprintf-posix (Depends-on): Likewise.
55387         * modules/vasprintf-posix (Depends-on): Likewise.
55388         * modules/vfprintf-posix (Depends-on): Likewise.
55389         * modules/vsnprintf-posix (Depends-on): Likewise.
55390         * modules/vsprintf-posix (Depends-on): Likewise.
55391         * modules/frexpl-tests (Depends-on): Likewise.
55392         * modules/printf-frexpl-tests (Depends-on): Likewise.
55393
55394 2007-03-24  Bruno Haible  <bruno@clisp.org>
55395
55396         * lib/float+.h: New file.
55397         * lib/isnan.c: Include float+.h.
55398         (SIZE): New macro.
55399         (FUNC): Compare only SIZE bytes of the value.
55400         * lib/vasnprintf.c: Include float+.h.
55401         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
55402         SIZEOF_LDBL or SIZEOF_DBL bytes.
55403         * modules/isnan-nolibm (Files): Add lib/float+.h.
55404         * modules/isnanl-nolibm (Files): Add lib/float+.h.
55405         * modules/isnanl (Files): Add lib/float+.h.
55406         * modules/vasnprintf (Files): Add lib/float+.h.
55407
55408 2007-03-24  Bruno Haible  <bruno@clisp.org>
55409
55410         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
55411         include isnanl-nolibm.h.
55412
55413 2007-03-24  Bruno Haible  <bruno@clisp.org>
55414
55415         * tests/test-read-file.c (main): Don't produce spurious output for
55416         expected situations. Make the test fail if it encountered unexpected
55417         results.
55418
55419 2007-03-24  Bruno Haible  <bruno@clisp.org>
55420
55421         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
55422         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
55423
55424 2007-03-24  Bruno Haible  <bruno@clisp.org>
55425
55426         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
55427
55428 2007-03-24  Bruno Haible  <bruno@clisp.org>
55429
55430         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
55431         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
55432
55433         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
55434         * modules/utf8-ucs4: Turn into a symbolic link to module
55435         unistr/u8-mbtouc.
55436
55437         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
55438         utf8-ucs4-unsafe.
55439         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
55440         unistr/u8-mbtouc-unsafe.
55441
55442         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
55443         * modules/utf16-ucs4: Turn into a symbolic link to module
55444         unistr/u16-mbtouc.
55445
55446         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
55447         utf16-ucs4-unsafe.
55448         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
55449         unistr/u16-mbtouc-unsafe.
55450
55451         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
55452         * modules/ucs4-utf8: Turn into a symbolic link to module
55453         unistr/u8-ubtomb.
55454
55455         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
55456         * modules/ucs4-utf16: Turn into a symbolic link to module
55457         unistr/u16-ubtomb.
55458
55459 2007-03-24  Bruno Haible  <bruno@clisp.org>
55460
55461         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
55462         Enable the function only if HAVE_INLINE.
55463         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
55464         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55465         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
55466         Enable the function only if HAVE_INLINE.
55467         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
55468         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55469         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
55470         Enable the function only if HAVE_INLINE.
55471         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
55472         Enable the function only if HAVE_INLINE.
55473         * modules/utf8-ucs4: Update.
55474         * modules/utf8-ucs4-unsafe: Update.
55475         * modules/utf16-ucs4: Update.
55476         * modules/utf16-ucs4-unsafe: Update.
55477         * modules/ucs4-utf8: Update.
55478         * modules/ucs4-utf16: Update.
55479
55480 2007-03-24  Bruno Haible  <bruno@clisp.org>
55481
55482         * lib/utf8-ucs4.h: Remove file.
55483         * lib/utf8-ucs4-unsafe.h: Remove file.
55484         * lib/utf16-ucs4.h: Remove file.
55485         * lib/utf16-ucs4-unsafe.h: Remove file.
55486         * lib/ucs4-utf8.h: Remove file.
55487         * lib/ucs4-utf16.h: Remove file.
55488         * lib/unistr.h: Include their previous contents.
55489         * m4/utf-ucs4.m4: Remove file.
55490         * m4/ucs4-utf.m4: Remove file.
55491         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
55492         (Depends-on): Add unistr/base.
55493         (configure.ac): Remove gl_UTF_UCS4.
55494         (Makefile.am): Update.
55495         (Include): Change to unistr.h.
55496         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
55497         (Depends-on): Add unistr/base.
55498         (configure.ac): Remove gl_UTF_UCS4.
55499         (Makefile.am): Update.
55500         (Include): Change to unistr.h.
55501         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
55502         (Depends-on): Add unistr/base.
55503         (configure.ac): Remove gl_UTF_UCS4.
55504         (Makefile.am): Update.
55505         (Include): Change to unistr.h.
55506         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
55507         (Depends-on): Add unistr/base.
55508         (configure.ac): Remove gl_UTF_UCS4.
55509         (Makefile.am): Update.
55510         (Include): Change to unistr.h.
55511         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
55512         (Depends-on): Add unistr/base.
55513         (configure.ac): Remove gl_UCS4_UTF.
55514         (Makefile.am): Update.
55515         (Include): Change to unistr.h.
55516         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
55517         (Depends-on): Add unistr/base.
55518         (configure.ac): Remove gl_UCS4_UTF.
55519         (Makefile.am): Update.
55520         (Include): Change to unistr.h.
55521         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
55522         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
55523         utf8-ucs4-unsafe.h.
55524         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
55525         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
55526         utf16-ucs4-unsafe.h.
55527         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
55528         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
55529         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
55530         * lib/unistr/u8-strchr.c: Likewise.
55531         * lib/unistr/u8-strrchr.c: Likewise.
55532         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
55533         * lib/unistr/u16-strchr.c: Likewise.
55534         * lib/unistr/u16-strrchr.c: Likewise.
55535         * lib/striconveh.c: Update.
55536         * lib/linebreak.c: Update.
55537
55538 2007-03-24  Bruno Haible  <bruno@clisp.org>
55539
55540         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
55541         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
55542
55543 2007-03-22  Bruno Haible  <bruno@clisp.org>
55544
55545         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
55546
55547 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
55548
55549         * MODULES.html.sh (File system functions): New module write-any-file.
55550         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
55551         * m4/write-any-file.m4: New files.
55552
55553 2007-03-23  Eric Blake  <ebb9@byu.net>
55554
55555         * gnulib-tool: Rearrange space-tab sequences, since some editors
55556         like to eat them.
55557
55558 2007-03-23  Eric Blake  <ebb9@byu.net>
55559
55560         * lib/version-etc.c (version_etc_va): Update license wording to
55561         be more concise.  Recommended by Richard Stallman.
55562
55563 2007-03-22  Bruno Haible  <bruno@clisp.org>
55564
55565         * lib/poll.c (MSG_PEEK): New fallback definition.
55566
55567 2007-03-22  Bruno Haible  <bruno@clisp.org>
55568
55569         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
55570         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
55571         (main): Update.
55572         Fixes a compilation error on BeOS.
55573
55574 2007-03-22  Bruno Haible  <bruno@clisp.org>
55575
55576         * modules/frexpl-tests: New file.
55577         * tests/test-frexpl.c: New file.
55578
55579         * modules/frexpl: New file.
55580         * m4/frexpl.m4: New file.
55581         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
55582         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
55583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
55584         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
55585         (Depends-on): Add frexpl. Remove isnanl-nolibm.
55586         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
55587
55588 2007-03-22  Bruno Haible  <bruno@clisp.org>
55589
55590         * lib/frexpl.c: Share code with lib/frexp.c.
55591         * modules/mathl (Files): Add lib/frexp.c.
55592         (Depends-on): Add isnanl-nolibm.
55593
55594 2007-03-22  Bruno Haible  <bruno@clisp.org>
55595
55596         * modules/printf-frexp (Files): Add m4/frexp.m4.
55597         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
55598         only if the found frexp function actually works.
55599
55600 2007-03-22  Bruno Haible  <bruno@clisp.org>
55601
55602         * lib/frexp.c: Remove older implementation that uses divisions.
55603
55604 2007-03-21  Bruno Haible  <bruno@clisp.org>
55605
55606         * modules/frexp-tests: New file.
55607         * tests/test-frexp.c: New file.
55608
55609         * modules/frexp: New file.
55610         * lib/frexp.c: New file.
55611         * m4/frexp.m4: New file.
55612         * lib/math_.h (frexp): New declaration.
55613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
55614         REPLACE_FREXP.
55615         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
55616
55617 2007-03-21  Bruno Haible  <bruno@clisp.org>
55618
55619         * modules/isnanl-tests: New file.
55620         * tests/test-isnanl.c: New file.
55621
55622         * modules/isnanl: New file.
55623         * lib/isnanl.h: New file.
55624         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
55625         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
55626         gl_FUNC_ISNANL_WORKS.
55627         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
55628         New macros.
55629
55630 2007-03-21  Bruno Haible  <bruno@clisp.org>
55631
55632         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
55633         lib/isnanl.h.
55634         (Include): Update.
55635         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
55636         * lib/vasnprintf.c: Update.
55637         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
55638         tests/test-isnanl.h, remove tests/test-isnanl.c.
55639         (Makefile.am): Update.
55640         * tests/test-isnanl-nolibm.c: New file.
55641         * tests/test-isnanl.h: New file.
55642         * tests/test-isnanl.c: Remove file.
55643
55644 2007-03-21  Jim Meyering  <jim@meyering.net>
55645
55646         When trying to open ".", treat ESTALE like EACCES.
55647         * lib/savewd.c (savewd_save): Resort to forking not just upon
55648         failure with EACCES, but also when errno is ESTALE.
55649
55650 2007-03-20  Bruno Haible  <bruno@clisp.org>
55651
55652         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
55653         Needed on AIX 5.1. Reported by Matthew Woehlke.
55654
55655 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55656
55657         Suggestions by Bruno Haible:
55658         * lib/acl-internal.h: Include "gettext.h" rather than rolling
55659         our own.
55660         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
55661         * modules/acl (Depends-on): Add gettext.
55662
55663 2007-03-19  Bruno Haible  <bruno@clisp.org>
55664
55665         * modules/iconvme: Remove file.
55666         * lib/iconvme.h: Remove file.
55667         * lib/iconvme.c: Remove file.
55668         * m4/iconvme.m4: Remove file.
55669
55670 2007-03-19  Bruno Haible  <bruno@clisp.org>
55671
55672         * doc/relocatable-maint.texi: Break long shell script line.
55673         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55674
55675 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55676
55677         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
55678         handle file_has_acl.
55679         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
55680         * lib/acl.c: Move header inclusions and related macro defns into
55681         lib/acl-internal.h.
55682         (S_ISLNK): Remove defn, since that's now done for us.
55683         (file_has_acl): Move to lib/file-has-acl.c.
55684         Call acl_trivial if available.  This is the crucial part of the fix.
55685         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
55686         shared within the library.  Rewrite a bit, partly to make it compatible
55687         with the GNU coding style.
55688         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
55689         Remove unnecessary double-quotes.
55690         Don't test for acl_to_text; the build will catch that.
55691         Replace acl_entries if it doesn't exist and it is needed.
55692         Check for -lsec and acl_trivial (as used on Solaris 10).
55693         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
55694         lib/file-has-acl.c.
55695         (Depends-on): Add sys_stat, for S_ISLNK.
55696
55697 2007-03-19  Ben Pfaff  <blp@gnu.org>
55698
55699         * doc/gnulib.texi: Fix typos.
55700         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55701
55702 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55703
55704         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
55705         If size is zero here, buf must be zero.
55706
55707 2007-03-19  Simon Josefsson  <simon@josefsson.org>
55708
55709         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
55710         <bruno@clisp.org>.
55711
55712 2007-03-18  Bruno Haible  <bruno@clisp.org>
55713
55714         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
55715         Suggested by Eric Blake.
55716
55717 2007-03-18  Ben Pfaff  <blp@gnu.org>
55718
55719         * doc/relocatable.texi: Recommend using as prefix a directory
55720         that does not exist and will never be created.  Based on
55721         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
55722         and others.
55723
55724 2007-03-17  Bruno Haible  <bruno@clisp.org>
55725
55726         * lib/fchownat.c: Include lchown.h.
55727
55728 2007-03-17  Bruno Haible  <bruno@clisp.org>
55729
55730         Fix endless loop when the given allocated size was > INT_MAX.
55731         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
55732         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
55733         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
55734         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
55735         * lib/sprintf.c (sprintf): Likewise.
55736
55737 2007-03-17  Bruno Haible  <bruno@clisp.org>
55738
55739         * tests/test-argp-2.sh (func_compare): Output a context diff.
55740
55741 2007-03-17  Bruno Haible  <bruno@clisp.org>
55742
55743         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
55744         locale's decimal-point character.
55745
55746 2007-03-17  Bruno Haible  <bruno@clisp.org>
55747
55748         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
55749         before comparing it. Needed because on some platforms (e.g. x86) a
55750         'long double' occupies less bytes than sizeof (long double).
55751
55752 2007-03-17  Bruno Haible  <bruno@clisp.org>
55753
55754         * tests/test-crc.c (main): Make printf statements 64-bit clean.
55755         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
55756         * tests/test-getaddrinfo.c (simple): Likewise.
55757         * tests/test-read-file.c (main): Likewise.
55758
55759 2007-03-17  Bruno Haible  <bruno@clisp.org>
55760
55761         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
55762
55763 2007-03-17  Bruno Haible  <bruno@clisp.org>
55764
55765         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
55766         unused variable.
55767
55768 2007-03-17  Bruno Haible  <bruno@clisp.org>
55769
55770         * tests/test-c-strcasecmp.c: Include c-strcase.h.
55771         * tests/test-c-strncasecmp.c: Likewise.
55772
55773 2007-03-17  Bruno Haible  <bruno@clisp.org>
55774
55775         * modules/stdlib (Depends-on): Add unistd.
55776         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
55777         Needed for MacOS X 10.3.
55778
55779 2007-03-17  Bruno Haible  <bruno@clisp.org>
55780
55781         * lib/unistr/u-strdup.h: Include <stdlib.h>.
55782
55783 2007-03-17  Bruno Haible  <bruno@clisp.org>
55784
55785         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
55786
55787 2007-03-17  Bruno Haible  <bruno@clisp.org>
55788
55789         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
55790         to reflect files copied from gnulib (with or without modifications).
55791         Suggested by Jim Meyering.
55792
55793 2007-03-17  Eric Blake  <ebb9@byu.net>
55794
55795         * NEWS: Document stdlib change from 2007-02-18.
55796
55797 2007-03-17  Jim Meyering  <jim@meyering.net>
55798
55799         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
55800         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
55801         someone uses a name containing shell meta-characters.
55802         Reported by Alfred M. Szmidt.
55803
55804         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
55805
55806 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
55807
55808         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
55809         and copy gettext configuration files only if configure.ac contains
55810         a use of AM_GNU_GETTEXT_VERSION.
55811
55812 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
55813
55814         * build-aux/bootstrap (gnulib_name): New variable.
55815         (gnulib_tool_options): Use it.
55816
55817 2007-03-13  Simon Josefsson  <simon@josefsson.org>
55818
55819         * tests/test-des.c: Use new namespace.
55820
55821 2007-03-15  Bruno Haible  <bruno@clisp.org>
55822
55823         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
55824         Reported by James Youngman <jay@gnu.org>.
55825
55826 2007-03-15  Bruno Haible  <bruno@clisp.org>
55827
55828         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
55829         declared prototype. Needed with cc on OSF/1 5.1.
55830
55831 2007-03-15  Bruno Haible  <bruno@clisp.org>
55832
55833         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
55834         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
55835         (struct gl_list_implementation): Add dispose_fn argument to the
55836         'create_empty', 'create' methods.
55837         (struct gl_list_impl_base): Add field 'dispose_fn'.
55838         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
55839         argument.
55840         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
55841         dispose_fn argument.
55842         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
55843         dispose_fn on the dropped values.
55844         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
55845         dispose_fn argument.
55846         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
55847         dropped values.
55848         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
55849         (gl_tree_remove_node): Call dispose_fn on the dropped value.
55850         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
55851         (gl_tree_remove_node): Call dispose_fn on the dropped value.
55852         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
55853         argument.
55854         (gl_tree_list_free): Call dispose_fn on the dropped values.
55855         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
55856         the dropped values.
55857         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55858         Add dispose_fn argument.
55859         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
55860         Call dispose_fn on the dropped values.
55861         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
55862         Add dispose_fn argument.
55863         (gl_sublist_create): Initialize the 'dispose_fn' field.
55864         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
55865         * tests/test-array_list.c (main): Update.
55866         * tests/test-carray_list.c (main): Update.
55867         * tests/test-avltree_list.c (main): Update.
55868         * tests/test-rbtree_list.c (main): Update.
55869         * tests/test-avltreehash_list.c (main): Update.
55870         * tests/test-rbtreehash_list.c (main): Update.
55871         * tests/test-linked_list.c (main): Update.
55872         * tests/test-linkedhash_list.c (main): Update.
55873         * tests/test-array_oset.c (main): Update.
55874
55875 2007-03-15  Bruno Haible  <bruno@clisp.org>
55876
55877         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
55878         (gl_oset_create_empty): Add dispose_fn argument.
55879         (struct gl_oset_implementation): Add dispose_fn argument to
55880         'create_empty' method.
55881         (struct gl_oset_impl_base): Add dispose_fn field.
55882         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
55883         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
55884         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
55885         values.
55886         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
55887         (gl_tree_oset_free): Call dispose_fn on the dropped values.
55888         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
55889         dropped value.
55890         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
55891         dropped value.
55892         * tests/test-array_oset.c (main): Update.
55893         * tests/test-avltree_oset.c (main): Update.
55894         * tests/test-rbtree_oset.c (main): Update.
55895         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
55896
55897 2007-03-13  Bruno Haible  <bruno@clisp.org>
55898
55899         * tests/test-stdbool.c (i): Update after last patch.
55900
55901 2007-03-12  Bruno Haible  <bruno@clisp.org>
55902
55903         * lib/quotearg.c: Include <wctype.h> early, before the definition of
55904         the iswprint macro. Needed on Solaris 2.5.1.
55905
55906 2007-03-12  Bruno Haible  <bruno@clisp.org>
55907
55908         * tests/test-printf-frexp.c (main): Declare x as volatile.
55909
55910 2007-03-12  Simon Josefsson  <simon@josefsson.org>
55911
55912         * doc/gnulib.texi (Build robot for gnulib): New section.
55913
55914 2007-03-12  Jim Meyering  <jim@meyering.net>
55915
55916         * build-aux/bootstrap: New file.
55917         * build-aux/bootstrap.conf: New file, from coreutils.
55918
55919 2007-03-11  Bruno Haible  <bruno@clisp.org>
55920
55921         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
55922
55923 2007-03-12  Simon Josefsson  <simon@josefsson.org>
55924
55925         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
55926         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
55927         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
55928
55929 2007-03-11  Bruno Haible  <bruno@clisp.org>
55930
55931         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
55932         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
55933
55934 2007-03-11  Bruno Haible  <bruno@clisp.org>
55935
55936         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
55937         formula. Needed for SunPRO C 5.0.
55938
55939 2007-03-11  Bruno Haible  <bruno@clisp.org>
55940
55941         * modules/long-options (Depends-on): Add getopt.
55942
55943 2007-03-11  Bruno Haible  <bruno@clisp.org>
55944
55945         * modules/modechange (Depends-on): Add stdbool.
55946
55947 2007-03-11  Bruno Haible  <bruno@clisp.org>
55948
55949         * modules/i-ring (Depends-on): Add stdbool.
55950
55951 2007-03-11  Bruno Haible  <bruno@clisp.org>
55952
55953         * modules/gc-des (Depends-on): Add stdbool.
55954
55955 2007-03-11  Bruno Haible  <bruno@clisp.org>
55956
55957         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
55958
55959 2007-03-11  Bruno Haible  <bruno@clisp.org>
55960
55961         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
55962
55963 2007-03-11  Bruno Haible  <bruno@clisp.org>
55964
55965         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
55966
55967 2007-03-11  Bruno Haible  <bruno@clisp.org>
55968
55969         * lib/vasnprintf.c (sprintf): Undefine.
55970
55971 2007-03-11  Bruno Haible  <bruno@clisp.org>
55972
55973         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
55974         initializers in SunPRO C and Compaq C compilers.
55975
55976 2007-03-11  Bruno Haible  <bruno@clisp.org>
55977
55978         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
55979         decrementing code ANSI C compliant.
55980
55981 2007-03-11  Bruno Haible  <bruno@clisp.org>
55982
55983         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
55984         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
55985
55986 2007-03-11  Bruno Haible  <bruno@clisp.org>
55987
55988         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
55989         <stdbool.h> substitute doesn't pass.
55990
55991 2007-03-11  Bruno Haible  <bruno@clisp.org>
55992
55993         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
55994
55995 2007-03-11  Bruno Haible  <bruno@clisp.org>
55996
55997         * gnulib-tool (func_create_megatestdir): Create also an autobuild
55998         script, for submission to autobuild.josefsson.org.
55999
56000 2007-03-10  Bruno Haible  <bruno@clisp.org>
56001
56002         * modules/canonicalize-lgpl-tests: New file.
56003         * tests/test-canonicalize-lgpl.sh: New file.
56004         * tests/test-canonicalize-lgpl.c: New file.
56005
56006         * modules/c-strcase-tests: New file.
56007         * tests/test-c-strcase.sh: New file.
56008         * tests/test-c-strcasecmp.c: New file.
56009         * tests/test-c-strncasecmp.c: New file.
56010
56011         * modules/atexit-tests: New file.
56012         * tests/test-atexit.sh: New file.
56013         * tests/test-atexit.c: New file.
56014
56015 2007-03-10  Bruno Haible  <bruno@clisp.org>
56016
56017         * tests/test-binary-io.sh: Use temporary filenames that are not so
56018         likely to clash with those of other tests (in a parallel make).
56019         * tests/test-binary-io.c: Likewise.
56020
56021 2007-03-10  Bruno Haible  <bruno@clisp.org>
56022
56023         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56024         fallback; use #error instead.
56025         Suggested by Simon Josefsson.
56026
56027 2007-03-10  Bruno Haible  <bruno@clisp.org>
56028
56029         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56030         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56031         first and the last.
56032
56033 2007-03-10  Bruno Haible  <bruno@clisp.org>
56034
56035         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56036
56037 2007-03-10  Bruno Haible  <bruno@clisp.org>
56038
56039         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56040         "make distcheck".
56041         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56042         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56043         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56044
56045 2007-03-10  Bruno Haible  <bruno@clisp.org>
56046
56047         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56048         variable.
56049         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56050         variable.
56051
56052 2007-03-09  Eric Blake  <ebb9@byu.net>
56053         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56054
56055         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56056         types are not being provided by gnulib.
56057         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56058         types are supported.
56059
56060 2007-03-10  Bruno Haible  <bruno@clisp.org>
56061
56062         * lib/stdio_.h (__attribute__): New macro.
56063         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56064         vsprintf): Specify __attribute__ __format__ for GCC.
56065         Suggested by Eric Blake.
56066
56067 2007-03-09  Bruno Haible  <bruno@clisp.org>
56068
56069         * modules/printf-posix-tests: New file.
56070         * tests/test-printf-posix.sh: New file.
56071         * tests/test-printf-posix.c: New file.
56072
56073         * modules/printf-posix: New file.
56074         * lib/printf.c: New file.
56075         * m4/printf-posix-rpl.m4: New file.
56076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56077         REPLACE_PRINTF.
56078         * lib/stdio_.h (printf): New declaration.
56079         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56080         ____strfmon____): New macros.
56081         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56082         REPLACE_PRINTF.
56083
56084 2007-03-09  Bruno Haible  <bruno@clisp.org>
56085
56086         * tests/test-vasnprintf-posix2.sh: New file.
56087         * tests/test-vasnprintf-posix2.c: New file.
56088         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56089         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56090         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56091
56092         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56093         a locale dependent decimal point, rather than always '.'.
56094
56095 2007-03-09  Eric Blake  <ebb9@byu.net>
56096
56097         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56098         spite of platforms like Tandem/NSK that define it to -1.
56099
56100 2007-03-08  Bruno Haible  <bruno@clisp.org>
56101
56102         * modules/vprintf-posix-tests: New file.
56103         * tests/test-vprintf-posix.sh: New file.
56104         * tests/test-vprintf-posix.c: New file.
56105         * tests/test-printf-posix.h: New file.
56106
56107         * modules/vprintf-posix: New file.
56108         * lib/vprintf.c: New file.
56109         * m4/vprintf-posix.m4: New file.
56110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56111         REPLACE_VPRINTF.
56112         * lib/stdio_.h (vprintf): New declaration.
56113         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56114         REPLACE_VPRINTF.
56115
56116 2007-03-08  Bruno Haible  <bruno@clisp.org>
56117
56118         * modules/fprintf-posix-tests: New file.
56119         * tests/test-fprintf-posix.sh: New file.
56120         * tests/test-fprintf-posix.c: New file.
56121
56122         * modules/fprintf-posix: New file.
56123         * lib/fprintf.c: New file.
56124         * m4/fprintf-posix.m4: New file.
56125         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56126         REPLACE_FPRINTF.
56127         * lib/stdio_.h (fprintf): New declaration.
56128         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56129         REPLACE_FPRINTF.
56130
56131 2007-03-08  Bruno Haible  <bruno@clisp.org>
56132
56133         * modules/vfprintf-posix-tests: New file.
56134         * tests/test-vfprintf-posix.sh: New file.
56135         * tests/test-vfprintf-posix.c: New file.
56136         * tests/test-fprintf-posix.h: New file.
56137         * tests/test-fprintf-posix.out: New file.
56138
56139         * modules/vfprintf-posix: New file.
56140         * lib/vfprintf.c: New file.
56141         * m4/vfprintf-posix.m4: New file.
56142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56143         REPLACE_VFPRINTF.
56144         * lib/stdio_.h (vfprintf): New declaration.
56145         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56146         REPLACE_VFPRINTF.
56147
56148 2007-03-08  Bruno Haible  <bruno@clisp.org>
56149
56150         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56151
56152 2007-03-08  Bruno Haible  <bruno@clisp.org>
56153
56154         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56155         instead of 'expr' invocations.
56156         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56157         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56158         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56159         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56160         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56161         Suggested by Paul Eggert.
56162
56163 2007-03-08  Bruno Haible  <bruno@clisp.org>
56164
56165         * modules/fseterr-tests: New file.
56166         * tests/test-fseterr.c: New file.
56167
56168         * modules/fseterr: New file.
56169         * lib/fseterr.h: New file.
56170         * lib/fseterr.c: New file.
56171
56172 2007-03-08  Bruno Haible  <bruno@clisp.org>
56173
56174         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56175         * lib/getopt_.h: Likewise.
56176         * lib/mbswidth.h: Likewise.
56177         * lib/setenv.h: Likewise.
56178         * lib/vasnprintf.h: Likewise.
56179         * lib/vasprintf.h: Likewise.
56180         * lib/verror.h: Likewise.
56181         * lib/xsetenv.h: Likewise.
56182         * lib/xvasprintf.h: Likewise.
56183
56184 2007-03-08  Jim Meyering  <jim@meyering.net>
56185
56186         * users.txt: Add parted.
56187
56188         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56189
56190 2007-03-07  Bruno Haible  <bruno@clisp.org>
56191
56192         * m4/printf.m4: Make the shell script snippets copy&pastable.
56193
56194 2007-03-02  Bruno Haible  <bruno@clisp.org>
56195
56196         * lib/netinet_in_.h: New file.
56197         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56198         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56199         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56200         (Depends-on): Add absolute-header.
56201         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56202         into netinet/in.h.
56203
56204 2007-03-03  Bruno Haible  <bruno@clisp.org>
56205
56206         * lib/sys_select_.h: New file.
56207         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56208         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56209         * modules/sys_select (Files): Add lib/sys_select_.h.
56210         (Depends-on): Add absolute-header.
56211         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56212         into sys/select.h.
56213
56214 2007-03-02  Bruno Haible  <bruno@clisp.org>
56215
56216         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56217         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56218         values.
56219         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56220         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56221         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56222         * modules/sys_socket (Depends-on): Add absolute-header.
56223         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56224         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56225         (Include): Remove requirement of inclusion of <sys/types.h>.
56226
56227 2007-03-02  Bruno Haible  <bruno@clisp.org>
56228
56229         * lib/byteswap_.h (bswap_32): Fix formula.
56230
56231 2007-03-06  Bruno Haible  <bruno@clisp.org>
56232
56233         * modules/sprintf-posix-tests: New file.
56234         * tests/test-sprintf-posix.c: New file.
56235
56236         * modules/sprintf-posix: New file.
56237         * lib/sprintf.c: New file.
56238         * m4/sprintf-posix.m4: New file.
56239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
56240         REPLACE_SPRINTF.
56241         * lib/stdio_.h (sprintf): New declaration.
56242         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
56243         REPLACE_SPRINTF.
56244
56245 2007-03-06  Bruno Haible  <bruno@clisp.org>
56246
56247         * modules/vsprintf-posix-tests: New file.
56248         * tests/test-vsprintf-posix.c: New file.
56249         * tests/test-sprintf-posix.h: New file.
56250
56251         * modules/vsprintf-posix: New file.
56252         * lib/vsprintf.c: New file.
56253         * m4/vsprintf-posix.m4: New file.
56254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
56255         REPLACE_VSPRINTF.
56256         * lib/stdio_.h (vsprintf): New declaration.
56257         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
56258         REPLACE_VSPRINTF.
56259
56260 2007-03-06  Bruno Haible  <bruno@clisp.org>
56261
56262         * modules/vsnprintf (Depend-on): Remove minmax.
56263
56264 2007-03-06  Bruno Haible  <bruno@clisp.org>
56265
56266         * modules/snprintf-posix-tests: New file.
56267         * tests/test-snprintf-posix.c: New file.
56268
56269         * modules/snprintf-posix: New file.
56270         * m4/snprintf-posix.m4: New file.
56271         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
56272         gl_FUNC_SNPRINTF.
56273         (gl_FUNC_SNPRINTF): Invoke it.
56274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
56275         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
56276         is set.
56277         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
56278
56279 2007-03-06  Bruno Haible  <bruno@clisp.org>
56280
56281         * modules/vsnprintf-posix-tests: New file.
56282         * tests/test-vsnprintf-posix.c: New file.
56283         * tests/test-snprintf-posix.h: New file.
56284
56285         * modules/vsnprintf-posix: New file.
56286         * m4/vsnprintf-posix.m4: New file.
56287         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
56288         gl_FUNC_VSNPRINTF.
56289         (gl_FUNC_VSNPRINTF): Invoke it.
56290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
56291         * lib/stdio_.h (vsnprintf): Define as a replacement if
56292         REPLACE_VSNPRINTF is set.
56293         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
56294
56295 2007-03-06  Bruno Haible  <bruno@clisp.org>
56296
56297         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
56298         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
56299
56300 2007-03-06  Bruno Haible  <bruno@clisp.org>
56301
56302         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
56303         (asinl): Declare also if HAVE_DECL_ASINL is set.
56304         (atanl): Declare also if HAVE_DECL_ATANL is set.
56305         (ceill): Declare also if HAVE_DECL_CEILL is set.
56306         (cosl): Declare also if HAVE_DECL_COSL is set.
56307         (expl): Declare also if HAVE_DECL_EXPL is set.
56308         (floorl): Declare also if HAVE_DECL_FLOORL is set.
56309         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
56310         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
56311         (logl): Declare also if HAVE_DECL_LOGL is set.
56312         (sinl): Declare also if HAVE_DECL_SINL is set.
56313         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
56314         (tanl): Declare also if HAVE_DECL_TANL is set.
56315         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
56316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
56317         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
56318         declaration of frexpl, ldexpl.
56319         * modules/printf-frexpl (Depends-on): Add math.
56320         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
56321
56322 2007-03-05  Bruno Haible  <bruno@clisp.org>
56323
56324         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
56325         frexpl and ldexpl are declared.
56326         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
56327
56328 2007-03-05  Bruno Haible  <bruno@clisp.org>
56329
56330         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56331         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56332
56333 2007-03-05  Bruno Haible  <bruno@clisp.org>
56334
56335         * lib/stdio_.h: Include <stddef.h>.
56336
56337 2007-03-05  Bruno Haible  <bruno@clisp.org>
56338
56339         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56340
56341 2007-03-05  Bruno Haible  <bruno@clisp.org>
56342
56343         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56344         NetBSD 4, from Ralf Wildenhues.
56345
56346 2007-03-04  Bruno Haible  <bruno@clisp.org>
56347
56348         * lib/vasprintf.h: Update #if logic for the case when the functions
56349         exist but are overridden.
56350
56351 2007-03-04  Bruno Haible  <bruno@clisp.org>
56352
56353         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56354         implementations: glibc-2.4 and MacOS X 10.3.
56355         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56356         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56357         * tests/test-vasprintf-posix.c (test_function): Likewise.
56358
56359 2007-03-04  Bruno Haible  <bruno@clisp.org>
56360
56361         * modules/vasprintf-posix-tests: New file.
56362         * tests/test-vasprintf-posix.c: New file.
56363
56364         * modules/vasprintf-posix: New file.
56365         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56366         defined.
56367         * m4/vasprintf-posix.m4: New file.
56368         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56369         gl_FUNC_VASPRINTF.
56370         (gl_FUNC_VASPRINTF): Invoke it.
56371         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56372         here.
56373         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56374
56375 2007-03-04  Bruno Haible  <bruno@clisp.org>
56376
56377         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56378         REPLACE_GETTIMEOFDAY.
56379         * modules/sys_time (Makefile.am): Likewise.
56380         * m4/sys_time_h.m4: Likewise.
56381         * m4/gettimeofday.m4: Likewise.
56382
56383 2007-03-04  Bruno Haible  <bruno@clisp.org>
56384
56385         * modules/vasnprintf-posix-tests: New file.
56386         * tests/test-vasnprintf-posix.c: New file.
56387
56388         * modules/vasnprintf-posix: New file.
56389         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56390         printf-frexpl.h.
56391         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56392         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56393         REPLACE_VASNPRINTF is defined.
56394         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56395         gl_FUNC_VASNPRINTF.
56396         (gl_FUNC_VASNPRINTF): Invoke it.
56397         * m4/vasnprintf-posix.m4: New file.
56398         * m4/printf.m4: New file.
56399
56400 2007-03-04  Bruno Haible  <bruno@clisp.org>
56401
56402         Compile progreloc.c only if --enable-relocatable is specified.
56403         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
56404         if --enable-relocatable was specified.
56405         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
56406         lib_SOURCES.
56407
56408 2007-03-04  Jim Meyering  <jim@meyering.net>
56409
56410         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
56411         Use it consistently, rather than enumerating errno constants.
56412
56413 2007-03-04  Bruno Haible  <bruno@clisp.org>
56414
56415         * modules/xvasprintf-tests: New file.
56416         * tests/test-xvasprintf.c: New file.
56417
56418         * modules/vasprintf-tests: New file.
56419         * tests/test-vasprintf.c: New file.
56420
56421         * modules/vasnprintf-tests: New file.
56422         * tests/test-vasnprintf.c: New file.
56423
56424         * modules/vsnprintf-tests: New file.
56425         * tests/test-vsnprintf.c: New file.
56426
56427         * modules/snprintf-tests: New file.
56428         * tests/test-snprintf.c: New file.
56429
56430 2007-03-04  Bruno Haible  <bruno@clisp.org>
56431
56432         Compile relocatable.c only if --enable-relocatable is specified.
56433         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
56434         gl_RELOCATABLE_LIBRARY.
56435         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
56436         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
56437         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
56438         gl_RELOCATABLE_LIBRARY.
56439         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
56440         (Makefile.am): Remove lib_SOURCES.
56441         * modules/relocatable-lib-lgpl (configure.ac): Invoke
56442         gl_RELOCATABLE_LIBRARY.
56443         (Makefile.am): Remove lib_SOURCES.
56444         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
56445         always.
56446         * modules/relocatable-prog-wrapper (configure.ac): Invoke
56447         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
56448
56449 2007-03-04  Bruno Haible  <bruno@clisp.org>
56450
56451         * modules/argmatch-tests: New file.
56452         * tests/test-argmatch.c: New file.
56453
56454         * tests/test-allocsa.c (main): Halve the number of loop runs.
56455
56456         * modules/alloca-opt-tests: New file.
56457         * tests/test-alloca-opt.c: New file.
56458
56459 2007-03-04  Jim Meyering  <jim@meyering.net>
56460
56461         Work around difference between Linux ACLs and Solaris 10 ZFS.
56462         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
56463         for EINVAL.
56464
56465 2007-03-03  Bruno Haible  <bruno@clisp.org>
56466
56467         * modules/relocatable-prog (Depends-on): Add back progreloc's
56468         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
56469
56470 2007-03-03  Bruno Haible  <bruno@clisp.org>
56471
56472         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
56473         * modules/relocatable-lib: New file.
56474
56475 2007-03-03  Bruno Haible  <bruno@clisp.org>
56476
56477         * modules/relocatable-prog: Renamed from modules/relocatable.
56478         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
56479
56480 2007-03-03  Bruno Haible  <bruno@clisp.org>
56481
56482         * modules/relocatable-script (Files): Add doc/relocatable.texi,
56483         m4/relocatable-lib.m4.
56484         (Depends-on): Remove 'relocatable'.
56485         (configure.ac): Add gl_RELOCATABLE_NOP.
56486
56487 2007-03-03  Bruno Haible  <bruno@clisp.org>
56488
56489         * modules/relocatable-prog-wrapper: New file.
56490         * modules/relocatable (Depends-on): Add it. Remove all other
56491         dependencies except progname.
56492         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
56493
56494         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
56495         (gl_FUNC_STRERROR): Nop.
56496         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
56497
56498         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
56499         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
56500
56501         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
56502         (gl_FUNC_READLINK): Update.
56503
56504         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
56505
56506 2007-03-03  Bruno Haible  <bruno@clisp.org>
56507
56508         * lib/xreadlink.c: Include <unistd.h> unconditionally.
56509         * modules/xreadlink (Depends-on): Add unistd.
56510         * modules/xreadlink-with-size (Depends-on): Likewise.
56511
56512 2007-03-03  Bruno Haible  <bruno@clisp.org>
56513
56514         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
56515         extracted from gt_FUNC_SETENV.
56516         (gt_FUNC_SETENV): Remove macro.
56517         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
56518         remove gt_FUNC_SETENV.
56519
56520 2007-03-03  Bruno Haible  <bruno@clisp.org>
56521
56522         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
56523         ENABLE_RELOCATABLE here.
56524         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
56525
56526 2007-03-03  Bruno Haible  <bruno@clisp.org>
56527
56528         * modules/rbtreehash-list-tests (Depends-on): Add progname.
56529         * tests/test-rbtreehash_list.c: Include progname.h.
56530         (main): Call set_program_name.
56531
56532         * modules/rbtree-oset-tests (Depends-on): Add progname.
56533         * tests/test-rbtree_oset.c: Include progname.h.
56534         (main): Call set_program_name.
56535
56536         * modules/rbtree-list-tests (Depends-on): Add progname.
56537         * tests/test-rbtree_list.c: Include progname.h.
56538         (main): Call set_program_name.
56539
56540         * modules/linked-list-tests (Depends-on): Add progname.
56541         * tests/test-linked_list.c: Include progname.h.
56542         (main): Call set_program_name.
56543
56544 2007-03-03  Bruno Haible  <bruno@clisp.org>
56545
56546         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
56547         All uses of __restrict changed to _Restrict_.
56548         * lib/glob_.h (__restrict): Remove macro.
56549
56550 2007-03-02  Bruno Haible  <bruno@clisp.org>
56551
56552         * modules/gettext (configure.ac): Require gettext infrastructure
56553         from version 0.16.1.
56554
56555 2007-03-02  Bruno Haible  <bruno@clisp.org>
56556
56557         * modules/linkedhash-list-tests (Depends-on): Add progname.
56558         * tests/test-linkedhash_list.c: Include progname.h.
56559         (main): Call set_program_name.
56560
56561         * modules/carray-list-tests (Depends-on): Add progname.
56562         * tests/test-carray_list.c: Include progname.h.
56563         (main): Call set_program_name.
56564
56565         * modules/avltreehash-list-tests (Depends-on): Add progname.
56566         * tests/test-avltreehash_list.c: Include progname.h.
56567         (main): Call set_program_name.
56568
56569         * modules/avltree-oset-tests (Depends-on): Add progname.
56570         * tests/test-avltree_oset.c: Include progname.h.
56571         (main): Call set_program_name.
56572
56573         * modules/avltree-list-tests (Depends-on): Add progname.
56574         * tests/test-avltree_list.c: Include progname.h.
56575         (main): Call set_program_name.
56576
56577         * modules/array-oset-tests (Depends-on): Add progname.
56578         * tests/test-array_oset.c: Include progname.h.
56579         (main): Call set_program_name.
56580
56581         * modules/array-list-tests (Depends-on): Add progname.
56582         * tests/test-array_list.c: Include progname.h.
56583         (main): Call set_program_name.
56584
56585         * modules/argp-tests (Depends-on): Add progname.
56586         * tests/test-argp.c: Include argp.h first. Include progname.h.
56587         (main): Call set_program_name.
56588
56589 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
56590
56591         * doc/gnulib-tool.texi (Initial import): Reword description of
56592         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
56593         limited effect even if defined after the first system include.
56594
56595 2007-03-01  Bruno Haible  <bruno@clisp.org>
56596
56597         * build-aux/config.libpath: Update to libtool-1.5.22.
56598         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56599
56600 2007-03-01  Bruno Haible  <bruno@clisp.org>
56601
56602         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
56603         foo_CFLAGS.
56604         Reported by Ralf Wildenhues.
56605
56606 2007-03-01  Bruno Haible  <bruno@clisp.org>
56607
56608         * build-aux/install-reloc: Remove object files left over by some
56609         compilers.
56610         Reported by Ralf Wildenhues.
56611
56612 2007-03-01  Bruno Haible  <bruno@clisp.org>
56613
56614         * build-aux/install-reloc: Break long lines.
56615
56616 2007-03-01  Bruno Haible  <bruno@clisp.org>
56617
56618         * doc/relocatable.texi: Document that it may not work on OpenBSD.
56619         Reported by Ralf Wildenhues.
56620
56621 2007-03-01  Bruno Haible  <bruno@clisp.org>
56622
56623         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
56624         include ordering constraints.
56625
56626 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56627
56628         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
56629         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
56630         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
56631         as another example.
56632         * lib/time_.h: Fix misspelling.
56633         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56634         Require gl_HEADER_TIME_H_DEFAULTS.
56635         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
56636         * m4/time_r.m4 (gl_TIME_R): Likewise.
56637         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
56638
56639 2007-03-01  Bruno Haible  <bruno@clisp.org>
56640
56641         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
56642         * m4/utimens.m4 (gl_UTIMENS): Likewise.
56643
56644 2007-03-01  Jim Meyering  <jim@meyering.net>
56645
56646         * modules/xreadlink (Maintainer): Add my name.
56647         * modules/xreadlink-with-size (Depends-on): Alphabetize.
56648
56649 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
56650             Bruno Haible  <bruno@clisp.org>
56651
56652         * build-aux/install-reloc: Compile also c-ctype.c.
56653         * build-aux/relocatable.sh.in: New file.
56654         * doc/relocatable.texi: New file.
56655         * doc/relocatable-maint.texi: New file.
56656         * doc/gnulib.texi: Include relocatable-maint.texi.
56657         * lib/progreloc.c: Include unistd.h unconditionally.
56658         * lib/relocwrapper.c: Include unistd.h unconditionally.
56659         Include c-ctype.h.
56660         (add_dotbin): Use c_tolower.
56661         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
56662         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
56663         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
56664         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
56665         to m4/relocatable-lib.m4.
56666         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
56667         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
56668         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
56669         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
56670         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
56671         * modules/relocatable: New file.
56672         * modules/relocatable-lib: New file.
56673         * modules/relocatable-script: New file.
56674
56675 2007-02-28  Bruno Haible  <bruno@clisp.org>
56676
56677         Import --enable-relocatable infrastructure.
56678         * build-aux/config.libpath: New file, from GNU gettext.
56679         * build-aux/install-reloc: New file, from GNU gettext.
56680         * build-aux/reloc-ldflags: New file, from GNU gettext.
56681         * lib/relocatable.h: New file, from GNU gettext.
56682         * lib/relocatable.c: New file, from GNU gettext.
56683         * lib/relocwrapper.c: New file, from GNU gettext.
56684         * m4/relocatable.m4: New file, from GNU gettext.
56685
56686 2007-02-28  Bruno Haible  <bruno@clisp.org>
56687
56688         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
56689
56690         * modules/xreadlink: New file, from GNU gettext with modifications.
56691         * lib/xreadlink.c: New file, from GNU gettext.
56692         * lib/xreadlink.h: Add comments.
56693         (xreadlink): New declaration.
56694
56695         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
56696         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
56697         lib/xreadlink-with-size.c.
56698         (configure.ac): Remove gl_XREADLINK invocation.
56699         (Makefile.am): Augment lib_SOURCES.
56700         * m4/xreadlink.m4: Remove file.
56701         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
56702         (xreadlink_with_size): Renamed from xreadink.
56703         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
56704         * modules/canonicalize (Depends-on): Replace xreadlink with
56705         xreadlink-with-size.
56706         * lib/canonicalize.c (canonicalize_filename_mode): Update.
56707
56708 2007-02-25  Jim Meyering  <jim@meyering.net>
56709
56710         * build-aux/announce-gen: When complaining about excess arguments,
56711         list them.
56712
56713 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56714
56715         * README: Document signed integer overflow situation more
56716         accurately.
56717
56718 2007-02-25  Bruno Haible  <bruno@clisp.org>
56719
56720         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
56721         'a' or 'A' conversion.
56722
56723 2007-02-25  Bruno Haible  <bruno@clisp.org>
56724
56725         * modules/filename: Renamed from modules/pathname.
56726         (Files): Replace lib/pathname.h with lib/filename.h. Replace
56727         lib/concatpath.c with lib/concat-filename.c.
56728         (Makefile.am): Update.
56729         (Include): Replace pathname.h with filename.h.
56730         * lib/filename.h: Renamed from lib/pathname.h.
56731         (concatenated_filename): Renamed from concatenated_pathname.
56732         * lib/concat-filename.c: Renamed from lib/concatpath.c.
56733         (concatenated_filename): Renamed from concatenated_pathname.
56734         * lib/findprog.c: Include filename.h instead of pathname.h.
56735         (find_in_path): Update.
56736         * lib/javacomp.c: Include filename.h instead of pathname.h.
56737         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56738         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56739         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56740         is_oldgcj_14_13_usable, is_javac_usable): Update.
56741         * lib/javaexec.c: Include filename.h instead of pathname.h.
56742         (execute_java_class): Update.
56743         * modules/findprog: Update.
56744         * modules/javacomp: Update.
56745         * modules/javaexec: Update.
56746         * MODULES.html.sh (File system functions): Add 'filename', remove
56747         'pathname'.
56748
56749 2007-02-25  Bruno Haible  <bruno@clisp.org>
56750
56751         * modules/printf-frexpl-tests: New file.
56752         * tests/test-printf-frexpl.c: New file.
56753
56754         * modules/printf-frexpl: New file.
56755         * lib/printf-frexpl.h: New file.
56756         * lib/printf-frexpl.c: New file.
56757         * m4/printf-frexpl.m4: New file.
56758
56759 2007-02-25  Bruno Haible  <bruno@clisp.org>
56760
56761         * modules/printf-frexp-tests: New file.
56762         * tests/test-printf-frexp.c: New file.
56763
56764         * modules/printf-frexp: New file.
56765         * lib/printf-frexp.h: New file.
56766         * lib/printf-frexp.c: New file.
56767         * m4/printf-frexp.m4: New file.
56768
56769 2007-02-25  Bruno Haible  <bruno@clisp.org>
56770
56771         Assume automake >= 1.10 for the tests.
56772         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
56773         * modules/arctwo-tests: Likewise.
56774         * modules/argp-tests: Likewise.
56775         * modules/avltree-list-tests: Likewise.
56776         * modules/avltree-oset-tests: Likewise.
56777         * modules/avltreehash-list-tests: Likewise.
56778         * modules/carray-list-tests: Likewise.
56779         * modules/crc-tests: Likewise.
56780         * modules/des-tests: Likewise.
56781         * modules/gc-arcfour-tests: Likewise.
56782         * modules/gc-arctwo-tests: Likewise.
56783         * modules/gc-des-tests: Likewise.
56784         * modules/gc-hmac-md5-tests: Likewise.
56785         * modules/gc-hmac-sha1-tests: Likewise.
56786         * modules/gc-md2-tests: Likewise.
56787         * modules/gc-md4-tests: Likewise.
56788         * modules/gc-md5-tests: Likewise.
56789         * modules/gc-pbkdf2-sha1-tests: Likewise.
56790         * modules/gc-rijndael-tests: Likewise.
56791         * modules/gc-sha1-tests: Likewise.
56792         * modules/gc-tests: Likewise.
56793         * modules/getaddrinfo-tests: Likewise.
56794         * modules/hmac-md5-tests: Likewise.
56795         * modules/hmac-sha1-tests: Likewise.
56796         * modules/linked-list-tests: Likewise.
56797         * modules/linkedhash-list-tests: Likewise.
56798         * modules/lock-tests: Likewise.
56799         * modules/md2-tests: Likewise.
56800         * modules/md4-tests: Likewise.
56801         * modules/md5-tests: Likewise.
56802         * modules/rbtree-list-tests: Likewise.
56803         * modules/rbtree-oset-tests: Likewise.
56804         * modules/rbtreehash-list-tests: Likewise.
56805         * modules/read-file-tests: Likewise.
56806         * modules/rijndael-tests: Likewise.
56807         * modules/stdint-tests: Likewise.
56808         * modules/tls-tests: Likewise.
56809
56810 2007-02-24  Bruno Haible  <bruno@clisp.org>
56811
56812         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
56813         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
56814         function; instead check whether isnan with a double argument links.
56815         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
56816         function; instead check whether isnan with a 'long double' argument
56817         links.
56818         Reported by Eric Blake <ebb9@byu.net>.
56819
56820 2007-02-24  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
56823         defined.
56824         * lib/isnanl.c: Remove all code. Just include isnan.c.
56825         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
56826
56827 2007-02-25  Jim Meyering  <jim@meyering.net>
56828
56829         Avoid conflicting types for 'unsetenv' on FreeBSD.
56830         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
56831         conflicting with FreeBSD's (5.0 and 6.1) function declaration
56832         in stdlib.h.
56833
56834 2007-02-24  Bruno Haible  <bruno@clisp.org>
56835
56836         * modules/isnanl-nolibm-tests: New file.
56837         * tests/test-isnanl.c: New file.
56838
56839         * modules/isnanl-nolibm: New file.
56840         * lib/isnanl.h: New file.
56841         * lib/isnanl.c: New file.
56842         * m4/isnanl.m4: New file.
56843
56844 2007-02-24  Bruno Haible  <bruno@clisp.org>
56845
56846         * modules/isnan-nolibm-tests: New file.
56847         * tests/test-isnan.c: New file.
56848
56849         * modules/isnan-nolibm: New file.
56850         * lib/isnan.h: New file.
56851         * lib/isnan.c: New file.
56852         * m4/isnan.m4: New file.
56853
56854 2007-02-24  Bruno Haible  <bruno@clisp.org>
56855
56856         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
56857         assume that an exponent fits in 20 bits.
56858
56859 2007-02-24  Jim Meyering  <jim@meyering.net>
56860
56861         * m4/regex.m4: Update the description of the configure-time option,
56862         --without-included-regex, to state accurately what the defaults are,
56863         and perhaps to give people an idea why using this option is risky.
56864
56865 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
56866
56867         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
56868         loops on small arguments.  This attempts to avoid the problem
56869         Bruno Haible reported for AIX 4.3.2 in
56870         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
56871
56872 2007-02-23  Bruno Haible  <bruno@clisp.org>
56873
56874         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
56875         Needed for help2man.
56876
56877 2007-02-23  Karl Berry  <karl@gnu.org>
56878
56879         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
56880         exists, foo.h should be cvs-ignored, not committed.
56881
56882 2007-02-23  Eric Blake  <ebb9@byu.net>
56883
56884         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
56885         * lib/stat-time.h (includes): Likewise.
56886         * lib/utimecmp.c (includes): Likewise.
56887         * lib/utimens.h (includes): Likewise.
56888         * lib/getdate.y (includes): Also include "timespec.h" for use
56889         internal to the module.
56890         * modules/utimens (Depends-on): Revert yesterday's patch.
56891         * modules/nanosleep (Depends-on): Add missing dependency.
56892
56893 2007-02-22  Bruno Haible  <bruno@clisp.org>
56894
56895         * lib/glob.c: Don't include getlogin_r.h.
56896
56897 2007-02-22  Jim Meyering  <jim@meyering.net>
56898
56899         * modules/utimens (Depends-on): Add timespec, required for
56900         utimens.h's inclusion of timespec.h.
56901
56902 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
56903
56904         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
56905         long unreadable paths in GNU/Linux.  Problem reported by Andreas
56906         Schwab in
56907         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
56908         I'll try to think of a better way to fix the Solaris problem.
56909
56910         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
56911         like glibc; on Solaris 10, it fails with errno == EINVAL.
56912         POSIX says the behavior is unspecified if the first argument is NULL,
56913         so play it safe and never pass NULL to the system getcwd.
56914
56915 2007-02-21  Jim Meyering  <jim@meyering.net>
56916
56917         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
56918         of gettimeofday.  It would conflict with the one now always
56919         provided via sys_time_.h.  Reported by Matthew Woehlke, as
56920         an IRIX 6.5 build failure.
56921
56922 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
56923
56924         Minor fixups to port to Solaris 10 with Sun C 5.8.
56925         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
56926         * modules/getcwd (Depends-on): Add dirfd.
56927         * lib/putenv.c (putenv): #undef it.
56928         (rpl_putenv): New decl.
56929         (malloc, free): Include <stdlib.h> rather than prototyping separately.
56930
56931 2007-02-20  Bruno Haible  <bruno@clisp.org>
56932
56933         * modules/stdio-tests: New file.
56934         * tests/test-stdio.c: New file.
56935
56936         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
56937         (Depends-on): Add stdio.
56938         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
56939         (Include): Use <stdio.h> instead of vsnprintf.h.
56940         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
56941         HAVE_DECL_VSNPRINTF.
56942         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
56943
56944         * modules/snprintf (Files): Remove lib/snprintf.h.
56945         (Depends-on): Add stdio.
56946         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
56947         (Include): Use <stdio.h> instead of snprintf.h.
56948         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
56949         HAVE_DECL_SNPRINTF.
56950         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
56951         * lib/getaddrinfo.c: Likewise.
56952
56953         * modules/stdio: New file.
56954         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
56955         * lib/snprintf.h: Remove file.
56956         * lib/vsnprintf.h: Remove file.
56957         * lib/.cppi-disable: Remove snprintf.h.
56958         * m4/stdio_h.m4: New file.
56959         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
56960
56961 2007-02-20  Jim Meyering  <jim@meyering.net>
56962
56963         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
56964         used by e.g., mingw.  From Bruno Haible.
56965
56966 2007-02-19  Bruno Haible  <bruno@clisp.org>
56967
56968         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
56969         warnings.
56970         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56971
56972 2007-02-19  Bruno Haible  <bruno@clisp.org>
56973
56974         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
56975         from mingw users.
56976
56977 2007-02-19  Bruno Haible  <bruno@clisp.org>
56978
56979         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
56980         warnings.
56981         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
56982
56983 2007-02-19  Jim Meyering  <jim@meyering.net>
56984
56985         Don't use FD after a successful "fdopendir (fd)".
56986         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
56987         Reset it by calling dirfd on the just-obtained DIR*.
56988
56989         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
56990         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
56991
56992 2007-02-18  Bruno Haible  <bruno@clisp.org>
56993
56994         * lib/readlink.c: Include <unistd.h>.
56995         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
56996         HAVE_READLINK.
56997         * modules/readlink (Depends-on): Add unistd.
56998         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56999         (Include): Add <unistd.h>.
57000
57001         * lib/getlogin_r.h: Remove file.
57002         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
57003         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
57004         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
57005         HAVE_DECL_GETLOGIN_R.
57006         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
57007         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57008         (Include): Use <unistd.h> instead of getlogin_r.h.
57009
57010         * lib/getcwd.h: Remove file.
57011         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
57012         * lib/xgetcwd.c: Likewise.
57013         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
57014         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
57015         * modules/getcwd (Files): Remove lib/getcwd.h.
57016         (Depends-on): Add unistd.
57017         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57018         (Include): Use <unistd.h> instad of getcwd.h.
57019
57020         * lib/ftruncate.c: Include <unistd.h> first.
57021         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57022         Set HAVE_FTRUNCATE.
57023         * modules/ftruncate (Depends-on): Add unistd.
57024         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57025
57026         * lib/fchdir.c: Include <unistd.h> first.
57027         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57028         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57029         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57030         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57031         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57032
57033         * lib/dup2.c: Include <unistd.h> first.
57034         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57035         HAVE_DUP2.
57036         * modules/dup2 (Depends-on): Add unistd.
57037         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57038
57039         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57040         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57041         REPLACE_CHOWN. Don't define chown as a macro here.
57042         * modules/chown (Depends-on): Add unistd.
57043         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57044
57045         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57046         Add definition for GL_LINK_WARNING.
57047         (chown, dup2): New declarations.
57048         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57049         link warning.
57050         (ftruncate): New declaration.
57051         (getcwd): New declaration, taken from old getcwd.h.
57052         (getlogin_r): New declaration, taken from old getlogin_r.h.
57053         (readlink): New declaration.
57054         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57055         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57056         (gl_PREREQ_UNISTD): Remove macro.
57057         (gl_UNISTD_MODULE_INDICATOR): New macro.
57058         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57059         many new variables. Don't set UNISTD_H.
57060         * modules/unistd (Description): Change.
57061         (Depends-on): Add link-warning.
57062         (configure.ac): Update.
57063         (Makefile.am): Create unistd.h always. Substitute many new variables
57064         into it.
57065
57066 2007-02-18  Bruno Haible  <bruno@clisp.org>
57067
57068         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57069         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57070         HAVE_GETSUBOPT.
57071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57072         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57073         * lib/getsubopt.h: Remove file.
57074         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57075         (Depends-on): Add stdlib.
57076         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57077         (Includes): Use <stdlib.h> instead of getsubopt.h.
57078         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57079         Set HAVE_GETSUBOPT.
57080         * lib/getsubopt.c: Don't include getsubopt.h.
57081
57082 2007-02-18  Bruno Haible  <bruno@clisp.org>
57083
57084         * modules/fchdir (Depends-on): Add dup2.
57085
57086 2007-02-18  Bruno Haible  <bruno@clisp.org>
57087
57088         * lib/stdlib_.h: Handle glibc's special invocation convention
57089         specially.
57090
57091 2007-02-18  Bruno Haible  <bruno@clisp.org>
57092
57093         * modules/stdlib-tests: New file.
57094         * tests/test-stdlib.c: New file.
57095
57096         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57097         (Depends-on): Add stdlib.
57098         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57099         (Includes): Use <stdlib.h> instead of mkstemp.h.
57100         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57101         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57102         * lib/mkstemp.c: Don't include mkstemp.h.
57103         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57104         * lib/stdlib--.h: Don't include mkstemp.h.
57105
57106         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57107         (Depends-on): Add stdlib.
57108         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57109         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57110         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57111         HAVE_MKDTEMP.
57112         * lib/mkdtemp.c: Don't include mkdtemp.h.
57113         * lib/clean-temp.c: Don't include mkdtemp.h.
57114
57115         * modules/exit (Files): Remove lib/exit.h.
57116         (Depends-on): Add stdlib.
57117         (Makefile.am): Remove lib_SOURCES.
57118         (Include): Use <stdlib.h> instead of exit.h.
57119         * lib/argmatch.c: Don't include exit.h.
57120         * lib/execute.c: Likewise.
57121         * lib/pagealign_alloc.c: Likewise.
57122         * lib/pipe.c: Likewise.
57123         * lib/wait-process.c: Likewise.
57124         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57125         * lib/exitfail.c: Likewise.
57126         * lib/savewd.c: Likewise.
57127         * lib/xsetenv.c: Likewise.
57128
57129         * modules/stdlib: New file.
57130         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57131         and extra comments about mkstemp().
57132         * lib/exit.h: Remove file.
57133         * lib/mkdtemp.h: Remove file.
57134         * lib/mkstemp.h: Remove file.
57135         * m4/stdlib_h.m4: New file.
57136         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57137
57138 2007-02-18  Bruno Haible  <bruno@clisp.org>
57139
57140         * modules/math-tests: New file.
57141         * tests/test-math.c: New file.
57142
57143         * modules/math: New file.
57144         * modules/mathl (Files): Remove lib/mathl.h.
57145         (Depends-on): Add math.
57146         (Makefile.am): Don't mention mathl.h.
57147         (Include): Use <math.h> instead of mathl.h.
57148         * lib/math_.h: New file.
57149         * lib/mathl.h: Remove file.
57150         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57151         mathl.h.
57152         * lib/asinl.c: Likewise.
57153         * lib/atanl.c: Likewise.
57154         * lib/ceill.c: Likewise.
57155         * lib/cosl.c: Likewise.
57156         * lib/expl.c: Likewise.
57157         * lib/floorl.c: Likewise.
57158         * lib/frexpl.c: Likewise.
57159         * lib/ldexpl.c: Likewise.
57160         * lib/logl.c: Likewise.
57161         * lib/sincosl.c: Likewise.
57162         * lib/sinl.c: Likewise.
57163         * lib/sqrtl.c: Likewise.
57164         * lib/tanl.c: Likewise.
57165         * lib/trigl.c: Likewise.
57166         * m4/math_h.m4: New file.
57167         * MODULES.html.sh (Mathematics): Add math.
57168
57169 2007-02-17  Bruno Haible  <bruno@clisp.org>
57170
57171         * modules/wctype-tests: New file.
57172         * tests/test-wctype.c: New file.
57173
57174         * modules/wchar-tests: New file.
57175         * tests/test-wchar.c: New file.
57176
57177         * modules/unistd-tests: New file.
57178         * tests/test-unistd.c: New file.
57179
57180         * modules/time-tests: New file.
57181         * tests/test-time.c: New file.
57182
57183         * modules/sysexits-tests: New file.
57184         * tests/test-sysexits.c: New file.
57185
57186         * modules/sys_time-tests: New file.
57187         * tests/test-sys_time.c: New file.
57188
57189         * modules/sys_stat-tests: New file.
57190         * tests/test-sys_stat.c: New file.
57191
57192         * modules/sys_socket-tests: New file.
57193         * tests/test-sys_socket.c: New file.
57194
57195         * modules/sys_select-tests: New file.
57196         * tests/test-sys_select.c: New file.
57197
57198         * modules/string-tests: New file.
57199         * tests/test-string.c: New file.
57200
57201         * modules/stdbool-tests: New file.
57202         * tests/test-stdbool.c: New file.
57203
57204         * modules/netinet_in-tests: New file.
57205         * tests/test-netinet_in.c: New file.
57206
57207         * modules/inttypes-tests: New file.
57208         * tests/test-inttypes.c: New file.
57209
57210         * modules/fcntl-tests: New file.
57211         * tests/test-fcntl.c: New file.
57212
57213         * modules/byteswap-tests: New file.
57214         * tests/test-byteswap.c: New file.
57215
57216         * modules/arpa_inet-tests: New file.
57217         * tests/test-arpa_inet.c: New file.
57218
57219 2007-02-17  Bruno Haible  <bruno@clisp.org>
57220
57221         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57222         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57223         if the corresponding module is not enabled. Emit link warnings if
57224         the function is used nevertheless.
57225         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57226         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57227         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57228         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57229         * modules/inttypes (Depends-on): Add link-warning.
57230         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57231         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57232         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57233         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57234         * modules/imaxdiv (configure.ac): Likewise.
57235         * modules/strtoimax (configure.ac): Likewise.
57236         * modules/strtoumax (configure.ac): Likewise.
57237
57238 2007-02-17  Bruno Haible  <bruno@clisp.org>
57239
57240         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
57241         gl_STRING_MODULE_INDICATOR_DEFAULTS.
57242         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
57243         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
57244
57245 2007-02-17  Bruno Haible  <bruno@clisp.org>
57246
57247         * modules/link-warning: New file.
57248         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
57249         * lib/string_.h (GL_LINK_WARNING): Remove definition.
57250         * modules/string (Depends-on): Add link-warning.
57251         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57252         string.h.
57253         * MODULES.html.sh (Support for building libraries and executables): Add
57254         link-warning.
57255
57256 2007-02-17  Bruno Haible  <bruno@clisp.org>
57257
57258         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
57259         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
57260         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
57261         long lines.
57262
57263 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
57264             Bruno Haible  <bruno@clisp.org>
57265
57266         * modules/tmpfile: New file.
57267         * lib/tmpfile.c: New file.
57268         * m4/tmpfile.m4: New file.
57269         * MODULES.html.sh (func_all_modules): New section "Input/output".
57270
57271 2007-02-15  Bruno Haible  <bruno@clisp.org>
57272
57273         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
57274         (supports_delete_on_close): New function.
57275         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
57276
57277 2007-02-14  Bruno Haible  <bruno@clisp.org>
57278
57279         * modules/mbspcasecmp-tests: New file.
57280         * tests/test-mbspcasecmp.sh: New file.
57281         * tests/test-mbspcasecmp.c: New file.
57282
57283         New module mbspcasecmp.
57284         * modules/mbspcasecmp: New file.
57285         * lib/mbspcasecmp.c: New file.
57286         * lib/string_.h (strncasecmp): Change warning message.
57287         (mbspcasecmp): New declaration.
57288         * m4/mbspcasecmp.m4: New file.
57289         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57290         GNULIB_MBSPCASECMP.
57291         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
57292         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
57293
57294 2007-02-14  Bruno Haible  <bruno@clisp.org>
57295
57296         * modules/mbsncasecmp-tests: New file.
57297         * tests/test-mbsncasecmp.sh: New file.
57298         * tests/test-mbsncasecmp.c: New file.
57299
57300         New module mbsncasecmp.
57301         * modules/mbsncasecmp: New file.
57302         * lib/mbsncasecmp.c: New file.
57303         * lib/string_.h (mbsncasecmp): New declaration.
57304         * m4/mbsncasecmp.m4: New file.
57305         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57306         GNULIB_MBSNCASECMP.
57307         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
57308         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
57309
57310 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57311
57312         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
57313         Verify that it doesn't overlap with our flags.
57314         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
57315         do not have the desired effect in multibyte locales; instead, use
57316         mbscasecmp.
57317         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
57318         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
57319         we don't require GNU fnmatch ourselves (if our users require it, they
57320         should do so explicitly).
57321
57322         Fix regex code so it doesn't rely on strcasecmp.
57323         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
57324         Otherwise, include gnulib's langinfo.h.
57325         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
57326         undesirable behavior in non-C locales.  Instead, rely on localecharset.
57327         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57328         * modules/regex (FILES): Remove m4/codeset.m4.
57329         (Depends-on): Add localcharset.  Remove strcase.
57330
57331 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57332
57333         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57334         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57335
57336 2007-02-13  Bruno Haible  <bruno@clisp.org>
57337
57338         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57339         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57340
57341 2007-02-12  Bruno Haible  <bruno@clisp.org>
57342
57343         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57344         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57345         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57346         time warning rather than a link error.
57347
57348 2007-02-12  Bruno Haible  <bruno@clisp.org>
57349
57350         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57351         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57352         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57353
57354 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57355
57356         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57357         args, not 2.
57358
57359 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57360
57361         New module 'time', so that apps can include <time.h> as per
57362         POSIX and GNU instead of separate include files like time_r.h
57363         and timegm.h.  This implementation tries out a simpler approach
57364         for replacing decls in standard include files (as compared to
57365         the string module), somewhat as an experiment.
57366
57367         * config/srclist.txt: Comment out mktime.c for now.
57368         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57369         since it doesn't apply any more.  Use generic wording instead.
57370         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57371         'time'.
57372         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57373         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57374         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57375         Don't include <sys/types.h>; no longer needed since we assume C89.
57376         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57377         * lib/strftime.c: Likewise.
57378         * lib/time_r.c: Likewise.
57379         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57380         * lib/nanosleep.c: Include <time.h> first, to check interface.
57381         * lib/strptime.c: Likewise.
57382         * lib/time_r.c: Likewise.
57383         * lib/timegm.c: Likewise.
57384         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57385         needed.
57386         * lib/timegm.c: Don't include timegm.h; no longer needed.
57387         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57388         time.h now handles any problems in that area.
57389         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57390         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57391         that time.h defines struct timespec.
57392         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57393         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57394         handles that.
57395         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57396         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57397         needed.  Set REPLACE_LOCALTIME.
57398         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57399         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57400         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57401         nanosleep; time_h.m4 now does that.  Don't require
57402         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
57403         module handles this now.
57404         * modules/getdate (Depends-on): Remove timespec.  Add time.
57405         * modules/nanosleep (Depends-on): Likewise.
57406         * modules/stat-time (Depends-on): Likewise.
57407         * modules/nanosleep (Include): Include time.h, not timespec.h.
57408         * modules/strptime (Files): Remove lib/strptime.h.
57409         (Depends-on): Add extensions, time.
57410         (Include): Include time.h, not strptime.h.
57411         * modules/time_r (Files): Remove lib/time_r.h.
57412         (Depends-on): Add time.
57413         (Include): Include time.h, not time_r.h.
57414         * modules/timegm: Likewise.
57415         * modules/timespec (Description): Now does timespec-related decls
57416         of our own, instead of struct timespec itself.
57417         (Depends-on): Add time; remove extensions.
57418         (Maintainer): Add self.
57419         * modules/utimecmp (Depends-on): Add time; remove timespec.
57420         * modules/utimens (Depends-on): Likewise.
57421         * modules/xnanosleep (Depends-on): Likewise.
57422
57423 2007-02-11  Bruno Haible  <bruno@clisp.org>
57424
57425         * lib/c-strstr.c: Include allocsa.h.
57426         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57427         * lib/c-strcasestr.c: Include allocsa.h.
57428         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57429         * lib/strcasestr.c: Include allocsa.h.
57430         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57431         * lib/mbsstr.c: Include allocsa.h.
57432         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57433         allocsa/freesa instead of malloc/free.
57434         * lib/mbscasestr.c: Include allocsa.h.
57435         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57436         allocsa/freesa instead of malloc/free.
57437         * modules/c-strstr (Depends-on): Add allocsa.
57438         * modules/c-strcasestr (Depends-on): Likewise.
57439         * modules/strcasestr (Depends-on): Likewise.
57440         * modules/mbsstr (Depends-on): Likewise.
57441         * modules/mbscasestr (Depends-on): Likewise.
57442
57443 2007-02-11  Bruno Haible  <bruno@clisp.org>
57444
57445         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
57446
57447         * modules/mbsspn-tests: New file.
57448         * tests/test-mbsspn.sh: New file.
57449         * tests/test-mbsspn.c: New file.
57450
57451 2007-02-11  Bruno Haible  <bruno@clisp.org>
57452
57453         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
57454
57455         * modules/mbspbrk-tests: New file.
57456         * tests/test-mbspbrk.sh: New file.
57457         * tests/test-mbspbrk.c: New file.
57458
57459 2007-02-11  Bruno Haible  <bruno@clisp.org>
57460
57461         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
57462         unneeded cast.
57463
57464         * modules/mbscspn-tests: New file.
57465         * tests/test-mbscspn.sh: New file.
57466         * tests/test-mbscspn.c: New file.
57467
57468 2007-02-11  Bruno Haible  <bruno@clisp.org>
57469
57470         * modules/mbscasecmp-tests: New file.
57471         * tests/test-mbscasecmp.sh: New file.
57472         * tests/test-mbscasecmp.c: New file.
57473
57474 2007-02-11  Bruno Haible  <bruno@clisp.org>
57475
57476         Ensure O(n) worst-case complexity of mbscasestr.
57477         * lib/mbscasestr.c: Include stdbool.h.
57478         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57479         functions.
57480         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
57481         the bookkeeping indicates that it's worth it.
57482         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
57483
57484         * modules/mbscasestr-tests: New file.
57485         * tests/test-mbscasestr1.c: New file.
57486         * tests/test-mbscasestr2.sh: New file.
57487         * tests/test-mbscasestr2.c: New file.
57488         * tests/test-mbscasestr3.sh: New file.
57489         * tests/test-mbscasestr3.c: New file.
57490         * tests/test-mbscasestr4.sh: New file.
57491         * tests/test-mbscasestr4.c: New file.
57492         * m4/locale-tr.m4: New file.
57493
57494 2007-02-11  Bruno Haible  <bruno@clisp.org>
57495
57496         Ensure O(n) worst-case complexity of mbsstr.
57497         * lib/mbsstr.c: Include stdbool.h.
57498         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57499         functions.
57500         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
57501         bookkeeping indicates that it's worth it.
57502         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
57503
57504         * modules/mbsstr-tests: New file.
57505         * tests/test-mbsstr1.c: New file.
57506         * tests/test-mbsstr2.sh: New file.
57507         * tests/test-mbsstr2.c: New file.
57508         * tests/test-mbsstr3.sh: New file.
57509         * tests/test-mbsstr3.c: New file.
57510         * m4/locale-fr.m4: New file.
57511
57512 2007-02-11  Bruno Haible  <bruno@clisp.org>
57513
57514         * lib/mbsrchr.c (mbsrchr): Fix bug.
57515
57516         * modules/mbsrchr-tests: New file.
57517         * tests/test-mbsrchr.sh: New file.
57518         * tests/test-mbsrchr.c: New file.
57519
57520 2007-02-11  Bruno Haible  <bruno@clisp.org>
57521
57522         * lib/mbschr.c (mbschr): Fix bug.
57523
57524         * modules/mbschr-tests: New file.
57525         * tests/test-mbschr.sh: New file.
57526         * tests/test-mbschr.c: New file.
57527         * m4/locale-zh.m4: New file.
57528
57529 2007-02-11  Bruno Haible  <bruno@clisp.org>
57530
57531         Support for copying multibyte string iterators.
57532         * lib/mbiter.h: Include <string.h>.
57533         (mbiter_multi_copy): New function.
57534         (mbi_copy): New macro.
57535         * lib/mbuiter.h: Include <string.h>.
57536         (mbuiter_multi_copy): New function.
57537         (mbui_copy): New macro.
57538
57539 2007-02-11  Bruno Haible  <bruno@clisp.org>
57540
57541         New module mbslen.
57542         * modules/mbslen: New file.
57543         * lib/mbslen.c: New file.
57544         * lib/string_.h (mbslen): New declaration.
57545         * m4/mbslen.m4: New file.
57546         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57547         GNULIB_MBSLEN.
57548         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
57549         * MODULES.html.sh (Internationalization functions): Add mbslen.
57550
57551 2007-02-11  Bruno Haible  <bruno@clisp.org>
57552
57553         Ensure O(n) worst-case complexity of strcasestr substitute.
57554         * lib/strcasestr.c: Include stdbool.h.
57555         (knuth_morris_pratt): New function.
57556         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57557         bookkeeping indicates that it's worth it.
57558         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
57559
57560         * modules/strcasestr-tests: New file.
57561         * tests/test-strcasestr.c: New file.
57562
57563 2007-02-11  Bruno Haible  <bruno@clisp.org>
57564
57565         Ensure O(n) worst-case complexity of c_strcasestr.
57566         * lib/c-strcasestr.c: Include stdbool.h, string.h.
57567         (knuth_morris_pratt): New function.
57568         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
57569         the bookkeeping indicates that it's worth it.
57570         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
57571
57572         * modules/c-strcasestr-tests: New file.
57573         * tests/test-c-strcasestr.c: New file.
57574
57575 2007-02-11  Bruno Haible  <bruno@clisp.org>
57576
57577         Ensure O(n) worst-case complexity of c_strstr.
57578         * lib/c-strstr.c: Include stdbool.h, string.h.
57579         (knuth_morris_pratt): New function.
57580         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57581         bookkeeping indicates that it's worth it.
57582         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
57583
57584         * lib/c-strstr.c: Complete rewrite for maintainability.
57585
57586         * modules/c-strstr-tests: New file.
57587         * tests/test-c-strstr.c: New file.
57588
57589 2007-02-11  Bruno Haible  <bruno@clisp.org>
57590
57591         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
57592         5.2.1 and earlier, whereby \055 was treated just like the range
57593         delimiter '-'.
57594         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57595
57596 2007-02-08  Bruno Haible  <bruno@clisp.org>
57597
57598         * modules/regex (Depends-on): Add stdbool.
57599         Reported by Dalibor Topic <robilad@kaffe.org>.
57600
57601 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57602
57603         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
57604         Prefer returning from main to exiting from it.
57605         Remove unnecessary parens after sizeof.
57606
57607 2007-02-05  Bruno Haible  <bruno@clisp.org>
57608
57609         New module mbssep.
57610         * modules/mbssep: New file.
57611         * lib/mbssep.c: New file.
57612         * lib/string_.h (strsep): Add a conditional link warning.
57613         (mbssep): New declaration.
57614         * m4/mbssep.m4: New file.
57615         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57616         GNULIB_MBSSEP.
57617         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
57618         * MODULES.html.sh (Internationalization functions): Add mbssep.
57619
57620 2007-02-05  Bruno Haible  <bruno@clisp.org>
57621
57622         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
57623         Optimize search in case of 1 delimiter.
57624
57625 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57626
57627         * lib/acl.h: Include sys/types.h before sys/acl.h.
57628
57629 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57630
57631         Merge upstream fix for glibc bugzilla #3957:
57632
57633         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
57634
57635         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
57636         bit for RE_HAT_LISTS_NOT_NEWLINE.
57637         (build_charclass_op): Remove bogus comment.
57638
57639 2007-02-05  Simon Josefsson  <simon@josefsson.org>
57640
57641         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
57642
57643 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57644
57645         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
57646         * lib/memmem.c [!defined _LIBC]: Include config.h.
57647
57648 2007-02-04  Bruno Haible  <bruno@clisp.org>
57649
57650         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
57651         warning message.
57652
57653 2007-02-04  Bruno Haible  <bruno@clisp.org>
57654
57655         New module mbstok_r.
57656         * modules/mbstok_r: New file.
57657         * lib/mbstok_r.c: New file.
57658         * lib/string_.h (strtok_r): Change argument names to match the
57659         comments. Add a conditional link warning.
57660         (mbstok_r): New declaration.
57661         * m4/mbstok_r.m4: New file.
57662         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57663         GNULIB_MBSTOK_R.
57664         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
57665         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
57666
57667 2007-02-04  Bruno Haible  <bruno@clisp.org>
57668
57669         New module mbsspn.
57670         * modules/mbsspn: New file.
57671         * lib/mbsspn.c: New file.
57672         * lib/string_.h (strspn): Add a conditional link warning.
57673         (mbsspn): New declaration.
57674         * m4/mbsspn.m4: New file.
57675         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57676         GNULIB_MBSSPN.
57677         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
57678         * MODULES.html.sh (Internationalization functions): Add mbsspn.
57679
57680 2007-02-04  Bruno Haible  <bruno@clisp.org>
57681
57682         New module mbspbrk.
57683         * modules/mbspbrk: New file.
57684         * lib/mbspbrk.c: New file.
57685         * lib/string_.h (strpbrk): Add a conditional link warning.
57686         (mbspbrk): New declaration.
57687         * m4/mbspbrk.m4: New file.
57688         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57689         GNULIB_MBSPBRK.
57690         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
57691         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
57692
57693 2007-02-04  Bruno Haible  <bruno@clisp.org>
57694
57695         New module mbscspn.
57696         * modules/mbscspn: New file.
57697         * lib/mbscspn.c: New file.
57698         * lib/string_.h (strcspn): Add a conditional link warning.
57699         (mbscspn): New declaration.
57700         * m4/mbscspn.m4: New file.
57701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57702         GNULIB_MBSCSPN.
57703         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
57704         * MODULES.html.sh (Internationalization functions): Add mbscspn.
57705
57706 2007-02-04  Bruno Haible  <bruno@clisp.org>
57707
57708         New module mbscasestr, reduced goal of strcasestr.
57709         * modules/mbscasestr: New file.
57710         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
57711         (mbscasestr): Renamed from strcasestr.
57712         * lib/strcasestr.c: Don't include mbuiter.h.
57713         (strcasestr): Remove support for multibyte locales.
57714         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
57715         Change the conditional link warning.
57716         (mbscasestr): New declaration.
57717         * m4/mbscasestr.m4: New file.
57718         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
57719         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
57720         REPLACE_STRCASESTR.
57721         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
57722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57723         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57724         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
57725         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
57726         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57727         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
57728         (Depends-on): Remove mbuiter.
57729         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
57730
57731 2007-02-04  Bruno Haible  <bruno@clisp.org>
57732
57733         Simplify handling of strncasecmp.
57734         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
57735         the conditional link warning.
57736         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57737         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
57738         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
57739         * modules/strcase (configure.ac): Don't invoke
57740         gl_STRING_MODULE_INDICATOR.
57741         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
57742
57743 2007-02-04  Bruno Haible  <bruno@clisp.org>
57744
57745         New module mbscasecmp, reduced goal of strcasecmp.
57746         * modules/mbscasecmp: New file.
57747         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
57748         (mbscasecmp): Renamed from strcasecmp.
57749         * lib/strcasecmp.c: Don't include mbuiter.h.
57750         (strcasecmp): Remove support for multibyte locales.
57751         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
57752         Change the conditional link warning.
57753         (mbscasecmp): New declaration.
57754         * m4/mbscasecmp.m4: New file.
57755         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
57756         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
57757         REPLACE_STRCASECMP.
57758         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
57759         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57760         GNULIB_MBSCASECMP.
57761         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
57762         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
57763         * modules/strcase (Files): Remove m4/mbrtowc.m4.
57764         (Depends-on): Remove mbuiter.
57765         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
57766
57767 2007-02-04  Bruno Haible  <bruno@clisp.org>
57768
57769         New module mbsstr. Remove module strstr.
57770         * modules/mbsstr: New file.
57771         * modules/strstr: Remove file.
57772         * lib/mbsstr.c: Renamed from lib/strstr.c.
57773         (mbsstr): Renamed from strstr.
57774         * lib/string_.h (strstr): Remove declaration. Change the conditional
57775         link warning.
57776         (mbsstr): New declaration.
57777         * m4/mbsstr.m4: New file.
57778         * m4/strstr.m4: Remove file.
57779         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
57780         REPLACE_STRSTR.
57781         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
57782         Don't initialize GNULIB_STRSTR.
57783         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
57784         substitute GNULIB_STRSTR and REPLACE_STRSTR.
57785         * MODULES.html.sh (Internationalization functions): Add mbsstr.
57786         (Support for systems lacking ANSI C 89): Remove strstr.
57787
57788 2007-02-04  Bruno Haible  <bruno@clisp.org>
57789
57790         New module mbsrchr.
57791         * modules/mbsrchr: New file.
57792         * lib/mbsrchr.c: New file.
57793         * lib/string_.h (strrchr): Add a conditional link warning.
57794         (mbsrchr): New declaration.
57795         * m4/mbsrchr.m4: New file.
57796         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57797         GNULIB_MBSRCHR.
57798         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
57799         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
57800
57801 2007-02-04  Bruno Haible  <bruno@clisp.org>
57802
57803         New module mbschr.
57804         * modules/mbschr: New file.
57805         * lib/mbschr.c: New file.
57806         * lib/string_.h (strchr): Add a conditional link warning.
57807         (mbschr): New declaration.
57808         * m4/mbschr.m4: New file.
57809         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57810         GNULIB_MBSCHR.
57811         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
57812         * MODULES.html.sh (Internationalization functions): Add mbschr.
57813
57814 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57815
57816         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
57817
57818         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
57819
57820 2007-02-04  Bruno Haible  <bruno@clisp.org>
57821
57822         New module description section 'configure.ac-early'.
57823         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
57824         (func_get_autoconf_early_snippet): New function.
57825         (func_import, func_create_testdir): Use it. Remove special cases for
57826         modules 'extensions' and 'lock'.
57827         * modules/extensions (configure.ac-early): Require
57828         gl_USE_SYSTEM_EXTENSIONS.
57829         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
57830
57831 2007-02-04  Bruno Haible  <bruno@clisp.org>
57832
57833         Make use of gcj-4.3's -fsource and -ftarget option.
57834         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
57835         and if so try the options -fsource and -ftarget.
57836         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
57837         source_version, ftarget_option, target_version arguments.
57838         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
57839         (is_envjavac_oldgcj_14_14_usable): Renamed from
57840         is_envjavac_gcj_14_14_usable.
57841         (is_envjavac_oldgcj_14_13_usable): Renamed from
57842         is_envjavac_gcj_14_13_usable.
57843         (is_gcj_present): Update.
57844         (is_gcj_43, is_gcj43_usable): New functions.
57845         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
57846         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
57847         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
57848         try the options -fsource and -ftarget.
57849
57850 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57851
57852         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
57853         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
57854         larger value.
57855
57856 2007-02-03  Jim Meyering  <jim@meyering.net>
57857
57858         Give tools a better chance to allocate space for very large buffers.
57859         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
57860
57861         Make pwd and readlink work also when run with an unreadable parent dir
57862         on systems with openat support.
57863         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
57864         provided getcwd function, even when we have openat support.
57865         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
57866
57867 2007-02-02  Bruno Haible  <bruno@clisp.org>
57868
57869         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57870         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
57871         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
57872         portability problems if one of these functions is only used on specific
57873         platforms.
57874         Reported by Paul Eggert.
57875
57876 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
57877
57878         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
57879         is causing more trouble than it's curing.
57880         * lib/regex_internal.h (__mempcpy): Remove.
57881         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
57882         (and make the code a tad smaller to boot).
57883         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
57884
57885 2007-02-02  Jim Meyering  <jim@meyering.net>
57886
57887         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
57888         section, not in the Makefile.am: one.
57889
57890 2007-02-02  Eric Blake  <ebb9@byu.net>
57891
57892         * lib/strchrnul.c: Always include config.h first.
57893
57894         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
57895         gnulib strstr is not necessary here.
57896
57897 2007-02-02  Simon Josefsson  <simon@josefsson.org>
57898
57899         * m4/socklen.m4: Fix typo.
57900
57901 2007-02-02  Eric Blake  <ebb9@byu.net>
57902
57903         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
57904         * modules/netinet_in (Makefile.am): Likewise.
57905
57906 2007-02-01  Bruno Haible  <bruno@clisp.org>
57907
57908         * lib/string_.h (GL_LINK_WARNING): New macro.
57909         (strcasecmp, strstr, strcasestr): If provided by the system,
57910         conditionally define as a macro that leads to a warning instead of to
57911         an error.
57912         (strncasecmp): Conditionally define as a macro that leads to a warning.
57913
57914 2007-02-01  Karl Berry  <karl@gnu.org>
57915
57916         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
57917
57918 2007-02-01  Bruno Haible  <bruno@clisp.org>
57919
57920         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
57921         renamings.
57922
57923 2007-02-01  Eric Blake  <ebb9@byu.net>
57924
57925         * modules/regex (Depends-on): Revert dependence on mempcpy.
57926         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
57927         module's definition of mempcpy.
57928         Reported by Paul Eggert.
57929
57930 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
57931
57932         * lib/string_.h: If the gnulib module XYZ is not present, undefine
57933         the symbol XYZ before redefining it.  This fixes a problem with
57934         programs that don't use XYZ, when compiled on systems that define
57935         XYZ to something else.
57936
57937 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
57938
57939         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
57940         occurs when "mkdir -m foo" creates a setgid directory that is (1)
57941         writeable to group or other and (2) is intended to have a special
57942         mode bit that is set or cleared.  In such a case, the directory
57943         should be neither group- nor other-writeable until the special
57944         mode bits are right.
57945
57946 2007-01-31  Eric Blake  <ebb9@byu.net>
57947
57948         * modules/mountlist (Depends-on): Add strstr.
57949
57950         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
57951         bug.
57952         * modules/string (Makefile.am): Remove redundant replacement.
57953         * modules/regex (Depends-on): Add mempcpy.
57954
57955 2007-01-31  Bruno Haible  <bruno@clisp.org>
57956
57957         New module description field 'Link'.
57958         * gnulib-tool (func_usage): Document --extract-link-directive.
57959         (sed_extract_prog): Recognize 'Link' directive.
57960         (func_get_link_directive): New function.
57961         (func_import): Show summary of link directives.
57962         Handle --extract-link-directive option.
57963         * modules/acl (Link): New section.
57964         * modules/clock-time (Link): New section.
57965         * modules/euidaccess (Link): New section.
57966         * modules/gettext (Link): New section.
57967         * modules/iconv (Link): New section.
57968         * modules/lock (Link): New section.
57969         * modules/nanosleep (Link): New section.
57970         * modules/readline (Link): New section.
57971
57972 2007-01-27  Bruno Haible  <bruno@clisp.org>
57973
57974         Enforce the use of gnulib modules for unportable <string.h> functions.
57975         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
57976         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
57977         (gl_HEADER_STRING_H_BODY): Require it.
57978         * lib/string_.h: If the gnulib module XYZ is not present, redefine
57979         the symbol XYZ to one that gives a link error.
57980         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
57981         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
57982         * modules/mempcpy (configure.ac): Likewise.
57983         * modules/memrchr (configure.ac): Likewise.
57984         * modules/stpcpy (configure.ac): Likewise.
57985         * modules/stpncpy (configure.ac): Likewise.
57986         * modules/strcase (configure.ac): Likewise.
57987         * modules/strcasestr (configure.ac): Likewise.
57988         * modules/strchrnul (configure.ac): Likewise.
57989         * modules/strdup (configure.ac): Likewise.
57990         * modules/strndup (configure.ac): Likewise.
57991         * modules/strnlen (configure.ac): Likewise.
57992         * modules/strpbrk (configure.ac): Likewise.
57993         * modules/strsep (configure.ac): Likewise.
57994         * modules/strstr (configure.ac): Likewise.
57995         * modules/strtok_r (configure.ac): Likewise.
57996
57997 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
57998
57999         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
58000
58001 2007-01-30  Jim Meyering  <jim@meyering.net>
58002
58003         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
58004
58005 2007-01-29  Bruno Haible  <bruno@clisp.org>
58006
58007         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
58008         * lib/execute.c: Likewise.
58009         * lib/pipe.c: Likewise.
58010         * lib/printf-args.h: Likewise.
58011         * lib/printf-args.c: Likewise.
58012         * lib/printf-parse.c: Likewise.
58013         * lib/vasnprintf.c: Likewise.
58014
58015 2007-01-29  Eric Blake  <ebb9@byu.net>
58016
58017         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
58018         declaration.
58019
58020 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58021
58022         * lib/strptime.h (strptime): Use 'restrict' for args where
58023         POSIX requires this.
58024         * lib/strptime.c (strptime): Likewise.
58025         Change license notice from LGPL to GPL, since gnulib-tool will
58026         change this as needed.
58027         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58028         defined.
58029         Include "strptime.h" first, to check interface.
58030         Do not #undef _LIBC and _NL_CURRENT.
58031         Do not include <stdlib.h>; no longer needed.
58032         Include "time_r.h" and declare ptime_locale_status
58033         only if _LIBC is not defined.
58034         (__P): Remove unused macro.
58035         (match_string): Bring back glibc version, but use it only if _LIBC
58036         is defined.
58037         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58038         Remove unnecessary assertion and abort() call.
58039         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58040         * m4/strptime.m4: Fix serial number comment.
58041         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58042         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58043         (Depends-on): Add time_r.
58044
58045 2007-01-29  Bruno Haible  <bruno@clisp.org>
58046
58047         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58048         strptime.
58049         * modules/strptime (Depends-on): Add stdbool.
58050         * lib/strptime.h: Include <time.h> always. Add comments.
58051
58052 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58053
58054         * modules/strptime: New file.
58055         * lib/strptime.h: New file.
58056         * lib/strptime.c: New file.
58057         * m4/strptime.m4: New file.
58058
58059 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58060
58061         * MODULES.html.sh: New module mpsort.
58062         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58063
58064         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58065         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58066         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58067         All uses changed.
58068         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58069         All uses changed.
58070         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58071         to _Restrict_.
58072         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58073         the parameter matches the prototype.
58074
58075 2007-01-28  Jim Meyering  <jim@meyering.net>
58076
58077         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58078         sys/time.h here, reverting that part of the previous patch:
58079         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58080
58081 2007-01-28  Bruno Haible  <bruno@clisp.org>
58082
58083         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58084         value of $(SYS_TIME_H).
58085         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58086         remove it conditionally, too. [added by Jim Meyering]
58087         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58088         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58089         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58090         GETTIMEOFDAY_REPLACEMENT to 1.
58091
58092 2007-01-28  Bruno Haible  <bruno@clisp.org>
58093
58094         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58095         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58096         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58097         Set UNISTD_H instead of UNISTD_H2.
58098         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58099
58100 2007-01-28  Bruno Haible  <bruno@clisp.org>
58101
58102         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58103         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58104
58105 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58106
58107         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58108         (func_create_testdir): Ensure C locale for `grep' and `tr'
58109         character ranges.
58110         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58111         ACLOCAL_AMFLAGS parsing state machine.
58112
58113 2007-01-27  Bruno Haible  <bruno@clisp.org>
58114
58115         * modules/unistr/base: Update.
58116
58117 2007-01-27  Bruno Haible  <bruno@clisp.org>
58118
58119         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58120         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58121         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58122         modules/unistr/u32-mbtouc.
58123         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58124         * lib/unistr.h: Update.
58125         * lib/linebreak.c: Update.
58126         * modules/unistr/u32-mbtouc: Renamed from
58127         modules/unistr/u32-mbtouc-safe.
58128         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58129         * lib/unistr.h: Update.
58130         * lib/unistr/u32-to-u8.c: Update.
58131         * lib/unistr/u32-to-u16.c: Update.
58132
58133 2007-01-27  Bruno Haible  <bruno@clisp.org>
58134
58135         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58136         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58137         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58138         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58139         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58140         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58141         modules/unistr/u16-mbtouc.
58142         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58143         * lib/unistr.h: Update.
58144         * lib/linebreak.c: Update.
58145         * modules/linebreak: Update.
58146         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58147         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58148         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58149         * modules/unistr/u16-mbtouc: Renamed from
58150         modules/unistr/u16-mbtouc-safe.
58151         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58152         * lib/unistr.h: Update.
58153         * lib/unistr/u16-to-u8.c: Update.
58154         * modules/unistr/u16-to-u8: Update.
58155         * lib/unistr/u16-to-u32.c: Update.
58156         * modules/unistr/u16-to-u32: Update.
58157
58158 2007-01-27  Bruno Haible  <bruno@clisp.org>
58159
58160         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58161         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58162         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58163         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58164         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58165         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58166         modules/unistr/u8-mbtouc.
58167         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58168         * lib/unistr.h: Update.
58169         * lib/striconveh.c: Update.
58170         * modules/striconveh: Update.
58171         * lib/linebreak.c: Update.
58172         * modules/linebreak: Update.
58173         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58174         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58175         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58176         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58177         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58178         * lib/unistr.h: Update.
58179         * lib/striconveh.c: Update.
58180         * modules/striconveh: Update.
58181         * lib/unistr/u8-to-u16.c: Update.
58182         * modules/unistr/u8-to-u16: Update.
58183         * lib/unistr/u8-to-u32.c: Update.
58184         * modules/unistr/u8-to-u32: Update.
58185
58186 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58187
58188         Sync from Libtool.
58189         * lib/argz.c: Do not include strings.h nor memory.h, include
58190         string.h unconditionally.  Patch by Simon Josefsson.
58191
58192 2007-01-27  Bruno Haible  <bruno@clisp.org>
58193
58194         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58195         from gl_HEADER_STRING_H_BODY.
58196         (gl_HEADER_STRING_H_BODY): Require it.
58197         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58198         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58199         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58200         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58201         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58202         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58203         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58204         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58205         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58206         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58207         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58208         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58209         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58210         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58211         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58212
58213 2007-01-27  Bruno Haible  <bruno@clisp.org>
58214
58215         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58216         check_PROGRAMS into noinst_PROGRAMS.
58217         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58218         check_PROGRAMS in this case.
58219         (func_import): Set for_test to false.
58220         (func_create_testdir): Set for_test to true.
58221
58222 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58223             Bruno Haible  <bruno@clisp.org>
58224
58225         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58226         (Depends-on): Add string.
58227         (Includes): Use <string.h> instead of strcasestr.h.
58228         * modules/string (Makefile.am): Also substitute the value of
58229         REPLACE_STRCASESTR.
58230         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58231         assume strcasestr is declared in <string.h> not <strings.h>. Also
58232         set REPLACE_STRCASESTR.
58233         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58234         REPLACE_STRCASESTR.
58235         * lib/strcasestr.h: Remove file.
58236         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
58237         * lib/string_.h (strcasestr): New declaration.
58238
58239 2007-01-27  Bruno Haible  <bruno@clisp.org>
58240
58241         * lib/string_.h: Use 'extern'.
58242
58243 2007-01-27  Jim Meyering  <jim@meyering.net>
58244
58245         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
58246         of set-but-not-used local, "q".
58247
58248         * lib/mempcpy.c: Include <config.h> before <string.h>.
58249         This fixes a compilation error on HP-UX, due to the system's
58250         "restrict"-using mempcpy prototype.
58251
58252 2007-01-26  Bruno Haible  <bruno@clisp.org>
58253
58254         Small optimization.
58255         * lib/javacomp.c: Include c-strstr.h.
58256          (is_envjavac_gcj): Use c_strstr instead of strstr.
58257         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
58258
58259 2007-01-26  Bruno Haible  <bruno@clisp.org>
58260
58261         * MODULES.html.sh (Unicode string functions): Add the new modules.
58262
58263         * modules/uniconv/u32-strconv-to-locale: New file.
58264         * lib/uniconv/u32-strconv-to-locale.c: New file.
58265
58266         * modules/uniconv/u16-strconv-to-locale: New file.
58267         * lib/uniconv/u16-strconv-to-locale.c: New file.
58268
58269         * modules/uniconv/u8-strconv-to-locale: New file.
58270         * lib/uniconv/u8-strconv-to-locale.c: New file.
58271
58272         * modules/uniconv/u32-strconv-from-locale: New file.
58273         * lib/uniconv/u32-strconv-from-locale.c: New file.
58274
58275         * modules/uniconv/u16-strconv-from-locale: New file.
58276         * lib/uniconv/u16-strconv-from-locale.c: New file.
58277
58278         * modules/uniconv/u8-strconv-from-locale: New file.
58279         * lib/uniconv/u8-strconv-from-locale.c: New file.
58280
58281         * modules/uniconv/u32-strconv-to-enc: New file.
58282         * lib/uniconv/u32-strconv-to-enc.c: New file.
58283         * modules/uniconv/u32-strconv-to-enc-tests: New file.
58284         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
58285
58286         * modules/uniconv/u16-strconv-to-enc: New file.
58287         * lib/uniconv/u16-strconv-to-enc.c: New file.
58288         * lib/uniconv/u-strconv-to-enc.h: New file.
58289         * modules/uniconv/u16-strconv-to-enc-tests: New file.
58290         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
58291
58292         * modules/uniconv/u8-strconv-to-enc: New file.
58293         * lib/uniconv/u8-strconv-to-enc.c: New file.
58294         * modules/uniconv/u8-strconv-to-enc-tests: New file.
58295         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
58296
58297         * modules/uniconv/u32-strconv-from-enc: New file.
58298         * lib/uniconv/u32-strconv-from-enc.c: New file.
58299         * modules/uniconv/u32-strconv-from-enc-tests: New file.
58300         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
58301
58302         * modules/uniconv/u16-strconv-from-enc: New file.
58303         * lib/uniconv/u16-strconv-from-enc.c: New file.
58304         * modules/uniconv/u16-strconv-from-enc-tests: New file.
58305         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
58306
58307         * modules/uniconv/u8-strconv-from-enc: New file.
58308         * lib/uniconv/u8-strconv-from-enc.c: New file.
58309         * lib/uniconv/u-strconv-from-enc.h: New file.
58310         * modules/uniconv/u8-strconv-from-enc-tests: New file.
58311         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
58312
58313         * modules/uniconv/u32-conv-from-enc: New file.
58314         * lib/uniconv/u32-conv-from-enc.c: New file.
58315         * modules/uniconv/u32-conv-from-enc-tests: New file.
58316         * tests/uniconv/test-u32-conv-from-enc.c: New file.
58317
58318         * modules/uniconv/u16-conv-from-enc: New file.
58319         * lib/uniconv/u16-conv-from-enc.c: New file.
58320         * lib/uniconv/u-conv-from-enc.h: New file.
58321         * modules/uniconv/u16-conv-from-enc-tests: New file.
58322         * tests/uniconv/test-u16-conv-from-enc.c: New file.
58323
58324         * modules/uniconv/u8-conv-from-enc: New file.
58325         * lib/uniconv/u8-conv-from-enc.c: New file.
58326         * modules/uniconv/u8-conv-from-enc-tests: New file.
58327         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58328
58329         * modules/uniconv/base: New file.
58330         * lib/uniconv.h: New file.
58331
58332 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58333
58334         * doc/gnulib-tool.texi (Initial import): Update to match current
58335         behavior with strdup module.
58336         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58337         * lib/memmem.h: Remove; all uses removed.  This is now done
58338         by <string.h>.
58339         * lib/mempcpy.h: Likewise.
58340         * lib/memrchr.h: Likewise.
58341         * lib/stpcpy.h: Likewise.
58342         * lib/stpncpy.h: Likewise.
58343         * lib/strcase.h: Likewise.
58344         * lib/strchrnul.h: Likewise.
58345         * lib/strdup.h: Likewise.
58346         * lib/strndup.h: Likewise.
58347         * lib/strnlen.h: Likewise.
58348         * lib/strpbrk.h: Likewise.
58349         * lib/strsep.h: Likewise.
58350         * lib/strstr.h: Likewise.
58351         * lib/strtok_r.h: Likewise.
58352         * lib/string_.h: New file.
58353         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58354         Rely on <string.h> instead.
58355         * lib/canon-host.c: Likewise.
58356         * lib/chdir-long.c: Likewise.
58357         * lib/concatpath.c: Likewise.
58358         * lib/exclude.c: Likewise.
58359         * lib/fchdir.c: Likewise.
58360         * lib/getaddrinfo.c: Likewise.
58361         * lib/getcwd.c: Likewise.
58362         * lib/getsubopt.c: Likewise.
58363         * lib/glob.c: Likewise.
58364         * lib/hard-locale.c: Likewise.
58365         * lib/iconvme.c: Likewise.
58366         * lib/javacomp.c: Likewise.
58367         * lib/mempcpy.c: Likewise.
58368         * lib/memrchr.c: Likewise.
58369         * lib/regex_internal.h: Likewise.
58370         * lib/stpncpy.c: Likewise.
58371         * lib/strcasecmp.c: Likewise.
58372         * lib/strchrnul.c: Likewise.
58373         * lib/strdup.c: Likewise.
58374         * lib/striconv.c: Likewise.
58375         * lib/striconveh.c: Likewise.
58376         * lib/striconveha.c: Likewise.
58377         * lib/strncasecmp.c: Likewise.
58378         * lib/strndup.c: Likewise.
58379         * lib/strnlen.c: Likewise.
58380         * lib/strsep.c: Likewise.
58381         * lib/strstr.c: Likewise.
58382         * lib/strtok_r.c: Likewise.
58383         * lib/userspec.c: Likewise.
58384         * lib/w32spawn.h: Likewise.
58385         * lib/xstrndup.c: Likewise.
58386         * lib/mountlist.c (strstr): Remove decl.
58387         * m4/string_h.m4: New file.
58388         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58389         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58390         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58391         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58392         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58393         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58394         Set REPLACE_STRCASECMP if necessary.
58395         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58396         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58397         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58398         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58399         HAVE_DECL_STRDUP if necessary.
58400         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58401         since gl_FUNC_STRNDUP does that now.
58402         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
58403         Check for decl here...
58404         (gl_PREREQ_STRNLEN): ... not here.
58405         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
58406         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
58407         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
58408         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
58409         necessary.
58410         * modules/string: New file.
58411         * modules/memmem (Files): Remove special-purpose include file.
58412         (Depends-on): Add string.
58413         (Include): Include <string.h>, not the removed file.
58414         * modules/mempcpy: Likewise.
58415         * modules/memrchr: Likewise.
58416         * modules/stpcpy: Likewise.
58417         * modules/stpncpy: Likewise.
58418         * modules/strcase: Likewise.
58419         * modules/strchrnul: Likewise.
58420         * modules/strdup: Likewise.
58421         * modules/strndup: Likewise.
58422         * modules/strnlen: Likewise.
58423         * modules/strpbrk: Likewise.
58424         * modules/strsep: Likewise.
58425         * modules/strstr: Likewise.
58426         * modules/strtok_r: Likewise.
58427         * tests/test-dirname.c: Don't include "strdup.h", since
58428         <string.h> now suffices.
58429         * tests/test-memmem.c: Don't include "memmem.h", since
58430         <string.h> now suffices.
58431
58432 2007-01-25  Bruno Haible  <bruno@clisp.org>
58433
58434         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
58435         *resultp is 0.
58436
58437         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
58438         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
58439         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
58440         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
58441
58442         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
58443         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
58444         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
58445         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
58446         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
58447         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
58448
58449 2007-01-24  Bruno Haible  <bruno@clisp.org>
58450
58451         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
58452         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
58453         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
58454         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
58455         gl_FUNC_FTS_CORE.
58456         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
58457         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
58458         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58459         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
58460         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
58461         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
58462         gl_FUNC_FCHOWNAT.
58463         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
58464         gl_FUNC_STRFTIME.
58465         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
58466         Reported by Ralf Wildenhues.
58467
58468 2007-01-24  Bruno Haible  <bruno@clisp.org>
58469
58470         Drop AC_REQUIRE calls that are redundant with the module dependencies.
58471         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
58472         gl_GETADDRINFO.
58473         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
58474         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
58475         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
58476
58477 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
58478
58479         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
58480         Don't use 'exit'; just return from 'main'.
58481         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
58482
58483         * lib/fnmatch_.h: Readjust white space and comments to match
58484         glibc, to avoid spurious diffs.
58485
58486 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58487
58488         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
58489         2004-12-01 change by Jakub Jelinek, since this code won't compile
58490         if !LIBC.  Problem reported by Bob Proulx.
58491
58492 2007-01-23  Bruno Haible  <bruno@clisp.org>
58493
58494         * lib/striconveh.c: Include c-strcaseeq.h.
58495         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
58496         * modules/striconveh (Depends-on): Add c-strcaseeq.
58497
58498 2007-01-23  Bruno Haible  <bruno@clisp.org>
58499
58500         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
58501
58502         * modules/c-strcaseeq: New file.
58503         * lib/c-strcaseeq.h: New file.
58504
58505         * modules/streq: New file.
58506         * lib/streq.h: New file.
58507
58508 2007-01-23  Bruno Haible  <bruno@clisp.org>
58509
58510         * modules/striconveha-tests: New file.
58511         * tests/test-striconveha.c: New file.
58512
58513         * lib/striconveha.h: Include <stdbool.h>.
58514         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
58515         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
58516         (mem_iconveha_notranslit): Renamed from mem_iconveha.
58517         (mem_iconveha): New function.
58518         (str_iconveha_notranslit): Renamed from str_iconveha.
58519         (str_iconveha): New function.
58520         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
58521         c-strcase.
58522
58523 2007-01-23  Bruno Haible  <bruno@clisp.org>
58524
58525         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
58526         encodings without forgiving before trying any encoding with handler.
58527         (str_iconveha): Try all encodings without forgiving before trying any
58528         encoding with handler.
58529
58530 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58531
58532         Import the following changes from libc.
58533
58534         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58535
58536         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
58537
58538         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58539
58540         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
58541         normal_bracket label.
58542
58543         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
58544
58545         [BZ #361]
58546         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
58547         to normal_bracket after fetching the next character.
58548
58549 2007-01-22  Bruno Haible  <bruno@clisp.org>
58550
58551         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
58552         argument.
58553         * lib/striconveh.c (iconv_carefully_1): New function.
58554         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
58555         argument.
58556         (str_cd_iconveh): Update.
58557         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
58558         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
58559         * tests/test-striconveh.c (MAGIC): New macro.
58560         (new_offsets): New function.
58561         (main): Test call with and without offsets.
58562
58563 2007-01-22  Bruno Haible  <bruno@clisp.org>
58564
58565         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
58566         * modules/sys_select (Makefile.am): Likewise.
58567         * modules/sys_socket (Makefile.am): Likewise.
58568         * modules/sys_time (Makefile.am): Likewise.
58569
58570 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58571
58572         * modules/gettimeofday (License): Change from GPL to LGPL, since
58573         gettimeofday is a library function.
58574
58575 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58576
58577         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
58578
58579 2007-01-21  Bruno Haible  <bruno@clisp.org>
58580
58581         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
58582
58583 2007-01-21  Bruno Haible  <bruno@clisp.org>
58584
58585         * modules/striconveha: New file.
58586         * lib/striconveha.h: New file.
58587         * lib/striconveha.c: New file.
58588         * MODULES.html.sh (Internationalization functions): Add striconveha.
58589         * lib/striconv.c (str_iconv): Optimize the case of an empty input
58590         string.
58591         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
58592
58593 2007-01-21  Bruno Haible  <bruno@clisp.org>
58594
58595         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
58596         * lib/striconveh.c (str_iconveh): Likewise.
58597
58598 2007-01-21  Bruno Haible  <bruno@clisp.org>
58599
58600         * lib/striconveh.h (mem_iconveh): New declaration.
58601         * lib/striconveh.c (mem_iconveh): New function.
58602         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
58603
58604 2007-01-21  Bruno Haible  <bruno@clisp.org>
58605
58606         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
58607
58608         * lib/striconveh.h (mem_cd_iconveh): Change specification.
58609         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
58610         original result buffer.
58611         (str_cd_iconveh): Update.
58612         * tests/test-striconveh.c (main): Update.
58613
58614         * lib/striconv.h (mem_cd_iconv): Change specification.
58615         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
58616         result buffer.
58617         (str_cd_iconv): Update.
58618         * tests/test-striconv.c (main): Update.
58619
58620 2007-01-21  Bruno Haible  <bruno@clisp.org>
58621
58622         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
58623
58624 2007-01-20  Jim Meyering  <jim@meyering.net>
58625
58626         * lib/userspec.c (parse_with_separator): If a user or group string
58627         starts with "+", skip the corresponding name-to-ID look-up, since
58628         such a look-up must fail: user and group names may not include "+".
58629
58630 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58631
58632         * lib/poll.c: Include sys/time.h and time.h unconditionally,
58633         since we now assume the sys_time module.
58634         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
58635         check for sys/time.h; no longer needed.
58636         * modules/poll (Depends-on): Depend on sys_time.
58637
58638 2007-01-18  Bruno Haible  <bruno@clisp.org>
58639
58640         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
58641         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58642
58643         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
58644         gettimeofday.
58645
58646         * tests/test-gettimeofday.c: Include <time.h>.
58647         (dummy): Remove variable.
58648
58649         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
58650         gl_HEADER_SYS_TIME_H.
58651         (gl_HEADER_SYS_TIME_H): New macro.
58652
58653         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
58654         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58655         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
58656         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
58657         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58658         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
58659         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
58660         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58661         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
58662         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
58663         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58664
58665         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
58666         last change; it caused a compilation error when cross-compiling to
58667         Cygwin.
58668
58669 2007-01-18  Jim Meyering  <jim@meyering.net>
58670
58671         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
58672         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
58673         than the race-prone "test -d sys || mkdir sys".
58674         (configure.ac): Use AC_PROG_MKDIR_P.
58675         * modules/sys_select: Likewise.
58676         * modules/sys_socket: Likewise.
58677         * modules/sys_time: Likewise.
58678
58679 2007-01-18  Eric Blake  <ebb9@byu.net>
58680
58681         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
58682         replace gettimeofday.
58683         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
58684         name, to avoid infinite recursion.
58685
58686 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
58687
58688         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
58689         module sys_time.
58690         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
58691         assume timespec.h defines struct timeval.
58692         * lib/settime.c: Likewise.
58693         * lib/utimens.c: Likewise.
58694         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
58695         since we now assume the gettimeofday module.
58696         * lib/tempname.c (__gen_tempname): Likewise.
58697         * lib/gettimeofday.h: Remove.
58698         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
58699         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
58700         Include <time.h>, for 'time()'.
58701         (localtime_buffer_addr): Also use this workaround if
58702         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
58703         to simplify the uses.  All uses changed.
58704         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
58705         that #undef is inside {}, and 'const' follows type name consistently.
58706         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
58707         (gettimeofday): Do not use the maximum possible value for
58708         tv->tv_usec, since that might break usages other than ls.c.
58709         Instead, we'll leave ls.c alone.  This undoes today's patch
58710         by Bruno.  Add a compile-time warning for 1s-clock resolution;
58711         we've never observed the problem but might as well keep the
58712         canary.
58713         * lib/nanosleep.c: Include timespec.h first, for interface check.
58714         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
58715         now assume the sys_time module.
58716         * lib/tempname.c: Likewise.
58717         * lib/timespec.h: Likewise.
58718         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
58719         needed.
58720         * lib/strftime.c: Likewise.
58721         * lib/timespec.h: Likewise.
58722         * lib/posixtm.c: Include posixtm.h first, for interface check.
58723         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
58724         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
58725         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
58726         * lib/sys_time_.h: New file.
58727         * lib/timespec.h (struct timespec): Use long int, not long.
58728         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58729         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
58730         Remove obsolescent call to AC_HEADER_TIME.
58731         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58732         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58733         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58734         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
58735         Likewise.
58736         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
58737         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
58738         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
58739         into the sys_time module.  Check for gettimeofday just once.
58740         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
58741         for gettimeofday signature to just check the signature.  Merely
58742         compile it, since linking doesn't test signature.  Improve test for
58743         whether gettimeofday.o is actually needed.
58744         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
58745         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
58746         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
58747         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58748         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
58749         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
58750         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
58751         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
58752         than worrying about sys/time.h.
58753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58754         Don't bother worrying about TIME_WITH_SYS_TIME.
58755         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
58756         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
58757         * m4/sys_time_h.m4: New file.
58758         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
58759         Don't include sys/time.h.  Return from main rather than exiting.
58760         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
58761         all uses changed.
58762         * modules/gethrxtime (Depends-on): Add sys_time.
58763         * modules/gettime (Depends-on): Likewise.
58764         * modules/gettimeofday (Depends-on): Likewise.
58765         * modules/nanosleep (Depends-on): Likewise.
58766         * modules/settime (Depends-on): Likewise.
58767         * modules/tempname (Depends-on): Likewise.
58768         * modules/utimens (Depends-on): Likewise.
58769         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
58770         (Include): Change back to <sys/time.h>.
58771         (Maintainer): Add self.
58772         * modules/sys_time: New file.
58773         * modules/tempname (Depends-on): Add gettimeofday.
58774         * tests/test-gettimeofday.c: Include <sys/time.h>
58775         rather than gettimeofday.h.
58776
58777 2007-01-17  Bruno Haible  <bruno@clisp.org>
58778
58779         * gnulib-tool (func_get_license): Revert last patch. Instead, let
58780         the license default to GPL.
58781         (func_create_testdir): Don't complain if a module is LGPL and its
58782         tests module depends on GPLed modules.
58783
58784 2007-01-17  Bruno Haible  <bruno@clisp.org>
58785
58786         * lib/gettimeofday.c (gettimeofday): Add code for the case
58787         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
58788         maximum possible value for tv->tv_usec, rather than the minimum one.
58789
58790 2005-10-08  Martin Lambers  <marlam@marlam.de>
58791 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58792 2007-01-16  Bruno Haible  <bruno@clisp.org>
58793
58794         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
58795         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
58796         gl_FUNC_GETTIMEOFDAY.
58797         (Include): Add gettimeofday.h.
58798         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
58799         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
58800         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
58801         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
58802         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
58803         * lib/gettimeofday.h: New file.
58804         * lib/gettimeofday.c: Include <sys/timeb.h>.
58805         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
58806         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58807         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
58808         fall back on time().
58809
58810         * tests/test-gettimeofday.c: New file.
58811         * modules/gettimeofday-tests: New file.
58812
58813 2007-01-16  Eric Blake  <ebb9@byu.net>
58814
58815         * modules/fnmatch (Depends-on): Depend on wchar.
58816         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
58817         * m4/fnmatch.m4: Likewise.
58818         * modules/mbchar (Makefile.am): Assume <wchar.h>.
58819         * m4/mbchar.m4: Likewise.
58820         * modules/mbswidth (Depends-on): Depend on wchar.
58821         * lib/mbswidth.c: Assume <wchar.h>.
58822         * m4/mbswidth.m4: Likewise.
58823         * modules/quotearg (Depends-on): Depend on wchar.
58824         * lib/quotearg.c: Assume <wchar.h>.
58825         * m4/quotearg.m4: Likewise.
58826         * modules/regex (Depends-on): Depend on wchar.
58827         * lib/regex_internal.h: Assume <wchar.h>.
58828         * m4/regex.m4: Likewise.
58829         * modules/stdint (Depends-on): Depend on wchar.
58830         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
58831         * m4/stdint.m4: Likewise.
58832         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
58833         * modules/strftime (Depends-on): Depend on wchar.
58834         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
58835         * modules/strtol (Depends-on): Depend on wchar.
58836         * lib/strtol.c: Assume <wchar.h>.
58837         * modules/wcwidth (Depends-on): Depend on wchar.
58838         * lib/wcwidth.h: Assume <wchar.h>.
58839         * m4/wcwidth.m4: Likewise.
58840
58841 2007-01-16  Bruno Haible  <bruno@clisp.org>
58842
58843         * modules/csharpexec-script: New, created from...
58844         * modules/csharpexec: ... this.
58845
58846 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58847
58848         * modules/javaexec-script: New, created from...
58849         * modules/javaexec: ... this.
58850
58851 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58852
58853         * modules/poll (Dependencies): Add sys_select.
58854
58855 2007-01-15  Jim Meyering  <jim@meyering.net>
58856
58857         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
58858         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
58859         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
58860         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
58861
58862 2007-01-15  Bruno Haible  <bruno@clisp.org>
58863
58864         * modules/striconveh: New file.
58865         * lib/striconveh.h: New file.
58866         * lib/striconveh.c: New file.
58867         * MODULES.html.sh (Internationalization functions): Add striconveh.
58868
58869         * modules/striconveh-tests: New file.
58870         * tests/test-striconveh.c: New file.
58871
58872 2007-01-15  Bruno Haible  <bruno@clisp.org>
58873
58874         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
58875         not from GNU libiconv or GNU libc.
58876
58877 2007-01-15  Bruno Haible  <bruno@clisp.org>
58878
58879         * doc/gnulib-intro.texi (Copyright): Explain the different license
58880         terms for module descriptions, autoconf macros, tests, documentation.
58881
58882 2007-01-14  Bruno Haible  <bruno@clisp.org>
58883
58884         * modules/striconv-tests: New file.
58885         * tests/test-striconv.c: New file.
58886
58887 2007-01-14  Bruno Haible  <bruno@clisp.org>
58888
58889         * modules/iconv-tests: New file.
58890         * tests/test-iconv.c: New file.
58891
58892 2007-01-14  Bruno Haible  <bruno@clisp.org>
58893
58894         * gnulib-tool (func_get_license): For test modules, use the license of
58895         the main module.
58896
58897 2007-01-14  Bruno Haible  <bruno@clisp.org>
58898
58899         * modules/iconv (Include): Clarify that <iconv.h> can only be included
58900         if iconv is found to exist.
58901
58902 2007-01-14  Bruno Haible  <bruno@clisp.org>
58903
58904         * modules/c-ctype-tests: New file.
58905         * tests/test-c-ctype.c: New file.
58906
58907 2007-01-14  Bruno Haible  <bruno@clisp.org>
58908
58909         * modules/binary-io-tests: New file.
58910         * tests/test-binary-io.sh: New file.
58911         * tests/test-binary-io.c: New file.
58912
58913 2007-01-14  Bruno Haible  <bruno@clisp.org>
58914
58915         * modules/array-oset-tests: New file.
58916         * tests/test-array_oset.c: New file.
58917
58918 2007-01-14  Bruno Haible  <bruno@clisp.org>
58919
58920         * modules/array-list-tests: New file.
58921         * tests/test-array_list.c: New file.
58922
58923 2007-01-14  Bruno Haible  <bruno@clisp.org>
58924
58925         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
58926         and make.
58927         Reported by Simon Josefsson in
58928         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
58929
58930 2007-01-14  Bruno Haible  <bruno@clisp.org>
58931
58932         * modules/allocsa-tests: New file.
58933         * tests/test-allocsa.c: New file.
58934
58935 2007-01-14  Bruno Haible  <bruno@clisp.org>
58936
58937         * modules/fchdir (Depends-on): Add absolute-header.
58938         * modules/unistd (Depends-on): Likewise.
58939
58940 2006-12-30  Bruno Haible  <bruno@clisp.org>
58941
58942         * modules/fchdir: New file.
58943         * modules/unistd (Files): Add lib/unistd_.h.
58944         (Makefile.am): Generate unistd.h from unistd_.h.
58945         * lib/fchdir.c: New file.
58946         * lib/dirent_.h: New file.
58947         * lib/unistd_.h: New file.
58948         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
58949         * m4/fchdir.m4: New file.
58950         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
58951         (gl_HEADER_UNISTD): Invoke it.
58952         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
58953         function.
58954         * lib/backupfile.c (opendir, closedir): Undefine.
58955         * lib/chown.c (open, close): Undefine.
58956         * lib/clean-temp.c (open, close): Undefine.
58957         * lib/copy-file.c (open, close): Undefine.
58958         * lib/execute.c (open, close): Undefine.
58959         * lib/fsusage.c (open, close): Undefine.
58960         * lib/gc-gnulib.c (open, close): Undefine.
58961         * lib/getcwd.c (opendir, closedir): Undefine.
58962         * lib/glob.c (opendir, closedir): Undefine.
58963         * lib/javacomp.c (open, close): Undefine.
58964         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
58965         * lib/openat-proc.c (open, close): Undefine.
58966         * lib/pagealign_alloc.c (open, close): Undefine.
58967         * lib/pipe.c (open, close): Undefine.
58968         * lib/progreloc.c (open, close): Undefine.
58969         * lib/savedir.c (opendir, closedir): Undefine.
58970         * lib/utime.c (open, close): Undefine.
58971         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
58972
58973 2007-01-10  Bruno Haible  <bruno@clisp.org>
58974
58975         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
58976
58977 2007-01-12  Eric Blake  <ebb9@byu.net>
58978
58979         Provide a robust <wchar.h>.  Further simplifications are now
58980         possible in other modules, but not included here.
58981         * modules/wchar: New module.
58982         * m4/wchar.m4: New file.
58983         * lib/wchar_.h: Likewise.
58984         * modules/mbchar (Depends-on): Depend on wchar, as the first use
58985         of the new module.
58986         * MODULES.html.sh (Extended multibyte and wide character utilities):
58987         New section.
58988
58989 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
58990
58991         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
58992         to a reasonable default for memory allocation.
58993         (xreadlink): Don't allocate a huge buffer, to work around a buggy
58994         file system that reports garbage st_size values for symlinks.
58995         Problem reported by Liyang Hu.
58996
58997 2007-01-11  Simon Josefsson  <simon@josefsson.org>
58998
58999         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
59000         Emacs .#* auto-save files).
59001
59002 2007-01-11  Bruno Haible  <bruno@clisp.org>
59003
59004         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
59005         directory.
59006
59007 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59008
59009         Use @...@ consistently in lib/wctype_.h.
59010         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
59011         on it being set to 1 or 0.
59012         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
59013         go back to AC_SUBSTing it.
59014         * modules/wctype (Makefile.am): Undo previous change.
59015
59016 2007-01-10  Eric Blake  <ebb9@byu.net>
59017
59018         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59019         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59020         * modules/wctype (Makefile.am): Likewise.
59021         Reported by Chris McGuire.
59022
59023 2007-01-10  Jim Meyering  <jim@meyering.net>
59024
59025         fts.c: a small readability/maintainability improvement
59026         * lib/fts.c (fts_read): Make this code slightly more readable and
59027         maintainable by hoisting the "sp->fts_cur = p" assignments to
59028         immediately follow the statements that set P.  Derived from
59029         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59030
59031 2007-01-10  Eric Blake  <ebb9@byu.net>
59032
59033         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59034         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59035         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59036         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59037         Reported by Chris McGuire.
59038
59039 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59040
59041         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59042         in sed script.
59043
59044 2007-01-09  Bruno Haible  <bruno@clisp.org>
59045
59046         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59047         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59048         variables.
59049         (func_module): Use them.
59050
59051 2007-01-09  Bruno Haible  <bruno@clisp.org>
59052
59053         * modules/unistr/base: New file.
59054         * lib/unistr.h: New file.
59055
59056         * modules/unistr/u8-to-u16: New file.
59057         * lib/unistr/u8-to-u16.c: New file.
59058
59059         * modules/unistr/u8-to-u32: New file.
59060         * lib/unistr/u8-to-u32.c: New file.
59061
59062         * modules/unistr/u16-to-u8: New file.
59063         * lib/unistr/u16-to-u8.c: New file.
59064
59065         * modules/unistr/u16-to-u32: New file.
59066         * lib/unistr/u16-to-u32.c: New file.
59067
59068         * modules/unistr/u32-to-u8: New file.
59069         * lib/unistr/u32-to-u8.c: New file.
59070
59071         * modules/unistr/u32-to-u16: New file.
59072         * lib/unistr/u32-to-u16.c: New file.
59073
59074         * modules/unistr/u8-check: New file.
59075         * modules/unistr/u16-check: New file.
59076         * modules/unistr/u32-check: New file.
59077         * lib/unistr/u8-check.c: New file.
59078         * lib/unistr/u16-check.c: New file.
59079         * lib/unistr/u32-check.c: New file.
59080
59081         * modules/unistr/u8-chr: New file.
59082         * modules/unistr/u16-chr: New file.
59083         * modules/unistr/u32-chr: New file.
59084         * lib/unistr/u8-chr.c: New file.
59085         * lib/unistr/u16-chr.c: New file.
59086         * lib/unistr/u32-chr.c: New file.
59087
59088         * modules/unistr/u8-cmp: New file.
59089         * modules/unistr/u16-cmp: New file.
59090         * modules/unistr/u32-cmp: New file.
59091         * lib/unistr/u8-cmp.c: New file.
59092         * lib/unistr/u16-cmp.c: New file.
59093         * lib/unistr/u32-cmp.c: New file.
59094
59095         * modules/unistr/u8-cpy: New file.
59096         * modules/unistr/u16-cpy: New file.
59097         * modules/unistr/u32-cpy: New file.
59098         * lib/unistr/u8-cpy.c: New file.
59099         * lib/unistr/u16-cpy.c: New file.
59100         * lib/unistr/u32-cpy.c: New file.
59101         * lib/unistr/u-cpy.h: New file.
59102
59103         * modules/unistr/u8-cpy-alloc: New file.
59104         * modules/unistr/u16-cpy-alloc: New file.
59105         * modules/unistr/u32-cpy-alloc: New file.
59106         * lib/unistr/u8-cpy-alloc.c: New file.
59107         * lib/unistr/u16-cpy-alloc.c: New file.
59108         * lib/unistr/u32-cpy-alloc.c: New file.
59109         * lib/unistr/u-cpy-alloc.h: New file.
59110
59111         * modules/unistr/u8-endswith: New file.
59112         * modules/unistr/u16-endswith: New file.
59113         * modules/unistr/u32-endswith: New file.
59114         * lib/unistr/u8-endswith.c: New file.
59115         * lib/unistr/u16-endswith.c: New file.
59116         * lib/unistr/u32-endswith.c: New file.
59117         * lib/unistr/u-endswith.h: New file.
59118
59119         * modules/unistr/u8-mblen: New file.
59120         * modules/unistr/u16-mblen: New file.
59121         * modules/unistr/u32-mblen: New file.
59122         * lib/unistr/u8-mblen.c: New file.
59123         * lib/unistr/u16-mblen.c: New file.
59124         * lib/unistr/u32-mblen.c: New file.
59125
59126         * modules/unistr/u8-mbtouc: New file.
59127         * modules/unistr/u16-mbtouc: New file.
59128         * modules/unistr/u32-mbtouc: New file.
59129         * lib/unistr/u8-mbtouc.c: New file.
59130         * lib/unistr/u16-mbtouc.c: New file.
59131         * lib/unistr/u32-mbtouc.c: New file.
59132
59133         * modules/unistr/u8-mbtouc-safe: New file.
59134         * modules/unistr/u16-mbtouc-safe: New file.
59135         * modules/unistr/u32-mbtouc-safe: New file.
59136         * lib/unistr/u8-mbtouc-safe.c: New file.
59137         * lib/unistr/u16-mbtouc-safe.c: New file.
59138         * lib/unistr/u32-mbtouc-safe.c: New file.
59139
59140         * modules/unistr/u8-move: New file.
59141         * modules/unistr/u16-move: New file.
59142         * modules/unistr/u32-move: New file.
59143         * lib/unistr/u8-move.c: New file.
59144         * lib/unistr/u16-move.c: New file.
59145         * lib/unistr/u32-move.c: New file.
59146         * lib/unistr/u-move.h: New file.
59147
59148         * modules/unistr/u8-next: New file.
59149         * modules/unistr/u16-next: New file.
59150         * modules/unistr/u32-next: New file.
59151         * lib/unistr/u8-next.c: New file.
59152         * lib/unistr/u16-next.c: New file.
59153         * lib/unistr/u32-next.c: New file.
59154
59155         * modules/unistr/u8-prev: New file.
59156         * modules/unistr/u16-prev: New file.
59157         * modules/unistr/u32-prev: New file.
59158         * lib/unistr/u8-prev.c: New file.
59159         * lib/unistr/u16-prev.c: New file.
59160         * lib/unistr/u32-prev.c: New file.
59161
59162         * modules/unistr/u8-set: New file.
59163         * modules/unistr/u16-set: New file.
59164         * modules/unistr/u32-set: New file.
59165         * lib/unistr/u8-set.c: New file.
59166         * lib/unistr/u16-set.c: New file.
59167         * lib/unistr/u32-set.c: New file.
59168         * lib/unistr/u-set.h: New file.
59169
59170         * modules/unistr/u8-startswith: New file.
59171         * modules/unistr/u16-startswith: New file.
59172         * modules/unistr/u32-startswith: New file.
59173         * lib/unistr/u8-startswith.c: New file.
59174         * lib/unistr/u16-startswith.c: New file.
59175         * lib/unistr/u32-startswith.c: New file.
59176         * lib/unistr/u-startswith.h: New file.
59177
59178         * modules/unistr/u8-stpcpy: New file.
59179         * modules/unistr/u16-stpcpy: New file.
59180         * modules/unistr/u32-stpcpy: New file.
59181         * lib/unistr/u8-stpcpy.c: New file.
59182         * lib/unistr/u16-stpcpy.c: New file.
59183         * lib/unistr/u32-stpcpy.c: New file.
59184         * lib/unistr/u-stpcpy.h: New file.
59185
59186         * modules/unistr/u8-stpncpy: New file.
59187         * modules/unistr/u16-stpncpy: New file.
59188         * modules/unistr/u32-stpncpy: New file.
59189         * lib/unistr/u8-stpncpy.c: New file.
59190         * lib/unistr/u16-stpncpy.c: New file.
59191         * lib/unistr/u32-stpncpy.c: New file.
59192         * lib/unistr/u-stpncpy.h: New file.
59193
59194         * modules/unistr/u8-strcat: New file.
59195         * modules/unistr/u16-strcat: New file.
59196         * modules/unistr/u32-strcat: New file.
59197         * lib/unistr/u8-strcat.c: New file.
59198         * lib/unistr/u16-strcat.c: New file.
59199         * lib/unistr/u32-strcat.c: New file.
59200         * lib/unistr/u-strcat.h: New file.
59201
59202         * modules/unistr/u8-strchr: New file.
59203         * modules/unistr/u16-strchr: New file.
59204         * modules/unistr/u32-strchr: New file.
59205         * lib/unistr/u8-strchr.c: New file.
59206         * lib/unistr/u16-strchr.c: New file.
59207         * lib/unistr/u32-strchr.c: New file.
59208
59209         * modules/unistr/u8-strcmp: New file.
59210         * modules/unistr/u16-strcmp: New file.
59211         * modules/unistr/u32-strcmp: New file.
59212         * lib/unistr/u8-strcmp.c: New file.
59213         * lib/unistr/u16-strcmp.c: New file.
59214         * lib/unistr/u32-strcmp.c: New file.
59215
59216         * modules/unistr/u8-strcpy: New file.
59217         * modules/unistr/u16-strcpy: New file.
59218         * modules/unistr/u32-strcpy: New file.
59219         * lib/unistr/u8-strcpy.c: New file.
59220         * lib/unistr/u16-strcpy.c: New file.
59221         * lib/unistr/u32-strcpy.c: New file.
59222         * lib/unistr/u-strcpy.h: New file.
59223
59224         * modules/unistr/u8-strcspn: New file.
59225         * modules/unistr/u16-strcspn: New file.
59226         * modules/unistr/u32-strcspn: New file.
59227         * lib/unistr/u8-strcspn.c: New file.
59228         * lib/unistr/u16-strcspn.c: New file.
59229         * lib/unistr/u32-strcspn.c: New file.
59230         * lib/unistr/u-strcspn.h: New file.
59231
59232         * modules/unistr/u8-strdup: New file.
59233         * modules/unistr/u16-strdup: New file.
59234         * modules/unistr/u32-strdup: New file.
59235         * lib/unistr/u8-strdup.c: New file.
59236         * lib/unistr/u16-strdup.c: New file.
59237         * lib/unistr/u32-strdup.c: New file.
59238         * lib/unistr/u-strdup.h: New file.
59239
59240         * modules/unistr/u8-strlen: New file.
59241         * modules/unistr/u16-strlen: New file.
59242         * modules/unistr/u32-strlen: New file.
59243         * lib/unistr/u8-strlen.c: New file.
59244         * lib/unistr/u16-strlen.c: New file.
59245         * lib/unistr/u32-strlen.c: New file.
59246         * lib/unistr/u-strlen.h: New file.
59247
59248         * modules/unistr/u8-strmblen: New file.
59249         * modules/unistr/u16-strmblen: New file.
59250         * modules/unistr/u32-strmblen: New file.
59251         * lib/unistr/u8-strmblen.c: New file.
59252         * lib/unistr/u16-strmblen.c: New file.
59253         * lib/unistr/u32-strmblen.c: New file.
59254
59255         * modules/unistr/u8-strmbtouc: New file.
59256         * modules/unistr/u16-strmbtouc: New file.
59257         * modules/unistr/u32-strmbtouc: New file.
59258         * lib/unistr/u8-strmbtouc.c: New file.
59259         * lib/unistr/u16-strmbtouc.c: New file.
59260         * lib/unistr/u32-strmbtouc.c: New file.
59261
59262         * modules/unistr/u8-strncat: New file.
59263         * modules/unistr/u16-strncat: New file.
59264         * modules/unistr/u32-strncat: New file.
59265         * lib/unistr/u8-strncat.c: New file.
59266         * lib/unistr/u16-strncat.c: New file.
59267         * lib/unistr/u32-strncat.c: New file.
59268         * lib/unistr/u-strncat.h: New file.
59269
59270         * modules/unistr/u8-strncmp: New file.
59271         * modules/unistr/u16-strncmp: New file.
59272         * modules/unistr/u32-strncmp: New file.
59273         * lib/unistr/u8-strncmp.c: New file.
59274         * lib/unistr/u16-strncmp.c: New file.
59275         * lib/unistr/u32-strncmp.c: New file.
59276
59277         * modules/unistr/u8-strncpy: New file.
59278         * modules/unistr/u16-strncpy: New file.
59279         * modules/unistr/u32-strncpy: New file.
59280         * lib/unistr/u8-strncpy.c: New file.
59281         * lib/unistr/u16-strncpy.c: New file.
59282         * lib/unistr/u32-strncpy.c: New file.
59283         * lib/unistr/u-strncpy.h: New file.
59284
59285         * modules/unistr/u8-strnlen: New file.
59286         * modules/unistr/u16-strnlen: New file.
59287         * modules/unistr/u32-strnlen: New file.
59288         * lib/unistr/u8-strnlen.c: New file.
59289         * lib/unistr/u16-strnlen.c: New file.
59290         * lib/unistr/u32-strnlen.c: New file.
59291         * lib/unistr/u-strnlen.h: New file.
59292
59293         * modules/unistr/u8-strpbrk: New file.
59294         * modules/unistr/u16-strpbrk: New file.
59295         * modules/unistr/u32-strpbrk: New file.
59296         * lib/unistr/u8-strpbrk.c: New file.
59297         * lib/unistr/u16-strpbrk.c: New file.
59298         * lib/unistr/u32-strpbrk.c: New file.
59299         * lib/unistr/u-strpbrk.h: New file.
59300
59301         * modules/unistr/u8-strrchr: New file.
59302         * modules/unistr/u16-strrchr: New file.
59303         * modules/unistr/u32-strrchr: New file.
59304         * lib/unistr/u8-strrchr.c: New file.
59305         * lib/unistr/u16-strrchr.c: New file.
59306         * lib/unistr/u32-strrchr.c: New file.
59307
59308         * modules/unistr/u8-strspn: New file.
59309         * modules/unistr/u16-strspn: New file.
59310         * modules/unistr/u32-strspn: New file.
59311         * lib/unistr/u8-strspn.c: New file.
59312         * lib/unistr/u16-strspn.c: New file.
59313         * lib/unistr/u32-strspn.c: New file.
59314         * lib/unistr/u-strspn.h: New file.
59315
59316         * modules/unistr/u8-strstr: New file.
59317         * modules/unistr/u16-strstr: New file.
59318         * modules/unistr/u32-strstr: New file.
59319         * lib/unistr/u8-strstr.c: New file.
59320         * lib/unistr/u16-strstr.c: New file.
59321         * lib/unistr/u32-strstr.c: New file.
59322         * lib/unistr/u-strstr.h: New file.
59323
59324         * modules/unistr/u8-strtok: New file.
59325         * modules/unistr/u16-strtok: New file.
59326         * modules/unistr/u32-strtok: New file.
59327         * lib/unistr/u8-strtok.c: New file.
59328         * lib/unistr/u16-strtok.c: New file.
59329         * lib/unistr/u32-strtok.c: New file.
59330         * lib/unistr/u-strtok.h: New file.
59331
59332         * modules/unistr/u8-uctomb: New file.
59333         * modules/unistr/u16-uctomb: New file.
59334         * modules/unistr/u32-uctomb: New file.
59335         * lib/unistr/u8-uctomb.c: New file.
59336         * lib/unistr/u16-uctomb.c: New file.
59337         * lib/unistr/u32-uctomb.c: New file.
59338
59339         * MODULES.html.sh (Unicode string functions): Add the new modules.
59340
59341 2007-01-08  Bruno Haible  <bruno@clisp.org>
59342
59343         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59344         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59345         subdirectories.
59346
59347 2007-01-08  Karl Berry  <karl@gnu.org>
59348
59349         * doc/error.texi: mention that main() fns must set program_name
59350         when progname is used.
59351
59352 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59353
59354         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59355         WCTYPE_H is empty, for the benefit of builds from non-distclean
59356         directories.  Problem reported by Eric Blake in
59357         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59358
59359 2007-01-08  Bruno Haible  <bruno@clisp.org>
59360
59361         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59362         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59363         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59364         PROVIDE_CANONICALIZE_FILENAME_MODE.
59365         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59366
59367 2007-01-08  Bruno Haible  <bruno@clisp.org>
59368
59369         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59370         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59371         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59372         * lib/fts.c: Likewise.
59373         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59374
59375 2006-12-25  Bruno Haible  <bruno@clisp.org>
59376
59377         * modules/utf8-ucs4-safe: New file.
59378         * lib/utf8-ucs4-safe.h: New file.
59379         * lib/unistr/utf8-ucs4-safe.c: New file.
59380
59381         * modules/utf16-ucs4-safe: New file.
59382         * lib/utf16-ucs4-safe.h: New file.
59383         * lib/unistr/utf16-ucs4-safe.c: New file.
59384
59385         * MODULES.html.sh (Unicode string functions): Add the new modules.
59386
59387 2007-01-08  Bruno Haible  <bruno@clisp.org>
59388
59389         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59390         (Depends-on): Add unitypes.
59391         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59392         (u8_mbtouc_aux): Move out to separate file.
59393         (u8_mbtouc): Use ucs4_t, uint8_t types.
59394         * lib/unistr/utf8-ucs4.c: New file.
59395
59396         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59397         (Depends-on): Add unitypes.
59398         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59399         (u16_mbtouc_aux): Move out to separate file.
59400         (u16_mbtouc): Use ucs4_t, uint16_t types.
59401         * lib/unistr/utf16-ucs4.c: New file.
59402
59403         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
59404         (Depends-on): Add unitypes.
59405         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
59406         (u8_uctomb_aux): Move out to separate file.
59407         (u8_uctomb): Use ucs4_t, uint8_t types.
59408         * lib/unistr/ucs4-utf8.c: New file.
59409
59410         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
59411         (Depends-on): Add unitypes.
59412         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
59413         (u16_uctomb_aux): Move out to separate file.
59414         (u16_uctomb): Use ucs4_t, uint16_t types.
59415         * lib/unistr/ucs4-utf16.c: New file.
59416
59417 2006-12-25  Bruno Haible  <bruno@clisp.org>
59418
59419         * modules/unitypes: New file.
59420         * lib/unitypes.h: New file.
59421         * MODULES.html.sh (func_all_modules): New section "Unicode string
59422         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
59423         this section. Add unitypes.
59424
59425 2007-01-08  Bruno Haible  <bruno@clisp.org>
59426
59427         Avoid variable names that conflict with those from libtool.
59428         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
59429         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
59430         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
59431         library_names_spec to acl_library_names_spec, hardcode_* to
59432         acl_hardcode_*.
59433         Reported by Ralf Wildenhues.
59434
59435 2007-01-08  Bruno Haible  <bruno@clisp.org>
59436
59437         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
59438         definition.
59439         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
59440         definition.
59441         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
59442         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
59443         definition.
59444         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
59445         definition.
59446         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
59447         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
59448         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
59449         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
59450         definition.
59451         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
59452         definition.
59453         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
59454         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
59455         GC_USE_<algorithm>.
59456         * lib/gc-libgcrypt.c: Likewise.
59457         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
59458         * modules/gc-arctwo (configure.ac): Likewise.
59459         * modules/gc-des (configure.ac): Likewise.
59460         * modules/gc-hmac-md5 (configure.ac): Likewise.
59461         * modules/gc-hmac-sha1 (configure.ac): Likewise.
59462         * modules/gc-md2 (configure.ac): Likewise.
59463         * modules/gc-md4 (configure.ac): Likewise.
59464         * modules/gc-md5 (configure.ac): Likewise.
59465         * modules/gc-random (configure.ac): Likewise.
59466         * modules/gc-rijndael (configure.ac): Likewise.
59467         * modules/gc-sha1 (configure.ac): Likewise.
59468
59469 2007-01-08  Bruno Haible  <bruno@clisp.org>
59470
59471         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
59472         macro definition.
59473         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
59474         definition.
59475         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
59476         definition.
59477         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
59478         * modules/fcntl-safer (configure.ac): Likewise.
59479         * modules/fopen-safer (configure.ac): Likewise.
59480         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
59481         GNULIB_FWRITEERROR macro definition.
59482
59483 2007-01-08  Bruno Haible  <bruno@clisp.org>
59484
59485         * m4/gnulib-common.m4: New file.
59486         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
59487         (func_get_filelist): Add m4/gnulib-common.m4.
59488
59489 2007-01-08  Bruno Haible  <bruno@clisp.org>
59490
59491         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
59492         command.
59493
59494 2007-01-08  Jim Meyering  <jim@meyering.net>
59495
59496         Use a more robust test for a "can't happen" condition.
59497         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
59498         narrowed the st_size value.  Presuming the "can't happen" condition
59499         is true, that narrowing could conceivably convert an invalid st_size
59500         value into a valid one.  Instead, use a change based on Matthew
59501         Woehlke's original patch.
59502
59503         Slight readability improvement: use an assert-like macro
59504         in place of literal "abort ()" uses.
59505         * lib/fts.c (fts_assert): Define.
59506         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
59507         Use this macro instead of a bare 'abort'.
59508
59509 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
59510
59511         Don't worry about using IRIX 5.3's wctype.h broken definitions;
59512         simply work around them.
59513         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
59514         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
59515         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
59516         declaring.
59517         Don't bother to define as macros, since the standard doesn't require it.
59518         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
59519         longer worry about IRIX 5.3.
59520         (HAVE_WCTYPE_CTMP_BUG): Remove.
59521
59522 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59523
59524         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
59525         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
59526         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59527         Problems reported by Georg Schwarz for IRIX 5.3.
59528
59529         * gnulib-tool (autoconf_minversion): Take the maximum version number
59530         found, not the minimum.  Problem reported by James Youngman.
59531
59532 2007-01-03  Karl Berry  <karl@gnu.org>
59533
59534         * doc/error.texi: new file, explaining interaction with progname.
59535         * doc/gnulib.texi: include it.  Update copyright.
59536
59537 2007-01-03  Simon Josefsson  <simon@josefsson.org>
59538
59539         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
59540         AC_CANONICAL_HOST, to improve autobuild outputs.
59541
59542 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
59543             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59544
59545         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
59546         sockets, server sockets, and other file descriptors.  Count errors
59547         to compute the return value.  Reorder the code a bit to be easier
59548         to follow.  Don't set event bits that were not requested (except
59549         POLLERR and POLLHUP).
59550
59551 2007-01-01  Bruno Haible  <bruno@clisp.org>
59552
59553         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
59554
59555 2007-01-03  Jim Meyering  <jim@meyering.net>
59556
59557         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
59558
59559 2007-01-02  Bruno Haible  <bruno@clisp.org>
59560
59561         * modules/settime (Include): Require timespec.h.
59562         * modules/nanosleep (Include): Likewise.
59563
59564 2007-01-01  Bruno Haible  <bruno@clisp.org>
59565
59566         * gnulib-tool (func_emit_copyright_notice): Bump year.
59567         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
59568
59569 2007-01-01  Bruno Haible  <bruno@clisp.org>
59570
59571         Improve support for OpenBSD.
59572         * build-aux/config.rpath (libname_spec): Export.
59573         (library_names_spec): New variable. Export.
59574         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
59575         library_names_spec from the config.rpath output. Locate shared library
59576         through the name pattern in library_names_spec.
59577
59578 2007-01-01  Eric Blake  <ebb9@byu.net>
59579
59580         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
59581
59582 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
59583
59584         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
59585         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
59586         assume the C locale, and avoid an "eval" that could cause trouble.
59587         Problem with SORT reported by Bob Proulx.
59588
59589         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
59590         Define.  Trivial patch from Henning Nielsen Lund, originally
59591         sent to bug-grep@gnu.org today.
59592
59593 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59594
59595         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
59596         struct stat.  Problem reported by Henning Nielsen Lund.
59597         * lib/acl.c: Include acl.h first, to check interface.  Don't
59598         bother to include sys/types.h and sys/stat.h again.
59599
59600 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59601
59602         Import the following change from libc; problem reported by
59603         Sven Verdoolaege.
59604
59605         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
59606
59607         [BZ #1373]
59608         * lib/argp.h: Remove __NTH for __argp_usage inline function.
59609
59610 2006-12-28  Jim Meyering  <jim@meyering.net>
59611
59612         * build-aux/announce-gen: Do not assume that the package
59613         builds any of tar.gz, tar.bz2, and .xdelta files.
59614         Suggestion from Simon Josefsson.
59615
59616 2006-12-28  Simon Josefsson  <simon@josefsson.org>
59617
59618         * modules/announce-gen: New file.
59619
59620 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
59621
59622         * lib/mbchar.h: Just include <wctype.h>; the wctype module
59623         handles its gotchas now.
59624         * lib/mbswidth.c: Likewise.
59625         * lib/wcwidth.h: Likewise.
59626         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
59627         and iswcntrl; the wctype module does this stuff now.
59628         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59629         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59630         * modules/mbchar (Depends-on): Add wctype.
59631         * modules/mbswidth (Depends-on): Likewise.
59632         * modules/wcwidth (Depends-on): Likewise.
59633
59634 2006-12-27  Eric Blake  <ebb9@byu.net>
59635
59636         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
59637         module uses more than what <wctype.h> is required to provide.
59638
59639 2006-12-26  Eric Blake  <ebb9@byu.net>
59640
59641         * gnulib-tool (sed_extract_prog): Avoid space-tab.
59642
59643 2006-12-26  Eric Blake  <ebb9@byu.net>
59644
59645         * modules/absolute-header: New module.
59646         * modules/fcntl (Depends-on): Depend on it.
59647         * modules/inttypes (Depends-on): Likewise.
59648         * modules/stdint (Depends-on): Likewise.
59649         * modules/sys_stat (Depends-on): Likewise.
59650         * modules/wctype (Depends-on): Likewise.
59651         * MODULES.html.sh (Support for building libraries and
59652         executables): Document it.
59653
59654 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59655
59656         * gnulib-tool (SED): Remove, undoing previous change.
59657         The problem was that it broke coreutils on Solaris, because
59658         "sed --posix" leaked into a makefile.
59659         (sed): New alias, if 'alias' and GNU sed.
59660
59661 2006-12-24  Jim Meyering  <jim@meyering.net>
59662
59663         Work around an fchownat bug in glibc-2.4:
59664         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
59665         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
59666         in spite of the -P option.
59667         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
59668         New macros.
59669         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
59670         * modules/openat (Files): Add lib/fchownat.c.
59671         * lib/openat.c (fchownat): Don't define here.  Move to...
59672         * lib/fchownat.c: ...this new file.
59673
59674 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59675
59676         Fix bug reported by Bruno Haible in
59677         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
59678         where quotearg.c didn't compile on Mac OS X 10.2 because it
59679         lacks <wchar.h> and wint_t.
59680         * lib/wctype_.h (__wctype_wint_t): New type.
59681         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
59682         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
59683         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
59684         Arg is now of type __wctype_wint_t, not wint_t.
59685         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
59686         substitute HAVE_WINT_T.
59687         * modules/wctype (Files): Add m4/wint_t.m4.
59688         (wctype.h): Substitute HAVE_WINT_T.
59689
59690 2006-12-23  Bruno Haible  <bruno@clisp.org>
59691
59692         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
59693
59694 2006-12-23  Bruno Haible  <bruno@clisp.org>
59695
59696         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
59697         S_ISLNK.
59698         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
59699         mingw.
59700
59701 2006-12-22  Bruno Haible  <bruno@clisp.org>
59702
59703         * lib/copy-file.c: Include acl.h.
59704         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
59705         Close the file descriptors only after being done with copy_acl.
59706         * modules/copy-file (Depends-on): Add acl.
59707
59708 2006-12-22  Bruno Haible  <bruno@clisp.org>
59709
59710         * gnulib-tool (SED): New variable.
59711         Use $SED instead of sed everywhere.
59712
59713 2006-12-22  Bruno Haible  <bruno@clisp.org>
59714
59715         * modules/no-c++: New file.
59716         * m4/no-c++.m4: New file.
59717         * MODULES.html.sh (Support for building libraries and executables):
59718         Add no-c++.
59719
59720 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59721
59722         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59723         Include <limits.h>, and use its INT_MAX to rewrite the
59724         j loop so that it does not overflow 'int'.  Problem reported by
59725         Ralf Wildenhues in
59726         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
59727         Play it safe by shifting left by 1 rather than multiplying by 2,
59728         as GCC is less likely to optimize this away when the value
59729         is signed (when it assumes overflow leads to undefined behavior).
59730         Also, don't assume time_t uses two's complement.
59731
59732 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59733
59734         * MODULES.html.sh: New module wctype.
59735         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
59736         * lib/fnmatch.c: Don't bother to include <wchar.h> before
59737         <wctype.h>, since the new wctype module should fix this.
59738         * lib/quotearg.c: Include <wctype.h> unconditionally, since
59739         the wctype module should arrange for it.
59740         * lib/regex_internal.h: Likewise.
59741         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
59742         since the wctype module should handle this now.
59743         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
59744         * modules/fnmatch (Depends-on): Add wctype.
59745         * modules/quotearg (Depends-on): Likewise.
59746         * modules/regex (Depends-on): Likewise.
59747
59748 2006-12-19  Bruno Haible  <bruno@clisp.org>
59749
59750         * lib/strdup.h [C++]: Wrap definitions in extern "C".
59751         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
59752
59753 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59754
59755         * modules/savewd (Depends-on): Fix dependency on fcntl.
59756
59757 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59758
59759         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
59760         conforms to C99, rather than relying on the user's environment
59761         setting of STDINT_H.
59762
59763 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59764         and Eric Blake  <ebb9@byu.net>
59765
59766         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
59767         This is more consistent with the other defines here.
59768         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
59769         Port to z/OS.  Problem reported by Paul Gilmartin.
59770         Change local vars to use gl_ prefix rather than ac_.
59771         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
59772         with other defines.
59773         * modules/double-slash-root: New module.
59774         * modules/dirname (Files): Remove m4/double-slash-root.m4.
59775         (Depends-on): Add double-slash-root.
59776         * MODULES.html.sh (File system functions): Mention new module.
59777
59778 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
59779
59780         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
59781         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
59782         This is for the benefit of gzip, which doesn't do i18n.
59783
59784 2006-12-12  Jim Meyering  <jim@meyering.net>
59785
59786         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
59787         Reported by Andreas Schwab <schwab@suse.de>.
59788
59789 2006-12-12  Bruno Haible  <bruno@clisp.org>
59790
59791         Merge these changes.
59792         2006-09-05  Bruno Haible  <bruno@clisp.org>
59793         * lib/iconvme.c (iconv_string): No need to save and restore errno when
59794         iconv_alloc succeeded.
59795         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
59796         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
59797         test for " && dest " at the end - dest is always != NULL there. Call
59798         iconv with 4xNULL arguments initially, to reset the state. Call iconv
59799         with 2xNULL arguments, also to flush the state storage. Handle the
59800         IRIX iconv behaviour. Realloc the final result, to throw away unused
59801         memory.
59802
59803 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
59804
59805         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
59806         and fchmodat unconditionally, since glibc 2.4 has them.
59807         Problem reported by Arkadiusz Miskiewicz.
59808
59809 2006-12-10  Bruno Haible  <bruno@clisp.org>
59810
59811         * gnulib-tool (func_import): Show the include files only for those
59812         modules that are copied and specified.
59813         Reported by Karl Berry.
59814
59815 2006-12-08  Jim Meyering  <jim@meyering.net>
59816
59817         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
59818         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
59819
59820         * build-aux/announce-gen: Add two new options, both optional:
59821         --bootstrap-tools=TOOL_LIST
59822               a comma-separated list of tools, e.g.,
59823               autoconf,automake,bison,gnulib
59824         --gnulib-snapshot-date=DATE
59825               if gnulib is in the bootstrap tool list,
59826               then report this as the snapshot date.
59827               If not specified, use the current date/time.
59828               If you specify a date here, be sure it's UTC.
59829
59830 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59831
59832         * tests/test-argp-2.sh: Fix test to match actual output.
59833         (func_compare): Fix sed script to be portable.
59834
59835 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
59836
59837         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
59838         workaround for this case.  It is not autoconfigured now; offhand
59839         it's hard to see how to autoconfigure it.
59840
59841 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59842
59843         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
59844         a directory that is about to be chowned.  Such a directory's
59845         initial file permissions should permit the owner only and this
59846         should not be changed until after the chown, since the group and
59847         other bits would be incorrect if they granted permission before
59848         the chown.
59849
59850         Fix porting problem for iswctype reported by Georg Schwarz in:
59851         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
59852         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
59853         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
59854         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
59855         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59856
59857 2006-12-03  Jim Meyering  <jim@meyering.net>
59858
59859         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
59860         p->fts_statp may not yet be defined.
59861         (fts_read): Instead, set it in the caller, once p->fts_statp is
59862         sure to be defined, and corresponds to a top-level directory.
59863         This bug made du -x fail.  Here's the coreutils test case:
59864         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
59865         Reported by Mike Frysinger.
59866
59867 2006-12-01  Jim Meyering  <jim@meyering.net>
59868
59869         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
59870         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
59871         Reported by Simon Josefsson.
59872
59873 2006-11-30  Jim Meyering  <jim@meyering.net>
59874
59875         * m4/warning.m4: Use the all-permissive copyright notice
59876         recommended by RMS (rather than LGPL).
59877         * m4/vararrays.m4: Likewise.
59878         * m4/flexmember.m4: Likewise.
59879
59880 2006-11-29  Bruno Haible  <bruno@clisp.org>
59881
59882         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59883         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
59884         using +=.
59885         Reported by Simon Josefsson <simon@josefsson.org>.
59886
59887 2006-11-28  James Youngman <jay@gnu.org>
59888
59889         * README: Advise users that they might find the bug-gnulib@gnu.org
59890         and autotools-announce@gnu.org mailing lists useful.
59891
59892 2006-11-28  Bruno Haible  <bruno@clisp.org>
59893
59894         * m4/ptrdiff_max.m4: Remove file.
59895
59896 2006-11-21  Bruno Haible  <bruno@clisp.org>
59897
59898         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
59899         _AC_COMPUTE_INT.
59900         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59901         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
59902         _AC_COMPUTE_INT.
59903         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59904         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
59905         _AC_COMPUTE_INT.
59906         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59907
59908 2006-11-28  Jim Meyering  <jim@meyering.net>
59909
59910         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
59911         warning from "gcc -Wshadow" about shadowing the builtin.
59912
59913 2006-11-27  Bruno Haible  <bruno@clisp.org>
59914
59915         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
59916         _AC_COMPUTE_INT.
59917         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59918
59919 2006-11-27  Bruno Haible  <bruno@clisp.org>
59920             Paul Eggert  <eggert@cs.ucla.edu>
59921
59922         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
59923
59924 2006-11-26  Bruno Haible  <bruno@clisp.org>
59925
59926         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59927         noinst_LTLIBRARIES.
59928
59929 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
59930             Bruno Haible  <bruno@clisp.org>
59931
59932         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
59933         if compiling with "gcc -ansi".
59934
59935 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
59936
59937         Fix some incompatibilities with gcc -ansi -pedantic.
59938         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
59939         if compiling pedantically with GCC, unless it's C99 or later.
59940         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
59941         it mishandles gcc -ansi -pedantic as well.
59942         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
59943         if gcc -pedantic.
59944         * lib/regexec.c (check_node_accept_bytes): Don't use auto
59945         initializers for struct if -pedantic, unless it's C99 or later.
59946
59947 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
59948
59949         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
59950         Don't close an fd more than once. Identical atimes indicate
59951         success, not failure.
59952
59953 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
59954
59955         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
59956
59957 2006-11-23  Jim Meyering  <jim@meyering.net>
59958
59959         * build-aux/announce-gen: New file.  From coreutils.
59960
59961 2006-11-22  Jim Meyering  <jim@meyering.net>
59962
59963         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
59964         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
59965         (fts_read): Use a temporary to narrow the overused st_size member
59966         before using it in a switch statement.  Reported by Matthew Woehlke.
59967
59968         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
59969         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
59970
59971 2006-11-20  Bruno Haible  <bruno@clisp.org>
59972
59973         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
59974         changequote instead of pairs of brackets.
59975         Reported by Andreas Schwab <schwab@suse.de>.
59976
59977 2006-11-21  Jim Meyering  <jim@meyering.net>
59978
59979         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
59980         so as to remain compatible with older compilers.
59981         Patch from Michael Deutschmann.
59982
59983 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59984
59985         * MODULES.html.sh (File system functions): Add openat.
59986
59987         * lib/openat.h (rpl_fstatat): New macro, if
59988         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
59989         (fstatat): Define to rpl_fstatat under the same conditions,
59990         unless COMPILING_FSTATAT.
59991         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
59992         seems to have the bug.
59993         * lib/fstatat.c: New file.
59994         * modules/openat (Files): Add it.
59995
59996 2006-11-20  Bruno Haible  <bruno@clisp.org>
59997
59998         * Makefile: New file.
59999
60000 2006-11-20  Jim Meyering  <jim@meyering.net>
60001
60002         The beginnings of syntax-related checks for gnulib.
60003         * lib/Makefile: New file.
60004         * lib/t-idcache: New script.  Ensure that the two halves of
60005         idcache.c stay in sync.
60006
60007         * lib/idcache.c: Adjust comments in user- and group- portions to
60008         be more accurate, and to be consistent with one another.
60009
60010 2006-11-20  Jim Meyering  <jim@meyering.net>
60011
60012         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
60013         continue using the flexible array member (thus, this module performs
60014         half as many malloc calls), with the addition that...
60015         (getgroup, getuser): Consistently record a non-match via an empty
60016         "name" string, and map an empty string match to a NULL return value.
60017         * modules/idcache (Depends-on): Re-add flexmember.
60018
60019         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60020         (getuidbyname, getgroup, getgidbyname): Likewise.
60021
60022         Use cleaner syntax: NULL rather than 0.
60023         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60024
60025 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60026
60027         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60028         It mishandled the case where the group was missing.
60029         Problem reported by Greg Schafer.
60030         * modules/idcache: Likewise.
60031
60032 2006-11-18  Jim Meyering  <jim@meyering.net>
60033
60034         * check-module (%exempt_header): Add exception for some
60035         conditionally-included headers.
60036
60037         * modules/i-ring (Depends-on): Add verify.
60038         (License): Change to LGPL.
60039
60040 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60041
60042         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60043         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60044         and inttostr.h.  Use snprintf rather than uinttostr, so that
60045         LGPLed code doesn't depend on GPLed.
60046
60047 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60048
60049         * modules/inline (License): Change from GPL to LGPL.
60050
60051 2006-11-17  Jim Meyering  <jim@meyering.net>
60052
60053         * modules/d-type (License): Switch to LGPL.
60054
60055 2006-11-15  Bruno Haible  <bruno@clisp.org>
60056
60057         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60058
60059 2006-11-15  Eric Blake  <ebb9@byu.net>
60060
60061         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60062         the module dependency.
60063
60064 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60065             Bruno Haible  <bruno@clisp.org>
60066
60067         * gnulib-tool (func_create_testdir): Add license consistency check.
60068
60069 2006-11-15  Eric Blake  <ebb9@byu.net>
60070
60071         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60072         random "(cached)" in configure output.
60073
60074 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60075
60076         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60077         test for conforming inttypes.h is both announced and cached.
60078
60079         * MODULES.html.sh (seen_modules, seen_files): New variables.
60080         (func_module): Rewrite to use a few less gnulib-tool and sed
60081         invocations.  Avoid a couple of quadratic algorithms for ...
60082         (missed_modules, missed_files): ... these, with ...
60083         (func_append, func_tmpdir): ... these new functions, from
60084         gnulib-tool.  Analogously, install traps for cleanup.
60085
60086         * tests/test-gc.c (main): Remove unused variables.
60087         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60088
60089 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60090
60091         * modules/inttostr (License): Change to LGPL.
60092
60093 2006-11-14  Eric Blake  <ebb9@byu.net>
60094
60095         * modules/tempname (License): Change to LGPL.
60096
60097 2006-11-14  Eric Blake  <ebb9@byu.net>
60098
60099         * doc/functions.texi (Function Portability): *printf functions on
60100         Cygwin now understand all POSIX size specifiers.
60101
60102 2006-11-14  Bruno Haible  <bruno@clisp.org>
60103
60104         * modules/c-ctype (License): Change to LGPL.
60105
60106 2006-11-12  Bruno Haible  <bruno@clisp.org>
60107
60108         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60109         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60110         for GNOME libraries, for which the include files are installed in
60111         subdirectories of $prefix/include.
60112
60113 2006-11-12  Bruno Haible  <bruno@clisp.org>
60114
60115         * m4/lib-link.m4: Require at least autoconf-2.54.
60116         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60117         name to underscores for the --with option.
60118
60119 2006-11-13  Bruno Haible  <bruno@clisp.org>
60120
60121         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60122         the tests directory.
60123         Reported by Ralf Wildenhues.
60124
60125 2006-11-13  Bruno Haible  <bruno@clisp.org>
60126
60127         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60128         (func_emit_initmacro_end): Undo the override here.
60129         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60130         Works around the famous automake error in coreutils.
60131
60132 2006-11-13  Eric Blake  <ebb9@byu.net>
60133
60134         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60135         element, not its node.
60136
60137 2006-11-12  Bruno Haible  <bruno@clisp.org>
60138
60139         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60140         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60141
60142 2006-11-12  Bruno Haible  <bruno@clisp.org>
60143
60144         * gnulib-tool: New option --local-symlink.
60145         (func_usage): Document it.
60146         (lsymbolic): New variable.
60147         (func_import, func_create_testdir): If --symlink was not specified,
60148         test whether --local-symlink was specified and the file comes from
60149         the local_gnulib_dir.
60150
60151 2006-11-12  Bruno Haible  <bruno@clisp.org>
60152
60153         * gnulib-tool (func_ln): New function.
60154         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60155
60156 2006-11-12  Bruno Haible  <bruno@clisp.org>
60157
60158         Finish support for source files in subdirectories.
60159         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60160         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60161         AUTOMAKE_OPTIONS.
60162         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60163
60164 2006-11-12  Bruno Haible  <bruno@clisp.org>
60165
60166         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60167         EXTRA_lib_SOURCES augmentation.
60168         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60169
60170 2006-11-12  Jim Meyering  <jim@meyering.net>
60171
60172         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60173         file descriptors.  This also averts a failure on systems with
60174         native openat support when a traversed directory lacks "x" access.
60175         * lib/fts_.h: Include "i-ring.h"
60176         (struct FTS) [fts_fd_ring]: New member.
60177         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60178         (FCHDIR): Add parentheses.
60179         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60180         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60181         When descending, rather than simply closing the previous
60182         fts_cwd_fd value, push that file descriptor onto the ring.
60183         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60184         (fts_open): Initialize the new fd_ring member.
60185         (fts_close): Clear the ring.
60186         (fts_safe_changedir): When possible, use our new fd_ring to skip
60187         the diropen and fstat and dev/ino comparison that would normally
60188         accompany a virtual `chdir ("..")'.
60189
60190         * modules/fts (Depends-on): Add i-ring.
60191         * modules/i-ring: New module.
60192         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60193         * m4/i-ring.m4: New file.
60194
60195 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60196
60197         * gnulib-tool (func_create_testdir): Fix replacement of
60198         `build-aux' in configure.ac.  Run autotools in gltests
60199         subdirectory.
60200         (func_create_testdir, func_create_megatestdir, test): There is
60201         no need for '--force' in most autotool invocations in a new
60202         tree.  Actually fail the whole test if any of the tools, or the
60203         configure or make stages fail.
60204
60205         Sync from Automake.
60206         * build-aux/gnupload: Revert last change.  Add pointer to upload
60207         instructions of the GNU Maintenance Instructions.
60208         Suggestion by Karl Berry.
60209
60210 2006-11-10  Jim Meyering  <jim@meyering.net>
60211
60212         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60213
60214 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60215
60216         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60217         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60218         (bind_textdomain_codeset) [! ENABLE_NLS]:
60219         Evaluate all the arguments.  That way, callers get compatible behavior
60220         if the arguments have side effects.  Also, it avoids some GCC
60221         diagnostics in some cases; Joel E. Denny reported problems when Bison
60222         was configured with --enable-gcc-warnigs.
60223
60224 2006-11-10  Jim Meyering  <jim@meyering.net>
60225
60226         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60227         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60228         account.
60229
60230 2006-11-10  Jim Meyering  <jim@meyering.net>
60231
60232         * modules/inline: New file/module.
60233         * modules/xalloc (Files): Remove m4/inline.m4.
60234         (Depends-on): Add inline, instead.
60235         * modules/oset: Likewise.
60236         * modules/list: Likewise.
60237
60238 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60239
60240         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
60241         Problem reported by Matthew Woehlke.
60242
60243 2006-11-09  Bruno Haible  <bruno@clisp.org>
60244
60245         * lib/tempname.c (gen_tempname): Remove variant that invokes
60246         __gen_tempname.
60247         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
60248         __gen_tempname.
60249
60250 2006-11-08  Bruno Haible  <bruno@clisp.org>
60251
60252         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
60253         to 'yes' instead of 'cross-compiling'.
60254
60255 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
60256
60257         * lib/quotearg.h (quotearg_free): New decl.
60258         * lib/quotearg.c (quotearg_free): New function.
60259         (slot0, nslots, slotvec0, slotvec):
60260         Now file-scope so that quotearg_free can get at them.
60261
60262 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60263
60264         Sync from Automake.
60265         * build-aux/gnupload: Add missing 'gnu' to example URL.
60266         Report by Karl Berry.
60267
60268 2006-11-08  Bruno Haible  <bruno@clisp.org>
60269
60270         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
60271         Suggested by Paul Eggert.
60272
60273 2006-11-08  Jim Meyering  <jim@meyering.net>
60274
60275         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
60276         It's already included if !_LIBC.
60277         (fts_safe_changedir): Add a comment.
60278
60279 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60280
60281         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
60282         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
60283         Matthew Woehlke.
60284
60285         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
60286         definitions up, to avoid colliding with change below.
60287         (static_inline) [HAVE_INLINE]: New macro.
60288         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
60289         Provide extern decls when !HAVE_INLINE.  Do not define unless
60290         static_inline is defined, either by us or by xmalloc.c.  Use
60291         static_inline rather than static inline.
60292         (XCALLOC): Optimize sizeof(T) = 1 case.
60293         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
60294
60295 2006-11-07  Bruno Haible  <bruno@clisp.org>
60296
60297         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
60298         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
60299         AC_C_INLINE.
60300         * modules/xalloc (Files): Add m4/inline.m4.
60301
60302 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60303
60304         * README: Fix typo.
60305         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
60306         (Miscellanous Notes): ...from this.
60307
60308 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60309
60310         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
60311         Mention that offsetof should be used instead of sizeof.
60312         From Bruno Haible.
60313
60314 2006-11-07  Bruno Haible  <bruno@clisp.org>
60315
60316         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
60317
60318 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60319
60320         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60321         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
60322         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60323         (gl_tree_add_before, gl_tree_add_after):
60324         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
60325         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
60326         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60327         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60328         (gl_linked_add_after, gl_linked_add_at): Likewise.
60329         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60330         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60331         (gl_tree_add_before, gl_tree_add_after): Likewise.
60332         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60333         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60334         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60335
60336 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60337
60338         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60339
60340 2006-11-06  Bruno Haible  <bruno@clisp.org>
60341
60342         * m4/inline.m4: New file.
60343         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60344         * modules/list (Files): Add m4/inline.m4.
60345         * modules/oset (Files): Likewise.
60346
60347 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60348
60349         * lib/idcache.c: Include <stddef.h>, for offsetof.
60350         (struct userid.name): Change from char * to a flexible array member.
60351         All uses changed.
60352         * modules/idcache (Depends-on): Add flexmember.
60353
60354         * MODULES.html.sh (Core language properties): New module flexmember.
60355         * modules/flexmember, m4/flexmember.m4: New files.
60356
60357         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60358         inline functions that are identical with the old xnmalloc_inline,
60359         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60360         that we can avoid some unnecessary integer multiplications and
60361         divisions in the common case where the element size is known at
60362         compile time.
60363         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60364         needed.
60365         (xnboundedmalloc): Remove.
60366         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60367         arguments, for consistency with rest of this header.
60368         (xcharalloc): Rewrite using XNMALLOC.
60369         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60370         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60371         versions have been moved to lib/xalloc.h and renamed to be the
60372         non-*_inline versions.
60373         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60374         and xnrealloc functions, since those functions are now inline and
60375         now call us.
60376         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60377         renaming described above.
60378         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60379         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60380         captures the dependency in AC_C_INLINE.
60381
60382         New module canonicalize-lgpl, proposed by Charles Wilson in
60383         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60384         with a few small changes afterwards.
60385         * MODULES.html.sh (File system functions): New module
60386         canonicalize-lgpl.
60387         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60388         and canonicalize_file_name.
60389         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60390         * modules/canonicalize-lgpl: New files.
60391
60392 2006-11-05  Bruno Haible  <bruno@clisp.org>
60393
60394         * gnulib-tool (func_import, func_create_testdir): Create directories
60395         also for files in subdirectories of lib/.
60396
60397 2006-11-05  Bruno Haible  <bruno@clisp.org>
60398
60399         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60400         ANSI C compliant.
60401
60402 2006-11-03  Bruno Haible  <bruno@clisp.org>
60403
60404         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60405         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
60406         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
60407         (xnboundedmalloc): New inline function.
60408         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
60409         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
60410         xmalloc.
60411         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
60412         xmalloc.
60413         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
60414         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
60415         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
60416         xmalloc.
60417         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60418         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
60419         xmalloc.
60420         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
60421         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60422         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
60423         xmalloc.
60424         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60425         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
60426         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60427         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
60428         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
60429         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
60430         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
60431
60432 2006-11-03  Bruno Haible  <bruno@clisp.org>
60433
60434         * lib/c-ctype.h [C++]: Define functions without name mangling.
60435         * lib/fwriteerror.h [C++]: Likewise.
60436         * lib/gcd.h [C++]: Likewise.
60437         * lib/linebreak.h [C++]: Likewise.
60438
60439 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60440
60441         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
60442         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
60443         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
60444         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60445         Check for functions and headers just once.
60446         Check for declaration of canonicalize_file_name.
60447         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
60448
60449 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60450
60451         * gnulib-tool (func_import): Fix typo in actioncmd.
60452
60453 2006-11-02  Bruno Haible  <bruno@clisp.org>
60454
60455         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
60456         newline sequence in the Makefile.am snippet as a space, like "make"
60457         does.
60458         Reported by Roger Persson <perrog@gmail.com>.
60459
60460 2006-11-01  Bruno Haible  <bruno@clisp.org>
60461
60462         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
60463         already declared in <string.h>.
60464         * lib/strcase.h (strncasecmp): Don't declare it if yes.
60465
60466 2006-11-01  Bruno Haible  <bruno@clisp.org>
60467
60468         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
60469         * lib/strcase.h: Include <string.h>.
60470         (strcasecmp): Define to rpl_strcasecmp here.
60471
60472 2006-11-01  Bruno Haible  <bruno@clisp.org>
60473
60474         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
60475
60476 2006-11-01  Eric Blake  <ebb9@byu.net>
60477
60478         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
60479
60480         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
60481
60482 2006-10-29  Bruno Haible  <bruno@clisp.org>
60483
60484         Make it compile in C++ mode.
60485         * lib/full-write.c (full_rw): Add a cast.
60486
60487 2006-11-01  Bruno Haible  <bruno@clisp.org>
60488
60489         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
60490         be POSIX compliant.
60491         Reported by Roger Persson <perrog@gmail.com>.
60492
60493 2006-11-01  Eric Blake  <ebb9@byu.net>
60494
60495         * lib/getopt_.h: Fix comments.
60496
60497 2006-10-31  Eric Blake  <ebb9@byu.net>
60498
60499         * modules/tmpdir (Depends-on): Add sys_stat.
60500         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
60501         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
60502         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
60503         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
60504         tempname.
60505
60506 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
60507
60508         Avoid some C++ diagnostics reported by Bruno Haible.
60509         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
60510         xmalloc.
60511         (quotearg_alloc): Use xcharalloc rather than xmalloc.
60512         (struct slotvec): Move to top level.
60513         (quotearg_n_options): Rewrite to avoid xmalloc.
60514         * lib/xalloc.h (xcharalloc): New function.
60515         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
60516         [defined __cplusplus]: Add function template that provides result
60517         type propagation.  This part of the change is from Bruno Haible.
60518
60519 2006-10-29  Bruno Haible  <bruno@clisp.org>
60520
60521         Make it compile in C++ mode.
60522         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
60523         * lib/strnlen1.c (strnlen1): Cast memchr result.
60524         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
60525         * lib/clean-temp.c (string_equals, string_hash): Add casts.
60526         (create_temp_dir): Rename local variable 'template'.
60527         (compile_csharp_using_sscli): Add cast.
60528         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
60529         * lib/findprog.c (find_in_path): Likewise.
60530         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
60531         * lib/wait-process.c (register_slave_subprocess): Likewise.
60532
60533 2006-10-22  Bruno Haible  <bruno@clisp.org>
60534
60535         * modules/tsearch: New file.
60536         * lib/tsearch.h: New file.
60537         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
60538         * m4/tsearch.m4: New file.
60539         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
60540
60541 2006-10-29  Eric Blake  <ebb9@byu.net>
60542
60543         * lib/arcfour.c: Assume config.h.
60544         * lib/arctwo.c: Likewise.
60545         * lib/base64.c: Likewise.
60546         * lib/check-version.c: Likewise.
60547         * lib/crc.c: Likewise.
60548         * lib/des.c: Likewise.
60549         * lib/gc-gnulib.c: Likewise.
60550         * lib/gc-libgcrypt.c: Likewise.
60551         * lib/gc-pbkdf2-sha1.c: Likewise.
60552         * lib/getaddrinfo.c: Likewise.
60553         * lib/getdelim.c: Likewise.
60554         * lib/getline.c: Likewise.
60555         * lib/hmac-md5.c: Likewise.
60556         * lib/hmac-sha1.c: Likewise.
60557         * lib/iconvme.c: Likewise.
60558         * lib/md2.c: Likewise.
60559         * lib/md4.c: Likewise.
60560         * lib/memxor.c: Likewise.
60561         * lib/read-file.c: Likewise.
60562         * lib/readline.c: Likewise.
60563         * lib/rijndael-alg-fst.c: Likewise.
60564         * lib/rijndael-api-fst.c: Likewise.
60565         * lib/xgetdomainname.c: Likewise.
60566
60567 2006-10-28  Eric Blake  <ebb9@byu.net>
60568
60569         * lib/xstrndup.c: Assume config.h.
60570
60571 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60572
60573         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
60574         stat-macros.h is now for our own macros, whereas stat_h is for
60575         macros in the <sys/stat.h> name space.
60576         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
60577         (STAT_MACROS_H): Remove.
60578         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
60579         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
60580         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
60581         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
60582         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
60583         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
60584         Move these macros to ...
60585         * lib/stat_.h: here.  Don't include stat-macros.h.
60586         * lib/canonicalize.c: Don't include stat-macros.h.
60587         * lib/chown.c: Likewise.
60588         * lib/euidaccess.c: Likewise.
60589         * lib/file-type.c: Likewise.
60590         * lib/filemode.c: Likewise.
60591         * lib/glob.c: Likewise.
60592         * lib/isapipe.c: Likewise.
60593         * lib/lchown.c: Likewise.
60594         * lib/lstat.c: Likewise.
60595         * lib/mkdir-p.c: Likewise.
60596         * lib/rmdir.c: Likewise.
60597         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
60598         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
60599         unless mkdir isn't declared, to speed up 'configure'.
60600         Always create sys/stat.h, since it's unlikely any real sys/stat.h
60601         would define all the S_* symbols.
60602         * modules/canonicalize (Depends-on):
60603         Depend on sys_stat, not stat-macros.
60604         * modules/chown: Likewise.
60605         * modules/euidaccess: Likewise.
60606         * modules/filemode: Likewise.
60607         * modules/file-type: Likewise.
60608         * modules/glob: Likewise.
60609         * modules/isapipe: Likewise.
60610         * modules/lchown: Likewise.
60611         * modules/lstat: Likewise.
60612         * modules/mkancesdirs: Likewise.
60613         * modules/rmdir: Likewise.
60614         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
60615         * modules/modechange: Likewise.
60616         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
60617         (configure.ac): Remove gl_STAT_MACROS.
60618         * modules/sys_stat (Depends-on): Remove stat-macros.
60619
60620 2006-10-27  Bruno Haible  <bruno@clisp.org>
60621
60622         * m4/signed.m4: Remove file.
60623         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
60624         invocation.
60625         * modules/vasnprintf (Files): Remove m4/signed.m4.
60626
60627 2006-10-27  Bruno Haible  <bruno@clisp.org>
60628
60629         Update to GNU gettext 0.16.
60630         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
60631         m4/inttypes-h.m4, m4/signed.m4.
60632         * m4/gettext.m4: Update to GNU gettext 0.16.
60633         * m4/intl.m4: New file, from GNU gettext.
60634         * m4/intldir.m4: New file, from GNU gettext.
60635         * config/srclist.txt: Update
60636
60637 2006-10-27  Eric Blake  <ebb9@byu.net>
60638
60639         * MODULES.html.sh: Document tempname.
60640         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
60641         dependencies.
60642         (Files): Move lib/tempname.c...
60643         * modules/tempname: ...to this new module.
60644         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
60645         (gl_PREREQ_TEMPNAME): Move...
60646         * m4/tempname.m4: ...to this new file.
60647         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
60648         * modules/sys_stat (Depends-on): Add stat-macros.
60649         * lib/stat_.h (includes): Pick up stat macros.
60650         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
60651         if stat macros are broken.
60652         * lib/tempname.c (includes): No need to include "stat-macros.h".
60653         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
60654         (direxists, __path_search) [!_LIBC]: Don't compile these in
60655         gnulib; the tmpdir module covers that.
60656         * lib/tempname.h: New file.
60657
60658 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60659
60660         * COPYING: Explain how gnulib-tool converts licence headers.
60661         Almost all wording by Eric Blake.
60662
60663 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
60664
60665         * lib/mbchar.h (is_basic_table): Make read-only.
60666         * lib/mbchar.c (is_basic_table): Likewise.
60667         Reported by John Darrington.
60668
60669 2006-10-25  Bruno Haible  <bruno@clisp.org>
60670
60671         * lib/progname.h (set_program_name): Undefine before defining.
60672
60673 2006-10-25  Bruno Haible  <bruno@clisp.org>
60674
60675         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
60676         false for non-gcc C++ compilers.
60677         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60678
60679 2006-10-24  Bruno Haible  <bruno@clisp.org>
60680
60681         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
60682         iconv implementations like Irix iconv.
60683
60684 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60685
60686         * modules/vararrays: New file.
60687         * m4/vararrays.m4: New file, taken from diffutils.
60688         * MODULES.html.sh: New module vararrays.
60689
60690 2006-10-24  Karl Berry  <karl@gnu.org>
60691
60692         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
60693         Don't call GNU Unix.
60694
60695 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60696
60697         * users.txt: Add Libtool.
60698
60699         Sync from Libtool:
60700
60701         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60702
60703         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
60704         to gnulib's policy of including config.h unconditionally.
60705
60706 2006-10-24  Bruno Haible  <bruno@clisp.org>
60707
60708         * modules/wcwidth (Files): Add m4/wint_t.m4.
60709         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
60710         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
60711
60712 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60713
60714         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
60715         to pacify GCC with some -W flags enabled.  Problem reported by
60716         Bruno Haible.
60717
60718 2006-10-24  Jim Meyering  <jim@meyering.net>
60719
60720         * MODULES.html.sh: Remove uinttostr.  It's not a module.
60721         Reported by Karl Berry.
60722
60723 2006-10-23  Bruno Haible  <bruno@clisp.org>
60724
60725         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
60726
60727 2006-10-24  Bruno Haible  <bruno@clisp.org>
60728
60729         * lib/gl_list.h: Use C comment style, not C++ comment style.
60730
60731 2006-10-23  Eric Blake  <ebb9@byu.net>
60732
60733         * lib/getaddrinfo.c (includes): Add missing include.
60734
60735 2006-10-23  Bruno Haible  <bruno@clisp.org>
60736             Paul Eggert  <eggert@cs.ucla.edu>
60737
60738         Ability to rename obstack_free.
60739         * lib/obstack.h (__obstack_free): New macro. Declare instead of
60740         obstack_free.
60741         (obstack_free): Invoke the __obstack_free macro.
60742         * lib/obstack.c (obstack_free): Use __obstack_free macro.
60743
60744 2006-10-23  Bruno Haible  <bruno@clisp.org>
60745             Paul Eggert  <eggert@cs.ucla.edu>
60746
60747         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
60748         __argc, __argv from the declaration. (They are defined as macros on
60749         mingw.)
60750
60751 2006-10-22  Bruno Haible  <bruno@clisp.org>
60752
60753         * doc/gnulib-intro.texi: New file.
60754         * doc/gnulib.texi: Include it.
60755
60756 2006-10-21  Bruno Haible  <bruno@clisp.org>
60757
60758         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
60759         "Introduction", "Miscellanous Notes", "Particular Modules".
60760
60761 2006-10-21  Bruno Haible  <bruno@clisp.org>
60762
60763         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60764         Change mostlyclean-local rule to avoid sh syntax error from bash
60765         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
60766
60767 2006-10-23  Jim Meyering  <jim@meyering.net>
60768
60769         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
60770         in place of snprintf.
60771
60772         * modules/inttostr (Files): Add lib/uinttostr.c.
60773         * lib/uinttostr.c (inttostr): New file/function.
60774         * lib/inttostr.h (uinttostr): Declare.
60775         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
60776         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60777         Add uinttostr.
60778         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
60779
60780 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60781
60782         * lib/canonicalize.c (ELOOP): Define if not already defined.
60783         Problem reported by Bruno Haible in
60784         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
60785
60786 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60787
60788         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
60789         Problem reported by Perry Smith and Ville Laurikari.
60790
60791         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
60792         uses.
60793
60794 2006-10-19  Bruno Haible  <bruno@clisp.org>
60795
60796         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
60797         for mingw.
60798
60799 2006-10-19  Bruno Haible  <bruno@clisp.org>
60800
60801         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
60802         Needed for mingw.
60803
60804 2006-10-19  Bruno Haible  <bruno@clisp.org>
60805
60806         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
60807
60808 2006-10-19  Bruno Haible  <bruno@clisp.org>
60809
60810         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
60811         it.
60812
60813 2006-10-19  Bruno Haible  <bruno@clisp.org>
60814
60815         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
60816         invocation.
60817
60818 2006-10-19  Bruno Haible  <bruno@clisp.org>
60819
60820         * gnulib-tool (func_create_testdir): Don't include ftruncate and
60821         mountlist by default.
60822
60823 2006-10-16  Bruno Haible  <bruno@clisp.org>
60824
60825         * lib/c-strstr.c: Include c-strstr.h.
60826
60827 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60828
60829         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
60830         in a slash.
60831
60832 2006-10-18  Bruno Haible  <bruno@clisp.org>
60833
60834         * lib/lock.h [C++]: Wrap definitions in extern "C".
60835
60836 2006-10-18  Bruno Haible  <bruno@clisp.org>
60837
60838         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
60839         gl_LIBOBJS list.
60840
60841 2006-10-18  Bruno Haible  <bruno@clisp.org>
60842
60843         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
60844
60845 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
60846
60847         * lib/xstrtol.h: Include gettext.h.
60848         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
60849         Problem reported by Eric Blake.
60850         * modules/xstrtol (Depends-on): Add gettext-h.
60851
60852 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
60853
60854         * lib/strftime.c (advance): New macro.
60855         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
60856         incomplete type, so you can't add 0 to it.  Problem and patch
60857         reported by Eelco Dolstra for dietlibc.
60858
60859 2006-10-18  Jim Meyering  <jim@meyering.net>
60860
60861         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
60862         type for a local, and rename it: s/up/user_proc/.
60863
60864 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60865
60866         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
60867         READ_UTMP_USER_PROCESS.
60868         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
60869
60870 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60871
60872         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
60873         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
60874
60875 2006-10-17  Eric Blake  <ebb9@byu.net>
60876
60877         * lib/sigprocmask.c (sigprocmask): Fix typo.
60878
60879         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
60880
60881         * modules/clean-temp (Makefile.am): Don't add to make output...
60882         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
60883         config.h.
60884
60885 2006-10-17  Bruno Haible  <bruno@clisp.org>
60886
60887         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
60888         differently if DEFAULT_TEXT_DOMAIN is set.
60889
60890 2006-10-16  Bruno Haible  <bruno@clisp.org>
60891
60892         * lib/clean-temp.c: Include fwriteerror.h.
60893
60894 2006-10-16  Bruno Haible  <bruno@clisp.org>
60895
60896         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
60897
60898 2006-10-16  Bruno Haible  <bruno@clisp.org>
60899
60900         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
60901         * lib/sigprocmask.h: Include <sys/types.h>.
60902         (sigset_t): Use the system's definition if present.
60903
60904 2006-10-17  Eric Blake  <ebb9@byu.net>
60905
60906         * lib/xvasprintf.c (includes): Assume config.h.
60907         * lib/xasprintf.c (includes): Likewise.
60908
60909 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60910
60911         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
60912         at least as wide as intmax_t.
60913
60914 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
60915
60916         (Imported from Automake.)
60917         * build-aux/gnupload: Update to version 1.1 of directive file.
60918
60919 2006-10-16  Eric Blake  <ebb9@byu.net>
60920
60921         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
60922         match Automake 1.10a.
60923
60924 2006-10-14  Bruno Haible  <bruno@clisp.org>
60925
60926         * modules/sigprocmask: New file.
60927         * lib/sigprocmask.h: New file.
60928         * lib/sigprocmask.c: New file.
60929         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
60930         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
60931         request sigprocmask.o.
60932         (gl_PREREQ_SIGPROCMASK): New macro.
60933         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
60934         (Depends-on): Add sigprocmask.
60935         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
60936         gt_SIGNALBLOCKING. Test for 'raise' only once.
60937         * lib/fatal-signal.c: Include sigprocmask.h.
60938         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
60939         unblock_fatal_signals): Define always.
60940         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60941         sigprocmask.
60942
60943 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
60944
60945         Sync from Automake.
60946         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
60947         which incorrectly sets the mode of an existing destination
60948         directory.  In some cases the unpatched install-sh could do the
60949         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
60950         system.  We hope this is rare in practice, but it's clearly worth
60951         fixing.  Problem reported by Alex Unleashed in
60952         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
60953         Also, don't bother to check for -m bugs unless we're using -m;
60954         suggested by Stepan Kasal.
60955
60956 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60957
60958         Sync from Automake.
60959         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
60960         `-c' flag, so they appear at the same position as in %FASTDEP%
60961         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
60962         which ignores unknown options only after the first non-option.
60963         Bug report against M4 by Nelson H. F. Beebe.
60964
60965 2006-10-13  Jim Meyering  <jim@meyering.net>
60966
60967         Fix a bug in yesterday's change.
60968         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
60969         p->fts_statp->st_dev would be used uninitialized.
60970         Ensures that we always call fts_stat on the very first entry.
60971         Miklos Szeredi reported that find -xdev stopped working.
60972
60973 2006-10-12  Bruno Haible  <bruno@clisp.org>
60974
60975         * gnulib-tool (func_get_automake_snippet): Append an automatically
60976         computed EXTRA_DIST augmentation.
60977         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
60978         * modules/alloca-opt (Makefile.am): Likewise.
60979         * modules/allocsa (Makefile.am): Likewise.
60980         * modules/arcfour (Makefile.am): Likewise.
60981         * modules/arctwo (Makefile.am): Likewise.
60982         * modules/argmatch (Makefile.am): Likewise.
60983         * modules/argz (Makefile.am): Likewise.
60984         * modules/atexit (Makefile.am): Likewise.
60985         * modules/backupfile (Makefile.am): Likewise.
60986         * modules/byteswap (Makefile.am): Likewise.
60987         * modules/c-strtod (Makefile.am): Likewise.
60988         * modules/c-strtold (Makefile.am): Likewise.
60989         * modules/calloc (Makefile.am): Likewise.
60990         * modules/canon-host (Makefile.am): Likewise.
60991         * modules/canonicalize (Makefile.am): Likewise.
60992         * modules/chdir-long (Makefile.am): Likewise.
60993         * modules/chdir-safer (Makefile.am): Likewise.
60994         * modules/check-version (Makefile.am): Likewise.
60995         * modules/chown (Makefile.am): Likewise.
60996         * modules/cloexec (Makefile.am): Likewise.
60997         * modules/close-stream (Makefile.am): Likewise.
60998         * modules/closeout (Makefile.am): Likewise.
60999         * modules/crc (Makefile.am): Likewise.
61000         * modules/csharpexec (Makefile.am): Likewise.
61001         * modules/cycle-check (Makefile.am): Likewise.
61002         * modules/des (Makefile.am): Likewise.
61003         * modules/dev-ino (Makefile.am): Likewise.
61004         * modules/dirfd (Makefile.am): Likewise.
61005         * modules/dirname (Makefile.am): Likewise.
61006         * modules/dup2 (Makefile.am): Likewise.
61007         * modules/eealloc (Makefile.am): Likewise.
61008         * modules/error (Makefile.am): Likewise.
61009         * modules/euidaccess (Makefile.am): Likewise.
61010         * modules/exclude (Makefile.am): Likewise.
61011         * modules/exitfail (Makefile.am): Likewise.
61012         * modules/fcntl-safer (Makefile.am): Likewise.
61013         * modules/fcntl (Makefile.am): Likewise.
61014         * modules/file-type (Makefile.am): Likewise.
61015         * modules/fileblocks (Makefile.am): Likewise.
61016         * modules/filemode (Makefile.am): Likewise.
61017         * modules/filenamecat (Makefile.am): Likewise.
61018         * modules/fnmatch (Makefile.am): Likewise.
61019         * modules/fopen-safer (Makefile.am): Likewise.
61020         * modules/fpending (Makefile.am): Likewise.
61021         * modules/fprintftime (Makefile.am): Likewise.
61022         * modules/free (Makefile.am): Likewise.
61023         * modules/fsusage (Makefile.am): Likewise.
61024         * modules/ftruncate (Makefile.am): Likewise.
61025         * modules/fts (Makefile.am): Likewise.
61026         * modules/gc-arcfour (Makefile.am): Likewise.
61027         * modules/gc-des (Makefile.am): Likewise.
61028         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61029         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61030         * modules/gc-md4 (Makefile.am): Likewise.
61031         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61032         * modules/gc-sha1 (Makefile.am): Likewise.
61033         * modules/gc (Makefile.am): Likewise.
61034         * modules/getaddrinfo (Makefile.am): Likewise.
61035         * modules/getcwd (Makefile.am): Likewise.
61036         * modules/getdelim (Makefile.am): Likewise.
61037         * modules/getdomainname (Makefile.am): Likewise.
61038         * modules/getgroups (Makefile.am): Likewise.
61039         * modules/gethostname (Makefile.am): Likewise.
61040         * modules/gethrxtime (Makefile.am): Likewise.
61041         * modules/getline (Makefile.am): Likewise.
61042         * modules/getloadavg (Makefile.am): Likewise.
61043         * modules/getlogin_r (Makefile.am): Likewise.
61044         * modules/getndelim2 (Makefile.am): Likewise.
61045         * modules/getopt (Makefile.am): Likewise.
61046         * modules/getpagesize (Makefile.am): Likewise.
61047         * modules/getpass-gnu (Makefile.am): Likewise.
61048         * modules/getpass (Makefile.am): Likewise.
61049         * modules/getsubopt (Makefile.am): Likewise.
61050         * modules/gettime (Makefile.am): Likewise.
61051         * modules/gettimeofday (Makefile.am): Likewise.
61052         * modules/getugroups (Makefile.am): Likewise.
61053         * modules/getusershell (Makefile.am): Likewise.
61054         * modules/glob (Makefile.am): Likewise.
61055         * modules/group-member (Makefile.am): Likewise.
61056         * modules/hard-locale (Makefile.am): Likewise.
61057         * modules/hash (Makefile.am): Likewise.
61058         * modules/hmac-md5 (Makefile.am): Likewise.
61059         * modules/hmac-sha1 (Makefile.am): Likewise.
61060         * modules/human (Makefile.am): Likewise.
61061         * modules/idcache (Makefile.am): Likewise.
61062         * modules/imaxabs (Makefile.am): Likewise.
61063         * modules/imaxdiv (Makefile.am): Likewise.
61064         * modules/inet_ntop (Makefile.am): Likewise.
61065         * modules/inet_pton (Makefile.am): Likewise.
61066         * modules/intprops (Makefile.am): Likewise.
61067         * modules/inttostr (Makefile.am): Likewise.
61068         * modules/inttypes (Makefile.am): Likewise.
61069         * modules/isapipe (Makefile.am): Likewise.
61070         * modules/javaversion (Makefile.am): Likewise.
61071         * modules/lchmod (Makefile.am): Likewise.
61072         * modules/lchown (Makefile.am): Likewise.
61073         * modules/localcharset (Makefile.am): Likewise.
61074         * modules/long-options (Makefile.am): Likewise.
61075         * modules/lstat (Makefile.am): Likewise.
61076         * modules/malloc (Makefile.am): Likewise.
61077         * modules/mathl (Makefile.am): Likewise.
61078         * modules/mbchar (Makefile.am): Likewise.
61079         * modules/md2 (Makefile.am): Likewise.
61080         * modules/md4 (Makefile.am): Likewise.
61081         * modules/md5 (Makefile.am): Likewise.
61082         * modules/memcasecmp (Makefile.am): Likewise.
61083         * modules/memchr (Makefile.am): Likewise.
61084         * modules/memcmp (Makefile.am): Likewise.
61085         * modules/memcoll (Makefile.am): Likewise.
61086         * modules/memcpy (Makefile.am): Likewise.
61087         * modules/memmem (Makefile.am): Likewise.
61088         * modules/memmove (Makefile.am): Likewise.
61089         * modules/mempcpy (Makefile.am): Likewise.
61090         * modules/memrchr (Makefile.am): Likewise.
61091         * modules/memset (Makefile.am): Likewise.
61092         * modules/memxor (Makefile.am): Likewise.
61093         * modules/mkancesdirs (Makefile.am): Likewise.
61094         * modules/mkdir-p (Makefile.am): Likewise.
61095         * modules/mkdir (Makefile.am): Likewise.
61096         * modules/mkdtemp (Makefile.am): Likewise.
61097         * modules/mkstemp (Makefile.am): Likewise.
61098         * modules/mktime (Makefile.am): Likewise.
61099         * modules/modechange (Makefile.am): Likewise.
61100         * modules/mountlist (Makefile.am): Likewise.
61101         * modules/nanosleep (Makefile.am): Likewise.
61102         * modules/obstack (Makefile.am): Likewise.
61103         * modules/openat (Makefile.am): Likewise.
61104         * modules/pagealign_alloc (Makefile.am): Likewise.
61105         * modules/pathmax (Makefile.am): Likewise.
61106         * modules/physmem (Makefile.am): Likewise.
61107         * modules/poll (Makefile.am): Likewise.
61108         * modules/posixtm (Makefile.am): Likewise.
61109         * modules/posixver (Makefile.am): Likewise.
61110         * modules/putenv (Makefile.am): Likewise.
61111         * modules/quote (Makefile.am): Likewise.
61112         * modules/quotearg (Makefile.am): Likewise.
61113         * modules/raise (Makefile.am): Likewise.
61114         * modules/read-file (Makefile.am): Likewise.
61115         * modules/readline (Makefile.am): Likewise.
61116         * modules/readlink (Makefile.am): Likewise.
61117         * modules/readtokens (Makefile.am): Likewise.
61118         * modules/readutmp (Makefile.am): Likewise.
61119         * modules/realloc (Makefile.am): Likewise.
61120         * modules/regex (Makefile.am): Likewise.
61121         * modules/rename-dest-slash (Makefile.am): Likewise.
61122         * modules/rename (Makefile.am): Likewise.
61123         * modules/rijndael (Makefile.am): Likewise.
61124         * modules/rmdir (Makefile.am): Likewise.
61125         * modules/rpmatch (Makefile.am): Likewise.
61126         * modules/safe-read (Makefile.am): Likewise.
61127         * modules/safe-write (Makefile.am): Likewise.
61128         * modules/same-inode (Makefile.am): Likewise.
61129         * modules/same (Makefile.am): Likewise.
61130         * modules/save-cwd (Makefile.am): Likewise.
61131         * modules/savedir (Makefile.am): Likewise.
61132         * modules/setenv (Makefile.am): Likewise.
61133         * modules/settime (Makefile.am): Likewise.
61134         * modules/sha1 (Makefile.am): Likewise.
61135         * modules/sig2str (Makefile.am): Likewise.
61136         * modules/snprintf (Makefile.am): Likewise.
61137         * modules/stat-macros (Makefile.am): Likewise.
61138         * modules/stat-time (Makefile.am): Likewise.
61139         * modules/stdbool (Makefile.am): Likewise.
61140         * modules/stdint (Makefile.am): Likewise.
61141         * modules/stdlib-safer (Makefile.am): Likewise.
61142         * modules/stpcpy (Makefile.am): Likewise.
61143         * modules/stpncpy (Makefile.am): Likewise.
61144         * modules/strcase (Makefile.am): Likewise.
61145         * modules/strcasestr (Makefile.am): Likewise.
61146         * modules/strchrnul (Makefile.am): Likewise.
61147         * modules/strcspn (Makefile.am): Likewise.
61148         * modules/strdup (Makefile.am): Likewise.
61149         * modules/strerror (Makefile.am): Likewise.
61150         * modules/strftime (Makefile.am): Likewise.
61151         * modules/strndup (Makefile.am): Likewise.
61152         * modules/strnlen (Makefile.am): Likewise.
61153         * modules/strpbrk (Makefile.am): Likewise.
61154         * modules/strsep (Makefile.am): Likewise.
61155         * modules/strstr (Makefile.am): Likewise.
61156         * modules/strtod (Makefile.am): Likewise.
61157         * modules/strtoimax (Makefile.am): Likewise.
61158         * modules/strtok_r (Makefile.am): Likewise.
61159         * modules/strtol (Makefile.am): Likewise.
61160         * modules/strtoll (Makefile.am): Likewise.
61161         * modules/strtoul (Makefile.am): Likewise.
61162         * modules/strtoull (Makefile.am): Likewise.
61163         * modules/strtoumax (Makefile.am): Likewise.
61164         * modules/strverscmp (Makefile.am): Likewise.
61165         * modules/sys_socket (Makefile.am): Likewise.
61166         * modules/sys_stat (Makefile.am): Likewise.
61167         * modules/sysexits (Makefile.am): Likewise.
61168         * modules/time_r (Makefile.am): Likewise.
61169         * modules/timegm (Makefile.am): Likewise.
61170         * modules/timespec (Makefile.am): Likewise.
61171         * modules/tmpfile-safer (Makefile.am): Likewise.
61172         * modules/trim (Makefile.am): Likewise.
61173         * modules/unistd-safer (Makefile.am): Likewise.
61174         * modules/unlinkdir (Makefile.am): Likewise.
61175         * modules/unlocked-io (Makefile.am): Likewise.
61176         * modules/userspec (Makefile.am): Likewise.
61177         * modules/utime (Makefile.am): Likewise.
61178         * modules/utimecmp (Makefile.am): Likewise.
61179         * modules/utimens (Makefile.am): Likewise.
61180         * modules/vasnprintf (Makefile.am): Likewise.
61181         * modules/vasprintf (Makefile.am): Likewise.
61182         * modules/vsnprintf (Makefile.am): Likewise.
61183         * modules/xalloc (Makefile.am): Likewise.
61184         * modules/xgetcwd (Makefile.am): Likewise.
61185         * modules/xnanosleep (Makefile.am): Likewise.
61186         * modules/xreadlink (Makefile.am): Likewise.
61187         * modules/xstrtod (Makefile.am): Likewise.
61188         * modules/xstrtol (Makefile.am): Likewise.
61189         * modules/xstrtold (Makefile.am): Likewise.
61190         * modules/yesno (Makefile.am): Likewise.
61191         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61192
61193 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61194
61195         * modules/error (Makefile.am): Distribute files through
61196         EXTRA_DIST, not lib_SOURCES.
61197
61198 2006-10-12  Eric Blake  <ebb9@byu.net>
61199
61200         * modules/error (Makefile.am): Distribute files in /lib.
61201         * modules/obstack (Makefile.am): Likewise.
61202
61203 2006-10-12  Bruno Haible  <bruno@clisp.org>
61204
61205         * modules/acl (Makefile.am): Distribute all files in lib/ through
61206         EXTRA_DIST.
61207         * modules/arcfour (Makefile.am): Likewise.
61208         * modules/arctwo (Makefile.am): Likewise.
61209         * modules/argmatch (Makefile.am): Likewise.
61210         * modules/argz (Makefile.am): Likewise.
61211         * modules/atexit (Makefile.am): Likewise.
61212         * modules/backupfile (Makefile.am): Likewise.
61213         * modules/c-strtod (Makefile.am): Likewise.
61214         * modules/c-strtold (Makefile.am): Likewise.
61215         * modules/calloc (Makefile.am): Likewise.
61216         * modules/canon-host (Makefile.am): Likewise.
61217         * modules/canonicalize (Makefile.am): Likewise.
61218         * modules/chdir-long (Makefile.am): Likewise.
61219         * modules/chdir-safer (Makefile.am): Likewise.
61220         * modules/check-version (Makefile.am): Likewise.
61221         * modules/chown (Makefile.am): Likewise.
61222         * modules/cloexec (Makefile.am): Likewise.
61223         * modules/close-stream (Makefile.am): Likewise.
61224         * modules/closeout (Makefile.am): Likewise.
61225         * modules/crc (Makefile.am): Likewise.
61226         * modules/cycle-check (Makefile.am): Likewise.
61227         * modules/des (Makefile.am): Likewise.
61228         * modules/dirfd (Makefile.am): Likewise.
61229         * modules/dirname (Makefile.am): Likewise.
61230         * modules/dup2 (Makefile.am): Likewise.
61231         * modules/euidaccess (Makefile.am): Likewise.
61232         * modules/exclude (Makefile.am): Likewise.
61233         * modules/exitfail (Makefile.am): Likewise.
61234         * modules/fcntl-safer (Makefile.am): Likewise.
61235         * modules/file-type (Makefile.am): Likewise.
61236         * modules/fileblocks (Makefile.am): Likewise.
61237         * modules/filemode (Makefile.am): Likewise.
61238         * modules/filenamecat (Makefile.am): Likewise.
61239         * modules/fnmatch (Makefile.am): Likewise.
61240         * modules/fopen-safer (Makefile.am): Likewise.
61241         * modules/fpending (Makefile.am): Likewise.
61242         * modules/fprintftime (Makefile.am): Likewise.
61243         * modules/free (Makefile.am): Likewise.
61244         * modules/fsusage (Makefile.am): Likewise.
61245         * modules/ftruncate (Makefile.am): Likewise.
61246         * modules/fts (Makefile.am): Likewise.
61247         * modules/gc (Makefile.am): Likewise.
61248         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61249         * modules/getaddrinfo (Makefile.am): Likewise.
61250         * modules/getcwd (Makefile.am): Likewise.
61251         * modules/getdelim (Makefile.am): Likewise.
61252         * modules/getdomainname (Makefile.am): Likewise.
61253         * modules/getgroups (Makefile.am): Likewise.
61254         * modules/gethostname (Makefile.am): Likewise.
61255         * modules/gethrxtime (Makefile.am): Likewise.
61256         * modules/getline (Makefile.am): Likewise.
61257         * modules/getloadavg (Makefile.am): Likewise.
61258         * modules/getlogin_r (Makefile.am): Likewise.
61259         * modules/getopt (Makefile.am): Likewise.
61260         * modules/getpass (Makefile.am): Likewise.
61261         * modules/getpass-gnu (Makefile.am): Likewise.
61262         * modules/getsubopt (Makefile.am): Likewise.
61263         * modules/gettime (Makefile.am): Likewise.
61264         * modules/gettimeofday (Makefile.am): Likewise.
61265         * modules/getugroups (Makefile.am): Likewise.
61266         * modules/getusershell (Makefile.am): Likewise.
61267         * modules/glob (Makefile.am): Likewise.
61268         * modules/group-member (Makefile.am): Likewise.
61269         * modules/hard-locale (Makefile.am): Likewise.
61270         * modules/hash (Makefile.am): Likewise.
61271         * modules/hmac-md5 (Makefile.am): Likewise.
61272         * modules/hmac-sha1 (Makefile.am): Likewise.
61273         * modules/human (Makefile.am): Likewise.
61274         * modules/idcache (Makefile.am): Likewise.
61275         * modules/imaxabs (Makefile.am): Likewise.
61276         * modules/imaxdiv (Makefile.am): Likewise.
61277         * modules/inet_ntop (Makefile.am): Likewise.
61278         * modules/inet_pton (Makefile.am): Likewise.
61279         * modules/inttostr (Makefile.am): Likewise.
61280         * modules/isapipe (Makefile.am): Likewise.
61281         * modules/lchown (Makefile.am): Likewise.
61282         * modules/long-options (Makefile.am): Likewise.
61283         * modules/lstat (Makefile.am): Likewise.
61284         * modules/malloc (Makefile.am): Likewise.
61285         * modules/mathl (Makefile.am): Likewise.
61286         * modules/mbchar (Makefile.am): Likewise.
61287         * modules/md2 (Makefile.am): Likewise.
61288         * modules/md4 (Makefile.am): Likewise.
61289         * modules/md5 (Makefile.am): Likewise.
61290         * modules/memcasecmp (Makefile.am): Likewise.
61291         * modules/memchr (Makefile.am): Likewise.
61292         * modules/memcmp (Makefile.am): Likewise.
61293         * modules/memcoll (Makefile.am): Likewise.
61294         * modules/memcpy (Makefile.am): Likewise.
61295         * modules/memmem (Makefile.am): Likewise.
61296         * modules/memmove (Makefile.am): Likewise.
61297         * modules/mempcpy (Makefile.am): Likewise.
61298         * modules/memrchr (Makefile.am): Likewise.
61299         * modules/memset (Makefile.am): Likewise.
61300         * modules/memxor (Makefile.am): Likewise.
61301         * modules/mkancesdirs (Makefile.am): Likewise.
61302         * modules/mkdir (Makefile.am): Likewise.
61303         * modules/mkdir-p (Makefile.am): Likewise.
61304         * modules/mkdtemp (Makefile.am): Likewise.
61305         * modules/mkstemp (Makefile.am): Likewise.
61306         * modules/mktime (Makefile.am): Likewise.
61307         * modules/modechange (Makefile.am): Likewise.
61308         * modules/mountlist (Makefile.am): Likewise.
61309         * modules/nanosleep (Makefile.am): Likewise.
61310         * modules/openat (Makefile.am): Likewise.
61311         * modules/pagealign_alloc (Makefile.am): Likewise.
61312         * modules/physmem (Makefile.am): Likewise.
61313         * modules/poll (Makefile.am): Likewise.
61314         * modules/posixtm (Makefile.am): Likewise.
61315         * modules/posixver (Makefile.am): Likewise.
61316         * modules/putenv (Makefile.am): Likewise.
61317         * modules/quote (Makefile.am): Likewise.
61318         * modules/quotearg (Makefile.am): Likewise.
61319         * modules/raise (Makefile.am): Likewise.
61320         * modules/read-file (Makefile.am): Likewise.
61321         * modules/readline (Makefile.am): Likewise.
61322         * modules/readlink (Makefile.am): Likewise.
61323         * modules/readtokens (Makefile.am): Likewise.
61324         * modules/readutmp (Makefile.am): Likewise.
61325         * modules/realloc (Makefile.am): Likewise.
61326         * modules/regex (Makefile.am): Likewise.
61327         * modules/rename (Makefile.am): Likewise.
61328         * modules/rename-dest-slash (Makefile.am): Likewise.
61329         * modules/rijndael (Makefile.am): Likewise.
61330         * modules/rmdir (Makefile.am): Likewise.
61331         * modules/rpmatch (Makefile.am): Likewise.
61332         * modules/safe-read (Makefile.am): Likewise.
61333         * modules/safe-write (Makefile.am): Likewise.
61334         * modules/same (Makefile.am): Likewise.
61335         * modules/save-cwd (Makefile.am): Likewise.
61336         * modules/savedir (Makefile.am): Likewise.
61337         * modules/setenv (Makefile.am): Likewise.
61338         * modules/settime (Makefile.am): Likewise.
61339         * modules/sha1 (Makefile.am): Likewise.
61340         * modules/sig2str (Makefile.am): Likewise.
61341         * modules/snprintf (Makefile.am): Likewise.
61342         * modules/stdlib-safer (Makefile.am): Likewise.
61343         * modules/stpcpy (Makefile.am): Likewise.
61344         * modules/stpncpy (Makefile.am): Likewise.
61345         * modules/strcase (Makefile.am): Likewise.
61346         * modules/strcasestr (Makefile.am): Likewise.
61347         * modules/strchrnul (Makefile.am): Likewise.
61348         * modules/strcspn (Makefile.am): Likewise.
61349         * modules/strdup (Makefile.am): Likewise.
61350         * modules/strerror (Makefile.am): Likewise.
61351         * modules/strftime (Makefile.am): Likewise.
61352         * modules/strndup (Makefile.am): Likewise.
61353         * modules/strnlen (Makefile.am): Likewise.
61354         * modules/strpbrk (Makefile.am): Likewise.
61355         * modules/strsep (Makefile.am): Likewise.
61356         * modules/strstr (Makefile.am): Likewise.
61357         * modules/strtod (Makefile.am): Likewise.
61358         * modules/strtoimax (Makefile.am): Likewise.
61359         * modules/strtok_r (Makefile.am): Likewise.
61360         * modules/strtol (Makefile.am): Likewise.
61361         * modules/strtoll (Makefile.am): Likewise.
61362         * modules/strtoul (Makefile.am): Likewise.
61363         * modules/strtoull (Makefile.am): Likewise.
61364         * modules/strtoumax (Makefile.am): Likewise.
61365         * modules/strverscmp (Makefile.am): Likewise.
61366         * modules/time_r (Makefile.am): Likewise.
61367         * modules/timegm (Makefile.am): Likewise.
61368         * modules/tmpfile-safer (Makefile.am): Likewise.
61369         * modules/unistd-safer (Makefile.am): Likewise.
61370         * modules/unlinkdir (Makefile.am): Likewise.
61371         * modules/userspec (Makefile.am): Likewise.
61372         * modules/utime (Makefile.am): Likewise.
61373         * modules/utimecmp (Makefile.am): Likewise.
61374         * modules/utimens (Makefile.am): Likewise.
61375         * modules/vasnprintf (Makefile.am): Likewise.
61376         * modules/vasprintf (Makefile.am): Likewise.
61377         * modules/vsnprintf (Makefile.am): Likewise.
61378         * modules/xalloc (Makefile.am): Likewise.
61379         * modules/xgetcwd (Makefile.am): Likewise.
61380         * modules/xnanosleep (Makefile.am): Likewise.
61381         * modules/xreadlink (Makefile.am): Likewise.
61382         * modules/xstrtod (Makefile.am): Likewise.
61383         * modules/xstrtol (Makefile.am): Likewise.
61384         * modules/xstrtold (Makefile.am): Likewise.
61385         * modules/yesno (Makefile.am): Likewise.
61386
61387 2006-10-12  Jim Meyering  <jim@meyering.net>
61388
61389         * m4/getloadavg.m4: Revert the change below.
61390
61391         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61392         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61393         fail with a symlink, which is what coreutils' ./bootstrap now
61394         creates by default.
61395
61396 2006-10-12  Bruno Haible  <bruno@clisp.org>
61397
61398         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61399         mingw.
61400         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61401         MSVC and mingw explicitly.
61402
61403 2006-10-11  Simon Josefsson  <jas@extundo.com>
61404             Bruno Haible  <bruno@clisp.org>
61405
61406         Add support for multiple gnulib-tool invocations in the scope of a
61407         single configure.ac file.
61408         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
61409         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
61410         with the same contents as the _LIBADD variable.
61411         (func_emit_initmacro_start, func_emit_initmacro_end,
61412         func_emit_initmacro_done): New functions.
61413         (func_import, func_create_testdir): Invoke them. Allow the identifiers
61414         gl_LIBOBJS and gl_LTLIBOBJS.
61415
61416 2006-10-11  Bruno Haible  <bruno@clisp.org>
61417
61418         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
61419         (func_create_testdir): Don't create po/Makefile.am, don't invoke
61420         autoreconf. Instead, invoke autopoint explicitly but move back the
61421         *.m4 files from gnulib.
61422
61423 2006-10-11  Bruno Haible  <bruno@clisp.org>
61424
61425         * gnulib-tool (func_usage): Make module names after --create-testdir
61426         optional.
61427         (func_create_testdir): If no module was specified, use nearly all
61428         modules.
61429
61430 2006-10-12  Jim Meyering  <jim@meyering.net>
61431
61432         Big performance improvement for fts-based tools that use FTS_NOSTAT.
61433         Avoid spurious inode-mismatch problems on non-POSIX file systems.
61434         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
61435         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
61436         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
61437         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
61438         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
61439         (fts_set_stat_required): New function.
61440         (fts_open): Defer the calls to fts_stat, if possible or requested.
61441         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
61442         into fts_stat itself.
61443         (fts_read): Perform any required (deferred) fts_stat call.
61444         (fts_build): Likewise, for the directory we're about to open and read.
61445         In the readdir loop, carefully decide whether each entry will require
61446         an eventual call to fts_stat, using dirent.d_type info if available.
61447         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
61448         a command line argument into this function.  Update all callers.
61449         Map a return value of FTS_DOT to FTS_D for a command line argument.
61450         * modules/fts (Depends-on): Add d-type.  Alphabetize.
61451         Thanks to Miklos Szeredi for his tenacity and for the initial
61452         bug report about "find" failing on a FUSE-based file system.
61453
61454         * lib/fts.c (fts_open): Use consistent indentation.
61455
61456 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61457
61458         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
61459         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
61460         reported by Jim Meyering.  All uses of cache variables renamed
61461         to match Autoconf's.
61462         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
61463         the other one.
61464
61465         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61466         Fix misspelling in diagnostic.
61467
61468 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61469
61470         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
61471         defined.  Problem reported by Matthew Woehlke.
61472
61473         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
61474         Add support for Tandem NonStop R series.
61475         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
61476         Use new macro.
61477
61478         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
61479         (has_trailing_slash): Omit size arg; all callers changed.
61480         Omit 'inline', since it doesn't help performance and we'd
61481         need to configure it.
61482         Don't count //, ///, etc. as having a trailing slash.
61483         As a side effect, this removes a C99ism reported by Matthew Woehlke.
61484         (rpl_rename_dest_slash): On failure, use rename's errno rather
61485         than (in some cases) an incorrect or junk errno.
61486         Simplify code by removing need to compute length; this does
61487         cause it to make two passes instead of one over the file name,
61488         but it's worth it.
61489
61490         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
61491         change, since Autoconf's version may no longer be appropriate now
61492         that we are using CVS Autoconf's version.  Add support for Tandem.
61493
61494 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61495             Bruno Haible  <bruno@clisp.org>
61496
61497         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
61498         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
61499         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
61500         gl_AC_TYPE_LONG_LONG.
61501
61502         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
61503         instead of HAVE_LONG_LONG.
61504         * lib/printf-args.c (printf_fetchargs): Likewise.
61505         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
61506         * lib/vasnprintf.c (VASNPRINTF): Likewise.
61507         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
61508         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
61509         gl_AC_TYPE_LONG_LONG.
61510
61511 2006-10-11  Bruno Haible  <bruno@clisp.org>
61512
61513         * m4/longlong.m4: Add comments.
61514         * m4/ulonglong.m4: Likewise.
61515
61516 2006-10-10  Bruno Haible  <bruno@clisp.org>
61517
61518         Make it possible to #define stpcpy, strdup to aliases.
61519         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
61520         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
61521
61522 2006-10-10  Bruno Haible  <bruno@clisp.org>
61523
61524         Make it possible to #define gcd to an alias.
61525         * lib/gcd.c: Include config.h.
61526
61527 2006-10-10  Bruno Haible  <bruno@clisp.org>
61528
61529         Make it possible to #define c_isascii to an alias.
61530         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
61531         defined. Undefine the macros before defining them, to avoid gcc
61532         warnings.
61533         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
61534         define NO_C_CTYPE_MACROS early.
61535
61536 2006-10-10  Bruno Haible  <bruno@clisp.org>
61537
61538         Make it possible to #define set_program_name to an alias.
61539         * lib/progname.c: Don't undefine set_program_name; instead, undefine
61540         ENABLE_RELOCATABLE early.
61541
61542 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61543
61544         Port to Tandem NSK OSS, which has 64-bit signed int but at most
61545         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
61546         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
61547         More generally, don't assume that 64-bit signed int is available
61548         if unsigned int is, and vice versa.
61549         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
61550         unsigned symbols, not on their signed counterparts.
61551         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
61552         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
61553         (UINT64_C, UINTMAX_C):
61554         Likewise.
61555         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
61556         unsigned counterparts.
61557         (Have_long_long, Unsigned): New macros.
61558         (Int): Renamed from INT.
61559         (strtoimax): Use the new macros.
61560         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
61561         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
61562         * modules/inttypes (inttypes.h): Substitute
61563         HAVE_UNSIGNED_LONG_LONG_INT.
61564         * modules/stdint (stdint.h): Likewise.
61565         (Files): Add m4/ulonglong.m4.
61566
61567 2006-10-10  Bruno Haible  <bruno@clisp.org>
61568
61569         Fix a gcc -Wshadow warning.
61570         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
61571         to 'bucket'.
61572         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
61573         gl_linked_indexof_from_to): Likewise.
61574         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
61575         Likewise.
61576         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
61577         Likewise.
61578         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
61579         Reported by Eric Blake.
61580
61581 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
61582
61583         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
61584         for NetBSD.  Problem reported by Bruno Haible.
61585
61586 2006-10-09  Jim Meyering  <jim@meyering.net>
61587
61588         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
61589         Patch from Bruno Haible.
61590
61591 2006-10-09  Jim Meyering  <jim@meyering.net>
61592
61593         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
61594         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
61595         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
61596
61597 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61598
61599         Don't include <config.h> twice; this doesn't work in some cases,
61600         e.g., when config.h has "#define intmax_t long long int" and
61601         we include <config.h>, <inttypes.h>, <config.h> in that order.
61602         Problem reported by Matthew Woehlke in:
61603         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
61604         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
61605         * lib/fts-cycle.c: Don't include config.h.
61606         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
61607         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
61608         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
61609         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
61610         inttypes.h.
61611         * lib/xstrtoumax.c: Likewise.
61612         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
61613         __strtol and the like, so that this module is more like its siblings.
61614         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
61615         Remove; no longer needed now that we assume gnulib inttypes.h.
61616
61617 2006-10-08  Bruno Haible  <bruno@clisp.org>
61618
61619         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
61620         option.
61621
61622 2006-10-07  Jim Meyering  <jim@meyering.net>
61623
61624         * modules/inttypes (inttypes.h): Revert what seems to have been
61625         an inadvertent part of today's change: use "|", not "/" in the
61626         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
61627
61628 2006-10-07  Bruno Haible  <bruno@clisp.org>
61629
61630         * modules/sublist: New file.
61631
61632 2006-10-07  Bruno Haible  <bruno@clisp.org>
61633
61634         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
61635         * modules/argz (argz.h): Likewise.
61636         * modules/arpa_inet (arpa/inet.h): Likewise.
61637         * modules/byteswap (byteswap.h): Likewise.
61638         * modules/configmake (configmake.h): Likewise.
61639         * modules/fcntl (fcntl.h): Likewise.
61640         * modules/fnmatch (fnmatch.h): Likewise.
61641         * modules/getopt (getopt.h): Likewise.
61642         * modules/glob (glob.h): Likewise.
61643         * modules/inttypes (inttypes.h): Likewise.
61644         * modules/netinet_in (netinet/in.h): Likewise.
61645         * modules/poll (poll.h): Likewise.
61646         * modules/stdbool (stdbool.h): Likewise.
61647         * modules/stdint (stdint.h): Likewise.
61648         * modules/sys_select (sys/select.h): Likewise.
61649         * modules/sys_socket (sys/socket.h): Likewise.
61650         * modules/sys_stat (sys/stat.h): Likewise.
61651         * modules/sysexits (sysexits.h): Likewise.
61652         * modules/unistd (unistd.h): Likewise.
61653         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61654         Add a "DO NOT EDIT" comment to the generated file.
61655         (func_import): Likewise for gnulib-comp.m4.
61656
61657 2006-10-07  Bruno Haible  <bruno@clisp.org>
61658
61659         * lib/gl_sublist.h: New file.
61660         * lib/gl_sublist.c: New file.
61661
61662 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61663
61664         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
61665         name (relative to the original working directory) and the file
61666         name component (relative to the temporary working directory).  All
61667         callers changed.
61668         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
61669         * lib/mkdir-p.c (make_dir_parents): Likewise.
61670         * lib/mkdir-p.h (make_dir_parents): Likewise.
61671
61672 2006-10-06  Eric Blake  <ebb9@byu.net>
61673
61674         Define several macros for use by the clean-temp module.
61675         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
61676         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
61677         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
61678
61679         * lib/clean-temp.h (close_stream_temp): New declaration.
61680         * lib/clean-temp.c (includes): Pull in headers according to what
61681         other modules are in use.
61682         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
61683
61684 2006-10-06  Bruno Haible  <bruno@clisp.org>
61685
61686         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
61687         instead of fopen, fwriteerror.
61688
61689 2006-10-06  Bruno Haible  <bruno@clisp.org>
61690
61691         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
61692         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
61693         int.
61694         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
61695         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
61696         Return an error indicator.
61697         Suggested by Eric Blake.
61698
61699 2006-10-06  Bruno Haible  <bruno@clisp.org>
61700
61701         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
61702         Reported by Eric Blake.
61703
61704 2006-10-06  Bruno Haible  <bruno@clisp.org>
61705
61706         * modules/closeout (Description): Mention stderr too.
61707
61708 2006-10-06  Bruno Haible  <bruno@clisp.org>
61709         and Paul Eggert  <eggert@cs.ucla.edu>
61710
61711         * lib/closeout.c (close_stdout): Also close stderr.
61712         * lib/closeout.h: Update comment.
61713
61714 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61715
61716         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
61717         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
61718         * lib/dirchownmod.c: Include lchown.h.
61719         * lib/lchown.c: Don't include files that lchown.h now includes.
61720         Don't declare chown, since lchown.h now does that.
61721         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
61722         (lchown): Define to rpl_chown if lchown is declared but
61723         does not exist.  Declare using a prototype if lchown is not
61724         declared.  Add a copyright notice.
61725         * lib/mkstemp.h: Include <unistd.h>.
61726         * lib/openat.c: Include lchown.h.
61727
61728         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
61729         we now test for that separately.
61730         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
61731         rather than O_NOFOLLOW, when testing whether it's possible to
61732         avoid a race condition reliably.
61733         * lib/savewd.c (savewd_chdir): Likewise.
61734
61735         Remove macros that are no longer needed now that stdint.h is
61736         reliable.
61737         * lib/fsusage.c (UINTMAX_MAX): Remove.
61738         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
61739         * lib/utimecmp.c (SIZE_MAX): Remove.
61740
61741         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
61742
61743         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
61744         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
61745         O_NOATIME works.
61746
61747 2006-10-05  Bruno Haible  <bruno@clisp.org>
61748
61749         * lib/gl_list.h (gl_sortedlist_search_from_to,
61750         gl_sortedlist_indexof_from_to): New declarations.
61751         (gl_list_implementation): New fields sortedlist_search_from_to,
61752         sortedlist_indexof_from_to.
61753         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
61754         inline functions.
61755         * lib/gl_list.c (gl_sortedlist_search_from_to,
61756         gl_sortedlist_indexof_from_to): New functions.
61757         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
61758         function.
61759         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
61760         (gl_array_sortedlist_search_from_to): New function.
61761         (gl_array_list_implementation): Update.
61762         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
61763         function.
61764         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
61765         (gl_carray_sortedlist_search_from_to): New function.
61766         (gl_carray_list_implementation): Update.
61767         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
61768         gl_linked_sortedlist_indexof_from_to): New functions.
61769         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61770         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61771         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
61772         gl_tree_sortedlist_indexof_from_to): New functions.
61773         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61774         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61775         Update.
61776         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61777         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
61778         Update.
61779
61780 2006-10-05  Bruno Haible  <bruno@clisp.org>
61781
61782         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
61783         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
61784         (struct gl_list_implementation): Add fields search_from_to,
61785         indexof_from_to. Remove fields search, indexof.
61786         (gl_list_search): Use the search_from_to method.
61787         (gl_list_search_from, gl_list_search_from_to): New functions.
61788         (gl_list_indexof): Use the indexof_from_to method.
61789         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61790         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
61791         (gl_list_search_from, gl_list_search_from_to): New functions.
61792         (gl_list_indexof): Use the indexof_from_to method.
61793         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61794         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
61795         gl_array_indexof. Add start_index, end_index arguments.
61796         (gl_array_search_from_to): Renamed from gl_array_search. Add
61797         start_index, end_index arguments.
61798         (gl_array_remove, gl_array_list_implementation): Update.
61799         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
61800         gl_carray_indexof. Add start_index, end_index arguments.
61801         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
61802         start_index, end_index arguments.
61803         (gl_carray_remove, gl_carray_list_implementation): Update.
61804         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
61805         gl_linked_search. Add start_index, end_index arguments.
61806         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
61807         start_index, end_index arguments.
61808         (gl_linked_remove): Update.
61809         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61810         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61811         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
61812         field to 'size_t'.
61813         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
61814         gl_tree_search. Add start_index, end_index arguments.
61815         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
61816         start_index, end_index arguments.
61817         (gl_tree_remove): Update.
61818         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61819         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61820         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
61821         function.
61822         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
61823         gl_tree_search. Add start_index, end_index arguments.
61824         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
61825         start_index, end_index arguments.
61826         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61827         Update.
61828         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61829
61830 2006-10-05  Bruno Haible  <bruno@clisp.org>
61831
61832         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
61833
61834         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
61835         fwriteerror_temp): New declarations.
61836         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
61837         (descriptors): New variable.
61838         (cleanup): First, close the descriptors.
61839         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
61840         fclose_temp, fwriteerror_temp): New functions.
61841
61842 2006-10-04  Jim Meyering  <jim@meyering.net>
61843
61844         * lib/fts.c (fts_open): Tiny comment change.
61845
61846 2006-10-04  Bruno Haible  <bruno@clisp.org>
61847
61848         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
61849         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
61850         gl_LOCK_BODY.
61851         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
61852         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
61853         gl_LOCK_EARLY_BODY.
61854         (gl_LOCK): Require gl_LOCK_BODY.
61855
61856 2006-10-04  Bruno Haible  <bruno@clisp.org>
61857
61858         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
61859         (gl_oset_search_atleast): New declaration.
61860         (struct gl_oset_implementation): Add field 'search_atleast'.
61861         (gl_oset_search_atleast): New inline function.
61862         * lib/gl_oset.c (gl_oset_search_atleast): New function.
61863         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
61864         (gl_array_oset_implementation): Update.
61865         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
61866         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
61867         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
61868
61869 2006-10-04  Bruno Haible  <bruno@clisp.org>
61870
61871         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
61872
61873 2006-10-03  Bruno Haible  <bruno@clisp.org>
61874
61875         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
61876         from gl_avltreehash_list_implementation.
61877
61878 2006-10-03  Bruno Haible  <bruno@clisp.org>
61879
61880         * lib/gl_oset.c (gl_oset_add): Fix return type.
61881
61882 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
61883
61884         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
61885
61886 2006-10-02  Eric Blake  <ebb9@byu.net>
61887
61888         * modules/strnlen (Depends-on): Add extensions.
61889
61890 2006-10-02  Eric Blake  <ebb9@byu.net>
61891
61892         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
61893         definition in 2.60+.
61894
61895 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
61896
61897         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
61898         checks.
61899
61900 2006-10-02  Bruno Haible  <bruno@clisp.org>
61901
61902         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
61903         to the AUTOMAKE_OPTIONS.
61904         Reported by Jim Meyering.
61905
61906 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
61907
61908         Work around bug in Solaris 10 /proc file system:
61909         /proc/self/fd/NNN/.. isn't the parent directory of
61910         the directory whose file descriptor is NNN.  This needs to
61911         be worked around at run time, not compile time, since a
61912         program might be built on Solaris 8, where things work, and
61913         run on Solaris 10.
61914         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
61915         to use the following interface instead:
61916         (OPENAT_BUFFER_SIZE): New macro.
61917         (openat_proc_name): New function.
61918         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
61919         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
61920         Likewise.
61921         * lib/openat-proc.c: New file.
61922         * modules/openat (Files): Add lib/openat-proc.c.
61923         (Depends-on): Add same-inode, stdbool.
61924         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
61925
61926 2006-09-29  Bruno Haible  <bruno@clisp.org>
61927
61928         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
61929         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
61930         argument. Set stdout_closed before testing for ferror, not after.
61931         (fwriteerror, fwriteerror_no_ebadf): New functions.
61932
61933 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61934
61935         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
61936
61937 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
61938
61939         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
61940         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
61941
61942 2006-09-28  Jim Meyering  <jim@meyering.net>
61943
61944         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
61945         Include <unistd.h>.
61946
61947 2006-09-28  Bruno Haible  <bruno@clisp.org>
61948
61949         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
61950         * modules/linkedhash-list (Depends-on): Likewise.
61951         * modules/rbtreehash-list (Depends-on): Likewise.
61952
61953 2006-09-28  Bruno Haible  <bruno@clisp.org>
61954
61955         * lib/strndup.h: Simplify the redefinition of strndup.
61956         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
61957         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
61958
61959 2006-09-28  Bruno Haible  <bruno@clisp.org>
61960
61961         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
61962         * lib/gl_linkedhash_list.c: Likewise.
61963         * lib/gl_rbtreehash_list.c: Likewise.
61964
61965 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
61966
61967         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
61968         getaddrinfo.
61969
61970         * lib/__fpending.h: Don't include <stdio_ext.h> unless
61971         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
61972         it causes <stdio_ext.h> to cause a compile-time error.
61973         Problem reported by Nelson H. F. Beebe.
61974         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
61975         of HAVE_DECL___PENDING.
61976
61977         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
61978         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
61979         declaration.
61980
61981 2006-09-27  Jim Meyering  <jim@meyering.net>
61982
61983         This file could end up with a definition for a function
61984         named __strndup, rather than rpl_strndup on a system with
61985         incomplete weak_alias support.
61986         * lib/strndup.c (strndup): Rename from __strndup.
61987         Remove #defines that used to map __strndup to strndup.
61988         Don't use K&R prototypes.
61989         Remove LIBC-related code, since this file is not sync'd with glibc.
61990         * lib/strndup.h: Revamp, accordingly.
61991         * m4/strndup.m4: Modernize.
61992
61993 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
61994
61995         * modules/savewd (Depends-on): Add 'raise'.
61996         * lib/savewd.c: Include <signal.h>, for 'raise'.
61997
61998 2006-09-26  Jim Meyering  <jim@meyering.net>
61999
62000         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
62001         when we detect Darwin 8.7.0's acl_get_file bug.
62002         Rearrange to perform the new (below) run-test while $LIBS
62003         contains any acl-related library.  Set USE_ACL at the end.
62004         (gl_ACL_GET_FILE): New function.
62005
62006 2006-09-26  Eric Blake  <ebb9@byu.net>
62007
62008         * lib/verror.c: Include <config.h> unconditionally.
62009
62010 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
62011
62012         * modules/clock-time (Maintainer): Add self.
62013         * modules/getlogin_r (Depends-on): Add extensions.
62014
62015 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62016
62017         * modules/clock-time: New module.
62018         * modules/nanosleep (Depends-on): Add clock-time.
62019         * modules/gethrxtime (Depends-on): Likewise.
62020         * modules/gettime (Depends-on): Likewise.
62021         * modules/settime (Depends-on): Likewise.
62022
62023         * modules/fts-lgpl: Depend on openat.
62024         * modules/mkancesdirs: Depend on savewd.
62025         * modules/mkdir-p: Likewise.
62026
62027 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62028
62029         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62030
62031         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62032         `gl_have_arbitrary_file_name_length_limit' to
62033         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62034         actually works between configure runs.
62035
62036 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62037             Bruno Haible  <bruno@clisp.org>
62038
62039         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62040
62041 2006-09-25  Jim Meyering  <jim@meyering.net>
62042
62043         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62044         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62045
62046 2006-09-25  Eric Blake  <ebb9@byu.net>
62047
62048         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62049         exec's in 2006-09-18 patch when shuffling fds.
62050
62051 2006-09-25  Bruno Haible  <bruno@clisp.org>
62052
62053         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62054         Reported by Jim Meyering.
62055
62056 2006-09-24  Jim Meyering  <jim@meyering.net>
62057
62058         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62059         compare a pointer against a literal "0".  That caused failures with
62060         at least HP-UX's hpcc.
62061
62062 2006-09-22  Simon Josefsson  <jas@extundo.com>
62063
62064         * modules/gc-sha1:
62065         * modules/gc-md4:
62066         * modules/gc-hmac-sha1:
62067         * modules/gc-hmac-md5:
62068         * modules/gc-des:
62069         * modules/gc-arcfour: Distribute more files.
62070
62071 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62072
62073         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62074         (gl_linked_iterator_from_to): Initialize struct completely.
62075         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62076         (gl_tree_iterator_from_to): Likewise
62077         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62078         * lib/gl_array_list.c [lint] (gl_array_iterator)
62079         (gl_array_iterator_from_to): Likewise.
62080         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62081         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62082         (gl_carray_iterator_from_to): Likewise.
62083
62084         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62085         * lib/md4.c (md4_process_block): Remove unused variable.
62086         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62087         parentheses for clarity.
62088
62089 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62090
62091         * modules/bison-i18n (Depends-on): Add gettext.
62092
62093 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62094
62095         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62096         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62097         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62098         also add missing comma that caused broken test.
62099         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62100         stdlib.h, for `abort'.
62101         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62102         variables.
62103         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62104         include unistd.h if present, for `rmdir'.
62105         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62106         variables.
62107         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62108         in the process include standard headers for prototypes.
62109         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62110         gets declared on GNU/Linux.
62111         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62112         unistd.h, for `rmdir'.
62113         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62114
62115         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62116         always true.
62117         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62118
62119         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62120
62121 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62122
62123         * gnulib-tool (func_version): Create output all at once.  This
62124         may help avoid triggering unnecessary SIGPIPEs, and at any
62125         rate it doesn't hurt.
62126
62127 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62128             Bruno Haible  <bruno@clisp.org>
62129
62130         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62131         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62132         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62133
62134         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62135         (gl_FUNC_VASPRINTF): Invoke it.
62136
62137 2006-09-22  Bruno Haible  <bruno@clisp.org>
62138
62139         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62140         getloadavg.c as first argument.
62141
62142 2006-09-22  Bruno Haible  <bruno@clisp.org>
62143
62144         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62145         at the beginning of the gl_INIT macro.
62146         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62147         gl_GETLOADAVG.
62148
62149 2006-09-22  Bruno Haible  <bruno@clisp.org>
62150
62151         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62152         module.
62153         Suggested by Ralf Wildenhues.
62154
62155 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62156
62157         Import this patch from libc:
62158
62159         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62160
62161         * lib/regex_internal.c (re_string_reconstruct): Handle
62162         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62163         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62164         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62165         re_string_context_at.
62166
62167         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62168         now requires it.
62169         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62170         gl_REGEX now does it for us.
62171         (gl_REGEX): Add test taken from
62172         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62173
62174         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62175         Check that large offsets work.  Modernize Autoconf usages.
62176         Prefer "yes" to mean a good thing rather than a bad.
62177         Don't put "#define mkstemp" in config.h, as this might interfere
62178         with standard system headers that "#define mkstemp mkstemp64".
62179
62180         * modules/mkstemp (Depends-on): Add extensions, so that
62181         mkstemp is visible on some platforms.
62182         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62183         (Include): Change to "mkstemp.h" from <stdlib.h>.
62184         (Files): Add mkstemp.h.
62185
62186         * lib/mkstemp.h: New file, since some standard headers
62187         #define mkstemp.
62188         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62189         Include "mkstemp.h".
62190         Make the _LIBC code resemble glibc original more,
62191         e.g., use K&R style.
62192         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62193         (mkstemp): Remove, since mkstemp.h does this for us.
62194         * lib/stdlib--.h: Include mkstemp.h.
62195
62196         Import this patch from libc:
62197
62198         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62199
62200         * lib/tempname.c (__gen_tempname): Change attempts_min
62201         into a macro.  Use preprocessor to decide how to initialize
62202         attempts [Coverity CID 67].
62203
62204 2006-09-20  Bruno Haible  <bruno@clisp.org>
62205
62206         * lib/mkdtemp.c: Import from libc.
62207         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62208                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62209                 attempts_min into a macro.  Use preprocessor to decide how to
62210                 initialize attempts [Coverity CID 67].
62211         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62212                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62213                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62214
62215 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62216
62217         * gnulib-tool (func_exit): New function, to allow to pass the
62218         exit status portably through the trap.  Use everywhere.
62219         (--help, --version): Signal a write error.
62220         (trap): catch SIGPIPE, for write errors.
62221         Exit at the end of the trap, with the correct exit status.
62222
62223 2006-09-19  Karl Berry  <karl@gnu.org>
62224
62225         * doc/gnulib.texi: note about the license texinfo files.
62226
62227 2006-09-19  Eric Blake  <ebb9@byu.net>
62228
62229         * gnulib-tool: Avoid space-tab.
62230
62231 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62232
62233         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62234         that prevented coreutils 6.1 from building.  Problem reported
62235         by Petter Reinholdtsen.
62236
62237 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62238
62239         * gnulib-tool (avoidlist): Fix typo that broke options like
62240         --avoid=lock that are used by coreutils bootstrap.
62241
62242 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
62243
62244         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
62245         more systematically.
62246
62247 2006-09-18  Jim Meyering  <jim@meyering.net>
62248
62249         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
62250
62251 2006-09-18  Bruno Haible  <bruno@clisp.org>
62252
62253         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
62254
62255 2006-09-18  Bruno Haible  <bruno@clisp.org>
62256
62257         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
62258         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
62259         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
62260         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
62261         * m4/gettext.m4: Require autoconf >= 2.52.
62262         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
62263         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
62264         of gl_cv_header_inttypes_h.
62265
62266 2006-09-18  Bruno Haible  <bruno@clisp.org>
62267
62268         * lib/javaversion.c: Include configmake.h.
62269
62270 2006-09-18  Bruno Haible  <bruno@clisp.org>
62271
62272         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
62273         avoid that the while loops be executed in a subshell.
62274
62275 2006-09-18  Bruno Haible  <bruno@clisp.org>
62276
62277         * MODULES.html.sh (func_module): Break long lines.
62278         Suggested by Bruce Korb <bkorb@gnu.org>.
62279
62280 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62281
62282         Speed up by a factor of 1.12.
62283         * gnulib-tool (nl): New variable.
62284         (func_import): Rewrite include directive extraction to only read each
62285         directive once.
62286
62287 2006-09-17  Bruno Haible  <bruno@clisp.org>
62288
62289         * modules/javaversion (Makefile.am): Remove DEFS setting.
62290         (Depends-on): Add configmake, for PKGDATADIR definition.
62291
62292 2006-09-17  Bruno Haible  <bruno@clisp.org>
62293
62294         * gnulib-tool (func_create_testdir): Rewrite all files at once.
62295
62296 2006-09-17  Bruno Haible  <bruno@clisp.org>
62297
62298         * gnulib-tool (func_append): New function, stolen from libtool.m4.
62299         (func_modules_transitive_closure, func_modules_add_dummy,
62300         func_modules_to_filelist, func_import, func_create_testdir,
62301         func_create_megatestdir, ...): Use it wherever possible.
62302         Suggested by Ralf Wildenhues.
62303
62304 2006-09-16  Karl Berry  <karl@gnu.org>
62305
62306         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
62307         to avoid sectioning errors.
62308         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
62309         [ifinfo]: blank line after @center-ed titles.
62310         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
62311         Spell FSF address consistently with others.
62312         (These changes approved by rms.)
62313
62314 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62315
62316         Speed up by a factor of 1.61.
62317         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
62318         already checked module names again.
62319
62320 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62321
62322         Speed up by a factor of 1.13.
62323         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
62324         for new_files, and the input to func_add_or_update.
62325
62326 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62327
62328         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62329         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62330
62331 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62332
62333         * modules/mkancesdirs (Depends-on): Add fcntl.
62334         * modules/savewd: New file.
62335         * MODULES.html.sh (File system functions): Add savewd.
62336
62337         * modules/configmake (Makefile.am): Add support for the
62338         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62339
62340 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62341
62342         * m4/savewd.m4: New file.
62343
62344 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62345
62346         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62347         (dirchownmod): New arg FD.  All callers changed.
62348         Use FD rather than opening the directory ourself, as opening is
62349         now the caller's responsibility.
62350         * lib/dirchownmod.h: Likewise.
62351         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62352         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62353         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62354         (test_dir): Remove.
62355         (mkancesdirs): Return length of prefix of FILE that has already
62356         been made, or -2 if there is a child doing the work.  Redo
62357         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62358         ".", and treat ".." specially since it might stray back into
62359         already-created areas.  Use a subprocess if necessary.  New arg
62360         WD; all users changed.  MAKE_DIR function should now return 1
62361         if it creates a directory that is not readable.  Return -2 if
62362         a child process is spun off.
62363         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62364         Adjust signature to match code.
62365         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62366         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62367         all users changed.
62368         * lib/savewd.c, lib/savewd.h: New files.
62369
62370 2006-09-15  Jim Meyering  <jim@meyering.net>
62371
62372         * modules/rename-dest-slash: New module.
62373         * MODULES.html.sh (posix_compat): Add it here.
62374
62375         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62376
62377 2006-09-15  Jim Meyering  <jim@meyering.net>
62378
62379         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62380         file.
62381
62382         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62383
62384 2006-09-15  Jim Meyering  <jim@meyering.net>
62385
62386         * lib/rename-dest-slash.c (has_trailing_slash): Use
62387         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62388         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62389         test before testing whether SRC is a directory.
62390         Suggestions from Bruno Haible.
62391
62392         Avoid a warning about an unused variable.
62393         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62394         into the #ifdef block where it's used.
62395
62396         * lib/rename-dest-slash.c: New file.
62397
62398 2006-09-14  Bruno Haible  <bruno@clisp.org>
62399
62400         * lib/allocsa.c: Include <config.h> unconditionally.
62401         * lib/asnprintf.c: Likewise.
62402         * lib/asprintf.c: Likewise.
62403         * lib/c-strcasecmp.c: Likewise.
62404         * lib/c-strcasestr.c: Likewise.
62405         * lib/c-strncasecmp.c: Likewise.
62406         * lib/c-strstr.c: Likewise.
62407         * lib/classpath.c: Likewise.
62408         * lib/clean-temp.c: Likewise.
62409         * lib/concatpath.c: Likewise.
62410         * lib/copy-file.c: Likewise.
62411         * lib/csharpcomp.c: Likewise.
62412         * lib/csharpexec.c: Likewise.
62413         * lib/execute.c: Likewise.
62414         * lib/fatal-signal.c: Likewise.
62415         * lib/findprog.c: Likewise.
62416         * lib/fwriteerror.c: Likewise.
62417         * lib/gl_array_list.c: Likewise.
62418         * lib/gl_array_oset.c: Likewise.
62419         * lib/gl_avltree_list.c: Likewise.
62420         * lib/gl_avltree_oset.c: Likewise.
62421         * lib/gl_avltreehash_list.c: Likewise.
62422         * lib/gl_carray_list.c: Likewise.
62423         * lib/gl_linked_list.c: Likewise.
62424         * lib/gl_linkedhash_list.c: Likewise.
62425         * lib/gl_list.c: Likewise.
62426         * lib/gl_oset.c: Likewise.
62427         * lib/gl_rbtree_list.c: Likewise.
62428         * lib/gl_rbtree_oset.c: Likewise.
62429         * lib/gl_rbtreehash_list.c: Likewise.
62430         * lib/imaxabs.c: Likewise.
62431         * lib/imaxdiv.c: Likewise.
62432         * lib/javacomp.c: Likewise.
62433         * lib/javaexec.c: Likewise.
62434         * lib/javaversion.c: Likewise.
62435         * lib/linebreak.c: Likewise.
62436         * lib/localcharset.c: Likewise.
62437         * lib/lock.c: Likewise.
62438         * lib/mbchar.c: Likewise.
62439         * lib/mbswidth.c: Likewise.
62440         * lib/mkdtemp.c: Likewise.
62441         * lib/pipe.c: Likewise.
62442         * lib/printf-args.c: Likewise.
62443         * lib/printf-parse.c: Likewise.
62444         * lib/progname.c: Likewise.
62445         * lib/progreloc.c: Likewise.
62446         * lib/readlink.c: Likewise.
62447         * lib/sh-quote.c: Likewise.
62448         * lib/stpcpy.c: Likewise.
62449         * lib/stpncpy.c: Likewise.
62450         * lib/strcasecmp.c: Likewise.
62451         * lib/strcasestr.c: Likewise.
62452         * lib/strcspn.c: Likewise.
62453         * lib/striconv.c: Likewise.
62454         * lib/strncasecmp.c: Likewise.
62455         * lib/strnlen1.c: Likewise.
62456         * lib/strstr.c: Likewise.
62457         * lib/strtok_r.c: Likewise.
62458         * lib/tls.c: Likewise.
62459         * lib/tmpdir.c: Likewise.
62460         * lib/unicodeio.c: Likewise.
62461         * lib/unsetenv.c: Likewise.
62462         * lib/vasnprintf.c: Likewise.
62463         * lib/vasprintf.c: Likewise.
62464         * lib/wait-process.c: Likewise.
62465         * lib/xallocsa.c: Likewise.
62466         * lib/xsetenv.c: Likewise.
62467         * lib/xstriconv.c: Likewise.
62468
62469 2006-09-13  Simon Josefsson  <jas@extundo.com>
62470
62471         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
62472         that internally, suggested by Ralf Wildenhues
62473         <Ralf.Wildenhues@gmx.de>.
62474
62475 2006-09-13  Simon Josefsson  <jas@extundo.com>
62476
62477         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
62478         @LIBOBJS@.
62479         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62480
62481 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62482
62483         * lib/_fpending.c: Include <config.h> unconditionally, since we no
62484         longer worry about uses that don't define HAVE_CONFIG_H.
62485         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
62486         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
62487         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
62488         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
62489         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
62490         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
62491         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
62492         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
62493         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
62494         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
62495         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
62496         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
62497         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
62498         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
62499         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
62500         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
62501         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
62502         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
62503         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
62504         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
62505         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
62506         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
62507         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
62508         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
62509         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
62510         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
62511         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
62512         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
62513         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
62514         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
62515         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
62516         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
62517         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
62518         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
62519         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
62520         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
62521         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
62522         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
62523         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
62524         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
62525         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
62526         Likewise.
62527
62528 2006-09-13  Eric Blake  <ebb9@byu.net>
62529
62530         * lib/getopt.c: Fix typo in last commit.
62531
62532 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62533
62534         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
62535         dgettext.
62536
62537 2006-09-12  Jim Meyering  <jim@meyering.net>
62538
62539         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
62540         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
62541         Reported by Nelson H. F. Beebe.
62542
62543 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62544
62545         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
62546         program_invocation_name and program_invocation_short_name are
62547         initialized.
62548         * lib/argp-namefrob.h: Move declarations of program_invocation_name
62549         and program_invocation_short_name to argp.h, so they are visible
62550         to user programs.
62551         * lib/argp.h: Likewise
62552
62553 2006-09-10  Bruno Haible  <bruno@clisp.org>
62554
62555         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62556         m4/inttypes_h.m4, m4/uintmax_t.m4.
62557
62558 2006-09-10  Bruno Haible  <bruno@clisp.org>
62559
62560         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
62561         gl_AC_TYPE_UINTMAX_T.
62562
62563 2006-09-10  Bruno Haible  <bruno@clisp.org>
62564
62565         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
62566
62567 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62568
62569         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
62570         convention.  Text proposed by Bruno Haible.
62571         (struct argp_option): Document the use of N_() wrappers.
62572
62573         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
62574         '\v', and translate the two parts separately, instead of feeding
62575         the whole string to gettext.  This allows to exclude
62576         '\v' from the strings visible to the translator by writing doc
62577         strings as N_("..") "\v" N_("..").
62578
62579 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
62580
62581         * config/srclist.txt: Undo latest change; the bug was fixed.
62582
62583 2006-09-09  Bruno Haible  <bruno@clisp.org>
62584
62585         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
62586         assignments if building a library without libtool.
62587         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
62588         in func_emit_lib_Makefile_am.
62589         (func_import): When building a static library libfoo.a, arrange to
62590         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
62591         (func_create_testdir): Likewise.
62592         * modules/gc (configure.ac, Makefile.am): If building statically,
62593         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
62594         * modules/iconvme (configure.ac, Makefile.am): Likewise.
62595         * modules/striconv (configure.ac, Makefile.am): Likewise.
62596         Based on a suggestion by Ralf Wildenhues.
62597
62598 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62599
62600         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62601         Check for unistd.h too, since Autoconf doesn't assume POSIX.
62602         Also:
62603
62604         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62605         Add year_2050_test to catch glibc bug 2821
62606         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62607
62608         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62609         Prefer #ifdef to #if.
62610
62611         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
62612         Return from 'main' instead of calling 'exit'.
62613
62614 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62615
62616         * lib/mktime.c (guess_time_tm): Fix bug where mktime
62617         returned the maximum time_t value rather than (time_t) -1.
62618         Problem originally reported by William Bardwell
62619         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62620
62621         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62622         Moved to here ...
62623         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62624         ... from here.
62625
62626 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62627
62628         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
62629         2821 is fixed.
62630
62631 2006-09-08  Jim Meyering  <jim@meyering.net>
62632
62633         Don't make generated files read-only.  That would bother too many
62634         people.  However, do retain the ability to work when targets are
62635         read-only: remove the destination and temporary files before writing
62636         them (when generated via sed or echo), or by using the -f option for
62637         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
62638         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62639         * modules/byteswap, modules/configmake, modules/fcntl:
62640         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62641         * modules/localcharset, modules/netinet_in, modules/poll:
62642         * modules/stdbool, modules/stdint, modules/sys_select:
62643         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62644
62645 2006-09-08  Jim Meyering  <jim@meyering.net>
62646
62647         Avoid new build failure on FreeBSD 6.0.
62648         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
62649         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
62650         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
62651
62652 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62653
62654         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
62655
62656 2006-09-07  Jim Meyering  <jim@meyering.net>
62657
62658         Fix global typo in last change: use chmod u-w, not chmod u-x.
62659         Spotted by Paul Eggert and Bruce Korb.
62660         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62661         * modules/byteswap, modules/configmake, modules/fcntl:
62662         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62663         * modules/localcharset, modules/netinet_in, modules/poll:
62664         * modules/stdbool, modules/stdint, modules/sys_select:
62665         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62666
62667 2006-09-06  Jim Meyering  <jim@meyering.net>
62668
62669         Make generated files be read-only.
62670         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
62671         Ensure that each generated file is now read-only.
62672         * modules/argz: Likewise.
62673         * modules/arpa_inet: Likewise.
62674         * modules/byteswap: Likewise.
62675         * modules/configmake: Likewise.
62676         * modules/fcntl: Likewise.
62677         * modules/fnmatch: Likewise.
62678         * modules/getopt: Likewise.
62679         * modules/glob: Likewise.
62680         * modules/inttypes: Likewise.
62681         * modules/netinet_in: Likewise.
62682         * modules/poll: Likewise.
62683         * modules/stdbool: Likewise.
62684         * modules/stdint: Likewise.
62685         * modules/sys_select: Likewise.
62686         * modules/sys_socket: Likewise.
62687         * modules/sys_stat: Likewise.
62688         * modules/sysexits: Likewise.
62689         * modules/localcharset: Same as above, but continue using temporary
62690         file named "t-$@" (why different?) rather than the "$@-t" used
62691         everywhere else.
62692
62693         * modules/sysexits (Makefile.am): Replace literal occurrences
62694         of "sysexit.h" more readable, and more consistent, "$@".
62695
62696 2006-09-06  Bruno Haible  <bruno@clisp.org>
62697
62698         * modules/striconv: New file.
62699         * modules/xstriconv: New file.
62700         * MODULES.html.sh (Internationalization functions): Add striconv,
62701         xstriconv.
62702
62703 2006-09-06  Bruno Haible  <bruno@clisp.org>
62704
62705         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
62706         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
62707         not using libtool correctly.
62708
62709 2006-09-06  Bruno Haible  <bruno@clisp.org>
62710
62711         * lib/striconv.h: New file.
62712         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
62713         iconvstring.c.
62714         * lib/xstriconv.h: New file.
62715         * lib/xstriconv.c: New file.
62716
62717 2006-09-06  Bruno Haible  <bruno@clisp.org>
62718
62719         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62720         lib_..._LDFLAGS.
62721
62722 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62723
62724         * lib/argz_.h: Sync from Libtool.
62725
62726         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
62727                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62728
62729         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
62730
62731 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62732
62733         * modules/trim: New file.
62734
62735 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62736
62737         * lib/trim.h: New file.
62738         * lib/trim.c: New file.
62739
62740 2006-09-05  Bruno Haible  <bruno@clisp.org>
62741
62742         * MODULES.html.sh (String handling): Add trim.
62743
62744 2006-09-04  Karl Berry  <karl@gnu.org>
62745
62746         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
62747         until next release.
62748
62749 2006-09-03  Bruno Haible  <bruno@clisp.org>
62750
62751         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
62752         correctly.
62753
62754 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62755
62756         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
62757         not gl_GETLOADAVG.  Omit unneeded semicolons.
62758         Problems reported by Ralf Wildenhues in
62759         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62760         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
62761         at the end, which is the usual gnulib style.
62762
62763         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
62764         of doing all the work ourselves.
62765         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
62766         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
62767
62768 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62769
62770         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
62771         Problem reported by Ralf Wildenhues in
62772         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62773
62774         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
62775         HAVE_STRUCT_STATFS_F_FSTYPENAME.
62776
62777 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62778
62779         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
62780         yesterday's patch by changing test -n to test -z.
62781
62782 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62783
62784         * modules/getloadavg (Files): Add m4/getloadavg.m4.
62785         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
62786         the former is now obsolescent.
62787
62788         * modules/chdir-long (Depends-on): Add fcntl.
62789
62790 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62791
62792         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
62793         obsolescent, and programs should use gnulib instead.
62794         * m4/getloadavg.m4: New file, with contents taken from Autoconf
62795         but with prefixes changed.
62796
62797 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62798
62799         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
62800         or stdbool.h, because they might not exist while configuring.
62801
62802         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
62803         Don't include unistd.h or limits.h; not needed, since chdir-long.h
62804         does that for us.
62805         (O_DIRECTORY): Remove.
62806
62807 2006-08-31  Eric Blake  <ebb9@byu.net>
62808
62809         * gnulib-tool: Don't let emacs change spaces to TAB.
62810
62811 2006-08-31  Bruno Haible  <bruno@clisp.org>
62812
62813         * gnulib-tool: When calling func_import more than once, do it in a
62814         subshell.
62815         Reported by Eric Blake <ebb9@byu.net>.
62816
62817 2006-08-31  Bruno Haible  <bruno@clisp.org>
62818
62819         * gnulib-tool (nl): Remove variable.
62820         (sed_transform_lib_file): Use more robust test for config-h module.
62821         (func_import): Fix typo in 2006-08-25 patch.
62822
62823 2006-08-31  Bruno Haible  <bruno@clisp.org>
62824
62825         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
62826         specified, augment Makefile.am variables instead of assigning them.
62827
62828 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62829
62830         Work around a bug in both the Linux and SunOS 64-bit kernels:
62831         nanosleep mishandles sleeps for longer than 2**31 seconds.
62832         Problem reported by Frank v Waveren in
62833         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
62834         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
62835         Check for nanosleep bug.
62836         (LIB_NANOSLEEP): Append clock_gettime library if needed.
62837
62838 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62839
62840         Work around a bug in both the Linux and SunOS 64-bit kernels:
62841         nanosleep mishandles sleeps for longer than 2**31 seconds.
62842         Problem reported by Frank v Waveren in
62843         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
62844         * lib/nanosleep.c (BILLION): New constant.
62845         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
62846         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
62847         implementation.
62848
62849 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62850
62851         * modules/nanosleep (Depends-on): Add gettime.
62852
62853 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62854         and Simon Josefsson  <jas@extundo.com>
62855         and Oskar Liljeblad  <oskar@osk.mine.nu>
62856
62857         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
62858         * gnulib-tool (func_import): New license type 'unmodifiable license
62859         text'.
62860         * modules/fdl: Use it.  Longer description.
62861         * module/gpl, module/lgpl: New files.
62862
62863 2006-08-30  Jim Meyering  <jim@meyering.net>
62864
62865         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
62866         shadowing the parameter.
62867
62868 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62869
62870         Sync from Libtool:
62871
62872         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62873
62874         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
62875         sharing with gnulib.  Report by Eric Blake.
62876
62877 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62878
62879         * modules/isapipe: New file.
62880         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
62881
62882 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62883
62884         * modules/configmake (Makefile.am): Add a comment, and omit
62885         the CONFIGMAKE_ prefix from generated macro names.  Suggested
62886         by Bruno Haible.
62887
62888 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62889
62890         * m4/isapipe.m4: New file.
62891
62892 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62893
62894         * lib/isapipe.c, lib/isapipe.h: New files.
62895
62896 2006-08-29  Jim Meyering  <jim@meyering.net>
62897
62898         * modules/configmake (Makefile.am): Make configmake.h depend on
62899         Makefile.  Otherwise, a stale configmake.h could hang around.
62900
62901 2006-08-29  Eric Blake  <ebb9@byu.net>
62902
62903         * lib/error.c (error_at_line, print_errno_message): Match libc, after
62904         resolution of upstream bug 3044.
62905
62906 2006-08-29  Bruno Haible  <bruno@clisp.org>
62907
62908         * modules/localcharset (Depends-on): Add configmake.
62909         (Makefile.am): Remove setting of LIBDIR through DEFS.
62910
62911 2006-08-29  Bruno Haible  <bruno@clisp.org>
62912
62913         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
62914         defined.
62915
62916 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62917
62918         * modules/fcntl: New file.
62919         * modules/chdir-safer (Depends-on): Add fcntl.
62920         * modules/fts: Likewise.
62921         * modules/mkdir-p: Likewise.
62922
62923         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
62924         This undoes the most recent change, since we're now addressing the
62925         problem in a different way.
62926
62927         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
62928         into output, since the output might be called Makefile.am even
62929         if $makefile_name is something different.
62930         (func_import): Use $makefile_am rather than
62931         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
62932         empty.
62933
62934         * modules/inttypes (Files): Add m4/inttypes-h.m4.
62935
62936 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62937
62938         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
62939         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
62940         recent change to stdint.m4, since we're now addressing the problem in a
62941         different way.
62942
62943 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62944
62945         * m4/fcntl_h.m4: New file.
62946
62947 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62948
62949         * lib/fcntl_.h: New file.
62950         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
62951         the fcntl module.
62952         * lib/dirchownmod.c: Likewise.
62953         * lib/fts.c: Likewise.
62954
62955         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
62956         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
62957         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
62958         just before including <inttypes.h>, to avoid circular inclusion.
62959
62960 2006-08-28  Jim Meyering  <jim@meyering.net>
62961
62962         * doc/visibility.texi: Actually read and correct the grammar of the
62963         sentence affected by yesterday's change.
62964
62965 2006-08-28  Eric Blake  <ebb9@byu.net>
62966
62967         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
62968         needs wrapper.
62969
62970 2006-08-28  Eric Blake  <ebb9@byu.net>
62971
62972         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
62973
62974 2006-08-28  Eric Blake  <ebb9@byu.net>
62975
62976         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
62977
62978 2006-08-28  Bruno Haible  <bruno@clisp.org>
62979
62980         * modules/c-strstr: New file, from GNU gettext.
62981         * MODULES.html.sh (String handling): Add c-strstr.
62982
62983 2006-08-28  Bruno Haible  <bruno@clisp.org>
62984
62985         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
62986         macros.
62987         Reported by Eric Blake.
62988
62989 2006-08-28  Bruno Haible  <bruno@clisp.org>
62990
62991         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
62992         (VASNPRINTF): Return a string of length > INT_MAX without failing.
62993         * lib/vasprintf.c: Include errno.h, limits.h.
62994         (EOVERFLOW): New fallback definition.
62995         (vasprintf): Test here whether the string length is > INT_MAX.
62996         * lib/vsnprintf.c: Include errno.h, limits.h.
62997         (EOVERFLOW): New fallback definition.
62998         (vsnprintf): Fix bug when generated string was too long for the buffer.
62999         Test here whether the string length is > INT_MAX.
63000
63001 2006-08-28  Bruno Haible  <bruno@clisp.org>
63002
63003         * lib/inttypes_.h (SCNX*): Remove definitions.
63004         Reported by Eric Blake.
63005
63006 2006-08-28  Bruno Haible  <bruno@clisp.org>
63007
63008         * lib/c-strstr.h: New file, from GNU gettext.
63009         * lib/c-strstr.c: New file, from GNU gettext.
63010
63011 2006-08-28  Bruno Haible  <bruno@clisp.org>
63012
63013         * gnulib-tool: Reorder some statements.
63014
63015 2006-08-28  Bruno Haible  <bruno@clisp.org>
63016
63017         * gnulib-tool: New option --makefile-name.
63018         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63019         $makefile_name.
63020         (func_import): Write $makefile_name to the cache file, and read it from
63021         there unless explicitly specified. Use $makefile_name as file name
63022         instead of Makefile.am. Adjust the recommendations accordingly.
63023
63024 2006-08-28  Bruno Haible  <bruno@clisp.org>
63025
63026         * gnulib-tool (func_verify_module): Check against misapplying patch.
63027
63028 2006-08-28  Bruno Haible  <bruno@clisp.org>
63029
63030         * gnulib-tool (func_relativize, func_relconcat): New functions.
63031         Give an error if --local-dir is given with --update.
63032         Remove trailing slashes from $local_gnulib_dir.
63033         (func_import): Store the relativized $local_gnulib_dir in
63034         gnulib-cache.m4, and read it from there if not specified explicitly.
63035
63036 2006-08-28  Bruno Haible  <bruno@clisp.org>
63037
63038         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63039         is the current directory. Respect also $local_gnulib_dir.
63040
63041 2006-08-28  Bruno Haible  <bruno@clisp.org>
63042             Simon Josefsson  <jas@extundo.com>
63043
63044         BeOS portability.
63045         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63046
63047 2006-08-27  Jim Meyering  <jim@meyering.net>
63048
63049         * doc/visibility.texi: Remove duplicate word: "pointer".
63050
63051 2006-08-26  Bruno Haible  <bruno@clisp.org>
63052
63053         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63054         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63055         (Makefile.am): Create inttypes.h from inttypes_.h.
63056         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63057
63058         * modules/imaxabs: New file.
63059
63060         * modules/imaxdiv: New file.
63061
63062 2006-08-26  Bruno Haible  <bruno@clisp.org>
63063
63064         * m4/inttypes.m4: New file.
63065         * m4/_inttypes_h.m4: Remove file.
63066         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63067         PRI_MACROS_BROKEN.
63068         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63069
63070         * m4/imaxabs.m4: New file.
63071
63072         * m4/imaxdiv.m4: New file.
63073
63074 2006-08-26  Bruno Haible  <bruno@clisp.org>
63075
63076         * lib/inttypes_.h: New file.
63077         * lib/inttypes.h: Remove file.
63078         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63079
63080         * lib/imaxabs.c: New file.
63081
63082         * lib/imaxdiv.c: New file.
63083
63084 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63085
63086         New config-h module, so that "make" output needn't be cluttered
63087         by -DHAVE_CONFIG_H.
63088         * MODULES.html.sh (Support for building libraries and executables):
63089         Add config-h.
63090         * modules/config-h: New file.
63091         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63092         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63093         the config-h module is used.
63094
63095         New configmake module, so that "make" output needn't be cluttered
63096         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63097         * MODULES.html.sh (Support for building libraries and executables):
63098         Add configmake.
63099         * modules/configmake: New file.
63100
63101 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63102
63103         * m4/config-h.m4: New file.
63104
63105 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63106
63107         * config/srclist.txt: Add elisp-comp.
63108
63109 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63110
63111         * MODULES.html.sh (Support for building libraries and executables):
63112         Add elisp-comp.
63113         * build-aux/elisp-comp: New file.
63114         * modules/elisp-comp: New file.
63115
63116 2006-08-24  Bruno Haible  <bruno@clisp.org>
63117
63118         * gnulib-tool (func_create_testdir): Use non-default values of
63119         sourcebase and m4base.
63120
63121 2006-08-24  Bruno Haible  <bruno@clisp.org>
63122
63123         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63124         HTML structure.
63125
63126 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63127
63128         * modules/openat (Depends-on): Add lchown.
63129
63130 2006-08-23  Bruno Haible  <bruno@clisp.org>
63131
63132         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63133         of gl_LOCK_EARLY instead of gl_LOCK.
63134
63135 2006-08-23  Bruno Haible  <bruno@clisp.org>
63136
63137         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63138         on OSF/1 to no.
63139         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63140
63141 2006-08-23  Bruno Haible  <bruno@clisp.org>
63142
63143         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63144         as unusable.
63145
63146         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63147         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63148         (gl_LOCK): New macro.
63149
63150 2006-08-22  Simon Josefsson  <jas@extundo.com>
63151
63152         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63153         to md5 module.
63154
63155 2006-08-22  Simon Josefsson  <jas@extundo.com>
63156
63157         * MODULES.html.sh: Add "Support for maintaining and release
63158         projects".
63159
63160         * build-aux/gnupload: New file, from coreutils.
63161
63162 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63163
63164         Avoid the need for AC_LIBSOURCES in m4 macros.
63165         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63166         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63167         * modules/check-version (EXTRA_DIST): Add check-version.h.
63168         * modules/crc (EXTRA_DIST): Add crc.h.
63169         * modules/des (EXTRA_DIST): Add des.h.
63170         * modules/gc (EXTRA_DIST): Add gc.h.
63171         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63172         * modules/getline (EXTRA_DIST): Add getline.h.
63173         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63174         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63175         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63176         * modules/md2 (EXTRA_DIST): Add md2.h.
63177         * modules/md4 (EXTRA_DIST): Add md4.h.
63178         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63179         * modules/read-file (EXTRA_DIST): Add read-file.h.
63180         * modules/readline (EXTRA_DIST): Add readline.h.
63181         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63182         rijndael-api-fst.h.
63183
63184 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63185
63186         * m4/rijndael.m4 (gl_ARCFOUR):
63187         * m4/arctwo.m4 (gl_ARCTWO):
63188         * m4/check-version.m4 (gl_CHECK_VERSION):
63189         * m4/crc.m4 (gl_CRC):
63190         * m4/des.m4 (gl_DES):
63191         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63192         * m4/gc.m4 (gl_GC):
63193         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63194         * m4/getline.m4 (gl_FUNC_GETLINE):
63195         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63196         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63197         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63198         * m4/md2.m4 (gl_MD2):
63199         * m4/md4.m4 (gl_MD4):
63200         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63201         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63202         * m4/readline.m4 (gl_FUNC_READLINE):
63203         * m4/rijndael.m4 (gl_RIJNDAEL):
63204         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63205         to get the necessary .h files and whatnot.
63206
63207 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63208
63209         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63210         gnulib rather than the other way around.
63211         * config/srclistvars.sh (COREUTILS): Remove.
63212
63213 2006-08-22  Jim Meyering  <jim@meyering.net>
63214
63215         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63216
63217         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63218
63219 2006-08-22  Eric Blake  <ebb9@byu.net>
63220
63221         * modules/regexprops-generic: New file.
63222         * MODULES.html.sh (Support for building documentation): List it.
63223
63224 2006-08-22  Eric Blake  <ebb9@byu.net>
63225
63226         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63227         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63228         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63229         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63230
63231 2006-08-22  Bruno Haible  <bruno@clisp.org>
63232
63233         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63234         and lib_LTLIBRARIES like the other lib_* variables.
63235
63236 2006-08-22  Bruno Haible  <bruno@clisp.org>
63237
63238         * build-aux/x-to-1.in: New file, from GNU gettext.
63239
63240 2006-08-22  Bruno Haible  <bruno@clisp.org>
63241
63242         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
63243         <utmpx.h> exists.
63244
63245 2006-08-22  Bruno Haible  <bruno@clisp.org>
63246
63247         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
63248         <utmpx.h> exists.
63249
63250 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63251
63252         BeOS portability.
63253         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
63254         exist.
63255         Problem reported by Bruno Haible.
63256
63257 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63258
63259         Avoid the need for AC_LIBSOURCES in m4 macros.
63260         * modules/acl (EXTRA_DIST): Add acl.h.
63261         * modules/argmatch (Files): Add m4/argmatch.m4.
63262         (configure.ac): Add gl_ARGMATCH.
63263         (EXTRA_DIST): Renamed from lib_SOURCES, for
63264         consistency with the other modules.  Remove argmatch.c.
63265         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
63266         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
63267         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
63268         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
63269         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
63270         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
63271         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
63272         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
63273         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
63274         * modules/closeout (EXTRA_DIST): Add closeout.h.
63275         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
63276         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
63277         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
63278         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
63279         dirname.h; remove basename.c and stripslash.c.
63280         * modules/exclude (EXTRA_DIST): Add exclude.h.
63281         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
63282         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
63283         * modules/file-type (EXTRA_DIST): Add file-type.h.
63284         * modules/filemode (EXTRA_DIST): Add filemode.h.
63285         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
63286         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63287         * modules/fpending (EXTRA_DIST): Add __fpending.h.
63288         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
63289         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
63290         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
63291         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
63292         * modules/getdate (EXTRA_DIST): Add getdate.c.
63293         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
63294         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
63295         * modules/getpass (EXTRA_DIST): Add getpass.h.
63296         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
63297         * modules/group-member (EXTRA_DIST): Add group-member.h.
63298         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
63299         * modules/hash (EXTRA_DIST): Add hash.h.
63300         * modules/human (EXTRA_DIST): Add human.h.
63301         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
63302         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
63303         * modules/lchown (EXTRA_DIST): Add lchown.h.
63304         * modules/long-options (EXTRA_DIST): Add long-options.h.
63305         * modules/lstat (EXTRA_DIST): Add lstat.h.
63306         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
63307         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
63308         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
63309         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
63310         * modules/memxor (EXTRA_DIST): Add memxor.h.
63311         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
63312         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
63313         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
63314         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
63315         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
63316         * modules/physmem (EXTRA_DIST): Add physmem.h.
63317         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
63318         * modules/posixver (EXTRA_DIST): Add posixver.h.
63319         * modules/quote (EXTRA_DIST): Add quote.h.
63320         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
63321         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
63322         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
63323         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
63324         regex_internal.h regexec.c.
63325         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
63326         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
63327         * modules/same (EXTRA_DIST): Add same.h.
63328         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63329         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63330         * modules/savedir (EXTRA_DIST): Add savedir.h.
63331         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63332         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63333         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63334         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63335         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63336         * modules/strdup (EXTRA_DIST): Add strdup.h.
63337         * modules/strftime (EXTRA_DIST): Add strftime.h.
63338         * modules/strndup (EXTRA_DIST): Add strndup.h.
63339         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63340         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63341         * modules/time_r (EXTRA_DIST): Add time_r.h.
63342         * modules/timespec (EXTRA_DIST): Add timespec.h.
63343         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63344         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63345         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63346         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63347         * modules/userspec (EXTRA_DIST): Add userspec.h.
63348         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63349         * modules/utimens (EXTRA_DIST): Add utimens.h.
63350         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63351         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63352         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63353         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63354         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63355         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63356         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63357         * modules/yesno (EXTRA_DIST): Add yesno.h.
63358
63359 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63360
63361         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63362
63363         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63364         * m4/dev-ino.m4, same-inode.m4: Remove.
63365
63366         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63367         * m4/acl.m4 (AC_FUNC_ACL):
63368         * m4/backupfile.m4 (gl_BACKUPFILE):
63369         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63370         * m4/canon-host.m4 (gl_CANON_HOST):
63371         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63372         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63373         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63374         * m4/cloexec.m4 (gl_CLOEXEC):
63375         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63376         * m4/closeout.m4 (gl_CLOSEOUT):
63377         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63378         * m4/dirname.m4 (gl_DIRNAME):
63379         * m4/exclude.m4 (gl_EXCLUDE):
63380         * m4/exitfail.m4 (gl_EXITFAIL):
63381         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63382         * m4/file-type.m4 (gl_FILE_TYPE):
63383         * m4/filemode.m4 (gl_FILEMODE):
63384         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63385         * m4/fpending.m4 (gl_FUNC_FPENDING):
63386         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63387         * m4/fts.m4 (gl_FUNC_FTS):
63388         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63389         * m4/getdate.m4 (gl_GETDATE):
63390         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63391         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63392         * m4/getpass.m4 (gl_FUNC_GETPASS):
63393         * m4/gettime.m4 (gl_GETTIME):
63394         * m4/getugroups.m4 (gl_GETUGROUPS):
63395         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63396         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63397         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63398         * m4/hash.m4 (gl_HASH):
63399         * m4/idcache.m4 (gl_IDCACHE):
63400         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63401         * m4/lchown.m4 (gl_FUNC_LCHOWN):
63402         * m4/long-options.m4 (gl_LONG_OPTIONS):
63403         * m4/lstat.m4 (gl_FUNC_LSTAT):
63404         * m4/md5.m4 (gl_MD5):
63405         * m4/memcasecmp.m4 (gl_MEMCASECMP):
63406         * m4/memcoll.m4 (gl_MEMCOLL):
63407         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
63408         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
63409         * m4/memxor.m4 (gl_MEMXOR):
63410         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
63411         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
63412         * m4/modechange.m4 (gl_MODECHANGE):
63413         * m4/mountlist.m4 (gl_MOUNTLIST):
63414         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63415         * m4/openat.m4 (gl_FUNC_OPENAT):
63416         * m4/pathmax.m4 (gl_PATHMAX):
63417         * m4/physmem.m4 (gl_PHYSMEM):
63418         * m4/posixtm.m4 (gl_POSIXTM):
63419         * m4/posixver.m4 (gl_POSIXVER):
63420         * m4/quote.m4 (gl_QUOTE):
63421         * m4/quotearg.m4 (gl_QUOTEARG):
63422         * m4/readtokens.m4 (gl_READTOKENS):
63423         * m4/readutmp.m4 (gl_READUTMP):
63424         * m4/regex.m4 (gl_REGEX):
63425         * m4/safe-read.m4 (gl_SAFE_READ):
63426         * m4/safe-write.m4 (gl_SAFE_WRITE):
63427         * m4/same.m4 (gl_SAME):
63428         * m4/save-cwd.m4 (gl_SAVE_CWD):
63429         * m4/savedir.m4 (gl_SAVEDIR):
63430         * m4/settime.m4 (gl_SETTIME):
63431         * m4/sha1.m4 (gl_SHA1):
63432         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
63433         * m4/stat-macros.m4 (gl_STAT_MACROS):
63434         * m4/stat-time.m4 (gl_STAT_TIME):
63435         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
63436         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
63437         * m4/strdup.m4 (gl_FUNC_STRDUP):
63438         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
63439         * m4/strndup.m4 (gl_FUNC_STRNDUP):
63440         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
63441         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
63442         * m4/time_r.m4 (gl_TIME_R):
63443         * m4/timespec.m4 (gl_TIMESPEC):
63444         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
63445         * m4/unlinkdir.m4 (gl_UNLINKDIR):
63446         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
63447         * m4/userspec.m4 (gl_USERSPEC):
63448         * m4/utimecmp.m4 (gl_UTIMECMP):
63449         * m4/utimens.m4 (gl_UTIMENS):
63450         * m4/xalloc.m4 (gl_XALLOC):
63451         * m4/xgetcwd.m4 (gl_XGETCWD):
63452         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
63453         * m4/xreadlink.m4 (gl_XREADLINK):
63454         * m4/xstrtod.m4 (gl_XSTRTOD):
63455         * m4/yesno.m4 (gl_YESNO):
63456         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63457         to get the necessary .h files and whatnot.
63458
63459 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
63460             Bruno Haible  <bruno@clisp.org>
63461
63462         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
63463         /bin/sh understanding of '!' conditional negation.
63464
63465 2006-08-21  Jim Meyering  <jim@meyering.net>
63466
63467         * modules/openat (Depends-on): Really alphabetize.
63468
63469         * modules/acl (Depends-on): Add error and quote.
63470
63471         * check-module (find_included_lib_files): Add at-func.c to the
63472         ok-to-include-more-than-once white list.
63473
63474         * modules/openat (Depends-on): Add lstat.  Alphabetize.
63475
63476 2006-08-21  Bruno Haible  <bruno@clisp.org>
63477
63478         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63479         Emit a pkgdata_DATA variable only if some snippets add contents to it.
63480         Reported by Martin Lambers <marlam@marlam.de>.
63481
63482 2006-08-21  Bruno Haible  <bruno@clisp.org>
63483
63484         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
63485         specify an installation location, don't emit a noinst_LIBRARIES or
63486         noinst_LTLIBRARIES assignment.
63487
63488 2006-08-21  Bruno Haible  <bruno@clisp.org>
63489
63490         BeOS portability.
63491         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
63492         BeOS has mbrtowc() but no <wctype.h>.
63493
63494 2006-08-21  Bruno Haible  <bruno@clisp.org>
63495
63496         BeOS portability.
63497         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
63498         exist.
63499
63500 2006-08-21  Bruno Haible  <bruno@clisp.org>
63501
63502         BeOS portability.
63503         * lib/mbchar.h: Include <wctype.h> only if it exists.
63504
63505 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63506
63507         Remove files that are no longer needed by their respective modules.
63508         * m4/obstack.m4: Remove.
63509         * m4/strerror_r.m4: Remove.
63510         * m4/uint32_t.m4: Remove.
63511         * m4/uintptr_t.m4: Remove.
63512         * m4/ullong_max.m4: Remove.
63513         * m4/xstrtoimax.m4: Remove.
63514         * m4/xstrtoumax.m4: Remove.
63515
63516         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
63517         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
63518         dependencies now capture this.
63519
63520         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
63521         Do not use AC_LIBSOURCES, since gnulib modules now do this.
63522         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
63523         * m4/human.m4 (gl_HUMAN): Likewise.
63524         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
63525         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
63526
63527         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
63528
63529         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
63530         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
63531         stdint.
63532         * m4/human.m4 (gl_HUMAN): Likewise.
63533         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
63534         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
63535         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63536         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63537         * m4/xstrtol (gl_XSTRTOL): Likewise.
63538
63539         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
63540         AC_TYPE_LONG_LONG_INT.
63541         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63542         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
63543         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
63544         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63545
63546         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
63547         on stdbool.
63548
63549         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
63550         (gl_PREREQ_XSTRTOUL): Remove.
63551
63552         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
63553
63554         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
63555         mode.
63556
63557 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63558
63559         Add and change modules to make it easier for coreutils to use
63560         gnulib-tool.
63561         * modules/backupfile (Files): Remove m4/d-ino.m4.
63562         (Depends-on): Add d-ino.
63563         * modules/cycle-check (Depends-on): Add stdint.
63564         (lib_SOURCES): Add cycle-check.h.
63565         * modules/d-ino: New module.
63566         * modules/d-type: New module.
63567         * modules/error (Files): Remove m4/strerror_r.m4.
63568         * modules/filemode (Files): Add m4/st_dm_mode.m4.
63569         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63570         m4/inttypes_h.m4, m4/uintmax_t.m4.
63571         (Depends-on): Add stdint.
63572         (lib_SOURCES): Add fsusage.h.
63573         * modules/getcwd (Files): Remove d-ino.m4.
63574         (Depends-on): Add d-ino.
63575         * modules/getndelim2 (Depends-on): Add stdint.
63576         * modules/glob (Files): Remove m4/d-type.m4.
63577         (Depends-on): Add d-type.
63578         * modules/host-os: New module.
63579         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
63580         m4/inttypes_h.m4, m4/uintmax_t.m4.
63581         * Depends-on: Add stdint.
63582         (lib_SOURCES): Add human.h.
63583         * modules/inttostr (Files): Remove m4/intmax_t.m4,
63584         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
63585         m4/uintmax_t.m4, m4/ulonglong.m4.
63586         (Depends-on): Add stdint.
63587         (EXTRA_DIST): Add inttostr.h.
63588         * modules/lchmod: New module.
63589         * modules/link-follow: New module.
63590         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
63591         (Depends-on): Add lchmod.
63592         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
63593         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
63594         (Depends-on): Add stdint.
63595         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
63596         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
63597         (Depends-on): Add stdint.
63598         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
63599         * modules/perl: New module.
63600         * modules/regex (Depends-on): Add stdint.
63601         * modules/rmdir-errno: New module.
63602         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63603         m4/intmax_t.m4.
63604         (Depends-on): Add stdint.
63605         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63606         m4/uintmax_t.m4.
63607         (Depends-on): Add stdint.
63608         * modules/unlink-busy: New module.
63609         * modules/utimecmp (Depends-on): Add stdint.
63610         * modules/uptime: New module.
63611         * modules/winsz-ioctl: New module.
63612         * modules/winsz-termios: New module.
63613         * modules/xnanosleep (Depends-on): Add nanosleep.
63614         * modules/ullong_max: Remove.
63615         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
63616         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
63617         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
63618         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
63619         (Depends-on): Add inttypes.
63620         (lib_SOURCES): Add xstrtol.h.
63621         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
63622         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
63623         * MODULES.html.sh: Move 'assert' into the assert section.
63624         Move 'dummy' into the linking section.
63625         Remove ullong_max.
63626         Add section for compatibility checks for POSIX:2001 functions,
63627         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
63628         winsz-ioctl, and winsz-termios into it.
63629         Add lchmod.
63630         Add top-level Misc section and put host-os, perl, and uptime
63631         into it.
63632
63633 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63634
63635         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
63636         now assume the stdint module.  Do not include inttypes.h.
63637         * lib/fsusage.h: Likewise.
63638         * lib/getndelim2.c: Likewise.
63639         * lib/human.h: Likewise.
63640         * lib/inttostr.h: Likewise.
63641         * lib/obstack.c: Likewise.
63642         * lib/regex_internal.h: Likewise.
63643         * lib/tempname.c: Likewise.
63644         * lib/utimecmp.c: Likewise.
63645         * lib/xstrtol.h: Likewise.
63646
63647         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
63648
63649         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
63650         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
63651         * lib/xtime.h: Likewise.
63652
63653 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63654
63655         * modules/openat (Files): Add lib/fchmodat.c.
63656         Fixes problem reported by Jay Youngman.
63657
63658 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63659
63660         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
63661         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
63662
63663 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
63664             Bruno Haible  <bruno@clisp.org>
63665
63666         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
63667         and is a script that invokes bison. Tighten the code. Add comments.
63668
63669 2006-08-18  Jim Meyering  <jim@meyering.net>
63670
63671         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
63672         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
63673         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
63674         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
63675
63676 2006-08-18  Bruno Haible  <bruno@clisp.org>
63677
63678         * modules/bison-i18n: New file.
63679         * MODULES.html.sh (Internationalization functions): Add it.
63680
63681 2006-08-18  Bruno Haible  <bruno@clisp.org>
63682
63683         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
63684         sys/statvfs.h. When getmntinfo was found, check its declaration and
63685         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
63686
63687 2006-08-18  Bruno Haible  <bruno@clisp.org>
63688
63689         * m4/bison-i18n.m4: New file, from bison.
63690
63691 2006-08-18  Bruno Haible  <bruno@clisp.org>
63692
63693         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
63694         (ME_DUMMY): Treat "kernfs" as a dummy.
63695         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
63696
63697 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63698
63699         Update from coreutils.
63700
63701         2006-08-15  Jim Meyering  <jim@meyering.net>
63702
63703         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
63704
63705         2006-01-17  Jim Meyering  <jim@meyering.net>
63706
63707         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
63708
63709         2006-01-11  Jim Meyering  <jim@meyering.net>
63710
63711         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
63712         Check for the lchmod function.
63713
63714 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63715
63716         Update from coreutils.
63717
63718         * lib/__fpending.h: Add copyright notice.
63719         * lib/fprintftime.h: Likewise.
63720         * lib/savedir.c: Use (C) in copyright notice.
63721         * lib/savedir.h: Likewise.
63722
63723         2006-08-15  Jim Meyering  <jim@meyering.net>
63724
63725         * lib/at-func.c: New file, with the logic of all emulated at-functions.
63726         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
63727         in support of the EXPECTED_ERRNO macro.
63728         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
63729         definitions.  Instead, define the appropriate symbols and include
63730         "at-func.c".
63731         * lib/mkdirat.c (mkdirat): Likewise.
63732         * lib/fchmodat.c (fchmodat): Likewise.
63733         (ENOSYS): Remove definition.
63734         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
63735         it.  Don't include "unistd--.h" -- it wasn't ever used.
63736
63737         2006-01-17  Jim Meyering  <jim@meyering.net>
63738
63739         Rewrite fts.c not to change the current working directory,
63740         by using openat, fstatat, fdopendir, etc..
63741
63742         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
63743         (HAVE_OPENAT_SUPPORT): Define.
63744         [_LIBC] (fchdir): Don't undef or define; no longer used.
63745         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
63746         Now, this `function' always succeeds, and consumes its file descriptor
63747         parameter -- so callers must not close such FDs.  Update callers.
63748         (diropen_fd, opendirat, cwd_advance_fd): New functions.
63749         (diropen): Add parameter, SP.  Adjust all callers.
63750         Implement using diropen_fd, rather than open.
63751         (fts_open): Initialize new member, fts_cwd_fd.
63752         Remove fts_rft-setting code.
63753         (fts_close): Close fts_cwd_fd, if necessary.
63754         (__opendir2): Define in terms of opendir or opendirat,
63755         depending on whether the FST_NOCHDIR flag is set.
63756         (fts_build): Since fts_safe_changedir consumes its FD, and since
63757         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
63758         and close the dup'd file descriptor upon failure.
63759         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
63760         (fts_safe_changedir): Tweak semantics to reflect that this function
63761         now calls cwd_advance_fd and hence consumes its FD argument.
63762         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
63763         [struct FTS] (fts_rft): Remove now-unused member.
63764         [struct FTS] (fts_cycle.state): Improve comment.
63765
63766         * lib/openat.c (openat_needs_fchdir): New function.
63767         * lib/openat.h (openat_needs_fchdir): Declare it.
63768
63769 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63770
63771         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
63772         Problem and fix reported by Pádraig Brady in
63773         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
63774
63775 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63776
63777         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
63778
63779 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63780
63781         * lib/memcoll.c (memcoll): Optimize for the common case where the
63782         arguments are bytewise equal.
63783
63784 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63785
63786         * doc/regexprops-generic.texi: Add a copyright notice.
63787
63788 2006-08-15  Bruno Haible  <bruno@clisp.org>
63789
63790         * modules/tmpdir (License): Change to LGPL.
63791
63792 2006-08-15  Bruno Haible  <bruno@clisp.org>
63793
63794         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
63795         module.
63796
63797 2006-08-14  Simon Josefsson  <jas@extundo.com>
63798
63799         * config/srclist.txt: Add gnupload.
63800
63801 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63802
63803         Change copyright notice from LGPL 2 to GPL 2, since that's the
63804         standard form used in the gnulib repository.
63805         * tests/test-lock.c: Likewise.
63806         * tests/test-stdint.c: Likewise.
63807         * tests/test-tls.c: Likewise.
63808
63809         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
63810         prelude-manager.  User shorter URLs for GNU projects, without '?'.
63811         Add copyright notice.
63812
63813         * check-module: Add copyright notice.  Output a copyright
63814         notice if "--version" is specified.
63815         * modules/COPYING: New file.
63816         * tests/test-getaddrinfo.c: Add copyright notice.
63817         * tests/test-verify.c: Likewise.
63818
63819 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63820
63821         Change copyright notice from LGPL 2 to GPL 2, since that's the
63822         standard form used in the gnulib repository.
63823         * lib/lock.c: LGPL -> GPL.
63824         * lib/lock.h: Likewise.
63825         * lib/strnlen1.c: Likewise.
63826         * lib/strnlen1.h: Likewise.
63827         * lib/tls.c: Likewise.
63828         * lib/tls.h: Likewise.
63829         * lib/tmpdir.c: Likewise.
63830
63831         * lib/TODO: Remove; this belongs only in coreutils.
63832
63833 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63834
63835         Add copyright notices to long-enough files that lack them, since
63836         otherwise the files aren't clearly free.  Use the same notice that
63837         getdate.texi already uses.
63838         * doc/alloca-opt.texi: Add copyright notice.
63839         * doc/alloca.texi: Likewise.
63840         * doc/ctime.texi: Likewise.
63841         * doc/functions.texi: Likewise.
63842         * doc/gcd.texi: Likewise.
63843         * doc/gnulib-tool.texi: Likewise.
63844         * doc/inet_ntoa.texi: Likewise.
63845         * doc/visibility.texi: Likewise.
63846
63847         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
63848         * doc/quote.texi: Add copyright notice.
63849
63850         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
63851         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
63852         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
63853         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
63854         is now obsolete, and give a pointer to the Sun list.
63855         Add copyright notice.
63856
63857 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63858
63859         * config/srclistvars.sh: Add copyright notice.
63860
63861 2006-08-14  Eric Blake  <ebb9@byu.net>
63862
63863         Import the following change from libc:
63864
63865         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
63866
63867         Upstream bug 2997.
63868         * lib/misc/error.c: Add space between program name and message if file
63869         name is missing.
63870
63871 2006-08-12  Karl Berry  <karl@gnu.org>
63872
63873         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
63874         remove, these originate in gnulib now.
63875
63876 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63877
63878         * doc/Makefile (standards.info standards.html standards.dvi):
63879         Also depend on make-stds.texi.
63880
63881 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
63882
63883         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
63884         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
63885
63886         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
63887         in wchar_t.  Problem reported by Eric Blake.
63888
63889         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
63890         LEN is smaller than SIZE.  Suggested by Bruno Haible.
63891         Also, help the compiler to keep LEN in a register.
63892
63893 2006-08-11  Eric Blake  <ebb9@byu.net>
63894
63895         * users.txt: Sort.  Add tar.
63896
63897 2006-08-11  Bruno Haible  <bruno@clisp.org>
63898
63899         * users.txt: New file.
63900
63901 2006-08-11  Bruno Haible  <bruno@clisp.org>
63902
63903         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
63904         before <wchar.h>. Needed for OSF/1 and BSD/OS.
63905
63906 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63907
63908         * modules/snprintf (Depends-on): Remove minmax.
63909         (Maintainer): Add self and Bruno.
63910
63911 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63912
63913         * lib/.cppi-disable: Add snprintf.h, socket_.h.
63914         * lib/snprintf.c: Include <errno.h> and <limits.h>.
63915         (EOVERFLOW): Define if the system does not.
63916         Do not include "minmax.h"; it wasn't used.
63917         (snprintf): Don't assume size_t promotes to an unsigned type.
63918         Fix bug when generated string was too long for the buffer: the
63919         buffer's contents are supposed to be the initial prefix of the
63920         output.  Don't assume vasnprintf returns EOVERFLOW if the size
63921         exceeds INT_MAX; do the check ourselves.
63922
63923         Import the following changes from libc:
63924
63925         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
63926
63927         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
63928         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
63929         set wc to the byte which couldn't be converted.
63930         (re_string_reconstruct): Don't clear valid_raw_len before calling
63931         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
63932         tip_context using re_string_context_at.
63933
63934         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
63935
63936         * lib/posix/regex.h: g++ still cannot handled [restrict].
63937
63938         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
63939
63940         * lib/posix/regex.h: Remove special handling for VMS.
63941
63942 2006-08-10  Jim Meyering  <jim@meyering.net>
63943
63944         * modules/same-inode: New module.
63945         * modules/dev-ino: New module.
63946         * modules/cycle-check: Depend on these modules, rather than simply
63947         including their .h files.
63948         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
63949         required via m4/cycle-check.m4.
63950         * modules/same: Depend on new same-inode module, rather than
63951         including same-inode.h.
63952         * modules/chdir-safer: New file.
63953
63954         * modules/chown (Depends-on): Add stat-macros.
63955
63956 2006-08-10  Jim Meyering  <jim@meyering.net>
63957
63958         * m4/cycle-check.m4: New file.
63959         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
63960         * m4/dev-ino.m4, m4/same-inode.m4: New files.
63961
63962 2006-08-10  Eric Blake  <ebb9@byu.net>
63963
63964         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
63965         in from original proposal.
63966
63967 2006-08-10  Eric Blake  <ebb9@byu.net>
63968         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63969
63970         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
63971         namespace.
63972
63973 2006-08-10  Bruno Haible  <bruno@clisp.org>
63974
63975         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
63976         as well.
63977
63978 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63979
63980         Sync from coreutils.
63981
63982         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
63983
63984         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
63985         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
63986
63987 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63988
63989         * modules/restrict: Remove; no longer needed now that we assume
63990         Autoconf 2.59 or later.
63991         * MODULES.html.sh: Remove 'restrict'.
63992         * modules/argp (Depends-on): Remove 'restrict'.
63993         * modules/base64 (Depends-on): Likewise.
63994         * modules/gc (Depends-on): Likewise.
63995         * modules/getaddrinfo (Depends-on): Likewise.
63996         * modules/glob (Depends-on): Likewise.
63997         * modules/inet_ntop (Depends-on): Likewise.
63998         * modules/inet_pton (Depends-on): Likewise.
63999         * modules/memxor (Depends-on): Likewise.
64000         * modules/regex (Depends-on): Likewise.
64001         * modules/strtok_r (Depends-on): Likewise.
64002         * modules/time_r (Depends-on): Likewise.
64003
64004 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64005
64006         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
64007         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
64008         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64009         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
64010         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
64011         * m4/memxor.m4 (gl_MEMXOR): Likewise.
64012         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
64013         gl_C_RESTRICT replaced by AC_C_RESTRICT.
64014
64015         Merge from coreutils.
64016         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
64017         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
64018         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64019         * m4/time_r.m4 (gl_TIME_R): Likewise.
64020
64021 2006-08-09  Karl Berry  <karl@gnu.org>
64022
64023         * config/srclist.txt: no more gettext-tools, per Bruno.
64024
64025 2006-08-08  Eric Blake  <ebb9@byu.net>
64026
64027         * modules/verror: New module.
64028         * MODULES.html.sh: Document it.
64029
64030 2006-08-08  Eric Blake  <ebb9@byu.net>
64031
64032         * lib/verror.h, lib/verror.c: New files.
64033
64034 2006-08-08  Eric Blake  <ebb9@byu.net>
64035
64036         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64037         verror_at_line output complies with GNU Coding Standards even when
64038         file is NULL.
64039
64040 2006-08-07  Bruno Haible  <bruno@clisp.org>
64041
64042         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64043         versions of AIX.
64044         Reported by Ralf Wildenhues.
64045
64046 2006-08-07  Bruno Haible  <bruno@clisp.org>
64047
64048         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64049         in an AC_DEFUN. Needed so that the autoconf snippets can use
64050         AC_REQUIRE.
64051
64052 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64053
64054         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64055         Initialize pkgdata_DATA.
64056         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64057         overriding it.
64058
64059 2006-08-06  Eric Blake  <ebb9@byu.net>
64060
64061         * lib/error.h: Fold in some upstream changes from glibc.
64062         * lib/error.c: Likewise.
64063
64064 2006-08-04  Bruno Haible  <bruno@clisp.org>
64065
64066         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64067         Make the mostlyclean-local rule depend on mostlyclean-generic.
64068         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64069
64070 2006-07-31  Bruno Haible  <bruno@clisp.org>
64071
64072         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64073         <stdlib.h>, <string.h>.
64074
64075 2006-07-30  Bruno Haible  <bruno@clisp.org>
64076
64077         * modules/readlink (License): Change to LGPL.
64078
64079 2006-07-30  Bruno Haible  <bruno@clisp.org>
64080
64081         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64082         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64083         set PKGDATADIR to point to it.
64084
64085 2006-07-30  Bruno Haible  <bruno@clisp.org>
64086
64087         * modules/csharpexec (configure.ac): Comment out macro invocation.
64088         * modules/javaexec (configure.ac): Likewise.
64089         * modules/javacomp-script (configure.ac): Likewise.
64090
64091         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64092
64093 2006-07-30  Bruno Haible  <bruno@clisp.org>
64094
64095         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64096         linked-list.
64097
64098 2006-07-30  Bruno Haible  <bruno@clisp.org>
64099
64100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64101
64102 2006-07-30  Bruno Haible  <bruno@clisp.org>
64103
64104         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64105         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64106         get removed.
64107
64108 2006-07-29  Bruno Haible  <bruno@clisp.org>
64109
64110         Make it possible for gnulib-tool to work with locally modified or
64111         augmented gnulib repositories.
64112         * gnulib-tool (func_usage): Document --local-dir option.
64113         (local_gnulib_dir): New variable.
64114         Handle --local-dir option.
64115         (func_lookup_file): New function.
64116         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64117         (func_get_description, func_get_filelist, func_get_description,
64118         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64119         func_get_automake_snippet, func_get_include_directive,
64120         func_get_license, func_get_maintainer): Use func_lookup_file.
64121         (func_import, func_create_testdir): Use func_lookup_file.
64122
64123 2006-07-29  Bruno Haible  <bruno@clisp.org>
64124
64125         * modules/setenv (Depends-on): Add unistd.
64126
64127 2006-07-29  Bruno Haible  <bruno@clisp.org>
64128
64129         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64130
64131 2006-07-29  Bruno Haible  <bruno@clisp.org>
64132
64133         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64134
64135 2006-07-29  Bruno Haible  <bruno@clisp.org>
64136
64137         * gnulib-tool (import, update): If there is no Makefile.am, look at
64138         aclocal.m4, instead of bailing out.
64139
64140 2006-07-29  Bruno Haible  <bruno@clisp.org>
64141
64142         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64143         Categorize the options by when they are useful.
64144
64145 2006-07-29  Bruno Haible  <bruno@clisp.org>
64146
64147         * gnulib-tool (func_usage): Document option --no-libtool.
64148         Handle option --no-libtool.
64149         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64150         for changed semantics of $libtool variable.
64151         (func_import): Likewise. If libtool is not used, show this through
64152         an option --no-libtool.
64153         (func_create_testdir): Update.
64154
64155 2006-07-29  Bruno Haible  <bruno@clisp.org>
64156
64157         * gnulib-tool (func_import): Extend error message about missing
64158         --doc-base.
64159
64160 2006-07-29  Bruno Haible  <bruno@clisp.org>
64161
64162         * gnulib-tool (func_import): Don't create the $docbase directory if
64163         there is no file to store there.
64164
64165 2006-07-29  Bruno Haible  <bruno@clisp.org>
64166
64167         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64168         relevant, look for configure.ac there, not in the current directory.
64169         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64170
64171 2006-07-29  Bruno Haible  <bruno@clisp.org>
64172
64173         * gnulib-tool (SORT): New variable.
64174         (func_usage): Undocument --assume-autoconf option.
64175         Remove --assume-autoconf option handling.
64176         (autoconf_minversion): Determine from the contents of configure.ac.
64177         (func_import): Remove autoconf_minversion handling.
64178         Suggested by Eric Blake.
64179
64180 2006-07-29  Bruno Haible  <bruno@clisp.org>
64181
64182         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64183
64184 2006-07-29  Bruno Haible  <bruno@clisp.org>
64185
64186         * config/srclist.txt (*setenv.[ch]): Remove rules.
64187
64188 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64189
64190         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64191
64192 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64193
64194         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64195         arpa/inet.h.
64196
64197 2006-07-28  Simon Josefsson  <jas@extundo.com>
64198
64199         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64200         * modules/inet_pton (Depends-on): Likewise.
64201
64202 2006-07-28  Simon Josefsson  <jas@extundo.com>
64203
64204         * m4/netinet_in_h.m4: New file.
64205
64206 2006-07-28  Simon Josefsson  <jas@extundo.com>
64207
64208         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64209         #include's.
64210
64211 2006-07-28  Simon Josefsson  <jas@extundo.com>
64212
64213         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64214         #include's.
64215
64216 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64217
64218         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64219         setgid on directories only if they set these bits.
64220         * lib/modechange.h: Remove obsolete comment about masks.
64221
64222 2006-07-28  Eric Blake  <ebb9@byu.net>
64223
64224         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64225         macro expansion.
64226
64227 2006-07-28  Bruno Haible  <bruno@clisp.org>
64228
64229         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64230
64231 2006-07-28  Bruno Haible  <bruno@clisp.org>
64232
64233         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64234
64235 2006-07-28  Bruno Haible  <bruno@clisp.org>
64236
64237         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
64238         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
64239         Define fallbacks.
64240         Avoids link error on FreeBSD 4.x.
64241         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64242
64243         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
64244         encoding.
64245         * lib/mbswidth.c (iswcntrl): Likewise.
64246
64247 2006-07-27  Bruno Haible  <bruno@clisp.org>
64248
64249         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
64250         test.
64251
64252 2006-07-27  Bruno Haible  <bruno@clisp.org>
64253
64254         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
64255         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
64256         defined.
64257
64258 2006-07-26  Eric Blake  <ebb9@byu.net>
64259
64260         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
64261
64262 2006-07-26  Eric Blake  <ebb9@byu.net>
64263
64264         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
64265         like mingw that lack mkstemp.
64266         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
64267         avoid compilation warning on mingw.
64268
64269 2006-07-26  Bruno Haible  <bruno@clisp.org>
64270
64271         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
64272         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
64273         INT_FAST*_MIN, INTPTR_MIN.
64274
64275 2006-07-25  Bruno Haible  <bruno@clisp.org>
64276
64277         * modules/version-etc (Depends-on): Add stdarg.
64278
64279 2006-07-25  Bruno Haible  <bruno@clisp.org>
64280
64281         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
64282         complex commands.
64283
64284 2006-07-25  Bruno Haible  <bruno@clisp.org>
64285
64286         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
64287         defined in <stdarg.h> or config.h.
64288
64289 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64290
64291         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
64292         (gl_STDIO_SAFER): Remove.
64293
64294 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64295
64296         * MODULES.html.sh (File stream based Input/Output):
64297         Add fopen-safer, tmpfile-safer; remove stdio-safer.
64298         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
64299         * modules/fopen-safer, modules/tmpfile-safer: New files.
64300         * modules/stdio-safer: Remove.
64301
64302 2006-07-24  Bruno Haible  <bruno@clisp.org>
64303
64304         * modules/tmpdir: New file.
64305         * MODULES.html.sh (File system functions): Add it.
64306
64307 2006-07-24  Bruno Haible  <bruno@clisp.org>
64308
64309         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
64310         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
64311
64312 2006-07-24  Bruno Haible  <bruno@clisp.org>
64313
64314         * modules/clean-temp: New file.
64315
64316 2006-07-24  Bruno Haible  <bruno@clisp.org>
64317
64318         * m4/tmpdir.m4: New file, from GNU gettext.
64319
64320 2006-07-24  Bruno Haible  <bruno@clisp.org>
64321
64322         * lib/tmpdir.h: New file, from GNU gettext.
64323         * lib/tmpdir.c: New file, from GNU gettext.
64324
64325 2006-07-24  Bruno Haible  <bruno@clisp.org>
64326
64327         * lib/clean-temp.h: New file, from GNU gettext.
64328         * lib/clean-temp.c: New file, from GNU gettext.
64329
64330 2006-07-23  Eric Blake  <ebb9@byu.net>
64331
64332         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64333         (Depends-on): Add binary-io.
64334
64335 2006-07-23  Eric Blake  <ebb9@byu.net>
64336
64337         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64338
64339 2006-07-23  Eric Blake  <ebb9@byu.net>
64340
64341         * lib/tmpfile-safer.c: New file.
64342         * lib/stdio-safer.h (fopen_safer): Add prototype.
64343         * lib/stdio--.h (tmpfile): Make safer.
64344
64345 2006-07-23  Bruno Haible  <bruno@clisp.org>
64346
64347         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64348         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64349         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64350         gl_linked_remove_at): Use it.
64351
64352 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64353         and Simon Josefsson <jas@extundo.com>
64354
64355         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64356
64357         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64358
64359 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64360
64361         * modules/close-stream: New file.
64362         * modules/closeout (Description): Make it clear that it exits
64363         with a diagnostic on error.
64364         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64365         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64366
64367 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64368
64369         * m4/close-stream.m4: New file.
64370
64371 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64372
64373         * lib/close-stream.c, lib/close-stream.h: New files.
64374
64375 2006-07-22  Bruno Haible  <bruno@clisp.org>
64376
64377         Merge from GNU gettext 0.15.
64378
64379         2006-05-01  Bruno Haible  <bruno@clisp.org>
64380
64381                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64382
64383         2006-07-22  Bruno Haible  <bruno@clisp.org>
64384
64385                 * modules/javaversion: New file.
64386                 * MODULES.html.sh (Java): Add javaversion.
64387
64388         2006-03-12  Bruno Haible  <bruno@clisp.org>
64389
64390                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64391
64392         2005-12-04  Bruno Haible  <bruno@clisp.org>
64393
64394                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64395                 (untested).
64396
64397         2006-06-21  Bruno Haible  <bruno@clisp.org>
64398
64399                 Avoid warnings from recent versions of mcs.
64400                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64401                 -o, -L, -r any more. Use options documented since mcs-1.0
64402                 instead. Similarly for -g.
64403
64404         2005-12-04  Bruno Haible  <bruno@clisp.org>
64405
64406                 * build-aux/csharpcomp.sh.in: Suffix for resources is
64407                 .resources, not .resource.
64408
64409         2005-07-09  Bruno Haible  <bruno@clisp.org>
64410
64411                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
64412                 add a .dll suffix.
64413                 Reported by Mark Junker <mjscod@gmx.de>.
64414
64415         2006-07-22  Bruno Haible  <bruno@clisp.org>
64416
64417                 * modules/gettext: Upgrade to gettext-0.15.
64418                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
64419                 m4/visibility.m4.
64420                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
64421
64422 2006-07-22  Bruno Haible  <bruno@clisp.org>
64423
64424         Merge from GNU gettext 0.15.
64425
64426         2006-03-25  Bruno Haible  <bruno@clisp.org>
64427
64428                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
64429
64430         2006-07-21  Bruno Haible  <bruno@clisp.org>
64431
64432                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
64433                 "1.1".
64434
64435         2006-05-09  Bruno Haible  <bruno@clisp.org>
64436
64437                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
64438                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
64439                 for the conftestver execution.
64440
64441         2006-05-01  Bruno Haible  <bruno@clisp.org>
64442
64443                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
64444                 optional target-version argument. Verify that the compiler
64445                 groks source of the specified source-version, or add -source
64446                 option as necessary. Verify that the compiler produces
64447                 bytecode in the specified target-version, or add -target and
64448                 -source options as necessary. Make the result of the test
64449                 available as variable CONF_JAVAC. Also log error output in
64450                 config.log.
64451
64452         2006-03-11  Bruno Haible  <bruno@clisp.org>
64453
64454                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
64455
64456         2006-05-09  Bruno Haible  <bruno@clisp.org>
64457
64458                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
64459                 CLASSPATH_SEPARATOR to a semicolon.
64460
64461         2006-03-12  Bruno Haible  <bruno@clisp.org>
64462
64463                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
64464                 available as variable CONF_JAVA, for subsequent autoconf
64465                 tests. Also log error output in config.log.
64466
64467         2006-07-19  Bruno Haible  <bruno@clisp.org>
64468
64469                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
64470                 that getline works on glibc2 systems. Needed to avoid trouble
64471                 in relocatable.c.
64472                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
64473
64474         2005-12-04  Bruno Haible  <bruno@clisp.org>
64475
64476                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
64477                 launcher (untested).
64478
64479         2005-12-04  Bruno Haible  <bruno@clisp.org>
64480
64481                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
64482
64483         2006-07-22  Bruno Haible  <bruno@clisp.org>
64484
64485                 * gettext.m4: Update from GNU gettext-0.15.
64486                 * nls.m4: Likewise.
64487                 * po.m4: Likewise.
64488                 * inttypes-pri.m4: Likewise.
64489                 * inttypes-h.m4: Renamed from inttypes.m4.
64490                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
64491
64492 2006-07-22  Bruno Haible  <bruno@clisp.org>
64493
64494         Merge from GNU gettext 0.15.
64495
64496         2005-07-05  Bruno Haible  <bruno@clisp.org>
64497
64498                 * printf-args.c (printf_fetchargs): Work around broken
64499                 definition of wint_t on mingw.
64500
64501         2005-02-12  Bruno Haible  <bruno@clisp.org>
64502
64503                 * xallocsa.h: Add extern "C" for C++.
64504
64505         2006-05-17  Bruno Haible  <bruno@clisp.org>
64506
64507                 Cygwin portability.
64508                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
64509
64510         2006-04-30  Bruno Haible  <bruno@clisp.org>
64511
64512                 * progreloc.c: Include <mach-o/dyld.h> if available.
64513                 (find_executable): Use _NSGetExecutablePath when possible.
64514
64515         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64516
64517                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
64518                 function.
64519
64520         2005-12-29  Bruno Haible  <bruno@clisp.org>
64521
64522                 * progreloc.c (set_program_name_and_installdir): Fix
64523                 compilation error.
64524
64525         2005-12-04  Bruno Haible  <bruno@clisp.org>
64526
64527                 Cygwin portability.
64528                 * progreloc.c: Include <windows.h> also on Cygwin.
64529                 (find_executable): Add support for Cygwin.
64530                 (set_program_name_and_installdir): Handle also platforms with
64531                 nonempty EXEEXT.
64532
64533         2006-07-11  Bruno Haible  <bruno@clisp.org>
64534
64535                 * javacomp.c: Fix a comment.
64536                 Reported by Jim Meyering.
64537
64538         2006-04-30  Bruno Haible  <bruno@clisp.org>
64539
64540                 * javacomp.h (compile_java_class): Add source_version,
64541                 target_version arguments.
64542                 * javacomp.c: Rewritten to choose only a compiler that
64543                 respects the specified source_version and target_version.
64544
64545         2006-06-27  Bruno Haible  <bruno@clisp.org>
64546
64547                 Assume correct S_ISDIR macro.
64548                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
64549
64550         2006-07-22  Bruno Haible  <bruno@clisp.org>
64551
64552                 * javaversion.h: New file, from GNU gettext.
64553                 * javaversion.c: New file, from GNU gettext.
64554                 * javaversion.java: New file, from GNU gettext.
64555                 * javaversion.class: New file, from GNU gettext.
64556
64557         2006-05-17  Bruno Haible  <bruno@clisp.org>
64558
64559                 Cygwin portability.
64560                 * javaexec.c (execute_java_class): Test for jview program
64561                 also on Cygwin.
64562
64563         2006-04-09  Bruno Haible  <bruno@clisp.org>
64564
64565                 * fatal-signal.c: Don't include string.h.
64566                 (at_fatal_signal): Use a copying loop instead of memcpy.
64567
64568         2005-12-04  Bruno Haible  <bruno@clisp.org>
64569
64570                 * csharpexec.c: Add support for 'clix' launcher (untested).
64571                 (execute_csharp_using_sscli): New function.
64572                 (execute_csharp_program): Call it.
64573
64574         2006-06-21  Bruno Haible  <bruno@clisp.org>
64575
64576                 Avoid warnings from recent versions of mcs.
64577                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
64578                 -o, -L, -r any more. Use options documented since mcs-1.0
64579                 instead. Similarly for -g.
64580
64581         2005-07-09  Bruno Haible  <bruno@clisp.org>
64582
64583                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
64584                 add a .dll suffix.
64585                 Reported by Mark Junker <mjscod@gmx.de>.
64586
64587         2006-06-17  Bruno Haible  <bruno@clisp.org>
64588
64589                 * config.charset: Update for NetBSD 3.0.
64590
64591         2006-05-17  Bruno Haible  <bruno@clisp.org>
64592
64593                 Cygwin portability.
64594                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
64595
64596         2006-05-16  Bruno Haible  <bruno@clisp.org>
64597
64598                 * localcharset.c [CYGWIN]: Include <windows.h>.
64599                 (get_charset_aliases): For Cygwin, return the same CPxxx
64600                 aliases list as under WIN32.
64601                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
64602                 the environment variables. Fall back to GetACP().
64603
64604         2006-04-05  Bruno Haible  <bruno@clisp.org>
64605
64606                 * config.charset: Update Juan Manuel Guerrero's address.
64607
64608         2005-02-12  Bruno Haible  <bruno@clisp.org>
64609
64610                 * allocsa.h: Add extern "C" for C++.
64611
64612         2005-02-10  Bruno Haible  <bruno@clisp.org>
64613
64614                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
64615                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
64616
64617         2006-07-22  Bruno Haible  <bruno@clisp.org>
64618
64619                 * gettext.h: Update to GNU gettext-0.15.
64620
64621 2006-07-22  Bruno Haible  <bruno@clisp.org>
64622
64623         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
64624         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
64625         lib-prefix.m4, longdouble.m4, ssize_t.m4.
64626
64627 2006-07-21  Eric Blake  <ebb9@byu.net>
64628
64629         * modules/stdlib-safer: New file.
64630         * MODULES.html.sh (File stream based Input/Output): Add
64631         stdlib-safer.
64632
64633 2006-07-21  Eric Blake  <ebb9@byu.net>
64634
64635         * lib/stdlib-safer.h: New file from coreutils, required by
64636         stdlib--.h.
64637
64638 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
64639
64640         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
64641
64642 2006-07-20  Bruno Haible  <bruno@clisp.org>
64643
64644         * gnulib-tool: Recognize new option --assume-autoconf.
64645         (autoconf_minversion): New variable.
64646         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
64647
64648 2006-07-20  Bruno Haible  <bruno@clisp.org>
64649
64650         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
64651
64652 2006-07-19  Derek R. Price  <derek@ximbiot.com>
64653
64654         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
64655         Reindent and repaginate.
64656
64657 2006-07-19  Derek Price  <derek@ximbiot.com>
64658
64659         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
64660         Correct grammar.
64661
64662 2006-07-17  Bruno Haible  <bruno@clisp.org>
64663
64664         * modules/list: New file.
64665         * modules/array-list: New file.
64666         * modules/carray-list, modules/carray-list-tests: New files.
64667         * modules/linked-list, modules/linked-list-tests: New files.
64668         * modules/avltree-list, modules/avltree-list-tests: New files.
64669         * modules/rbtree-list, modules/rbtree-list-tests: New files.
64670         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
64671         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
64672         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
64673         * modules/oset: New file.
64674         * modules/array-oset: New file.
64675         * modules/avltree-oset, modules/avltree-oset-tests: New files.
64676         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
64677         * tests/test-carray_list.c: New file.
64678         * tests/test-linked_list.c: New file.
64679         * tests/test-avltree_list.c: New file.
64680         * tests/test-rbtree_list.c: New file.
64681         * tests/test-linkedhash_list.c: New file.
64682         * tests/test-avltreehash_list.c: New file.
64683         * tests/test-rbtreehash_list.c: New file.
64684         * tests/test-avltree_oset.c: New file.
64685         * tests/test-rbtree_oset.c: New file.
64686         * MODULES.html.sh (Container data structures): New section.
64687
64688 2006-07-17  Bruno Haible  <bruno@clisp.org>
64689
64690         * m4/gl_list.m4: New file.
64691
64692 2006-07-17  Bruno Haible  <bruno@clisp.org>
64693
64694         * lib/gl_list.h: New file.
64695         * lib/gl_list.c: New file.
64696         * lib/gl_array_list.h: New file.
64697         * lib/gl_array_list.c: New file.
64698         * lib/gl_carray_list.h: New file.
64699         * lib/gl_carray_list.c: New file.
64700         * lib/gl_linked_list.h: New file.
64701         * lib/gl_linked_list.c: New file.
64702         * lib/gl_anylinked_list1.h: New file.
64703         * lib/gl_anylinked_list2.h: New file.
64704         * lib/gl_avltree_list.h: New file.
64705         * lib/gl_avltree_list.c: New file.
64706         * lib/gl_anyavltree_list1.h: New file.
64707         * lib/gl_anyavltree_list2.h: New file.
64708         * lib/gl_rbtree_list.h: New file.
64709         * lib/gl_rbtree_list.c: New file.
64710         * lib/gl_anyrbtree_list1.h: New file.
64711         * lib/gl_anyrbtree_list2.h: New file.
64712         * lib/gl_anytree_list1.h: New file.
64713         * lib/gl_anytree_list2.h: New file.
64714         * lib/gl_linkedhash_list.h: New file.
64715         * lib/gl_linkedhash_list.c: New file.
64716         * lib/gl_anyhash_list1.h: New file.
64717         * lib/gl_anyhash_list2.h: New file.
64718         * lib/gl_avltreehash_list.h: New file.
64719         * lib/gl_avltreehash_list.c: New file.
64720         * lib/gl_rbtreehash_list.h: New file.
64721         * lib/gl_rbtreehash_list.c: New file.
64722         * lib/gl_anytreehash_list1.h: New file.
64723         * lib/gl_anytreehash_list2.h: New file.
64724
64725         * lib/gl_oset.h: New file.
64726         * lib/gl_oset.c: New file.
64727         * lib/gl_array_oset.h: New file.
64728         * lib/gl_array_oset.c: New file.
64729         * lib/gl_avltree_oset.h: New file.
64730         * lib/gl_avltree_oset.c: New file.
64731         * lib/gl_rbtree_oset.h: New file.
64732         * lib/gl_rbtree_oset.c: New file.
64733         * lib/gl_anytree_oset.h: New file.
64734
64735 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64736
64737         * m4/mkancesdirs.m4: New file.
64738         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
64739         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
64740         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
64741         it.
64742
64743 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64744
64745         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
64746         * lib/mkancesdirs.h: New files.
64747         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
64748         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
64749         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
64750         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
64751         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
64752         callers changed.  Revamp internals significantly, by not
64753         attempting to create directories that are temporarily more
64754         permissive than the final results.  Do not attempt to use
64755         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
64756         This removes some race conditions, fixes some bugs, and simplifies
64757         things.  Use new dirchownmod function to do owner and mode changes.
64758         * lib/mkdir-p.h: Likewise.
64759         * lib/modechange.c (octal_to_mode): New function.
64760         (struct mode_change): New member mentioned.
64761         (make_node_op_equals): New arg mentioned.  All callers changed.
64762         (mode_compile): Keep track of which mode bits the user has explicitly
64763         mentioned.
64764         (mode_adjust): New arg DIR, so that we implement the X op correctly.
64765         New arg PMODE_BITS, to keep track of which mode bits the user
64766         mentioned; it treats S_ISUID and S_ISGID speciall.
64767         All callers changed.
64768         * lib/modechange.h: Likewise.
64769
64770 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64771
64772         * MODULES.html.sh: Add mkancestors.
64773         * modules/mkancesdirs: New module.
64774         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
64775         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
64776         The chdir-safer and afs files are now orphans; I'll remove them
64777         unless someone speaks up.
64778         Add lib/dirchownmod.c, lib/dirchownmod.h.
64779         (Depends-on): Remove alloca, chown, save-cwd, dirname.
64780         Add lchown, mkancesdirs.
64781         (Maintainer): Add self.
64782
64783 2006-07-15  Karl Berry  <karl@gnu.org>
64784
64785         * gnulib-tool: help message wording/arrangement.
64786
64787 2006-07-14  Simon Josefsson  <jas@extundo.com>
64788
64789         * doc/gnulib.texi (Libtool and Windows): New section.
64790
64791 2006-07-12  Simon Josefsson  <jas@extundo.com>
64792
64793         * modules/gendocs (License): Fix license, approved by Karl.
64794
64795 2006-07-12  Eric Blake  <ebb9@byu.net>
64796
64797         * MODULES.html.sh: Add gendocs.
64798
64799 2006-07-11  Eric Blake  <ebb9@byu.net>
64800
64801         * modules/fdl: New module, to install doc/fdl.texi.
64802         * MODULES.html.sh: Add new section for documentation modules.
64803         * gnulib-tool: Avoid space-tab.
64804         (--doc-base): New option, to manage files from doc.
64805
64806 2006-07-11  Eric Blake  <ebb9@byu.net>
64807
64808         * m4/absolute-header.m4: Fix comments to match recent change.
64809
64810 2006-07-11  Eric Blake  <ebb9@byu.net>
64811
64812         * gnulib-tool: List --doc-base before --tests-base.
64813
64814 2006-07-11  Derek R. Price  <derek@ximbiot.com>
64815
64816         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
64817
64818 2006-07-11  Bruno Haible  <bruno@clisp.org>
64819
64820         * README: Mention where to put documentation.
64821
64822 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64823
64824         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
64825
64826 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
64827
64828         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
64829         to stdint.m4.
64830
64831 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
64832
64833         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
64834         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
64835         "no/such/file/stdint.h" when there is no such file, so that
64836         the resulting C code can be parsed by dodgy compilers.
64837         Problems reported by Bob Proulx.
64838
64839 2006-07-10  Derek R. Price  <derek@ximbiot.com>
64840
64841         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
64842         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
64843         macros into the GNU _D_EXACT_NAMLEN.
64844         * lib/savedir.c:  Likewise.
64845         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
64846
64847 2006-07-10  Derek R. Price  <derek@ximbiot.com>
64848         and Paul Eggert  <eggert@cs.ucla.edu>
64849
64850         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
64851         * m4/savedir.m4:
64852         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
64853         macros into the GNU _D_EXACT_NAMLEN.
64854
64855 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64856
64857         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
64858         around the absolute name, to work around a problem with the HP-UX
64859         11.23 native C compiler, reported by Bob Proulx.
64860
64861 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64862
64863         * doc/maintain.texi, make-stds.texi: Sync from
64864         <http://savannah.gnu.org/projects/gnustandards>.
64865
64866 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64867
64868         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
64869
64870 2006-07-09  Jim Meyering  <jim@meyering.net>
64871
64872         * m4/glob.m4: Remove a doubled word in a comment.
64873
64874 2006-07-09  Jim Meyering  <jim@meyering.net>
64875
64876         * lib/argp-pv.c: Remove a doubled word in a comment.
64877         * lib/check-version.c (check_version): Likewise.
64878         * lib/javacomp.c (compile_java_class): Likewise.
64879
64880 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64881
64882         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
64883         for the benefit of people using Autoconf 2.60.  If you want to
64884         support older Autoconf versions you can copy m4/onceonly_2_57.m4
64885         (or m4/onceonly.m4, if pre-2.57) manually.
64886
64887 2006-07-08  Jim Meyering  <jim@meyering.net>
64888
64889         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
64890         comment.
64891         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
64892         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
64893         comment.
64894
64895 2006-07-08  Jim Meyering  <jim@meyering.net>
64896
64897         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
64898
64899 2006-07-07  Simon Josefsson  <jas@extundo.com>
64900
64901         * tests/test-crc.c: Change expected crc value, the test vector
64902         were probably computed using the old broken crc.c?
64903
64904 2006-07-06  Simon Josefsson  <jas@extundo.com>
64905
64906         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
64907         now the canonical place for the M4 file).
64908
64909         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
64910         from the sys_socket dependency now.
64911
64912         * modules/inet_pton (Files): Ditto.
64913
64914         * modules/inet_ntop (Files): Ditto.
64915
64916 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64917
64918         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
64919         not gl_PREREQ_GETUSERSHELL.
64920
64921 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64922
64923         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
64924         with only one argument, for Autoconf 2.60.
64925         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
64926         expand to nothing, so add a shell command to avoid syntax error.
64927         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64928
64929 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64930
64931         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
64932
64933 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64934
64935         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
64936         no longer needed.  Check for isblank decl.
64937         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
64938         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
64939         of existence.
64940
64941 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64942
64943         * lib/getloadavg.c: Use __VMS, not VMS.
64944         * lib/getopt.c: Likewise.
64945         * lib/getpagesize.h: Likewise.
64946         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
64947         and probably does not work.
64948
64949 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64950
64951         * lib/.cppi-disable: Add wcwidth.
64952         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
64953         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
64954         (ISGRAPH): Remove.  All uses changed to isgraph.
64955         (FOLD) [!defined _LIBC]: Remove special case.
64956         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
64957         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
64958         HAVE_ISBLANK.
64959         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
64960         case.
64961
64962 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64963
64964         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
64965         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
64966         brackets.  Other minor changes to suppress some compiler
64967         warnings.
64968
64969 2006-07-06  Derek R. Price  <derek@ximbiot.com>
64970         and Paul Eggert  <eggert@cs.ucla.edu>
64971
64972         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
64973         of invoking obsolescent AC_HEADER_DIRENT macro.
64974         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
64975         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
64976         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
64977         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
64978         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
64979         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64980         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
64981         * m4/readdir.m4: Remove; no longer needed.
64982
64983 2006-07-06  Derek R. Price  <derek@ximbiot.com>
64984         and Paul Eggert  <eggert@cs.ucla.edu>
64985
64986         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
64987         Don't worry about this obsolete case any more.
64988         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
64989         directories.
64990         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
64991         worry about this obsolete case any more.
64992         * lib/fts.c: Likewise.
64993         * lib/getcwd.c: Likewise.
64994         * lib/glob.h: Likewise.
64995         * lib/savedir.c: Likewise.
64996
64997 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64998
64999         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
65000         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
65001         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
65002         needed.
65003         All uses removed.
65004         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65005         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65006         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
65007         needed.
65008         * m4/getdate.m4 (gl_GETDATE): Likewise.
65009         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65010         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65011         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65012         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65013         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65014         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65015         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
65016         needed.
65017
65018 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65019
65020         * lib/memcasecmp.c: Include <limits.h>.
65021         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65022         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65023         Don't assume isdigit succeeds only on '0' through '9'.
65024
65025 2006-07-05  Eric Blake  <ebb9@byu.net>
65026
65027         * modules/getaddrinfo (Depends-on): Add snprintf.
65028
65029 2006-07-05  Eric Blake  <ebb9@byu.net>
65030
65031         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65032         to avoid 'header present but could not be compiled' on cygwin.
65033
65034 2006-07-05  Eric Blake  <ebb9@byu.net>
65035
65036         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65037         missing from netdb.h.
65038         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65039
65040 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65041
65042         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65043         no longer needed.
65044         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65045         * m4/getdate.m4 (gl_GETDATE): Likewise.
65046         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65047         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65048         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65049         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65050         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65051
65052 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65053
65054         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65055         All uses of is_space replaced by isspace.
65056         * lib/exit.h: Don't talk about STDC_HEADERS.
65057         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65058         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65059         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65060         replaced by isprint etc.
65061         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65062         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65063         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65064         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65065         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65066         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65067
65068 2006-07-05  Bruno Haible  <bruno@clisp.org>
65069
65070         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65071         the function exists, before testing against AIX.
65072         Reported by Martin Lambers <marlam@marlam.de>.
65073
65074 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65075
65076         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65077         From Mark D. Baushke.
65078
65079 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65080
65081         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65082         to the absolute name, not just one, to bypass Sun C 5.8's
65083         "warning: #include of /usr/include/... may be non-portable".
65084
65085 2006-07-04  Eric Blake  <ebb9@byu.net>
65086
65087         * modules/dirname-tests: New test module.
65088         * tests/test-dirname.c: New file, replacing dirname.c
65089         TEST_DIRNAME section that was recently deleted.
65090
65091 2006-07-04  Bruno Haible  <bruno@clisp.org>
65092
65093         Assume ANSI C header files and <ctype.h> functions.
65094         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65095         (mbsnwidth): Use isprint, iscntrl instead.
65096
65097 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65098
65099         Merge from coreutils.
65100         * MODULES.html.sh: Add xstrtold.
65101         * modules/xstrtold: New file.
65102         * modules/cycle-check (Files): Add lib/same-inode.h.
65103         * modules/dirname (Files): Add m4/double-slash-root.m4.
65104         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65105         * modules/mkdir-p (Files): Add lib/same-inode.h.
65106         * modules/same (Files): Add lib/same-inode.h.
65107
65108 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65109
65110         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65111         This is to keep the terminology clean; POSIX talks about
65112         "absolute pathnames", not "full pathnames", but the GNU
65113         Coding Standards say to use "path" for something else;
65114         so use "absolute" to keep both sides happy.
65115         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65116         Set gl_absolute_header, not gl_full_header_path.
65117         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65118         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65119         All uses changed.
65120
65121         Merge from coreutils.
65122
65123         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65124
65125         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65126         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65127         want to require the building of c-strtod.o.
65128         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65129         needs -lm directly.
65130         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65131
65132         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65133
65134         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65135         --as-needed option if available.  Problem reported by Albert Chin in
65136         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65137         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65138         cc merely issues a bunch of annoying warnings for --as-needed
65139         (this problem was reported by Bob Proulx).  Also, try linking with
65140         -lm to detect a bug in binutils 2.16 (this problem was reported
65141         by Ralf Wildenhues).
65142
65143         2006-06-18  Jim Meyering  <jim@meyering.net>
65144
65145         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65146         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65147         macro.
65148         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65149         also check for glibc-2.4's abort-inducing bug.
65150
65151         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65152         Low-probability clean-up should be to use rmdir to get rid of
65153         the just-created directory, not unlink.
65154
65155         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65156         configure fail, and request a bug report to inform us about it.
65157         Add a comment that, barring reports to the contrary, in 2007 we'll
65158         assume ftruncate is universally available.
65159
65160         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65161
65162         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65163
65164         2006-03-12  Jim Meyering  <jim@meyering.net>
65165
65166         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65167         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65168         * m4/same.m4 (gl_SAME): Likewise.
65169         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65170
65171         2006-03-11  Eric Blake  <ebb9@byu.net>
65172
65173         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65174         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65175         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65176         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65177
65178 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65179
65180         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65181         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65182         reported by Mark D. Baushke, one in
65183         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65184
65185         Merge from coreutils.
65186
65187         * lib/.cppi-disable: Add stdint_.h.
65188         * lib/.cvsignore: Add stdint.h.
65189
65190         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65191
65192         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65193         both double and long double versions.
65194         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65195         * lib/xstrtold.c: New file.
65196         * lib/xstrtod.h (xstrtold): New decl.
65197
65198         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65199
65200         * lib/filemode.c (setst): Remove.
65201         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65202         (arguably) clearer, and the generated code is a bit smaller on my
65203         Debian GNU/Linux stable x86 host.
65204
65205         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65206
65207         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65208         Assume that filemode.h includes sys/types.h and sys/stat.h.
65209         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65210         (ftypelet): Reorder to put common cases first, for efficiency.
65211         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65212         to do 'M'.
65213         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65214         of 10, for compatibility with FreeBSD.  All callers changed.
65215         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65216         types that can't be deduced solely from st_mode.  First arg is now a
65217         const pointer.
65218         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65219         (strmode): Renamed from mode_string.
65220         (filemodestring): New decl.
65221         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65222         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65223         needed.
65224         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65225
65226         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65227
65228         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65229         fsusage.h now does that.  Include fsusage.h first, to test interface.
65230         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65231         at most one method (the old code could have generated decls that
65232         didn't conform to C89, not that this was ever exercised).
65233         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65234
65235         2006-03-19  Jim Meyering  <jim@meyering.net>
65236
65237         Work even in a chroot where d_ino values for entries in "/"
65238         don't match the stat.st_ino values for the same names.
65239         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
65240         number, iterate through all entries again, using lstat instead.
65241         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
65242         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
65243
65244         * lib/getcwd.c (__getcwd): Clarify a comment.
65245         Use memcpy in place of a call to strcpy.
65246
65247         2006-03-12  Jim Meyering  <jim@meyering.net>
65248
65249         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
65250         matches that of the current directory (which we're about to chdir ".."
65251         out of), then save the dev-ino of the parent, instead.
65252
65253         * lib/same-inode.h (SAME_INODE): New file/macro.
65254         * lib/chdir-safer.c (SAME_INODE): Remove definition.
65255         Include "same-inode.h", instead.
65256         * lib/same.c: Likewise.
65257         * lib/cycle-check.h: Include "same-inode.h".
65258         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
65259         * lib/cycle-check.c (SAME_INODE): Remove definition.
65260         * lib/root-dev-ino.h: Include "same-inode.h".
65261
65262         2006-03-11  Eric Blake  <ebb9@byu.net>
65263
65264         * lib/same.c (same_name): s/base_name/last_component/
65265         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
65266         * lib/filenamecat.c (file_name_concat): Likewise.
65267
65268         2006-03-11  Eric Blake  <ebb9@byu.net>,
65269                     Paul Eggert  <eggert@cs.ucla.edu>
65270
65271         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
65272         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
65273         drive prefix.
65274         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
65275         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
65276         (last_component): New method.
65277         * lib/dirname.c (dir_len): Determine when drive letters need a
65278         subsequent slash.  Preserve // when it is special.
65279         (dir_name): Don't append dot when drive letter is absolute.
65280         [TEST_DIRNAME]: Move into a full-blown gnulib test.
65281         * lib/basename.c (base_name): New semantics - malloc the result.
65282         Preserve // when it is special.  Preserve relative files that look
65283         like drive letters.
65284         (base_len): Preserve // when it is special.
65285         (last_component): New method, similar to old base_name semantics.
65286         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
65287         base_name.  Strip redundant slashes from ///.
65288
65289 2006-07-03  Jim Meyering  <jim@meyering.net>
65290
65291         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
65292         macro is used before the first cycle_check call.
65293
65294 2006-07-03  Eric Blake  <ebb9@byu.net>
65295
65296         * modules/dirname (Depends-on): Add xstrndup.
65297
65298 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65299
65300         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
65301         test cases, so that config.log is a bit easier to follow.
65302
65303 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65304
65305         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
65306         both are 64 bits, since this seems to be the tradition, and this
65307         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
65308         we ever run into a host that prefers long long to long in this
65309         case, we'll need another configure-time test.  Problem reported by
65310         Jim Meyering.
65311
65312 2006-07-02  Eric Blake  <ebb9@byu.net>
65313
65314         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
65315
65316 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65317
65318         * modules/inttypes (Depends-on): No longer depends on stdint.
65319         * modules/stdint (Description): Say more about assumptions.
65320         Say that the fast types might differ.  Say macros are used.
65321         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
65322         (Makefile.am): Revise list of substituted symbols to match
65323         new stdint.m4.
65324         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
65325         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
65326         * tests/test-stdint.c (verify_same_types)
65327         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65328         the code conforms to C99/C89.
65329         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65330         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65331
65332 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65333
65334         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65335         but fix a bug, by requiring at least 64 bits.
65336         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65337         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65338         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65339         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65340
65341         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65342         changes.  Make 2.59 a prerequisite.  Check and substitute for
65343         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65344         inttypes.h.  Do not use special include files; just use the
65345         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65346         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65347         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65348         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65349         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65350         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65351         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65352         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65353         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65354         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65355         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65356         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65357         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65358         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65359         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65360         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65361         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65362         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65363         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65364         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65365         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65366         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65367         not check for things that C99 does not require, e.g., int8_t.  If
65368         a test isn't needed unless <stdint.h> isn't working, and is
65369         unlikely to be needed for any other reason, then don't do it
65370         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65371         size_t, since we assume C89 freestanding at least.  Do not check
65372         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65373         the right thing even if the types are not defined.  Instead use:
65374         (gl_STDINT_TYPE_PROPERTIES): New macro.
65375         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65376         testing whether <sys/types.h> clashes, as Autoconf does this for
65377         us now.  All uses removed.
65378         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65379         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65380         (gl_CHECK_TYPE_SAME):
65381         Remove; no longer needed.
65382         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65383         exists, since we'll return 0 anyway in that case.
65384         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65385
65386 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65387
65388         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65389         possible collision with system files.
65390         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65391         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65392         WCHAR_MIN and WCHAR_MAX in this case.
65393         (<stddef.h>): Do not include; no longer needed.
65394         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65395         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65396         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65397         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65398         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65399         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65400         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65401         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
65402         !defined(__c99))]: Include in this case too, since it's harmless
65403         now.
65404         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
65405         dangerous to do so.
65406         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
65407         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
65408         (_STDINT_MIN, _STDINT_MAX): New macros.
65409         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
65410         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
65411         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
65412         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
65413         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
65414         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
65415         macros, not typedefs; this simplifies things quite a bit.
65416         Use long int for all types narrower than int64_t.
65417         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
65418         Define in terms of long long int or int64_t or long int,
65419         not int64_t or int32_t.  This saves some compile-time testing.
65420         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
65421         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
65422         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
65423         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
65424         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
65425         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
65426         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
65427         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
65428         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
65429         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
65430         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65431         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65432         undef any previous version and define our own version, for
65433         simplicity and consistency with the new macros for types.
65434         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65435         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65436         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
65437         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
65438         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
65439         @WINT_T_SUFFIX@ to keep things simple here.
65440         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
65441         Simplify by assuming typical 8/16/32/64 host, since we're
65442         already doing that elsewhere anyway.
65443         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
65444         and assume long long int is 64 bits if available.  This
65445         speeds up 'configure'.
65446
65447 2006-07-01  Eric Blake  <ebb9@byu.net>
65448
65449         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
65450         Reported by Andreas Buening.
65451
65452 2006-07-01  Eric Blake  <ebb9@byu.net>
65453
65454         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
65455
65456 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65457
65458         * lib/getaddrinfo.c: fixed typo
65459
65460 2006-06-29  Jim Meyering  <jim@meyering.net>
65461
65462         * modules/strftime (Maintainer): Add my name, since with the
65463         FPRINTFTIME changes strftime.c has forked from glibc.
65464
65465 2006-06-29  Eric Blake  <ebb9@byu.net>
65466
65467         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
65468
65469 2006-06-29  Eric Blake  <ebb9@byu.net>
65470
65471         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
65472
65473 2006-06-29  Eric Blake  <ebb9@byu.net>
65474
65475         * lib/stat_.h: New file.
65476
65477 2006-06-29  Eric Blake  <ebb9@byu.net>
65478
65479         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
65480         unused static function.
65481
65482 2006-06-29  Eric Blake  <ebb9@byu.net>
65483
65484         * doc/functions.texi (Function Portability): Document missing lstat
65485         on mingw.
65486
65487 2006-06-29  Eric Blake  <ebb9@byu.net>
65488
65489         * MODULES.html.sh: Add sys_stat.
65490         * modules/sys_stat: New module.
65491         * modules/mkstemp (Depends-on): Add sys_stat.
65492
65493 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65494
65495         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
65496
65497 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65498
65499         * m4/c-bs-a.m4: Removed.
65500
65501 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65502
65503         * lib/strftime.c: Assume strftime() exists.
65504
65505 2006-06-29  Derek Price  <derek@ximbiot.com>
65506
65507         * modules/c-bs-a: Removed - \a is C89.
65508         * MODULES.html.sh: Remove c-bs-a.
65509
65510 2006-06-29  Bruno Haible  <bruno@clisp.org>
65511
65512         * modules/wcwidth (License): Change to LGPL.
65513
65514 2006-06-28  Simon Josefsson  <jas@extundo.com>
65515
65516         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
65517         on _WIN32.
65518
65519         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
65520         getnameinfo.
65521
65522 2006-06-28  Simon Josefsson  <jas@extundo.com>
65523
65524         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
65525
65526 2006-06-28  Simon Josefsson  <jas@extundo.com>
65527
65528         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
65529         functions there.  It will succeed on Windows XP, but on Windows
65530         2000 and (presumably) earlier, it will fail, and use the internal
65531         re-implementation.
65532         (use_win32_p): New function.
65533         (getaddrinfo): Use strtoul on servname, to support numeric ports.
65534         Support AI_NUMERICSERV to disable getservbyname.
65535         (getnameinfo): New function, only supports
65536         NI_NUMERICHOST|NI_NUMERICSERV for now.
65537
65538         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
65539         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
65540         getnameinfo.
65541
65542 2006-06-28  Eric Blake  <ebb9@byu.net>
65543
65544         * modules/wcwidth: New file.
65545         * modules/mbchar (Depends-on): Add wcwidth.
65546         * modules/mbswidth (Depends-on): Add wcwidth.
65547         * MODULES.html.sh: Add wcwidth.
65548
65549 2006-06-28  Eric Blake  <ebb9@byu.net>
65550
65551         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
65552         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
65553
65554 2006-06-28  Eric Blake  <ebb9@byu.net>
65555
65556         * lib/xvasprintf.h: Fix comments.
65557
65558 2006-06-28  Eric Blake  <ebb9@byu.net>
65559
65560         * lib/mbchar.h (wcwidth): Include wcwidth.h.
65561         * lib/mbswidth.c (wcwidth): Move from here...
65562         * lib/wcwidth.h: ...to this new file.
65563
65564 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65565
65566         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
65567
65568         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
65569         it's obsolete.
65570         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
65571
65572 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65573
65574         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
65575         Autoconf 2.60 says this stuff was obsolete.
65576
65577 2006-06-28  Bruno Haible  <bruno@clisp.org>
65578
65579         * modules/wcwidth (Files): Add m4/wchar_t.m4.
65580
65581 2006-06-28  Bruno Haible  <bruno@clisp.org>
65582
65583         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
65584         gt_TYPE_WCHAR_T.
65585
65586 2006-06-28  Bruno Haible  <bruno@clisp.org>
65587
65588         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
65589         declaration for wcwidth.
65590         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
65591
65592 2006-06-28  Bruno Haible  <bruno@clisp.org>
65593
65594         * lib/mkdtemp.c [MINGW]: Include <io.h>.
65595         (mkdir): Define using _mkdir.
65596
65597 2006-06-28  Bruno Haible  <bruno@clisp.org>
65598
65599         * lib/getaddrinfo.h: Fix POSIX URL.
65600         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
65601         _WIN32.
65602         (use_win32_p): Make static.
65603         (getaddrinfo): Reject service name if it is empty or does not consist
65604         solely of decimal digits, or if its value is > 65535.
65605         (getnameinfo): Remove useless casts.
65606
65607 2006-06-27  Simon Josefsson  <jas@extundo.com>
65608
65609         * modules/sys_select: New file, suggested by Bruno Haible, Paul
65610         Eggert and Martin Lambers.
65611
65612 2006-06-27  Simon Josefsson  <jas@extundo.com>
65613
65614         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
65615         Eggert and Martin Lambers.
65616
65617 2006-06-27  Bruno Haible  <bruno@clisp.org>
65618
65619         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
65620         result to 0, not to empty.
65621         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
65622
65623 2006-06-27  Bruno Haible  <bruno@clisp.org>
65624
65625         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
65626
65627 2006-06-26  Simon Josefsson  <jas@extundo.com>
65628
65629         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
65630         present.
65631
65632 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
65633
65634         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
65635         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
65636         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
65637
65638 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
65639
65640         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
65641
65642 2006-06-26  Bruno Haible  <bruno@clisp.org>
65643
65644         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
65645
65646 2006-06-26  Bruno Haible  <bruno@clisp.org>
65647
65648         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
65649
65650 2006-06-26  Bruno Haible  <bruno@clisp.org>
65651
65652         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
65653         SGI C compiler in pre-C99 mode.
65654         Suggested by Mark D. Baushke and Larry Jones.
65655
65656 2006-06-26  Bruno Haible  <bruno@clisp.org>
65657
65658         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
65659         WCHAR_MAX.
65660         Reported by Mark D. Baushke and Larry Jones.
65661
65662 2006-06-26  Bruno Haible  <bruno@clisp.org>
65663
65664         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
65665         in pre-C99 mode.
65666         Suggested by Mark D. Baushke and Larry Jones.
65667
65668 2006-06-23  Simon Josefsson  <jas@extundo.com>
65669             Bruno Haible  <bruno@clisp.org>
65670
65671         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
65672         Emit mostlyclean-local rule.
65673         (func_emit_tests_Makefile_am): Likewise.
65674         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
65675
65676 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
65677
65678         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
65679
65680 2006-06-23  Bruno Haible  <bruno@clisp.org>
65681
65682         * tests/test-stdint.c: Update to match ISO C 99 Technical
65683         Corrigendum 1.
65684
65685 2006-06-23  Bruno Haible  <bruno@clisp.org>
65686
65687         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
65688
65689 2006-06-23  Bruno Haible  <bruno@clisp.org>
65690
65691         * lib/stdint_.h: Treat IRIX like OpenBSD.
65692
65693 2006-06-23  Bruno Haible  <bruno@clisp.org>
65694
65695         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
65696         ISO C 99 Technical Corrigendum 1.
65697
65698 2006-06-22  Simon Josefsson  <jas@extundo.com>
65699
65700         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
65701         MinGW.
65702
65703 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65704
65705         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
65706         needed.  Some compiler complained about some of them.  Problem reported
65707         by Larry Jones in
65708         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
65709
65710 2006-06-21  Simon Josefsson  <jas@extundo.com>
65711
65712         * tests/test-getaddrinfo.c: New file.
65713
65714         * modules/getaddrinfo-tests: New file.
65715
65716         * MODULES.html.sh: Add inet_pton.
65717
65718         * modules/inet_pton: New file.
65719
65720 2006-06-21  Simon Josefsson  <jas@extundo.com>
65721
65722         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
65723         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
65724         of using the (limited) gnulib implementation on Windows XP.
65725
65726         * m4/inet_pton.m4: New file.
65727
65728 2006-06-21  Simon Josefsson  <jas@extundo.com>
65729
65730         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
65731         variable.
65732
65733         * lib/socket_.h: Don't define WINVER.
65734
65735         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
65736         slightly modified to work in gnulib.
65737
65738 2006-06-21  Simon Josefsson  <jas@extundo.com>
65739
65740         * doc/gnulib.texi (Windows sockets): Add.
65741
65742 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65743
65744         * lib/read-file.c (fread_file): Start with buffer allocation of
65745         0 bytes rather than 1 byte; this simplifies the code.
65746         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
65747         code to free buffer and save/restore errno.
65748         (internal_read_file): Remove unused local.
65749
65750 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65751
65752         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
65753         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
65754         Problem reported by Denis Excoffier in
65755         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
65756
65757 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65758
65759         * modules/sys_socket, modules/socklen: Include sys/types since
65760         FreeBSD 4.x's sys/socket.h needs it.
65761
65762 2006-06-19  Simon Josefsson  <jas@extundo.com>
65763
65764         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
65765
65766 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65767
65768         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
65769
65770 2006-06-19  Bruno Haible  <bruno@clisp.org>
65771
65772         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
65773         and FULL_PATH_INTTYPES_H in angle brackets.
65774         Reported by Mark D. Baushke <mdb@gnu.org>.
65775
65776 2006-06-17  Eric Blake  <ebb9@byu.net>
65777
65778         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
65779         errno.
65780
65781 2006-06-17  Bruno Haible  <bruno@clisp.org>
65782
65783         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
65784         <sys/inttypes.h>.
65785
65786 2006-06-17  Bruno Haible  <bruno@clisp.org>
65787
65788         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
65789         whether errno is declared. Assume <errno.h> declares errno.
65790
65791 2006-06-17  Bruno Haible  <bruno@clisp.org>
65792
65793         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
65794
65795 2006-06-17  Bruno Haible  <bruno@clisp.org>
65796
65797         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
65798         problem on Solaris 2.5.1.
65799
65800 2006-06-16  Eric Blake  <ebb9@byu.net>
65801
65802         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
65803         * lib/unicodeio.c [!defined errno]: Likewise.
65804         * lib/strtol.c [!defined errno]: Likewise.
65805         * lib/strtod.c [!defined errno]: Likewise.
65806
65807 2006-06-15  Eric Blake  <ebb9@byu.net>
65808
65809         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
65810
65811 2006-06-15  Eric Blake  <ebb9@byu.net>
65812
65813         * config/srclist.txt (ssize_t.m4): Lose sync.
65814
65815 2006-06-15  Bruno Haible  <bruno@clisp.org>
65816
65817         * modules/stdint (Files): Include m4/full-header-path.m4,
65818         m4/size_max.m4, m4/wchar_t.m4.
65819         (Makefile.am): Many more substitutions.
65820         * modules/stdint-tests: New file.
65821         * tests/test-stdint.c: New file.
65822
65823 2006-06-15  Bruno Haible  <bruno@clisp.org>
65824
65825         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
65826         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
65827         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
65828         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
65829         gl_CHECK_TYPE_SAME): New macros.
65830
65831 2006-06-15  Bruno Haible  <bruno@clisp.org>
65832
65833         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
65834
65835 2006-06-15  Bruno Haible  <bruno@clisp.org>
65836
65837         * lib/stdint_.h: Rewritten to be fully auto-configured.
65838         Fixes bug on HP-UX/IA64.
65839
65840 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
65841
65842         * lib/getdate.y (__attribute__): Don't define if already defined.
65843         Problem reported by Larry Jones.
65844         * lib/utimens.c (__attribute__): Likewise.
65845
65846 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
65847
65848         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
65849         reported by Andreas Schwab.
65850
65851 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65852             Bruno Haible  <bruno@clisp.org>
65853
65854         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
65855         check for the declaration of strnlen and a run test that exposes the
65856         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
65857         rpl_strndup.
65858
65859 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65860             Bruno Haible  <bruno@clisp.org>
65861
65862         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
65863
65864 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65865
65866         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
65867         compile test, for Tru64 4.0D.
65868
65869 2006-05-28  Karl Berry  <karl@gnu.org>
65870
65871         * config/srclist.txt (printf-args.c): lose sync.
65872
65873 2006-05-26  Martin Lambers  <marlam@marlam.de>
65874
65875         * lib/getpass.c: Updates the test for the native W32 API, and adds
65876         missing includes, thus fixing compilation warnings.
65877
65878 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65879
65880         * lib/exclude.c (exclude_fnmatch): New function.
65881         (excluded_file_name): Call exclude_fnmatch.
65882         * lib/exclude.h (excluded_file_name): New prototype
65883
65884 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
65885
65886         * lib/tempname.c (small_open, large_open): New macros.
65887         (__open, __open64) [!_LIBC]: Remove.
65888         (__gen_tempname): Use small_open and large_open instead of __open
65889         and __open64.  This fixes a portability bug on HP-UX 11.11i
65890         reported by Simon Wing-Tang in
65891         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
65892
65893 2006-05-24  Bruno Haible  <bruno@clisp.org>
65894
65895         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
65896         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
65897         Reported by Thorsten Maerz <torte@netztorte.de> via
65898         Aaron Stone <aaron@serendipity.cx>.
65899
65900 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65901
65902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
65903         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
65904         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
65905         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
65906         not really conditional on the cache.
65907         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
65908
65909 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65910
65911         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
65912         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
65913         (my_usleep): Don't mishandle maximum value.
65914
65915 2006-05-19  Jim Meyering  <jim@meyering.net>
65916
65917         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
65918
65919 2006-05-17  Bruno Haible  <bruno@clisp.org>
65920
65921         Cygwin portability.
65922         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
65923
65924 2006-05-17  Bruno Haible  <bruno@clisp.org>
65925
65926         * lib/stdint_.h: Fix recognition of Cygwin.
65927
65928 2006-05-15  Bruno Haible  <bruno@clisp.org>
65929
65930         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
65931         on libtool patch by Ralf Wildenhues.
65932
65933 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65934
65935         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
65936         test for C99 conformance; (bool) 0.5 is an integer constant
65937         expression, but (bool) -0.5 is not.  Problem reported by Fedor
65938         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
65939
65940 2006-05-11  Simon Josefsson  <jas@extundo.com>
65941
65942         * m4/xvasprintf.m4: Fix obvious typo.
65943
65944 2006-05-11  Jim Meyering  <jim@meyering.net>
65945
65946         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
65947         James Lemley.
65948
65949 2006-05-10  Simon Josefsson  <jas@extundo.com>
65950
65951         * lib/md4.c: Typo fix, update copyright years.
65952         (K1, K2): Don't use L because it turn computations into 64-bit on
65953         64-bit platforms.
65954
65955 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
65956
65957         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
65958         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
65959         unwanted sign propagation, e.g., on hosts with 64-bit int.
65960         There still are some problems with reeelly weird theoretical hosts
65961         (e.g., 33-bit int) but it's not worth worrying about now.
65962         * lib/sha1.c (rol): Likewise.
65963         (K1, K2, K3, K4): Remove unnecessary L suffix.
65964
65965 2006-05-10  Bruno Haible  <bruno@clisp.org>
65966
65967         * lib/des.c: Cast to avoid warnings.
65968
65969 2006-05-09  Bruno Haible  <bruno@clisp.org>
65970
65971         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
65972         (Depends-on): Depend also on xsize, stdarg.
65973         (configure.ac): Add gl_XVASPRINTF.
65974
65975 2006-05-09  Bruno Haible  <bruno@clisp.org>
65976
65977         * m4/xvasprintf.m4: New file.
65978
65979 2006-05-09  Bruno Haible  <bruno@clisp.org>
65980
65981         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
65982         (EOVERFLOW): Define fallback value.
65983         (xstrcat): New function.
65984         (xvasprintf): Recognize the special case of a string concatenation.
65985
65986 2006-05-08  Eric Blake  <ebb9@byu.net>
65987
65988         * gnulib-tool (func_version): Base copyright year on CVS date.
65989         (func_emit_copyright_notice): New function.
65990         (func_emit_lib_Makefile_am): Use it.
65991         (func_emit_tests_Makefile_am): Likewise.
65992         (func_import): Likewise.
65993
65994 2006-05-08  Bruno Haible  <bruno@clisp.org>
65995
65996         * modules/stdarg: New file.
65997         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
65998
65999 2006-05-08  Bruno Haible  <bruno@clisp.org>
66000
66001         * m4/stdarg.m4: New file, from GNU gettext.
66002
66003 2006-05-08  Bruno Haible  <bruno@clisp.org>
66004
66005         * config/srclist.txt (build-aux/config.rpath): different from latest
66006         release.
66007
66008 2006-05-08  Bruno Haible  <bruno@clisp.org>
66009
66010         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
66011
66012 2006-05-05  Jim Meyering  <jim@meyering.net>
66013
66014         * m4/warning.m4: New file, derived from bison's file by the same name.
66015
66016 2006-05-03  Bruno Haible  <bruno@clisp.org>
66017
66018         * lib/stdint_.h: Shorter URL.
66019         * lib/inttypes.h: Likewise.
66020
66021 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66022
66023         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66024
66025 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66026
66027         * lib/verify.h: Document the internals better.  Most of this change
66028         was written by Bruno Haible.
66029
66030 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66031
66032         * doc/verify.texi: New file, partly based on a proposal by
66033         Bruno Haible.
66034
66035 2006-05-02  Bruno Haible  <bruno@clisp.org>
66036
66037         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66038         test from here...
66039         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66040
66041 2006-04-29  Bruno Haible  <bruno@clisp.org>
66042
66043         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66044         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66045
66046 2006-04-29  Bruno Haible  <bruno@clisp.org>
66047
66048         * gnulib-tool: Make --update option actually work.
66049
66050 2006-04-29  Bruno Haible  <bruno@clisp.org>
66051
66052         * doc/gcd.texi: New file.
66053         * doc/gnulib.texi: Include it.
66054
66055 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66056
66057         * lib/getdate.y (get_date): When adding relative date, start with the
66058         initial time, not with the result of the first mktime call.
66059
66060 2006-04-25  Bruno Haible  <bruno@clisp.org>
66061
66062         * gnulib-tool (func_import): Output the include directives in three
66063         blocks, sorted separately.
66064         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66065
66066 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66067
66068         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66069         to define main with arguments, for C++.  Reported by Eric Blake.
66070         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66071         Prefer 'int main ()' to 'int main (void)', for C++.
66072         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66073         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66074         for 'main', for C99 and C++.
66075
66076 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66077
66078         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66079         Don't assume that exit status -1 is valid.
66080         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66081         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66082         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66083         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66084         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66085         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66086         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66087         functions can be used without declaring them, or that you can
66088         exit with status -1.
66089         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66090
66091 2006-04-24  Karl Berry  <karl@gnu.org>
66092
66093         * config/srclist.txt (longdouble.m4): sync lost.
66094
66095 2006-04-24  Eric Blake  <ebb9@byu.net>
66096
66097         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66098
66099 2006-04-24  Bruno Haible  <bruno@clisp.org>
66100
66101         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66102         poll() implementation in AIX.
66103         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66104
66105 2006-04-24  Bruno Haible  <bruno@clisp.org>
66106
66107         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66108         assigned exactly once.
66109
66110 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66111             Bruno Haible  <bruno@clisp.org>
66112
66113         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66114         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66115         for AM_CPPFLAGS.
66116
66117 2006-04-23  Bruno Haible  <bruno@clisp.org>
66118
66119         * modules/copy-file: Depend on unistd.
66120         * modules/execute: Likewise.
66121         * modules/fatal-signal: Likewise.
66122         * modules/findprog: Likewise.
66123         * modules/mkdtemp : Likewise.
66124         * modules/pipe: Likewise.
66125         * modules/wait-process: Likewise.
66126
66127 2006-04-23  Bruno Haible  <bruno@clisp.org>
66128
66129         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66130         condition was already detected.
66131         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66132
66133 2006-04-23  Bruno Haible  <bruno@clisp.org>
66134
66135         * lib/copy-file.c: Include <unistd.h> unconditionally.
66136         * lib/execute.c: Likewise.
66137         * lib/fatal-signal.c: Likewise.
66138         * lib/findprog.c: Likewise.
66139         * lib/mkdtemp.c: Likewise.
66140         * lib/pipe.h: Likewise.
66141         * lib/pipe.c: Likewise.
66142         * lib/wait-process.h: Likewise.
66143
66144 2006-04-23  Bruno Haible  <bruno@clisp.org>
66145
66146         * gnulib-tool (func_usage): Fix --import description. Document
66147         --update.
66148         (func_import): Create temporary file in a temporary directory, if
66149         --dry-run is specified. Silence errors from 'grep' when there are no
66150         m4 files in $m4dir.
66151         (func_create_testdir): Silence errors from 'grep' when there are no
66152         m4 files in $m4dir.
66153         Reported by Karl Berry <karl@freefriends.org>.
66154
66155 2006-04-20  Bruno Haible  <bruno@clisp.org>
66156
66157         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66158         one argument, so that the code will be portable to Autoconf 2.60.
66159         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66160         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66161         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66162
66163 2006-04-19  Derek Price  <derek@ximbiot.com>
66164             Eric Blake  <ebb9@byu.net>
66165
66166         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66167         rather than "/full/path.h".  Update comment to match.  Shorten &
66168         generalize m4_translit call via AS_TR_CPP.
66169
66170 2006-04-19  Derek Price  <derek@ximbiot.com>
66171             Eric Blake  <ebb9@byu.net>
66172
66173         * lib/inttypes.h: Correct grammar in comment.
66174
66175 2006-04-18  Derek Price  <derek@ximbiot.com>
66176             Paul Eggert  <eggert@cs.ucla.edu>
66177
66178         * modules/inttypes: New file.
66179         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66180
66181 2006-04-18  Derek Price  <derek@ximbiot.com>
66182             Paul Eggert  <eggert@cs.ucla.edu>
66183
66184         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66185         New files.
66186
66187 2006-04-18  Derek Price  <derek@ximbiot.com>
66188             Paul Eggert  <eggert@cs.ucla.edu>
66189
66190         * lib/inttypes.h: New file.
66191         * lib/strtoimax.c: Assume <inttypes.h>.
66192
66193 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66194
66195         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66196         isn't mounted.  Problem reported by Kir Kolyshkin.
66197
66198 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66199
66200         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66201         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66202         Derek R. Price.
66203         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66204         implementation.
66205
66206 2006-04-12  Eric Blake  <ebb9@byu.net>
66207
66208         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66209         is now done automatically by the corresponding Autoconf macro.
66210
66211 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66212
66213         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66214         time_r.h.
66215
66216 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66217
66218         Merge regex changes from libc, removing some of our
66219         POSIX-conformance changes that were rejected and redoing them in a
66220         less-intrusive way.
66221
66222         * lib/regcomp.c (re_compile_internal, init_dfa):
66223         Length arg is now size_t, not Idx.  All uses changed.
66224         (peek_token): Forward decl now says internal_function.
66225         (__re_error_msgid, __re_error_msgid_idx):
66226         Now static rather than extern with attribute_hidden.
66227         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66228         For some reason libc prefers K&R style defns for external functions.
66229         (regerror) [!defined _LIBC]: Likewise.
66230         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66231         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66232         (build_range_exp, build_collating_symbol):
66233         Use K&R-style defn.
66234         (re_compile_fastmap): Use '\0' to memset, not 0.
66235         (utf8_sb_map): Make the calculations more obvious.
66236         (init_dfa, parse_bracket_exp, build_charclass_op):
66237         Call calloc and cast result, as glibc does.
66238         (init_word_char, fetch_token, peek_token, peek_token_bracket):
66239         (build_range_exp, build_collating_symbol):
66240         Now internal functions.
66241
66242         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
66243
66244         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
66245         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
66246         Don't depend on VMS; depend on __VMS instead, for POSIX
66247         namespace cleanness.
66248         (regoff_t): Define to ssize_t, not long int.
66249
66250         Remove the REG_ macros named below.  Instead, make the old names
66251         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
66252         __USE_GNU_REGEX.
66253         (REG_BACKSLASH_ESCAPE_IN_LISTS):
66254         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
66255         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
66256         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
66257         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
66258         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
66259         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
66260         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
66261         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
66262         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
66263         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
66264         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
66265         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
66266         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
66267         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
66268         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
66269         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
66270         (REG_NREGS):
66271         Remove.  All uses replaced by the old RE_* names.
66272         (RE_BACKSLASH_ESCAPE_IN_LISTS):
66273         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
66274         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
66275         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
66276         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
66277         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
66278         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
66279         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
66280         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
66281         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
66282         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
66283         Don't bother having these macros be independent of each others'
66284         values, since they no longer exist in the POSIX name space.
66285
66286         Rename the following member names back to their old names,
66287         unless !__USE_GNU_REGEX.  All uses changed back.
66288         (buffer): Renamed from re_buffer.
66289         (allocated): Renamed from re_allocated.
66290         (used): Renamed from re_used.
66291         (syntax): Renamed from re_syntax.
66292         (fastmap): Renamed from re_fastmap.
66293         (translate): Renamed from re_translate.
66294         (can_be_null): Renamed from re_can_be_null.
66295         (regs_allocated): Renamed from re_regs_allocated.
66296         (fastmap_accurate): Renamed from re_fastmap_accurate.
66297         (no_sub): Renamed from re_no_sub.
66298         (not_bol): Renamed from re_not_bol.
66299         (not_eol): Renamed from re_not_eol.
66300         (newline_anchor): Renamed from re_newline_anchor.
66301         (num_regs): Renamed from rm_num_regs.
66302         (start): Renamed from rm_start.
66303         (end): Renamed from rm_end.
66304
66305         (free_state): Move up a bit.
66306
66307         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
66308         #define to be empty.
66309         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
66310         when that is what is intended.
66311         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
66312         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
66313         (MAX): New macro.
66314         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
66315         All uses changed back to re_malloc, etc.  It's now the caller's
66316         responsibility to check for overflow; all callers changed.
66317         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
66318         (re_x2nrealloc): Remove.
66319         (free_state): Remove decl.
66320
66321         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
66322         (re_set_registers, re_exec):
66323         Use K&R-style defn.
66324
66325         2006-01-31  Roland McGrath  <roland@redhat.com>
66326
66327         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66328         Reported by Mike Frysinger <vapier@gentoo.org>.
66329
66330         2006-01-15  Andreas Jaeger  <aj@suse.de>
66331
66332         [BZ #1950]
66333         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66334         build_wcs_upper_buffer change.
66335         (build_wcs_upper_buffer): Change return type.
66336
66337         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66338
66339         * lib/regex_internal.h: Include <stdint.h> if available.
66340
66341         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66342
66343         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66344
66345         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66346
66347         * lib/regcomp.c: Adjust for changed secondary hash function.
66348
66349         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66350
66351         * lib/regex.h: Pretty printing.
66352         Clean up namespace a bit.
66353
66354         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66355
66356         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66357         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66358
66359         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66360                     Ulrich Drepper  <drepper@redhat.com>
66361
66362         [BZ #1302]
66363         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66364         changed.
66365         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66366
66367         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66368
66369         [BZ #281]
66370         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66371         * lib/regcomp.c: Remove unnecessary uses of
66372         unsigned RE_TRANSLATE_TYPE.
66373         * lib/regex_internal.h: Likewise.
66374         * lib/regex_internal.c: Likewise.
66375         * lib/regexec.c: Likewise.
66376         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66377
66378         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66379
66380         * lib/regexec.c (find_recover_state): Remove unnecessary
66381         initialization.
66382         (transit_state_bkref): Make DFA a const pointer.
66383         (get_subexp): Likewise.
66384         (check_arrival): Likewise.
66385         (update_cur_sifted_state): Likewise.
66386         (re_search_internal): Likewise.
66387         (prune_impossible_nodes): Likewise.
66388         (acquire_init_state_context): Likewise.
66389         (proceed_next_node): Likewise.
66390         (set_regs): Likewise.
66391         (free_fail_stack_return): Likewise.
66392         (check_arrival_expand_ecl): Mark DFA parameter as const.
66393         (check_arrival_expand_ecl_sub): Likewise.
66394         (check_subexp_limits): Likewise.
66395         (sub_epsilon_src_nodes):  Likewise.
66396         (add_epsilon_src_nodes):  Likewise.
66397         (merge_state_array): Likewise.
66398         (update_regs): Likewise.
66399         (build_trtable): Likewise.
66400         (sift_states_backward): Mark MCTX parameter as const.
66401         (build_sifted_states): Likewise.
66402         (update_cur_sifted_state): Likewise.
66403         (sift_states_mkref): Likewise.
66404         (check_arrival_expand_ecl): Mark eclosure as const.
66405         (check_dst_limits_calc_pos_1): Likewise.
66406         * lib/regex_internal.h (re_match_context_t): Make dfa a const
66407         pointer.
66408
66409         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
66410
66411         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
66412         (transit_state_sb): Likewise.
66413         (transit_state_mb): Likewise.
66414         (sift_states_iter_mb): Likewise.
66415         (check_arrival_add_next_nodes): Likewise.
66416         (check_node_accept_bytes): Change first parameter to pointer-to-const.
66417         [_LIBC] (re_search_2_stub): Use mempcpy.
66418
66419         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
66420         mbrtowc for very simple UTF-8 case.
66421
66422         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
66423         a pointer-to-const.
66424         (re_acquire_state_context): Likewise.
66425         * lib/regex_internal.h: Adjust prototypes.
66426
66427         * lib/regex.c: Prevent using C++ compilers.
66428
66429         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
66430         (re_acquire_state_context): Likewise.
66431
66432 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66433
66434         * modules/regex (Depends-on): Add ssize_t.
66435
66436 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66437
66438         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
66439         translation table.
66440
66441 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66442
66443         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
66444
66445 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
66446             Bruno Haible  <bruno@clisp.org>
66447
66448         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
66449         <sys/types.h> and <inttypes.h>.
66450
66451 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66452
66453         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
66454         `__error_t_defined', so argp.h will not typedef the former.
66455
66456 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66457
66458         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
66459         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
66460         glibc names.  Even if glibc is changed to conform to POSIX, the
66461         traditional names will be available anyway, since regex depends on
66462         the extensions module.  Also, fix a longstanding typo in the
66463         implementation of Spencer ERE test #75 from grep 2.3.  Problems
66464         reported by Emanuele Giaquinta.  Also, change sense of cached
66465         variable, so that the message makes sense.
66466
66467 2006-03-24  Simon Josefsson  <jas@extundo.com>
66468
66469         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
66470         including some doc fixes.
66471         (base64_encode_alloc): Fix +1 bug on allocation failures.
66472
66473 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66474
66475         * lib/base64.c (base64_encode): Do not read past end of array with
66476         unsanitized input on systems with CHAR_BIT > 8.
66477
66478 2006-03-24  Eric Blake  <ebb9@byu.net>
66479
66480         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
66481
66482 2006-03-22  Karl Berry  <karl@gnu.org>
66483
66484         * config/srclist.txt (*setenv.[ch]): get from coreutils.
66485         * config/srclistvars.sh (COREUTILS): new var.
66486
66487 2006-03-17  Jim Meyering  <jim@meyering.net>
66488
66489         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
66490         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
66491
66492 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66493
66494         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
66495         no longer needs it.  Instead, check that regoff_t is as least
66496         as wide as ptrdiff_t.
66497
66498         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
66499         so that our regex.h stays compatible with the installed regex.
66500         This is helpful for installers who configure --without-included-regex.
66501         Problem reported by Emanuele Giaquinta.
66502
66503 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66504
66505         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
66506         Typedef to long int, not to off_, as POSIX will likely change
66507         in that direction.
66508
66509 2006-03-15  Eric Blake  <ebb9@byu.net>
66510
66511         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
66512
66513 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66514
66515         * lib/argp-help.c (validate_uparams): Fix typo
66516         * lib/argp-parse.c (argp_default_options): Consistently begin help
66517         messages with a lowercase letter.
66518
66519 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
66520
66521         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
66522         overrun buffers and shouldn't be used (much as gets shouldn't be
66523         used).
66524         * lib/time_r.c (asctime_r, ctime_r): Likewise.
66525
66526 2006-03-08  Simon Josefsson  <jas@extundo.com>
66527
66528         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
66529         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66530
66531 2006-03-08  Simon Josefsson  <jas@extundo.com>
66532
66533         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
66534         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66535
66536 2006-03-08  Simon Josefsson  <jas@extundo.com>
66537
66538         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
66539         signal that configure disabled the device.
66540
66541 2006-03-08  Simon Josefsson  <jas@extundo.com>
66542
66543         * build-aux/maint.mk: Fix refresh-po, to handle no translated
66544         languages.
66545
66546 2006-03-07  Simon Josefsson  <jas@extundo.com>
66547
66548         * modules/getopt (Depends-on): Add unistd.
66549
66550         * modules/unistd: New file.
66551
66552 2006-03-07  Simon Josefsson  <jas@extundo.com>
66553
66554         * modules/gc-random: New file.
66555
66556 2006-03-07  Simon Josefsson  <jas@extundo.com>
66557
66558         * m4/unistd_h.m4: New file.
66559
66560 2006-03-07  Simon Josefsson  <jas@extundo.com>
66561
66562         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
66563         test to be side-effect free by storing the result in the cache
66564         variable gl_cv_lib_readline, and moving the assignment of
66565         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
66566         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66567
66568 2006-03-07  Simon Josefsson  <jas@extundo.com>
66569
66570         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
66571         error on missing devices (the functions will return an error).
66572
66573         * m4/gc.m4: Move random stuff to gc-random.m4
66574
66575 2006-03-07  Simon Josefsson  <jas@extundo.com>
66576
66577         * lib/unistd_.h: New file.
66578
66579 2006-03-07  Simon Josefsson  <jas@extundo.com>
66580
66581         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
66582
66583 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66584
66585         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
66586         Problem reported by Juan Manuel Guerrero.
66587
66588 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66589
66590         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
66591         the unistd module.
66592         * lib/getlogin_r.c: Likewise.
66593         * lib/getlogin_r.h: Likewise.
66594         * lib/glob.c: Likewise.
66595         * lib/pagealign_alloc.c: Likewise.
66596         * lib/unistd_.h: Remove; no longer needed.
66597
66598 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66599
66600         * MODULES.html.sh (Support for systems lacking POSIX:2001):
66601         Add unistd.
66602         * modules/c-stack (Depends-on): Add unistd.
66603         * modules/getlogin_r: Likewise.
66604         * modules/glob: Likewise.
66605         * modules/pagealign_alloc: Likewise.
66606         * modules/unistd (Files): Remove lib/unistd_.h.
66607         (EXTRA_DIST): Remove.
66608         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
66609         need unistd_.h.
66610         (MOSTLYCLEANFILES): Remove unistd.h-t.
66611
66612 2006-03-03  Simon Josefsson  <jas@extundo.com>
66613
66614         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
66615
66616 2006-03-03  Simon Josefsson  <jas@extundo.com>
66617
66618         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
66619         libidn and bison.
66620
66621 2006-03-03  Simon Josefsson  <jas@extundo.com>
66622
66623         * build-aux/maint.mk: Add indent target.
66624
66625 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
66626
66627         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
66628         our replacement poll.h in any case, to avoid a differing
66629         declaration from a system header.  Seen on AIX.
66630
66631 2006-03-01  Simon Josefsson  <jas@extundo.com>
66632
66633         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
66634         <kasal@ucw.cz>.
66635
66636 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66637
66638         * modules/gettime (Depends-on): Add extensions module.
66639         * modules/nanosleep (Depends-on): Likewise.
66640         * modules/settime (Depends-on): Likewise.
66641
66642 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66643
66644         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
66645         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
66646         pedantically.
66647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66648         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
66649
66650         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
66651         not "==".  Reported by Ralf Wildenhues.
66652
66653 2006-03-01  Karl Berry  <karl@gnu.org>
66654
66655         * doc/Copyright/request-*: new files, synced from gnuorg.
66656
66657 2006-03-01  Karl Berry  <karl@gnu.org>
66658
66659         * config/srclist.txt (Copyright/*): new entries.
66660
66661 2006-02-28  Simon Josefsson  <jas@extundo.com>
66662
66663         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
66664
66665 2006-02-27  Simon Josefsson  <jas@extundo.com>
66666
66667         * lib/base64.h: Indent #define's.  From Jim Meyering
66668         <jim@meyering.net>.
66669
66670 2006-02-27  Jim Meyering  <jim@meyering.net>
66671
66672         Revert the change of 2006-02-24, so these files can continue
66673         to be sync'd from gettext.
66674         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
66675         of `config.h'.
66676
66677 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66678
66679         * modules/intprops: New file.
66680         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66681         Add intprops.
66682         * modules/getloadavg (Files): Remove lib/intprops.h.
66683         (Depends-on): Add intprops.
66684         * modules/human: Likewise.
66685         * modules/inttostr: Likewise.
66686         * modules/openat: Likewise.
66687         * modules/sig2str: Likewise.
66688         * modules/userspec: Likewise.
66689         * modules/utimecmp: Likewise.
66690         * modules/xnanosleep: Likewise.
66691         * modules/xstrtol: Likewise.
66692
66693 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
66694
66695         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
66696         * modules/lock-tests (TESTS): Use $(EXEEXT).
66697         * modules/tls-tests: Likewise.
66698         * modules/argp-tests: Likewise.
66699         (check_PROGRAMS): New var, replacing...
66700         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
66701
66702 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66703
66704         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
66705         `config.h'.
66706
66707 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66708
66709         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
66710
66711 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66712
66713         Sync from coreutils.
66714         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
66715         gl_CHDIR_SAFER.
66716
66717 2006-02-22  Jim Meyering  <jim@meyering.net>
66718
66719         Sync from coreutils.
66720         * m4/chdir-safer.m4: New file.
66721
66722 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66723
66724         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
66725         AT_FDCWD exceeds INT_MAX.
66726         * lib/openat.h (AT_FDCWD): Likewise.
66727
66728 2006-02-17  Eric Blake  <address@hidden>
66729
66730         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
66731
66732 2006-02-16  Simon Josefsson  <jas@extundo.com>
66733
66734         * modules/getaddrinfo (Depends-on): Add sys_socket.
66735
66736 2006-02-15  Simon Josefsson  <jas@extundo.com>
66737
66738         * build-aux/maint.mk: Add dsyntax-check rule.
66739
66740 2006-02-15  Eric Blake  <ebb9@byu.net>
66741
66742         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
66743         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
66744         'present but cannot compile' warnings on cygwin.
66745         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
66746         use ws2tcpip.h if sys/socket.h works.
66747         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
66748         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
66749
66750 2006-02-14  Simon Josefsson  <jas@extundo.com>
66751
66752         * modules/maintainer-makefile (Files): Rename.
66753
66754         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
66755         and (the local) Makefile.cfg to maint-cfg.mk.
66756
66757         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
66758         to the latter.
66759
66760         * modules/maintainer-makefile: New module.
66761
66762         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
66763         severaly stripped to make it possible to build it up from scratch
66764         with reliable tests.
66765
66766         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
66767         fixes to permit overriding the default actions when configure and
66768         makefile are not available.
66769
66770 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
66771
66772         Sync from coreutils.
66773         * modules/lstat (Depends-on): Don't depend on xalloc.
66774         (License): Change from GPL to LGPL, since this is now simply a
66775         replacement for a libc function.
66776
66777 2006-02-14  Jim Meyering  <jim@meyering.net>
66778
66779         Sync from coreutils.
66780
66781         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
66782         failure on deficient systems, and simplify gnulib lgpl dependencies.
66783         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
66784         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
66785
66786         * lib/xalloc-die.c: Remove unused definition of N_.
66787
66788 2006-02-14  Jim Meyering  <jim@meyering.net>
66789
66790         Sync from coreutils.
66791         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
66792         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
66793         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
66794         double-quote uses of that variable, to accommodate the rare case in
66795         which getmntent is available in none of the libraries checked.  This
66796         happens at least on FreeBSD 5.0.
66797
66798 2006-02-13  Simon Josefsson  <jas@extundo.com>
66799
66800         * gnulib-tool (Usage): Fix --import, from
66801         karl@freefriends.org (Karl Berry).
66802
66803 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66804
66805         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
66806
66807 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
66808
66809         * lib/argp-namefrob.h: Restore changes accidentally lost during the
66810         "autoupdate" on 2005-12-12.
66811
66812 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
66813
66814         * modules/closeout (Depends-on): Remove atexit.
66815
66816 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
66817
66818         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
66819         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
66820
66821 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
66822
66823         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
66824         __EXTENSIONS__ if this causes compilation to fail.  Problem
66825         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
66826         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
66827
66828 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
66829
66830         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
66831         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
66832         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
66833         All uses changed.
66834
66835 2006-01-26  Simon Josefsson  <jas@extundo.com>
66836
66837         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
66838         prototype is visible on mingw32.
66839
66840         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
66841         for mingw32.
66842
66843         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
66844         mingw32).
66845
66846 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66847
66848         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
66849         attempt to open for write; this always fails, at least on POSIX
66850         hosts.  This reinstates the 2006-01-09 change, which was
66851         inadvertently removed.
66852
66853 2006-01-26  Bruno Haible  <bruno@clisp.org>
66854
66855         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
66856         Reported by Paul Eggert.
66857
66858 2006-01-26  Bruno Haible  <bruno@clisp.org>
66859             Paul Eggert  <eggert@cs.ucla.edu>
66860
66861         * lib/stdbool_.h (_Bool)
66862         [(! (defined __cplusplus || defined __BEOS__)
66863           && !defined __GNUC__
66864           && !(defined __HP_cc || defined __xlc__
66865                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
66866                || defined __sgi))]:
66867         #define to signed char in these cases too; this simplifies
66868         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
66869         etc., separately) and makes it more conservative.
66870
66871 2006-01-25  Simon Josefsson  <jas@extundo.com>
66872
66873         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
66874         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
66875         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
66876
66877 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66878
66879         * lib/argp-namefrob.h: Bugfix. Remove stray #
66880
66881 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
66882
66883         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
66884         so that we test the test.
66885         Check for yet another HP-UX cc bug involving *bool |= bool.
66886
66887 2006-01-25  Karl Berry  <karl@gnu.org>
66888
66889         * config/srclist.txt (vasnprintf.c): sync lost.
66890
66891 2006-01-25  Jim Meyering  <jim@meyering.net>
66892
66893         Sync from the stable (b5) branch of coreutils:
66894
66895         * lib/fts.c (fts_children): Don't let close() clobber errno from
66896         failed fchdir().
66897
66898         * lib/fts.c (fts_stat): When following a symlink-to-directory,
66899         don't necessarily interpret stat-fails+lstat-succeeds as indicating
66900         a dangling symlink.  That can also happen at least for ELOOP.
66901         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
66902         FYI, this bug predates the inclusion of fts.c in coreutils.
66903
66904         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
66905         in their own block, so pre-c99 compilers don't object.
66906
66907         Avoid the double-free (first in fts_read, second in fts_close) that
66908         would occur when an `active' directory is made inaccessible (e.g.,
66909         via chmod a-x) during a traversal.
66910         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
66911         before returning.  Reproduce this failure by
66912         mkdir -p a/b; cd a; chmod a-x . b
66913         Reported by Stavros Passas.
66914
66915 2006-01-25  Jim Meyering  <jim@meyering.net>
66916
66917         * lib/fileblocks.c: Remove more useless parentheses.
66918         * lib/readutmp.h: Likewise.
66919
66920 2006-01-25  Bruno Haible  <bruno@clisp.org>
66921
66922         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
66923         warnings.
66924         Reported by Paul Eggert.
66925
66926 2006-01-25  Bruno Haible  <bruno@clisp.org>
66927
66928         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
66929         rid of a trap command. For Solaris sh.
66930         Reported by Mark D. Baushke <mdb@gnu.org>.
66931
66932 2006-01-24  Simon Josefsson  <jas@extundo.com>
66933
66934         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
66935         Bruno.
66936
66937 2006-01-24  Karl Berry  <karl@gnu.org>
66938
66939         * config/srclist.txt (argp-namefrob.h): sync lost.
66940
66941 2006-01-24  Jim Meyering  <jim@meyering.net>
66942
66943         * modules/openat (Files): Add lib/intprops.h.
66944         From Mark D. Baushke.
66945
66946 2006-01-24  Jim Meyering  <jim@meyering.net>
66947
66948         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
66949         Reported by Mark D. Baushke.
66950
66951 2006-01-24  Jim Meyering  <jim@meyering.net>
66952
66953         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
66954
66955 2006-01-24  Bruno Haible  <bruno@clisp.org>
66956
66957         * modules/strnlen (Maintainer): Change from glibc to all.
66958
66959 2006-01-24  Bruno Haible  <bruno@clisp.org>
66960
66961         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
66962         Patch by Paul Eggert.
66963
66964 2006-01-24  Bruno Haible  <bruno@clisp.org>
66965
66966         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
66967         already has it.
66968         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
66969         2005-11-26.
66970
66971         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
66972         'signed char' to avoid problems with the built-in _Bool type.
66973         Reported by Paul Eggert on 2005-11-26.
66974
66975 2006-01-24  Bruno Haible  <bruno@clisp.org>
66976
66977         * gnulib-tool (func_import): Avoid constructing complicated sed
66978         expressions inside backquote.
66979         Report and solution by Mark D. Baushke <mdb@gnu.org>.
66980
66981 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
66982
66983         These changes imported from libc.
66984         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
66985         test and two separate function calls.
66986         * lib/strndup.c (__strndup): Add libc_hidden_def.
66987
66988 2006-01-23  Simon Josefsson  <jas@extundo.com>
66989
66990         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
66991         Remove the test_*_SOURCES variable: automake infers it by default.
66992         * modules/tls-tests: Likewise.
66993
66994 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66995
66996         Work around porting bugs reported by Dieter in
66997         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
66998         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
66999         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
67000         Include "getopt.h" first, to check interface.
67001         (getenv): Declare only if defined HAVE_DECL_GETENV &&
67002         !HAVE_DECL_GETENV.
67003         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
67004         (__strndup): Revert to K&R-style function dfns, the glibc style.
67005         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
67006         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
67007         Include strnlen.h first, to get prototype properly.
67008         (strnlen): Renamed from __strnlen.
67009         Remove weak alias.
67010
67011 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67012
67013         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
67014
67015 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67016
67017         * config/srclist.txt: Adjust to reflect glibc reorganization.
67018         This affects only comments.
67019
67020 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67021
67022          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67023          Reported by Bruce Korb <bkorb@gnu.org>.
67024
67025 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67026
67027         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67028         to pacify gcc -Wswitch-default.
67029
67030 2006-01-22  Bruno Haible  <bruno@clisp.org>
67031
67032         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67033         temporary buffer for sprintf, take into account the precision also
67034         for 'd', 'i', 'u', 'o', 'x', 'X'.
67035
67036 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67037
67038         * modules/argp-tests: New module
67039         * tests/test-argp.c: New file
67040         * tests/test-argp-2.sh: New file
67041
67042 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67043
67044         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67045         (__argp_base_name): Removed
67046         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67047         typo.
67048         (__argp_base_name): Provide macro definition or extern declaration
67049         depending on the configuration
67050
67051 2006-01-20  Simon Josefsson  <jas@extundo.com>
67052
67053         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67054
67055 2006-01-20  Simon Josefsson  <jas@extundo.com>
67056
67057         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67058
67059 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67060
67061         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67062         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67063         Suggested by Bruno Haible.
67064
67065 2006-01-20  Karl Berry  <karl@gnu.org>
67066
67067         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67068         until changes propagate, I guess.
67069
67070 2006-01-19  Simon Josefsson  <jas@extundo.com>
67071
67072         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67073
67074 2006-01-19  Simon Josefsson  <jas@extundo.com>
67075
67076         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67077
67078 2006-01-19  Simon Josefsson  <jas@extundo.com>
67079
67080         * gnulib-tool: Set check_PROGRAMS.
67081
67082         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67083         modules/des-tests, modules/gc-arcfour-tests,
67084         modules/gc-arctwo-tests, modules/gc-des-tests,
67085         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67086         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67087         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67088         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67089         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67090         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67091         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67092         test_*_SOURCES.
67093
67094 2006-01-18  Simon Josefsson  <jas@extundo.com>
67095
67096         * modules/socklen (Depends-on): Depend on sys_socket.
67097
67098 2006-01-18  Simon Josefsson  <jas@extundo.com>
67099
67100         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67101         modules/des-tests, modules/gc-arcfour-tests,
67102         modules/gc-arctwo-tests, modules/gc-des-tests,
67103         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67104         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67105         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67106         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67107         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67108         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67109         $(EXEEXT) to automake TESTS variable, for mingw32.
67110
67111 2006-01-17  Simon Josefsson  <jas@extundo.com>
67112
67113         * modules/socklen (Include): Need sys/socket.h.
67114
67115 2006-01-17  Bruno Haible  <bruno@clisp.org>
67116
67117         * modules/ssize_t (Include): Add <sys/types.h>.
67118
67119 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67120
67121         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67122         it's not portable and it doesn't work with cross-compiles.
67123         Problem reported by Bruno Haible.  Fix missing-$ typo in
67124         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67125         -zignore from being used with Sun's C compiler.
67126
67127 2006-01-12  Simon Josefsson  <jas@extundo.com>
67128
67129         * lib/base64.c: Fix warning, reported by Bruno Haible
67130         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67131
67132 2006-01-12  Bruno Haible  <bruno@clisp.org>
67133
67134         * modules/ldd: New file.
67135         * build-aux/ldd.sh.in: New file.
67136         * MODULES.html.sh (Support for building libraries and executables): Add
67137         ldd.
67138
67139 2006-01-12  Bruno Haible  <bruno@clisp.org>
67140
67141         * m4/ldd.m4: New file.
67142
67143 2006-01-12  Bruno Haible  <bruno@clisp.org>
67144
67145         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67146         endless loop while replacing $auxdir with build-aux.
67147
67148 2006-01-11  Simon Josefsson  <jas@extundo.com>
67149
67150         * lib/stdint_.h (SIZE_MAX): Add missing (.
67151
67152 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67153
67154         Sync from coreutils.
67155         * lib/md5.c: Fix commentary typos.
67156         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67157         * lib/md5.h (__attribute__): Remove; unused.
67158         * lib/sha1.c: Fix commentary to match md5 better.
67159         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67160         so that we don't need to worry about alignment.  All uses changed.
67161         This merges the 2005-10-28 md5 change into sha1.
67162
67163 2006-01-11  Jim Meyering  <jim@meyering.net>
67164
67165         Sync from coreutils.
67166         * lib/md5.c (OP): Fix spacing.
67167
67168 2006-01-11  Bruno Haible  <bruno@clisp.org>
67169
67170         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67171         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67172         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67173
67174 2006-01-11  Bruno Haible  <bruno@clisp.org>
67175
67176         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67177         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67178         the "early" section as well.
67179
67180 2006-01-11  Bruno Haible  <bruno@clisp.org>
67181
67182         Avoid "ar: no archive members specified" error on MacOS X.
67183         * gnulib-tool (func_modules_add_dummy): New function.
67184         (func_import, func_create_testdir): Invoke it.
67185
67186 2006-01-11  Bruno Haible  <bruno@clisp.org>
67187
67188         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67189         with $auxdir in AC_CONFIG_FILES statements.
67190
67191 2006-01-11  Bruno Haible  <bruno@clisp.org>
67192
67193         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67194         Initialize also noinst_HEADERS to empty.
67195
67196 2006-01-11  Bruno Haible  <bruno@clisp.org>
67197
67198         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67199         variables.
67200         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67201         autoreconf.
67202
67203 2006-01-11  Bruno Haible  <bruno@clisp.org>
67204
67205         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67206         overridable by the user.
67207         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67208
67209 2006-01-10  Simon Josefsson  <jas@extundo.com>
67210
67211         * modules/sys_socket: New file.
67212
67213 2006-01-10  Simon Josefsson  <jas@extundo.com>
67214
67215         * m4/sys_socket_h.m4: New file.
67216
67217 2006-01-10  Simon Josefsson  <jas@extundo.com>
67218
67219         * lib/socket_.h: New file.
67220
67221 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67222
67223         * modules/readutmp (Maintainer): Add myself.
67224
67225 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67226
67227         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67228         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67229         People who are still concerned with buggy memcmp implementations
67230         can invoke gl_FUNC_MEMCMP themselves.
67231
67232 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67233
67234         * lib/regex_internal.h (BITSET_WORD_BITS):
67235         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67236         preprocessor mishandles large unsigned values as if they were signed.
67237         Problem reported by Claudio Fontana in
67238         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
67239
67240 2006-01-10  Jim Meyering  <jim@meyering.net>
67241
67242         Avoid the double-free (first in fts_read, second in fts_close) that
67243         would occur when an `active' directory is made inaccessible (e.g.,
67244         via chmod a-x) during a traversal.
67245         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67246         before returning.  Reproduce this failure by
67247         mkdir -p a/b; cd a; chmod a-x . b
67248         Reported by Stavros Passas.
67249
67250         Sync from coreutils.
67251         * lib/sha1.c: Tweak grammar in a comment.
67252
67253 2006-01-10  Jim Meyering  <jim@meyering.net>
67254
67255         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
67256         Patch by Joerg Sonnenberger.
67257
67258 2006-01-10  Bruno Haible  <bruno@clisp.org>
67259
67260         * modules/readutmp: Depend on module free.
67261         * modules/strtok_r: Depend on module restrict.
67262
67263 2006-01-10  Bruno Haible  <bruno@clisp.org>
67264
67265         * modules/gettext (configure.ac): Add an invocation of
67266         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
67267
67268 2006-01-10  Bruno Haible  <bruno@clisp.org>
67269
67270         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
67271         Reported by Werner Lemberg <wl@gnu.org>.
67272
67273 2006-01-10  Bruno Haible  <bruno@clisp.org>
67274
67275         * lib/localcharset.c: Update from GNU gettext.
67276
67277 2006-01-10  Bruno Haible  <bruno@clisp.org>
67278
67279         * lib/argp.h (__const): Remove macro. Use const instead.
67280         * lib/argp-fmtstream.h (__const): Likewise.
67281         * lib/glob_.h (__const): Remove macro.
67282         * lib/glob-libc.h: Use const instead of __const.
67283
67284 2006-01-10  Bruno Haible  <bruno@clisp.org>
67285
67286         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
67287         variable.
67288         Needed to avoid an automake error regarding the 'gettext' module.
67289
67290 2006-01-09  Simon Josefsson  <jas@extundo.com>
67291
67292         * modules/inet_ntop (Depends-on): Add restrict.
67293
67294 2006-01-09  Simon Josefsson  <jas@extundo.com>
67295
67296         * modules/gc-rijndael-tests (License): Put under LGPL.
67297
67298         * modules/gc-des-tests (License): Likewise.
67299
67300         * modules/gc-arcfour-tests (License): Likewise.
67301
67302         * modules/gc-arctwo-tests (License): Likewise.
67303
67304         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
67305
67306         * modules/gc-hmac-sha1-tests (Files): Likewise.
67307
67308         * modules/gc-hmac-md5-tests (License): Likewise.
67309
67310         * modules/gc-sha1-tests (License): Likewise.
67311
67312         * modules/gc-md5-tests (License): Likewise.
67313
67314         * modules/gc-md4-tests (License): Likewise.
67315
67316         * modules/gc-md2-tests (License): Likewise.
67317
67318         * modules/gc-tests (License): Likewise.
67319
67320         * modules/des-tests (License): Likewise.
67321
67322         * modules/md4-tests (License): Likewise.
67323
67324         * modules/md2-tests (License): Likewise.
67325
67326 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67327
67328         Sync from coreutils:
67329
67330         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67331         * modules/lib-ignore: New file.
67332         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67333         chdir-safer.m4, lchmod.m4.
67334         * modules/openat: Add mkdirat.c, openat-priv.h.
67335
67336 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67337
67338         Sync from coreutils.
67339         * m4/lib-ignore.m4: New file.
67340         * m4/lchmod.m4: New file.
67341
67342 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67343
67344         Sync from coreutils.
67345         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67346         for write access: POSIX says that must fail.
67347         * lib/fts.c (diropen): Likewise.
67348         * lib/save-cwd.c (save_cwd): Likewise.
67349         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67350         well, for minor improvements on hosts that lack O_DIRECTORY.
67351         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67352         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67353         Fall back on chown if open failed with EACCES.
67354
67355         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67356         Report an error at compile-time if only a 1-second nominal clock
67357         resolution is found.
67358
67359         * lib/lchmod.h: New file.
67360         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67361         (make_dir_parents): Use lchown rather than chown, and
67362         lchmod rather than chmod.
67363
67364         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67365         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67366         "proc" reported by n0dalus.
67367
67368         * lib/mountlist.c: Include <limits.h>.
67369         (dev_from_mount_options)
67370         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67371         New function.  It no longer assumes "dev=" has the System V meaning
67372         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67373         (read_file_system_list)
67374         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67375         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67376         dev= in that case.
67377
67378         * lib/posixtm.h (PDS_PRE_2000): New macro.
67379         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67380         allow_century.  All usages changed.  Reject dates outside the range
67381         1969-1999 if PDS_PRE_2000 is used.
67382
67383 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67384
67385         Sync from coreutils.
67386         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67387         (Time of day items): Mention the possibility of leap seconds.
67388         Problem reported by Dr. David Alan Gilbert.
67389
67390 2006-01-09  Jim Meyering  <jim@meyering.net>
67391
67392         Sync from coreutils.
67393
67394         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67395
67396         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67397
67398         * lib/modechange.c (mode_compile): Reject an invalid mode string
67399         that starts with an octal digit.  From Andreas Gruenbacher.
67400
67401         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
67402         and dup to open_safer and dup_safer, respectively.
67403         (openat_permissive): Fix typo in comment.
67404
67405         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
67406         "gettext.h"; either no longer needed or are guaranteed by openat.h.
67407         (_): Remove; no longer needed.
67408         (openat): Renamed from rpl_openat; no need for rpl_openat
67409         since openat.h renames openat for us.
67410         Replace most of the body with a call to openat_permissive,
67411         to avoid duplicate code.
67412         Port to (probably hypothetical) environments were mode_t is
67413         wider than int.
67414         (openat_permissive): Require mode arg, so that we can check
67415         types better.  Put it just after flags.  Change cwd failure
67416         indicator from pointer-to-bool to pointer-to-errno-value.
67417         All callers changed.
67418         Invoke openat_save_fail and/or openat_restore_fail if
67419         cwd_errno is null, so that openat can call us.
67420         (openat_permissive, fdopendir, fstatat, unlinkat):
67421         Simplify errno handling to avoid some duplicate code,
67422         as it's OK to set errno on success.
67423         * lib/openat.h: Revamp code so that function macros depend on
67424         __OPENAT_PREFIX only, not also on AT_FDCWD.
67425         (openat_ro): Remove.  Caller changed to use openat_permissive.
67426         (openat_permissive): Now a macro, if not a function.
67427         (openat_restore_fail, openat_save_fail): Now always functions,
67428         since mkdirat needs them even if __OPENAT_PREFIX is defined.
67429
67430         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
67431         and openat.c.
67432         * lib/mkdirat.c: Include openat-priv.h.
67433         Remove definitions of macros defined therein.
67434         * lib/openat.c: Likewise.
67435
67436         * lib/mkdirat.c (mkdirat): New file and function.
67437         * lib/openat.h (mkdirat): Declare.
67438
67439         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
67440
67441         * lib/openat.h (openat_permissive): Declare.
67442         (openat_ro): Define.
67443
67444         * lib/openat.c (EXPECTED_ERRNO): New macro.
67445         (openat_permissive): New function -- used in remove.c rewrite.
67446         (all functions): Set errno just before returning, only if there
67447         was an actual failure.
67448         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
67449
67450         Emulate openat-family functions using Linux's procfs, if possible.
67451         Idea and some code based on Ulrich Drepper's glibc changes.
67452
67453         * lib/openat.c: (BUILD_PROC_NAME): New macro.
67454         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
67455         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
67456         before falling back on save_cwd and restore_cwd.
67457         (fdopendir, fstatat, unlinkat): Likewise.
67458
67459         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
67460         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
67461
67462         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
67463         as second argument to va_arg.  Otherwise, some versions of gcc
67464         warn that `if this code is reached, the program will abort'.
67465
67466 2006-01-09  Jim Meyering  <jim@meyering.net>
67467
67468         Sync from coreutils.
67469         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
67470         Require openat-priv.h.
67471
67472 2006-01-09  Bruno Haible  <bruno@clisp.org>
67473
67474         * modules/strnlen (Include): Use strnlen.h.
67475
67476 2006-01-09  Bruno Haible  <bruno@clisp.org>
67477
67478         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
67479
67480 2006-01-09  Bruno Haible  <bruno@clisp.org>
67481
67482         * lib/sysexit_.h (EX_OK): New macro.
67483         Suggested by Martin Lambers <marlam@marlam.de>.
67484
67485 2006-01-09  Bruno Haible  <bruno@clisp.org>
67486
67487         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
67488         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
67489
67490 2006-01-09  Bruno Haible  <bruno@clisp.org>
67491
67492         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
67493         numbers.
67494
67495 2006-01-09  Bruno Haible  <bruno@clisp.org>
67496
67497         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
67498         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
67499         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
67500         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
67501
67502 2006-01-09  Bruno Haible  <bruno@clisp.org>
67503
67504         * build-aux/javacomp.sh.in: New file, moved from lib/.
67505         * modules/javacomp-script (Files): Update.
67506         (configure.ac): Add AC_CONFIG_FILES invocation.
67507         (EXTRA_DIST): Remove variable.
67508
67509         * build-aux/javaexec.sh.in: New file, moved from lib/.
67510         * modules/javaexec (Files): Update.
67511         (configure.ac): Add AC_CONFIG_FILES invocation.
67512         (EXTRA_DIST): Remove javaexec.sh.in.
67513
67514         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
67515         * modules/csharpcomp-script (Files): Update.
67516         (configure.ac): Add AC_CONFIG_FILES invocation.
67517         (EXTRA_DIST): Remove variable.
67518
67519         * build-aux/csharpexec.sh.in: New file, moved from lib/.
67520         * modules/csharpexec (Files): Update.
67521         (configure.ac): Add AC_CONFIG_FILES invocation.
67522         (EXTRA_DIST): Remove csharpexec.sh.in.
67523
67524 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67525
67526         Sync from coreutils.
67527
67528         Add POSIX ACL support
67529         * lib/acl.h (copy_acl, set_acl): Add declarations.
67530         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
67531         systems other than Linux.
67532         (chmod_or_fchmod): New function: use fchmod when possible,
67533         and chmod otherwise.
67534         (file_has_acl): Add a POSIX ACL implementation, with a
67535         Linux-specific subcase.
67536         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
67537         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
67538         acls are unsupported.
67539         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
67540         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
67541         are unsupported.
67542
67543 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67544
67545         Sync from coreutils.
67546         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
67547
67548 2006-01-07  Bruno Haible  <bruno@clisp.org>
67549
67550         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
67551         gl_EARLY.
67552
67553 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67554
67555         * lib/strftime.c (tzname): Don't declare if it is already #defined.
67556         Problem reported for Mingw by Mark Junker.
67557
67558 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67559
67560         * README: Gnulib normally doesn't generate a tarball.
67561
67562 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
67563
67564         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
67565         long int, not int, for nanosecond counts, so that people who are
67566         used to POSIX struct timespec won't be surprised.  Reported by Jim
67567         Meyering.
67568
67569 2005-12-28  Bruno Haible  <bruno@clisp.org>
67570
67571         * build-aux/config.rpath: Update from GNU gettext.
67572
67573 2005-12-16  Jim Meyering  <jim@meyering.net>
67574
67575         * modules/fprintftime: New module.
67576         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
67577
67578 2005-12-16  Jim Meyering  <jim@meyering.net>
67579
67580         * m4/fprintftime.m4: New file.
67581
67582 2005-12-16  Jim Meyering  <jim@meyering.net>
67583
67584         * lib/fprintftime.c, lib/fprintftime.h: New files.
67585
67586 2005-12-15  Simon Josefsson  <jas@extundo.com>
67587
67588         * modules/socklen (configure.ac): Fix M4 macro name, to align with
67589         new m4/socklen.m4.
67590
67591 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67592
67593         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
67594         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
67595
67596 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67597
67598         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
67599         * lib/argp-help.c (fill_in_uparams): Check if the constructed
67600         struct uparams is valid. Fall back to the default values if it is
67601         not.
67602
67603 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67604
67605         * modules/argp (Files): Add argp-pin.c
67606         (Depends-on): dirname
67607         (lib_SOURCES): Add argp-pin.c
67608
67609 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67610
67611         * m4/argp.m4:  Check if program_invocation_name and
67612         program_invocation_short_name are declared and define appropriate
67613         macros if they are not.
67614
67615 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67616
67617         * lib/argp-help.c (__argp_base_name): New function
67618         (__argp_short_program_name): Rewrite using __argp_base_name
67619         * lib/argp-namefrob.h: Define program_invocation_name and
67620         program_invocation_short_name if requested
67621         (__argp_base_name): Add prototype
67622         * lib/argp-parse.c (argp_def): Use gettext wrappers
67623         (argp_default_parser): Use __argp_base_name
67624         * lib/argp-pin.c: New file. Defines program_invocation_name and
67625         program_invocation_short_name on systems that lack them.
67626
67627 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67628
67629         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
67630         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67631         porting problem reported by Georg Schwarz in
67632         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67633
67634 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67635
67636         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
67637         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67638         porting problem reported by Georg Schwarz in
67639         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67640
67641 2005-12-05  Bruno Haible  <bruno@clisp.org>
67642
67643         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
67644         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
67645         Reported by Mark Junker <mjscod@gmx.de>.
67646
67647 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
67648
67649         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
67650         Use implementation from Albert Chin, with some
67651         comments/corrections by Stepan Kasal and myself.
67652
67653 2005-12-02  Bruno Haible  <bruno@clisp.org>
67654
67655         * gnulib-tool (func_import): Accept GPLed build tool modules when
67656         --lgpl is given.
67657         * modules/csharpcomp-script: New file.
67658         * modules/csharpcomp: Depend on it.
67659         * modules/javacomp-script: New file.
67660         * modules/javacomp: Depend on it.
67661         Suggested by Simon Josefsson.
67662
67663 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
67664
67665         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
67666         statement, to work around an HP-UX 10.20 compiler bug reported by
67667         Peter O'Gorman.
67668
67669 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67670
67671         * modules/savedir (Depends-on): Add openat.
67672
67673 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67674
67675         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
67676         (uintmax_t) [defined uintmax_t]: Do not declare.
67677         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
67678         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
67679         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
67680         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
67681         sake of portability to weird hosts that C allows (though we don't
67682         know of any practical examples).
67683
67684         * lib/savedir.h (fdsavedir): New decl.
67685         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
67686         contains most of the former guts of savedir.
67687         (savedir): Use savedirstream.
67688         Include "openat.h".
67689
67690 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67691
67692         * modules/obstack (Files): Add m4/ulonglong.m4.
67693         Problem reported by Davide Angelocola.
67694
67695 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
67696
67697         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
67698         coreutils no longer futzes with rounding modes.
67699
67700 2005-11-14  Jim Meyering  <jim@meyering.net>
67701
67702         * lib/mkstemp-safer.c: Include <config.h>, required for possible
67703         replacement of mkstemp.
67704
67705 2005-11-10  Simon Josefsson  <jas@extundo.com>
67706
67707         * lib/readline.c: Remove EOL.
67708
67709 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67710
67711         * modules/gethrxtime (Depends-on): Add gettime.
67712
67713 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67714
67715         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
67716         or gettimeofday; no longer needed.
67717
67718 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67719
67720         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
67721         time business.
67722         (gethrxtime) [! (HAVE_NANOUPTIME
67723         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
67724         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
67725         our own approximation.
67726
67727 2005-11-08  Eric Blake  <ebb9@byu.net>
67728
67729         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67730
67731 2005-11-08  Eric Blake  <ebb9@byu.net>
67732
67733         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67734
67735 2005-11-04  Bruno Haible  <bruno@clisp.org>
67736
67737         * gnulib-tool: Implement --update mode.
67738
67739 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67740
67741         Fix porting problem reported by Theodoros V. Kalamatianos.
67742         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
67743         Don't assume that futimes failing means we must fail.
67744
67745 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67746
67747         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
67748         variables to suggest the intended function of the PATH_MAX check.
67749
67750 2005-10-30  Kean Johnston  <jkj@sco.com>
67751
67752         Trivial changes to support SCO systems.
67753         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
67754         as PATH_MAX.
67755         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
67756         where __ptr is null when no I/O is pending.
67757
67758 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67759
67760         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
67761         leave errno alone.  Problem reported by Dmitry V. Levin.
67762
67763 2005-10-28  Simon Josefsson  <jas@extundo.com>
67764
67765         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
67766         Test more.
67767
67768         * tests/test-gc-md2.c, tests/test-md2.c: New files.
67769
67770         * modules/md2, modules/md2-tests: New files.
67771
67772 2005-10-28  Simon Josefsson  <jas@extundo.com>
67773
67774         * m4/inet_ntop.m4: More tests.
67775
67776         * m4/gc-md2.m4, md2.m4: New file.
67777
67778 2005-10-28  Simon Josefsson  <jas@extundo.com>
67779
67780         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
67781         "restrict" keywords, as per POSIX.  Protect the function
67782         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
67783         Don't use K&R prototypes.  Check the sprintf return values.
67784         Re-define EAFNOSUPPORT if not present.  Indent.
67785
67786         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
67787         suggested by Bruno Haible <bruno@clisp.org>.
67788
67789         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
67790
67791         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
67792
67793         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
67794         libgcrypt).
67795
67796         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
67797
67798         * lib/md2.h, lib/md2.c: New files.
67799
67800 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
67801
67802         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
67803         errno alone.  Problem reported by Frederic Jolliton.
67804
67805 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67806
67807         * modules/verify (License): Change from GPL to LGPL.  This is a
67808         tiny module and there are apparently near-equivalents that are
67809         under the BSD license.
67810
67811 2005-10-24  Simon Josefsson  <jas@extundo.com>
67812
67813         * modules/sha1: Relicense to LGPL.
67814
67815 2005-10-24  Simon Josefsson  <jas@extundo.com>
67816
67817         * lib/md4.h: Shrink buffer size, now that we changed the type.
67818
67819 2005-10-23  Simon Josefsson  <jas@extundo.com>
67820
67821         * gnulib-tool (func_import): Fix --tests-base.
67822
67823 2005-10-22  Simon Josefsson  <jas@extundo.com>
67824
67825         * modules/arcfour (Depends-on): Need stdint.
67826
67827 2005-10-22  Simon Josefsson  <jas@extundo.com>
67828
67829         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
67830         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
67831
67832 2005-10-22  Simon Josefsson  <jas@extundo.com>
67833
67834         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
67835         suggested by Bruno Haible <bruno@clisp.org>.
67836
67837 2005-10-22  Simon Josefsson  <jas@extundo.com>
67838
67839         * lib/crc.h: Include stddef.h, for size_t.
67840
67841 2005-10-22  Simon Josefsson  <jas@extundo.com>
67842
67843         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
67844         arcfour_context struct (simplify test vector testing in GNU
67845         Shishi).
67846
67847 2005-10-21  Simon Josefsson  <jas@extundo.com>
67848
67849         * modules/des, modules/des-tests: New files.
67850
67851         * modules/gc-des, modules/gc-des-tests: New files.
67852
67853         * tests/test-des.c, tests/test-gc-des.c: New file.
67854
67855 2005-10-21  Simon Josefsson  <jas@extundo.com>
67856
67857         * modules/arctwo, modules/arctwo-tests: New files.
67858
67859         * tests/test-arctwo.c: New file.
67860
67861         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
67862
67863         * tests/test-gc-arctwo.c: New file.
67864
67865 2005-10-21  Simon Josefsson  <jas@extundo.com>
67866
67867         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
67868         Bruno Haible <bruno@clisp.org>.
67869
67870         * m4/gc-des.m4: New file.
67871
67872 2005-10-21  Simon Josefsson  <jas@extundo.com>
67873
67874         * m4/arctwo.m4: New file.
67875
67876         * m4/gc-arctwo.m4: New file.
67877
67878 2005-10-21  Simon Josefsson  <jas@extundo.com>
67879
67880         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
67881         block.
67882
67883 2005-10-21  Simon Josefsson  <jas@extundo.com>
67884
67885         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
67886         <bruno@clisp.org>.
67887
67888         * lib/hmac-sha1.c (hmac_sha1): Likewise.
67889
67890         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
67891         Bruno Haible <bruno@clisp.org>.
67892
67893         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
67894         <bruno@clisp.org>.
67895
67896 2005-10-21  Simon Josefsson  <jas@extundo.com>
67897
67898         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
67899
67900 2005-10-21  Simon Josefsson  <jas@extundo.com>
67901
67902         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
67903
67904 2005-10-21  Simon Josefsson  <jas@extundo.com>
67905
67906         * lib/des.h, lib/des.c: New files.
67907
67908         * lib/gc-gnulib.c: Support DES.c
67909
67910 2005-10-21  Simon Josefsson  <jas@extundo.com>
67911
67912         * lib/arctwo.h, lib/arctwo.c: New files.
67913
67914         * lib/gc-gnulib.c: Support ARCTWO.
67915
67916 2005-10-21  Simon Josefsson  <jas@extundo.com>
67917
67918         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
67919         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67920
67921 2005-10-21  Simon Josefsson  <jas@extundo.com>
67922
67923         * gnulib-tool (func_import, func_create_testdir): Define automake
67924         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
67925         Makefile.am snippet),
67926         suggested by Bruno Haible <bruno@clisp.org>.
67927
67928         * modules/gc (Makefile.am): Use it.
67929
67930 2005-10-21  Bruno Haible  <bruno@clisp.org>
67931
67932         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
67933         patch.
67934
67935 2005-10-19  Simon Josefsson  <jas@extundo.com>
67936
67937         * tests/test-gc-rijndael.c: New file.
67938
67939         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
67940
67941 2005-10-19  Simon Josefsson  <jas@extundo.com>
67942
67943         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
67944         interface too.
67945
67946 2005-10-19  Simon Josefsson  <jas@extundo.com>
67947
67948         * tests/test-gc-arcfour.c: New file.
67949
67950         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
67951
67952 2005-10-19  Simon Josefsson  <jas@extundo.com>
67953
67954         * modules/gc-md4, modules/gc-md4-tests: New file.
67955
67956         * tests/test-gc-md4.c: New file.
67957
67958 2005-10-19  Simon Josefsson  <jas@extundo.com>
67959
67960         * m4/gc-md4.m4: New file.
67961
67962 2005-10-19  Simon Josefsson  <jas@extundo.com>
67963
67964         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
67965         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
67966         <kasal@ucw.cz>.
67967
67968 2005-10-19  Simon Josefsson  <jas@extundo.com>
67969
67970         * m4/gc-arcfour.m4: New file.
67971
67972         * m4/gc-rijndael.m4: New file.
67973
67974 2005-10-19  Simon Josefsson  <jas@extundo.com>
67975
67976         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
67977
67978 2005-10-19  Simon Josefsson  <jas@extundo.com>
67979
67980         * lib/gc-gnulib.c: Support ARCFOUR.
67981
67982 2005-10-19  Simon Josefsson  <jas@extundo.com>
67983
67984         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
67985         support.
67986
67987         * lib/gc.h: Add ECB enum type.
67988
67989         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
67990
67991 2005-10-18  Simon Josefsson  <jas@extundo.com>
67992
67993         * tests/test-md5.c: New file.
67994
67995         * modules/md5-tests: New file.
67996
67997 2005-10-18  Simon Josefsson  <jas@extundo.com>
67998
67999         * tests/test-md4.c: New file.
68000
68001         * modules/md4, modules/md4-tests: New files.
68002
68003 2005-10-18  Simon Josefsson  <jas@extundo.com>
68004
68005         * m4/md4.m4: New file.
68006
68007 2005-10-18  Simon Josefsson  <jas@extundo.com>
68008
68009         * lib/md4.h, lib/md4.c: New files, based on md5.?.
68010
68011 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
68012
68013         * gnulib-tool (func_create_testdir): Omit the second check whether
68014         BUILT_SOURCES in nonempty.
68015
68016 2005-10-17  Simon Josefsson  <jas@extundo.com>
68017
68018         * tests/test-rijndael.c: New file.
68019
68020 2005-10-17  Simon Josefsson  <jas@extundo.com>
68021
68022         * modules/sha1: Depend on stdint instead of md5.
68023
68024         * modules/md5: Depend on stdint, remove uint32_t.
68025
68026 2005-10-17  Simon Josefsson  <jas@extundo.com>
68027
68028         * modules/gc-sha1-tests: New file.
68029
68030         * tests/test-gc-sha1.c: New file.
68031
68032 2005-10-17  Simon Josefsson  <jas@extundo.com>
68033
68034         * m4/md5.m4: Remove call to uint32_t.m4.
68035
68036 2005-10-17  Simon Josefsson  <jas@extundo.com>
68037
68038         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68039
68040         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68041         md5.h.
68042
68043         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68044
68045         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68046
68047 2005-10-17  Simon Josefsson  <jas@extundo.com>
68048
68049         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68050
68051 2005-10-17  Simon Josefsson  <jas@extundo.com>
68052
68053         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68054
68055 2005-10-17  Simon Josefsson  <jas@extundo.com>
68056
68057         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68058
68059         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68060
68061 2005-10-17  Bruno Haible  <bruno@clisp.org>
68062
68063         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68064         that it can also be used in a test.
68065
68066 2005-10-16  Bruno Haible  <bruno@clisp.org>
68067
68068         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68069         TESTS_ENVIRONMENT, so that individual tests can augment it.
68070
68071         * gnulib-tool (func_create_testdir): Use an intermediate target for
68072         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68073         macros, like $(ALLOCA_H), which cannot be passed through the command
68074         line.
68075
68076 2005-10-15  Simon Josefsson  <jas@extundo.com>
68077
68078         * modules/rijndael-tests: New file.
68079
68080         * modules/rijndael: New file.
68081
68082 2005-10-15  Simon Josefsson  <jas@extundo.com>
68083
68084         * m4/rijndael.m4: New file.
68085
68086 2005-10-15  Simon Josefsson  <jas@extundo.com>
68087
68088         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68089
68090         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68091
68092 2005-10-14  Simon Josefsson  <jas@extundo.com>
68093
68094         * tests/test-arcfour.c: New file.
68095
68096         * modules/arcfour, modules/arcfour-tests: New files.
68097
68098 2005-10-14  Simon Josefsson  <jas@extundo.com>
68099
68100         * m4/arcfour.m4: New file.
68101
68102 2005-10-14  Simon Josefsson  <jas@extundo.com>
68103
68104         * lib/arcfour.h, lib/arcfour.c: New files.
68105
68106 2005-10-14  Roland McGrath  <roland@redhat.com>
68107
68108         Import from libc.  [BZ #1331]
68109         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68110         macro argument.
68111         Reported by Matej Vela <vela@debian.org>.
68112
68113 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68114
68115         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68116         include <wchar.h>; no longer needed.
68117
68118 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68119
68120         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68121
68122 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68123         and  Ulrich Drepper  <drepper@redhat.com>
68124
68125         Import from libc.
68126         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68127         instead of inline stream orientation test and two separate
68128         function calls.  Pay no attention to USE_IN_LIBIO.
68129
68130 2005-10-13  Simon Josefsson  <jas@extundo.com>
68131
68132         * modules/gc-hmac-md5-tests: New file.
68133
68134         * tests/test-gc-hmac-sha1.c: New file.
68135
68136         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68137
68138         * modules/gc-hmac-md5-tests: New file.
68139
68140         * tests/test-gc-md5.c: New file.
68141
68142         * modules/gc-md5-tests: New file.
68143
68144 2005-10-13  Simon Josefsson  <jas@extundo.com>
68145
68146         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68147         Move memory allocation outside of loop.
68148
68149 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68150
68151         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68152         intermediate directory is in a read-only file system.  Problem
68153         reported by Eric Blake.
68154
68155 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68156
68157         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68158
68159 2005-10-12  Simon Josefsson  <jas@extundo.com>
68160
68161         * tests/test-hmac-sha1.c: New file.
68162
68163         * modules/hmac-sha1-tests: New file.
68164
68165         * modules/hmac-sha1: New file.
68166
68167 2005-10-12  Simon Josefsson  <jas@extundo.com>
68168
68169         * modules/gc-sha1: New file.
68170
68171 2005-10-12  Simon Josefsson  <jas@extundo.com>
68172
68173         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68174
68175         * tests/test-gc-pbkdf2-sha1.c: New file.
68176
68177 2005-10-12  Simon Josefsson  <jas@extundo.com>
68178
68179         * modules/gc-md5, modules/gc-hmac-md5: New files.
68180
68181         * modules/gc (Files): Remove md5, memxor and hmac files.
68182
68183 2005-10-12  Simon Josefsson  <jas@extundo.com>
68184
68185         * m4/gc-pbkdf2-sha1.m4: New file.
68186
68187         * m4/gc-hmac-sha1.m4: New file.
68188
68189         * m4/gc-sha1: New file.
68190
68191         * m4/hmac-sha1.m4: New file.
68192
68193 2005-10-12  Simon Josefsson  <jas@extundo.com>
68194
68195         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68196
68197         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68198
68199 2005-10-12  Simon Josefsson  <jas@extundo.com>
68200
68201         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68202         suggested by Bruno Haible <bruno@clisp.org>.
68203
68204 2005-10-12  Simon Josefsson  <jas@extundo.com>
68205
68206         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68207
68208 2005-10-12  Simon Josefsson  <jas@extundo.com>
68209
68210         * lib/gc-pbkdf2-sha1.c: New file.
68211
68212         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68213
68214 2005-10-12  Simon Josefsson  <jas@extundo.com>
68215
68216         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68217
68218         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68219
68220 2005-10-12  Simon Josefsson  <jas@extundo.com>
68221
68222         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68223         GC_USE_HMAC_MD5, respectively.
68224
68225         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68226         (gc_md5): Fix typo.
68227
68228         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68229
68230         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68231
68232         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68233
68234 2005-10-12  Bruno Haible  <bruno@clisp.org>
68235
68236         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
68237         Reported by Stepan Kasal <kasal@ucw.cz>.
68238
68239 2005-10-11  Simon Josefsson  <jas@extundo.com>
68240
68241         * tests/test-crc.c: New file.
68242
68243         * modules/crc, modules/crc-tests: New files.
68244
68245 2005-10-11  Simon Josefsson  <jas@extundo.com>
68246
68247         * m4/crc.m4: New file.
68248
68249 2005-10-11  Simon Josefsson  <jas@extundo.com>
68250
68251         * lib/gc.h: Add gc_hash and gc_hash_buffer.
68252
68253         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
68254
68255         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
68256
68257 2005-10-11  Simon Josefsson  <jas@extundo.com>
68258
68259         * lib/crc.h, lib/crc.c: New files.
68260
68261         * lib/gc.h (gc_hash_buffer): Add doc.
68262
68263 2005-10-11  Bruno Haible  <bruno@clisp.org>
68264
68265         * modules/c-strcasestr: New file.
68266         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
68267
68268 2005-10-11  Bruno Haible  <bruno@clisp.org>
68269
68270         * modules/c-strcase: New file.
68271         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
68272
68273 2005-10-11  Bruno Haible  <bruno@clisp.org>
68274
68275         * lib/strcasecmp.c: Include limits.h.
68276         (strcasecmp): Avoid integer overflow on exotic platforms.
68277         * lib/strncasecmp.c: Include limits.h.
68278         (strncasecmp): Avoid integer overflow on exotic platforms.
68279         Reported by Paul Eggert.
68280
68281 2005-10-11  Bruno Haible  <bruno@clisp.org>
68282
68283         * lib/c-strcasestr.h: New file, from GNU gettext.
68284         * lib/c-strcasestr.c: New file, from GNU gettext.
68285
68286 2005-10-11  Bruno Haible  <bruno@clisp.org>
68287
68288         * lib/c-strcase.h: New file, from GNU gettext.
68289         * lib/c-strcasecmp.c: New file, from GNU gettext.
68290         * lib/c-strncasecmp.c: New file, from GNU gettext.
68291
68292 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68293
68294         * modules/mempcpy (License): GPL -> LGPL.
68295         * modules/strchrnul (License): Likewise.
68296         * modules/sysexits (License): Likewise.
68297
68298 2005-10-08  Simon Josefsson  <jas@extundo.com>
68299
68300         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
68301
68302 2005-10-07  Simon Josefsson  <jas@extundo.com>
68303
68304         * m4/memxor.m4: Remove gl_C_RESTRICT call.
68305
68306 2005-10-06  Simon Josefsson  <jas@extundo.com>
68307
68308         * tests/test-hmac-md5.c: New file.
68309
68310         * modules/hmac-md5-tests: New file.
68311
68312         * modules/hmac-md5: New file.
68313
68314 2005-10-06  Simon Josefsson  <jas@extundo.com>
68315
68316         * m4/hmac-md5.m4: New file.
68317
68318         * m4/memxor.m4: Require gl_C_RESTRICT.
68319
68320 2005-10-06  Simon Josefsson  <jas@extundo.com>
68321
68322         * lib/memxor.c (memxor): Avoid casts and warnings.
68323
68324 2005-10-06  Simon Josefsson  <jas@extundo.com>
68325
68326         * lib/hmac-md5.c: New file.
68327
68328         * lib/hmac.h: New file.
68329
68330 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68331
68332         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68333         promotes to int, not unsigned int, to catch the AIX 5.3
68334         compiler bug.
68335
68336 2005-10-05  Simon Josefsson  <jas@extundo.com>
68337
68338         * modules/memxor: New file.
68339
68340         * modules/iconv (Files): Move config.rpath to havelib, it is used
68341         there.
68342
68343         * modules/havelib (Files): Add config.rpath.
68344
68345 2005-10-05  Simon Josefsson  <jas@extundo.com>
68346
68347         * m4/memxor.m4: New file.
68348
68349 2005-10-05  Simon Josefsson  <jas@extundo.com>
68350
68351         * lib/memxor.c (memxor): Fix compiler error.
68352
68353         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68354         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68355
68356         * lib/memxor.h, lib/memxor.c: New files.
68357
68358         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68359         we assume all systems have it, suggested by Jim Meyering
68360         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68361         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68362         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68363         same reasons.
68364
68365 2005-10-05  Simon Josefsson  <jas@extundo.com>
68366
68367         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68368
68369 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68370
68371         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68372         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68373         needed, since the source code now assumes these .h files.
68374
68375 2005-10-05  Derek Price  <derek@ximbiot.com>
68376
68377         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68378
68379 2005-10-05  Bruno Haible  <bruno@clisp.org>
68380
68381         * modules/stdint (License): Change to LGPL.
68382
68383 2005-10-04  Simon Josefsson  <jas@extundo.com>
68384
68385         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68386         D. Baushke" <mdb@gnu.org>.
68387
68388 2005-10-04  Bruno Haible  <bruno@clisp.org>
68389
68390         * lib/verify.h (verify_true): Provide alternative definition for C++.
68391
68392 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68393
68394         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68395         (SSIZE_MAX): New macro, if not already defined.
68396         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68397         than 2 GiB.
68398
68399 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68400
68401         Sync from coreutils.
68402         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
68403         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
68404         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
68405         ULLONG_MAX doesn't work with 2.7.2.1.
68406
68407 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68408
68409         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
68410         From Ben Pfaff.
68411
68412         * modules/exclude (Depends-on): Depend on verify.
68413         * modules/strtoimax (Depends-on): Likewise.
68414         * modules/utimecmp (Depends-on): Likewise.
68415
68416 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68417
68418         * lib/exclude.c: Include verify.h.
68419         (verify): Remove.  All callers changed to use verify.h's version.
68420         * lib/strtoimax.c: Likewise.
68421         * lib/utimecmp.c: Likewis.e
68422
68423         Sync from coreutils.
68424         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
68425         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
68426         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
68427         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
68428         bother returning ENOSYS if settimeofday or stime fails; just let
68429         them return whatever errno they want to return.
68430         * lib/utimens.c: Include unistd.h, for dup2.
68431         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
68432         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
68433
68434 2005-10-02  Jim Meyering  <jim@meyering.net>
68435
68436         Sync from coreutils.
68437         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
68438         from glibc-2.2.5 that fails for read-only files.
68439
68440 2005-10-02  Jim Meyering  <jim@meyering.net>
68441
68442         Sync from coreutils.
68443         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
68444         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
68445         `#if HAVE_CONFIG_H'.
68446         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
68447         Remove AT_FDCWD test.
68448         Do not consume the fd unless successful.
68449         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
68450         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
68451         block, so that we don't even try to compile it if settimeofday is
68452         available.  This works around a compilation failure on OSF1 V5.1,
68453         due to stime requiring a `long int*' while tv_sec is `int'.
68454
68455 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
68456
68457         Sync from coreutils.
68458         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
68459         against `yes', rather than just testing for nonempty.
68460
68461 2005-10-01  Simon Josefsson  <jas@extundo.com>
68462
68463         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
68464         and Darwin.
68465
68466         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
68467         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
68468         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
68469         freeaddrinfo and gai_strerror are declared by the POSIX headers.
68470         Check if struct addrinfo is declared.
68471
68472 2005-10-01  Simon Josefsson  <jas@extundo.com>
68473
68474         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
68475         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
68476         AI_* and EAI_* definitions.  Protect function declarations.
68477
68478 2005-10-01  Jim Meyering  <jim@meyering.net>
68479
68480         Sync from coreutils.
68481
68482         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
68483         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
68484         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
68485         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68486         in the inet and nsl libraries.  Required on Solaris 5.7.
68487
68488 2005-10-01  Jim Meyering  <jim@meyering.net>
68489
68490         Sync from coreutils.
68491         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68492         in the inet and nsl libraries.  Required on Solaris 5.7.
68493
68494 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
68495
68496         * lib/getdelim.c (getdelim): Remove unused variables.
68497
68498 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68499
68500         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
68501         so that the code works even with ancient cpp.  Portability problem
68502         with GCC 2.7.2.1 reported by Thomas M.Ott.
68503
68504 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68505
68506         * modules/regex (Depends-on): Add strcase.
68507
68508         * modules/gethostname (Licence): Change from GPL to LGPL, since
68509         gethostname.c is a trivial implementation of a standard library
68510         function.
68511         * modules/poll (License): Change from GPL to LGPL, since it's
68512         derived from LGPL code.
68513
68514 2005-09-27  Jim Meyering  <jim@meyering.net>
68515
68516         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
68517         HAVE_CONFIG_H.
68518
68519         * lib/intprops.h (signed_type_or_expr__): Define.
68520         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
68521         for unsigned types.
68522
68523 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68524
68525         * lib/verify.h (verify_expr): Remove, replacing with:
68526         (verify_true): New macro that returns true instead of void.
68527         (verify_type__): Remove.
68528         (verify): Use verify_true rather than verify_type__.
68529
68530 2005-09-26  Bruno Haible  <bruno@clisp.org>
68531
68532         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
68533         is necessary.
68534         (lib_SOURCES): Remove mbchar.c.
68535         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
68536         (Files): Add m4/mbrtowc.m4.
68537         * modules/mbiter: Likewise.
68538         * modules/mbuiter: Likewise.
68539
68540 2005-09-26  Bruno Haible  <bruno@clisp.org>
68541
68542         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
68543         compile mbchar.c if they are not both present.
68544         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
68545         * m4/mbiter.m4 (gl_MBITER): Likewise.
68546         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
68547         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
68548         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
68549
68550 2005-09-25  Jim Meyering  <jim@meyering.net>
68551
68552         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
68553         also uses socklen_t.
68554
68555 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
68556
68557         * lib/utimens.c (ENOSYS): Define if not already defined.
68558         (futimens): Support having a null PATH if the file descriptor
68559         is nonnegative.
68560
68561         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
68562         Remove.
68563         (__attribute): Define to empty unless GCC 3.1 or later.
68564         This works around a core dump on OpenBSD 3.4, which has GCC
68565         2.95.3, which dumps core when given __attribute__(()).  It also
68566         simplifies other tests, since we really don't want to bother with
68567         worrying about which ancient version of GCC supported what.
68568         Original problem reported by Yoann Vandoorselaere, with part of
68569         the fix suggested by Derek Price.
68570
68571 2005-09-24  Jim Meyering  <jim@meyering.net>
68572
68573         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
68574         so we can once again use a positive bitfield width of 1 -- now we
68575         don't have to explain why we were using a bitfield width of 2.
68576
68577 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68578
68579         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
68580         and similarly for the other external symbols.  Problem reported
68581         by James Gallager.
68582
68583         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
68584         bug reported by Jim Meyering.
68585
68586         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
68587         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
68588         not needed, since socklen is a prerequisite module.
68589
68590 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68591
68592         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
68593         Problem reported by Eric Blake.
68594         (getaddrinfo): Initialize se so that it's not garbage.
68595         Redo internal storage allocation so that it doesn't make unportable
68596         assumptions about alignment.
68597         Fix a memory leak.
68598
68599         * lib/utimens.c (futimens): Use futimesat if available.
68600         Prefer it to futimes since it doesn't have the futimes bug.
68601
68602         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
68603         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
68604         Instead, declare a function that returns a pointer to an array,
68605         and use verify_type__ to declare the size of the array.
68606         Problem and germ of a solution reported by Bruno Haible.
68607         (verify_type__): Use 2, not 1, for bitfield size, to avoid
68608         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
68609
68610 2005-09-23  Jim Meyering  <jim@meyering.net>
68611
68612         Sync from coreutils.
68613         Correct build failure (socklen_t not defined) on at least
68614         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
68615         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
68616
68617 2005-09-23  Jim Meyering  <jim@meyering.net>
68618
68619         * modules/getaddrinfo (Depends-on): Add socklen.
68620
68621 2005-09-23  Bruno Haible  <bruno@clisp.org>
68622
68623         * tests/test-verify.c: New file.
68624
68625 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68626
68627         Sync from coreutils.
68628
68629         * modules/argmatch (Depends-on): Add verify.
68630         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
68631         unistd-safer.
68632         * modules/save-cwd (Depends-on): Likewise.
68633
68634         * modules/openat (Files): Add lib/openat-die.c.
68635         (Depends-on): Remove error, exitfail.
68636         Add dirname.
68637
68638         * modules/verify: New file.
68639         * MODULES.html.sh (Diagnostics <assert.h>): New section,
68640         with "verify" module.
68641
68642 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68643
68644         Sync from coreutils.
68645
68646         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
68647         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
68648         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
68649         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
68650         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
68651         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
68652         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
68653         Don't bother checking for string.h, stdlib.h, unistd.h.
68654         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
68655         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
68656         module's job.
68657         * m4/jm-macros.m4 (gl_MACROS): Likewise.
68658         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
68659
68660         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
68661         (gl_GETDATE): Use it.
68662
68663         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
68664
68665 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68666
68667         Sync from coreutils.
68668
68669         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
68670         stat-time.h.
68671         * lib/argmatch.h: Include verify.h
68672         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
68673         (ARGMATCH_ASSERT): Remove; unused.
68674         * lib/canonicalize.c: Assume STDC_HEADERS.
68675         * lib/exclude.c: Include "strcase.h".
68676         * lib/regex_internal.h [!defined _LIBC]: Likewise.
68677         * lib/getusershell.c: Include stdio--.h rather than stdio.h
68678         and stdio-safer.h.
68679         (getusershell): Call fopen, not fopen_safer.
68680         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
68681         Do not include unistd-safer.h.
68682         (save_cwd): Don't call fd_safer; no longer needed
68683         now that we include fcntl--.h.
68684
68685         * lib/getdate.y (relative_time): New type.
68686         (RELATIVE_TIME_0): New constant.
68687         (parser_control): Use relative_time instead of doing it ourselves.
68688         (%union): Add new relative_time rel member.
68689         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
68690         Now typeless.
68691         (relunit, relunit_snumber): Now of type rel.
68692         (zone, rel, relunit, get_date): Adjust to above changes.
68693
68694         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
68695         Do not include unistd-safer.h.
68696         (getloadavg): Don't call fd_safer; no longer needed
68697         now that we include fcntl--.h.
68698
68699         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
68700         (make_dir_parents): Treat ENOSYS like EEXIST.
68701
68702         Improve quality of diagnostics on restore_cwd failure.
68703         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
68704         (make_dir_parents): Last arg is now int * (for errno), not bool *.
68705         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
68706         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
68707         each time through the loop.  Do not diagnose restore_cwd failure;
68708         that is the caller's job (and perhaps the caller does not care).
68709
68710         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
68711         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
68712         If the file already exists but is not a directory, don't bother
68713         to try to make its parents.
68714         Close potential file descriptor leak if we can't chdir("/") (!).
68715         Don't always return true if chdir($PWD) fails; return true only
68716         if the requested action was done successfully (except for the
68717         chdir($PWD)).
68718         Don't log final directory unless we actually made it.
68719         Refactor to avoid duplicate code to fix up permissions.
68720         Don't attempt to fix up parent permissions if chdir($PWD) fails.
68721
68722         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
68723         to make it a bit faster and (I hope) clearer.
68724         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
68725         Fix bug in formats like %2N.
68726
68727         * lib/verify.h: New file.
68728
68729 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68730
68731         Sync from coreutils.
68732         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
68733
68734 2005-09-22  Jim Meyering  <jim@meyering.net>
68735
68736         Sync from coreutils.
68737
68738         * m4/lstat.m4 (gl_FUNC_LSTAT):
68739         Use AC_LIBSOURCES to require lstat.c and lstat.h.
68740         Remove obsolete comment.
68741         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
68742         * m4/xstrtod.m4: Likewise.
68743
68744         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
68745
68746 2005-09-22  Jim Meyering  <jim@meyering.net>
68747
68748         Sync from coreutils.
68749
68750         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
68751
68752         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
68753         the .tm_year member, since otherwise gcc-4.0 would now warn about
68754         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
68755
68756         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
68757         order to avoid an unsuppressible warning from gcc on 64-bit systems.
68758
68759         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
68760         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
68761         when run in a time zone for which daylight savings time is in effect
68762         for the starting date.
68763
68764         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
68765         stop us from restricting permissions of just-created absolute-named
68766         directories.
68767         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
68768         to restore initial working directory.
68769         * lib/mkdir-p.c (make_dir_parents): New parameter:
68770         different_working_dir, to tell caller if/when we change the working
68771         directory and are unable to return to the initial one.
68772         * lib/mkdir-p.h (make_dir_parents): Update prototype.
68773         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
68774         `return false'.  This fixes a bug introduced on 2004-07-30.
68775
68776         * lib/openat.c (fdopendir): Be sure to close the supplied
68777         file descriptor before returning.  This makes our replacement
68778         implementation a little closer to Solaris's, where fdopendir
68779         ties the file descriptor to the returned DIR* pointer.
68780         * lib/openat.c (unlinkat): New function.
68781         * lib/openat.h (unlinkat): Add prototype.
68782         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
68783         (openat_restore_fail): Rename from openat_restore_die.
68784         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
68785
68786         Provide an alternative to exiting immediately upon save_cwd or
68787         restore_cwd failure.  Now, an application can arrange e.g.,
68788         to perform a longjump in that case.
68789         * lib/openat.c: Include dirname.h.
68790         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
68791         (rpl_openat, fdopendir, fstatat): Call openat_save_die
68792         and openat_restore_die rather than calling error directly.
68793         Don't include "error.h" or "exitfail.h"; they're no longer needed.
68794
68795         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
68796         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
68797         define.
68798
68799         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
68800         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
68801                             int utc, int nanoseconds);
68802         Background:
68803         date should not have to allocate a megabyte of virtual memory to
68804         handle a format argument like +%1048575T.  When implemented with
68805         strftime, it must allocate such a buffer, use strftime to fill it
68806         in, print it, then free it.
68807         With fprintftime, it simply prints everything and exits.
68808         With no need for memory allocation, that's one fewer way to fail.
68809         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
68810         optional field width, not before, so we accept %9:z, not %:9z.
68811         (my_strftime): Be sure to use L_('x') for literals.
68812
68813         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
68814         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
68815         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
68816         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
68817         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
68818         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
68819         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
68820         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
68821         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
68822         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
68823         * lib/xgethostname.c, lib/xreadlink.c:
68824         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
68825
68826         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
68827         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
68828         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
68829         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68830         and don't include <sys/file.h>).
68831
68832 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
68833
68834         Sync from coreutils.
68835
68836         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
68837         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
68838         [!LDAV_DONE]: Avoid unused variable warning.
68839
68840 2005-09-21  Bruno Haible  <bruno@clisp.org>
68841
68842         * lib/unicodeio.h (unicode_to_mb): New declaration.
68843
68844 2005-09-20  Derek Price  <derek@ximbiot.com>
68845
68846         * lib/getaddrinfo.c: Don't include <netdb.h> included from
68847         getaddrinfo.h.
68848
68849 2005-09-20  Bruno Haible  <bruno@clisp.org>
68850
68851         * gnulib-tool: Remove trailing slashes from the values specified for
68852         --source-base, --m4-base, --tests-base, --aux-dir.
68853         Suggested by Simon Josefsson <jas@extundo.com>.
68854
68855 2005-09-20  Bruno Haible  <bruno@clisp.org>
68856
68857         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
68858         func_modules_to_filelist, func_import, func_create_testdir): Make all
68859         sorting results locale-independent, so that gnulib-cache.m4 doesn't
68860         change when gnulib-tool is invoked in a different locale.
68861
68862 2005-09-19  Simon Josefsson  <jas@extundo.com>
68863
68864         * m4/socklen.m4: Fix typo.
68865
68866 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68867
68868         Use a consistent style for including <config.h>.
68869         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
68870         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
68871         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
68872         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
68873         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
68874         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
68875         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
68876         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
68877         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
68878         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
68879         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
68880         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
68881         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
68882         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
68883         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
68884         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
68885         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
68886         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
68887         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
68888         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
68889         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
68890         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
68891         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
68892         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
68893         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
68894         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
68895         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
68896         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
68897         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
68898         lib/xstrtoumax.c, lib/yesno.c:
68899         Standardize inclusion of config.h.
68900         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
68901         lib/inttostr.h:  Removed inclusion of config.h from header files.
68902         * lib/inttostr.c:  Adjusted in-tree users.
68903         * lib/timespec.h: Remove superfluous warning to include config.h.
68904         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
68905         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
68906         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
68907         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
68908         config.h with HAVE_CONFIG_H.
68909
68910 2005-09-19  Jim Meyering  <jim@meyering.net>
68911
68912         * modules/pathmax (License): Change to LGPL.
68913
68914 2005-09-19  Derek Price  <derek@ximbiot.com>
68915
68916         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
68917
68918 2005-09-19  Bruno Haible  <bruno@clisp.org>
68919
68920         * gnulib-tool (import): Provide default for --tests-base.
68921
68922 2005-09-19  Bruno Haible  <bruno@clisp.org>
68923
68924         * doc/quote.texi: New file, extracted from gnulib.texi.
68925         * doc/ctime.texi: New file, extracted from gnulib.texi.
68926         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
68927         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
68928         * doc/gnulib.texi: Include them.
68929
68930 2005-09-18  Bruno Haible  <bruno@clisp.org>
68931
68932         Portability fix.
68933         * gnulib-tool (func_readlink): New function.
68934         (func_ln_if_changed): Use it.
68935
68936 2005-09-18  Bruno Haible  <bruno@clisp.org>
68937
68938         * gnulib-tool: Support --with-tests also with --import.
68939         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
68940         (func_import): Use variables $testsbase and $inctests. Emit a
68941         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
68942         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
68943         SUBDIRS += $testsdir.
68944         (func_create_testdir): Update.
68945
68946 2005-09-18  Bruno Haible  <bruno@clisp.org>
68947
68948         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
68949         instead of $dry_run.
68950         (func_cp_if_changed, func_mv_if_changed): Remove functions.
68951         (func_ln_if_changed): Don't handle dry-run here.
68952         (func_import): In dry-run mode, detect more precisely which actions
68953         would be performed, and don't use "...ing" verbs.
68954
68955 2005-09-18  Bruno Haible  <bruno@clisp.org>
68956
68957         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
68958         (func_import): Use join on two temporary files instead of three nested
68959         loops, in order to determine which files are new or old.
68960
68961 2005-09-18  Bruno Haible  <bruno@clisp.org>
68962
68963         * gnulib-tool (func_import): Comment out code that spits out the
68964         new files with --dry-run.
68965
68966 2005-09-18  Bruno Haible  <bruno@clisp.org>
68967
68968         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
68969
68970 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68971
68972         * lib/stat-time.h: New file.
68973         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
68974         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
68975         in a different way.
68976         (timespec_cmp): New function.
68977         * lib/utimecmp.c: Include stat-time.h.
68978         (SYSCALL_RESOLUTION): Depend on whether various struct stat
68979         members exist, not on the obsolescent ST_MTIM_NSEC.
68980         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
68981
68982 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68983
68984         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
68985
68986 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68987
68988         * MODULES.html.sh (File system functions): Add stat-time.
68989         * modules/stat-time: New file.
68990         * modules/timespec (Files): Remove m4/st_mtim.m4; this
68991         is now done in a different way, by the stat-time module.
68992         * modules/utimecmp (Depends-on): Add stat-time.
68993
68994 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68995
68996         * m4/st_mtim.m4: Remove.  Superseded by...
68997         * m4/stat-time.m4: New file.
68998         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
68999         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
69000
69001 2005-09-15  Derek Price  <derek@ximbiot.com>
69002
69003         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
69004
69005 2005-09-15  Derek Price  <derek@ximbiot.com>
69006
69007         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
69008         * lib/regex_internal.c: Ditto, using this...
69009         (__GNUC_PREREQ): ...new macro.
69010         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
69011         using...
69012         (__GNUC_PREREQ): ...this new macro.
69013
69014         * lib/strstr.h: Include string.h. Define strstr as a macro here.
69015
69016 2005-09-15  Derek Price  <derek@ximbiot.com>
69017             Paul Eggert  <eggert@cs.ucla.edu>
69018
69019         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69020         changes, consolidating in...
69021         * lib/regex_internal.h: ...this file.
69022
69023 2005-09-13  Jim Meyering  <jim@meyering.net>
69024
69025         * lib/canon-host.c: Filter through gnu indent and reword comments
69026         slightly.
69027         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69028
69029 2005-09-13  Derek Price  <derek@ximbiot.com>
69030
69031         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69032         failure.
69033         Reported by Jim Meyering  <jim@meyering.net>.
69034
69035 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69036
69037         * lib/base64.c: Typo.
69038         (base64_encode): Put b64str in initialized data section.
69039
69040 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69041
69042         Merge glibc and coreutils changes into gnulib, plus a few
69043         extra fixes.
69044         * lib/md5.c: Use #error rather than a string.
69045         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69046         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69047         (__attribute__): Define to empty for non recent-GCC.
69048         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69049         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69050         Renamed from their non-__ counterparts, with new macros replacing
69051         them if not _LIBC.  Add __THROW attribute.
69052         (rol): Remove.
69053         (struct md5_ctx): Align buffer if using GCC.
69054         * lib/sha1.h (struct sha1_ctx): Likewise.
69055         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69056         The old name was backwards.
69057         (NOTSWAP): Remove; not used.
69058         (rol): New macro, moved here from md5.h.
69059         (sha1_process_block): Remove a FIXME that doesn't make sense.
69060
69061 2005-09-12  Derek Price  <derek@ximbiot.com>
69062
69063         Return usable errors from canon-host.
69064         * lib/canon-host.h: New file.
69065         * lib/canon-host.c (canon_host): Wrap...
69066         (canon_host_r): ...this new function, which now relies exclusively on
69067         getaddrinfo.
69068         (ch_strerror): New function.
69069         (last_cherror): New global.
69070         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69071         interface.
69072         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69073         void *.
69074         (freeaddrinfo): Free ai->ai_canonname when set.
69075
69076 2005-09-12  Derek Price  <derek@ximbiot.com>
69077
69078         Make canon-host require getaddrinfo.
69079         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69080         AC_LIBSOURCE canon-host.h.  Call...
69081         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69082         gl_GETADDRINFO.
69083         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69084
69085 2005-09-12  Derek Price  <derek@ximbiot.com>
69086
69087         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69088         LGPL.
69089         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69090
69091 2005-09-12  Derek Price  <derek@ximbiot.com>
69092
69093         * lib/gai_strerror.c: Include config.h when available.  Include
69094         getaddrinfo.h before other headers to test interface.
69095         Reported by Larry Jones <lawrence.jones@ugs.com>.
69096
69097 2005-09-12  Derek Price  <derek@ximbiot.com>
69098             Paul Eggert  <eggert@cs.ucla.edu>
69099
69100         * modules/glob (Files): Add glob-libc.h.
69101
69102 2005-09-12  Derek Price  <derek@ximbiot.com>
69103             Paul Eggert  <eggert@cs.ucla.edu>
69104
69105         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69106         glob_.h, glob-libc.h.
69107         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69108
69109 2005-09-12  Derek Price  <derek@ximbiot.com>
69110             Paul Eggert  <eggert@cs.ucla.edu>
69111
69112         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69113         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69114         protecting things that should be done only in gnulib contexts.
69115         * lib/glob_.h: New file, containing only the glob things needed for
69116         gnulib.
69117         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69118         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69119         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69120         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69121         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69122         and to respect the namespace rules better.
69123
69124 2005-09-08  Simon Josefsson  <jas@extundo.com>
69125
69126         * modules/socklen: New file.
69127
69128 2005-09-08  Simon Josefsson  <jas@extundo.com>
69129
69130         * m4/socklen.m4: New file.
69131
69132 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69133
69134         * modules/utimens (Files): Add m4/utimbuf.m4, since
69135         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69136         Reported by Sergey Poznyakoff.
69137
69138 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69141         definitions, since that's the preferred style in glibc.
69142         Fix a minor spacing issue, and update copyright notice to match
69143         glibc's.
69144
69145 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69146
69147         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69148
69149 2005-09-06  Simon Josefsson  <jas@extundo.com>
69150
69151         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69152         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69153
69154 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69155
69156         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69157         warning.
69158
69159 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69160
69161         * config/srclist.txt: Add glibc bug 1302.
69162
69163 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69164
69165         Change bitset word type from unsigned int to unsigned long int,
69166         as this has better performance on typical 64-bit hosts.
69167         Port bitset code to hosts with unusual word sizes.
69168         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69169         (build_collating_symbol):
69170         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69171         argument is a bitset.  This is merely a style issue, but it makes
69172         it clearer that an entire array is expected.
69173         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69174         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69175         Port to the case where bitset_word is not the same as unsigned int.
69176         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69177         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69178         Likewise.
69179         * lib/regexec.c (check_dst_limits_calc_pos_1,
69180         check_subexp_matching_top):
69181         (build_trtable, group_nodes_into_DFAstates):
69182         Likewise.
69183         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69184         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69185         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69186         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69187         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69188         * lib/regcomp.c (optimize_subexps, lower_subexp):
69189         Work even if bitset_word has holes in its bitwise representation.
69190         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69191         * lib/regexec.c (check_dst_limits_calc_pos_1,
69192         check_subexp_matching_top):
69193         Likewise.
69194         * lib/regex_internal.c (re_string_reconstruct):
69195         Don't assume UCHAR_MAX == 255.
69196         * lib/regex_internal.h (bitset_set_all): Likewise.
69197         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69198         All uses changed.
69199         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69200         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69201         All uses changed.
69202         (BITSET_WORD_MAX): New macro.
69203         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69204         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69205         (bitset_empty, bitset_copy):
69206         Prefer sizeof (bitset) to multiplying it out ourselves.
69207         (bitset_not_merge): Remove; unused.
69208         (bitset_contain): Return bool, not unsigned int with one bit on.
69209         All callers changed.
69210         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69211         alignment than re_node_set; do this by defining a new internal
69212         type struct dests_alloc and using it to allocate memory.
69213
69214 2005-09-05  Bruno Haible  <bruno@clisp.org>
69215
69216         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69217         links.
69218
69219 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69220
69221         * modules/size_max (Makefile.am): Add size_max.h
69222
69223 2005-09-04  Derek Price  <derek@ximbiot.com>
69224
69225         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69226
69227 2005-09-03  Simon Josefsson  <jas@extundo.com>
69228
69229         * gnulib-tool: Fix typo.
69230
69231 2005-09-03  Simon Josefsson  <jas@extundo.com>
69232
69233         * config/srclist.txt: Add glibc bug 1293.
69234
69235 2005-09-03  Derek Price  <derek@ximbiot.com>
69236
69237         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
69238         From Larry Jones <lawrence.jones@ugs.com>.
69239
69240 2005-09-02  Simon Josefsson  <jas@extundo.com>
69241
69242         * modules/socklen: New file.
69243
69244 2005-09-02  Simon Josefsson  <jas@extundo.com>
69245
69246         * modules/havelib: New module.
69247
69248         * modules/gettext, modules/iconv, modules/lock, modules/readline:
69249         Use havelib.
69250
69251 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69252
69253         Check for arithmetic overflow when calculating sizes, to prevent
69254         some buffer-overflow issues.  These patches are conservative, in the
69255         sense that when I couldn't determine whether an overflow was possible,
69256         I inserted a run-time check.
69257         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
69258         macros.
69259         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
69260         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
69261         (re_xnrealloc, re_x2nrealloc): New inline functions.
69262         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
69263         parse_bracket_exp):
69264         (build_equiv_class, build_charclass): Check for arithmetic overflow
69265         in size expression calculations.
69266         * lib/regex_internal.c (re_string_realloc_buffers):
69267         (build_wcs_upper_buffer, re_node_set_add_intersect):
69268         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
69269         (re_dfa_add_node, register_state): Likewise.
69270         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
69271         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
69272         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
69273         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
69274
69275 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69276
69277         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69278         m4/ulonglong.m4.  Problem reported by Martin Lambers.
69279
69280 2005-09-02  Bruno Haible  <bruno@clisp.org>
69281
69282         Support for lib vs. lib64 distinction on biarch platforms.
69283         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
69284         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
69285         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
69286
69287 2005-09-02  Bruno Haible  <bruno@clisp.org>
69288
69289         * gnulib-tool (import): In the other first-use case, provide defaults
69290         as well.
69291
69292 2005-09-02  Bruno Haible  <bruno@clisp.org>
69293
69294         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
69295         patches not yet found in the latest gettext release.
69296
69297 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69298
69299         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
69300         to avoid a collision with bits/local_lim.h in glibc.
69301         All uses changed.  Problem reported by Dmitry V. Levin in
69302         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
69303
69304         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
69305         bugs in int versus size_t comparisons.
69306         (re_string_context_at): Fix bug where the code assumed that
69307         Idx is signed.
69308
69309         Use bool where appropriate.
69310         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
69311         All callers changed.
69312         (calc_eclosure_iter): Likewise, for ROOT arg.
69313         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
69314         (build_charclass_op): Likewise, for NON_MATCH arg.
69315         * lib/regex_internal.c (re_string_allocate, re_string_construct):
69316         (re_string_construct_common): Likewise, for ICASE arg.
69317         * lib/regexec.c (re_search_2_stub, re_search_stub):
69318         Likewise, for RET_LEN arg.
69319         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
69320         (set_regs): Likewise, for FL_BACKTRACK arg.
69321         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
69322         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
69323         (calc_eclosure_iter, parse_bracket_exp):
69324         Use bool for internal variables that are booleans.
69325         * lib/regexec.c (re_search_internal, check_matching,
69326         proceed_next_node):
69327         (set_regs, build_sifted_states, sift_states_bkref):
69328         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69329         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69330         (find_collation_sequence_value):
69331         Likewise.
69332         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69333         (re_node_set_compare):
69334         Return bool, not int. All callers changed.
69335         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69336         (build_trtable, check_node_accept): Likewise.
69337         * lib/regex_internal.h: Include stdbool.h.
69338
69339         Fix bugs uncovered when converting to bool.
69340         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69341         failure instead of charging ahead blindly.
69342         * lib/regex_internal.c (register_state): Likewise.
69343         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69344         for freeing internal storage.
69345         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69346         bitset pieces used as boolean, to avoid undefined behavior
69347         on hosts that do int overflow checking.
69348
69349 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69350
69351         * config/srclist.txt: Add glibc bugs 1285-1287.
69352
69353 2005-09-01  Jim Meyering  <jim@meyering.net>
69354
69355         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69356         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69357         Require gl_STAT_MACROS, too.
69358
69359 2005-09-01  Bruno Haible  <bruno@clisp.org>
69360
69361         * gnulib-tool (import): In the first-use case, provide defaults.
69362
69363 2005-09-01  Bruno Haible  <bruno@clisp.org>
69364
69365         * gnulib-tool (func_import): Remove the .tmp files.
69366
69367 2005-09-01  Bruno Haible  <bruno@clisp.org>
69368
69369         * gnulib-tool (func_import): Fix handling of symbolic links.
69370
69371 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69372
69373         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69374         old glibc regex code mishandles strings longer than 2**31 bytes.
69375         This patch fixes this when the regex code is used in gnulib
69376         (i.e., outside glibc).
69377
69378         This patch should not affect the use of the regex code inside
69379         glibc.  No doubt this problem also needs to be handled for glibc
69380         as well, but the result will be an incompatible change to the
69381         glibc ABI, and the old ABI will have to be supported too.  That
69382         can be the the subject for another patch.
69383
69384         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69385         governing whether the rest of this patch is active.  By default,
69386         the macro is disabled and the patch has no effect.
69387         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69388         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69389         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69390         (re_match_2, re_set_registers): Use the new types.
69391         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69392         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69393         New macros.
69394         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69395         (re_string_context_at, bin_tree_t, re_dfastate_t):
69396         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69397         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69398         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69399         (re_string_char_size_at, re_string_wchar_at):
69400         (re_string_elem_size_at):
69401         Use the new types and macros to port to 64-bit hosts.
69402         Use unsigned types for internal values, so that the code
69403         mostly works even for arrays larger than SSIZE_MAX.
69404         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
69405         (search_duplicated_node, calc_eclosure_iter, fetch_number):
69406         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
69407         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
69408         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
69409         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
69410         (calc_inveclosure, parse_dup_op, build_range_exp):
69411         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
69412         (fetch_number, create_token_tree, mark_opt_subexp):
69413         Likewise.
69414         * lib/regex_internal.c (re_string_construct_common,
69415         create_ci_newstate):
69416         (create_cd_newstate, re_string_allocate, re_string_construct):
69417         (re_string_realloc_buffers, build_wcs_upper_buffer):
69418         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69419         (re_string_reconstruct, re_string_peek_byte_case):
69420         (re_string_fetch_byte_case, re_string_context_at):
69421         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69422         (re_node_set_init_copy, re_node_set_add_intersect):
69423         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69424         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69425         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69426         (re_acquire_state, re_acquire_state_context, register_state):
69427         Likewise.
69428         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
69429         search_cur_bkref_entry):
69430         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
69431         (re_search_internal, re_search_2_stub, re_search_stub)
69432         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
69433         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
69434         (update_cur_sifted_state, check_dst_limits):
69435         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69436         (check_subexp_limits, sift_states_bkref, merge_state_array):
69437         (check_subexp_matching_top, get_subexp, get_subexp_sub):
69438         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
69439         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69440         (expand_bkref_cache, check_node_accept_bytes):
69441         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
69442         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
69443         (acquire_init_state_context, check_halt_node_context):
69444         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
69445         (sift_states_backward, clean_state_log_if_needed):
69446         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
69447         (find_recover_state, transit_state_sb, transit_state_mb):
69448         (transit_state_bkref, build_trtable, match_ctx_clean):
69449         Likewise.
69450         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
69451         to work around an assumption that REG_MISSING is negative.
69452
69453         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
69454         (seek_collating_symbol_entry) [defined _LIBC]:
69455         (lookup_collation_sequence_value) [defined _LIBC]:
69456         (build_range_exp, build_collating_symbol) [defined _LIBC]:
69457         Use prototypes rather than old-style function definitions.
69458         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
69459         (transit_state_sb) [0]:
69460         (find_collation_sequence_value) [defined _LIBC]: Likewise.
69461
69462         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
69463         rm_eo.
69464
69465         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
69466         (optimize_subexps, lower_subexp):
69467         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
69468         since the signed shift might overflow.  Use 1u<<31 instead.
69469         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69470         Likewise.
69471         * lib/regexec.c (check_dst_limits_calc_pos_1,
69472         check_subexp_matching_top): Likewise.
69473
69474         * lib/regcomp.c (optimize_subexps, lower_subexp):
69475         Use CHAR_BIT rather than 8, for clarity.
69476         * lib/regexec.c (check_dst_limits_calc_pos_1):
69477         (check_subexp_matching_top): Likewise.
69478         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
69479         have to worry about portability issues when shifting it left.
69480         Remove no-longer-needed test for table_size > 0.
69481         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
69482         in a word, as the resulting behavior is undefined.
69483         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
69484         in one case, a <= should have been an <, and in another case the
69485         whole test was missing.
69486         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
69487         the standard name CHAR_BIT.
69488         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
69489         this is not true on one's complement and signed-magnitude hosts.
69490
69491         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
69492         next_last_offset.
69493         (struct re_dfa_t): Remove unused member states_alloc.
69494         * lib/regcomp.c (init_dfa): Don't initialize unused members.
69495
69496 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69497
69498         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
69499         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
69500         and large-file glibc and in 32-bit large-file Solaris.
69501
69502 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69503
69504         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
69505         lengths fit in regoff_t; this isn't true if regoff_t is the same
69506         width as size_t.
69507         * lib/regex.c (re_search_internal): 5th arg is LAST_START
69508         (= START + RANGE) instead of RANGE.  This avoids overflow
69509         problems when regoff_t is the same width as size_t.
69510         All callers changed.
69511         (re_search_2_stub): Check for overflow when adding the
69512         sizes of the two strings.
69513         (re_search_stub): Check for overflow when adding START
69514         to RANGE; if it occurs, substitute the extreme value.
69515
69516 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69517
69518         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
69519
69520 2005-08-31  Jim Meyering  <jim@meyering.net>
69521
69522         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
69523         a pointer-to-const.
69524         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
69525         (register_state): Likewise.
69526         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
69527         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69528         (group_nodes_into_DFAstates): Likewise.
69529
69530 2005-08-31  Jim Meyering  <jim@meyering.net>
69531
69532         * check-module: Add a FIXME comment.
69533
69534 2005-08-31  Eric Blake  <ebb9@byu.net>
69535
69536         * modules/unistd-safer (Files): Add unistd--.h.
69537         * modules/stdio-safer (Files): Add stdio--.h.
69538
69539 2005-08-31  Derek Price  <derek@ximbiot.com>
69540
69541         * lib/getdelim.c (getdelim): Return EOF on EOF.
69542         Reported by Larry Jones <lawrence.jones@ugs.com>.
69543
69544 2005-08-31  Bruno Haible  <bruno@clisp.org>
69545
69546         Avoid unnecessary diffs in the generated lib/Makefile.am.
69547         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
69548         the generated files.
69549         (func_import): Don't set cmd.
69550
69551 2005-08-31  Bruno Haible  <bruno@clisp.org>
69552
69553         * lib/strstr.c: Include <stddef.h>, for NULL.
69554         * lib/strcasestr.c: Likewise.
69555         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69556
69557 2005-08-31  Bruno Haible  <bruno@clisp.org>
69558
69559         * gnulib-tool: New option --macro-prefix.
69560         (func_import): Use macro_prefix.
69561         (import): Handle option --macro-prefix.
69562
69563 2005-08-31  Bruno Haible  <bruno@clisp.org>
69564
69565         * gnulib-tool (import): Rename most ac_* variables to cached_*.
69566         Also use new variables cached_lgpl, cached_libtool.
69567
69568 2005-08-31  Bruno Haible  <bruno@clisp.org>
69569
69570         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
69571         always instantiating them.
69572
69573 2005-08-31  Bruno Haible  <bruno@clisp.org>
69574
69575         * gnulib-tool (func_import): Read the previous cached settings
69576         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
69577         earlier added by gnulib but are now dropped. Warn when a gnulib file
69578         overwrites a non-gnulib file.
69579
69580 2005-08-31  Bruno Haible  <bruno@clisp.org>
69581
69582         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
69583         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
69584         projects that don't keep autogenerated files in CVS. Put into
69585         actioncmd only the specified modules, not the transitive closure.
69586
69587 2005-08-31  Bruno Haible  <bruno@clisp.org>
69588
69589         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
69590         Create directories that shall be filled.
69591         (import): Don't look for gl_* macros in configure.ac. Recurse across
69592         all directories containing a gnulib-cache.m4 files, if meaningful.
69593
69594 2005-08-31  Bruno Haible  <bruno@clisp.org>
69595
69596         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
69597         (import): Set seen_libtool when we see gl_LIBTOOL.
69598
69599 2005-08-31  Bruno Haible  <bruno@clisp.org>
69600
69601         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
69602         declaration macro definitions from generated gnulib.m4.
69603
69604 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
69605
69606         * lib/iconvme.h: Add prototype for iconv_alloc.
69607
69608 2005-08-29  Simon Josefsson  <jas@extundo.com>
69609
69610         * lib/iconvme.c: Fix errno.
69611
69612 2005-08-29  Bruno Haible  <bruno@clisp.org>
69613
69614         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
69615         that it works when the directory contains spaces.
69616
69617 2005-08-29  Bruno Haible  <bruno@clisp.org>
69618
69619         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
69620
69621 2005-08-29  Bruno Haible  <bruno@clisp.org>
69622
69623         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
69624         Emit more advice.
69625
69626 2005-08-29  Bruno Haible  <bruno@clisp.org>
69627         and Stepan Kasal  <kasal@ucw.cz>
69628
69629         * check-module: If more parameters are given, check each of them
69630         separately; add more exceptions, as noted by Jim Meyering.
69631         (check_module): New procedure.
69632         (%exempt_header): Now contains all exceptions.
69633
69634 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
69635
69636         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
69637
69638 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69639
69640         * lib/iconvme.c: Split iconv_string into iconv_alloc.
69641
69642 2005-08-28  Bruno Haible  <bruno@clisp.org>
69643
69644         * m4/gnulib-tool.m4: New file.
69645
69646 2005-08-27  Jim Meyering  <jim@meyering.net>
69647
69648         * modules/unistd-safer (Files): Add pipe-safer.c.
69649         * modules/fcntl-safer (Files): Add creat-safer.c.
69650
69651 2005-08-27  Jim Meyering  <jim@meyering.net>
69652
69653         * m4/stdlib-safer.m4: New file.  From coreutils.
69654         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
69655         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
69656         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
69657         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
69658         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
69659
69660 2005-08-27  Jim Meyering  <jim@meyering.net>
69661
69662         * lib/fopen-safer.c: Merge minor changes from coreutils.
69663         * lib/dup-safer.c: Likewise.
69664         * lib/fd-safer.c: Likewise.
69665
69666         Merge from coreutils.
69667         * lib/stdio--.h: New file.
69668         * lib/stdlib--.h: New file.
69669         * lib/mkstemp-safer.c: New file.
69670
69671         GNU tar needs these.
69672         * lib/pipe-safer.c: New file.
69673         * lib/creat-safer.c: New file.
69674         * lib/fcntl--.h (creat): Define to creat_safer.
69675         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
69676         * lib/unistd--.h (pipe): Define to pipe_safer.
69677         * lib/unistd-safer.h: Declare pipe_safer.
69678
69679 2005-08-26  Simon Josefsson  <jas@extundo.com>
69680
69681         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
69682         Haible <bruno@clisp.org>.
69683
69684 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
69685
69686         * lib/regex_internal.h: Remove all references to
69687         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
69688         or better.
69689         (bitset_not, bitset_merge, bitset_not_merge):
69690         (bitset_mask, re_string_allocate, re_string_construct):
69691         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
69692         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
69693         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
69694         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
69695         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69696         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69697         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
69698         (re_acquire_state_context):
69699         Remove unnecessary forward decls.
69700         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
69701         Put __attribute at function definition,
69702         now that the function decl has been removed.
69703         * lib/regex_internal.c (re_string_peek_byte_case):
69704         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
69705         Likewise.
69706
69707 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
69708
69709         * m4/regex.m4: Add AC_PREREQ(2.50).
69710         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
69711
69712 2005-08-25  Simon Josefsson  <jas@extundo.com>
69713
69714         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
69715         __fsetlocking.
69716
69717 2005-08-25  Simon Josefsson  <jas@extundo.com>
69718
69719         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
69720         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
69721         GLIBC specific code.
69722
69723 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69724
69725         Make regex safe for g++.  This fixes one real bug (an "err"
69726         that should have been "*err").  g++ problem reported by
69727         Sam Steingold.
69728         * lib/regex_internal.h (re_calloc): New macro, consistent with
69729         re_malloc etc.  All callers of calloc changed to use re_calloc.
69730         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
69731         not int.  All callers changed.
69732         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
69733         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
69734         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
69735         (find_recover_state): Change "err" to "*err"; this fixes what
69736         appears to be a real bug.
69737         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
69738         versus int.
69739
69740 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69741
69742         * modules/regex (Depends-on): Add malloc, since the code
69743         assumes that !malloc(0) means failure.
69744
69745 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69746
69747         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
69748
69749         alloca modernization/simplification for regex.
69750         * lib/regex.c: Remove portability cruft for alloca.  This no longer
69751         needs to be at the start of the file, and can be moved into
69752         regex_internal.h and simplified.
69753         * lib/regex_internal.h: Include <alloca.h>.
69754         (__libc_use_alloca) [!defined _LIBC]: New macro.
69755         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
69756         now works outside glibc.
69757
69758 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69759
69760         * config/srclist.txt: Add glibc bugs 1241, 1245.
69761
69762 2005-08-25  Jim Meyering  <jim@meyering.net>
69763
69764         * lib/open-safer.c: Include <config.h>.
69765         Otherwise, we'd lose LARGEFILE support in any file using
69766         e.g. "fcntl--.h"
69767
69768 2005-08-25  Bruno Haible  <bruno@clisp.org>
69769
69770         * m4/minmax.m4: Require autoconf 2.52.
69771         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
69772         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
69773         alternatives of translit over the alphabet.
69774         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
69775
69776 2005-08-24  Simon Josefsson  <jas@extundo.com>
69777
69778         * tests/test-getpass.c: New file.
69779
69780 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69781
69782         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
69783         for GNU regex features.
69784
69785 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69786
69787         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
69788         * lib/regex.h (regerror): Likewise.
69789
69790         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
69791         requires this.  (The code never needed it.)
69792
69793         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
69794         All uses of recently-renamed identifiers changed to use the new,
69795         POSIX-compliant names.  The code will build and run just fine
69796         without these changes, but it's better to eat our own dog food
69797         and use the standard-conforming names.
69798
69799         * lib/regex.h: Fix a multitude of POSIX name space violations.
69800         These changes have an effect only for programs that define
69801         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
69802         do not change anything for programs compiled in the normal way.
69803         Also, there is no effect on the ABI.
69804
69805         (_REGEX_SOURCE): New macro.
69806         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
69807         defined and _GNU_SOURCE is not; this fixes a name space violation.
69808
69809         Rename the following macros to obey POSIX requirements.
69810         The old names are still visible as macros if _REGEX_SOURCE is defined.
69811         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
69812         RE_BACKSLASH_ESCAPE_IN_LISTS.
69813         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
69814         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
69815         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
69816         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
69817         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
69818         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
69819         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
69820         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
69821         (REG_INTERVALS): renamed from RE_INTERVALS.
69822         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
69823         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
69824         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
69825         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
69826         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
69827         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
69828         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
69829         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
69830         RE_UNMATCHED_RIGHT_PAREN_ORD.
69831         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
69832         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
69833         (REG_DEBUG): renamed from RE_DEBUG.
69834         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
69835         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
69836         unusual, since we can't clash with the POSIX REG_ICASE.
69837         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
69838         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
69839         (REG_NO_SUB): renamed from RE_NO_SUB.
69840         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
69841         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
69842         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
69843         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
69844         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
69845         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
69846         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
69847         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
69848         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
69849         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
69850         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
69851         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
69852         RE_SYNTAX_POSIX_MINIMAL_BASIC.
69853         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
69854         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
69855         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
69856         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
69857         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
69858         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
69859         (REG_FIXED): Renamed from REGS_FIXED.
69860         (REG_NREGS): Renamed from RE_NREGS.
69861
69862         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
69863         of other REG_* macros, since POSIX says the user is allowed to
69864         #undef these macros selectively.
69865
69866         (reg_errcode_t): Update comment stating what other tables need
69867         to be consistent.
69868
69869         Rename the following enum values to obey POSIX requirements.
69870         The old names are still visible as macros.
69871         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
69872         is not defined, since GNU is supposed to be a superset of POSIX as
69873         much as possible, and since we want reg_errcode_t to be a signed
69874         type for implementation consistency.
69875         (_REG_NOERROR): Renamed from REG_NOERROR.
69876         (_REG_NOMATCH): Renamed from REG_NOMATCH.
69877         (_REG_BADPAT): Renamed from REG_BADPAT.
69878         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
69879         (_REG_ECTYPE): Renamed from REG_ECTYPE.
69880         (_REG_EESCAPE): Renamed from REG_EESCAPE.
69881         (_REG_ESUBREG): Renamed from REG_ESUBREG.
69882         (_REG_EBRACK): Renamed from REG_EBRACK.
69883         (_REG_EPAREN): Renamed from REG_EPAREN.
69884         (_REG_EBRACE): Renamed from REG_EBRACE.
69885         (_REG_BADBR): Renamed from REG_BADBR.
69886         (_REG_ERANGE): Renamed from REG_ERANGE.
69887         (_REG_ESPACE): Renamed from REG_ESPACE.
69888         (_REG_BADRPT): Renamed from REG_BADRPT.
69889         (_REG_EEND): Renamed from REG_EEND.
69890         (_REG_ESIZE): Renamed from REG_ESIZE.
69891         (_REG_ERPAREN): Renamed from REG_ERPAREN.
69892         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
69893         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
69894         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
69895         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
69896
69897         (_REG_RE_NAME, _REG_RM_NAME): New macros.
69898         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
69899         changed.  But support the old name if the new one is not defined
69900         and if _REGEX_SOURCE.
69901
69902         Change the following member names in struct re_pattern_buffer.
69903         The old names are still supported if !_REGEX_SOURCE.
69904         The new names are always supported, regardless of _REGEX_SOURCE.
69905         (re_buffer): Renamed from buffer.
69906         (re_allocated): Renamed from allocated.
69907         (re_used): Renamed from used.
69908         (re_syntax): Renamed from syntax.
69909         (re_fastmap): Renamed from fastmap.
69910         (re_translate): Renamed from translate.
69911         (re_can_be_null): Renamed from can_be_null.
69912         (re_regs_allocated): Renamed from regs_allocated.
69913         (re_fastmap_accurate): Renamed from fastmap_accurate.
69914         (re_no_sub): Renamed from no_sub.
69915         (re_not_bol): Renamed from not_bol.
69916         (re_not_eol): Renamed from not_eol.
69917         (re_newline_anchor): Renamed from newline_anchor.
69918
69919         Change the following member names in struct re_registers.
69920         The old names are still supported if !_REGEX_SOURCE.
69921         The new names are always supported, regardless of _REGEX_SOURCE.
69922         (rm_num_regs): Renamed from num_regs.
69923         (rm_start): Renamed from start.
69924         (rm_end): Renamed from end.
69925
69926         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
69927         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
69928         Prepend __ to parameter names.
69929
69930         Undo yesterday's changes.
69931
69932 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69933
69934         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
69935         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
69936         lib/regex.c.
69937
69938 2005-08-24  Jim Meyering  <jim@meyering.net>
69939
69940         Sync from coreutils.
69941         * m4/fcntl-safer.m4: New file.
69942
69943         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
69944         and object files for this module.
69945
69946 2005-08-24  Jim Meyering  <jim@meyering.net>
69947
69948         Sync from coreutils.
69949         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
69950
69951 2005-08-24  Jim Meyering  <jim@meyering.net>
69952
69953         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
69954         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
69955
69956 2005-08-24  Jim Meyering  <jim@meyering.net>
69957
69958         * modules/fcntl-safer: New module.
69959         * modules/fts (Depends-on): Add fcntl-safer.
69960         * MODULES.html.sh (File descriptor based Input/Output):
69961         Add fcntl-safer.
69962
69963 2005-08-24  Bruno Haible  <bruno@clisp.org>
69964
69965         Support for unit test modules.
69966         * modules/README: Mention tests modules.
69967         * modules/TEMPLATE-TESTS: New file.
69968         * gnulib-tool: New options --extract-tests-module, --with-tests and
69969         --tests-base (unused for the moment).
69970         (testsbase, inctests): New variables.
69971         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
69972         (func_verify_module): Exclude TEMPLATE-TESTS.
69973         (func_verify_nontests_module, func_verify_tests_module): New functions.
69974         (func_get_dependencies): Add implicit dependency for tests modules.
69975         (func_get_tests_module): New function.
69976         (func_modules_transitive_closure): When --with-tests was specified,
69977         include the unit tests as well, unless explicitly avoided.
69978         (func_emit_lib_Makefile_am): Ignore the tests modules here.
69979         (func_emit_tests_Makefile_am): New function.
69980         (func_create_testdir): When --with-tests was specified, emit a
69981         tests/ directory.
69982         * MODULES.html.sh (Future developments): Update.
69983
69984 2005-08-24  Bruno Haible  <bruno@clisp.org>
69985
69986         * modules/tls-tests: New file.
69987         * tests/test-tls.c: New file, from GNU gettext.
69988
69989 2005-08-24  Bruno Haible  <bruno@clisp.org>
69990
69991         * modules/lock-tests: New file.
69992         * tests/test-lock.c: New file, from GNU gettext.
69993
69994 2005-08-24  Bruno Haible  <bruno@clisp.org>
69995
69996         * lib/lock.h: Add multiple inclusion guard.
69997         * lib/tls.h: Add multiple inclusion guard.
69998
69999 2005-08-24  Bruno Haible  <bruno@clisp.org>
70000
70001         * gnulib-tool: Add support for the --aux-dir option to
70002         --create-testdir, --create-megatestdir, --test, --megatest.
70003         (func_create_testdir, func_create_megatestdir): Optionally emit a
70004         AC_CONFIG_AUX_DIR directive.
70005         (create-testdir, create-megatestdir, test, megatest): Provide a
70006         default value for $auxdir.
70007
70008 2005-08-24  Bruno Haible  <bruno@clisp.org>
70009
70010         * gnulib-tool (import): Use compound statement instead of subshell
70011         where possible.
70012
70013 2005-08-24  Bruno Haible  <bruno@clisp.org>
70014
70015         * gnulib-tool (import): Change --aux-dir default to "build-aux".
70016
70017 2005-08-24  Bruno Haible  <bruno@clisp.org>
70018
70019         * gnulib-tool (func_version): Update.
70020
70021 2005-08-24  Bruno Haible  <bruno@clisp.org>
70022
70023         * gnulib-tool (func_import, func_create_testdir,
70024         func_create_megatestdir): Quote all autoconf macro arguments.
70025
70026 2005-08-24  Bruno Haible  <bruno@clisp.org>
70027
70028         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70029         option --force, because --force causes the aclocal.m4 of each
70030         subdirectory to be newer than the corresponding config.h.in.
70031
70032 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70033
70034         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70035         All contents moved to gl_REGEX.
70036         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70037         assume that it does.
70038
70039 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70040
70041         * lib/regex.h (REG_NOSYS)
70042         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70043         Define, since POSIX requires it as of 2001.
70044         (_REG_ENOSYS)
70045         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70046         New private symbol, used to keep the enum signed in all cases.
70047         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70048         Youngman in
70049         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70050
70051         * lib/regex_internal.c (re_string_skip_chars, register_state):
70052         (calc_state_hash):
70053         Remove forward decls; no longer needed now that we use prototypes.
70054         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70055         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70056         (clean_state_log_if_needed): Likewise.
70057
70058 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70059
70060         * config/srclist.txt: Add glibc bugs 1231-1233.
70061
70062 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70063
70064         Fix problems reported by Sam Steingold in
70065         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70066         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70067         assumed that reg_errcode_t is a signed type, which is not
70068         necessarily true if _XOPEN_SOURCE is not defined.
70069         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70070         since some compilers warn about it otherwise.
70071
70072 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70073
70074         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70075         (init_word_char, create_initial_state, duplicate_node_closure):
70076         (fetch_token, peek_token_bracket, build_range_exp):
70077         (build_collating_symbol): Remove forward decls; no longer needed
70078         now that we use prototypes.
70079
70080         * lib/regcomp.c:
70081         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70082         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70083         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70084         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70085         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70086         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70087         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70088         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70089         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70090         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70091         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70092         (build_charclass, build_charclass_op, fetch_number, create_tree):
70093         (create_token_tree, mark_opt_subexp, duplicate_tree):
70094         Use prototypes rather than old-style definitions.
70095
70096         * lib/regex_internal.c:
70097         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70098         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70099         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70100         (re_string_reconstruct, re_string_peek_byte_case):
70101         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70102         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70103         (re_node_set_init_copy, re_node_set_add_intersect):
70104         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70105         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70106         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70107         (re_acquire_state, re_acquire_state_context, register_state):
70108         (create_ci_newstate, create_cd_newstate, free_state):
70109         Likewise.
70110         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70111         re_search_2):
70112         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70113         (re_search_internal, prune_impossible_nodes):
70114         (acquire_init_state_context, check_matching, static):
70115         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70116         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70117         (update_regs, sift_states_backward, build_sifted_states):
70118         (clean_state_log_if_needed, merge_state_array):
70119         (update_cur_sifted_state, add_epsilon_src_nodes):
70120         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70121         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70122         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70123         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70124         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70125         (check_arrival, check_arrival_add_next_nodes):
70126         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70127         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70128         (check_node_accept_bytes, check_node_accept, extend_buffers):
70129         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70130         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70131         (sift_ctx_init):
70132         Likewise.
70133
70134         * lib/regex_internal.h:
70135         (re_string_allocate, re_string_construct, re_string_reconstruct):
70136         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70137         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70138         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70139         (re_string_context_at, re_string_peek_byte_case):
70140         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70141         is defined, since we now use prototypes always.
70142
70143         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70144         C89 or better.  All uses removed.
70145
70146 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70147
70148         * config/srclist.txt: Add glibc bugs 1220-1227.
70149
70150 2005-08-20  Jim Meyering  <jim@meyering.net>
70151
70152         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70153         of unused local, dfa.
70154
70155 2005-08-20  Bruno Haible  <bruno@clisp.org>
70156
70157         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70158
70159 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70160
70161         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70162         (re_node_set_insert_last, re_dfa_add_node):
70163         Rename local variables to avoid GCC shadowing warnings.
70164
70165 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70166
70167         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70168         [defined lint]: Suppress bogus uninitialized-variable warnings.
70169
70170         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70171         and let the caller return REG_ESPACE if out of space.  This
70172         removes an uninitialied-variable warning with GCC 4.0.1, and also
70173         avoids taking the address of a local variable.  All callers
70174         changed.
70175
70176 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70177
70178         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70179         $LIBCSRC/posix/regexec.c.
70180         Add glibc bug 1217 for regcomp.c.
70181
70182 2005-08-19  Jim Meyering  <jim@meyering.net>
70183
70184         * lib/regexec.c (proceed_next_node): Redo local variables to
70185         avoid GCC shadowing warnings.
70186
70187 2005-08-18  Bruno Haible  <bruno@clisp.org>
70188
70189         * lib/strstr.c (strstr): Fix return value in multibyte case.
70190         * lib/strcasestr.c (strcasestr): Likewise.
70191
70192 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70193
70194         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70195
70196 2005-08-17  Jim Meyering  <jim@meyering.net>
70197
70198         Make the %s format (seconds since the epoch) work for a negative
70199         number and when used with a zero-padded field width, e.g. %015s.
70200
70201         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70202         label so that it precedes the code to set `digits'.  Otherwise,
70203         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70204         print `00-22'.  Now, it prints `-0022', as it should.
70205
70206 2005-08-17  Bruno Haible  <bruno@clisp.org>
70207
70208         * modules/strstr (Files): Add m4/mbrtowc.m4.
70209         (Depends-on): Add mbuiter.
70210
70211 2005-08-17  Bruno Haible  <bruno@clisp.org>
70212
70213         * modules/strcasestr: New file.
70214         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70215         strcasestr.
70216
70217 2005-08-17  Bruno Haible  <bruno@clisp.org>
70218
70219         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70220
70221 2005-08-17  Bruno Haible  <bruno@clisp.org>
70222
70223         * modules/mbuiter: New file.
70224         * MODULES.html.sh (Extended multibyte and wide character utilities):
70225         Add mbuiter.
70226
70227 2005-08-17  Bruno Haible  <bruno@clisp.org>
70228
70229         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70230         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70231
70232 2005-08-17  Bruno Haible  <bruno@clisp.org>
70233
70234         * m4/strcasestr.m4: New file.
70235
70236 2005-08-17  Bruno Haible  <bruno@clisp.org>
70237
70238         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
70239         * lib/strstr.c: Completely rewritten, with multibyte locale support.
70240
70241 2005-08-17  Bruno Haible  <bruno@clisp.org>
70242
70243         * lib/strcasestr.h: New file.
70244         * lib/strcasestr.c: New file.
70245
70246 2005-08-17  Bruno Haible  <bruno@clisp.org>
70247
70248         * lib/strcasecmp.c: Use mbuiter.h.
70249
70250 2005-08-17  Bruno Haible  <bruno@clisp.org>
70251
70252         * lib/mbuiter.h: New file.
70253
70254 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70255
70256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
70257         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
70258         and gl_GETOPT are both invoked via different paths (as happens
70259         with GNU tar CVS because it uses both argp and getopt), the former
70260         wins.
70261
70262 2005-08-16  Bruno Haible  <bruno@clisp.org>
70263
70264         * modules/tls: New file.
70265         * MODULES.html.sh (Multithreading): Add tls.
70266
70267 2005-08-16  Bruno Haible  <bruno@clisp.org>
70268
70269         * modules/strnlen1: New file.
70270         * MODULES.html.sh (String handling): Add strnlen1.
70271
70272 2005-08-16  Bruno Haible  <bruno@clisp.org>
70273
70274         * modules/strcase (Files): Add m4/mbrtowc.m4.
70275         (Depends-on): Add strnlen1, mbchar.
70276
70277 2005-08-16  Bruno Haible  <bruno@clisp.org>
70278
70279         * modules/mbiter: New file.
70280         * MODULES.html.sh (Extended multibyte and wide character utilities):
70281         Add mbiter.
70282
70283 2005-08-16  Bruno Haible  <bruno@clisp.org>
70284
70285         * modules/mbfile: New file.
70286         * MODULES.html.sh (Extended multibyte and wide character utilities):
70287         Add mbfile.
70288
70289 2005-08-16  Bruno Haible  <bruno@clisp.org>
70290
70291         * modules/mbchar: New file.
70292         * MODULES.html.sh (Extended multibyte and wide character utilities):
70293         New section.
70294
70295 2005-08-16  Bruno Haible  <bruno@clisp.org>
70296
70297         * m4/tls.m4: New file, from GNU gettext.
70298
70299 2005-08-16  Bruno Haible  <bruno@clisp.org>
70300
70301         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
70302         always.
70303         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
70304
70305 2005-08-16  Bruno Haible  <bruno@clisp.org>
70306
70307         * m4/mbiter.m4: New file.
70308
70309 2005-08-16  Bruno Haible  <bruno@clisp.org>
70310
70311         * m4/mbfile.m4: New file.
70312
70313 2005-08-16  Bruno Haible  <bruno@clisp.org>
70314
70315         * m4/mbchar.m4: New file.
70316
70317 2005-08-16  Bruno Haible  <bruno@clisp.org>
70318
70319         * lib/tls.h: New file, from GNU gettext.
70320         * lib/tls.c: New file, from GNU gettext.
70321
70322 2005-08-16  Bruno Haible  <bruno@clisp.org>
70323
70324         * lib/strnlen1.h: New file.
70325         * lib/strnlen1.c: New file.
70326
70327 2005-08-16  Bruno Haible  <bruno@clisp.org>
70328
70329         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70330         (mbi_init): Update.
70331         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70332         NUL byte, not after it.
70333
70334 2005-08-16  Bruno Haible  <bruno@clisp.org>
70335
70336         * lib/strcase.h (strcasecmp): Add note in comments.
70337         * lib/strncasecmp.c: Use code from strcasecmp.c.
70338         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70339         (strcasecmp): Work correctly in multibyte locales.
70340
70341 2005-08-16  Bruno Haible  <bruno@clisp.org>
70342
70343         * lib/mbiter.h: New file.
70344
70345 2005-08-16  Bruno Haible  <bruno@clisp.org>
70346
70347         * lib/mbfile.h: New file.
70348
70349 2005-08-16  Bruno Haible  <bruno@clisp.org>
70350
70351         * lib/mbchar.h: New file.
70352         * lib/mbchar.c: New file.
70353
70354 2005-08-16  Bruno Haible  <bruno@clisp.org>
70355
70356         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70357         the valid ones. Makes the comparison operations transitive:
70358         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70359         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70360
70361 2005-08-15  Simon Josefsson  <jas@extundo.com>
70362
70363         * modules/ssize_t (License): Change to 'unlimited'.
70364
70365         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70366
70367 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70368
70369         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70370         Add comments for each pending glibc patch.
70371
70372 2005-08-15  Bruno Haible  <bruno@clisp.org>
70373
70374         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70375         __cplusplus is defined.
70376
70377 2005-08-14  Jim Meyering  <jim@meyering.net>
70378
70379         Sync from coreutils.
70380
70381         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70382         Use the hash-table-based cycle-detection code not just when
70383         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70384         Reported by James Youngman in
70385         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70386         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70387         FTS_TIGHT_CYCLE_CHECK.
70388         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70389         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70390         once again.
70391         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70392         * lib/fts.c (fd_safer): Remove decl.
70393         Include fcntl--.h rather than unistd-safer.h
70394         (fts_safe_changedir): Don't call fd_safer; no longer needed
70395         now that we include fcntl--.h.
70396
70397 2005-08-12  Simon Josefsson  <jas@extundo.com>
70398
70399         * modules/getndelim2: Use ssize_t module.
70400         * modules/getnline: Likewise.
70401         * modules/safe-read: Likewise.
70402         * modules/xreadlink: Likewise.
70403
70404         * modules/ssize_t: New file.
70405
70406 2005-08-12  Simon Josefsson  <jas@extundo.com>
70407
70408         * m4/readline.m4: Look for termcap, curses or ncurses if required.
70409
70410 2005-08-12  Simon Josefsson  <jas@extundo.com>
70411
70412         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70413         ssize_t.
70414
70415 2005-08-12  Simon Josefsson  <jas@extundo.com>
70416
70417         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
70418         readline, getdelim and check_version.
70419         (Support for systems lacking ISO C 99: Sizes of integer types):
70420         Add size_max.
70421
70422 2005-08-12  Bruno Haible  <bruno@clisp.org>
70423
70424         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
70425
70426 2005-08-11  Simon Josefsson  <jas@extundo.com>
70427
70428         * modules/readline: New file.
70429
70430         * modules/strnlen (Files): Add strnlen.h.
70431
70432 2005-08-11  Simon Josefsson  <jas@extundo.com>
70433
70434         * m4/readline.m4: New file.
70435
70436 2005-08-11  Simon Josefsson  <jas@extundo.com>
70437
70438         * lib/readline.h, readline.c: New file.
70439
70440 2005-08-11  Simon Josefsson  <jas@extundo.com>
70441
70442         * doc/gnulib.texi (Initial import, Finishing touches): Mention
70443         gl_AVOID.
70444
70445 2005-08-11  Bruno Haible  <bruno@clisp.org>
70446
70447         * lib/strnlen.h (strnlen): Change parameter name to match comment.
70448
70449 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
70450
70451         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
70452
70453 2005-08-10  Simon Josefsson  <jas@extundo.com>
70454
70455         * tests/test-iconvme.c: New file.
70456
70457 2005-08-10  Simon Josefsson  <jas@extundo.com>
70458
70459         * m4/strnlen.m4: New file.
70460
70461         * m4/strndup.m4: Don't check for strnlen declaration, done in
70462         strnlen.m4.
70463
70464 2005-08-10  Simon Josefsson  <jas@extundo.com>
70465
70466         * lib/strndup.c: Use strnlen.h.
70467
70468         * lib/strnlen.h: New file.
70469
70470 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70471
70472         * README: Typos.
70473
70474 2005-08-02  Simon Josefsson  <jas@extundo.com>
70475
70476         * modules/readline: New file.
70477
70478 2005-08-02  Simon Josefsson  <jas@extundo.com>
70479
70480         * modules/getdelim: New file.
70481
70482         * modules/getline: Rewrite, don't use getndelim2.
70483
70484 2005-08-02  Simon Josefsson  <jas@extundo.com>
70485
70486         * m4/getline.m4: Separate out getdelim stuff into separate module.
70487
70488         * m4/getdelim.m4: New file.
70489
70490 2005-08-02  Simon Josefsson  <jas@extundo.com>
70491
70492         * lib/getline.h, getline.c: Rewrite.
70493
70494         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
70495
70496 2005-07-31  Bruno Haible  <bruno@clisp.org>
70497
70498         * lib/lock.h (gl_lock_initializer): New macro.
70499         (gl_lock_define_initialized): Use it.
70500         (gl_rwlock_initializer): New macro.
70501         (gl_rwlock_define_initialized): Use it.
70502         (gl_recursive_lock_initializer): New macro.
70503         (gl_recursive_lock_define_initialized): Use it.
70504
70505 2005-07-30  Karl Berry  <karl@gnu.org>
70506
70507         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
70508         Report from Ben Pfaff, regarding getopt.
70509
70510 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
70511
70512         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
70513         normal way.
70514         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
70515         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
70516         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
70517         (gl_GETOPT): Use the new macros.  Most of the implementation
70518         is moved to the new macros.  This is for programs like Emacs
70519         that don't want all the functionality of gl_GETOPT.
70520
70521 2005-07-26  Bruno Haible  <bruno@clisp.org>
70522
70523         * m4/lock.m4: Update from GNU gettext.
70524
70525 2005-07-26  Bruno Haible  <bruno@clisp.org>
70526
70527         * lib/lock.h: Update from GNU gettext.
70528         * lib/lock.c: Update from GNU gettext.
70529
70530 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
70531
70532         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
70533         obsolescent AC_TRY_RUN.  Include the default includes files, for
70534         'exit'.
70535
70536 2005-07-24  Bruno Haible  <bruno@clisp.org>
70537
70538         * modules/visibility: New file.
70539         * MODULES.html.sh (Misc): Add visibility.
70540
70541 2005-07-24  Bruno Haible  <bruno@clisp.org>
70542
70543         * m4/visibility.m4: New file.
70544
70545 2005-07-24  Bruno Haible  <bruno@clisp.org>
70546
70547         * doc/visibility.texi: New file.
70548
70549 2005-07-22  Bruno Haible  <bruno@clisp.org>
70550
70551         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
70552         $(ALLOCA_H), redundant through BUILT_SOURCES.
70553         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
70554         redundant through BUILT_SOURCES.
70555         * modules/byteswap (Makefile.am): Remove explicit dependency on
70556         $(BYTESWAP_H), redundant through BUILT_SOURCES.
70557         * modules/fnmatch (Makefile.am): Remove explicit dependency on
70558         $(FNMATCH_H), redundant through BUILT_SOURCES.
70559         * modules/getopt (Makefile.am): Remove explicit dependency on
70560         $(GETOPT_H), redundant through BUILT_SOURCES.
70561         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
70562         redundant through BUILT_SOURCES.
70563         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
70564         redundant through BUILT_SOURCES.
70565         * modules/stdbool (Makefile.am): Remove explicit dependency on
70566         $(STDBOOL_H), redundant through BUILT_SOURCES.
70567         * modules/stdint (Makefile.am): Remove explicit dependency on
70568         $(STDINT_H), redundant through BUILT_SOURCES.
70569         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
70570         Remove explicit dependency on $(SYSEXITS_H).
70571         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
70572
70573 2005-07-18  Simon Josefsson  <jas@extundo.com>
70574
70575         * lib/check-version.c (check_version): Accept identical versions too.
70576
70577 2005-07-18  Bruno Haible  <bruno@clisp.org>
70578
70579         * modules/lock: New file.
70580         * MODULES.html.sh (Multithreading): New section.
70581
70582 2005-07-18  Bruno Haible  <bruno@clisp.org>
70583
70584         * m4/lock.m4: New file, from GNU gettext.
70585
70586 2005-07-18  Bruno Haible  <bruno@clisp.org>
70587
70588         * lib/lock.h: New file, from GNU gettext.
70589         * lib/lock.c: New file, from GNU gettext.
70590
70591 2005-07-18  Bruno Haible  <bruno@clisp.org>
70592
70593         * lib/lock.h (gl_once_t): New type.
70594         (gl_once_define, gl_once): New macros.
70595         * lib/lock.c (fresh_once): New variable.
70596         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
70597         functions.
70598
70599 2005-07-16  Simon Josefsson  <jas@extundo.com>
70600
70601         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
70602         workaround, suggested by Bruno.
70603
70604 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70605
70606         * modules/xalloc (Depends-on): Add xalloc-die.
70607         * modules/xvasprintf (Depends-on): Add xalloc-die.
70608
70609 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70610
70611         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
70612         with a minor change.
70613
70614 2005-07-15  Bruno Haible  <bruno@clisp.org>
70615
70616         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
70617         When using lib/poll.c, define poll as rpl_poll.
70618
70619 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
70620
70621         * modules/argp (Depends-on): Remove unlocked-io.
70622
70623 2005-07-14  Derek Price  <derek@ximbiot.com>
70624
70625         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
70626         for glob symlink bug.
70627
70628 2005-07-14  Bruno Haible  <bruno@clisp.org>
70629
70630         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
70631         Instead, test for *_unlocked function declarations directly.
70632
70633 2005-07-11  Simon Josefsson  <jas@extundo.com>
70634
70635         * modules/size_max: New file.
70636
70637         * modules/xsize: Depend on size_max module for size_max.m4.
70638
70639 2005-07-11  Simon Josefsson  <jas@extundo.com>
70640
70641         * lib/size_max.h: New file.
70642
70643 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
70644
70645         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
70646         copyright symbol and the year.
70647         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
70648         (version_etc_va): Use parameterized copyright notice.
70649         Reword to conform to the current GNU coding standards.
70650
70651 2005-07-11  Karl Berry  <karl@gnu.org>
70652
70653         * doc/gnulib.texi (Quoting): new node.
70654         (Initial import): more info, from Patrice.
70655
70656 2005-07-11  Bruno Haible  <bruno@clisp.org>
70657
70658         * gnulib-tool (func_usage): Document option --avoid.
70659         (Command line options): Handle --avoid.
70660         (func_acceptable): New function.
70661         (func_modules_transitive_closure): Use it.
70662
70663 2005-07-11  Bruno Haible  <bruno@clisp.org>
70664
70665         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
70666         Reported by Jim Meyering.
70667
70668 2005-07-10  Bruno Haible  <bruno@clisp.org>
70669
70670         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
70671         Needed when size_t is smaller than 'unsigned int'.
70672         Reported by Paul Eggert.
70673
70674 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70675
70676         * modules/argp (Depends-on): Add unlocked-io
70677
70678 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70679
70680         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
70681         block of defines.
70682
70683 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70684
70685         * config/srclist.txt: Comment out regcomp.c, since we have a porting
70686         fix now.
70687
70688 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
70689         and Paul Eggert  <eggert@cs.ucla.edu>
70690
70691         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
70692         in wint_t, not wchar_t.  Remove now-unnecessary cast.
70693
70694 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70695
70696         * modules/regex (Files): Add lib/regex_internal.c,
70697         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
70698         (Depends-on): Add extensions.
70699         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
70700
70701 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70702
70703         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
70704         pathconf.
70705         * m4/same.m4 (gl_SAME): Likewise.
70706         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
70707
70708         * m4/regex.m4: Adjust to new libc regex implementation.
70709         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
70710         all the .c and .h parts of (the new) regex.
70711         Quote the m4 stuff better.
70712         Check for RE_ICASE bug of old gnulib.
70713         Check for REG_STARTEND of recent libc.
70714         Rename local variables from jm_* to gl_*.
70715         Quote operand of "test -f".
70716         Say "recent enough" version of libc, not "version 2".
70717         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
70718         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
70719         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
70720         Remove check for btowc, isascii.
70721         Require AM_LANGINFO_CODESET.
70722
70723 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70724
70725         * lib/regex.c, regex.h: Sync from libc.
70726         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
70727         * lib/regexec.c:
70728         New files, synced from libc, except that regex_internal.h
70729         currently has a small porting fix.
70730
70731 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70732
70733         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
70734         regex_internal.c, regexec.c.
70735         Add regex_internal.h too, but as a comment, since the libc version
70736         is currently broken in gnulib mode.
70737
70738 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70739
70740         Support programs like Emacs that use gnulib but not gettext.
70741         * MODULES.html.sh (Internationalization functions): Add gettext-h.
70742         * modules/gettext-h: New file.
70743         * modules/gettext (Files): Remove lib/gettext.h.
70744         (Depends-on): Add gettext-h.
70745         (Makefile.am): Remove lib_SOURCES.
70746         * modules/argmatch, modules/c-stack, modules/closeout:
70747         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
70748         * modules/execute, modules/file-type, modules/getaddrinfo:
70749         * modules/getopt, modules/human, modules/javacomp:
70750         * modules/javaexec, modules/mkdir-p, modules/obstack:
70751         * modules/openat, modules/pagealign_alloc, modules/pipe:
70752         * modules/quotearg, modules/regex, modules/rpmatch:
70753         * modules/unicodeio, modules/userspec, modules/version-etc:
70754         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
70755         * modules/xsetenv:
70756         Depend on gettext-h, not gettext.
70757
70758 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70759
70760         * gnulib-tool (func_import): Add support for 'public domain' license.
70761         * modules/alloca, modules/atexit, modules/memmove:
70762         Now public domain, not GPL.
70763         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
70764         * modules/realloc, modules/strerror, modules/strtod:
70765         Now LGPL, not GPL.
70766
70767 2005-07-05  Bruno Haible  <bruno@clisp.org>
70768
70769         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
70770         autoconf CVS. Needed for mingw.
70771
70772 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70773
70774         Remove the dependency of the strftime module on the tzset module.
70775         * modules/strftime (Depends-on): Remove dependency on tzset.
70776
70777 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70778
70779         Remove the dependency of the strftime module on the tzset module.
70780         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
70781         gl_FUNC_TZSET_CLOBBER.
70782
70783 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70784
70785         Remove the dependency of the strftime module on the tzset module.
70786         * lib/strftime.c (my_strftime)
70787         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
70788         Copy the input structure, to work around some of the bug with
70789         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
70790         Solaris releases, you should also use the tzset module, but we won't
70791         require it as a dependency any more since we don't want LGPLed code
70792         to depend on GPLed code.
70793
70794 2005-07-02  Jim Meyering  <jim@meyering.net>
70795
70796         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
70797         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
70798         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
70799         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
70800
70801 2005-07-02  Jim Meyering  <jim@meyering.net>
70802
70803         * lib/backupfile.c (backup_args): Change a `0' to NULL.
70804
70805 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70806
70807         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
70808         declares only 'struct timespec;' (!).
70809
70810 2005-07-01  Jim Meyering  <jim@meyering.net>
70811
70812         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
70813         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
70814         * lib/save-cwd.c, tempname.c:
70815         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70816         and don't include <sys/file.h>).
70817
70818 2005-06-29  Jim Meyering  <jim@meyering.net>
70819
70820         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
70821         type name.  Use the variable name instead.
70822         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
70823         Likewise.
70824
70825 2005-06-28  Simon Josefsson  <jas@extundo.com>
70826
70827         * modules/check-version (Files): Add check-version.m4.
70828
70829 2005-06-28  Simon Josefsson  <jas@extundo.com>
70830
70831         * m4/check-version.m4: New file, suggested by Jim Meyering
70832         <jim@meyering.net>.
70833
70834 2005-06-28  Simon Josefsson  <jas@extundo.com>
70835
70836         * lib/check-version.h, lib/check-version.c: New files.
70837
70838 2005-06-28  Simon Josefsson  <jas@extundo.com>
70839
70840         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
70841         collision with global variable.  Better indentation.  Don't
70842         increment buffer pointer beyond buffer end.  Based on comments
70843         from Paul Eggert <eggert@cs.ucla.edu>.
70844
70845         * lib/base64.h: Indent.
70846
70847 2005-06-28  Simon Josefsson  <jas@extundo.com>
70848
70849         * doc/gnulib.texi (Library version handling): New section.
70850
70851 2005-06-28  Jim Meyering  <jim@meyering.net>
70852
70853         * check-module (find_included_lib_files): Hard-code another
70854         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
70855         but modules/fts-lgpl (correctly) does not list those files.
70856
70857         * modules/canonicalize (Files): Add lib/pathmax.h.
70858
70859 2005-06-25  Simon Josefsson  <jas@extundo.com>
70860
70861         * modules/check-version: New file.
70862
70863 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
70864
70865         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
70866         initializer of struct addrinfo, as an indication that we don't
70867         care how many members the structure has.
70868
70869 2005-06-24  Derek Price  <derek@ximbiot.com>
70870         and Bruno Haible  <bruno@clisp.org>
70871
70872         Remove stat module & update lstat.
70873         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
70874         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70875         * m4/stat.m4: Remove this file.
70876
70877 2005-06-24  Derek Price  <derek@ximbiot.com>
70878         and Bruno Haible  <bruno@clisp.org>
70879
70880         Remove stat module & update lstat.
70881         * lib/stat.c: Remove this file...
70882         (slash_aware_lstat): ...moving this content and its support...
70883         * lib/lstat.c (rpl_lstat): ...into here.
70884         * lib/lstat.h: New file.
70885
70886 2005-06-24  Derek Price  <derek@ximbiot.com>
70887         and Bruno Haible  <bruno@clisp.org>
70888
70889         Remove stat module & update lstat.
70890         * config/srclist.txt (libc sources): Remove stat.
70891
70892 2005-06-24  Derek Price  <derek@ximbiot.com>
70893         and Bruno Haible  <bruno@clisp.org>
70894
70895         Remove stat module & update lstat.
70896         * MODULES.html.sh (stat): Remove.
70897         * MODULES.html: Regenerated.
70898         * modules/lstat (Description): Correct function name.
70899         (Files): Add "lstat.h".
70900         (Depends-on): Remove stat, add xalloc, stat-macros.
70901         * modules/stat: Remove this file.
70902         (Include): Add "lstat.h", remove <sys/stat.h>.
70903
70904 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
70905
70906         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
70907         (ranged_convert): Don't save conversion in a temporary struct.
70908         This causes a warning with GCC 4.0.0, and anyway in the typical
70909         case it's not worth the extra 100 bytes or so of code.
70910         (ranged_convert, __mktime_internal): When calling a function via a
70911         pointer P, use P () rather than (*P) (), as we now assume C89 or
70912         better.
70913
70914 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70915
70916         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
70917         "who -r" failed to give output.  Problem reported by Tim Waugh.
70918
70919         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
70920         (xcalloc): Use it to avoid needless tests.
70921         Problem reported by Jim Meyering.
70922
70923 2005-06-20  Derek Price  <derek@ximbiot.com>
70924
70925         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
70926         unnecessary for Autoconfs > 2.59c.
70927
70928 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70929
70930         * lib/argp.h (__option_is_short): Check upper limit of
70931         __key. Isprint() requires its argument to have the value
70932         of an unsigned char or EOF.
70933
70934 2005-06-16  Jim Meyering  <jim@meyering.net>
70935
70936         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
70937         when either N or S is zero.
70938
70939 2005-06-16  Derek Price  <derek@ximbiot.com>
70940
70941         * m4/bison.m4: Declare YACC & YFLAGS precious.
70942
70943 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
70944
70945         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
70946         multibyte string or pattern, fall back on unibyte matching.
70947         Problem reported by James Youngman.
70948
70949 2005-06-08  Bruno Haible  <bruno@clisp.org>
70950
70951         * modules/csharpcomp: New file.
70952         * MODULES.html.sh (C#): Add csharpcomp.
70953
70954 2005-06-08  Bruno Haible  <bruno@clisp.org>
70955
70956         * m4/csharpcomp.m4: New file, from GNU gettext.
70957
70958 2005-06-08  Bruno Haible  <bruno@clisp.org>
70959
70960         * lib/csharpcomp.h: New file, from GNU gettext.
70961         * lib/csharpcomp.c: New file, from GNU gettext.
70962         * lib/csharpcomp.sh.in: New file, from GNU gettext.
70963
70964 2005-06-08  Bruno Haible  <bruno@clisp.org>
70965
70966         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
70967         warning on mingw.
70968
70969 2005-06-07  Derek Price  <derek@ximbiot.com>
70970
70971         Sync from CVS.
70972         * lib/glob_.h: Indent nested #ifdef.
70973
70974 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70975
70976         Sync from coreutils.
70977         Use "file name" when talking about file names, instead of "filename"
70978         or "path", as per the GNU coding standards.
70979         * lib/mkdir-p.c: Renamed from makepath.c.
70980         (make_dir_parents): Renamed from make_path.  All callers changed.
70981         * lib/mkdir-p.h: Likewise.  All includers changed.
70982         * lib/filenamecat.c: Renamed from path-concat.c.
70983         (file_name_concat): Renamed from path_concat.  All callers changed.
70984         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
70985         * lib/filenamecat.h: Likewise.  All includers changed.
70986         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
70987         in comments or local variable names.
70988         * lib/basename.c: Likewise.
70989         * lib/canonicalize.c, canonicalize.h: Likewise.
70990         * lib/dirname.c, dirname.h: Likewise.
70991         * lib/euidaccess.c: Likewise.
70992         * lib/exclude.c: Likewise
70993         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
70994         * lib/fsusage.c, fsuage.h: Likewise.
70995         * lib/fts.c, fts_.h: Likewise.
70996         * lib/getcwd.c: Likewise.
70997         * lib/getloadavg.c: Likewise.
70998         * lib/mkstemp.c: Likewise.
70999         * lib/mountlist.c, mountlist.h: Likewise.
71000         * lib/openat.c, openat.h: Likewise.
71001         * lib/readlink-stub.c: Likewise.
71002         * lib/readutmp.c, readutmp.h: Likewise.
71003         * lib/rename.c: Likewise.
71004         * lib/rmdir.c: Likewise.
71005         * lib/same.c: Likewise.
71006         * lib/savedir.c: Likewise.
71007         * lib/stripslash.c: Likewise.
71008         * lib/tempname.c: Likewise.
71009         * lib/xreadlink.c: Likewise.
71010         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
71011         All uses changed.
71012         * lib/exclude.h: Likewise.
71013
71014         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
71015         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71016         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
71017         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71018         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71019         files have been getting away with it for years (MORE/BSD 4.3
71020         is extinct now).
71021         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71022         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71023
71024         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71025         Define to 256, not 255, as per modern POSIX.
71026
71027 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71028
71029         Sync from coreutils.
71030         Use "file name" when talking about file names, instead of "filename"
71031         or "path", as per the GNU coding standards.
71032         * MODULES.html.sh: mkdir-p renamed from makepath.
71033         filenamecat renamed from path-concat.
71034         * modules/filenamecat: Renamed from modules/path-concat.
71035         (Files): filenamecat.h and filenamecat.c renamed from
71036         path-concat.h and path-concat.c.
71037         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71038         (Include): filenamecat.h, not path-concat.h.
71039         * modules/mkdir-p: Renamed from modules/makepath.
71040         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71041         makepath.c.
71042         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71043         (Include): mkdir-p.h, not makepath.h.
71044
71045 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71046
71047         Sync from coreutils.
71048         * m4/mkdir-p.m4: Renamed from makepath.m4.
71049         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71050         Rename files from makepath.c to mkdir-p.c, and from
71051         makepath.h to mkdir-p.h.
71052         * m4/filenamecat.m4: Renamed from path-concat.m4.
71053         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71054         Rename files from path-concat.c to filenamecat.c,
71055         and from path-concat.h to filenamecat.h.
71056         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71057         "file name" in local variables or comments.
71058         * m4/rename.m4: Likewise.
71059
71060 2005-06-01  Bruno Haible  <bruno@clisp.org>
71061
71062         * modules/csharpexec: New file.
71063         * MODULES.html.sh (C#): New section.
71064
71065 2005-06-01  Bruno Haible  <bruno@clisp.org>
71066
71067         * m4/csharp.m4: New file, from GNU gettext.
71068         * m4/csharpexec.m4: New file, from GNU gettext.
71069
71070 2005-06-01  Bruno Haible  <bruno@clisp.org>
71071
71072         * lib/csharpexec.h: New file, from GNU gettext.
71073         * lib/csharpexec.c: New file, from GNU gettext.
71074         * lib/csharpexec.sh.in: New file, from GNU gettext.
71075
71076 2005-05-31  Derek Price  <derek@ximbiot.com>
71077             Paul Eggert  <eggert@cs.ucla.edu>
71078
71079         Sync from cvs.
71080         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71081
71082 2005-05-31  Derek Price  <derek@ximbiot.com>
71083             Paul Eggert  <eggert@cs.ucla.edu>
71084
71085         Sync from cvs.
71086         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71087
71088 2005-05-29  Derek Price  <derek@ximbiot.com>
71089
71090         * config/srclist.txt (glob_.h, glob.c): Add these files.
71091
71092 2005-05-29  Derek Price  <derek@ximbiot.com>
71093
71094         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71095         * modules/glob: New file.
71096         * modules/getlogin_r: Add link to POSIX spec in description.
71097
71098 2005-05-29  Derek Price  <derek@ximbiot.com>
71099             Paul Eggert  <eggert@cs.ucla.edu>
71100
71101         * m4/glob.m4: New file.
71102
71103 2005-05-29  Derek Price  <derek@ximbiot.com>
71104             Paul Eggert  <eggert@cs.ucla.edu>
71105
71106         * lib/glob_.h, lib/glob.c: New files.
71107
71108 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71109
71110         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71111         * modules/fts-lgpl (Depends-on): Remove gettext.
71112
71113 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71114
71115         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71116         and don't require gt_INTTYPES_PRI.
71117
71118 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71119
71120         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71121
71122         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71123         the configuration hassle isn't worth it.
71124         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71125         (LONGEST_MODIFIER, PRIuMAX): Remove.
71126
71127 2005-05-27  Bruno Haible  <bruno@clisp.org>
71128
71129         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71130
71131 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71132
71133         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71134         _POSIX_PTHREAD_SEMANTICS for Solaris.
71135
71136 2005-05-25  Derek Price  <derek@ximbiot.com>
71137
71138         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71139
71140 2005-05-25  Derek Price  <derek@ximbiot.com>
71141             Paul Eggert  <eggert@cs.ucla.edu>
71142
71143         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71144         * lib/getlogin_r.c, getlogin_r.h: New files.
71145
71146 2005-05-25  Bruno Haible  <bruno@clisp.org>
71147             Derek Price  <derek@ximbiot.com>
71148
71149         * lib/getlogin_r.h: Simplify API documentation.
71150
71151 2005-05-23  Derek Price  <derek@ximbiot.com>
71152
71153         * modules/minmax (Files): Add m4/minmax.m4.
71154         (configure.ac): Add gl_MINMAX.
71155
71156 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71157
71158         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71159         so that unistd-safer.h (GPL'ed code) need not be included.
71160
71161 2005-05-22  Bruno Haible  <bruno@clisp.org>
71162
71163         * m4/minmax.m4: New file.
71164         Based on a patch by Derek Price <derek@ximbiot.com>.
71165
71166 2005-05-22  Bruno Haible  <bruno@clisp.org>
71167
71168         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71169         (INT64_MIN): Fix definition.
71170         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71171
71172         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71173         NEED_SIGNED_INT_TYPES.
71174
71175         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71176         HAVE_SYSTEM_INTTYPES.
71177
71178 2005-05-22  Bruno Haible  <bruno@clisp.org>
71179
71180         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71181         Also include <sys/param.h> if it defines MIN, MAX.
71182         Based on a patch by Derek Price <derek@ximbiot.com>.
71183
71184 2005-05-21  Jim Meyering  <jim@meyering.net>
71185
71186         * modules/fts (Files): Add m4/inttypes-pri.m4.
71187         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71188
71189 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71190
71191         New fts module.
71192         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71193         (setup_dir, free_dir): New functions.
71194         (enter_dir, leave_dir): Define trivial
71195         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71196         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71197         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71198         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71199         Move to fts-cycle.c.
71200         (fts_open): Use setup_dir.
71201         (fts_close): Use free_dir.
71202         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71203         This adds a label and some gotos, but the alternatives were messier.
71204         Check for memory allocation failure when entering a dir.
71205         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71206         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71207         (FTS): New member fts_cycle, that is a union that contains the
71208         old active_dir_ht and cycle_state.  All uses changed to mention
71209         fts_cycle.ht and fts_cycle.state.
71210         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71211         fts.c, with the following changes:
71212         (setup_dir, free_dir): New functions.
71213         (enter_dir): Now returns bool.  Return true if successful, false
71214         if memory exhausted.  All callers changed.
71215         Do not bother partly cleaning up on
71216         memory allocation failure; that is free_dir's job.
71217         However, free ad if hash_insert fails, to avoid memory leak.
71218         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71219         fts->fts_options to see which union member to use.
71220
71221 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71222
71223         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71224         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71225
71226 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71227
71228         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71229
71230 2005-05-20  Jim Meyering  <jim@meyering.net>
71231
71232         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71233         Now a macro, to pacify GCC.
71234
71235 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71236
71237         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
71238         of -1.
71239
71240 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71241
71242         * lib/chown.c (rpl_chown): Return -1 on failure.
71243
71244 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71245
71246         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
71247         Don't check for stddef.h.
71248         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
71249         don't use its results.
71250         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
71251         since we include them unconditionally.  Don't require
71252         AM_STDBOOL_H, since stdbool is a prerequisite.
71253         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
71254         since we assume C89 or better.
71255         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
71256         as we don't use their results.
71257         Don't check for fchdir, memmove, memset, strrchr, as we use
71258         them unconditionally.
71259         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
71260         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
71261
71262 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71263
71264         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
71265         Include <stddef.h> unconditionally, since we assume C89 now.
71266         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
71267         * lib/fts.c: Include fts_.h first, to check interface.
71268         Do not include intprops.h; no longer needed.
71269         Include cycle-check.h and hash.h, since fts_.h no longer does.
71270         Remove unnecessary casts of closedir to void.
71271         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
71272         decide whether to decrement nlinks.
71273         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
71274         (FTS): Use struct hash_table * instead of Hash_table, so that
71275         we no longer need to include hash.h here.
71276
71277 2005-05-18  Jim Meyering  <jim@meyering.net>
71278
71279         * modules/dirfd (License): Change to LGPL.  Most of the code
71280         is already in the public domain.
71281
71282 2005-05-18  Jim Meyering  <jim@meyering.net>
71283
71284         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
71285         Reported by Yoann Vandoorselaere.
71286
71287 2005-05-17  Jim Meyering  <jim@meyering.net>
71288
71289         * m4/fts.m4: New file, from coreutils.
71290
71291 2005-05-17  Jim Meyering  <jim@meyering.net>
71292
71293         * lib/fts.c, lib/fts_.h: New files, from coreutils.
71294
71295 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71296
71297         Sync from coreutils.
71298         * m4/unlinkdir.m4: New file.
71299
71300 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71301
71302         Sync from coreutils.
71303         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
71304         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
71305         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
71306         White space changes only.
71307         * lib/makepath.c (make_path): Port to hosts where leading "//" is
71308         special.
71309         * lib/yesno.c: Include getline.h, not ctype.h.
71310         (yesno): Don't remove leading white space; POSIX doesn't allow it.
71311         Use getline to remove arbitrary restriction on response length.
71312
71313 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71314
71315         * config/srclist-update: Spell out "Street" in FSF postal
71316         mail address; this is the style the FSF seems to prefer.
71317
71318         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
71319         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
71320         this updates FSF postal mail address.
71321
71322         Sync from coreutils.
71323         * modules/unlinkdir: New file.
71324         * modules/yesno (Depends-on): Add getline.
71325         * MODULES.html.sh (File system functions): Add unlinkdir.
71326
71327 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71328
71329         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71330         lib/strsep.h:
71331         Change the initial comment to refer to GPL, not LGPL.
71332         gnulib-tool will change it to LGPL as needed.
71333
71334         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71335         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71336         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71337         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71338         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71339         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71340         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71341         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71342         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71343         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71344         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71345         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71346         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71347         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71348         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71349         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71350         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71351         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71352         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71353         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71354         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71355         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71356         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71357         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71358         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71359         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71360         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71361         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71362         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71363         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71364         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71365         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71366         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71367         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71368         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71369         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71370         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71371         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71372         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71373         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71374         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71375         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71376         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71377         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71378         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71379         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71380         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71381         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71382         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71383         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71384         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71385         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71386         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71387         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71388         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71389         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71390         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71391         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71392         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71393         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71394         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71395         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71396         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71397         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71398         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71399         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71400         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71401         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
71402         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
71403         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
71404         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
71405         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
71406         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
71407         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
71408         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
71409         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
71410         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
71411         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
71412         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
71413         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
71414         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
71415         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
71416         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
71417         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
71418         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
71419         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
71420         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
71421         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
71422         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
71423         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
71424         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
71425         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
71426         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
71427         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
71428         lib/yesno.c, lib/yesno.h:
71429         Update FSF postal mail address.
71430
71431 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71432
71433         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
71434         tests/test-memmem.c, tests/test-stpncpy.c:
71435         Update FSF postal mail address.
71436
71437 2005-05-13  Bruno Haible  <bruno@clisp.org>
71438
71439         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
71440         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
71441         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
71442         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
71443         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
71444         Add support for 64-bit integers in the MSVC compiler.
71445
71446 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71447
71448         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
71449
71450 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
71451
71452         * gnulib-tool (func_import): Sort and uniquify recommended includes.
71453
71454 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
71455
71456         * doc/getdate.texi (General date syntax): Don't say that date
71457         date --iso-8601=ns generates acceptable dates; it doesn't yet.
71458         Problem reported by Nic Ferrier.
71459
71460 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71461
71462         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
71463         specified in ai_socktype. Fix invalid ai_protocol
71464         check. ai_protocol is usually set to 0 or depending on
71465         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
71466         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
71467         ai_socktype / ai_protocol in the returned addrinfo structure.
71468
71469 2005-05-10  Simon Josefsson  <jas@extundo.com>
71470
71471         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
71472         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71473
71474 2005-05-10  Karl Berry  <karl@gnu.org>
71475
71476         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
71477         (from http://www.gnu.org/licenses).
71478         * doc/COPYING.LIB: also rename to COPYING.LESSER.
71479         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
71480         fdl.texi suffices.
71481
71482 2005-05-10  Karl Berry  <karl@gnu.org>
71483
71484         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
71485         (COPYING.DOC): remove.
71486
71487         * config/srclist-update: new FSF address.
71488
71489 2005-05-10  Derek Price  <derek@ximbiot.com>
71490
71491         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
71492         possible.
71493
71494 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71495             Bruno Haible  <bruno@clisp.org>
71496
71497         * modules/inet_ntop: New file.
71498         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71499         inet_ntop.
71500
71501 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71502             Bruno Haible  <bruno@clisp.org>
71503
71504         * m4/inet_ntop.m4: New file.
71505
71506 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71507             Bruno Haible  <bruno@clisp.org>
71508
71509         * lib/inet_ntop.h: New file.
71510         * lib/inet_ntop.c: New file, from glibc with modifications.
71511
71512 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
71513
71514         * modules/time_r (License): Change to LGPL.
71515         * modules/extensions (License): Change to LGPL.  Actually,
71516         the license is more permissive than that, but currently gnulib-tool
71517         doesn't know how to handle more-permissive licenses.
71518
71519         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
71520         Problem reported by Dave Love.
71521
71522 2005-05-08  Jim Meyering  <jim@meyering.net>
71523
71524         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
71525         blank.
71526
71527 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71528
71529         * modules/argmatch (Depends-on): Add stdbool.
71530         * modules/backupfile (Depends-on): Likewise.
71531         * modules/chdir-long (Depends-on): Likewise.
71532         * modules/closeout (Depends-on): Likewise.
71533         * modules/cycle-check (Depends-on): Likewise.
71534         * modules/dirname (Depends-on): Likewise.
71535         * modules/fnmatch (Depends-on): Likewise.
71536         * modules/fsusage (Depends-on): Likewise.
71537         * modules/fwriteerror (Depends-on): Likewise.
71538         * modules/getcwd (Depends-on): Likewise.
71539         * modules/getloadavg (Depends-on): Likewise.
71540         * modules/hard-locale (Depends-on): Likewise.
71541         * modules/makepath (Depends-on): Likewise.
71542         * modules/mountlist (Depends-on): Likewise.
71543         * modules/nanosleep (Depends-on): Likewise.
71544         * modules/posixtm (Depends-on): Likewise.
71545         * modules/quotearg (Depends-on): Likewise.
71546         * modules/readtokens (Depends-on): Likewise.
71547         * modules/readtokens0 (Depends-on): Likewise.
71548         * modules/readutmp (Depends-on): Likewise.
71549         * modules/save-cwd (Depends-on): Likewise.
71550         * modules/strftime (Depends-on): Likewise.
71551         * modules/userspec (Depends-on): Likewise.
71552         * modules/utimecmp (Depends-on): Likewise.
71553         * modules/xgetcwd (Depends-on): Likewise.
71554         * modules/xnanosleep (Depends-on): Likewise.
71555         * modules/xstrtod (Depends-on): Likewise.
71556         * modules/yesno (Depends-on): Likewise.
71557
71558 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
71559
71560         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
71561         needless checks.
71562
71563 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71564
71565         Merge from coreutils.  Among other things,
71566         add bulletproofing for cases where stdin, stdout, or stderr are closed.
71567         * lib/fd-safer.c: New file.
71568         * lib/fcntl-safer.h, open-safer.c: Remove.
71569         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
71570         * lib/dup-safer.c: Include unistd-safer.h first.
71571         Don't include errno.h.
71572         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
71573         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
71574         * lib/file-type.c: Rely on file-type.h change.
71575         * lib/getloadavg.c: Include unistd-safer.h.
71576         (getloadavg): Use safer open.
71577         * lib/getusershell.c: Include "stdio-safer.h".
71578         (getusershell): Use safer fopen.
71579         * lib/long-options.c (long_options): Use NULL rather than 0.
71580         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
71581         'free'.
71582         * lib/modechange.c: Likewise.
71583         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
71584         (MODE_DONE): New constant.
71585         (struct mode_change): Remove 'next' member.
71586         (make_node_op_equals): New function; like the old one of the
71587         same name, except it allocates an array.
71588         (mode_compile, mode_create_from_ref): Use it.
71589         (mode_compile): Allocate result as an array, not a linked list.
71590         Parse octal string ourself, so that we catch mistakes like "+0".
71591         (mode_adjust): Arg is an array, not a linked list.
71592         * lib/modechange.c: Include stat-macros.h, xalloc.h.
71593         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
71594         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
71595         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
71596         Remove.  This is now stat-macros.h's job.
71597         (talloc): Remove.  All callers replaced by xalloc, so that
71598         our invokers don't have to worry about reporting memory failures.
71599         (make_node_op_equals): Remove.
71600         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71601         New constants.
71602         (struct mode_change): Moved here from modechange.h.
71603         (mode_append_entry): Remove.
71604         (mode_compile): Remove MASKED_OPS arg, since it encouraged
71605         apps to have incorrect behavior.  Use simpler algorithm for head
71606         and tail.  Don't futz with umask; that's now the job of mode_adjust.
71607         Detect more invalid usages rather than having somewhat-random behavior.
71608         Don't insert an "a=" action, as that leads to incorrect behavior.
71609         (mode_compile, mode_create_from_ref): Return NULL on error instead
71610         of an enum, since now there's only one way to have an error.  All
71611         callers changed.
71612         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
71613         at the correct time.  Simplify calculation of "+u" and its ilk.
71614         Don't mishandle "+X".
71615         (mode_free): Remove "register" and localize decls.
71616         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71617         (struct mode_change): Move to modechange.c; callers don't
71618         need to see this stuff.
71619         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
71620         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
71621         (mode_change, mode_adjust): Reflect the new signatures noted above.
71622         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
71623         that might redefine system include files.
71624         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
71625         (my_usleep): Use NULL rather than (void *) 0.
71626         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
71627         Use siginterrupt to specify that system calls should be interrupted.
71628         (rpl_nanosleep): Move initialization of suspended closer to call of
71629         my_usleep.
71630         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
71631         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
71632         (desirable_utmp_entry): New function.
71633         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
71634         using x2nrealloc, to simplify logic.
71635         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
71636         size calculation.  Do not assume utmp file is a regular file.
71637         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
71638         (READ_UTMP_CHECK_PIDS): New constant.
71639         * lib/save-cwd.c: Include unistd-safer.h.
71640         (save_cwd): Use fd_safer.
71641         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
71642         [!_LIBC] Include "stat-macros.h" instead.
71643         * lib/unistd-safer.h (fd_safer): New decl.
71644
71645 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71646
71647         * modules/getloadavg (Depends-on): Add unistd-safer.
71648         * modules/getusershell (Depends-on): Add stdio-safer.
71649         * modules/lstat (Depends-on): Remove xalloc.
71650         * modules/mkstemp (Depends-on): Add stat-macros.
71651         * modules/modechange (Depends-on): Remove xstrtol.
71652         Add stat-macros, xalloc.
71653         * modules/save-cwd (Depends-on): Add unistd-safer.
71654         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
71655         * modules/unistd-safer (Files): Add lib/fd-safer.c
71656         (Makefile.am): Remove lib_SOURCES.
71657
71658         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
71659         Remove fcntl-safer; unistd-safer supersedes it.
71660
71661 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71662
71663         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
71664         AC_HEADER_STAT.
71665         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
71666         (gl_PREREQ_CHOWN): Remove.
71667         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
71668         it.  Don't require AC_HEADER_STAT.
71669         (gl_PREREQ_LSTAT): Remove.
71670         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
71671         Don't require AC_HEADER_STAT.
71672         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
71673         (gl_PREREQ_RMDIR): Remove.
71674         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
71675         mention stat-macros.h or AC_HEADER_STAT, since we'll make
71676         the stat-macros module a prerequisite.
71677         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
71678         * m4/filemode.m4 (gl_FILEMODE): Likewise.
71679         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
71680         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
71681         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
71682         variable names.
71683         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
71684         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
71685         variable prefixes.
71686         * m4/fcntl-safer.m4: Remove.
71687         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
71688         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
71689         Invoke gl_PREREQ_FD_SAFER.
71690         (gl_PREREQ_FD_SAFER): New macro.
71691         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
71692         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
71693         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
71694         Remove duplicate call to AC_LIBOBJ(readutmp).
71695         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
71696
71697         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
71698         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
71699
71700 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71701
71702         * MODULES.html.sh (Misc): Add byteswap.
71703
71704 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71705
71706         * modules/getcwd (Depends-on): Add extensions.
71707         * modules/openat (Depends-on): Likewise.
71708
71709 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71710
71711         * modules/byteswap: New file.
71712
71713 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71714
71715         * m4/byteswap.m4: New file.
71716
71717 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71718
71719         * lib/byteswap_.h: New file.
71720
71721 2005-04-25  Karl Berry  <karl@gnu.org>
71722
71723         * m4/gettext.m4: Update from GNU gettext 0.14.4.
71724
71725 2005-04-25  Albert Chin  <china@thewrittenword.com>
71726
71727         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
71728         Toolkit C bug.
71729
71730 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
71731
71732         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
71733         (func_ln_if_changed): Remove forcibly for no error message
71734         in case file does not exist.
71735
71736 2005-04-19  Simon Josefsson  <jas@extundo.com>
71737
71738         * gnulib-tool (Options): Make --symlink mean --symbolic.
71739
71740 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
71741
71742         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
71743
71744 2005-04-16  Simon Josefsson  <jas@extundo.com>
71745
71746         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
71747
71748 2005-04-15  Simon Josefsson  <jas@extundo.com>
71749
71750         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
71751
71752 2005-04-15  Simon Josefsson  <jas@extundo.com>
71753
71754         * gnulib-tool: Rename --symlink to --symbolic.
71755
71756 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
71757
71758         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
71759         symbolic links to files instead of copying/moving.  Add --aux-dir,
71760         specifying directory relative --dir where auxiliary build tools
71761         are placed.
71762
71763 2005-04-14  Bruno Haible  <bruno@clisp.org>
71764
71765         * modules/allocsa (License): Change to LGPL.
71766         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71767
71768 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71769
71770         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
71771         that "UTC +1 second" continues to work.  Problem reported
71772         by Dmitry V. Levin.
71773         (relunit_snumber): New rule.
71774         (relunit): Use it.
71775
71776 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71777
71778         * lib/getdate.y (universal_time_zone_table): New constant.
71779         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
71780         universal_time_zone_table.
71781         (lookup_zone): Prefer universal_time_zone_table to
71782         local_time_zone_table, so that "GMT" time stamps are allowed in
71783         London during the summer.  Problem reported by Ian Abbott.
71784
71785 2005-04-12  Jim Meyering  <jim@meyering.net>
71786
71787         * lib/human.c (humblock): Set *options even when returning due to
71788         xstrtoumax conversion failure.  Thanks to a used-uninitialized
71789         warning from gcc-4.
71790
71791 2005-04-09  Jim Meyering  <jim@meyering.net>
71792
71793         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
71794         -Wuninitialized: initialize tm0.tm_year.
71795
71796 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71797
71798         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
71799         count, since there's no maximum.  All uses changed.
71800         Add member dsts_seen.
71801         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
71802         not being INT_MAX.
71803         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
71804         Use pc_rels_seen to decide whther a date is absolute.
71805
71806         * lib/getdate.y (number): Don't overwrite year.
71807         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
71808         check.
71809
71810 2005-04-02  Simon Josefsson  <jas@extundo.com>
71811
71812         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
71813         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
71814
71815 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
71816
71817         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
71818         where no absolute path name can be longer than PATH_MAX.
71819
71820 2005-03-27  Jim Meyering  <jim@meyering.net>
71821
71822         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
71823
71824 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
71825
71826         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
71827         "one's complement" -> "ones' complement" in comment, as per Knuth.
71828         "value of type" -> "type or expression" in comment.
71829         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
71830
71831 2005-03-26  Jim Meyering  <jim@meyering.net>
71832
71833         Comment nits.
71834         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
71835         Correct typos: s/or/of/.
71836
71837 2005-03-26  Jim Meyering  <jim@meyering.net>
71838
71839         * modules/check-include-files: Move to ../ and rename to...
71840         * check-module: ...this.
71841
71842 2005-03-25  Jim Meyering  <jim@meyering.net>
71843
71844         * modules/xvasprintf (Files): Add xalloc.h.
71845
71846 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71847
71848         * modules/gettext (Files): config/config.rpath ->
71849         build-aux/config.rpath
71850         * modules/iconv (Files): Likewise.
71851         Problem reported by Oskar Liljeblad.
71852
71853 2005-03-23  Jim Meyering  <jim@meyering.net>
71854
71855         * modules/check-include-files: New script to check for
71856         missing dependencies, multiple includes, etc.
71857
71858         * modules/c-strtold (Depends-on): Add xalloc.
71859         * modules/c-strtod (Depends-on): Add xalloc.
71860         * modules/hash (Depends-on): Add xalloc.
71861         (Files): Remove lib/xalloc.h.
71862
71863         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
71864         * modules/userspec (Files): Add lib/inttostr.h.
71865
71866 2005-03-23  Jim Meyering  <jim@meyering.net>
71867
71868         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
71869
71870 2005-03-22  Jim Meyering  <jim@meyering.net>
71871
71872         * modules/stat-macros: New module.
71873         * modules/canonicalize, modules/euidaccess, modules/file-type,
71874         * modules/filemode, modules/lchown, modules/makepath,
71875         * modules/rmdir, modules/stat: Depend on new stat-macros module
71876         rather than listing lib/stat-macros.h manually.
71877         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
71878
71879 2005-03-22  Jim Meyering  <jim@meyering.net>
71880
71881         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
71882
71883 2005-03-22  Bruno Haible  <bruno@clisp.org>
71884
71885         * config/srclist.txt: Replace target directory 'config' with
71886         'build-aux'.
71887         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
71888         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
71889         ../build-aux/.
71890
71891 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
71892
71893         * modules/chdir-long (Depends-on): Add mempcpy.
71894
71895         * modules/acl, modules/backupfile, modules/c-strtod,
71896         modules/c-strtold, modules/canon-host, modules/canonicalize,
71897         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
71898         modules/exclude, modules/exitfail, modules/file-type,
71899         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
71900         modules/getdate, modules/getline, modules/getpagesize,
71901         modules/getpass, modules/getugroups, modules/group-member,
71902         modules/hard-locale, modules/hash, modules/human, modules/idcache,
71903         modules/inttostr, modules/long-options, modules/makepath,
71904         modules/md5, modules/memcasecmp, modules/memcoll,
71905         modules/modechange, modules/mountlist, modules/path-concat,
71906         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
71907         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
71908         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
71909         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
71910         modules/strftime, modules/strndup, modules/strverscmp,
71911         modules/timespec, modules/unlocked-io, modules/userspec,
71912         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
71913         modules/yesno:
71914         Remove lib_SOURCES line from Makefile.am section, as this is now
71915         done automatically by the corresponding Autoconf macro.
71916
71917 2005-03-21  Jim Meyering  <jim@meyering.net>
71918
71919         Changes imported from coreutils.
71920
71921         * lib/cycle-check.c: Don't include xalloc.h.
71922
71923         * lib/path-concat.c: Don't include assert.h.
71924         (path_concat): Remove assertion that would have triggered
71925         for ABASE starting with more than one slash.
71926         Reported by Andreas Schwab.
71927
71928         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
71929         properly when ABASE is an absolute file name.
71930         Correct the description of this function.
71931         Include <assert.h>.
71932         Add an assertion and a test driver.
71933         This fixes a bug introduced on 2004-07-02.
71934         Andreas Schwab reported the resulting failure of cp --parents:
71935         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
71936
71937 2005-03-21  Jim Meyering  <jim@meyering.net>
71938
71939         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
71940         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
71941
71942 2005-03-21  Jim Meyering  <jim@meyering.net>
71943         and  Paul Eggert  <eggert@cs.ucla.edu>
71944
71945         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
71946         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
71947         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
71948         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
71949         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
71950         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
71951         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
71952         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
71953         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
71954         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
71955         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
71956         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
71957         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
71958         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
71959         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
71960         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
71961         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
71962         for these modules.
71963
71964 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
71965
71966         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
71967         (which shouldn't happen), generate nothing instead of returning 0
71968         immediately, so that nstrftime (NULL, ...) doesn't return 0.
71969
71970 2005-03-16  Bruno Haible  <bruno@clisp.org>
71971
71972         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
71973         HAVE_LONGLONG_64BIT.
71974
71975 2005-03-16  Bruno Haible  <bruno@clisp.org>
71976
71977         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
71978         HAVE_LONGLONG_64BIT.
71979
71980 2005-03-16  Bruno Haible  <bruno@clisp.org>
71981
71982         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
71983         HAVE_LONGLONG_64BIT.
71984
71985 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71986
71987         * lib/strftime.c (my_strftime): Prepend space to format so that we can
71988         reliably distinguish strftime failure from empty output on POSIX
71989         hosts.
71990
71991 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71992
71993         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
71994         (iconv_string): Don't guess a size-zero buffer, as that might cause
71995         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
71996         result would be 'too large', where 'too large' is (heuristically)
71997         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
71998         overflow concerns.  This will prevent some unwanted malloc failures
71999         when the inputs are very large.
72000
72001 2005-03-15  Karl Berry  <karl@gnu.org>
72002
72003         * config/srclist.txt (config.rpath): from gettext.
72004         * config/config.rpath: update.
72005
72006 2005-03-15  Bruno Haible  <bruno@clisp.org>
72007
72008         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
72009         to 'negate'.
72010
72011         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
72012         variable.
72013
72014         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
72015         results.
72016
72017 2005-03-14  Simon Josefsson  <jas@extundo.com>
72018
72019         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72020         <fx@gnu.org>.
72021
72022 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72023
72024         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72025         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72026         intprops.h.
72027         * lib/strtol.c: Likewise.
72028
72029 2005-03-14  Jim Meyering  <jim@meyering.net>
72030
72031         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72032         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72033         to be nonzero so that we (and caller) can detect the difference
72034         between a valid zero-length expansion and an error return, even
72035         when the underlying strftime fails before writing anything into
72036         that location.
72037
72038 2005-03-14  Bruno Haible  <bruno@clisp.org>
72039
72040         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72041         Update from GNU gettext 0.14.3.
72042
72043 2005-03-10  Jim Meyering  <jim@meyering.net>
72044
72045         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72046
72047 2005-03-10  Jim Meyering  <jim@meyering.net>
72048
72049         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72050         so that this module works on systems without fchdir.
72051
72052 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72053
72054         Factor int-properties macros into a single file, except for
72055         glibc-related files.
72056         * lib/intprops.h: New file.
72057         * lib/getloadavg.c: Include it instead of limits.h.
72058         (INT_STRLEN_BOUND): Remove.
72059         * lib/human.c: Include intprops.h.
72060         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72061         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72062         302/1000.
72063         * lib/inttostr.h: Include intprops.h instead of limits.h.
72064         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72065         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72066         for consistency with intprops.h.
72067         (time_t_is_integer, twos_complement_arithmetic): Use them.
72068         * lib/sig2str.h: Include <signal.h>, intprops.h.
72069         (INT_STRLEN_BOUND): Remove.
72070         * lib/strftime.c (TYPE_SIGNED): Remove.
72071         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72072         * lib/strtol.c: Adjust comments to match intprops.h.
72073         * lib/userspec.c: Include intprops.h.
72074         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72075         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72076         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72077         instead of rolling our own expressions.
72078         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72079
72080         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72081         instead of int.
72082         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72083         the right thing even if adding 1900 would overflow.  Similarly
72084         for tm_mon + 1 and tm_yday + 1.
72085         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72086         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72087         (DO_SIGNED_NUMBER): New macro.
72088         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72089
72090 2005-03-07  Bruno Haible  <bruno@clisp.org>
72091
72092         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72093
72094 2005-03-07  Bruno Haible  <bruno@clisp.org>
72095
72096         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72097
72098 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72099
72100         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72101         (func_import): Only replace files via --import when they have actually
72102         changed.
72103
72104 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72105
72106         * m4/mmap-anon.m4: New file.
72107         * m4/pagealign_alloc.m4: New file.
72108
72109 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72110             Bruno Haible  <bruno@clisp.org>
72111
72112         * modules/pagealign_alloc: New file.
72113         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72114
72115 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72116             Bruno Haible  <bruno@clisp.org>
72117
72118         * lib/pagealign_alloc.h: New file.
72119         * lib/pagealign_alloc.c: New file.
72120
72121 2005-03-03  Bruno Haible  <bruno@clisp.org>
72122
72123         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72124         Use an all-permissive copyright notice, recommended by RMS.
72125
72126 2005-03-02  Bruno Haible  <bruno@clisp.org>
72127
72128         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72129         of AIX, the replacement has to be done only after <string.h> is
72130         included, therefore not in config.h. stpncpy.h does the replacement,
72131         and stpncpy.c uses it.
72132
72133 2005-03-02  Bruno Haible  <bruno@clisp.org>
72134
72135         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72136         stpncpy.c uses it.
72137
72138 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72139
72140         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72141         The workaround isn't strictly needed for POSIX conformance, and
72142         it's too much of a pain to configure and maintain.  We'll ask
72143         people to fix their kernels instead.
72144         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72145         (NANOSLEEP_BUG_WORKAROUND): Remove.
72146         (xnanosleep): Remove the workaround.
72147
72148 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72149
72150         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72151         Reported by Derek Price.
72152         (Include): Add "timespec.h".
72153
72154         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72155
72156 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72157
72158         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72159         to detect nanosleep bug.
72160
72161 2005-03-01  Bruno Haible  <bruno@clisp.org>
72162
72163         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72164
72165 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72166
72167         * modules/gethrxtime: New file.
72168         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72169         (Depends-on): Add gethrxtime.
72170         (configure.ac): Add gl_XNANOSLEEP.
72171         (Makefile.am): Remove lib_SOURCES line.
72172
72173 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72174
72175         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72176         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72177
72178 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72179
72180         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72181         * lib/timespec.h (gettime): Return void, since it always
72182         succeeds now.  All uses changed.
72183         * lib/gettime.c (gettime): Likewise.
72184         [HAVE_NANOTIME]: Prefer nanotime.
72185         Assume gettimeofday succeeds, as POSIX requires.
72186         Assime time () succeeds, since other code already does.
72187         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72188         (timespec_subtract): Remove.
72189         (NANOSLEEP_BUG_WORKAROUND): New constant.
72190         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72191         things considerably.  Use it only on GNU/Linux hosts, since the
72192         workaround shouldn't be needed elsewhere.
72193
72194 2005-02-24  Bruno Haible  <bruno@clisp.org>
72195
72196         * modules/gettext (Files): Add m4/glibc2.m4.
72197
72198 2005-02-24  Bruno Haible  <bruno@clisp.org>
72199
72200         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72201         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72202         * m4/progtest.m4:
72203         Update from GNU gettext 0.14.2.
72204         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72205
72206 2005-02-24  Bruno Haible  <bruno@clisp.org>
72207
72208         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72209         * lib/config.charset: Update from GNU gettext 0.14.2.
72210
72211 2005-02-24  Bruno Haible  <bruno@clisp.org>
72212
72213         * lib/gettext.h: Update from GNU gettext 0.14.2.
72214
72215 2005-02-23  Simon Josefsson  <jas@extundo.com>
72216
72217         * m4/iconvme.m4: New file.
72218
72219 2005-02-23  Jim Meyering  <jim@meyering.net>
72220
72221         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72222         change.
72223         Thanks to Bruno Haible for catching it.
72224
72225 2005-02-22  Simon Josefsson  <jas@extundo.com>
72226
72227         * modules/iconvme: New file.
72228
72229         * MODULES.html.sh: Add iconvme.
72230
72231 2005-02-22  Simon Josefsson  <jas@extundo.com>
72232
72233         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72234
72235 2005-02-22  Simon Josefsson  <jas@extundo.com>
72236
72237         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
72238
72239 2005-02-22  Jim Meyering  <jim@meyering.net>
72240
72241         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
72242         s/ifndef/ifdef/.
72243
72244 2005-02-20  Neil Conway  <neilc@samurai.com>
72245
72246         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
72247         returned by OSX/Darwin if the specified buffer is not large
72248         enough for the hostname.
72249
72250 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72251
72252         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
72253         pass it to _help, otherwise the latter coredumps trying to
72254         dereference state.root_argp.
72255
72256 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72257
72258         * modules/chdir-long (Depends-on): Add memrchr.
72259         * modules/memrchr (Files): Add lib/memrchr.h.
72260         (Include): "memrchr.h".
72261
72262 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72263
72264         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
72265
72266 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72267
72268         * lib/memrchr.h: New file.
72269         * lib/chdir-long.c: Include it.
72270         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
72271         Don't bother including stddef.h.
72272
72273 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72274
72275         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
72276         inclusion.
72277         Include <sys/types.h>, for dev_t.
72278         (ME_DUMMY, ME_REMOTE): Move from here....
72279         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
72280         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
72281         Dmitry V. Levin.
72282         Include mountlist.h first, to test the interface.
72283
72284 2005-01-29  Bruno Haible  <bruno@clisp.org>
72285
72286         * lib/progname.c (program_name): Initialize.
72287         Needed when linking statically on MacOS X.
72288
72289 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72290
72291         Sync from coreutils.
72292         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
72293         (Depends-on): Add c-strtod.
72294         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
72295
72296 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72297
72298         Sync from coreutils.
72299         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
72300
72301         Remove files that are specific to coreutils.
72302         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
72303
72304 2005-01-28  Bruno Haible  <bruno@clisp.org>
72305
72306         * modules/javacomp: New file.
72307         * MODULES.html.sh (Java): Add javacomp.
72308
72309 2005-01-28  Bruno Haible  <bruno@clisp.org>
72310
72311         * m4/javacomp.m4: New file, from GNU gettext.
72312
72313 2005-01-28  Bruno Haible  <bruno@clisp.org>
72314
72315         * lib/javacomp.sh.in: New file, from GNU gettext.
72316         * lib/javacomp.h: New file, from GNU gettext.
72317         * lib/javacomp.c: New file, from GNU gettext.
72318
72319 2005-01-26  Simon Josefsson  <jas@extundo.com>
72320
72321         * lib/gai_strerror.c: Use GPL in header.
72322
72323 2005-01-26  Bruno Haible  <bruno@clisp.org>
72324
72325         * modules/javaexec: New file.
72326         * MODULES.html.sh (Java): Add javaexec.
72327
72328 2005-01-26  Bruno Haible  <bruno@clisp.org>
72329
72330         * m4/javaexec.m4: New file, from GNU gettext.
72331
72332 2005-01-26  Bruno Haible  <bruno@clisp.org>
72333
72334         * lib/javaexec.sh.in: New file, from GNU gettext.
72335         * lib/javaexec.h: New file, from GNU gettext.
72336         * lib/javaexec.c: New file, from GNU gettext.
72337
72338 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72339
72340         * modules/lchown (Depends-on): Remove lchown.h
72341
72342 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72343
72344         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72345         must be defined if the header file was not found, in order
72346         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72347
72348 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72349
72350         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72351         initializers for struct pentry_state.
72352         (__argp_error): Check return value of __asprintf
72353         (__argp_failure): Translate error message
72354
72355         * lib/argp-parse.c: Removed braces around the expansion of N_()
72356
72357 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72358
72359         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72360         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72361         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72362         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72363         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72364         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72365         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72366         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72367         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72368         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72369         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72370         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72371         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72372         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72373         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72374         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72375         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72376         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72377         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72378         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72379         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72380         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72381         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72382         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72383         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72384         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72385         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72386         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72387         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72388         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72389         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72390         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72391         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72392         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72393         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72394         Use an all-permissive copyright notice, recommended by RMS.
72395
72396 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72397
72398         * modules/chdir-long (Depends-on): Remove mempcpy.
72399
72400 2005-01-21  Jim Meyering  <jim@meyering.net>
72401
72402         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
72403         same value as for Solaris 9.
72404
72405         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
72406         component length.  This included changing the parameter to be
72407         of type `char *' rather than `char const *'.
72408         * lib/chdir-long.h (chdir_long): Update prototype.
72409
72410         * lib/openat.c (fdopendir, fstatat): New functions.
72411         * lib/openat.h: Include headers required for use of DIR and struct
72412         stat.
72413         [AT_SYMLINK_NOFOLLOW]: Define.
72414         (fdopendir, fstatat): Add prototypes.
72415
72416 2005-01-21  Bruno Haible  <bruno@clisp.org>
72417
72418         * modules/classpath: New file.
72419         * MODULES.html.sh (Java): Add classpath.
72420
72421 2005-01-21  Bruno Haible  <bruno@clisp.org>
72422
72423         * lib/classpath.h: New file, from GNU gettext.
72424         * lib/classpath.c: New file, from GNU gettext.
72425
72426 2005-01-20  Simon Josefsson  <jas@extundo.com>
72427
72428         * modules/version-etc-fsf: New file.
72429
72430 2005-01-20  Simon Josefsson  <jas@extundo.com>
72431
72432         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
72433         * lib/version-etc.c: Remove version_etc_copyright.
72434         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
72435         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
72436
72437 2005-01-20  Simon Josefsson  <jas@extundo.com>
72438
72439         * lib/base64.h (isbase64): Add.
72440
72441         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
72442         using a unsigned prototype, don't inline.
72443         (base64_decode): Use it.
72444
72445 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72446
72447         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
72448         it.
72449
72450 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72451
72452         * lib/save-cwd.c (save_cwd): Remove code to support the case
72453         where fchdir is missing or flaky.
72454
72455 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72456
72457         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
72458
72459 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72460
72461         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
72462         AC_LIBSOURCES now does this.
72463         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
72464         with new ullong_max module.
72465
72466 2005-01-19  Bruno Haible  <bruno@clisp.org>
72467
72468         * modules/sh-quote: New file.
72469         * MODULES.html.sh (Executing programs): Add sh-quote.
72470
72471 2005-01-19  Bruno Haible  <bruno@clisp.org>
72472
72473         * lib/sh-quote.h: New file, from GNU gettext.
72474         * lib/sh-quote.c: New file, from GNU gettext.
72475
72476 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72477
72478         Merge from coreutils.
72479         * m4/ullong_max.m4: New file.
72480         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
72481         (gl_MACROS): Assume localeconv exists.
72482
72483 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72484
72485         Merge changes from coreutils, as described below in several
72486         changelogs dated today.
72487
72488         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
72489         (O_DIRECTORY): Remove; not needed here, since "." must be
72490         a directory.  All uses removed.
72491         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
72492         universal on Suns, and we also need to test for IRIX.
72493         Revamp code to use 'if' rather than '#if'.
72494         Avoid unnecessary comparison of cwd->desc to 0.
72495
72496         * lib/utimens.c (futimens): Robustify the previous patch, by checking
72497         for known valid error numbers rather than observed invalid ones.
72498
72499 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72500
72501         * modules/ullong_max: New file.
72502
72503         * modules/chdir-long, modules/openat: New files.
72504         * modules/save-cwd (Depends-on): Depend on chdir-long.
72505         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
72506
72507 2005-01-18  Jim Meyering  <jim@meyering.net>
72508
72509         Merge from coreutils.
72510         * m4/chdir-long.m4, m4/openat.m4: New files.
72511         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
72512         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
72513         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
72514         is sane and DOES follow symlinks.  Besides, testing 20 different
72515         systems found no broken chown implementations.
72516         Prompted by a change in rsync's copy of this macro.
72517         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
72518
72519         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
72520
72521         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
72522         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
72523         NULL-means-set-to-current-time semantics.
72524         Remove temporary file immediately, rather than waiting
72525         for configure's at-exit trap code to do it.
72526
72527 2005-01-18  Jim Meyering  <jim@meyering.net>
72528
72529         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72530
72531         * lib/utimens.c (futimens): Account for the fact that futimes
72532         can also fail with errno == ENOSYS or errno == ENOENT.
72533         Patch from Dmitry V. Levin.
72534
72535         Change the name of the robust chdir function from chdir to chdir_long.
72536         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
72537         (restore_cwd): Use chdir_long, not chdir.
72538         * lib/chdir-long.c: Renamed from chdir.c.
72539         * lib/chdir-long.h: Renamed from chdir.h.
72540         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
72541         Hurd.
72542
72543 2005-01-18  Bruno Haible  <bruno@clisp.org>
72544
72545         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
72546         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
72547         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
72548         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
72549         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
72550         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
72551         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
72552         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
72553         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
72554         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
72555         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
72556         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
72557         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
72558         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
72559         Use an all-permissive copyright notice, recommended by RMS.
72560
72561 2005-01-18  Bob Proulx  <bob@proulx.com>
72562
72563         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
72564         simplify offsetof() macro construct to avoid compile failure with
72565         native HP-UX 11.0 ANSI C compiler.
72566
72567 2005-01-17  Bruno Haible  <bruno@clisp.org>
72568
72569         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
72570         redundant because stpncpy.m4 takes care of it.
72571
72572 2005-01-17  Bruno Haible  <bruno@clisp.org>
72573
72574         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
72575
72576 2005-01-17  Bruno Haible  <bruno@clisp.org>
72577
72578         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
72579         used.
72580
72581 2005-01-17  Bruno Haible  <bruno@clisp.org>
72582
72583         * lib/fwriteerror.h (fwriteerror): Change specification to include
72584         fclose.
72585         * lib/fwriteerror.c: Include <stdbool.h>.
72586         (fwriteerror): At the end, close the file stream. Record whether
72587         stdout was already closed.
72588
72589 2005-01-17  Bruno Haible  <bruno@clisp.org>
72590
72591         * lib/execute.c (environ): Declare if needed.
72592         * lib/pipe.c (environ): Likewise.
72593         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
72594
72595 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72596
72597         * modules/argp: Depend on vsnprintf
72598
72599 2005-01-10  Jim Meyering  <jim@meyering.net>
72600
72601         * modules/closeout (Depends-on): Add atexit.
72602
72603 2005-01-06  Bruno Haible  <bruno@clisp.org>
72604
72605         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
72606
72607 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72608
72609         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
72610         definitions to be after all include files, to avoid collisions.
72611         Problem reported by Bob Proulx.
72612
72613 2005-01-04  Jim Meyering  <jim@meyering.net>
72614
72615         Changes imported from coreutils.
72616         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
72617         as the mkstemp template, use a temporary directory and an
72618         8.3-friendly template to avoid trouble on systems like DJGPP.
72619         Reported by Juan M. Guerrero via Stepan Kasal.
72620         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
72621         close. Remove the temporary directory right away, rather than waiting
72622         for configure's at-exit trap code to do it.
72623         Suggestion from Stepan Kasal.
72624
72625 2005-01-01  Simon Josefsson  <jas@extundo.com>
72626
72627         * gnulib-tool: Print #include directives when --import'ing.
72628
72629 2004-12-28  Simon Josefsson  <jas@extundo.com>
72630
72631         * tests/test-base64.c: Include required header files.  Remove
72632         unused variables.
72633
72634 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72635
72636         * modules/error (Depends-on): Remove gettext.
72637
72638 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72639
72640         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
72641         not needed.  This removes a dependency on the gettext module.
72642         [defined _LIBC]: Do not include <libintl.h>; not needed.
72643
72644 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72645
72646         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
72647         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
72648
72649 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72650
72651         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
72652         HAVE_DECL_STRTOLD.
72653
72654 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72655
72656         * modules/getdate (Depends-on): Remove alloca-opt.
72657
72658 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72659
72660         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
72661
72662 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72663
72664         * lib/argp-parse.c: Include <stddef.h>.
72665         (alignof, alignto): New macros.
72666         (parser_init): Don't assume that void * is aligned sufficiently
72667         for struct option.
72668
72669         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
72670         need to extend the stack.
72671         (YYINITDEPTH): New macro, so that the initial stack isn't overly
72672         large.
72673
72674 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72675
72676         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
72677
72678 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72679
72680         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
72681         (2004-10-24) change.  Apparently this was a false alarm.
72682
72683         * modules/getdate: Depend on alloca-opt, not alloca.
72684
72685 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72686
72687         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
72688         Remove now-obsolete comment about AIX.
72689         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
72690         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
72691         (YYMAXDEPTH): New macro.
72692
72693 2004-12-18  Simon Josefsson  <jas@extundo.com>
72694
72695         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
72696
72697 2004-12-18  Bruno Haible  <bruno@clisp.org>
72698
72699         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
72700
72701 2004-12-18  Bruno Haible  <bruno@clisp.org>
72702
72703         * lib/fatal-signal.c (fatal_signals): Make non-const.
72704         (init_fatal_signals): New function.
72705         (uninstall_handlers, install_handlers): Ignore signals that were set to
72706         SIG_IGN.
72707         (at_fatal_signal): Call init_fatal_signals.
72708         (init_fatal_signal_set): Likewise. Ignore signals that were set to
72709         SIG_IGN.
72710         Reported by Paul Eggert.
72711
72712 2004-12-18  Bruno Haible  <bruno@clisp.org>
72713
72714         * doc/alloca.texi: New file.
72715         * doc/alloca-opt.texi: New file.
72716
72717 2004-12-17  Jim Meyering  <jim@meyering.net>
72718
72719         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
72720         Otherwise, install-sh could exit with improper exit status when
72721         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
72722
72723 2004-12-16  Simon Josefsson  <jas@extundo.com>
72724
72725         * tests/test-base64.c: Add license.
72726
72727 2004-12-15  Stepan Kasal  <address@hidden>
72728
72729         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
72730
72731 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
72732
72733         * modules/getcwd (Files): Add m4/d-ino.m4.
72734         Suggested by Mark D. Baushke.
72735
72736 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72737
72738         * lib/getdate.y (textint): New member "negative".
72739         (time_zone_hhmm): New function.
72740         Expect 14 shift-reduce conflicts, not 13.
72741         (o_colon_minutes): New rule.
72742         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
72743         (yylex): Set the "negative" member of signed numbers.
72744
72745 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72746
72747         * doc/getdate.texi (Time of day items, Time zone items):
72748         Describe new formats +00:00, UTC+00:00.
72749
72750 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72751
72752         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
72753         spurious "-l"s.  Problem reported by Stepan Kasal.
72754
72755 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
72756
72757         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
72758         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
72759
72760 2004-12-04  Simon Josefsson  <jas@extundo.com>
72761
72762         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
72763         Vandoorselaere <yoann@prelude-ids.org>.
72764
72765 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72766
72767         Changes imported from coreutils.
72768         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
72769         exist.
72770         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
72771
72772 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72773
72774         Changes imported from coreutils.
72775         * lib/hard-locale.c: Assume <locale.h> exists.
72776         Include "strdup.h".
72777         (GLIBC_VERSION): New macro.
72778         (hard_locale): Assume setlocale exists.
72779         Rewrite to avoid #ifdef.
72780         Use strdup rather than malloc + strcpy.
72781         * lib/human.c: Assume <locale.h> exists.
72782         (human_readable): Assume localeconv exists.
72783
72784 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72785
72786         * modules/hard-locale (Depends-on): Add strdup.
72787
72788 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72789
72790         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
72791         convert T2, not T.  (Imported from libc.)
72792
72793 2004-11-30  Simon Josefsson  <jas@extundo.com>
72794
72795         * modules/restrict (License): Change to LGPL.
72796
72797 2004-11-30  Simon Josefsson  <jas@extundo.com>
72798
72799         * m4/restrict.m4: Add copyright and copying conditions.
72800
72801 2004-11-30  Simon Josefsson  <jas@extundo.com>
72802
72803         * m4/base64.m4: New file.
72804
72805 2004-11-30  Simon Josefsson  <jas@extundo.com>
72806
72807         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
72808         base64.
72809
72810         * tests/test-base64.c: New file.
72811
72812         * modules/base64: New file.
72813
72814 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
72815
72816         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
72817         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
72818
72819         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
72820
72821 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
72822
72823         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
72824         (__getcwd.c): Don't restore errno; glibc doesn't.
72825         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
72826         first, falling back to our code only if its results look suspicious.
72827         Ensure that the resulting buffer is only as large as necessary.
72828
72829         * lib/readutmp.c: Include readutmp.h first.
72830         Include <errno.h>, since readutmp.h no longer does that.
72831         * lib/readutmp.h: Don't include <errno.h>,
72832         <sys/param.h>, <time.h>; not needed to establish interface.
72833         (errno): Remove decl.
72834         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
72835         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
72836         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
72837
72838 2004-11-28  Simon Josefsson  <jas@extundo.com>
72839
72840         * lib/base64.h, base64.c: New file.
72841
72842 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72843
72844         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
72845
72846 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72847
72848         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
72849         (Depends-on): Remove pathmax, same.  Add mempcpy.
72850         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
72851         (Makefile.am): Append getcwd.h to lib_SOURCES.
72852         (Include): Add getcwd.h.
72853         (Maintainer): Change from Jim Meyering to "all, glibc",
72854         since getdate now uses intended-for-glibc code.
72855         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
72856         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
72857
72858 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72859
72860         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
72861         HP's ANSI C compiler.
72862         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
72863         Declaring int functions causes warnings on some modern systems and
72864         shouldn't be needed to compile on ancient ones.
72865         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
72866         defined.
72867
72868         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
72869         with the following changes.
72870         (__set_errno): Parenthesize properly.
72871         Include <stdbool.h>.
72872         (MIN, MAX, MATCHING_INO): New macros.
72873         (__getcwd): Define with prototype, not K&R form.
72874         Use heuristics to allocate default buffer on stack if possible.
72875         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
72876         behavior, and to avoid the PATH_MAX limit when computing
72877         ../../../../...
72878         Use MATCHING_INO to compare inode number to file.
72879         Check for arithmetic overflow in size calculations.
72880         Fix bug in reallocation of dot array that caused getcwd to fail
72881         on directories nested deeper than 75.
72882         Be more careful about saving errno on error.
72883         Do not use realloc; use only free+malloc, as this is a bit
72884         more flexible and avoids a needless copy operation.
72885         Do not inspect st_dev and st_ino for symbolic links; POSIX
72886         doesn't specify the latter.
72887         Check for closedir errors.
72888         Avoid needless casts.
72889         Use "#ifdef weak_alias" around weak_alias, to be like other
72890         glibc code.
72891         The following changes to getcwd.c have effect only when used in
72892         gnulib; they have no effect inside glibc proper.
72893         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
72894         as alloca isn't used.
72895         (alloca, __alloca): Likewise.
72896         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
72897         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72898         unconditionally, as gnulib assumes C89 or better.
72899         Do not include <sys/param.h>.
72900         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
72901         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
72902         better.
72903         (NULL) [!defined NULL]: Remove; we assume C89 or better.
72904         Include <dirent.h> in a way that is compatible with modern Autoconf.
72905         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
72906         New macros, if not already defined.
72907         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
72908         Use "_LIBC", not "defined _LIBC", for consistency.
72909         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
72910         a mempcpy module.
72911         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
72912         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
72913         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
72914         credit only to Jim Meyering and adjust the copyright dates.
72915         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
72916         <stdlib.h>, <unistd.h>, "pathmax.h".
72917         Instead, include "xgetcwd.h" (first) and "getcwd.h".
72918         (INITIAL_BUFFER_SIZE): Remove.
72919         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
72920
72921 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72922
72923         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
72924         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
72925         Use the _ONCE methods, for efficiency.
72926         Check for fcntl.h.  In test program, include <errno.h>
72927         and <fcntl.h> if available.  Remove old K&R cruft from
72928         test program.  Check for common errors in GNU/Linux,
72929         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
72930         don't do AC_LIBOBJ, as that's getcwd.m4's job.
72931         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
72932         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
72933         name accordingly.
72934         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
72935         accommodate new getcwd.c.
72936         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
72937         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
72938         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
72939         that's all we need now.
72940
72941 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72942
72943         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
72944         argp-parse.c depends on getopt internals, that means we should
72945         always use our getopt, to be on the safe side.
72946         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
72947         order not to spoil the result of an eventual previous invocation
72948         of gl_GETOPT_SUBSTITUTE.
72949
72950 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72951
72952         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
72953         redefinition warnings. To avoid them, include the defines
72954         in `#if !defined __need_getopt ... #endif'. The only place
72955         where __getopt_argv_const is used is in definitions
72956         of getopt_long and getopt_long_only below, which are as well
72957         protected by `#ifndef __need_getopt'.
72958         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
72959         __need_getopt after including <stdio.h> and <unistd.h> These
72960         headers might have defined it.
72961
72962 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
72963
72964         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
72965
72966 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
72967
72968         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
72969         (futimens): New function, which uses futimes if available.
72970         (futimens, utimens): Support timespec==NULL, with same semantics
72971         as utime and utimens.
72972         * lib/utimens.h (futimens): New decl.
72973
72974 2004-11-23  Jim Meyering  <jim@meyering.net>
72975
72976         * lib/getopt_.h: Remove trailing blanks.
72977
72978 2004-11-23  Jim Meyering  <jim@meyering.net>
72979
72980         * lib/__fpending.c: Add comment.
72981
72982 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
72983
72984         * modules/canonicalize (Depends-on): Add xreadlink.
72985         Problem reported by James Youngman.
72986
72987 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72988
72989         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
72990         New macros.
72991         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
72992         optopt): Use them instead of invoking ## directly; otherwise, the
72993         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
72994
72995 2004-11-19  Bruno Haible  <bruno@clisp.org>
72996
72997         * lib/strtok_r.c: Move comments from here...
72998         * lib/strtok_r.h: ... to here.
72999
73000 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73001
73002         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
73003         implementations that mishandle size_t overflow.
73004
73005 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73006
73007         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
73008         might fail.  Problem reported by Yoann Vandoorselaere.
73009         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
73010         implementations that mishandle size_t overflow.
73011
73012 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73013
73014         * modules/canon-host (Depends-on): Add strdup.
73015
73016 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73017
73018         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73019
73020 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73021
73022         * lib/canon-host.c: Include "strdup.h".
73023         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73024         Use strdup instead of malloc/strcpy to duplicate strings.
73025
73026         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73027         (human_space_before_unit): New constant.
73028         * lib/human.c (human_readable): Support it.
73029
73030         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73031         (xgetcwd): Set errno correctly when failing.
73032         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73033         the failure is actually due to a PATH_MAX problem.
73034
73035         Further getopt changes to make it more likely that glibc will
73036         buy the changes back.
73037         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73038         (getopt): Use it, so to preserve glibc semantic
73039         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73040         when compiling for libc.
73041         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73042         (getopt_long, getopt_long_only): Use it.
73043
73044         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73045         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73046         (getopt): Argv is now char * const *, as per standard.
73047         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73048         not char *__getopt_argv_const *.
73049         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73050         _getopt_long_only_r): Likewise.
73051         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73052         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73053         _getopt_long_r, _getopt_long_only_r): Likewise.
73054         * lib/getopt_.h (__getopt_argv_const): Remove.
73055         (getopt): Argv is now char * const *, as per standard.
73056
73057         * lib/getdate.y (tORDINAL): New token.
73058         (day, relunit): Allow it for relative times.
73059         (relative_time_table): Use tORDINAL for ordinals.
73060
73061 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73062
73063         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73064         Document that "second" isn't allowed as an ordinal number.
73065
73066 2004-11-16  Jim Meyering  <jim@meyering.net>
73067
73068         * modules/closeout (Depends-on): Add fpending.
73069
73070 2004-11-15  Jim Meyering  <jim@meyering.net>
73071
73072         * lib/closeout.c: Include "__fpending.h" once again.
73073         Include <stdbool.h>.
73074         (close_stdout): Don't fail just because stdout was closed initially,
73075         since some programs don't write to stdout in the normal course of
73076         operation (other than --version and --help), and we don't want this
73077         function to make e.g. `touch file >&-' fail.
73078         But do fail if it was closed and someone has tried to write to it.
73079         E.g., `printf foo >&-' must fail.
73080
73081 2004-11-13  Jim Meyering  <jim@meyering.net>
73082
73083         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73084
73085 2004-11-12  Simon Josefsson  <jas@extundo.com>
73086
73087         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73088         small doc fix is still pending.
73089
73090 2004-11-11  Simon Josefsson  <jas@extundo.com>
73091
73092         * modules/strtok_r: New file.
73093
73094         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73095         strtok_r.
73096
73097 2004-11-11  Simon Josefsson  <jas@extundo.com>
73098
73099         * m4/strtok_r.m4: New file.
73100
73101         * m4/getopt.m4: Replace opterr.
73102
73103 2004-11-11  Simon Josefsson  <jas@extundo.com>
73104
73105         * lib/strtok_r.h, strtok_r.c: New file.
73106
73107 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73108
73109         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73110         of replacing opterr, getopt, etc.  This should handle the
73111         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73112
73113 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73114
73115         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73116         we can stop lying to compilers about the constness of argv when we
73117         are compiled outside glibc.
73118         (getopt, getopt_long, getopt_long_only): Use it.
73119         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73120         _getopt_internal, getopt): Likewise.
73121         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73122         _getopt_long_only_r): Likewise.
73123         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73124         _getopt_long_r, _getopt_long_only_r): Likewise.
73125
73126         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73127         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73128         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73129         the other external symbols.
73130         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73131         declaration, since the above renaming now works around collisions.
73132
73133 2004-11-11  Jim Meyering  <jim@meyering.net>
73134
73135         * lib/linebreak.c: Remove trailing blanks.
73136         * lib/alloca_.h: Likewise.
73137         * lib/acosl.c: Likewise.
73138         * lib/euidaccess.c: Likewise.
73139         * lib/allocsa.h: Likewise.
73140
73141 2004-11-10  Simon Josefsson  <jas@extundo.com>
73142
73143         * m4/getaddrinfo.m4: New file.
73144
73145 2004-11-10  Simon Josefsson  <jas@extundo.com>
73146
73147         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73148
73149 2004-11-10  Simon Josefsson  <jas@extundo.com>
73150
73151         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73152         getaddrinfo.
73153
73154         * modules/getaddrinfo: New file.
73155
73156 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73157
73158         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73159
73160 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73161
73162         * lib/mktime.c (SHR): New macro, which is a portable
73163         substitute for >> that should work even on Crays.
73164         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73165         Problem reported by Mark D. Baushke in
73166         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73167         * lib/getdate.y (SHR): Likewise.
73168         (tm_diff): Use it.
73169         * lib/strftime.c (SHR): Likewise.
73170         (tm_diff): Use it.
73171         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73172         quote_these_too, so that right shifts are well defined.  All uses
73173         changed.
73174
73175 2004-11-10  Jim Meyering  <jim@meyering.net>
73176
73177         Ensure that no close failure goes unreported.
73178         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73179         return early when it seems there's nothing to flush.
73180         Don't include __fpending.h.
73181
73182 2004-11-10  Jim Meyering  <jim@meyering.net>
73183
73184         * modules/closeout (Depends-on): Remove fpending.
73185
73186 2004-11-10  Jim Meyering  <jim@meyering.net>
73187
73188         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73189
73190 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73191
73192         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73193         gl_FUNC_STRFTIME.
73194         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73195         and AC_REQUIRE when possible, to avoid duplicate checks.
73196         Check for <wchar.h>.
73197
73198 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73199
73200         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73201
73202 2004-11-09  Bruno Haible  <bruno@clisp.org>
73203
73204         * m4/sockpfaf.m4: New file.
73205
73206 2004-11-05  Bruno Haible  <bruno@clisp.org>
73207
73208         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73209         Reported by Mark D. Baushke <mdb@cvshome.org>.
73210
73211 2004-11-04  Bruno Haible  <bruno@clisp.org>
73212
73213         2004-09-11  Bruno Haible  <bruno@clisp.org>
73214                 * allocsa.valgrind: New file.
73215         2004-02-06  Bruno Haible  <bruno@clisp.org>
73216                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73217                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73218                 Reported by Christopher Seip <chris.seip@hp.com>.
73219
73220 2004-11-04  Bruno Haible  <bruno@clisp.org>
73221
73222         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73223         (Makefile.am): Distribute it.
73224
73225 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73226
73227         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73228         with errno == ERANGE if the buffer is too small.
73229         Problem reported by Mark D. Baushke.
73230
73231 2004-11-03  Albert Chin  <china@thewrittenword.com>
73232             Paul Eggert  <eggert@cs.ucla.edu>
73233
73234         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73235         equivalent, substitute $ac_type for equivalent type rather than
73236         blindly using uint32_t *always* which won't work if uint32_t is not
73237         available.  Define _UINT32_T to work around typedef of uint32_t if
73238         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
73239         2.5.1.
73240
73241 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73242
73243         * m4/jm-macros.m4: Sync from coreutils.
73244         (gl_MACROS): Check for mbrlen, for pathchk.
73245         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
73246
73247 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73248
73249         * lib/xreadlink.c (MAXSIZE): New macro.
73250         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
73251         size does not exceed MAXSIZE.  Avoid cast.
73252         As suggested by Mark D. Baushke in
73253         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
73254         if readlink fails with buffer size just under MAXSIZE, try again
73255         with MAXSIZE.
73256
73257 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73258
73259         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
73260
73261 2004-11-02  Derek R. Price  <derek@ximbiot.com>
73262         and  Paul Eggert  <eggert@cs.ucla.edu>
73263
73264         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
73265         (get_date): Overparenthesize to avoid GCC warning.
73266
73267 2004-11-02  Bruno Haible  <bruno@clisp.org>
73268
73269         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
73270         returns void.
73271
73272 2004-11-02  Bruno Haible  <bruno@clisp.org>
73273
73274         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
73275         function returns void.
73276
73277 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73278
73279         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
73280         fflush_unlocked, flockfile, funlockfile, funlockfile,
73281         fputs_unlocked, putc_unlocked.
73282
73283 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73284
73285         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73286         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
73287         already declared.
73288
73289 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73290
73291         * modules/getdate (Files): Add doc/getdate.texi.
73292         (Depends-on): Add setenv, xalloc.
73293
73294 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73295
73296         * lib/getdate.y: Add support for TZ="foo" within a date string.
73297         Fix some bugs near time_t boundaries.  Reject dates with
73298         out-of-range components, e.g., "Sept 31".
73299         Include <stdlib.h>, "setenv.h", "xalloc.h".
73300         (ISDIGIT_LOCALE): Remove; unused.
73301         Note that the TZ and time functions used here are not reentrant.
73302         (mktime_ok, get_tz): New functions.
73303         (TZBUFSIZE): New constant.
73304         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
73305         This requires that we sometimes generate our own TZ="XXX..." setting.
73306
73307 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73308
73309         * doc/getdate.texi: New file, from coreutils with modifications for
73310         the new TZ parsing.
73311
73312 2004-10-27  Derek R. Price  <derek@ximbiot.com>
73313
73314         * lib/mktime.c (not_equal_tm): Remove redundant check.
73315
73316 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73317
73318         * modules/regex (lib_SOURCES): Add regex.c.
73319         Reported by James Youngman in
73320         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
73321
73322 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73323
73324         * lib/getdate.y: Use Bison 1.875 features, and some minor
73325         code cleanups.  This change does not affect semantics.
73326         Don't include <stdlib.h>; no longer needed.
73327         Don't include unlocked-io.h; only the "#if TEST" code uses
73328         stdio, and performance isn't crucial there.
73329         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73330         Bison 1.875 features as described below.
73331         All uses of "PC." replaced by "pc->".
73332         (YYSTYPE): Add a forward declaration.
73333         (yylex, yyerror): Use full prototypes in forward decls.
73334         Use "%pure-parser" rather than obsolescent "%pure_parser".
73335         Use %parse-param and %lex-param instead of obsolescent
73336         YYPARSE_PARAM and YYLEX_PARAM.
73337         (meridian_table, month_and_day_table, time_units_table,
73338         relative_time_table, time_zone_table, military_table,
73339         lookup_zone, lookup_word, get_date):
73340         Use NULL instead of 0 where appropriate.
73341         (to_hour): Avoid abort (), to avoid a dependency on
73342         stdlib.h.
73343         (yyerror, yylex): Now accepts parser_control * arg.
73344         (main) [TEST]: Use '\0' rather than 0 for char.
73345
73346 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73347
73348         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73349
73350 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73351
73352         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73353         It's now the caller's responsibility to handle the case where
73354         !HAVE_GETPAGESIZE && !defined getpagesize.
73355
73356         * lib/mktime.c (leapyear): Arg is long int, not int.
73357
73358 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73359
73360         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73361
73362 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73363
73364         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73365         missing.  Problem reported by James Youngman.
73366
73367 2004-10-16  Simon Josefsson  <jas@extundo.com>
73368
73369         * gnulib-tool: Fix comments.  Fix parse problem.
73370         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73371
73372 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73373
73374         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73375         implementation of getopt_long.  Problem reported by Alexander Taler in:
73376         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73377
73378 2004-10-15  Bruno Haible  <bruno@clisp.org>
73379
73380         * gnulib-tool: Untabify. Initialize supplied_libname.
73381         (func_usage): More homogenous output.
73382         (func_modules_transitive_closure, func_modules_to_filelist,
73383         func_emit_lib_Makefile_am): New functions.
73384         (func_import): New function, extracted from big case statement. Use
73385         func_get_license, func_modules_transitive_closure,
73386         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73387         opt_lgpl. Don't use test -a, as it's not portable.
73388         (func_create_testdir): Use func_modules_transitive_closure,
73389         func_modules_to_filelist, func_emit_lib_Makefile_am.
73390
73391 2004-10-15  Bruno Haible  <bruno@clisp.org>
73392
73393         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73394
73395 2004-10-15  Bruno Haible  <bruno@clisp.org>
73396
73397         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73398         the portions belonging to each module.
73399         Suggested by Derek Robert Price <derek@ximbiot.com>.
73400
73401 2004-10-12  Simon Josefsson  <jas@extundo.com>
73402
73403         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73404         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
73405         to real functions.
73406
73407 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73408
73409         * modules/vsnprintf: New file.
73410
73411 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73412
73413         * m4/vsnprintf.m4: New file.
73414
73415 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73416
73417         * lib/vsnprintf.h: New file.
73418         * lib/vsnprintf.c: New file.
73419
73420 2004-10-11  Bruno Haible  <bruno@clisp.org>
73421
73422         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
73423         vsnprintf.
73424
73425 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73426
73427         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
73428
73429 2004-10-07  Bruno Haible  <bruno@clisp.org>
73430
73431         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
73432         fits into the provided buffer.
73433
73434 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73435
73436         * lib/diacrit.c, diacrit.h: Add GPL notice.
73437
73438         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
73439         notice.
73440         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
73441         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
73442         This avoids a potential constant-folding bug.
73443
73444 2004-10-05  Bruno Haible  <bruno@clisp.org>
73445
73446         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
73447         for the declaration of strsep.
73448
73449 2004-10-05  Bruno Haible  <bruno@clisp.org>
73450
73451         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
73452
73453 2004-10-04  Simon Josefsson  <jas@extundo.com>
73454
73455         * modules/memmem: New file.
73456         * tests/test-memmem.c: New file.
73457         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
73458
73459 2004-10-04  Simon Josefsson  <jas@extundo.com>
73460
73461         * m4/memmem.m4: New file.
73462
73463 2004-10-04  Simon Josefsson  <jas@extundo.com>
73464
73465         * lib/memmem.h: New file.
73466         * lib/memmem.c: New file, taken from glibc.
73467
73468 2004-10-04  Simon Josefsson  <jas@extundo.com>
73469
73470         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
73471         '#ifdef USE_UNLOCKED_IO'.
73472
73473 2004-10-04  Simon Josefsson  <jas@extundo.com>
73474
73475         * config/srclist.txt: Add memmem from glibc.
73476
73477 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73478
73479         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
73480
73481         * modules/argmatch, modules/argp, modules/closeout, modules/error,
73482         modules/exclude, modules/getdate, modules/getline,
73483         modules/getndelim2, modules/getpass, modules/getpass-gnu,
73484         modules/getusershell, modules/linebuffer, modules/md5,
73485         modules/mountlist, modules/posixtm, modules/readtokens,
73486         modules/readutmp, modules/regex, modules/sha1,
73487         modules/version-etc, modules/yesno:
73488         Remove dependency on unlocked-io.
73489
73490 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73491
73492         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
73493
73494         * m4/unlocked-io.m4: Add copyright notice.
73495         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
73496
73497 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73498
73499         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
73500         * lib/xmalloc.c (xmemdup): Likewise.
73501         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
73502         XFREE): Remove these long-obsolescent macros.
73503         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
73504         * lib/xstrdup.c: Remove.
73505
73506         * lib/regex.c (re_comp): Cast gettext return value to char *,
73507         Problem reported by Martin Neitzel via Mark D. Baushke.
73508
73509 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73510
73511         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
73512         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
73513         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
73514         regex.c, sha1.c, version-etc.c, yesno.c:
73515         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
73516         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
73517         the includer's responsibility.
73518
73519         Sync from coreutils.
73520
73521         * lib/modechange.c (mode_compile): Don't decrement a pointer that
73522         points to the start of a string, as the C Standard says the
73523         resulting behavior is undefined.
73524
73525         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
73526         simple -> simple_backups, numbered_existing ->
73527         numbered_existing_backups, numbered -> numbered_backups
73528         to avoid shadowing problems.  All uses changed.
73529         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
73530         * lib/backupfile.c (check_extension, numbered_backup):
73531         Rename locals to avoid shadowing 'basename'.
73532         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
73533         once.
73534
73535         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
73536         * lib/.cvsignore: Add getopt.h.
73537
73538 2004-10-04  Bruno Haible  <bruno@clisp.org>
73539
73540         * modules/README: New file.
73541         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
73542         not a module.
73543
73544 2004-10-02  Jim Meyering  <jim@meyering.net>
73545
73546         * lib/dirfd.h, getpagesize.h: Add copyright notice.
73547
73548 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73549
73550         * modules/strsep: New file.
73551
73552 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73553
73554         * m4/strsep.m4: New file.
73555
73556 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73557
73558         * lib/strsep.h: New file.
73559         * lib/strsep.c: New file.
73560
73561 2004-10-01  Simon Josefsson  <jas@extundo.com>
73562
73563         * lib/snprintf.c (snprintf): Handle size==0.
73564
73565 2004-10-01  Simon Josefsson  <jas@extundo.com>
73566             Bruno Haible  <bruno@clisp.org>
73567
73568         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
73569         (snprintf): Declare 'args'.
73570
73571 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
73572
73573         * lib/snprintf.c: Remove comments as to why each header is needed.
73574
73575 2004-10-01  Bruno Haible  <bruno@clisp.org>
73576
73577         * MODULES.html.sh: Add strsep.
73578
73579 2004-09-30  Simon Josefsson  <jas@extundo.com>
73580
73581         * modules/snprintf: New file.
73582
73583 2004-09-30  Simon Josefsson  <jas@extundo.com>
73584
73585         * m4/snprintf.m4: New file.
73586
73587 2004-09-30  Simon Josefsson  <jas@extundo.com>
73588
73589         * lib/snprintf.h, lib/snprintf.c: New files.
73590
73591 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73592
73593         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
73594         (hol_entry_help): Never translate an empty string.
73595         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
73596         * lib/argp.h (OPTION_NO_TRANS): New option.
73597
73598 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73599
73600         * modules/argp (Maintainer): Replace Simon Josefsson
73601         by Sergey Poznyakoff.
73602
73603 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73604
73605         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
73606         changes merged back into glibc.
73607
73608 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73609
73610         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
73611
73612 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73613
73614         * lib/xvasprintf.c: Include xalloc.h.
73615         (xvasprintf): Use xalloc_die, not xmalloc_die.
73616
73617 2004-09-29  Bruno Haible  <bruno@clisp.org>
73618
73619         * modules/alloca-opt: New file, derived from modules/alloca.
73620         * modules/allocsa: Depend on alloca-opt instead of alloca.
73621         * modules/setenv: Likewise.
73622         * modules/vasnprintf: Likewise.
73623         * MODULES.html.sh: Add alloca-opt.
73624
73625 2004-09-28  Simon Josefsson  <jas@extundo.com>
73626
73627         * gnulib-tool: New parameter --lgpl, to asseert that modules are
73628         LGPL, and to replace license template from GPL to LGPL.
73629
73630 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73631
73632         * modules/dummy: Change license to LGPL.
73633
73634 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73635
73636         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
73637
73638 2004-09-24  Simon Josefsson  <jas@extundo.com>
73639
73640         * modules/minmax (License): Change from GPL to LGPL.
73641
73642 2004-09-23  Simon Josefsson  <jas@extundo.com>
73643
73644         * gnulib-tool (--import): Typo.
73645
73646 2004-09-23  Simon Josefsson  <jas@extundo.com>
73647
73648         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
73649
73650 2004-09-22  Bruno Haible  <bruno@clisp.org>
73651
73652         * modules/*: Add 'License' field.
73653         * gnulib-tool: Accept --extract-license option.
73654         (func_get_license): New function.
73655
73656 2004-09-21  Bruno Haible  <bruno@clisp.org>
73657
73658         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
73659         Reported by Simon Josefsson.
73660
73661 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73662
73663         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
73664         gl_AC_TYPE_LONG_LONG.
73665
73666 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73667
73668         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
73669
73670 2004-09-18  Simon Josefsson  <jas@extundo.com>
73671         and  Paul Eggert  <eggert@cs.ucla.edu>
73672
73673         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
73674         calls with autoreconf.  Define GL_LIB.
73675
73676 2004-09-14  Karl Berry  <karl@gnu.org>
73677
73678         * config/srclist.txt: unsync setenv.c, sigh.
73679
73680 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73681
73682         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
73683         Problem reported by Bruno Haible in:
73684         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
73685
73686 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73687
73688         * config/srclist.txt: Comment out argp-pvh.c.
73689
73690 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
73691
73692         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
73693         in case some system header has #define'd it.  Problem reported by
73694         Soeren D. Schulze in
73695         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
73696
73697 2004-09-09  Karl Berry  <karl@gnu.org>
73698
73699         * regex.[ch]: delete from the root.  These were supposed to be
73700                 synced with emacs cvs, but this has not happened for about
73701                 a year, and anyway nothing else uses emacs regex.[ch].
73702                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
73703                 lib/regex[.ch] is untouched.
73704
73705 2004-09-09  Bruno Haible  <bruno@clisp.org>
73706
73707         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
73708
73709 2004-09-09  Bruno Haible  <bruno@clisp.org>
73710
73711         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
73712         modifications.
73713         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
73714
73715 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73716
73717         * modules/xvasprintf: New file.
73718         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
73719
73720 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73721
73722         * lib/xvasprintf.h: New file.
73723         * lib/xvasprintf.c: New file.
73724         * lib/xasprintf.c: New file.
73725
73726 2004-09-08  Bruno Haible  <bruno@clisp.org>
73727
73728         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
73729
73730 2004-09-08  Bruno Haible  <bruno@clisp.org>
73731
73732         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
73733         length is > INT_MAX.
73734         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
73735         more.
73736
73737 2004-09-08  Bruno Haible  <bruno@clisp.org>
73738
73739         * lib/stdint_.h: New file, taken from GNU clisp.
73740
73741 2004-09-08  Bruno Haible  <bruno@clisp.org>
73742             Oskar Liljeblad  <oskar@osk.mine.nu>
73743
73744         * modules/stdint: New file.
73745         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
73746
73747 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73748
73749         Import from coreutils.
73750         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
73751         strings on unbounded length.  alloca's performance benefits aren't
73752         that important here.
73753         (V_STRDUP): Remove.
73754         (parse_with_separator): New function, with most of the internals
73755         of the old parse_user_spec.  Allow user to omit both user and group,
73756         for compatibility with FreeBSD.
73757         Clone only the user name, not the entire spec.
73758         Do not set *uid, *gid unless entirely successful.
73759         Avoid memory leak in some failing cases.
73760         Fix regression for USER.GROUP reported by Dmitry V. Levin in
73761         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
73762         (parse_user_spec): Rewrite to use parse_with_separator.
73763
73764 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73765
73766         * modules/userspec: Don't depend on alloca.
73767
73768 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73769
73770         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
73771
73772 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73773
73774         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
73775         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
73776         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
73777
73778 2004-08-16  Simon Josefsson  <jas@extundo.com>
73779
73780         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
73781         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
73782         Add --dry-run for --import.
73783         Let user provided command line parameters override configure.ac
73784         settings.
73785
73786 2004-08-12  Simon Josefsson  <jas@extundo.com>
73787
73788         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
73789         as discussed with Paul Eggert in threads rooted at
73790         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
73791         and
73792         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
73793         Before, the test was empty, and relied on ELIDE_CODE in source
73794         code.)
73795         (gl_PREREQ_GETOPT): New macro.
73796         (gl_GETOPT): Use them.
73797
73798 2004-08-12  Simon Josefsson  <jas@extundo.com>
73799
73800         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
73801         * lib/getopt_.h: Renamed from getopt.h.
73802
73803 2004-08-12  Simon Josefsson  <jas@extundo.com>
73804
73805         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
73806         Change default library name from libfoo to libgnu.
73807         Now, if you have a configure.ac that says:
73808                 gl_SOURCE_BASE(gl)
73809                 gl_M4_BASE(gl/m4)
73810                 gl_MODULES(error getopt etcetera)
73811                 gl_INIT
73812         you can import all you need by running:
73813                 ../gnulib/gnulib-tool --import
73814
73815         * modules/getopt (Files): Rename getopt.h to getopt_.h.
73816         (Makefile.am): Rewrite, use logic from argz.
73817         (Include): Use <getopt.h> instead of "getopt.h".
73818
73819 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73820
73821         * modules/argp (Files): Add m4/unlocked-io.m4.
73822         (Depends-on): Add extensions.
73823
73824 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73825
73826         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
73827         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
73828         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
73829         Check for program_invocation_name, program_invocation_short_name,
73830         flockfile, funlockfile, features.h, _getopt_long_only_r.
73831
73832 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73833
73834         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
73835         its complicated substitute.
73836         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
73837         and program_invocation_name.
73838         (__argp_basename) [!_LIBC]: Remove; the only use was
73839         replaced by its body.
73840         (__argp_short_program_name): Change condition from
73841         !defined __argp_short_program_name to
73842         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
73843         to match argp-namefrob.h.
73844         (__argp_failure): Don't assume strerror_r returns char *.
73845         * lib/argp-parse.c (N_): Define unconditionally.
73846         (argp_default_options): Fill out initializers with 0 to avoid
73847         gcc warnings.
73848
73849 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73850
73851         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
73852         getopt1.c.
73853
73854 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73855
73856         Merge from coreutils.
73857
73858         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
73859
73860         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
73861         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
73862
73863 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73864
73865         Merge from coreutils.
73866
73867         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
73868         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
73869         for Reliant Unix 5.43.
73870
73871         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
73872         (union fooround): Use uintmax_t, not long int.
73873         The rest is a merge from libc:
73874         [defined _LIBC]: Include <shlib-compat.h>.
73875         (_obstack) [defined _LIBC]: Remove after 2.3.4.
73876
73877         * lib/settime.c (settime): Recode to avoid warning with
73878         Sun Forte C 6U2.
73879
73880         * lib/strverscmp.c: Convert to UTF-8.
73881
73882 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73883
73884         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73885         m4/uintmax_t.m4.
73886
73887 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73888
73889         * modules/xalloc-die: New file.
73890         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
73891
73892         * modules/md5 (Files): Add m4/uint32_t.m4.
73893         * modules/sha1: Renamed from modules/sha.
73894         (Files):
73895         Rename lib/sha.h to lib/sha1.h.
73896         Rename lib/sha.c to lib/sha1.c.
73897         Rename m4/sha.m4 to m4/sha1.m4.
73898         (lib_SOURCES): Likewise.
73899         (configure.ac): Rename gl_SHA to gl_SHA1.
73900         (Include): sha.h -> sha1.h.
73901
73902 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73903
73904         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
73905         * m4/sha1.m4: Renamed from sha.m4.
73906         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
73907
73908 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73909
73910         * lib/obstack.h (obstack_empty_p):
73911         Don't assume that chunk->contents is suitably aligned.
73912         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
73913         Likewise. Problem reported by Benno in
73914         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
73915
73916         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
73917         readable.  This could be improved further but it'd take some work.
73918
73919 2004-08-08  Simon Josefsson  <jas@extundo.com>
73920
73921         * modules/xgethostname (Depends-on): Remove exit and error (not
73922         used).
73923
73924         * modules/getpass-gnu: Add getpass.h.
73925         (Depends-on): Add stdbool.
73926         * modules/getpass: Add getpass.h.
73927
73928 2004-08-08  Simon Josefsson  <jas@extundo.com>
73929
73930         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
73931         Check getpass declaration.
73932
73933 2004-08-08  Simon Josefsson  <jas@extundo.com>
73934
73935         * lib/xgethostname.c: Don't include error.h (not used).
73936
73937         * lib/getpass.h: Add.
73938         * lib/getpass.c: Include getpass.h first.
73939
73940 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
73941
73942         * lib/xalloc-die.c: New file.
73943         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
73944         All uses removed.
73945         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
73946         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
73947         xalloc-die.c.
73948         (_, N_, xalloc_die): Move to xalloc-die.c.
73949         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
73950         so that we needn't mess with xalloc_msg_memory_exhausted.
73951
73952         * lib/sha1.h: Renamed from sha.h.
73953         (SHA1_H): Renamed from _SHA_H.
73954         (sha1_ctx): Renamed from sha_ctx.
73955         (sha1_init_ctx): Renamed from sha_init_ctx.
73956         (sha1_process_block): Renamed from sha_process_block.
73957         (sha1_process_bytes): Renamed from sha_process_bytes.
73958         (sha1_finish_ctx): Renamed from sha_finish_ctx.
73959         (sha1_read_ctx): Renamed from sha_read_ctx.
73960         (sha1_stream): Renamed from sha_stream.
73961         (sha1_buffer): Renamed from sha_buffer.
73962         * lib/sha1.c: Likewise; renamed from sha.c.
73963         Do not include <sys/types.h>.
73964         Include <stddef.h> rather than <stdlib.h>.
73965
73966 2004-08-08  Bruno Haible  <bruno@clisp.org>
73967
73968         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
73969         FILESYSTEM_PREFIX_LEN.
73970         * lib/progreloc.c: Likewise.
73971         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
73972
73973 2004-08-06  Simon Josefsson  <jas@extundo.com>
73974
73975         * modules/progname (Depends-on): Don't depend on stdbool.
73976
73977 2004-08-06  Simon Josefsson  <jas@extundo.com>
73978
73979         * modules/getsubopt: New file.
73980         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73981         getsubopt.
73982
73983 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73984
73985         More merge from coreutils.
73986
73987         * m4/utimens.m4, m4/utimecmp.m4: New files.
73988         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
73989         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
73990         prereq.m4, sha.m4: Import changes from coreutils.
73991
73992 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73993
73994         More merge from coreutils.
73995         * modules/raise, modules/readtokens0, modules/utimens:
73996         * modules/utimecmp, module/xnanosleep: New files.
73997         * modules/strftime: Add lib/strftime.h.
73998         Change include from <time.h> to "strftime.h".
73999         * modules/yesno: Add lib/yesno.h.
74000         * modules/backupfile: Remove lib/addext.c.
74001         * modules/euidaccess: Add stat-macros.h.
74002         * modules/canonicalize, modules/euidaccess,
74003         modules/filemode, modules/lchown, modules/makepath,
74004         modules/rmdir, modules/stat: Likewise.
74005
74006 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74007
74008         Merge from tar.
74009         * lib/argp-help.c (make_hol, hol_append): Don't assume that
74010         SIZE_MAX is a valid preprocessor constant.
74011         (__argp_basename): Change from "#ifndef _LIBC"
74012         to "#ifndef __argp_short_program_name", so that
74013         we don't compile these functions for tar.
74014
74015         More merges from coreutils.
74016         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
74017         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
74018         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74019         * lib/addext.c: Remove; no longer needed.
74020         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74021         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74022         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74023         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74024         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74025         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74026         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74027         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74028         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74029         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74030         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74031         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74032         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74033         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74034         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74035         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74036         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74037         Import changes from coreutils.
74038
74039 2004-08-05  Simon Josefsson  <jas@extundo.com>
74040
74041         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74042
74043 2004-08-05  Simon Josefsson  <jas@extundo.com>
74044
74045         * m4/getsubopt.m4: New file.
74046
74047 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74048
74049         Merge from coreutils.
74050
74051         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74052         * m4/getcwd-path-max.m4: New files.
74053
74054         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74055         FILESYSTEM_PREFIX_LEN ->
74056         FILE_SYSTEM_PREFIX_LEN.
74057         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74058         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74059         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74060         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74061
74062         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74063         prerequisite modules now handle the DOS stuff.
74064         Don't check for unistd.h.
74065
74066 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74067
74068         Merge from coreutils.
74069
74070         * lib/.gdb-history: Remove; this doesn't belong here.
74071
74072         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74073         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74074         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74075         * lib/getcwd.c: New files.
74076
74077         * lib/dirname.h: Include <stdbool.h>.
74078         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74079         for consistency with POSIX terminology.  All uses changed.
74080         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74081         (strip_trailing_slashes): Use bool for booleans.
74082         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74083
74084         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74085         sometimes returns a positive errno value even when it succeeds.
74086         (print_errno_message) [!LIBC]: Fall back on strerror if
74087         __strerror_r fails.
74088
74089         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74090         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74091         (longest_relative_suffix): New function.
74092         (path_concat): Use it.  Assume first argument is not NULL.
74093         Port to DOS.  Omit redundant separators.
74094         Report an error instead of returning NULL.
74095         Use mempcpy instead of memcpy.
74096         (xpath_concat): Remove: not declared or used.
74097
74098         * lib/same.h: Include <stdbool.h>
74099         (same_name): Return bool, not int.
74100         * lib/same.c (same_name): Likewise.
74101         (errno): Don't declare; we assume C89 or better now.
74102
74103         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74104         if not already defined.
74105
74106         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74107         * lib/dup-safer.c (errno): Likewise.
74108
74109 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74110
74111         Merge from coreutils.
74112         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74113         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74114         * modules/path-concat: Don't depend on strdup.
74115
74116 2004-08-03  Simon Josefsson  <jas@extundo.com>
74117
74118         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74119         * lib/progname.h: Don't include stdbool.h.
74120
74121 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74122
74123         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74124         * MODULES.html.sh (func_all_modules): Remove fatal.
74125
74126 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74127
74128         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74129
74130 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74131
74132         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74133         working.
74134
74135 2004-08-02  Simon Josefsson  <jas@extundo.com>
74136
74137         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74138         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74139         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74140
74141 2004-08-01  Simon Josefsson  <jas@extundo.com>
74142
74143         * lib/xgetdomainname.c: Include stdlib.h, for free().
74144
74145 2004-07-19  Bruno Haible  <bruno@clisp.org>
74146
74147         * MODULES.html.sh (func_all_modules): Add dummy.
74148
74149 2004-07-16  Simon Josefsson  <jas@extundo.com>
74150
74151         * modules/dummy: New file.
74152
74153 2004-07-16  Simon Josefsson  <jas@extundo.com>
74154
74155         * lib/dummy.c: New file.
74156
74157 2004-07-16  Bruno Haible  <bruno@clisp.org>
74158
74159         * lib/backupfile.h: Add extern "C" for C++.
74160         * lib/closeout.h: Likewise.
74161         * lib/copy-file.h: Likewise.
74162         * lib/findprog.h: Likewise.
74163         * lib/full-write.h: Likewise.
74164         * lib/pathname.h: Likewise.
74165         * lib/progname.h: Likewise.
74166         * lib/stpcpy.h: Likewise.
74167         * lib/stpncpy.h: Likewise.
74168         * lib/strcase.h: Likewise.
74169         * lib/strstr.h: Likewise.
74170         * lib/xalloc.h: Likewise.
74171
74172         * lib/mbswidth.h: Add extern "C" for C++.
74173         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74174
74175 2004-07-13  Robert Millan  <robertmh@gnu.org>
74176
74177         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74178
74179 2004-07-09  Simon Josefsson  <jas@extundo.com>
74180
74181         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74182         failed without this.)
74183
74184 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74185
74186         * modules/chown (Files): Add lib/fchown-stub.c, since
74187         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74188
74189 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74190
74191         * lib/fchown-stub.c: New file.
74192
74193 2004-06-24  Jim Meyering  <jim@meyering.net>
74194
74195         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74196
74197 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74198
74199         * modules/argz: Omit "#include".
74200
74201         * MODULES.html.sh (func_all_modules): Add calloc, to match
74202         2004-06-01 addition of calloc module.
74203
74204 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74205
74206         * m4/argz.m4: New file, which is autoupdated from libtool.
74207
74208 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74209
74210         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74211         libtool.
74212
74213 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74214
74215         * config/srclist-update: Don't insist on "USA." before the
74216         close-comment, as libtool omits the period and puts the */ on a
74217         separate line.
74218         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74219         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74220
74221 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74222
74223         * modules/argz: New file.
74224         * MODULES.html.sh (func_all_modules): Add argz.
74225
74226 2004-06-12  Jim Meyering  <jim@meyering.net>
74227         and  Paul Eggert  <eggert@cs.ucla.edu>
74228
74229         * modules/hash (Files): Add lib/xalloc.h.
74230         * modules/pipe (Depends-on): Add wait-process.
74231         * modules/stat (Depends-on): Add xalloc.
74232         * modules/userspec (Files): Add lib/userspec.h.
74233         * modules/xstrto
74234
74235         Upgrade from gettext-0.13.
74236         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
74237         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
74238         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
74239
74240 2004-06-10  Jim Meyering  <jim@meyering.net>
74241
74242         * lib/calloc.c: New file.
74243
74244 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
74245
74246         * lib/getdate.y (yylex): Allow space between sign and number.
74247         Problem reported by Dan Jacobson.
74248
74249 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74250
74251         Merge from coreutils CVS.
74252
74253         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
74254         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
74255         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
74256         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
74257         xstrtol.m4: Fix copyright date and/or serial number.
74258
74259         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
74260         See if we need an fchown replacement.
74261         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
74262         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
74263         and use the replacement function if we detect either defect.
74264
74265         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
74266         gl_UTIMECMP.
74267
74268 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74269         and  Jim Meyering  <jim@meyering.net>
74270
74271         Merge from coreutils CVS.
74272
74273         * lib/stat-macros.h: New file, with contents from file-type.h
74274         and coreutils' system.h.
74275         * lib/file-type.c: Include "stat-macros.h".
74276         * lib/file-type.h (file_type): Move all macro definitions to new file,
74277         stat-macros.h.
74278
74279         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
74280         Wrap old code with this conditional.
74281         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
74282         function that does not dereference symlinks.
74283         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
74284
74285         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
74286         dependency problems.
74287         (xreadlink): Accept new arg SIZE, for efficiency.
74288         All decls and uses changed.
74289         * lib/xreadlink.h: Include <stddef.h>, for size_t.
74290
74291         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
74292         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
74293
74294         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
74295         sysexits.h.
74296
74297 2004-06-01  Jim Meyering  <jim@meyering.net>
74298
74299         * m4/calloc.m4: New file.
74300
74301 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
74302
74303         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
74304         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
74305         Also, fix a typo in a diagnostic.
74306
74307 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74308
74309         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
74310         or AC_FUNC_REALLOC.
74311
74312 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74313
74314         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
74315         macros to be defined.
74316         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
74317         the allocator returns NULL because the requested size is zero.
74318
74319 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74320
74321         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
74322         var.  Add comment explaining why libc still defines it.  This
74323         merges the following patch from glibc:
74324         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
74325
74326 2004-05-20  Andreas Schwab  <schwab@suse.de>
74327
74328         * m4/free.m4: Replace free if it not known to work, not the other
74329         way round.
74330
74331 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74332
74333         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74334         present in glibc since revision 1.1 of this file.
74335         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74336         obstack_alignment_mask, obstack_alloc, obstack_base,
74337         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74338         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74339         obstack_grow0, obstack_init, obstack_int_grow,
74340         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74341         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74342         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74343         nonexistent functions.
74344
74345 2004-05-18  Karl Berry  <karl@gnu.org>
74346
74347         * config/srclist.txt: break link for vasnprintf.c.
74348
74349 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74350
74351         Port obstack to the AS/400, where pointers are 16 bytes wide and
74352         you cannot cast an integer to a valid pointer.  This patch is
74353         currently waiting to be integrated into glibc; see
74354         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74355
74356         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74357         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74358         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74359         (struct obstack): temp member is now a union of a pointer and
74360         an integer, instead of an integer.  All integer uses changed.
74361         This does not affect the physical layout of struct obstack,
74362         except on hosts (like the AS/400) where the size or alignment of
74363         void * is greater than that of ptrdiff_t.
74364         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74365         __STDC__)]: Store temporary in pointer member of union, not
74366         integer member.
74367         * lib/obstack.c: Include <stddef.h>, for offsetof.
74368         (struct fooalign): Remove; it doesn't need a name.
74369         (union fooround): Change double to long double, and add void *.
74370         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74371         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74372         not a macro.  Hence the values are always int; so remove all
74373         casts-to-int in uses.
74374
74375 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74376
74377         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74378         we can get this patch merged into glibc.
74379
74380 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74381             Paul Eggert  <eggert@cs.ucla.edu>
74382
74383         * m4/argp: Depend on alloca.
74384
74385 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74386             Paul Eggert  <eggert@cs.ucla.edu>
74387
74388         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74389         freecoding.
74390
74391 2004-05-17  Bruno Haible  <bruno@clisp.org>
74392
74393         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74394         precision that consists of a '.' followed by an empty digit string.
74395         Patch by Tor Lillqvist <tml@iki.fi>.
74396
74397 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74398
74399         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74400         for backward compatibility with older code.  We need our own
74401         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
74402         it under some other name, and our alloca.h will define it.
74403
74404 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74405             Derek Price  <derek@ximbiot.com>
74406
74407         * lib/alloca.c: Include <alloca.h>, to get our interface.
74408         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
74409         include <alloca.h> first.  Use C89 prototype for alloca; this
74410         requires including <stddef.h> for size_t.  Use extern "C" if C++.
74411         Use #elif for simplicity, since we can assume C89 now.
74412         Don't try to source the system alloca.h since it will not be found
74413         and to prevent recursively including its replacement.
74414         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
74415         * lib/regex.c: Likewise.
74416
74417 2004-05-16  Derek Price  <derek@ximbiot.com>
74418             Paul Eggert  <eggert@cs.ucla.edu>
74419
74420         getline cleanup.  This changes the getndelim2 API: both order of
74421         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
74422         no delimiter).
74423
74424         * lib/getline.c: Don't include stddef.h or stdio.h, since our
74425         interface does that.
74426         (getline): Always use getdelim, so that we don't have two
74427         copies of this code.
74428         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
74429         if available.
74430         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
74431         (GETNDELIM2_MAXIMUM): New macro.
74432         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
74433         instead of the old practice of delim2==0.  All callers changed.
74434         Return -1 on overflow, instead of returning junk.
74435         Do not set *linesize unless allocation succeeds.
74436         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
74437         that we include sys/types.h.
74438         * lib/getnline.h: Likewise.
74439         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
74440         (getndelim2): Reorder arguments.
74441         * lib/getnline.c (getnline, getndelim):
74442         Don't discard the NMAX argument.
74443         (getnline): Invoke getndelim, to avoid code duplication.
74444         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
74445         of (size_t) -1 by callers of the getnline family.
74446
74447 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74448
74449         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
74450         Check for gettimeofday.
74451         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
74452         Check for settimeofday, stime.
74453
74454 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74455
74456         * lib/nanosleep.c (suspended): Change its type from int to
74457         sig_atomic_t volatile.
74458         (first_call): Make it private to rpl_nanosleep, and have it
74459         be zero initially as that's a bit faster.
74460         (my_usleep): Round up fractional times instead of truncating them,
74461         as this is the usual meaning for 'sleep'.
74462
74463         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
74464         doesn't work.
74465         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
74466         (ENOSYS): Define if not defined.
74467         (settime): Fall back on stime if it exists and settimeofday fails.
74468         But don't bother with fallbacks if a method fails with errno == EPERM.
74469
74470 2004-05-11  Jim Meyering  <jim@meyering.net>
74471
74472         Prior to this change, the save_cwd caller required read access to the
74473         current directory on most systems (ones with the fchdir function).
74474
74475         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
74476         fails, try write-only, and finally, resort to using xgetcwd.
74477
74478 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74479
74480         * lib/obstack.c, obstack.h: Import changes from libc.
74481
74482 2004-04-28  Bruno Haible  <bruno@clisp.org>
74483
74484         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
74485         also implicitly appends .exe to executables.
74486         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
74487         accepts Windows pathnames.
74488         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74489         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74490         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74491         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74492         Reported by Derek Robert Price <derek@ximbiot.com>.
74493
74494 2004-04-21  Karl Berry  <karl@gnu.org>
74495
74496         * config/srclist.txt (localcharset.c): break sync.
74497
74498 2004-04-20  Paul Eggert  <eggert@twinsun.com>
74499
74500         * m4/host-os.m4: Add a copyright notice.
74501
74502 2004-04-20  Jim Meyering  <jim@meyering.net>
74503
74504         Change UTILS_ to gl_ in AC_DEFINE'd names.
74505         Change utils_- and jm_-prefixed variables, too.
74506         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
74507         UTILS_FUNC_MKDIR_TRAILING_SLASH.
74508         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
74509
74510         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
74511         Don't emit trailing blanks.
74512         Also rename jm_-prefixed variables to have gl_ prefix.
74513
74514         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
74515         Also rename jm_-prefixed variables to have gl_ prefix.
74516
74517         * m4/jm-macros.m4: Reflect the renamings.
74518         * m4/prereq.m4: Likewise.
74519
74520 2004-04-20  Jim Meyering  <jim@meyering.net>
74521
74522         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
74523         memory.
74524
74525 2004-04-20  Jim Meyering  <jim@meyering.net>
74526             Bruno Haible  <bruno@clisp.org>
74527
74528         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
74529         memory when realloc fails.
74530
74531 2004-04-19  Jim Meyering  <jim@meyering.net>
74532
74533         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
74534         now that readutmp.c may call `free (0)'.
74535
74536 2004-04-19  Bruno Haible  <bruno@clisp.org>
74537
74538         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
74539         * m4/inttypes_h.m4: Likewise.
74540         * m4/stdint_h.m4: Likewise.
74541         * m4/intmax_t.m4: Likewise.
74542         * m4/uintmax_t.m4: Likewise.
74543
74544 2004-04-18  Jim Meyering  <jim@meyering.net>
74545
74546         * m4/prereq.m4: Don't forbid jm_ prefix.
74547
74548         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
74549         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
74550         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
74551         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
74552         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
74553         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
74554         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
74555         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
74556         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
74557         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
74558         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
74559         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
74560         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
74561         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
74562         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
74563         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
74564         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
74565         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
74566         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
74567
74568 2004-04-18  Jim Meyering  <jim@meyering.net>
74569
74570         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
74571         failure, don't leak memory and do call END_UTMP_ENT.
74572
74573 2004-04-16  Jim Meyering  <jim@meyering.net>
74574
74575         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
74576         coreutils' stat program.
74577         (gl_PREREQ): Don't require jm_PREREQ_STAT.
74578
74579 2004-04-11  Paul Eggert  <eggert@twinsun.com>
74580
74581         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
74582         C89.
74583         (CHAR_BIT): Remove, since we assume C89.
74584         Include <stdint.h> if available, as per current Autoconf CVS advice.
74585
74586 2004-03-31  Jim Meyering  <jim@meyering.net>
74587
74588         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
74589         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
74590         * m4/xalloc.m4: Likewise.
74591
74592 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74593
74594         Merge from coreutils.
74595
74596         * m4/inttostr.m4: New file.
74597         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
74598         Require AM_STDBOOL_H and gl_TIMESPEC instead.
74599         Require gl_CLOCK_TIME.
74600         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
74601
74602 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74603
74604         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
74605         not bool, to be more consistent with Unix conventions.
74606         Suggested by Bruno Haible.
74607
74608         Merge from coreutils.
74609
74610         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
74611         * lib/umaxtostr.c: New files.
74612
74613         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
74614         the usual <time.h> dance.
74615         (get_date): Change signature to support fractional time stamps.
74616         All callers changed.
74617         * lib/getdate.y: Include "getdate.h" first, as we can now
74618         assume C89 and don't need to worry about 'const'.
74619         Similarly, include "unlocked-io.h" near start, not in middle.
74620         Include <limits.h>.
74621         (textint.value): Use long int rather than int.
74622         (textint.digits): Use size_t rather than int.
74623         (BILLION, LOG10_BILLION): New constants.
74624         (parser_control): New member rel_ns.  Members day_ordinal,
74625         time_zone, month, day, hour, minutes, rel_year, rel_month,
74626         rel_day, rel_hour, rel_minutes, rel_seconds
74627         are now long int, not int.  Member seconds is now struct timespec,
74628         not int.  New member timespec_seen.  Members dates_seen, days_seen,
74629         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
74630         not int.
74631         (%union.intval): Now long int, not int.
74632         New member timespec.
74633         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
74634         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
74635         (spec): Now is a timespec or an item list.
74636         (timespec, items): New nonterminals.
74637         (time, rel, relunit, number, get_date):
74638         Add support for fractional seconds.
74639         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
74640         (gmtime, localtime, mktime): Remove decls; not needed with C89.
74641         (to_hour): First arg is now long int, not int.
74642         (to_year): Returns long int, not int.
74643         Don't treat year -70 like 70.
74644         (tm_diff): Returns long int, not int.
74645         (lookup_word): Use bool instead of int when appropriate.
74646         (yylex): Use size_t for count, not int.
74647         Detect overflow when parsing large integer constants.
74648         Add support for fractions.
74649         (get_date): Make pointers 'const' if possible.
74650         Use more-portable code to detect integer overflow.
74651         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
74652         Don't use ctime; it's not reliable if the year has >4 digits.
74653
74654         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
74655         This is for compatibility with BSD.
74656
74657         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
74658         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
74659         From coreutils' system.h.
74660
74661         * lib/userspec.c: Don't include "posixver.h".
74662         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
74663         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
74664         compatible extension.  Simplify code by removing a boolean int
74665         that was always nonzero if a string was nonnull.
74666
74667 2004-03-30  Jim Meyering  <jim@meyering.net>
74668
74669         Merge from coreutils.
74670
74671         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
74672         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
74673         on some systems one must include <grp.h> before it.
74674         Reported by Christian Krackowizer.
74675
74676 2004-03-30  Jim Meyering  <jim@meyering.net>
74677
74678         Merge from coreutils.
74679
74680         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
74681
74682         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
74683         an empty input stream.
74684
74685         * lib/readtokens.c: Include <stdbool.h>.
74686         (readtoken): Use `size_t' rather than int/long.
74687         All callers adjusted.
74688         Use `bool' rather than `int' where appropriate.
74689         Use memset rather than an explicit loop.
74690         Use x2nrealloc rather than xrealloc.
74691         Allow the use of `\0' as a delimiter.
74692         (readtokens): Likewise.
74693         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
74694
74695 2004-03-30  Jim Meyering  <jim@meyering.net>
74696
74697         * m4/realloc.m4: Remove file, since now it does no more than
74698         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
74699         the `configure.ac' section of module/realloc.
74700         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
74701
74702 2004-03-30  Bruno Haible  <bruno@clisp.org>
74703
74704         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
74705         nonnull.
74706
74707 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74708
74709         Merge changes to getloadavg.c from coreutils and Emacs.
74710
74711         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
74712         Define to an expression, not to the empty string.
74713         Include cloexec.h and xalloc.h.
74714         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
74715         Use set_cloexec_flag rather than rolling our own.
74716         * lib/cloexec.c, lib/cloexec.h: New files.
74717
74718 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74719
74720         * m4/cloexec.m4: New file.
74721
74722 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74723
74724         * lib/getopt.h: Sync with libc CVS.
74725
74726 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74727             Bruno Haible  <bruno@clisp.org>
74728
74729         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
74730         mbswidth.
74731
74732 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74733             Bruno Haible  <bruno@clisp.org>
74734
74735         * lib/mbswidth.h: Include <wchar.h> only if
74736         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
74737         <wchar.h>.
74738         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
74739
74740 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74741
74742         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
74743         Sync with libc CVS.
74744         * lib/getopt_int.h: New file, also synced from libc.
74745
74746 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74747
74748         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
74749         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
74750         Bring back getopt.c, getopt.h, getopt1.c.
74751
74752 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74753
74754         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
74755         All uses changed.  Check for sa_sigaction member; this fixes
74756         a bug first reported by Jason Andrade in
74757         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74758
74759 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74760
74761         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
74762         '#if' expressions.  Unlike the code it replaces, it does not
74763         depend on (defined _SC_PAGESIZE).  However, it does depend on
74764         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
74765         first reported by Jason Andrade in
74766         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74767
74768 2004-02-25  Simon Josefsson  <jas@extundo.com>
74769
74770         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
74771
74772 2004-02-25  Simon Josefsson  <jas@extundo.com>
74773
74774         * lib/strdup.h: New file.
74775         * lib/strdup.c: Include it.
74776         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
74777         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
74778
74779 2004-02-23  Karl Berry  <karl@gnu.org>
74780
74781         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
74782         (from fencepost.gnu.org:/gd/gnuorg).
74783
74784 2004-02-23  Karl Berry  <karl@gnu.org>
74785
74786         * config/srclistvars.sh (GNUORG) [karl]: redefine.
74787         * config/srclist.txt: add maintain/standards documents.
74788
74789 2004-02-18  Bruno Haible  <bruno@clisp.org>
74790
74791         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
74792         Reported by Derek Robert Price <derek@ximbiot.com>.
74793
74794 2004-02-16  Karl Berry  <karl@gnu.org>
74795
74796         * config/mkinstalldirs, install-sh: update from automake.
74797
74798 2004-02-06  Karl Berry  <karl@gnu.org>
74799
74800         * m4/po.m4: update from gettext 0.14.1.
74801
74802 2004-02-06  Karl Berry  <karl@gnu.org>
74803
74804         * lib/config.charset: update from gettext 0.14.1.
74805
74806 2004-02-05  Paul Eggert  <eggert@twinsun.com>
74807
74808         Add comments and code, prompted by suggestions from Bruno Haible
74809         for sh-quote.
74810         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
74811         describing the enum quoting_style values.
74812         * lib/quotearg.c (quotearg_alloc): New function.
74813         (quotearg_buffer_restyled): Treat lone { and } as special.
74814         Treat = as special.  Work around bug with older shells
74815         that "see" a '\' that is really the 2nd byte of a multibyte char.
74816         Quote empty string with shell_quoting_style.
74817
74818 2004-02-03  Bruno Haible  <bruno@clisp.org>
74819
74820         * m4/pipe.m4: New file, from GNU gettext.
74821
74822 2004-02-03  Bruno Haible  <bruno@clisp.org>
74823
74824         * lib/pipe.h: New file, from GNU gettext.
74825         * lib/pipe.c: New file, from GNU gettext.
74826
74827 2004-01-27  Bruno Haible  <bruno@clisp.org>
74828
74829         * m4/execute.m4: New file, from GNU gettext.
74830
74831 2004-01-27  Bruno Haible  <bruno@clisp.org>
74832
74833         * lib/execute.h: New file, from GNU gettext.
74834         * lib/execute.c: New file, from GNU gettext.
74835         * lib/w32spawn.h: New file, from GNU gettext.
74836
74837 2004-01-24  Paul Eggert  <eggert@twinsun.com>
74838
74839         Merge from diffutils.
74840
74841         * lib/file-type.c (file_type): Add typed memory objects.
74842         * lib/file-type.h (S_TYPEISTMO): New macro.
74843
74844         * lib/c-stack.h (c_stack_action): Remove argv argument.
74845         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
74846         (die): Don't calculate message unless segv_action returns.
74847         (get_stack_location, min_address_from_argv, max_address_from_argv,
74848         volatile stack_base, volatile_stack_size): Remove.
74849         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
74850         that every segmentation violation is a stack overflow.  (Ouch!)
74851         See Debian bug 136249 (still outstanding) for more info about why
74852         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
74853
74854 2004-01-24  Paul Eggert  <eggert@twinsun.com>
74855
74856         Exit-status fix from coreutils.
74857
74858         Use exit_failure consistently in place of EXIT_FAILURE,
74859         so that program exit statuses are consistent on failure.
74860
74861         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
74862         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
74863         * lib/argmatch.h: Comment fix to match the above.
74864         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
74865         Now a macro referring to exit_failure, instead of a separate
74866         variable.  Include "exitfail.h" to get it.
74867         * lib/xstrtol.h: Include "exitfail.h".
74868         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
74869
74870         * lib/long-options.c (parse_long_options): Use prototype
74871         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
74872         for clarity.
74873
74874 2004-01-21  Jim Meyering  <jim@meyering.net>
74875
74876         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
74877         so as not to conflict with a different-sized __mktime_internal
74878         function in GNU libc.
74879         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
74880         Problem building statically-linked `ls' reported by Michael Brunnbauer.
74881
74882 2004-01-20  Karl Berry  <karl@gnu.org>
74883
74884         * config/config.guess: update from config.
74885
74886         * config/srclistvars.sh: GNUWWWLICENSES for karl.
74887
74888 2004-01-20  Bruno Haible  <bruno@clisp.org>
74889
74890         Safer stack allocation.
74891         * lib/setenv.c: Include allocsa.h.
74892         (alloca): Remove fallback definition.
74893         (freea): Remove macro.
74894         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
74895         instead of freea.
74896
74897 2004-01-20  Bruno Haible  <bruno@clisp.org>
74898
74899         * m4/eealloc.m4: New file, from GNU gettext.
74900
74901 2004-01-20  Bruno Haible  <bruno@clisp.org>
74902
74903         * m4/allocsa.m4: New file, from GNU gettext.
74904
74905 2004-01-20  Bruno Haible  <bruno@clisp.org>
74906
74907         * lib/xallocsa.h: New file, from GNU gettext.
74908         * lib/xallocsa.c: New file, from GNU gettext.
74909
74910 2004-01-20  Bruno Haible  <bruno@clisp.org>
74911
74912         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
74913
74914 2004-01-20  Bruno Haible  <bruno@clisp.org>
74915
74916         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
74917         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
74918         specially.
74919
74920 2004-01-20  Bruno Haible  <bruno@clisp.org>
74921
74922         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
74923         patch.
74924
74925 2004-01-20  Bruno Haible  <bruno@clisp.org>
74926
74927         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
74928
74929 2004-01-20  Bruno Haible  <bruno@clisp.org>
74930
74931         * lib/eealloc.h: New file.
74932
74933 2004-01-20  Bruno Haible  <bruno@clisp.org>
74934
74935         * lib/binary-io.h: Avoid warnings on Cygwin.
74936
74937 2004-01-20  Bruno Haible  <bruno@clisp.org>
74938
74939         * lib/allocsa.h: New file, from GNU gettext.
74940         * lib/allocsa.c: New file, from GNU gettext.
74941
74942 2004-01-18  Karl Berry  <karl@gnu.org>
74943
74944         * doc/gpl.texi, doc/lgpl.texi: new files.
74945
74946 2004-01-18  Karl Berry  <karl@gnu.org>
74947
74948         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
74949         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
74950
74951 2004-01-15  Paul Eggert  <eggert@twinsun.com>
74952
74953         Merge from coreutils.
74954
74955         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
74956         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
74957         (gl_DEFAULT_POSIX2_VERSION): Move
74958         the documentation from 'configure' into 'config.hin',
74959         so that 'configure --help' isn't burdened by it and
74960         we don't have to worry about its formatting there.
74961         Reword the documentation so that it's more succinct
74962         and can be run together into a single paragraph.
74963         * m4/same.m4 (gl_SAME): Check for pathconf.
74964
74965 2004-01-15  Paul Eggert  <eggert@twinsun.com>
74966
74967         Merge from coreutils.
74968
74969         * lib/posixver.c: Include posixver.h.
74970
74971         * lib/same.c: Include <stdbool.h>, <limits.h>.
74972         (_POSIX_NAME_MAX): Define if not defined.
74973         (MIN): New macro.
74974         (same_name): If file names are silently truncated, report
74975         that the file names are the same if they are the same after
74976         the silent truncation.
74977
74978         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
74979         conversion function.
74980         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
74981         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
74982         longer needed.
74983
74984 2004-01-15  Jim Meyering  <jim@meyering.net>
74985
74986         Merge from coreutils.
74987
74988         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
74989         if no library is required.
74990         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
74991         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
74992         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
74993         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
74994         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
74995         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
74996         value, $ac_cv_search_crypt, if it's "none required".
74997         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
74998         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
74999         not gl_FUNC_GETLOADAVG.
75000         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
75001         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
75002
75003 2004-01-15  Jim Meyering  <jim@meyering.net>
75004
75005         Merge from coreutils.
75006
75007         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
75008         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
75009         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
75010
75011         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
75012         optional configure-time default.
75013
75014         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75015
75016         * lib/xreadlink.c (xreadlink): Correct outdated comment.
75017
75018 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75019
75020         Merge from coreutils.
75021
75022         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75023         value, $ac_cv_search_nanosleep, if it's "none required".
75024
75025 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75026
75027         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75028         with like-named macro in fnmatch.c.
75029         (EXT): Use an internal constant instead.
75030
75031         Merge fnmatch patches from glibc.
75032         * lib/fnmatch.c (mbsinit): Remove define.
75033         Add libc_hidden_ver (__fnmatch, fnmatch).
75034         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75035         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75036
75037 2004-01-14  Karl Berry  <karl@gnu.org>
75038
75039         * config/install-sh: update from automake.
75040
75041 2004-01-13  Karl Berry  <karl@gnu.org>
75042
75043         * config/install-sh: update from automake.
75044
75045 2004-01-09  Karl Berry  <karl@gnu.org>
75046
75047         * config/install-sh: update from automake.
75048
75049 2004-01-05  Karl Berry  <karl@gnu.org>
75050
75051         * config/config.{sub,guess}: update from config.
75052
75053 2003-12-31  Karl Berry  <karl@gnu.org>
75054
75055         * config/depcomp: update from automake.
75056
75057 2003-12-14  Karl Berry  <karl@gnu.org>
75058
75059         * lib/config.charset: update from gettext-runtime.
75060
75061 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75062
75063         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75064         Bug reported by Alfred M. Szmidt.
75065
75066 2003-12-03  Bruno Haible  <bruno@clisp.org>
75067
75068         * m4/gettext.m4: Upgrade from gettext-0.13.
75069         * m4/po.m4: Upgrade from gettext-0.13.
75070         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75071         * m4/intmax.m4: New file, from gettext-0.13.
75072         * m4/printf-posix.m4: New file, from gettext-0.13.
75073
75074 2003-11-29  Karl Berry  <karl@gnu.org>
75075
75076         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75077
75078 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75079             Bruno Haible  <bruno@clisp.org>
75080
75081         * lib/printf-parse.h: Don't include sys/types.h.
75082         (ARG_NONE): New macro.
75083         (char_directive): Change type of *arg_index fields to size_t.
75084         * lib/printf-parse.c: Don't include sys/types.h.
75085         (SSIZE_MAX): Remove macro.
75086         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75087         Remove unnecessary overflow check.
75088         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75089         fields.
75090
75091 2003-11-25  Bruno Haible  <bruno@clisp.org>
75092
75093         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75094
75095 2003-11-25  Bruno Haible  <bruno@clisp.org>
75096
75097         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75098         gt_TYPE_SSIZE_T.
75099
75100 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75101
75102         * modules/alloca: Remove dependency on xalloc.
75103
75104 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75105
75106         * lib/alloca.c: Remove dependency on xalloc module.
75107         (xalloc_die): Remove.
75108         (memory_full) [!defined emacs]: New macro.
75109         [!defined emacs]: Don't include xalloc.h.
75110         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75111         address arithmetic overflows.  Change datatypes a bit to avoid
75112         unnecessary casts.
75113
75114 2003-11-22  Jim Meyering  <jim@meyering.net>
75115
75116         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75117         s/size/size_t/.
75118
75119 2003-11-21  Karl Berry  <karl@gnu.org>
75120
75121         * config/config.{sub,guess}: update from config.
75122
75123 2003-11-18  Karl Berry  <karl@gnu.org>
75124
75125         * config/config.{sub,guess}: update from config.
75126
75127         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75128
75129 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75130
75131         * README: Mention that S+T cannot overflow if S is the size of
75132         an existing object and T is sufficiently small.
75133
75134 2003-11-17  Jim Meyering  <jim@meyering.net>
75135
75136         On systems without utime and without a utimes function capable of
75137         dealing with a NULL struct utimbuf* argument, this utime replacement
75138         could -- in unusual circumstances -- leak a file descriptor.
75139         * lib/utime.c: Include <unistd.h> and <errno.h>.
75140         (utime_null): Be sure to close `fd' and to preserve errno.
75141         Reported by Geoff Collyer via Arnold Robbins.
75142
75143 2003-11-17  Bruno Haible  <bruno@clisp.org>
75144
75145         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75146         (Depends-on): Add xsize.
75147
75148 2003-11-17  Bruno Haible  <bruno@clisp.org>
75149
75150         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75151
75152 2003-11-17  Bruno Haible  <bruno@clisp.org>
75153
75154         * lib/vasnprintf.c (alloca): Remove fallback definition.
75155         (freea): Remove definition.
75156         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75157         Reported by Paul Eggert.
75158
75159 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75160             Bruno Haible  <bruno@clisp.org>
75161
75162         Protect against address arithmetic overflow.
75163         * lib/printf-args.h: Include stddef.h.
75164         (arguments): Change type of field 'count' to size_t.
75165         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75166         'unsigned int' where appropriate.
75167         * lib/printf-parse.h: Include sys/types.h.
75168         (char_directive): Change type of *arg_index fields to ssize_t.
75169         (char_directives): Change type of fields 'count', max_*_length to
75170         size_t.
75171         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75172         (SSIZE_MAX): Define fallback value.
75173         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75174         instead of 'int' where appropriate. Check a_allocated, d_allocated
75175         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75176         * lib/vasnprintf.c: Include xsize.h.
75177         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75178         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75179         overflow. Avoid wraparound when converting a width or precision from
75180         decimal to binary.
75181
75182 2003-11-16  Bruno Haible  <bruno@clisp.org>
75183
75184         Update from GNU gettext.
75185         * lib/printf-parse.c: Generalize to it can be compiled for wide
75186         strings.
75187         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75188         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75189         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75190         SNPRINTF): New macros.
75191         Don't include <alloca.h> if the file is used inside libintl.
75192         (local_wcslen): New function, for Solaris 2.5.1.
75193         (VASNPRINTF): Use it instead of wcslen.
75194
75195 2003-11-16  Bruno Haible  <bruno@clisp.org>
75196
75197         * lib/xsize.h (xmax): New function.
75198         (xsum, xsum3, xsum4): Declare as "pure" functions.
75199
75200 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75201
75202         * modules/xalloc (Files): Undo latest change, since xalloc.h
75203         no longer needs SIZE_MAX or PTRDIFF_MAX.
75204
75205 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75206
75207         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75208         gl_PTRDIFF_MAX.
75209
75210 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75211
75212         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75213         "return", to pacify some unknown compiler.  Problem reported
75214         by Joerg Schilling.
75215
75216 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75217
75218         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75219         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75220         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75221         heuristic is just as accurate as far as we know, and it removes a
75222         dependency on size_max.m4 and ptrdiff_max.m4.
75223
75224 2003-11-11  Bruno Haible  <bruno@clisp.org>
75225
75226         * modules/xsize (Files): Add m4/size_max.m4.
75227         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75228
75229 2003-11-11  Bruno Haible  <bruno@clisp.org>
75230
75231         * m4/size_max.m4: New file.
75232         * m4/ptrdiff_max.m4: New file.
75233         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75234         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75235         (gl_XALLOC): Invoke it.
75236
75237 2003-11-11  Bruno Haible  <bruno@clisp.org>
75238
75239         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
75240         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
75241         defined.
75242
75243 2003-11-10  Paul Eggert  <eggert@twinsun.com>
75244
75245         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
75246         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
75247         rejected some allocations of exactly SIZE_MAX - 2 bytes.
75248         From Bruno Haible.
75249         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
75250         not (size_t) -1, since it's defined here.
75251
75252 2003-11-09  Karl Berry  <karl@gnu.org>
75253
75254         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
75255
75256 2003-11-06  Paul Eggert  <eggert@twinsun.com>
75257
75258         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
75259         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
75260         Reject sizes of exactly SIZE_MAX bytes.
75261         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
75262         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
75263
75264 2003-11-05  Bruno Haible  <bruno@clisp.org>
75265
75266         * lib/xsize.h: Include limits.h, to avoid a possible collision with
75267         SIZE_MAX defined in <limits.h> on Solaris.
75268
75269 2003-11-04  Jim Meyering  <jim@meyering.net>
75270
75271         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
75272         variable names, rather than @VAR@.
75273         * modules/poll: Likewise.
75274
75275 2003-11-04  Bruno Haible  <bruno@clisp.org>
75276
75277         * modules/xsize: New file.
75278         * modules/linebreak: Depend on xsize.
75279         * MODULES.html.sh (func_all_modules): Add xsize.
75280
75281 2003-11-04  Bruno Haible  <bruno@clisp.org>
75282
75283         * m4/xsize.m4: New file.
75284
75285 2003-11-04  Bruno Haible  <bruno@clisp.org>
75286
75287         * lib/xsize.h: New file.
75288         * lib/linebreak.c: Include xsize.h.
75289         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
75290         argument for overflow.
75291         Suggested by Paul Eggert.
75292
75293 2003-11-03  Karl Berry  <karl@gnu.org>
75294
75295         * config/config.{guess,sub}: update from config.
75296
75297 2003-11-03  Jim Meyering  <jim@meyering.net>
75298
75299         * modules/userspec (lib_SOURCES): Add userspec.h.
75300         (Include): Add "userspec.h".
75301         Improve description.
75302
75303 2003-11-03  Jim Meyering  <jim@meyering.net>
75304
75305         * lib/userspec.c: Include "userspec.h".
75306         * lib/userspec.h: New file.
75307
75308 2003-11-03  Bruno Haible  <bruno@clisp.org>
75309
75310         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
75311
75312 2003-11-03  Bruno Haible  <bruno@clisp.org>
75313
75314         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
75315         available, to avoid (extremely rare) race condition.
75316         Suggested by Paul Eggert.
75317
75318 2003-11-02  Karl Berry  <karl@gnu.org>
75319
75320         * config/srclist.txt (vasprintf.c): sync broken, sigh.
75321
75322 2003-10-31  Paul Eggert  <eggert@twinsun.com>
75323
75324         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
75325         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
75326         (read_filesystem_list): Set and use me_type_malloced.
75327         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75328         whatever the type happens to be), for brevity and consistency.
75329         Check for size calculation overflow on Alphas running OSF/1.
75330
75331 2003-10-31  Jim Meyering  <jim@meyering.net>
75332
75333         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75334
75335         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75336
75337 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75338             Bruno Haible  <bruno@clisp.org>
75339
75340         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75341         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75342
75343 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75344
75345         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75346         netbsd*-gnu*.  Suggested by Robert Millan.
75347
75348 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75349
75350         * modules/group-member: Depend on stdbool.
75351
75352 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75353
75354         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75355
75356 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75357
75358         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75359         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75360         after the 'gnu' in these cases.  This fixes some bugs in the
75361         previous change, and is based on suggestions by Robert Millan.
75362
75363 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75364
75365         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75366         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75367         no longer needed.
75368         * lib/quotearg.c (quotearg_n_options): Use it.
75369         * lib/group-member.c: Include <stdbool.h>.
75370         (free_group_info): Arg is now const *; don't free arg.
75371         (get_group_info): Now returns bool and accepts struct group_info *,
75372         rather than returning a malloc'ed struct group_info *.
75373         All uses changed.  Check for overflow in internal size calculation.
75374
75375         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75376         rather than xmalloc/xrealloc.
75377         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75378         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75379         conformance bug: the old code used a pointer after freeing the
75380         storage that it addressed.
75381         * lib/hash.c (hash_initialize): Simplify the code by using
75382         xalloc_oversized rather than doing it by hand.
75383         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75384         the buffer preserved.  Use free and xmalloc instead.
75385         * lib/quotearg.c (quotearg_n_options): Likewise.
75386         Use a simpler test for size overflow.  Don't use xalloc_oversized
75387         because unsigned int might be wider than size_t (!); this suggests
75388         that we should switch from unsigned int to size_t for slot numbers.
75389
75390 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75391
75392         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75393         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75394         NetBSD kernels.  Requested by Richard Stallman.
75395
75396 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75397
75398         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75399         to allocate the returned structure.  Do not allocate a subarray,
75400         as x2nrealloc will do that.
75401         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
75402         instead of xnrealloc.
75403         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
75404
75405 2003-10-27  Bruno Haible  <bruno@clisp.org>
75406
75407         * lib/stdbool_.h: Better support for BeOS.
75408
75409 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75410
75411         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
75412         now uses inline.
75413
75414 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75415
75416         * lib/xalloc.h (xalloc_oversized): New static inline function, for
75417         callers that want to do their own size-overflow checking.  Include
75418         <stdbool.h>, since xalloc_oversized returns bool.
75419         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
75420         to use xalloc_oversized.
75421
75422         Add two functions x2realloc, x2nrealloc, for programs that grow
75423         arrays dynamically by doubling their sizes.
75424         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
75425         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
75426         New functions.
75427
75428         Port to C99 semantics for 'inline' of external functions.
75429         Bug reported by Bruno Haible.
75430         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
75431         with the old contents of xnmalloc.
75432         (xnmalloc, xmalloc): Use it.
75433         (xnrealloc_inline): New static inline function,
75434         with the old contents of xnrealloc.
75435         (xnrealloc, xrealloc): Use it.
75436
75437         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
75438         that.
75439
75440 2003-10-26  Karl Berry  <karl@gnu.org>
75441
75442         * config/srclist.txt (COPYING.DOC): no longer available from
75443         /gd/gnuorg; don't know where the ultimate source is.
75444
75445 2003-10-25  Paul Eggert  <eggert@twinsun.com>
75446
75447         Fix several address-calculation bugs in the hash modules,
75448         plus some minor code cleanup.
75449
75450         * lib/hash.h: Include <stdbool.h>, for bool.
75451         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
75452         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
75453         hash_get_n_entries, hash_get_max_bucket_length,
75454         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
75455         hash_rehash): Use size_t rather than unsigned.
75456         * lib/hash.c (struct hash_table, hash_get_n_buckets,
75457         hash_get_n_buckets_used, hash_get_n_entries,
75458         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
75459         hash_get_entries, hash_do_for_each, hash_string, is_prime,
75460         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
75461         Likewise.
75462         (SIZE_MAX): Define if not defined.
75463         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
75464         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
75465         hash_print):
75466         Use const * when possible.
75467         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
75468         (check_tuning): Fix bug: if tuning parameters were very close to
75469         0 or 1, rounding errors could have caused subscript violations.
75470         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
75471         (hash_initialize): Add 'fail:' label
75472         to free table and return NULL, and use it to simplify code.
75473         Use calloc rather than clearing the storage ourself.
75474         (hash_initialize, hash_rehash): Check for arithmetic overflow in
75475         buffer size calculations.
75476         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
75477         Include <stddef.h>, for size_t.
75478         * lib/hash-pjw.c (hash_pjw): Likewise.
75479         Switch to method described by Bruno Haible.
75480         Include <limits.h>, for CHAR_BIT.
75481         (SIZE_BITS): New macro.
75482
75483 2003-10-23  Paul Eggert  <eggert@twinsun.com>
75484
75485         * m4/getline.m4 (AM_FUNC_GETLINE):
75486         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
75487         hosts.  Problem reported by Derek Robert Price in
75488         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
75489         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
75490         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
75491
75492 2003-10-21  Paul Eggert  <eggert@twinsun.com>
75493
75494         * lib/getndelim2.c (getndelim2): When size calculation overflows,
75495         ceiling the allocation at NMAX bytes rather than silently
75496         discarding input bytes before NMAX is reached.  This makes
75497         a difference only if NMAX exceeds SIZE_MAX / 2.
75498
75499         * lib/obstack.c: Merge from glibc.
75500         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
75501         Add libc_hidden_def (_obstack_newchunk).
75502         (_obstack_free) [! defined _LIBC]: Remove.
75503         [defined _LIBC]: Make a strong alias from obstack_free, rather than
75504         a clone of the function body.
75505         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
75506         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
75507
75508         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
75509         glibc.
75510         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
75511         arg to memcpy.
75512
75513         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
75514         (obstack_ptr_grow_fast, obstack_int_grow_fast):
75515         Don't use lvalue casts, as GCC plans to remove support for them
75516         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
75517         was also present in the non-GCC version, indicating that this
75518         code had always been buggy and had never been widely used.
75519         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
75520         Use the fast variant of each macro, rather than copying the
75521         definiens of the fast variant; that way, we'll be more likely to
75522         catch future bugs in the fast variants.
75523
75524 2003-10-20  Bruno Haible  <bruno@clisp.org>
75525
75526         * modules/wait-process: New file.
75527         * MODULES.html.sh (func_all_modules): Add wait-process.
75528
75529 2003-10-20  Bruno Haible  <bruno@clisp.org>
75530
75531         * m4/wait-process.m4: New file.
75532
75533 2003-10-20  Bruno Haible  <bruno@clisp.org>
75534
75535         * lib/wait-process.h: New file, from GNU gettext.
75536         * lib/wait-process.c: New file, from GNU gettext.
75537
75538 2003-10-19  Jim Meyering  <jim@meyering.net>
75539
75540         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
75541         HPUX 10.20.
75542
75543 2003-10-18  Karl Berry  <karl@gnu.org>
75544
75545         * config/config.guess: update from config.
75546
75547 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75548
75549         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
75550         (getgroups): First arg is int, not size_t.
75551         Don't let 'free' mangle errno.
75552
75553 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75554
75555         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
75556
75557 2003-10-16  Karl Berry  <karl@gnu.org>
75558
75559         * config/config.{guess,sub}: update from config.
75560
75561 2003-10-16  Jim Meyering  <jim@meyering.net>
75562
75563         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
75564         memcpy.
75565
75566 2003-10-15  Paul Eggert  <eggert@twinsun.com>
75567
75568         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
75569         (SIZE_MAX): Remove.
75570         (new_exclude, add_exclude_file): Initial size no longer needs to
75571         be a power of 2.
75572         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
75573         our own address arithmetic overflow checking.
75574
75575         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
75576         (fnmatch): Do not alloca more than 2000 wide characters;
75577         instead, use malloc for large buffers.
75578         Check for address arithmetic overflow, and return -1
75579         with errno set to ENOMEM in that case.
75580         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
75581         (NEW_PATTERN): Do not alloca more than 8000 bytes;
75582         instead, return -1.  Check for address arithmetic overflow.
75583
75584 2003-10-14  Paul Eggert  <eggert@twinsun.com>
75585
75586         Handle invalid suffixes and overflow independently, so that
75587         callers can treat them independently as needed.  Fix some bugs in
75588         suffix handling, e.g., "100k@" was not diagnosed as an invalid
75589         suffix for a human-readable blocksize.  The major caller-visible
75590         change is the addition of a new
75591         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
75592         that both overflow and suffix chars were found.
75593
75594         * lib/human.c (humblock): Don't check separately for invalid suffix
75595         char; that is xstrtoumax's job (now that its bug is fixed).
75596         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
75597         INTMAX_MAX]: New macros.
75598         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
75599         TYPE_MAXIMUM): New macros.
75600         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
75601         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
75602         if overflow occurs, as it's what __strtol does and it's more useful
75603         in practice.
75604         (__xstrtol): If __strtol reports some error other than ERANGE,
75605         reflect it to the caller as LONGINT_INVALID.  If it reports
75606         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
75607         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
75608         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
75609         value.
75610         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
75611         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
75612         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
75613         [defined UINTMAX_MAX]: New macros.
75614
75615 2003-10-14  Bruno Haible  <bruno@clisp.org>
75616
75617         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
75618
75619 2003-10-14  Bruno Haible  <bruno@clisp.org>
75620
75621         * m4/sig_atomic_t: New file, from GNU gettext.
75622         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
75623
75624 2003-10-14  Bruno Haible  <bruno@clisp.org>
75625
75626         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
75627         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
75628         Also use volatile where needed.
75629
75630 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75631
75632         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
75633         Change maintainer from Bruno Haible to 'all'.
75634
75635 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75636
75637         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
75638
75639 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75640
75641         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
75642         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
75643         and define in terms of the other primitives.
75644         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
75645         (SIZE_MAX): Define if not already defined.
75646         (array_size_overflow): New function.
75647         (xalloc_die): Abort instead of exiting if 'error' returns.
75648         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
75649         (xmalloc, xrealloc): Use them.
75650         (xcalloc): Check for address arithmetic overflow.
75651         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
75652         a bit faster than strcpy.
75653
75654 2003-10-10  Simon Josefsson  <jas@extundo.com>
75655
75656         * modules/argp (Depends-on): Add restrict and strcase.
75657
75658 2003-10-10  Simon Josefsson  <jas@extundo.com>
75659
75660         * m4/argp.m4: Add AC_C_INLINE.
75661
75662 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75663
75664         Merge getpass from libc, plus a few fixes.
75665
75666         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
75667         Include <stdbool.h>.
75668         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
75669         __fsetlocking to empty.
75670         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
75671         do include <bits/libc-lock.h>.
75672         Do not include <fcntl.h>; not needed.
75673         [_LIBC]: Include <wchar.h>.
75674         (NOTCANCEL_MODE): New macro.
75675         (flockfile, funlockfile) [_LIBC]: New macros.
75676         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
75677         [!_LIBC]: New macros.
75678         (call_fclose): New function.
75679         (getpass): Use it.  Save tty stream separately; this simplifies the
75680         code and makes it more reliable if stdin happens to equal stdout.
75681         Invoke __fsetlocking on tty.
75682         Handle thread cancellation if needed.
75683         Namespace cleanup (use __tcgetattr, __getline).
75684         Use bool for Booleans.
75685         [USE_IN_LIBIO]: Handle wide streams.
75686         [!_LIBC]: Unconditionally do the fseek, since we don't know what
75687         stream might go where.
75688
75689         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
75690         doesn't have to include <stdio.h> before us.
75691         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
75692         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
75693         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
75694         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
75695         if not declared, so that we can use getpass.c code from libc without
75696         rewriting it.
75697         (flockfile, ftrylockfile, funlockfile): New macros.
75698
75699 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75700
75701         * modules/getpass: Depend on stdbool.
75702
75703 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75704
75705         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
75706
75707 2003-10-07  Karl Berry  <karl@gnu.org>
75708
75709         * config/config.{guess,sub}: update from config.
75710
75711 2003-10-06  Jim Meyering  <jim@meyering.net>
75712             Bruno Haible  <bruno@clisp.org>
75713
75714         This lets translators provide better translations for the
75715         "Written by ..." part of --version output.
75716         * lib/version-etc.h: Include stdarg.h.
75717         (version_etc_copyright): Declare as readonly.
75718         (version_etc): Make this function variadic with a NULL-terminated list
75719         of author name strings.
75720         (version_etc_va): New declaration.
75721         * lib/version-etc.c: Include stdarg.h, stdlib.h.
75722         (version_etc_copyright): Declare as readonly.
75723         (version_etc_va): New function. Provide a different translatable string
75724         for each possible number of authors < 10. Abbreviate when there are 10
75725         authors or more.
75726         (version_etc): Make this function variadic. Call version_etc_va.
75727         Suggestion from Gary V. Vaughan.
75728
75729         * lib/long-options.h (parse_long_options): Change prototype: the
75730         authors string is moved to the end and becomes variadic.
75731         * lib/long-options.c: Include stdarg.h.
75732         (parse_long_options): Make this function variadic, too.
75733         Call version_etc_va, not version_etc.
75734
75735 2003-10-06  Bruno Haible  <bruno@clisp.org>
75736
75737         * modules/version-etc-2: Remove file.
75738         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
75739
75740 2003-10-06  Bruno Haible  <bruno@clisp.org>
75741
75742         * modules/fatal-signal: New file.
75743         * MODULES.html.sh (func_all_modules): Add fatal-signal.
75744
75745 2003-10-06  Bruno Haible  <bruno@clisp.org>
75746
75747         * m4/fatal-signal.m4: New file.
75748         * m4/signalblocking.m4: New file, from GNU gettext.
75749
75750 2003-10-06  Bruno Haible  <bruno@clisp.org>
75751
75752         * lib/version-etc-2.h: Remove file.
75753         * lib/version-etc-2.c: Remove file.
75754
75755 2003-10-06  Bruno Haible  <bruno@clisp.org>
75756
75757         * lib/fatal-signal.h: New file, from GNU gettext.
75758         * lib/fatal-signal.c: New file, from GNU gettext.
75759
75760 2003-10-05  Paul Eggert  <eggert@twinsun.com>
75761
75762         * README: Rework advice for preventing empty .o files.
75763         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
75764         not <sys/types.h>.
75765
75766 2003-10-04  Karl Berry  <karl@gnu.org>
75767
75768         * lib/argp*: update from libc.
75769
75770 2003-10-04  Karl Berry  <karl@gnu.org>
75771
75772         * config/config.{guess,sub}: update from config.
75773
75774 2003-10-02  Bruno Haible  <bruno@clisp.org>
75775
75776         * modules/lchown (Include): Add lchown.h.
75777         * modules/time_r (Include): Use "..." syntax.
75778         * modules/xgetdomainname (Include): Add xgetdomainname.h.
75779
75780 2003-10-01  Simon Josefsson  <jas@extundo.com>
75781
75782         * MODULES.html.sh (func_all_modules): Move gethostname from section
75783         'based on' to section 'lacking' POSIX:2001.
75784
75785 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
75786
75787         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
75788         to output mode on the same stream.
75789
75790 2003-09-29  Paul Eggert  <eggert@twinsun.com>
75791
75792         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
75793         Fix arg typo in previous patch.
75794
75795 2003-09-28  Jim Meyering  <jim@meyering.net>
75796
75797         * lib/error.c: Correct cpp indentation.
75798
75799 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75800
75801         * modules/free: New file.
75802
75803 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75804
75805         * m4/free.m4: New file.
75806
75807 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75808
75809         * lib/minmax.h (MIN, MAX)
75810         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
75811         Omit the special code that used __typeof__, since we worry that
75812         it could be more trouble than it's worth.  See:
75813         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
75814         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
75815
75816         * lib/free.c: New file.
75817
75818 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
75819
75820         Trivial fixes to Makefile.am parts of module listings.
75821         * modules/strstr: Append strstr.h to lib_SOURCES.
75822         * modules/strcase: Likewise, for strcase.h.
75823
75824 2003-09-27  Karl Berry  <karl@gnu.org>
75825
75826         * config/mkinstalldirs: update from automake.
75827
75828 2003-09-26  Paul Eggert  <eggert@twinsun.com>
75829
75830         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
75831         (error_tail): Do not loop, reallocating temporary buffer, since
75832         the output cannot contain more wide characters than the input
75833         contains bytes, the size must be big enough already.  This avoids
75834         one potential size overflow calculation.  Check for size overflow
75835         when calculating temporary buffer size.  Free temporary buffer
75836         when done, if it was allocated with malloc; this plugs a memory
75837         leak.  Remove casts from void * to pointers, that are no longer
75838         needed now that we're assuming C89 or better.
75839
75840         Merge error changes from glibc.
75841
75842         * lib/error.c, error.h: Update copyright notice header to match glibc.
75843         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
75844         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
75845         Disable cancellation while printing error.
75846         * lib/error.h: Prepend __ to parameter names.
75847
75848 2003-09-26  Jim Meyering  <jim@meyering.net>
75849
75850         * lib/error.c (error_tail): Move some declarations
75851         into inner scope where the local variables are used.
75852
75853 2003-09-26  Bruno Haible  <bruno@clisp.org>
75854
75855         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
75856         stpncpy().
75857         Don't define stpncpy through config.h; it's now done through stpncpy.h.
75858
75859 2003-09-26  Bruno Haible  <bruno@clisp.org>
75860
75861         * lib/stpncpy.h (gnu_stpncpy): New declaration.
75862         (stpncpy): Define as alias for gnu_stpncpy.
75863         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
75864
75865 2003-09-25  Simon Josefsson  <jas@extundo.com>
75866
75867         * lib/xgetdomainname.h: New file.
75868         * lib/xgetdomainname.c: New file.
75869
75870 2003-09-25  Simon Josefsson  <jas@extundo.com>
75871             Bruno Haible  <bruno@clisp.org>
75872
75873         * modules/getdomainname: New file.
75874         * modules/xgetdomainname: New file.
75875         * MODULES.html.sh (func_all_modules): Add getdomainname,
75876         xgetdomainname.
75877
75878 2003-09-25  Simon Josefsson  <jas@extundo.com>
75879             Bruno Haible  <bruno@clisp.org>
75880
75881         * m4/getdomainname.m4: New file.
75882
75883 2003-09-25  Simon Josefsson  <jas@extundo.com>
75884             Bruno Haible  <bruno@clisp.org>
75885
75886         * lib/getdomainname.h: New file.
75887         * lib/getdomainname.c: New file.
75888
75889 2003-09-25  Karl Berry  <karl@gnu.org>
75890
75891         * lib/argp-fmtstream.c, argp-help.c: update from libc.
75892
75893 2003-09-25  Karl Berry  <karl@gnu.org>
75894
75895         * config/install-sh: update from automake.
75896
75897 2003-09-25  Bruno Haible  <bruno@clisp.org>
75898
75899         * modules/version-etc-2: New file, from modules/version-etc with
75900         modifications.
75901         * MODULES.html.sh (func_all_modules): Add version-etc-2.
75902
75903 2003-09-25  Bruno Haible  <bruno@clisp.org>
75904
75905         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
75906         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
75907
75908 2003-09-24  Simon Josefsson  <jas@extundo.com>
75909
75910         * modules/xgethostname: Add xgethostname.h.
75911
75912 2003-09-24  Paul Eggert  <eggert@twinsun.com>
75913
75914         * lib/linebuffer.c (freebuffer): Don't free the argument, just
75915         the buffer associated with the argument.  Bug reported by
75916         Simon Josefsson.
75917
75918 2003-09-24  Paul Eggert  <eggert@twinsun.com>
75919
75920         * README: Document assumptions that 'int' is at least 32 bits
75921         wide, that integer arithmetic is 2's complement without overflow,
75922         that there are no holes in integer values, that adding sizes of
75923         two nonoverlapping objects can't overflow, and that all-bits-zero
75924         yields scalar zero.  Fix spelling and capitalization typos.
75925
75926 2003-09-19  Karl Berry  <karl@gnu.org>
75927
75928         * lib/argp.h: update from libc.
75929
75930 2003-09-17  Paul Eggert  <eggert@twinsun.com>
75931
75932         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
75933         to avoid spurious warnings like "AC_RUN_IFELSE was called before
75934         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
75935
75936 2003-09-17  Paul Eggert  <eggert@twinsun.com>
75937
75938         * gnulib-tool: Use "test -h", not "test -L", for portability
75939         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
75940         (tags_regexp): Remove, since \| doesn't conform to POSIX.
75941         (sed_extract_prog): Issue s commands one-by-one, rather than
75942         using \| in one s command.
75943
75944 2003-09-16  Paul Eggert  <eggert@twinsun.com>
75945
75946         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
75947         input error, instead of returning NULL the next time we are called
75948         (and therefore losing track of errno).
75949
75950 2003-09-16  Bruno Haible  <bruno@clisp.org>
75951
75952         * gnulib-tool (func_create_testdir): Warn about duplicated
75953         dependencies.
75954
75955 2003-09-15  Paul Eggert  <eggert@twinsun.com>
75956
75957         * modules/argmatch, modules/fatal, modules/obstack,
75958         modules/xalloc, modules/xgethostname: Sort dependencies by
75959         importance, not alphabetically.
75960
75961 2003-09-15  Paul Eggert  <eggert@twinsun.com>
75962
75963         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
75964         fails, so that the caller gets the proper errno.
75965
75966         * lib/readutmp.c (read_utmp): Likewise.
75967         Check for fstat error.  Close stream and free storage
75968         when failing.
75969
75970 2003-09-14  Karl Berry  <karl@gnu.org>
75971
75972         * config/srclist.txt (strdup.c): disable for c89 changes.
75973
75974 2003-09-14  Jim Meyering  <jim@meyering.net>
75975
75976         * lib/getloadavg.c: Correct cpp indentation.
75977         * lib/strdup.c: Likewise.
75978         * lib/vasnprintf.c: Likewise.
75979
75980 2003-09-14  Bruno Haible  <bruno@clisp.org>
75981
75982         * modules/fwriteerror: New file.
75983         * MODULES.html.sh (func_all_modules): Add fwriteerror.
75984
75985 2003-09-14  Bruno Haible  <bruno@clisp.org>
75986
75987         * lib/fwriteerror.h: New file.
75988         * lib/fwriteerror.c: New file.
75989
75990 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75991
75992         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
75993         modules/xgethostname, modules/xalloc: Depend on exit.
75994
75995 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75996
75997         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
75998
75999         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
76000         and AC_MINIX, too, so that their extensions are available.
76001
76002         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
76003         This macro has been superseded by gl_BACKUPFILE.
76004
76005         More patches to assume C89 or better.
76006
76007         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
76008
76009         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
76010         unconditionally.
76011         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
76012         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
76013         Include <string.h>, <stdlib.h> unconditionally.
76014         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
76015         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
76016         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
76017         headers or for string.h.
76018         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76019         or strtoul.
76020
76021         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76022         headers.
76023         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76024         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76025         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76026         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76027         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76028         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76029         memcpy, memset.
76030         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76031         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76032         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76033         strtol.
76034         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76035         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76036         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76037         strtoul.
76038
76039 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76040
76041         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76042         * lib/obstack.c [!defined _LIBC]: Likewise.
76043         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76044         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76045         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76046
76047         More changes to assume C89 or better.
76048
76049         * lib/error.c (error_tail): Assume vprintf.
76050
76051         * lib/argmatch.c (getenv): Remove decl.
76052         * lib/progreloc.c (get_full_program_name): Define via prototype.
76053         * lib/setenv.c (clearenv): Likewise.
76054         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76055         needed.
76056         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76057         (malloc, memcpy): Remove decls.
76058         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76059         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76060         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76061         (memcpy): Remove macro.
76062         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76063         (__P): Remove.  All uses removed.
76064         (PTR): Remove.  All uses changed to void *.
76065         (CHAR_BIT, NULL): Remove.
76066         (spaces, zeros, memset_space, memset_zero)
76067         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76068         Remove.
76069         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76070         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76071         Define with prototype.
76072         Remove now-unnecessary prototype decl.
76073         (extra_args_spec): Assume ANSI C.  All uses changed.
76074         (extra_args_spec_iso): Remove.
76075         (my_strftime, emacs_strftimeu): Define via prototype.
76076         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76077         unconditionally.
76078         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76079         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76080         (strtoul, strtol): Remove decls.
76081         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76082         LONG_MAX): Remove.
76083         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76084         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76085         (LOCALE_PARAM_PROTO): New macro.
76086         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76087         (INTERNAL (strtol), strtol): Define with a prototype.
76088         (PARAMS): Remove.  All uses removed.
76089         * lib/tempname.c: Include <string.h> unconditionally.
76090         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76091         * lib/xgethostname.c (main): Define with a prototype.
76092         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76093         Include <stdlib.h> unconditionally.
76094         (calloc, malloc, realloc, free): Remove decls.
76095         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76096         Include <stdlib.h> unconditionally.  Sort include file names.
76097         (strtod): Remove.
76098         (xstrtod): Define with a prototype.
76099         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76100         (strtol, strtoul): Remove decls.
76101
76102 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76103
76104         More patches to assume C89 or better.
76105         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76106         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76107         string.h, memchr, STDC_HEADERS.
76108
76109 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76110
76111         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76112         Include <stdlib.h>, <string.h> unconditionally.
76113         Remove now-unnecessary cast to char *.
76114         * lib/strnlen.c: Include <string.h> unconditionally.
76115         * lib/yesno.c (yesno): Define with a prototype.
76116
76117 2003-09-11  Bruno Haible  <bruno@clisp.org>
76118
76119         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76120
76121 2003-09-10  Jim Meyering  <jim@meyering.net>
76122
76123         * lib/error.c: Correct indentation of cpp directives.
76124
76125 2003-09-10  Bruno Haible  <bruno@clisp.org>
76126
76127         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76128         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76129         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76130         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76131         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76132         <stdlib.h> and <string.h> checks.
76133         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76134         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76135
76136 2003-09-10  Bruno Haible  <bruno@clisp.org>
76137
76138         * lib/strcspn.c: Include <string.h> unconditionally.
76139         * lib/strpbrk.c: Include <string.h> unconditionally.
76140         * lib/strstr.c: Include <string.h> unconditionally.
76141         * lib/unicodeio.c: Include <string.h> unconditionally.
76142         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76143         * lib/unsetenv.c: Likewise.
76144         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76145         * lib/yesno.c: Include <stdlib.h> unconditionally.
76146         (rpmatch): Add prototype.
76147
76148 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76149
76150         More patches to assume C89 or better.
76151         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76152         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76153         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76154         or for string.h.
76155         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76156         stdlib.h.
76157         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76158         C headers.
76159         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76160         string.h.
76161         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76162         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76163         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76164         or for string.h.
76165         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76166         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76167         C headers.
76168         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76169         memcpy.
76170         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76171         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76172         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76173         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76174         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76175         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76176         string.h, free.
76177         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76178         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76179         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76180         C headers, or for string.h.
76181         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76182         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76183         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76184         headers, memory.h, stdlib.h, string.h, strings.h.
76185         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76186         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76187         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76188         strchr.
76189         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76190         headers, memory.h, string.h.
76191         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76192         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76193         free.
76194         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76195         headers.
76196         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76197         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76198         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76199         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76200         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76201
76202 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76203
76204         More K&R removal.
76205
76206         * lib/acosl.c (main): Use a prototype.
76207         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76208         tanl.c: Likewise.
76209
76210         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76211
76212         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76213         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76214         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76215         with a prototype.
76216         * lib/getopt.c (const): Remove macro.
76217         Include <string.h> unconditionally.
76218         (my_index): Remove; all uses changed to strchr.
76219         (strlen): Remove decl.
76220         (exchange): Remove forward decl; no longer needed.
76221         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76222         Define with prototype.
76223         * lib/getopt1.c (const): Remove macro.
76224         (getopt_long, getopt_long_only, main): Define with prototype.
76225
76226         * lib/getugroups.c: Include <string.h> unconditionally.
76227
76228         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76229         (getusershell, setusershell, endusershell, readname, main):
76230         Define with prototypes.
76231
76232         * lib/group-member.c: Include group-member.h first.
76233         Include <stdlib.h> unconditionally.
76234
76235         * lib/hard-locale.c: Include hard-locale.h first.
76236         Include <stdlib.h>, <string.h> unconditionally.
76237
76238         * lib/hash.c (free, malloc): Remove decls.
76239         Include <stdlib.h> unconditionally.
76240
76241         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
76242         (getenv): Do not declare.
76243
76244         * lib/idcache.c: Include <string.h> unconditionally.
76245
76246         * lib/long-options.c: Include long-options.h first, to test interface.
76247         Include <stdlib.h> unconditionally.
76248
76249         * lib/makepath.c: Include makepath.h first, to test interface.
76250         Include <stdlib.h> and <string.h> unconditionally.
76251
76252         * lib/linebuffer.c: Include <stdlib.h>.
76253         (free): Remove decl.
76254
76255         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
76256         stddef.h. rpl_malloc returns void *, not char *.
76257         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
76258         prototype.
76259
76260         * lib/md5.h: Include <limits.h> unconditionally.
76261         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
76262         (__P): Remove; all uses removed.
76263         * lib/md5.c: Include "md5.h" first.
76264         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
76265         md5_buffer, md5_process_bytes, md5_process_block):
76266         Define with prototypes.
76267         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
76268         * lib/sha.c: Include "sha.h" first.
76269         Include <stdlib.h>, <string.h> unconditionally.
76270
76271         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
76272         * lib/memcmp.c (__ptr_t): Likewise.
76273         * lib/memrchr.c (__ptr_t): Likewise.
76274         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
76275         Include <string.h> unconditionally.
76276         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
76277         * lib/memchr.c: Include <stdlib.h> unconditionally.
76278         * lib/memchr.c (LONG_MAX): Remove.
76279         * lib/memrchr.c (LONG_MAX): Likewise.
76280         * lib/memchr.c (__memchr): Define via a prototype.
76281         * lib/memrchr.c (__memrchr): Likewise.
76282         * lib/memcmp.c (__P): Remove, and remove all uses.
76283         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
76284         Remove forward decls; no longer needed.
76285         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
76286         Use types required by C89 in prototype.
76287
76288         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
76289         * lib/savedir.c: Likewise.
76290         * lib/mkdir.c (free): Remove decl.
76291         * lib/rmdir.c (rmdir): Define with a prototype.
76292         * lib/savedir.c: Include savedir.h first, to test interface.
76293
76294         * lib/mktime.c (STDC_HEADERS): Remove.
76295         Include <stdlib.h>, <string.h> unconditionally.
76296
76297         * lib/modechange.c: Include <stdlib.h> unconditionally.
76298         (malloc): Remove decl.
76299
76300         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
76301         (free): Remove decl.
76302
76303         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
76304         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
76305         (This type really should be intptr_t, but that's a C99ism.)
76306         (_obstack_memcpy): Remove: all uses changed to memcpy.
76307         Include <string.h> unconditionally.
76308         (struct obstack): Assume __STDC__ for types of members
76309         chunkfun, freefun, extra_arg.
76310         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
76311         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
76312         obstack_begin, obstack_specify_allocation,
76313         obstack_specify_allocation_with_arg, obstack_chunkfun,
76314         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
76315         Remove unprototyped decls and the macros that use them.
76316         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
76317         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
76318         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
76319         (defined __STDC__ && __STDC__)]:
76320         Remove nonprototyped code.
76321         Include <stdlib.h> unconditionally.
76322         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
76323         _obstack_allocated_p, _obstack_free, obstack_free,
76324         _obstack_memory_used, print_and_abort):
76325         Define using prototypes.
76326         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
76327         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76328         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76329         obstack_next_free, obstack_object_size, obstack_room) [0]:
76330         Remove unused, unprototyped code.
76331
76332         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76333
76334         * lib/physmem.c (physmem_total, physmem_available, main): Define
76335         with prototypes.
76336
76337         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76338         (main): Define with a prototype.
76339
76340         * lib/posixver.c (getenv): Remove decl.
76341
76342         * lib/putenv.c (malloc): Returns void *, not char *.
76343         Include <string.h> unconditionally.
76344         (strchr, memcpy, NULL): Do not define.
76345
76346         * lib/readtokens.c: Include readtokens.h first, to test interface.
76347         Include <stdlib.h>, <string.h> unconditionally.
76348         (init_tokenbuffer): Define with a prototype.
76349
76350         * lib/regex.c (PARAMS): Remove.  All uses removed.
76351         All uses of _RE_ARGS removed, too.
76352         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76353         unconditionally.
76354         (bzero): Assume memset exists.
76355         (memcmp, memcpy, NULL): Remove.
76356         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76357         char, or assignments to local vars of type signed char.
76358         (init_syntax_once, PREFIX(extract_number_and_incr),
76359         PREFIX(print_partial_compiled_pattern),
76360         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76361         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76362         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76363         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76364         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76365         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76366         wcs_compile_range, byte_compile_range, truncate_wchar,
76367         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76368         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76369         count_mbs_length, wcs_re_match_2_internal,
76370         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76371         PREFIX(alt_match_null_string_p),
76372         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76373         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76374         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76375         now-unnecessary declaration, if any.
76376         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76377         regcomp, regexec):
76378         Remove now-unnecessary casts among pointer types.
76379         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76380
76381         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76382         (free): Remove decl.
76383
76384         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76385
76386         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76387         (free): Remove decl.
76388
76389         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76390         * lib/xgetcwd.c: Likewise.
76391
76392         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76393         (free): Remove decl.
76394
76395         * lib/strchrnul.c (strchrnul): Define with a prototype.
76396         Fix bug: c_in was not converted to char before searching.
76397
76398         The following changes are not K&R related:
76399
76400         * lib/group-member.h: Include <sys/types.h>, so that this file is
76401         self-contained.
76402         * lib/makepath.h: Likewise.
76403
76404         * lib/getusershell.c (readname, default_index, line_size, readname):
76405         Use size_t, not int, for sizes.
76406         (readname): If the size overflows, report an error instead of
76407         looping forever.
76408
76409 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76410
76411         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
76412         libc.
76413
76414 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76415
76416         * README: New section: portability guidelines.
76417
76418 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76419
76420         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
76421         C89 spec.
76422
76423 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76424
76425         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
76426
76427 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76428
76429         Assume C89 or better; remove K&R cruft.
76430         A few of these changes were first proposed by Derek Robert Price
76431         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
76432
76433         * lib/addext.c: Include <string.h> unconditionally.
76434         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
76435         Don't declare getenv or malloc.
76436
76437         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
76438         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
76439         (NULL): Remove.
76440         (find_stack_direction, alloca): Use prototypes.
76441
76442         * lib/atexit.c (atexit): Define using a prototype.
76443
76444         * lib/basename.c, dirname.c, stripslash.c:
76445         Include <string.h> unconditionally.
76446
76447         * lib/bcopy.c: Include <stddef.h>.
76448         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
76449
76450         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
76451
76452         * lib/error.h (error, error_at_line, error_print_progname)
76453         [! (defined (__STDC__) && __STDC__)]: Remove decls.
76454         * lib/error.c: Include error.h first, to check interface.
76455         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76456         (VA_START): Remove; all uses changeed to va_start.
76457         (exit, strerror): Remove decls.
76458         (error_print_progname): Prototype uncondionally.
76459         Don't include <errno.h>; no longer needed.
76460         (private_strerror): Remove.
76461         (error_tail): Always define.
76462         (error, error_at_line): Assume C89 or better; always use prototypes.
76463         * lib/fatal.c: Include "fatal.h" first, to test interface.
76464         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76465         (VA_START): Remove; all uses changed to va_start.
76466         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
76467         this case.
76468         (exit): Remove decl.
76469         (fatal): Prototype unconditionally.  Assume va_start works.
76470         Abort at end, to pacify gcc.
76471
76472         * lib/euidaccess.c (main): Define with a prototype.
76473
76474         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
76475
76476         * lib/exitfail.c: Include <stdlib.h> unconditionally.
76477
76478         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
76479         prototypes.
76480         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
76481         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
76482         (getenv): Remove decl.
76483         (fnmatch): Define using a prototype.
76484         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
76485         (FCT): Define using a prototype.
76486
76487         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
76488
76489         * lib/gethostname.c: Include <stddef.h>.
76490         (gethostname): Define with prototype.  Length is size_t, not int.
76491
76492 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76493
76494         Assume C89 or better; remove K&R cruft.
76495         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
76496         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
76497         string.h, getenv, malloc.
76498         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
76499         headers.
76500         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
76501         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
76502         do not check for strerror.
76503         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
76504         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
76505         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
76506         do not check for doprnt or vprintf.
76507         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
76508         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
76509
76510 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76511
76512         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
76513         getversion.c should have been removed then, but was accidentally
76514         preserved.
76515
76516         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
76517         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
76518
76519 2003-09-08  Karl Berry  <karl@gnu.org>
76520
76521         * config/config.sub, config.guess, srclistvars.sh: update from savannah
76522                 config, forget about prep.
76523
76524         * config/depcomp, missing: update from automake.
76525
76526 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76527
76528         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
76529         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76530
76531 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76532
76533         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
76534         copy_tm_result.  Bug reported by Simon Josefsson in
76535         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76536
76537 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76538
76539         * m4/time_r.m4: New file.
76540         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
76541         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
76542         is. Check for timegm declaration.
76543         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
76544         Do not check for gmtime_r.
76545         Replace mktime if __mktime_internal does not exist and if mktime
76546         hasn't been replaced already.
76547
76548 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76549
76550         * lib/time_r.c, lib/time_r.h: New files.
76551
76552         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
76553         __localtime_r.
76554         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
76555         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
76556
76557         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
76558         __gmtime_r.
76559         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
76560         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
76561         Include <time_r.h>.
76562
76563         * lib/timegm.c: Switch to glibc implementation, with the following
76564         changes:
76565         [defined HAVE_CONFIG_H]: Include <config.h>.
76566         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
76567         (__mktime_internal) [!defined _LIBC]: New decl.
76568         (__gmtime_r) [!defined _LIBC]: New macro and function.
76569         (timegm): Use a prototype, since gnulib assumes C89.
76570         Do not bother declaring tmp to be const, as it's not really usefu.
76571         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
76572         (timegm): Declare only if HAVE_DECL_TIMEGM.
76573
76574 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76575
76576         * MODULES.html.sh (func_all_modules): Add time_r.
76577         * modules/time_r: New file.
76578         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
76579         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
76580
76581 2003-09-03  Paul Eggert  <eggert@twinsun.com>
76582
76583         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
76584         Bug reported by Lute Kamstra in
76585         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
76586
76587         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
76588         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
76589         course with correspondingly smaller numbers for tomorrow and
76590         yesterday.  From Tadayoshi Funaba.  Originally installed into
76591         sh-utils on 1999-08-07, but the patch got lost (I guess during the
76592         coreutils merge?).
76593
76594 2003-08-31  Simon Josefsson  <jas@extundo.com>
76595
76596         * modules/timegm: New file.
76597         * MODULES.html.sh (func_all_modules): Add timegm.
76598
76599 2003-08-31  Simon Josefsson  <jas@extundo.com>
76600
76601         * m4/timegm.m4: New file.
76602
76603 2003-08-31  Simon Josefsson  <jas@extundo.com>
76604
76605         * lib/timegm.h: New file.
76606         * lib/timegm.c: New file.  Based on
76607         wget-1.8.2/src/http.c:mktime_from_utc.
76608
76609 2003-08-31  Karl Berry  <karl@gnu.org>
76610
76611         * lib/argp.h: update from libc.
76612
76613 2003-08-28  Bruno Haible  <bruno@clisp.org>
76614
76615         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
76616         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
76617         followed by '#define fnmatch fnmatch_posix' gives an error.
76618
76619 2003-08-28  Bruno Haible  <bruno@clisp.org>
76620
76621         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
76622         warning on QNX, which defines O_BINARY to 000000.
76623
76624 2003-08-27  Jim Meyering  <jim@meyering.net>
76625
76626         * m4/mkstemp.m4: Require that the system mkstemp be able to create
76627         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
76628         would fail after 32.  Reported by Danny Levinson.  Details here:
76629         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
76630
76631 2003-08-24  Bruno Haible  <bruno@clisp.org>
76632
76633         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
76634         MSVC7 <stdio.h> is included later.
76635
76636 2003-08-22  Simon Josefsson  <jas@extundo.com>
76637
76638         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
76639
76640 2003-08-20  Karl Berry  <karl@gnu.org>
76641
76642         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
76643
76644 2003-08-20  Bruno Haible  <bruno@clisp.org>
76645
76646         * modules/progname: New file.
76647         * MODULES.html.sh (func_all_modules): Add progname.
76648
76649 2003-08-20  Bruno Haible  <bruno@clisp.org>
76650
76651         * lib/progname.h: New file, from GNU gettext.
76652         * lib/progname.c: New file, from GNU gettext.
76653         * lib/progreloc.c: New file, from GNU gettext.
76654
76655 2003-08-19  Jim Meyering  <jim@meyering.net>
76656
76657         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
76658         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
76659
76660 2003-08-19  Bruno Haible  <bruno@clisp.org>
76661
76662         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
76663         more.
76664
76665 2003-08-19  Bruno Haible  <bruno@clisp.org>
76666
76667         * lib/xstrdup.c: Assume <string.h> exists.
76668
76669 2003-08-18  Paul Eggert  <eggert@twinsun.com>
76670
76671         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
76672         in makefile rules.
76673
76674 2003-08-18  Jim Meyering  <jim@meyering.net>
76675
76676         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
76677         * m4/lib-ld.m4: Likewise.
76678
76679 2003-08-18  Jim Meyering  <jim@meyering.net>
76680
76681         * lib/setenv.h: Indent nested cpp directive.
76682         * lib/vasnprintf.c: Remove trailing blanks.
76683
76684 2003-08-17  Simon Josefsson  <jas@extundo.com>
76685
76686         * modules/xstrndup: New file.
76687         * MODULES.html.sh (func_all_modules): Add xstrndup.
76688
76689 2003-08-17  Simon Josefsson  <jas@extundo.com>
76690
76691         * modules/argp: Fix autoconf macro name. Add more dependencies.
76692
76693 2003-08-17  Simon Josefsson  <jas@extundo.com>
76694
76695         * m4/xstrndup.m4: New file.
76696
76697 2003-08-17  Simon Josefsson  <jas@extundo.com>
76698
76699         * m4/argp.m4: New file.
76700
76701 2003-08-17  Simon Josefsson  <jas@extundo.com>
76702             Bruno Haible  <bruno@clisp.org>
76703
76704         * lib/xstrndup.h: New file.
76705         * lib/xstrndup.c: New file.
76706
76707 2003-08-17  Bruno Haible  <bruno@clisp.org>
76708
76709         * modules/strndup (Files, Include): Add lib/strndup.h.
76710
76711 2003-08-17  Bruno Haible  <bruno@clisp.org>
76712
76713         * modules/euidaccess (Files): Add lib/euidaccess.h.
76714
76715 2003-08-17  Bruno Haible  <bruno@clisp.org>
76716
76717         * lib/strndup.h: New file.
76718
76719 2003-08-17  Bruno Haible  <bruno@clisp.org>
76720
76721         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
76722         like AC_GNU_SOURCE.
76723         * modules/extensions (configure.ac): Comment out the invocation of
76724         gl_USE_SYSTEM_EXTENSIONS.
76725
76726 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76727
76728         Merges from coreutils, etc.
76729         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
76730         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
76731         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
76732         fixing a typo.
76733         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
76734         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
76735
76736 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76737
76738         Document merge from coreutils.
76739         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
76740         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
76741         * modules/utime: Add m4/utimes-null.m4.
76742
76743 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76744
76745         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
76746         space, undoing this 2003-08-12 change:
76747         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76748
76749 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76750
76751         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
76752         strtoul.c from libc, undoing this 2003-08-12 change:
76753         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76754
76755 2003-08-16  Jim Meyering  <jim@meyering.net>
76756
76757         Merges from coreutils.
76758         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
76759         prefix.  Adjust cache variables similarly.  Create 500 rather than
76760         just 300 files, to exercise bug on Darwin6.5, too.
76761         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
76762         $missing_dir.
76763         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
76764         AM_SYS_POSIX_TERMIOS.
76765         Reported by mkc@mathdogs.com.
76766         Also change use of $am_cv_sys_posix_termios
76767         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
76768         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
76769         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
76770         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
76771         in /proc/mounts until it finds one with matching device number.  This
76772         is unnecessary when the FILE argument *is* a mount point.  No stat call
76773         is necessary in that case.  So, disable the statvfs-testing code on
76774         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
76775         as RedHat bug# 84846.
76776         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76777         to 1MB, so as not to render systems with no stack size limit (e.g.,
76778         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76779         Include <unistd.h>.  On some systems,
76780         it is required for the definition of _SC_PAGESIZE.
76781
76782 2003-08-16  Jim Meyering  <jim@meyering.net>
76783
76784         Merge from coreutils.
76785         * lib/xstrtoimax.c: #else #if -> #elif.
76786         * lib/xstrtoumax.c: Likewise.
76787
76788 2003-08-16  Jim Meyering  <jim@meyering.net>
76789
76790         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
76791         * m4/utimes.m4: Removed.
76792         * m4/utimes-null.m4: Renamed from utimes.m4.
76793
76794         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76795         to 1MB, so as not to render systems with no stack size limit (e.g.,
76796         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76797         Include <unistd.h>.  On some systems,
76798         it is required for the definition of _SC_PAGESIZE.
76799
76800 2003-08-16  Jim Meyering  <jim@meyering.net>
76801         and Paul Eggert  <eggert@cs.ucla.edu>
76802
76803         Merges from coreutils, etc.
76804
76805         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
76806         using the latest version from cvs.  This avoids problems with #line
76807         directives using a vendor (Sun) compiler.
76808         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
76809         Don't set GETGROUPS_LIB here; now it's
76810         done via getgroups.m4's wrapper function.
76811         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
76812         rather than just in sh-util/configure.in, so that the
76813         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
76814         same.
76815         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
76816         AC_FUNC_GETLOADAVG where to find getloadavg.c.
76817         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
76818         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
76819         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
76820         Remove code that is now done by the newly-required macros.
76821         Append $(EXEEXT) to DF_PROG.
76822         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
76823         Do not invoke or require the following here,
76824         since prereq.m4 or some gnulib .m4 now does this for us:
76825         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
76826         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
76827         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
76828         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
76829         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
76830         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
76831         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
76832         AC_FUNC_OBSTACK.
76833         Do not replace the following functions, as this is now the job
76834         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
76835         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
76836         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
76837         atexit getpass, strdup, getpagesize.
76838         Replace 'raise'.
76839         Do not check for the following functions, as this is now the job
76840         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
76841         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
76842         setregid.
76843         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
76844         Check for sys/sysctl.h.
76845         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
76846         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
76847         of checking for ssize_t ourselves.
76848
76849         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
76850         Require every macro that gnulib/modules/* suggests for us.
76851         (jm_PREREQ_ADDEXT): New macro.
76852         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
76853         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
76854
76855         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
76856         (gl_PHYSMEM): Use it.
76857         Also check for `table' function.
76858         Check for new headers and functions.
76859         Add check for sys/sysmp.h.
76860         With suggestions from Kaveh Ghazi.
76861         Ignore headers that are present but cannot be compiled.  This
76862         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
76863         C 5.4.
76864
76865 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76866
76867         Document merge from coreutils.
76868         * modules/userspec: Depend on posixver.
76869         * modules/strftime: Depend on tzset.
76870
76871 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76872
76873         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
76874         rather than tab, after '#' in shell-script copyright notices.
76875         Suggested by Bruno Haible.
76876
76877 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76878
76879         * config/srclist-update: Use three spaces, rather than tab, after '#'
76880         in shell-script copyright notices.  Suggested by Bruno Haible.
76881         Remove unnecessary parenthesization in regular expression.
76882
76883 2003-08-15  Jim Meyering  <jim@meyering.net>
76884
76885         Merge from coreutils.
76886         * lib/xgethostname.c: Include <stdlib.h>.
76887         (xghostname): Don't exit for anything other than memory-related
76888         failure; just return NULL.
76889         * lib/userspec.c: Include "posixver.h".
76890         (parse_user_spec): Accept `.' as a separator only
76891         in pre-POSIX-200112 mode.
76892         * lib/strtoimax.c: Use #elif rather than #else #if.
76893         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
76894         Remove function, now that we can rely on a working tzset function.
76895         [!_LIBC]: Ensure that the required autoconf test has been run.
76896         [!defined _NL_CURRENT && HAVE_STRFTIME]:
76897         Use underlying_strftime for %r.
76898         * lib/sha.c: Merge in some clean-up and optimization changes from
76899         glibc.
76900         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
76901         Ensure that it is a multiple of 64.
76902         Rearrange loop exit tests so as to avoid performing an
76903         additional fread after encountering an error or EOF.
76904         * lib/realloc.c: Update copyright date.
76905
76906 2003-08-15  Jim Meyering  <jim@meyering.net>
76907         and Paul Eggert  <eggert@twinsun.com>
76908
76909         Merge from coreutils.
76910         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
76911         member but strut utmpx does not.  Needed for AIX 4.3.3.
76912         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
76913
76914 2003-08-15  Jim Meyering  <jim@meyering.net>
76915         and Paul Eggert  <eggert@cs.ucla.edu>
76916
76917         Merges from coreutils, etc.
76918         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
76919         Require gl_FUNC_TZSET_CLOBBER.
76920         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
76921         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
76922         members.
76923
76924 2003-08-14  Paul Eggert  <eggert@twinsun.com>
76925
76926         Help the merge from coreutils.
76927         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
76928         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
76929         * m4/tzset.m4: Use it too.
76930
76931 2003-08-14  Paul Eggert  <eggert@twinsun.com>
76932
76933         * modules/tzset: New file.
76934
76935 2003-08-14  Jim Meyering  <jim@meyering.net>
76936
76937         Merges from coreutils.
76938         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
76939         variable names, rather than @FNMATCH_H@.
76940         * modules/alloca: Likewise for $(ALLOCA_H).
76941
76942         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
76943         the three copies of the literal target, `fnmatch.h'.
76944         * modules/alloca (alloca.h): Likewise.
76945
76946 2003-08-14  Jim Meyering  <jim@meyering.net>
76947
76948         Merge from coreutils.
76949         * m4/tzset.m4: New file.
76950         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
76951         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
76952         otherwise, AIX 5.1 systems would end up using the latter.
76953         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
76954         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
76955         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
76956         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
76957
76958 2003-08-14  Jim Meyering  <jim@meyering.net>
76959
76960         Merge from coreutils.
76961         * lib/obstack.h: Whitespace changes.
76962         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
76963         and xcalloc return values.
76964         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
76965         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
76966         hang on OSF/1 5.1 for DIR on both local and remote file systems.
76967         Reported by (and fix confirmed by) Nelson H. F. Beebe.
76968         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76969         error from mntctl.
76970         Use mntctl's return value to drive the entry-processing loop, since
76971         we can't rely on the value of the vmt_length member in the last
76972         entry.  On some systems doing so could result in exhausting
76973         virtual memory.  Based in part on a patch from Mike Jetzer.
76974
76975 2003-08-14  Jim Meyering  <jim@meyering.net>
76976         and Paul Eggert  <eggert@twinsun.com>
76977
76978         Merges from coreutils, plus other fixes.
76979         * lib/physmem.c: Merge in portability changes from gcc/libiberty
76980         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
76981         for credits and details.  Thanks to Kaveh Ghazi for helping
76982         to keep these files in sync.
76983         (ARRAY_SIZE): Define it.
76984         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
76985         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
76986         (memcasecmp): Don't assume size_t fits in unsigned int.
76987         Remove casts and duplicate code.
76988         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
76989         (memcpy): Remove definition.
76990         Merge in some clean-up and optimization changes from glibc.
76991         [BLOCKSIZE]: Move definition to top of file.
76992         Ensure that it is a multiple of 64.
76993         Rearrange loop exit tests so as to avoid performing an
76994         additional fread after encountering an error or EOF.
76995         * lib/md5.h (md5_uintptr): Define.
76996         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
76997         return to the initial working directory.  Preserve errno
76998         for caller.
76999         * lib/idcache.c: Include "xalloc.h".
77000         (xmalloc, xrealloc): Remove decls.
77001         (getuser): Remove casts no longer required in C89.
77002         * lib/human.c: Include stdio.h, for sprintf.
77003         * lib/group-member.c: Include "xalloc.h".
77004         (xmalloc, xrealloc): Remove decls.
77005         (get_group_info): Remove casts no longer required in C89.
77006         * lib/getusershell.c (readname): Remove casts no longer required in
77007         C89.
77008         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
77009         * lib/getline.c: Whitespace fix, from coreutils.
77010
77011 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77012
77013         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
77014         Check for isascii.
77015
77016         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77017         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77018         Undo previous (whitespace-only) change.
77019
77020 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77021
77022         * lib/exclude.c: Include <ctype.h>
77023         (IN_CTYPE_DOMAIN): New macro.
77024         (is_space): New fn.
77025         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77026         and empty lines.
77027
77028         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77029         Undo previous (whitespace-only) change.
77030
77031 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77032
77033         * config/srclist-update: Change update back to the old behavior,
77034         leaving whitespace alone.  Use one 'sed' command rather than a
77035         pipeline.
77036         (fixlicense): Now a variable, not a function.
77037         (remove_trailing_blanks): Remove.
77038         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77039         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77040         Undo previous (whitespace-only) change.
77041
77042 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77043
77044         Merge from coreutils.
77045         * modules/euidaccess: Add lib_SOURCES, include for new
77046         file euidaccess.h
77047
77048 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77049
77050         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77051         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77052         Normalize leading white space and remove trailing white space.
77053
77054         Merge from coreutils
77055         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77056
77057         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77058         0.12.1.  These files are now being upgraded automatically by
77059         ../config/srclist-update.
77060
77061 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77062
77063         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77064         Normalize leading white space and remove trailing white space.
77065         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77066         notice, as per ../config/srclist-update.
77067
77068         Merge from coreutils.
77069         * lib/euidaccess.h: New file.
77070         * lib/euidaccess.c: Include it.
77071         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77072         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77073         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77074
77075 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77076
77077         * config/srclist-update: Add copyright notice.
77078         (remove_id_lines, remove_trailing_blanks): New constants.
77079         (fixfile): Use them to normalize spacing a bit in copied files.
77080         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77081         Normalize leading white space and remove trailing white space.
77082
77083         * config/texinfo.tex: Sync with texinfo.
77084
77085         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77086         strtoul.c from libc, to merge coreutils whitespace changes.
77087
77088         * config/srclist.txt: Get the following m4 files from gettext:
77089         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77090         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77091         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77092         wint_t.m4.
77093
77094 2003-08-12  Karl Berry  <karl@gnu.org>
77095
77096         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77097         been made.
77098
77099 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77100
77101         * modules/gnu-source, m4/gnu-source.m4:
77102         Remove; we're assuming Autoconf 2.54 or later now.
77103         Suggested by Bruno Haible.
77104         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77105
77106 2003-08-11  Bruno Haible  <bruno@clisp.org>
77107
77108         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77109
77110 2003-08-11  Bruno Haible  <bruno@clisp.org>
77111
77112         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77113         (vasnprintf): Use it instead of wcslen.
77114
77115 2003-08-11  Bruno Haible  <bruno@clisp.org>
77116
77117         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77118         value to ensure that _Bool promotes to int. Use #define for _Bool when
77119         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77120
77121 2003-08-10  Karl Berry  <karl@gnu.org>
77122
77123         * lib/regex.h: update from libc (whitespace fix).
77124
77125 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77126
77127         Merge some files from coreutils.  These changes were
77128         originally made by Jim Meyering.
77129         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77130         many older Unixes require this.
77131         * lib/alloca.c (alloca): Remove cast to argument of free;
77132         no longer needed in C89.
77133         * lib/alloca_.h, regex.h: Fix white space to match
77134         what GNU indent does.
77135
77136 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77137
77138         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77139         apparently Emacs's Unicode mode got confused before my 2003-08-05
77140         checkin.
77141
77142 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77143
77144         * m4/extensions.m4: New file.
77145         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77146         Require gl_USE_SYSTEM_EXTENSIONS.
77147         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77148         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77149
77150 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77151
77152         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77153         * modules/extensions, modules/gnu-source: New files.
77154         * modules/timespec, modules/unlocked-io: Depend on extensions.
77155
77156 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77157
77158         * modules/restrict: New file.
77159         * MODULES.html.sh (func_all_modules): Add restrict.
77160         * modules/regex: Depend on restrict.
77161
77162 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77163
77164         * m4/restrict.m4: New file.
77165         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77166
77167 2003-08-07  Bruno Haible  <bruno@clisp.org>
77168
77169         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77170         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77171
77172 2003-08-07  Bruno Haible  <bruno@clisp.org>
77173
77174         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77175         makes the module 'getndelim2' compatible with the module 'getline'.
77176
77177 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77178
77179         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77180         byte with "\201" to avoid glitches when editing that source file
77181         with multi-gnome-terminal.
77182
77183 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77184
77185         * lib/bumpalloc.h: Remove.
77186
77187 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77188
77189         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77190         * modules/bumpalloc: Remove.
77191
77192 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77193
77194         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77195         GNU coding style.
77196
77197         Merge from coreutils.
77198         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77199         1. From glibc.
77200         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77201         from Karl Berry, implemented by Jim Meyering.
77202         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77203         from Dmitry V. Levin.
77204         Remove anachronistic cast of xrealloc.
77205         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77206         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77207         type. Otherwise, it wouldn't compile with at least /bin/cc on
77208         ymp-cray-unicos9.0.2.X.
77209         Combine two mostly-identical uses of alloca into one.
77210         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77211
77212 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77213
77214         [From Emacs.]
77215
77216         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77217         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77218         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77219         obsolete NLIST_NAME_UNION.
77220         [__GNU__]: Undef BSD and FSCALE.
77221         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77222
77223 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77224
77225         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77226         an enum type, so that it's guaranteed to promote to int.  See:
77227         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77228
77229 2003-08-03  Karl Berry  <karl@gnu.org>
77230
77231         * config/depcomp: update from automake.
77232
77233 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77234
77235         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77236         (strerror): Don't assume that a printable int fits in 14 bytes.
77237
77238 2003-07-31  Bruno Haible  <bruno@clisp.org>
77239
77240         * modules/getpass-gnu: New file.
77241         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
77242
77243 2003-07-31  Bruno Haible  <bruno@clisp.org>
77244
77245         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
77246
77247 2003-07-24  Karl Berry  <karl@gnu.org>
77248
77249         * config/missing: update from automake.
77250
77251 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
77252             Bruno Haible  <bruno@clisp.org>
77253
77254         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
77255         * lib/getline.c (getline, getdelim): Likewise.
77256         Remove _GNU_SOURCE define; now it's defined in config.h through
77257         m4/getline.m4.
77258
77259 2003-07-23  Karl Berry  <karl@gnu.org>
77260
77261         * config/config.sub: update from prep.
77262
77263 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77264
77265         * modules/xalloc (Depends-on): Add exitfail.
77266         * modules/xmemcoll: Likewise.
77267
77268 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77269
77270         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
77271         over-parenthesization in macros.
77272
77273         Sync with coreutils.
77274
77275         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
77276         required by C99.
77277
77278         Use `exit_failure' for xalloc and xmemcoll instead of their own
77279         private exit-failure variables.
77280         * lib/xalloc.h (xalloc_exit_failure): Remove.
77281         * lib/xmalloc.c: Likewise.  Include exitfail.h.
77282         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
77283         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
77284         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
77285         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
77286
77287 2003-07-20  Jim Meyering  <jim@meyering.net>
77288
77289         * modules/closeout (Depends-on): Add exitfail.
77290         Suggestion from Bruno Haible.
77291
77292 2003-07-19  Karl Berry  <karl@gnu.org>
77293
77294         * config/config.sub: update from prep.
77295
77296 2003-07-18  Paul Eggert  <eggert@twinsun.com>
77297
77298         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
77299         Remove.
77300         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
77301         to test that it can stand by itself.  Include "exitfail.h".
77302         Clients should set exit_failure instead.
77303         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
77304
77305 2003-07-18  Bruno Haible  <bruno@clisp.org>
77306
77307         * modules/getndelim2: New file.
77308         * modules/getline: Share files with module getndelim2.
77309         * modules/getnline: Depend on getndelim2 instead of sharing files with
77310         it. Add getnline.c to lib_SOURCES.
77311         * MODULES.html.sh (func_all_modules): Add getndelim2.
77312
77313 2003-07-18  Bruno Haible  <bruno@clisp.org>
77314
77315         * m4/getndelim2.m4: New file.
77316         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
77317         invoke gl_PREREQ_GETNDELIM2.
77318         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
77319         gl_PREREQ_GETNDELIM2.
77320         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
77321         gl_GETNDELIM2.
77322
77323 2003-07-18  Bruno Haible  <bruno@clisp.org>
77324
77325         * lib/getndelim2.h: New file.
77326         * lib/getndelim2.c: Make into a module of its own. Include config.h,
77327         getndelim2.h.
77328         (getndelim2): Make non-static. Change return type to ssize_t.
77329         * lib/getline.h: Change argument names.
77330         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77331         * lib/getnline.c: Include getndelim2.h.
77332
77333 2003-07-18  Andreas Schwab  <schwab@suse.de>
77334
77335         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77336
77337 2003-07-17  Karl Berry  <karl@gnu.org>
77338
77339         * config/config.sub: update from prep.
77340
77341 2003-07-17  Bruno Haible  <bruno@clisp.org>
77342
77343         * modules/getnline: New file.
77344         * modules/getline: Add lib/getndelim2.c to source file list.
77345         * MODULES.html.sh (func_all_modules): Add getnline.
77346
77347 2003-07-17  Bruno Haible  <bruno@clisp.org>
77348
77349         * m4/getnline.m4: New file.
77350
77351 2003-07-17  Bruno Haible  <bruno@clisp.org>
77352
77353         * m4/Makefile.am.in: Remove file.
77354         * m4/Makefile.am: Remove file.
77355         * m4/Makefile.in: Remove file.
77356
77357 2003-07-17  Bruno Haible  <bruno@clisp.org>
77358
77359         * lib/getnline.h: New file.
77360         * lib/getnline.c: New file.
77361         * lib/getndelim2.c: New file, extracted from getline.c.
77362         (getndelim2): Renamed from getdelim2, with added nmax argument.
77363         * lib/getline.c: Include getndelim2.c.
77364         (getdelim2): Moved out to getndelim2.c.
77365         (getline, getdelim): Update.
77366
77367 2003-07-17  Bruno Haible  <bruno@clisp.org>
77368
77369         * lib/Makefile.am: Remove file.
77370         * lib/Makefile.in: Remove file.
77371
77372 2003-07-17  Bruno Haible  <bruno@clisp.org>
77373
77374         * configure.in: Remove file.
77375         * Makefile.in: Remove file.
77376
77377 2003-07-17  Bruno Haible  <bruno@clisp.org>
77378
77379         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77380
77381 2003-07-16  Karl Berry  <karl@gnu.org>
77382
77383         * config/srclist-update: was running fixlicense twice, which caused
77384                 texinfo.tex to be nullified for some reason.  Simplify,
77385                 $gplsrc is no longer needed as far as I can see?
77386
77387 2003-07-16  Jim Meyering  <jim@meyering.net>
77388
77389         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77390
77391 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77392
77393         * config/srclist.txt: Get the following files from gettext-runtime/intl
77394         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77395         ref-del.sin.  From Bruno Haible.
77396         * config/srclist-update (fixfile): Change grep pattern again, since the
77397         previous fix didn't work (there was another trailing $).  Use
77398         '[$]' to escape the $s.
77399
77400 2003-07-15  Karl Berry  <karl@gnu.org>
77401
77402         * lib/vasnprintf.c: update from gettext.
77403
77404 2003-07-15  Karl Berry  <karl@gnu.org>
77405
77406         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
77407         gets expanded when surrounded by '$'.
77408
77409 2003-07-15  Jim Meyering  <jim@meyering.net>
77410
77411         * modules/save-cwd: Don't depend on error.  From Derek Price.
77412
77413 2003-07-15  Jim Meyering  <jim@meyering.net>
77414
77415         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
77416
77417 2003-07-14  Simon Josefsson  <jas@extundo.com>
77418
77419         * modules/mempcpy: New file.
77420         * MODULES.html.sh (func_all_modules): Add mempcpy.
77421
77422 2003-07-14  Simon Josefsson  <jas@extundo.com>
77423
77424         * m4/mempcpy.m4: New file.
77425
77426 2003-07-14  Simon Josefsson  <jas@extundo.com>
77427
77428         * lib/mempcpy.h: New file.
77429         * lib/mempcpy.c: New file.
77430
77431 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77432
77433         * modules/getdate, modules/posixtm: Depend on mktime.
77434
77435 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77436
77437         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
77438         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
77439         unicodeio.c, unicodeio.h, unlocked-io.h:
77440         Switch from LGPL to GPL.
77441
77442 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77443
77444         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
77445         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
77446         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
77447         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
77448         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
77449         updated automatically by ../config/srclist-update.  This changes
77450         their license from LPGL to GPL.
77451
77452 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77453
77454         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
77455         assumed to refer to the root of the most recent stable gettext version.
77456         * config/srclistvars.sh: Add defaults for eggert.
77457         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
77458         Match "This program" as well as "The program".  This is needed
77459         for gettext.
77460
77461 2003-07-14  Jim Meyering  <jim@meyering.net>
77462
77463         Don't emit diagnostics.  Let callers do that.
77464         * lib/save-cwd.c: Don't include "error.h".
77465         (save_cwd): Don't call error.  Ensure that errno is valid
77466         when returning nonzero.
77467
77468         * lib/save-cwd.h (restore_cwd): Update prototype.
77469         * lib/save-cwd.c (restore_cwd): Remove two parameters.
77470         Simplify.  Don't call error upon failure.  Let callers do that.
77471         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
77472         when auditing is enabled.  But don't bother updating the #if.
77473
77474 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
77475
77476         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
77477         it breaks C++ compilation.
77478         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
77479
77480 2003-07-10  Simon Josefsson  <jas@extundo.com>
77481
77482         * modules/strchrnul (Makefile.am): Add strchrnul.h.
77483
77484 2003-07-10  Jim Meyering  <jim@meyering.net>
77485
77486         * m4/clock_time.m4: Remove trailing blank.
77487         * m4/intmax_t.m4: Likewise.
77488
77489 2003-07-10  Jim Meyering  <jim@meyering.net>
77490
77491         * lib/vasnprintf.c: Remove trailing blanks.
77492         Make cpp indentation consistent.
77493
77494 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77495
77496         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
77497         posixver.c, strftime.c, strnlen.c, strverscmp.c:
77498         Switch from LGPL to GPL.
77499
77500 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77501
77502         * config/srclist.txt: Sort sublists.  Add
77503         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
77504         that differ from gnulib for one reason or another; we'd like this list
77505         to be smaller but for now let's document what we have.
77506
77507 2003-07-08  Paul Eggert  <eggert@twinsun.com>
77508
77509         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
77510         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
77511         and sweeter "eval x=$x".
77512         * config/srclist.txt: Get lib/argp* from glibc.
77513
77514 2003-07-07  Paul Eggert  <eggert@twinsun.com>
77515
77516         * lib/mktime.c: Fix some boundary cases and remove need for floating
77517         point.
77518
77519         Issue a compile-time diagnostic if time_t is floating point, or if
77520         two's complement arithmetic is not in effect, or if arithmetic
77521         right shift does not propagate the sign.  These assumptions were
77522         all in the original code but they weren't checked.
77523
77524         (TIME_T_MIDPOINT, verify): New macros.
77525         (__isleap): Remove; it has integer overflow problems.
77526         (leapyear): New function, without those problems.
77527         (ydhms_tm_diff): Remove; splitting into two parts.
77528         (ydhms_diff): New function, containing the arithmetic part of
77529         the old ydhms_tm_diff function.  Issue a compile-time
77530         diagnostic if we are not using C99 integer division.
77531         Avoid casts when possible.
77532         (guess_time_tm): New function, containing the checking part of
77533         the old ydhms_tm_diff function.  Return the new value, rather than
77534         the difference between it and the old.  Accept a new argument T
77535         so that *T specifies the old value.  Check for overflow in the result.
77536
77537         (__mktime_internal): Use a time_t offset, not a long int offset.
77538         This undoes the 2003-06-04 change, which is no longer needed now
77539         that we have better overflow checking.
77540         (localtime_offset): Likewise.
77541
77542         (__mktime_internal): Avoid harmful overflow on hosts where time_t
77543         and long are 64-bit but int is only 32-bit.
77544         (ydhms_diff): Use long int to store year1 and yday1.
77545         Issue a compile-time diagnostic if long int is not wide enough.
77546
77547         (__mktime_internal): Use long int to store adjusted year and yday.
77548         Use plain C rather than preprocessor commands, if that doesn't
77549         affect efficiency.
77550         Check for overflow (and try to repair) after each probe
77551         rather than checking only at the very end.  This avoids some bugs
77552         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
77553         does not equal GMT offset at maximum time).
77554         Use integer to check for overflow rather than floating point; this
77555         is more portable to non-IEEE hosts, and is a tad faster.
77556         When we detect that we are oscillating between two values,
77557         don't check whether tm_isdst has the requested value, since
77558         we already know the answer.  When tm_isdst has the wrong value,
77559         use a different heuristic to find the right one, based on the
77560         extreme values actually observed in practice in tz2003a,
77561         rather than the (overly optimistic) "previous 3 calendar quarters".
77562
77563         (not_equal_tm, print_tm, check_result): Use "const T" rather than
77564         "T const" to accommodate glibc style.
77565         (check_result): Use less-confusing report format.  "long" -> "long int.
77566         (main): Likewise.
77567         Don't loop if the iteration overflows time_t.
77568         Allow a negative step in the iteration.
77569
77570 2003-07-06  Karl Berry  <karl@gnu.org>
77571
77572         * config/depcomp: update from automake.
77573         * config/config.sub: update from prep.
77574
77575 2003-07-03  Karl Berry  <karl@gnu.org>
77576
77577         * config/config.guess: update from prep.
77578
77579 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77580
77581         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
77582         xreadlink.c now includes it unconditionally.
77583
77584 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77585
77586         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
77587         having it depend on HAVE_SYS_TYPES_H.
77588
77589 2003-07-01  Bruno Haible  <bruno@clisp.org>
77590
77591         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
77592         <sys/types.h> should be sufficient.
77593         Reported by Paul Eggert.
77594
77595 2003-06-26  Karl Berry  <karl@gnu.org>
77596
77597         * config/depcomp: update from automake.
77598
77599 2003-06-26  Bruno Haible  <bruno@clisp.org>
77600
77601         * modules/human: Depend on module stdbool.
77602
77603 2003-06-25  Bruno Haible  <bruno@clisp.org>
77604
77605         * modules/readlink: New file.
77606         * modules/xreadlink: Depend on it.
77607         * MODULES.html.sh (func_all_modules): Add readlink.
77608
77609 2003-06-25  Bruno Haible  <bruno@clisp.org>
77610
77611         * m4/readlink.m4: New file.
77612
77613 2003-06-25  Bruno Haible  <bruno@clisp.org>
77614
77615         * lib/readlink.c: New file.
77616
77617 2003-06-22  Karl Berry  <karl@gnu.org>
77618
77619         * config/srclist.txt: update mkinstalldirs from automake.
77620         * config/mkinstalldirs: update.
77621
77622 2003-06-22  Bruno Haible  <bruno@clisp.org>
77623
77624         Portability to mingw32.
77625         * m4/ssize_t.m4: New file, from GNU gettext.
77626         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
77627         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
77628
77629 2003-06-22  Bruno Haible  <bruno@clisp.org>
77630
77631         * modules/safe-read: Add m4/ssize_t.m4.
77632         * modules/xreadlink: Add m4/ssize_t.m4.
77633
77634 2003-06-20  Bruno Haible  <bruno@clisp.org>
77635
77636         Assume C89, so PARAMS isn't needed.
77637         * lib/unicodeio.h (PARAMS): Remove.
77638         * lib/unicodeio.c: Don't use PARAMS.
77639
77640 2003-06-18  Karl Berry  <karl@gnu.org>
77641
77642         * config/config.{guess,sub}: update from prep.
77643
77644 2003-06-18  Jim Meyering  <jim@meyering.net>
77645
77646         Merge changes from coreutils.
77647         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
77648         Remove explicit declarations of xmalloc and realloc.
77649         Include xalloc.h.
77650         (read_utmp): Remove anachronistic cast of xmalloc.
77651
77652 2003-06-17  Paul Eggert  <eggert@twinsun.com>
77653
77654         Assume C89, so PARAMS isn't needed.
77655         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
77656         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
77657         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
77658         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
77659         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
77660         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
77661         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
77662         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
77663         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
77664         lib/xstrtod.h, lib/xstrtol.h: Likewise.
77665         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
77666         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
77667         no longer needed. Anyway, config.h should always be included before any
77668         other file.
77669
77670 2003-06-11  Simon Josefsson  <jas@extundo.com>
77671
77672         * modules/sysexits: New file.
77673         * MODULES.html.sh (func_all_modules): Add sysexits.
77674
77675 2003-06-11  Simon Josefsson  <jas@extundo.com>
77676
77677         * lib/sysexit_.h: New file.
77678
77679 2003-06-11  Derek Price  <derek@ximbiot.com>
77680
77681         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
77682         necessary.
77683
77684 2003-06-11  Bruno Haible  <bruno@clisp.org>
77685
77686         * m4/sysexits.m4: New file.
77687
77688 2003-06-10  Simon Josefsson  <jas@extundo.com>
77689
77690         * lib/argp.h: New file, from glibc.
77691         * lib/argp-ba.c: New file, from glibc.
77692         * lib/argp-eexst.c: New file, from glibc.
77693         * lib/argp-fmtstream.c: New file, from glibc.
77694         * lib/argp-fmtstream.h: New file, from glibc.
77695         * lib/argp-fs-xinl.c: New file, from glibc.
77696         * lib/argp-help.c: New file, from glibc.
77697         * lib/argp-namefrob.h: New file, from glibc.
77698         * lib/argp-parse.c: New file, from glibc.
77699         * lib/argp-pv.c: New file, from glibc.
77700         * lib/argp-pvh.c: New file, from glibc.
77701         * lib/argp-xinl.c: New file, from glibc.
77702
77703 2003-06-10  Simon Josefsson  <jas@extundo.com>
77704
77705         * modules/strchrnul: New file.
77706
77707 2003-06-10  Simon Josefsson  <jas@extundo.com>
77708
77709         * modules/argp: New file.
77710
77711 2003-06-10  Simon Josefsson  <jas@extundo.com>
77712
77713         * m4/strchrnul.m4: New file.
77714
77715 2003-06-10  Simon Josefsson  <jas@extundo.com>
77716
77717         * lib/strchrnul.h: New file.
77718         * lib/strchrnul.c: New file.
77719
77720 2003-06-10  Bruno Haible  <bruno@clisp.org>
77721
77722         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
77723
77724 2003-06-07  Karl Berry  <karl@gnu.org>
77725
77726         * config/config.{guess,sub}: update from prep.
77727
77728 2003-06-07  Jim Meyering  <jim@meyering.net>
77729
77730         * modules/strtod: Use $(...) notation, not @...@ for
77731         AC_REPLACE'd variables.
77732         * modules/localcharset: Likewise.
77733
77734 2003-06-07  Jim Meyering  <jim@meyering.net>
77735
77736         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
77737         in place of my name in the copyright comment.
77738         Remove definition and uses of __P.
77739
77740         From coreutils.
77741         * lib/stat.c: Don't declare xmalloc explicitly.
77742         Instead, include "xalloc.h".
77743         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
77744         xrealloc, and xcalloc return values.
77745         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
77746         Improve comment.
77747         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
77748
77749 2003-06-07  Bruno Haible  <bruno@clisp.org>
77750
77751         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
77752         avoid AC_CONFIG_LINKS.
77753         * modules/fnmatch (Makefile.am): Use explicit creation rule for
77754         fnmatch.h, to avoid AC_CONFIG_LINKS.
77755         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
77756
77757 2003-06-07  Bruno Haible  <bruno@clisp.org>
77758
77759         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
77760         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
77761         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77762         directory.
77763         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
77764         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77765         directory.
77766
77767 2003-06-06  Jim Meyering  <jim@meyering.net>
77768
77769         Merge from coreutils.
77770         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
77771         Consolidate declarations and initializations of *_base* locals.
77772
77773         Merge from coreutils.
77774         This avoids a core dump on systems without GNU putenv,
77775         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
77776         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
77777         (unsetenv): New static function, from GNU libc.
77778         (rpl_putenv): Use it.
77779
77780         * lib/modechange.c: Remove trailing blanks.
77781
77782         Merge from coreutils.
77783         * lib/fsusage.c: Remove declaration of statfs.
77784         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
77785
77786         * lib/posixtm.c: Include <stdbool.h> unconditionally.
77787
77788 2003-06-06  Jim Meyering  <jim@meyering.net>
77789
77790         * lib/stdbool_.h: Renamed from stdbool.h.in.
77791
77792 2003-06-06  Jim Meyering  <jim@meyering.net>
77793             Bruno Haible  <bruno@clisp.org>
77794
77795         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
77796         Adjust Makefile.am snippet not to redirect directly to target.
77797         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
77798
77799 2003-06-05  Paul Eggert  <eggert@twinsun.com>
77800
77801         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
77802         mismatch, look in future quarters as well as past.  This fixes a
77803         bug when processing fall-backwards gaps immediately after a long
77804         period of daylight-saving time.
77805
77806         * lib/mktime.c: Assume freestanding C89 or better.
77807         (HAVE_LIMITS_H): Remove.  Assume it's 1.
77808         (__P): Remove; not used.
77809         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
77810         (mktime, not_equal_tm, print_tm, check_result,
77811         main): Use prototypes.  Use const * where appropriate.
77812         (main): Fix typo in testing code that uncovered by above changes.
77813         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
77814
77815 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77816
77817         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
77818         locale.h, localeconv.  This merges changes from coreutils.
77819
77820         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
77821         It can be removed after the next Autoconf is released.
77822         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
77823         needed.
77824
77825 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77826
77827         * lib/mktime.c: Fix Debian bug 177940
77828         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
77829         (localtime_offset): Now long int, not time_t, because we want it
77830         to be guaranteed to be signed.  All uses changed.
77831         (__mktime_internal): If overflow would occur when adding offset,
77832         don't add it.
77833
77834         Merge 'human' changes from coreutils.  Rewrite to support
77835         locale-specific notations like thousands separators.
77836         * lib/human.c: Simplify authorship notice.
77837         Include human.h immediately after config.h.
77838         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
77839         <limits.h>: Do not include, since human.h does.
77840         (SIZE_MAX, UINTMAX_MAX): New macros.
77841         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
77842         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
77843         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
77844         (power_letter): Renamed from suffixes.
77845         (generate_suffix_backwards): Remove.
77846         (adjust_value): Now takes int style (because of human.h changes)
77847         and long double value (for greater precision on some platforms).
77848         (group_number): New function.
77849         (human_readable): Use it.  Use integer options, not enum.
77850         Put the options before the sizes in the arg list.
77851         Support all the new options.
77852         The old human_readable function has been removed;
77853         use inttostr.h instead.
77854         (human_readable, default_block_size, humblock):
77855         Use uintmax_t, not int, for block sizes.
77856         (human_readable_inexact, block_size_types): Remove.
77857         (block_size_opts): New constant.
77858         (human_options): Renamed from human_block_size, with new signature
77859         that allows block sizes up to UINTMAX_MAX.  All callers changed.
77860         * lib/human.h: Add copyright and authorship notice.
77861         Include <limits.h> and <stdbool.h> unconditionally.
77862         (PARAMS): Remove.  All uses removed.
77863         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
77864         (enum human_inexact_style): Remove tag; now a nameless enum.
77865         (human_floor, human_ceiling, human_round_to_even): Now have
77866         values 2, 0, 1 rather than -1, 1, 0.
77867         (human_group_digits, human_suppress_point_zero, human_autoscale,
77868         human_base_1024, human_SI, human_B): New constants.
77869         (human_readable_inexact, human_block_size): Remove.
77870         (human_readable): Size args are now uintmax_t, not int.
77871         (human_options): New decl.
77872
77873         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
77874         unnecessary now that we assume C89 or better.  This change
77875         imported from coreutils.
77876
77877         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
77878         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
77879         in the 2003-05-30 sync from glibc.
77880
77881         .h files should stand alone, but we shouldn't include <sys/types.h>
77882         if we can get away with just <stddef.h>.
77883
77884         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
77885         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
77886         rather than <sys/types.h>, as we merely need size_t.
77887         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
77888         to get size_t.
77889         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
77890         Include <stdio.h>, to get FILE.
77891         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
77892         memcasecmp.h has included <stddef.h> and all we need is size_t.
77893         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
77894         our interface, instead of including <sys/types.h>
77895
77896 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77897
77898         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
77899         now, as glibc mktime is buggy on non-glibc systems.
77900
77901 2003-06-03  Karl Berry  <karl@gnu.org>
77902
77903         * config/config.sub: update from prep.
77904
77905 2003-06-02  Paul Eggert  <eggert@twinsun.com>
77906
77907         [from coreutils]
77908         Fix some minor time-related bugs with POSIX time arguments.
77909         Some valid time stamps were being rejected (notably -1, and
77910         time stamps before 1900 on 64-bit hosts).  And some invalid
77911         time stamps were being accepted, e.g. September 31.
77912
77913         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
77914         that we can return (time_t) -1 successfully.
77915         * lib/posixtm.c: Likewise.
77916         [HAVE_STDBOOL_H]: Include <stdbool.h>.
77917         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
77918         (t): Remove static var.
77919         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
77920         of static var.  All uses changed.
77921         (year): Do not reject years before 1900; they can occur with
77922         64-bit time_t.
77923         (posix_time_parse): Do not check for out-of-range components;
77924         that is now the caller's responsibility, since our checks were
77925         only approximations.
77926         (posixtime): Use mktime to check for out-of-range components,
77927         since it knows them exactly.
77928         If mktime returns (time_t) -1, check whether an error actually occurred
77929         by invoking localtime on -1.
77930         (main) [TEST_POSIXTIME]: Check for input data errors, and report
77931         posixtime failures better.
77932         Improve the test data (in comments only).
77933
77934 2003-06-02  Karl Berry  <karl@gnu.org>
77935
77936         * config/mkinstalldirs (version): new variable.
77937         (--version): new option.
77938         (usage): improve message.
77939
77940 2003-05-30  Karl Berry  <karl@gnu.org>
77941
77942         * lib/mktime.c: update from libc.
77943
77944 2003-05-30  Bruno Haible  <bruno@clisp.org>
77945
77946         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
77947         * config/config.rpath: Upgrade to gettext-0.12.1.
77948
77949 2003-05-30  Bruno Haible  <bruno@clisp.org>
77950
77951         * m4/gettext.m4: Upgrade to gettext-0.12.1.
77952         * m4/nls.m4: New file, from gettext-0.12.1.
77953         * m4/po.m4: New file, from gettext-0.12.1.
77954         * m4/progtest.m4: Upgrade to gettext-0.12.1.
77955
77956 2003-05-30  Bruno Haible  <bruno@clisp.org>
77957
77958         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
77959         * lib/localcharset.h: Likewise.
77960         * lib/localcharset.c: Likewise.
77961
77962 2003-05-29  Karl Berry  <karl@gnu.org>
77963
77964         * config/config.rpath: update from gettext.
77965
77966 2003-05-28  Paul Eggert  <eggert@twinsun.com>
77967
77968         Assume the headers required for C89 freestanding compilers.
77969         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
77970         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
77971         * m4/human.m4 (gl_HUMAN): Likewise.
77972         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
77973         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
77974         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77975         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
77976         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77977         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
77978
77979 2003-05-28  Paul Eggert  <eggert@twinsun.com>
77980
77981         Assume the headers required for C89 freestanding compilers.
77982         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
77983         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
77984         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
77985         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
77986         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
77987         define, since <limits.h> is guaranteed to do that.
77988         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
77989         * lib/exclude.c: Include <stdbool.h> unconditionally.
77990         * lib/tempname.c: Include <stddef.h> unconditionally.
77991         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
77992         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
77993         <stddef.h> does that.
77994         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
77995         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
77996         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
77997         needed.
77998         * lib/xstrtol.c: Likewise.
77999         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
78000         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
78001
78002         * lib/addext.c (addext): Use assignment rather than cast, to avoid
78003         warnings on some platforms.
78004
78005         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78006         arbitrarily.
78007
78008 2003-05-26  Jim Meyering  <jim@meyering.net>
78009
78010         Merge in a change from coreutils:
78011         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
78012         that is guaranteed to be `no'.  Use `no_such_member' to indicate
78013         that condition, rather than `-1' which is slightly misleading.
78014         Change the name of the cache variable to have the gl_ prefix.
78015         Prompted by a patch from Richard Dawe for DJGPP.
78016
78017 2003-05-24  Karl Berry  <karl@gnu.org>
78018
78019         * config/config.guess: update from prep.
78020
78021 2003-05-22  Karl Berry  <karl@gnu.org>
78022
78023         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78024
78025 2003-05-20  Karl Berry  <karl@gnu.org>
78026
78027         * config/config.guess: update from prep.
78028
78029 2003-05-18  Karl Berry  <karl@gnu.org>
78030
78031         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78032         might actually be set by the user.
78033
78034         * config/depcomp, install-sh, mdate-sh: update from automake.
78035
78036 2003-05-17  Bruno Haible  <bruno@clisp.org>
78037
78038         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78039         invalid expansion for AC_EGREP_CPP.
78040         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78041         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78042         Suggested by Akim Demaille <akim@epita.fr> in
78043         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78044
78045 2003-05-12  Jim Meyering  <jim@meyering.net>
78046
78047         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78048         the space-padded-by-default conversion specifiers, %e, %k, %l.
78049
78050 2003-05-12  Bruno Haible  <bruno@clisp.org>
78051
78052         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78053         the string is longer than 4 KB.
78054
78055 2003-05-11  Karl Berry  <karl@gnu.org>
78056
78057         * config/config.{guess,sub}: update from prep.
78058
78059 2003-05-09  Bruno Haible  <bruno@clisp.org>
78060
78061         * modules/error: Add m4/strerror_r.m4 to file list.
78062
78063 2003-05-03  Bruno Haible  <bruno@clisp.org>
78064
78065         Upgrade to Unicode-4.0.
78066         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78067         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78068         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78069         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78070         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78071         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78072         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78073         Change width of U+E0100..U+E01EF from 1 to 0.
78074
78075 2003-04-25  Jim Meyering  <jim@meyering.net>
78076
78077         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78078         of type size_t, not int.
78079
78080 2003-04-25  Bruno Haible  <bruno@clisp.org>
78081
78082         * lib/copy-file.c: Include <stddef.h>, for size_t.
78083
78084 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78085
78086         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78087         code which expansion is under static control.  Patch imported from
78088         Akim Demaille's patch to Bison; see
78089         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78090
78091 2003-04-14  Bruno Haible  <bruno@clisp.org>
78092
78093         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78094
78095 2003-04-11  Jim Meyering  <jim@meyering.net>
78096
78097         Merge changes from Coreutils.
78098
78099         2003-03-22  Jim Meyering  <jim@meyering.net>
78100
78101         * lib/strftime.c (widen): Cast alloca return value to proper type.
78102
78103         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78104
78105         From GNU libc.
78106         * lib/strftime.c (my_strftime): Handle very large width
78107         specifications for numeric values correctly.  Improve checks for
78108         overflow.
78109
78110         2003-01-19  Jim Meyering  <jim@meyering.net>
78111
78112         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78113         definitions.
78114         (nl_get_alt_digit) [! defined my_strftime]: Define.
78115         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78116         _nl_get_alt_digit and _nl_get_walt_digit.
78117
78118         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78119         libc. These changes have no effect outside of _LIBC.
78120
78121 2003-04-10  Bruno Haible  <bruno@clisp.org>
78122
78123         * modules/findprog: New file.
78124         * MODULES.html.sh (func_all_modules): Add it.
78125
78126 2003-04-10  Bruno Haible  <bruno@clisp.org>
78127
78128         * m4/findprog.m4: New file.
78129         * m4/eaccess.m4: New file.
78130
78131 2003-04-10  Bruno Haible  <bruno@clisp.org>
78132
78133         * lib/findprog.h: New file, from GNU gettext.
78134         * lib/findprog.c: New file, from GNU gettext.
78135
78136 2003-04-05  Jim Meyering  <jim@meyering.net>
78137
78138         Merge changes from Coreutils.
78139
78140         * lib/exclude.h (PARAMS): Remove definition and uses.
78141         * lib/exclude.c: Remove uses of `PARAMS'.
78142
78143         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78144         Add test-cases for DOS filenames. Declare program_name.
78145         (main): Set up program_name.  Patch by Rich Dawe.
78146
78147         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78148         error from mntctl.
78149         Use mntctl's return value to drive the entry-processing loop, since
78150         we can't rely on the value of the vmt_length member in the last
78151         entry.  On some systems doing so could result in exhausting
78152         virtual memory.  Based in part on a patch from Mike Jetzer.
78153
78154 2003-04-04  Bruno Haible  <bruno@clisp.org>
78155
78156         * modules/linebreak: New file.
78157         * MODULES.html.sh (func_all_modules): Add it.
78158
78159 2003-04-04  Bruno Haible  <bruno@clisp.org>
78160
78161         * m4/linebreak.m4: New file.
78162
78163 2003-04-04  Bruno Haible  <bruno@clisp.org>
78164
78165         * lib/linebreak.h: New file, from GNU gettext.
78166         * lib/linebreak.c: New file, from GNU gettext with slight
78167         modifications.
78168         * lib/lbrkprop.h: New file, from GNU gettext.
78169
78170 2003-04-03  Bruno Haible  <bruno@clisp.org>
78171
78172         * modules/utf8-ucs4: New file.
78173         * modules/utf16-ucs4: New file.
78174         * modules/ucs4-utf8: New file.
78175         * modules/ucs4-utf16: New file.
78176         * MODULES.html.sh (func_all_modules): Add them.
78177
78178 2003-04-03  Bruno Haible  <bruno@clisp.org>
78179
78180         * m4/utf-ucs4.m4: New file.
78181         * m4/ucs4-utf.m4: New file.
78182
78183 2003-04-03  Bruno Haible  <bruno@clisp.org>
78184
78185         * lib/utf8-ucs4.h: New file, from GNU gettext.
78186         * lib/utf16-ucs4.h: New file, from GNU gettext.
78187         * lib/ucs4-utf8.h: New file, from GNU gettext.
78188         * lib/ucs4-utf16.h: New file, from GNU gettext.
78189
78190 2003-04-02  Bruno Haible  <bruno@clisp.org>
78191
78192         * modules/binary-io: New file.
78193         * MODULES.html.sh (func_all_modules): Add it.
78194
78195 2003-04-02  Bruno Haible  <bruno@clisp.org>
78196
78197         * lib/binary-io.h: New file, from GNU gettext.
78198
78199 2003-04-01  Bruno Haible  <bruno@clisp.org>
78200
78201         * modules/pathname: New file.
78202         * MODULES.html.sh (func_all_modules): Add it.
78203
78204 2003-04-01  Bruno Haible  <bruno@clisp.org>
78205
78206         * lib/pathname.h: New file, from GNU gettext.
78207         * lib/concatpath.c: New file, from GNU gettext.
78208
78209 2003-03-30  Bruno Haible  <bruno@clisp.org>
78210
78211         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78212
78213 2003-03-30  Bruno Haible  <bruno@clisp.org>
78214
78215         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78216         function chown() doesn't exist.
78217
78218 2003-03-28  Bruno Haible  <bruno@clisp.org>
78219
78220         * modules/copy-file: New file.
78221         * MODULES.html.sh (func_all_modules): Add it.
78222
78223 2003-03-28  Bruno Haible  <bruno@clisp.org>
78224
78225         * m4/copy-file.m4: New file.
78226
78227 2003-03-28  Bruno Haible  <bruno@clisp.org>
78228
78229         * lib/copy-file.h: New file, from GNU gettext.
78230         * lib/copy-file.c: New file, from GNU gettext.
78231
78232 2003-03-18  Jim Meyering  <jim@meyering.net>
78233
78234         * lib/quote.c (quote_n): Fix typo in comment.
78235
78236 2003-03-18  Bruno Haible  <bruno@clisp.org>
78237
78238         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
78239         checking.
78240         * m4/onceonly_2_57.m4: Likewise.
78241
78242 2003-03-17  Bruno Haible  <bruno@clisp.org>
78243
78244         * m4/onceonly.m4: Require autoconf 2.54 or newer.
78245         (m4_quote): Remove macro.
78246         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
78247
78248 2003-03-14  Jim Meyering  <jim@meyering.net>
78249
78250         Merge changes from Coreutils.
78251         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
78252         to be const, in order to avoid warnings.
78253         (obstack_room): Likewise.
78254         (obstack_empty_p): Likewise.
78255
78256 2003-03-14  Bruno Haible  <bruno@clisp.org>
78257
78258         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
78259         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
78260
78261 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78262
78263         Merge changes from Bison.
78264         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
78265         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
78266         when compiling Bison 1.875's `bitset bset = obstack_alloc
78267         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
78268         * lib/hash.c: Include <stdbool.h> unconditionally.
78269
78270 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78271
78272         * m4/onceonly.m4 (m4_quote): New macro.
78273         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
78274         Quote AC_FOREACH variable-expansions properly.
78275
78276 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78277
78278         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
78279
78280 2003-03-09  Paul Eggert  <eggert@twinsun.com>
78281
78282         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
78283         Reported by Bruce Becker; see:
78284         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
78285
78286 2003-03-03  Paul Eggert  <eggert@twinsun.com>
78287             Bruno Haible  <bruno@clisp.org>
78288
78289         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
78290         Reported by John Hughes, see
78291         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
78292
78293 2003-02-20  Bruno Haible  <bruno@clisp.org>
78294
78295         * MODULES.html.sh (func_all_modules): Add poll.
78296
78297 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78298
78299         * modules/poll: New file.
78300
78301 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78302
78303         * lib/poll_.h: New file.
78304         * lib/poll.c: New file.
78305
78306 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78307
78308         * m4/poll.m4: New file.
78309
78310 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78311
78312         * modules/mathl: New file.
78313
78314 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78315
78316         * lib/mathl.h: New file.
78317         * lib/acosl.c: New file.
78318         * lib/asinl.c: New file.
78319         * lib/atanl.c: New file.
78320         * lib/ceill.c: New file.
78321         * lib/cosl.c: New file.
78322         * lib/expl.c: New file.
78323         * lib/floorl.c: New file.
78324         * lib/frexpl.c: New file.
78325         * lib/ldexpl.c: New file.
78326         * lib/logl.c: New file.
78327         * lib/sincosl.c: New file.
78328         * lib/sinl.c: New file.
78329         * lib/sqrtl.c: New file.
78330         * lib/tanl.c: New file.
78331         * lib/trigl.c: New file.
78332         * lib/trigl.h: New file.
78333
78334 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78335
78336         * m4/mathl.m4: New file.
78337
78338 2003-02-18  Bruno Haible  <bruno@clisp.org>
78339
78340         * MODULES.html.sh (func_all_modules): Add mathl.
78341
78342 2003-02-17  Bruno Haible  <bruno@clisp.org>
78343
78344         * modules/mkdtemp: New module.
78345         * MODULES.html.sh (func_all_modules): Add it.
78346
78347 2003-02-17  Bruno Haible  <bruno@clisp.org>
78348
78349         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78350
78351 2003-02-17  Bruno Haible  <bruno@clisp.org>
78352
78353         * lib/mkdtemp.h: New file, from GNU gettext.
78354         * lib/mkdtemp.c: New file, from GNU gettext.
78355
78356 2003-02-02  Jim Meyering  <jim@meyering.net>
78357
78358         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78359         e.g. glibc-2.2.93.
78360
78361 2003-01-31  Bruno Haible  <bruno@clisp.org>
78362
78363         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78364         'rpl_rename'.
78365         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78366         'rpl_strnlen'.
78367         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78368         'rpl_strtod'.
78369         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78370         'rpl_utime'.
78371
78372 2003-01-31  Bruno Haible  <bruno@clisp.org>
78373
78374         * lib/rename.c: #undef rename before defining rpl_rename.
78375         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78376
78377 2003-01-30  Bruno Haible  <bruno@clisp.org>
78378
78379         * modules/vasnprintf, modules/vasprintf: New modules.
78380         * MODULES.html.sh (func_all_modules): Add them.
78381
78382 2003-01-30  Bruno Haible  <bruno@clisp.org>
78383
78384         * m4/signed.m4: New file, from GNU gettext.
78385         * m4/longdouble.m4: New file, from GNU gettext.
78386         * m4/wchar_t.m4: New file, from GNU gettext.
78387         * m4/wint_t.m4: New file, from GNU gettext.
78388         * m4/vasnprintf.m4: New file.
78389         * m4/vasprintf.m4: New file.
78390
78391 2003-01-30  Bruno Haible  <bruno@clisp.org>
78392
78393         * lib/printf-args.h: New file, from GNU gettext.
78394         * lib/printf-args.c: New file, from GNU gettext.
78395         * lib/printf-parse.h: New file, from GNU gettext.
78396         * lib/printf-parse.c: New file, from GNU gettext.
78397         * lib/vasnprintf.h: New file, from GNU gettext.
78398         * lib/vasnprintf.c: New file, from GNU gettext.
78399         * lib/asnprintf.c: New file, from GNU gettext.
78400         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78401         * lib/vasprintf.c: New file, from GNU gettext.
78402         * lib/asprintf.c: New file, from GNU gettext.
78403
78404 2003-01-29  Bruno Haible  <bruno@clisp.org>
78405
78406         * modules/stpncpy: New module.
78407         * MODULES.html.sh (func_all_modules): Add it.
78408
78409 2003-01-29  Bruno Haible  <bruno@clisp.org>
78410
78411         * m4/stpncpy.m4: New file.
78412
78413 2003-01-29  Bruno Haible  <bruno@clisp.org>
78414
78415         * lib/stpncpy.h: New file, from GNU gettext with modifications.
78416         * lib/stpncpy.c: New file, from GNU gettext with modifications.
78417
78418 2003-01-28  Bruno Haible  <bruno@clisp.org>
78419
78420         * modules/c-ctype: New module.
78421         * MODULES.html.sh (func_all_modules): Add it.
78422
78423 2003-01-28  Bruno Haible  <bruno@clisp.org>
78424
78425         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
78426         Paul Eggert.
78427         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
78428         Paul Eggert.
78429
78430 2003-01-27  Bruno Haible  <bruno@clisp.org>
78431
78432         * modules/xsetenv: New module.
78433         * MODULES.html.sh (func_all_modules): Add it.
78434
78435 2003-01-27  Bruno Haible  <bruno@clisp.org>
78436
78437         * lib/xsetenv.h: New file, from GNU gettext.
78438         * lib/xsetenv.c: New file, from GNU gettext.
78439
78440 2003-01-23  Jim Meyering  <jim@meyering.net>
78441
78442         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
78443         from working on systems without dirfd (at least Irix and OSF1/Tru64).
78444
78445 2003-01-23  Bruno Haible  <bruno@clisp.org>
78446
78447         * modules/minmax: New module.
78448         * MODULES.html.sh (func_all_modules): Add it.
78449
78450 2003-01-23  Bruno Haible  <bruno@clisp.org>
78451
78452         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
78453         Eggert.
78454
78455 2003-01-22  Bruno Haible  <bruno@clisp.org>
78456
78457         * modules/exit: New module.
78458         * MODULES.html.sh (func_all_modules): Add it.
78459
78460 2003-01-22  Bruno Haible  <bruno@clisp.org>
78461
78462         * lib/exit.h: New file, from GNU gettext.
78463
78464 2003-01-19  Bruno Haible  <bruno@clisp.org>
78465
78466         * gnulib-tool: Recognize option --extract-maintainer.
78467         (func_get_maintainer): New function.
78468         * modules/*: Add Maintainer entry.
78469
78470 2003-01-16  Jim Meyering  <jim@meyering.net>
78471
78472         * m4/regex.m4: The `regex' struct is both input and output.
78473         Initialize it before each use.  Patch by Tim Waugh.
78474
78475 2003-01-16  Bruno Haible  <bruno@clisp.org>
78476
78477         * MODULES.html.sh: Add a table of contents. Add the module name as
78478         leftmost column. Add hyperlinks.
78479
78480 2003-01-15  Bruno Haible  <bruno@clisp.org>
78481
78482         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
78483
78484 2003-01-15  Bruno Haible  <bruno@clisp.org>
78485
78486         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
78487         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
78488         suffix.
78489
78490 2003-01-15  Bruno Haible  <bruno@clisp.org>
78491
78492         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
78493
78494 2003-01-15  Bruno Haible  <bruno@clisp.org>
78495
78496         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
78497         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
78498
78499 2003-01-14  Jim Meyering  <jim@meyering.net>
78500
78501         * lib/same.c (same_name): Tweak a comment.
78502
78503 2003-01-14  Bruno Haible  <bruno@clisp.org>
78504
78505         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
78506         when a string comparison is sufficient.
78507
78508 2003-01-14  Bruno Haible  <bruno@clisp.org>
78509
78510         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
78511         'unsigned int'.
78512
78513 2003-01-14  Bruno Haible  <bruno@clisp.org>
78514
78515         * lib/hash-pjw.c: Add comment about low quality of this function.
78516
78517 2003-01-13  Bruno Haible  <bruno@clisp.org>
78518
78519         * modules/stpcpy: Distribute lib/stpcpy.h.
78520         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
78521
78522 2003-01-13  Bruno Haible  <bruno@clisp.org>
78523
78524         * modules/*: Add a description.
78525         * modules/strpbrk: Fix Makefile.am snippet.
78526         * modules/strtoimax: Fix dependencies.
78527         * modules/strtoumax: Likewise.
78528
78529 2003-01-13  Bruno Haible  <bruno@clisp.org>
78530
78531         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
78532         * modules/alloca (Makefile.am): All object files depend on alloca.h.
78533         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
78534
78535 2003-01-13  Bruno Haible  <bruno@clisp.org>
78536
78537         * gnulib-tool (func_create_testdir): Store config/* files in the main
78538         directory.
78539         * config.rpath: Move to ...
78540         * config/config.rpath: ... here.
78541         * modules/gettext: Contains config/config.rpath, not config.rpath.
78542         * modules/iconv: Likewise.
78543
78544 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78545
78546         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78547         to avoid collisions with libcurses and libreadline.
78548
78549         * m4/getstr.m4: Remove.
78550         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
78551
78552 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78553
78554         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78555         to avoid collisions with libcurses and libreadline.
78556
78557         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
78558         * lib/getstr.h, getstr.c: Remove.
78559         * lib/getline.c: Include "getline.h", to check interface.
78560         Move body of old getstr.c here: this defines MIN_CHUNK and
78561         declares getdelim2, which is renamed from getstr.
78562         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
78563
78564         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
78565         All uses changed.
78566         * lib/linebuffer.h: Likewise.
78567         (readline): Remove backward-compatibility macro.
78568
78569 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78570
78571         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78572         to avoid collisions with libcurses and libreadline.
78573         * getstr: Remove.
78574         * MODULES.html.sh: Remove getstr.
78575         * modules/getline: Depend on unlocked-io, not getstr.
78576
78577 2003-01-12  Jim Meyering  <jim@meyering.net>
78578
78579         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
78580
78581 2003-01-10  Bruno Haible  <bruno@clisp.org>
78582
78583         * modules/alloca: Change Makefile.am requirements. Simplify Include
78584         requirements. Add lib/alloca_.h to file list.
78585
78586 2003-01-10  Bruno Haible  <bruno@clisp.org>
78587
78588         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
78589
78590 2003-01-10  Bruno Haible  <bruno@clisp.org>
78591
78592         * lib/alloca_.h: New file.
78593         * lib/getdate.y: Unconditionally include alloca.h.
78594         * lib/makepath.c: Likewise.
78595         * lib/setenv.c: Likewise.
78596         * lib/userspec.c: Likewise.
78597
78598 2003-01-09  Karl Berry  <karl@gnu.org>
78599
78600         * MODULES.html.sh: include `dirname $0` in PATH, to find
78601         gnulib-tool.
78602
78603 2003-01-09  Bruno Haible  <bruno@clisp.org>
78604
78605         * modules/stdbool: Change configure.ac, Makefile.am requirements.
78606         Simplify Include requirements. Add lib/stdbool.h.in to file list.
78607
78608 2003-01-09  Bruno Haible  <bruno@clisp.org>
78609
78610         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
78611
78612 2003-01-09  Bruno Haible  <bruno@clisp.org>
78613
78614         * lib/stdbool.h.in: New file.
78615
78616 2003-01-09  Bruno Haible  <bruno@clisp.org>
78617
78618         * gnulib-tool (func_all_modules): Ignore files ending in ~.
78619         * MODULES.html.sh: Likewise.
78620
78621 2003-01-08  Jim Meyering  <jim@meyering.net>
78622
78623         * lib/full-write.c: Undefine and define-away `const' after inclusion
78624         of errno.h, not before.  Suggestion from Bruno Haible.
78625
78626 2003-01-08  Bruno Haible  <bruno@clisp.org>
78627
78628         * modules/full-read: Depend on full-write.
78629
78630 2003-01-08  Bruno Haible  <bruno@clisp.org>
78631
78632         * lib/safe-read.c: Include specification header first, to ensure its
78633         selfcontainedness.
78634         * lib/full-write.c: Likewise.
78635
78636 2003-01-07  Jim Meyering  <jim@meyering.net>
78637
78638         * lib/full-write.c: Rework so that it may serve to define full_read,
78639         too.
78640         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
78641
78642 2003-01-07  Bruno Haible  <bruno@clisp.org>
78643
78644         * lib/strtoimax.c: Include <stdint.h> as an alternative to
78645         <inttypes.h>.
78646         * lib/xstrtol.h: Likewise.
78647         * lib/xstrtoimax.c: Likewise.
78648         * lib/xstrtoumax.c: Likewise.
78649         * lib/human.h: Likewise.
78650
78651         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
78652         on systems that have <inttypes.h> but not <stdint.h>.
78653
78654 2003-01-07  Bruno Haible  <bruno@clisp.org>
78655
78656         * MODULES.html.sh: Add copyright notice.
78657         (missed_files): Omit CVS directory entries.
78658         (func_module): Make it work with sed-3.02.
78659         * MODULES.txt: Remove file.
78660
78661 2003-01-06  Jim Meyering  <jim@meyering.net>
78662
78663         * lib/version-etc.c: Update year in translatable copyright string.
78664
78665 2003-01-03  Karl Berry  <karl@gnu.org>
78666
78667         * config/config.{guess,sub}: update from prep.
78668
78669 2003-01-02  Karl Berry  <karl@gnu.org>
78670
78671         * doc/COPYING.DOC: belatedly updated to 1.2.
78672
78673 2003-01-01  Karl Berry  <karl@gnu.org>
78674
78675         * gnulib-tool (func_verify_module): report module name $module in
78676         error message, not $1.
78677         * gnulib-tool (create-testdir): don't complain if destdir couldn't
78678         be created, only if it doesn't exist.
78679         * gnulib-tool (last_checkin_date): don't expand the $Date here.
78680
78681 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78682
78683         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
78684
78685 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78686
78687         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
78688         memcmp if strcoll doesn't work.
78689
78690 2002-12-31  Bruno Haible  <bruno@clisp.org>
78691
78692         * lib/utime.c (utime_null): No need to call ftruncate if the file was
78693         nonempty.
78694
78695 2002-12-31  Bruno Haible  <bruno@clisp.org>
78696
78697         * lib/memcoll.c (STRCOLL): New macro.
78698         (memcoll): Use it.
78699
78700 2002-12-31  Bruno Haible  <bruno@clisp.org>
78701
78702         * lib/localcharset.h: New file.
78703         * lib/localcharset.c: Include it.
78704         * lib/unicodeio.c: Likewise.
78705
78706 2002-12-31  Bruno Haible  <bruno@clisp.org>
78707
78708         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
78709         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
78710
78711 2002-12-31  Bruno Haible  <bruno@clisp.org>
78712
78713         * lib/getline.h: Include <stddef.h>, for size_t.
78714
78715         * lib/unicodeio.h: Include <stddef.h>, for size_t.
78716         * lib/unicodeio.c: Don't include <stddef.h>.
78717
78718 2002-12-31  Bruno Haible  <bruno@clisp.org>
78719
78720         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
78721         HAVE_TM_ZONE.
78722
78723 2002-12-24  Karl Berry  <karl@gnu.org>
78724
78725         * config/config.guess: update from prep.
78726
78727 2002-12-24  Bruno Haible  <bruno@clisp.org>
78728
78729         General infrasructure.
78730         * m4/README: Rewritten.
78731         * m4/onceonly.m4: New file.
78732         * m4/onceonly_2_57.m4: New file.
78733
78734         Module atexit.
78735         * m4/atexit.m4: New file.
78736
78737         Module strtod.
78738         * m4/strtod.m4: New file.
78739
78740         Module strtol.
78741         * m4/strtol.m4: New file.
78742
78743         Module strtoul.
78744         * m4/strtoul.m4: New file.
78745
78746         Module memchr.
78747         * m4/memchr.m4: New file.
78748
78749         Module memcmp.
78750         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
78751         (jm_FUNC_MEMCMP): Invoke it.
78752
78753         Module memcpy.
78754         * m4/memcpy.m4: New file.
78755
78756         Module memmove.
78757         * m4/memmove.m4: New file.
78758
78759         Module memset.
78760         * m4/memset.m4: New file.
78761
78762         Module strcspn.
78763         * m4/strcspn.m4: New file.
78764
78765         Module strpbrk.
78766         * m4/strpbrk.m4: New file.
78767
78768         Module strstr.
78769         * m4/strstr.m4: New file.
78770
78771         Module strerror.
78772         * m4/strerror.m4: New file.
78773
78774         Module mktime.
78775         * m4/mktime.m4: Renamed from jm-mktime.m4.
78776         (gl_PREREQ_MKTIME): New macro.
78777         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
78778
78779         Module malloc.
78780         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
78781         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
78782         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
78783
78784         Module realloc.
78785         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
78786         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
78787         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
78788
78789         Module strftime.
78790         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
78791         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
78792         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
78793         gl_TM_GMTOFF.
78794         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
78795
78796         Module xalloc.
78797         * m4/xalloc.m4: New file.
78798
78799         Module alloca.
78800         * m4/alloca.m4: New file.
78801
78802         Module putenv.
78803         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
78804         (jm_FUNC_PUTENV): Invoke it.
78805
78806         Module setenv.
78807         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
78808         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
78809         when invoked twice.
78810         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
78811         gt_FUNC_SETENV.
78812
78813         Module memrchr.
78814         * m4/memrchr.m4: New file.
78815
78816         Module stpcpy.
78817         * m4/stpcpy.m4: New file.
78818
78819         Module strcase.
78820         * m4/strcase.m4: New file.
78821
78822         Module strdup.
78823         * m4/strdup.m4: New file.
78824
78825         Module strnlen.
78826         * m4/strnlen.m4: New file.
78827
78828         Module strndup.
78829         * m4/strndup.m4: New file.
78830
78831         Module xstrtod.
78832         * m4/xstrtod.m4: New file.
78833
78834         Module xstrtol.
78835         * m4/xstrtol.m4: New file.
78836
78837         Module getdate.
78838         * m4/getdate.m4: New file.
78839
78840         Module unlocked-io.
78841         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
78842         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
78843         * m4/jm-glibc-io.m4n: Remove file.
78844
78845         Module long-options.
78846         * m4/long-options.m4: New file.
78847
78848         Module md5.
78849         * m4/md5.m4: New file.
78850
78851         Module sha.
78852         * m4/sha.m4: New file.
78853
78854         Module getstr.
78855         * m4/getstr.m4: New file.
78856
78857         Module getline.
78858         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
78859         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
78860         <sys/types.h>, for size_t. Use the function name gnu_getline, not
78861         simply getline. Infoke gl_PREREQ_GETLINE.
78862
78863         Module obstack.
78864         * m4/obstack.m4: New file.
78865
78866         Module hash.
78867         * m4/hash.m4: New file.
78868
78869         Module readtokens.
78870         * m4/readtokens.m4: New file.
78871
78872         Module strverscmp.
78873         * m4/strverscmp.m4: New file.
78874
78875         Module stdbool.
78876         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
78877         OSF/1.
78878
78879         Module strtoll.
78880         * m4/strtoll.m4: New file.
78881
78882         Module strtoull.
78883         * m4/strtoull.m4: New file.
78884
78885         Module strtoimax.
78886         * m4/strtoimax.m4: New file.
78887
78888         Module strtoumax.
78889         * m4/strtoumax.m4: New file.
78890
78891         Module xstrtoimax.
78892         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
78893         jm_AC_PREREQ_XSTRTOIMAX.
78894         Moved the strtol prerequisites to strtol.m4.
78895         Moved the strtoll prerequisites to strtoll.m4.
78896         Moved the strtoimax prerequisites to strtoimax.m4.
78897
78898         Module xstrtoumax.
78899         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
78900         jm_AC_PREREQ_XSTRTOUMAX.
78901         Moved the strtoul prerequisites to strtoul.m4.
78902         Moved the strtoull prerequisites to strtoull.m4.
78903         Moved the strtoumax prerequisites to strtoumax.m4.
78904
78905         Module chown.
78906         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
78907         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
78908
78909         Module dup2.
78910         * m4/dup2.m4: New file.
78911
78912         Module ftruncate.
78913         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
78914         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
78915
78916         Module getgroups.
78917         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
78918         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
78919
78920         Module gettimeofday.
78921         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
78922         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
78923         gl_PREREQ_GETTIMEOFDAY.
78924
78925         Module mkdir.
78926         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
78927         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
78928
78929         Module mkstemp.
78930         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
78931         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
78932         jm_AC_TYPE_UINTMAX_T.
78933         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
78934
78935         Module stat.
78936         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
78937         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
78938
78939         Module lstat.
78940         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
78941         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
78942
78943         Module timespec.
78944         * m4/timespec.m4 (gl_TIMESPEC): New macro.
78945         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
78946         * m4/st_mtim.m4: Indentation.
78947
78948         Module nanosleep.
78949         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
78950         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
78951         gl_PREREQ_NANOSLEEP.
78952
78953         Module regex.
78954         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
78955         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
78956         (gl_REGEX): New macro.
78957
78958         Module rename.
78959         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
78960         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
78961
78962         Module rmdir.
78963         * m4/rmdir.m4: New file.
78964
78965         Module utime.
78966         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
78967         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
78968         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
78969
78970         Module dirname.
78971         * m4/dirname.m4: New file.
78972
78973         Module getopt.
78974         * m4/getopt.m4: New file.
78975
78976         Module unistd-safer.
78977         * m4/unistd-safer.m4: New file.
78978
78979         Module fnmatch.
78980         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
78981         declaration.
78982         (gl_PREREQ_FNMATCH_EXTRA): New macro.
78983         (gl_FUNC_FNMATCH_POSIX): New macro.
78984         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
78985         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
78986         simply fnmatch.
78987
78988         Module exclude.
78989         * m4/exclude.m4: New file.
78990
78991         Module human.
78992         * m4/human.m4: New file.
78993
78994         Module acl.
78995         * m4/acl.m4: Nop.
78996
78997         Module backupfile.
78998         * m4/backupfile.m4: New file.
78999         * m4/d-ino.m4: Indentation.
79000
79001         Module fsusage.
79002         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
79003         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
79004         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
79005
79006         Module dirfd.
79007         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
79008         requirements.
79009
79010         Module euidaccess.
79011         * m4/euidaccess.m4: New file.
79012
79013         Module file-type.
79014         * m4/file-type.m4: New file.
79015
79016         Module fileblocks.
79017         * m4/fileblocks.m4: New file.
79018
79019         Module filemode.
79020         * m4/filemode.m4: New file.
79021
79022         Module isdir.
79023         * m4/isdir.m4: New file.
79024
79025         Module lchown.
79026         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79027         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79028
79029         Module makepath.
79030         * m4/makepath.m4: New file.
79031
79032         Module modechange.
79033         * m4/modechange.m4: New file.
79034
79035         Module mountlist.
79036         * m4/mountlist.m4: New file.
79037         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79038         Indentation.
79039
79040         Module path-concat.
79041         * m4/path-concat.m4: New file.
79042
79043         Module pathmax.
79044         * m4/pathmax.m4: New file.
79045
79046         Module same.
79047         * m4/same.m4: New file.
79048
79049         Module save-cwd.
79050         * m4/save-cwd.m4: New file.
79051
79052         Module savedir.
79053         * m4/savedir.m4: New file.
79054
79055         Module xgetcwd.
79056         * m4/xgetcwd.m4: New file.
79057         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79058
79059         Module xreadlink.
79060         * m4/xreadlink.m4: New file.
79061
79062         Module safe-read.
79063         * m4/safe-read.m4: New file.
79064
79065         Module safe-write.
79066         * m4/safe-write.m4: New file.
79067
79068         Module closeout.
79069         * m4/closeout.m4: New file.
79070
79071         Module stdio-safer.
79072         * m4/stdio-safer.m4: New file.
79073
79074         Module getpass.
79075         * m4/getpass.m4: New file.
79076
79077         Module getugroups.
79078         * m4/getugroups.m4: New file.
79079
79080         Module group-member.
79081         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79082         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79083
79084         Module idcache.
79085         * m4/idcache.m4: New file.
79086
79087         Module userspec.
79088         * m4/userspec.m4: New file.
79089
79090         Module gettime.
79091         * m4/clock_time.m4: New file.
79092         * m4/gettime.m4: New file.
79093
79094         Module settime.
79095         * m4/settime.m4: New file.
79096
79097         Module posixtm.
79098         * m4/posixtm.m4: New file.
79099
79100         Module gethostname.
79101         * m4/gethostname.m4: New file.
79102
79103         Module canon-host.
79104         * m4/canon-host.m4: New file.
79105
79106         Module gettext.
79107         * m4/codeset.m4: New file, from gettext-0.11.5.
79108         * m4/gettext.m4: New file, from gettext-0.11.5.
79109         * m4/glibc21.m4: New file, from gettext-0.11.5.
79110         * m4/iconv.m4: New file, from gettext-0.11.5.
79111         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79112         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79113         * m4/inttypes.m4: New file, from gettext-0.11.5.
79114         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79115         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79116         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79117         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79118         * m4/lib-link.m4: New file, from gettext-0.11.5.
79119         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79120         * m4/progtest.m4: New file, from gettext-0.11.5.
79121         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79122         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79123         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79124
79125         Module localcharset.
79126         * m4/localcharset.m4: New file.
79127
79128         Module hard-locale.
79129         * m4/hard-locale.m4: New file.
79130
79131         Module mbswidth.
79132         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79133         onceonly macros.
79134         * m4/mbrtowc.m4: Add comment.
79135
79136         Module memcasecmp.
79137         * m4/memcasecmp.m4: New file.
79138
79139         Module memcoll.
79140         * m4/memcoll.m4: New file.
79141
79142         Module unicodeio.
79143         * m4/unicodeio.m4: New file.
79144
79145         Module rpmatch.
79146         * m4/rpmatch.m4: New file.
79147
79148         Module yesno.
79149         * m4/yesno.m4: New file.
79150
79151         Module exitfail.
79152         * m4/exitfail.m4: New file.
79153
79154         Module c-stack.
79155         * m4/c-stack.m4 (gl_C_STACK): New macro.
79156         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79157
79158         Module error.
79159         * m4/error.m4 (gl_ERROR): New macro.
79160         (jm_PREREQ_ERROR): Use onceonly macros.
79161
79162         Module fatal.
79163         * m4/fatal.m4: New file.
79164
79165         Module getloadavg.
79166         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79167         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79168
79169         Module getpagesize.
79170         * m4/getpagesize.m4: New file.
79171
79172         Module getusershell.
79173         * m4/getusershell.m4: New file.
79174
79175         Module physmem.
79176         * m4/physmem.m4: New file.
79177
79178         Module posixver.
79179         * m4/posixver.m4: New file.
79180
79181         Module quotearg.
79182         * m4/quotearg.m4: New file.
79183
79184         Module quote.
79185         * m4/quote.m4: New file.
79186
79187         Module readutmp.
79188         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79189
79190         Module sig2str.
79191         * m4/sig2str.m4: New file.
79192
79193         Other.
79194         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79195         ulonglong.m4.
79196         * m4/intmax_t.m4: New file.
79197         * m4/d-type.m4: Indentation.
79198         * m4/jm-macros.m4: Update.
79199         * m4/prereq.m4 (jm_PREREQ): Update.
79200         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79201         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79202         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79203         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79204         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79205         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79206         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79207         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79208         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79209         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79210         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79211         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79212         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79213         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79214         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79215         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79216         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79217         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79218         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79219
79220 2002-12-24  Bruno Haible  <bruno@clisp.org>
79221
79222         * MODULES.txt: Update according to m4/ changes.
79223
79224         Module gettext.
79225         * config.rpath: New file, from gettext-0.11.5.
79226
79227         * modules/*: New module descriptions.
79228         * gnulib-tool: New file.
79229         * MODULES.html.sh: New file.
79230
79231 2002-12-21  Karl Berry  <karl@gnu.org>
79232
79233         * doc/fdl.texi: update to version 1.2.
79234
79235 2002-12-19  Karl Berry  <karl@gnu.org>
79236
79237         * config/config.guess: update from prep.
79238
79239 2002-12-18  Bruno Haible  <bruno@clisp.org>
79240
79241         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
79242         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
79243
79244 2002-12-17  Bruno Haible  <bruno@clisp.org>
79245
79246         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
79247         stdlib.h, string.h.
79248
79249 2002-12-17  Bruno Haible  <bruno@clisp.org>
79250
79251         * lib/canon-host.c (strdup): Remove unused declaration.
79252
79253         * lib/fsusage.c: Include full_read.h.
79254         (get_fs_usage): Use full_read instead of safe_read.
79255
79256         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
79257
79258 2002-12-12  Karl Berry  <karl@gnu.org>
79259
79260         * config/config.guess: update from prep.
79261
79262 2002-12-11  Bruno Haible  <bruno@clisp.org>
79263
79264         * m4/setenv.m4: New file, from gettext-0.11.5.
79265
79266 2002-12-11  Bruno Haible  <bruno@clisp.org>
79267
79268         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
79269         not unsetenv().
79270         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
79271         modifications:
79272
79273         2002-12-11  Bruno Haible  <bruno@clisp.org>
79274
79275                 * setenv.c (alloca): Fall back to malloc.
79276                 (freea): New macro.
79277                 (setenv): Use freea() to free memory allocated with alloca().
79278
79279         2002-11-13  Bruno Haible  <bruno@clisp.org>
79280
79281                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
79282                 function declarations.
79283                 * unsetenv.c (unsetenv): Likewise.
79284
79285         2002-03-04  Bruno Haible  <bruno@clisp.org>
79286
79287                 Portability to AIX 4.3.3.
79288                 * unsetenv.c: New file, extracted from setenv.c.
79289                 * setenv.c: Move the unsetenv() function to unsetenv.c.
79290
79291         2001-12-20  Bruno Haible  <bruno@clisp.org>
79292
79293                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
79294                 use malloc instead. For SunOS 4.
79295
79296         2001-12-11  Bruno Haible  <bruno@clisp.org>
79297
79298                 * setenv.c: Declare alloca.
79299                 (compar_fn_t): New typedef.
79300                 (KNOWN_VALUE, STORE_VALUE): Use it.
79301
79302         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79303         setenv.h.
79304
79305 2002-12-10  Paul Eggert  <eggert@twinsun.com>
79306
79307         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
79308         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
79309         Choose values that are less likely to collide with system fnmatch
79310         options.
79311         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
79312         defined (e.g., a pure POSIX system).
79313         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
79314         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
79315
79316 2002-12-06  Paul Eggert  <eggert@twinsun.com>
79317
79318         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
79319         a pain in practice to deal with generated m4 files.  This change
79320         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
79321
79322         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
79323         and jm-glibc-io.m4, as they are no longer a special case.
79324         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
79325         kludge and the auto-generation stuff.  Check only whether the
79326         functions are declared, not whether they exist, since older hosts
79327         that don't declare the functions can't use the optimization anyway.
79328
79329 2002-12-06  Jim Meyering  <jim@meyering.net>
79330
79331         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79332
79333         Merge in changes from libc's misc/error.c, in preparation
79334         for the merge of gnulib's changes back into libc.
79335
79336         * lib/error.c (_): Define only if not already defined.
79337         Move definition to follow all #include directives.
79338         Include unlocked-io.h only if !_LIBC.
79339         [_LIBC]: Include <libio/libioP.h>.
79340         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79341         (fflush): Tweak definition to use INTUSE.
79342         (putc): Define.
79343
79344 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79345
79346         * lib/alloca.c [defined emacs]: Include "lisp.h".
79347         (xalloc_die) [defined emacs]: New macro.
79348         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79349         [! defined emacs]: Include <xalloc.h>.
79350         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79351         (pointer): Typedef to POINTER_TYPE *.
79352         (malloc): Remove decl; we now always use xmalloc.
79353         (alloca): Use old-style definition, since Emacs needs this.
79354         Check for arithmetic overflow when computing combined size.
79355
79356 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79357
79358         Do not generate unlocked-io.h automatically, since it's easier to
79359         maintain it by hand.
79360
79361         * lib/unlocked-io.h: New file, from GNU diffutils,
79362         but with proper copyright notice and attribution.
79363         * lib/gen-uio: Remove.
79364         * lib/Makefile.am: Add copyright notice.
79365         (libfetish_a_SOURCES): Add unlocked-io.h.
79366         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79367         (DISTCLEANFILES, io_functions): Remove macros.
79368         (EXTRA_DIST): Remove gen_uio.
79369         (unlocked-io.h): Remove rule.
79370
79371 2002-12-04  Jim Meyering  <jim@meyering.net>
79372
79373         Reflect the fact that stat.c and lstat.c are no longer generated.
79374         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79375         (DISTCLEANFILES): Likewise.
79376         (EXTRA_DIST): Likewise.
79377         (all_local): Don't depend on stat.c or lstat.c.
79378         (stat.c, lstat.c): Remove rules.
79379         (EXTRA_DIST): Remove xstat.in.
79380
79381         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79382         * lib/stat.c: New file.  Contents mostly from xstat.in.
79383         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79384         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79385
79386         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79387         too.
79388         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79389
79390 2002-12-03  Jim Meyering  <jim@meyering.net>
79391
79392         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79393         but not semantics, to minimize the differences between these two files.
79394         (safe_read): Change comment to mention SAFE_READ_ERROR.
79395
79396         * lib/safe-read.c (IS_EINTR): Define.
79397         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79398
79399 2002-12-02  Jim Meyering  <jim@meyering.net>
79400
79401         * lib/safe-read.c (EINTR): Define.
79402         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79403         (INT_MAX): Provide fallback.
79404         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
79405
79406         * lib/safe-read.h (SAFE_READ_ERROR): Define.
79407
79408 2002-12-02  Bruno Haible  <bruno@clisp.org>
79409
79410         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
79411         Define, taken from safe-read.c.
79412         (INT_MAX): Provide fallback.
79413         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
79414         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
79415
79416         * lib/safe-read.c (EINTR): Remove definition.
79417         (safe_read): Don't use EINTR if it is absent.
79418
79419 2002-12-01  Jim Meyering  <jim@meyering.net>
79420
79421         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
79422         zero.
79423         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
79424
79425 2002-11-27  Paul Eggert  <eggert@twinsun.com>
79426
79427         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
79428         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
79429         with `if (! (value < limit)) abort ();', for readability.
79430
79431 2002-11-26  Karl Berry  <karl@gnu.org>
79432
79433         * lib/strdup.c: copy from libc again, with jim's ok.
79434         * lib/.cppi-disable: re-add strdup.c
79435
79436 2002-11-25  Karl Berry  <karl@gnu.org>
79437
79438         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
79439         instead of "strtol.c".
79440
79441 2002-11-25  Karl Berry  <karl@gnu.org>
79442
79443         * config/install-sh: update from automake for variable quoting, $0 in
79444         error msgs, etc.
79445
79446         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
79447         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
79448         entry.
79449
79450 2002-11-25  Jim Meyering  <jim@meyering.net>
79451
79452         * lib/mktime.c: Sync from libc, now that it has the latest fix.
79453
79454 2002-11-24  Karl Berry  <karl@gnu.org>
79455
79456         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
79457         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
79458
79459 2002-11-24  Jim Meyering  <jim@meyering.net>
79460
79461         Update from coreutils:
79462
79463         * lib/mktime.c: Merge in changes from libc.
79464
79465         Avoid a link-time failure on some Linux systems.
79466         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
79467         (otherwise).
79468         (__mon_yday): Declare with the STATIC attribute.
79469         (__mktime_internal): Likewise.
79470         Based on a report from Greg Schafer.
79471
79472 2002-11-23  Jim Meyering  <jim@meyering.net>
79473
79474         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
79475         Use `unsigned', not `int', as type of index.
79476
79477         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
79478
79479         * lib/fsusage.c: Remove unneeded parentheses around operands of
79480         `defined'.
79481
79482 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79483
79484         * lib/quotearg.h: Allow multiple inclusion by surrounding with
79485         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
79486         so that we can be included first.
79487         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
79488         * lib/quotearg.c: Include quotearg.h immediately after config.h.
79489         No need to include stddef.h or sys/types.h any more.
79490         Surround local include files with "", not "<>".
79491         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
79492         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
79493         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
79494         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
79495         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
79496         (ISPRINT): Remove; no longer needed now that we assume C89.
79497
79498         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
79499         Preserve errno.
79500
79501         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
79502         quotearg_char): Use SIZE_MAX rather than
79503         (size_t) -1 when we are talking about "infinity".
79504
79505         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
79506
79507 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79508
79509         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
79510         hint that one should use `if (! x) abort ();' rather than `assert
79511         (x);', and anyway it's one less thing to worry about configuring.
79512         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
79513         hash_rehash, hash_insert): Use abort rather than assert.
79514
79515 2002-11-22  Bruno Haible  <bruno@clisp.org>
79516
79517         * lib/safe-read.h: Assume C89. Add comments.
79518         (safe_read): Change return type to size_t.
79519         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
79520         byte counts > SSIZE_MAX correctly.
79521         * lib/safe-write.h: New file.
79522         * lib/safe-write.c: New file.
79523         * lib/full-read.h: New file.
79524         * lib/full-read.c: New file.
79525         * lib/full-write.h: Assume C89. Add comments.
79526         * lib/full-write.c: Include safe-write.h.
79527         (full_write): Rewritten to use safe_write.
79528         Suggested by Jim Meyering and Paul Eggert.
79529
79530 2002-11-21  Jim Meyering  <jim@meyering.net>
79531
79532         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
79533
79534         Merge in changes from the coreutils.
79535
79536         2002-09-25  Paul Eggert  <eggert@twinsun.com>
79537         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
79538         <stdint.h>.
79539         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
79540         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
79541         int.  Work more efficiently if X is the same width as uintmax_t.
79542         Do not compare X to -1, to avoid bogus compiler warning.
79543         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
79544         Don't assume that f_frsize and f_bsize are the same type.
79545
79546         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
79547         warning on FreeBSD.
79548
79549         * lib/makepath.c (make_path): Restore umask *before* creating the final
79550         component.
79551         (make_path): Minor reformatting.
79552
79553         * lib/xmalloc.c: Adjust to work with new autoconf macros,
79554         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
79555         HAVE_MALLOC/HAVE_REALLOC.
79556
79557         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
79558         dummy ones.  At least on GNU/Linux systems, `auto' means something
79559         else.
79560         From Michael Stone.
79561
79562 2002-11-21  Bruno Haible  <bruno@clisp.org>
79563
79564         Remove case insensitive option matching.
79565         * lib/argmatch.h (argcasematch): Remove declaration.
79566         (ARGCASEMATCH): Remove macro.
79567         (__xargmatch_internal): Remove case_sensitive argument.
79568         (XARGMATCH): Update.
79569         (XARGCASEMATCH): Remove macro.
79570         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
79571         case_sensitive argument.
79572         (argcasematch): Remove function.
79573         (__xargmatch_internal): Remove case_sensitive argument.
79574         (main): Use XARGMATCH instead of XARGCASEMATCH.
79575
79576         * lib/xmalloc.c: Change compile-time error message. Add comment about
79577         required autoconf version.
79578
79579 2002-11-20  Paul Eggert  <eggert@twinsun.com>
79580
79581         Merge argmatch cleanups from Bison.  Assume C89.
79582
79583         * lib/argmatch.c: Include config.h here, not in argmatch.h.
79584         Include stdlib.h, for EXIT_FAILURE.
79585         Always include <string.h>, since we assume C89.
79586         (EXIT_FAILURE): Remove pre-C89 bug workaround.
79587         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
79588         Include <stddef.h> instead, since it's all we need for size_t.
79589         (PARAMS): Remove.  All uses removed.
79590         (ARRAY_CARDINALITY): Do not bother to #undef.
79591         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
79592         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79593         Remove unnecessary parentheses.
79594         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79595         Insert necessary parentheses.
79596         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
79597         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
79598
79599 2002-11-19  Bruno Haible  <bruno@clisp.org>
79600
79601         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
79602         * lib/mbswidth.h: Include <stddef.h>, for size_t.
79603
79604         * lib/mbswidth.h (PARAMS): Remove macro.
79605         (mbswidth, mbsnwidth): Use ANSI C function declarations.
79606         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
79607
79608         * lib/gcd.h (PARAMS): Remove macro.
79609         (gcd): Use ANSI C function declarations.
79610         * lib/gcd.c (gcd): Likewise.
79611
79612 2002-11-15  Bruno Haible  <bruno@clisp.org>
79613
79614         * lib/strcspn.c: Include <stddef.h>.
79615         (strcspn): Use ANSI C function declaration. Change return type to
79616         size_t. Use NULL.
79617         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
79618         (strpbrk): Use NULL.
79619         * lib/strpbrk.h (PARAMS): Remove macro.
79620         (strpbrk): Use ANSI C function declaration.
79621         * lib/strstr.c: Don't include <sys/types.h>.
79622         * lib/strstr.h (PARAMS): Remove macro.
79623         (strstr): Use ANSI C function declarations.
79624
79625 2002-11-14  Karl Berry  <karl@gnu.org>
79626
79627         * config/mkinstalldirs: `do' on separate line, instead of
79628         `for var; do'.
79629
79630 2002-11-06  Bruno Haible  <bruno@clisp.org>
79631
79632         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
79633         * lib/gcd.c (gcd): Likewise.
79634
79635 2002-11-05  Bruno Haible  <bruno@clisp.org>
79636
79637         * lib/gcd.h: New file, from gettext-0.11.5.
79638         * lib/gcd.c: New file, from gettext-0.11.5.
79639
79640 2002-11-05  Bruno Haible  <bruno@clisp.org>
79641
79642         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79643         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79644         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79645         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79646
79647         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
79648         <libintl.h>.
79649         * lib/makepath.c: Include gettext.h instead of <locale.h> and
79650         <libintl.h>.
79651
79652         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
79653         * lib/human.c: Include gettext.h instead of <libintl.h>.
79654         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
79655         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
79656         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
79657         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
79658         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
79659         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
79660         (textdomain): Remove definition.
79661         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
79662
79663         * lib/long-options.c: Remove include of <libintl.h> and definition of
79664         _.
79665         * lib/same.c: Remove include of <libintl.h> and definition of _.
79666
79667 2002-11-04  Owen Taylor  <otaylor@redhat.com>
79668
79669         * lib/config.charset: A few additions for Solaris.
79670
79671 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79672
79673         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
79674         * lib/localcharset.c (locale_charset): Declare as extern "C".
79675
79676 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79677
79678         * lib/config.charset: msdos in uk_UA uses CP1125.
79679
79680 2002-11-04  Bruno Haible  <bruno@clisp.org>
79681
79682         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
79683         * lib/strcase.h: New file, from GNU gettext-0.11.5.
79684         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
79685         * lib/strstr.h: New file, from GNU gettext-0.11.5.
79686         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
79687
79688 2002-11-04  Bruno Haible  <bruno@clisp.org>
79689
79690         * lib/localcharset.c (locale_charset): Don't return an empty string.
79691
79692 2002-11-04  Bruno Haible  <bruno@clisp.org>
79693
79694         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
79695         aliases.
79696
79697 2002-11-04  Bruno Haible  <bruno@clisp.org>
79698
79699         * lib/config.charset: Update for newest glibc. Add canonical names
79700         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
79701
79702 2002-11-04  Bruno Haible  <bruno@clisp.org>
79703
79704         * lib/config.charset: Add support for NetBSD.
79705
79706 2002-11-04  Bruno Haible  <bruno@clisp.org>
79707
79708         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
79709
79710 2002-11-01  Bruno Haible  <bruno@clisp.org>
79711
79712         * configure.in: Add AC_CONFIG_AUX_DIR call.
79713         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
79714         test/Makefile.
79715         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
79716
79717 2002-09-28  Karl Berry  <karl@gnu.org>
79718
79719         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
79720         installed automake until the next release, since changes have been
79721         made.
79722
79723 2002-09-25  Karl Berry  <karl@gnu.org>
79724
79725         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
79726         * lib/getopt*: copy from libc/posix.
79727         * lib/gettext.h: copy from gettext.
79728         * lib/.cppi-disable: add strdup.c, gettext.h.
79729
79730 2002-09-25  Karl Berry  <karl@gnu.org>
79731
79732         * config/srclist.txt: enable gettext.h check.
79733         * config/config.{guess,sub}: update from prep.
79734         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
79735                 from automake 1.6.3.
79736         See srclist*.
79737
79738 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
79739
79740         * regex.c (PATFETCH): Remove the translating fetch.
79741         (PATFETCH_RAW): Rename to PATFETCH.
79742         (set_image_of_range): New fun.
79743         (SET_RANGE_TABLE_WORK_AREA): Use it.
79744         (regex_compile): Don't translate the pattern chars so eagerly.
79745         Only do it when inserting an `exactn' bytecode or when handling
79746         a char-range.
79747         (mutually_exclusive_p): Avoid empty statement.
79748
79749 2002-07-06  Jim Meyering  <meyering@lucent.com>
79750
79751         * m4/README: Don't mention Makefile.am.in.
79752         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
79753
79754 2002-07-01  Jim Meyering  <meyering@lucent.com>
79755
79756         * lib/c-stack.c: Include sys/time.h.
79757         From Volker Borchert.
79758
79759 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79760
79761         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
79762
79763 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79764
79765         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
79766         New macro.  Use it uniformly instead of
79767         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
79768         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
79769         reported by Vin Shelton.
79770
79771 2002-06-22  Paul Eggert  <eggert@twinsun.com>
79772
79773         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
79774         Do not assume SA_SIGINFO behavior.
79775         Bug reported by Jim Meyering on NetBSD 1.5.2.
79776
79777 2002-06-22  Jim Meyering  <meyering@lucent.com>
79778
79779         * m4/c-stack.m4: New file, from diffutils-2.8.2.
79780         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
79781
79782         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
79783         now that configure.ac uses AC_GNU_SOURCE.
79784         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
79785         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
79786
79787         Update to latest tools.  Suggestions from Paul Eggert.
79788         * m4/stdbool.m4: New file, from diffutils-2.8.2.
79789         * m4/gnu-source.m4: Update from diffutils-2.8.2.
79790         * m4/fnmatch.m4: Likewise.
79791         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
79792         to AC_HEADER_STDBOOL
79793
79794 2002-06-22  Jim Meyering  <meyering@lucent.com>
79795
79796         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
79797         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
79798
79799 2002-06-22  Jim Meyering  <meyering@lucent.com>
79800
79801         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
79802
79803         * lib/exitfail.c, exitfail.h: Likewise.
79804         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
79805
79806         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
79807         of fnmatch.h.
79808         (EXTRA_DIST): Add fnmatch_loop.c.
79809         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
79810
79811         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
79812         * lib/fnmatch.c: Update from diffutils-2.8.2.
79813         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
79814         * lib/fnmatch.h: Remove file.
79815
79816 2002-06-21  Jim Meyering  <meyering@lucent.com>
79817
79818         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
79819         * m4/mbrtowc.m4: Likewise.
79820
79821         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
79822         * m4/mbswidth.m4: Reflect name change:
79823         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
79824         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79825
79826         * m4/lib-link.m4: Update from gettext-0.11.2.
79827         * m4/gettext.m4: Likewise.
79828
79829         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
79830         From Alfred M. Szmidt.
79831
79832 2002-06-18  Paul Eggert  <eggert@twinsun.com>
79833
79834         * lib/file-type.h: Report an error if neither S_ISREG nor
79835         S_IFREG is defined, instead of using a test specific to glibc
79836         2.2.  This should be safe, since POSIX requires S_ISREG and
79837         Unix Version 7 had S_IFREG.  We don't need to check for
79838         <sys/types.h> since we don't use any symbols that it defines.
79839
79840 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
79841
79842         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
79843         $@-t, so that each temporary file name is unique and valid in the first
79844         8 characters, for operation under DOS.
79845
79846 2002-06-15  Paul Eggert  <eggert@twinsun.com>
79847
79848         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
79849
79850 2002-06-15  Jim Meyering  <meyering@lucent.com>
79851
79852         Work even with DJGPP 2.03, which lacks support for symlinks.
79853         From Richard Dawe.
79854         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
79855         is defined.
79856         * lib/lchown.c (S_ISLNK): Likewise.
79857
79858 2002-06-15  Jim Meyering  <meyering@lucent.com>
79859
79860         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
79861         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
79862         have been included before this file.
79863
79864 2002-06-14  Jim Meyering  <meyering@lucent.com>
79865
79866         * lib/file-type.h: Use the version from diffutils-2.8.2.
79867         * lib/file-type.c: Likewise.
79868
79869 2002-06-07  Jim Meyering  <meyering@lucent.com>
79870
79871         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
79872         They're needed at least for NetBSD 1.5.2.
79873         ($statxfs_includes): Include those same headers.
79874         ($statxfs_includes): Include sys/vfs.h if available.
79875         ($statxfs_includes): Likewise for sys/statvfs.h.
79876         Check for the following members in both structs statfs and statvfs:
79877         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
79878
79879 2002-06-01  Jim Meyering  <meyering@lucent.com>
79880
79881         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
79882         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
79883
79884 2002-05-28  Jim Meyering  <meyering@lucent.com>
79885
79886         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
79887         Reported by Volker Borchert.
79888
79889 2002-05-27  Jim Meyering  <meyering@lucent.com>
79890
79891         Fix a problem seen only on nonconforming systems whereby ls.c's
79892         use of localtime, and then of gettimeofday would cause trouble:
79893         the localtime call used to initialize rpl_gettimeofday's save
79894         mechanism would clobber ls's current local time information so
79895         that in any long listing the first file would always be listed
79896         with date 1970-01-01.  Analysis by Volker Borchert.
79897
79898         * lib/gettimeofday.c (localtime): Undefine.
79899         (rpl_localtime): New function.
79900
79901 2002-05-27  Jim Meyering  <meyering@lucent.com>
79902
79903         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
79904         localtime.
79905
79906         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
79907         use the replacement function; it wouldn't resolve at link time.
79908         Reported by Volker Borchert.
79909
79910 2002-05-22  Jim Meyering  <meyering@lucent.com>
79911
79912         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
79913         file-type.h.
79914         * lib/file-type.h: New file.
79915         * lib/file-type.c (file_type): New file/function.  Extracted from
79916         diffutils.
79917
79918 2002-04-30  Jim Meyering  <meyering@lucent.com>
79919
79920         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
79921
79922 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79923
79924         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
79925
79926 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79927
79928         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
79929         Do not check for alloca.h (no longer used) or stdbool.h (was never
79930         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
79931
79932 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79933
79934         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
79935
79936 2002-04-29  Jim Meyering  <meyering@lucent.com>
79937
79938         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
79939         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
79940         Use AC_FUNC_STRNLEN here instead.
79941
79942         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
79943         With autoconf-2.53a, it's part of AC_PROG_CC.
79944
79945 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79946
79947         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
79948         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
79949
79950 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79951
79952         * lib/sig2str.h, lib/sig2str.c: New files.
79953         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
79954
79955 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79956
79957         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
79958         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
79959         of 127, since 64 is the largest conceivable number for ancient
79960         nonstandard hosts.
79961         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
79962
79963 2002-04-28  Jim Meyering  <meyering@lucent.com>
79964
79965         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
79966
79967 2002-04-24  Jim Meyering  <meyering@lucent.com>
79968
79969         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
79970         (jm_PREREQ): Use it.
79971
79972         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
79973         mach/mach.h fcntl.h.
79974         Check for this function: setlocale.
79975
79976 2002-04-24  Jim Meyering  <meyering@lucent.com>
79977
79978         * lib/gettext.h: New file, from Gettext.
79979         * lib/Makefile.am (INCLUDES): Remove -I../intl.
79980         (libfetish_a_SOURCES): Add gettext.h.
79981
79982 2002-04-16  Jim Meyering  <meyering@lucent.com>
79983
79984         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
79985         ut_pid, ut_id, ut_exit.
79986
79987 2002-04-16  Jim Meyering  <meyering@lucent.com>
79988
79989         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
79990         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
79991         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
79992
79993 2002-04-12  Jim Meyering  <meyering@lucent.com>
79994
79995         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
79996         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
79997         existence of the getmntinfo function.  Needed for Darwin 5.3.
79998
79999         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
80000         This is necessary at least on Darwin 5.3.
80001
80002         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
80003         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
80004         strnlen.o in the library, and that makes some versions of ranlib
80005         object.
80006
80007 2002-04-12  Jim Meyering  <meyering@lucent.com>
80008
80009         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
80010
80011 2002-04-09  Jim Meyering  <meyering@lucent.com>
80012
80013         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
80014         to be more precise.  Rather than saying we're checking whether the
80015         function `works', say what we're testing.
80016         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
80017         Reported by Bruno Haible.
80018
80019 2002-03-10  Jim Meyering  <meyering@lucent.com>
80020
80021         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80022         Suggestion from Santiago Vila.
80023
80024 2002-03-08  Jim Meyering  <meyering@lucent.com>
80025
80026         * lib/rename.c: Mention that this wrapper is needed also on
80027         mips-dec-ultrix4.4 systems.
80028
80029 2002-03-02  Jim Meyering  <meyering@lucent.com>
80030
80031         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80032         not HAVE_CLOCK_SETTIME.
80033
80034 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80035
80036         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80037         Check for clock_settime.
80038
80039 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80040
80041         * lib/nanosleep.h: Rename to....
80042         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80043
80044         * lib/gettime.c: New file.
80045         * lib/settime.c: New file.
80046         * lib/stime.c: Remove.
80047
80048         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80049         timespec.h.  Remove nanosleep.h.
80050
80051 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80052
80053         * m4/acl.m4: New file.
80054         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80055         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80056
80057 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80058
80059         * lib/acl.c, lib/acl.h: New files.
80060         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80061
80062 2002-02-24  Jim Meyering  <meyering@lucent.com>
80063
80064         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80065         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80066         cause trouble.  Reported by Nelson Beebe.
80067
80068 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80069
80070         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80071         compilers that don't know that xalloc_die never returns.
80072
80073 2002-02-20  Jim Meyering  <meyering@lucent.com>
80074
80075         * lib/getdate.c: Regenerate using bison-1.33.
80076
80077 2002-02-17  Jim Meyering  <meyering@lucent.com>
80078
80079         * config/config.guess (main): Don't use `head -1'; it's no longer
80080         portable. Use `sed 1q' instead.
80081
80082 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80083
80084         * m4/codeset.m4: Upgrade to gettext-0.11.
80085         * m4/gettext.m4: Upgrade to gettext-0.11.
80086         * m4/glibc21.m4: Upgrade to gettext-0.11.
80087         * m4/iconv.m4: Upgrade to gettext-0.11.
80088         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80089         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80090         * m4/lib-ld.m4: New file, from gettext-0.11.
80091         * m4/lib-link.m4: New file, from gettext-0.11.
80092         * m4/lib-prefix.m4: New file, from gettext-0.11.
80093         * m4/progtest.m4: Upgrade to gettext-0.11.
80094
80095 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80096
80097         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80098         (jm_PREREQ): Use it.
80099
80100 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80101
80102         * lib/posixver.c, lib/posixver.h: New files.
80103         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80104
80105 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80106             Bruno Haible  <bruno@clisp.org>
80107
80108         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80109         (fwrite_success_callback): New declaration.
80110         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80111         print_unicode_char. Call failure callback instead of error.
80112         (fwrite_success_callback): New function.
80113         (exit_failure_callback): New function.
80114         (fallback_failure_callback): New function.
80115         (print_unicode_char): Call unicode_to_mb.
80116
80117 2002-01-26  Jim Meyering  <meyering@lucent.com>
80118
80119         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80120         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80121
80122 2002-01-26  Jim Meyering  <meyering@lucent.com>
80123
80124         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80125
80126 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80127
80128         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80129
80130 2002-01-22  Jim Meyering  <meyering@lucent.com>
80131
80132         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80133         Otherwise, some versions of automake would omit the rule that makes
80134         Makefile from Makefile.in.
80135
80136 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80137
80138         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80139         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80140         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80141         (memcoll): Set errno to zero if there is no error.
80142
80143         * lib/quotearg.c (quotearg_buffer_restyled):
80144         Fix bug with quoting buffers containing NUL when backslashing escapes.
80145         This bug was exposed by the other changes in this patch.
80146         (quotearg_n_options): New arg ARGSIZE.
80147         All callers changed.
80148         (quoting_options_from_style): New function.
80149         (quotearg_n_style): Use it.
80150         (quotearg_n_style_mem): New function.
80151
80152         * lib/quotearg.h (quotearg_n_style_mem): New function.
80153
80154 2002-01-19  Jim Meyering  <meyering@lucent.com>
80155
80156         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80157         Remove useless quotes: DF_PROG="df".
80158         * m4/strnlen.m4: New file.
80159
80160 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80161
80162         * lib/backupfile.c (ISDIGIT): Comment fix.
80163         * lib/getdate.y (ISDIGIT): Likewise.
80164         * lib/posixtm.c (ISDIGIT, year): Likewise.
80165         * lib/strverscmp.c (ISDIGIT): Likewise.
80166         * lib/userspec.c (ISDIGIT): Likewise.
80167
80168 2002-01-16  Jim Meyering  <meyering@lucent.com>
80169
80170         * lib/getdate.y: Add three semicolons, each just before a closing
80171         brace. Bison (as of version 1.31) no longer papers over that mistake.
80172
80173 2002-01-05  Jim Meyering  <meyering@lucent.com>
80174
80175         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80176
80177 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80178
80179         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80180         not silently exit merely because the output buffer happens to
80181         have nothing pending.
80182
80183 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80184
80185         See the big note in ../ChangeLog.
80186         * lib/human.c (suffixes): Prefer K to k for 1024.
80187         (generate_suffix_backwards): New function.
80188         (human_readable_inexact): Use it.
80189         * lib/xstrtol.c (__xstrtol): If there is no number but there
80190         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80191         Accept 'K' as well as 'k'.
80192
80193 2001-12-15  Jim Meyering  <meyering@lucent.com>
80194
80195         * lib/regex.h (__restrict_arr): Update from libc.
80196
80197         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80198         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80199         (STREQ): Define.
80200
80201 2001-12-14  Jim Meyering  <meyering@lucent.com>
80202
80203         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80204         Suggestion from Bruno Haible.
80205
80206 2001-12-10  Jim Meyering  <meyering@lucent.com>
80207
80208         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80209         xrealloc, Instead, include "xalloc.h".
80210         (initbuffer): Don't cast xmalloc return value to char*.
80211         (readline): Reword comment.
80212         Don't cast xrealloc return value to char*
80213         Return NULL, not 0.
80214
80215 2001-12-09  Jim Meyering  <meyering@lucent.com>
80216
80217         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80218         about `signed and unsigned type in conditional expression'.
80219         * lib/posixtm.c (posix_time_parse): Likewise.
80220
80221         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80222
80223         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80224         to avoid a pedantic warning.
80225
80226         * lib/getstr.c: Don't include assert.h.
80227         (getstr): Remove warning-evoking assertions.
80228         Return -1 if offset parameter is out of bounds.
80229         Change the type of a local from int to size_t.
80230
80231         * lib/strftime.c (my_strftime_localtime_r): Include this function
80232         definition in the `#if ! HAVE_TM_GMTOFF' block.
80233
80234         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80235         Include xalloc.h instead.
80236
80237 2001-12-02  Jim Meyering  <meyering@lucent.com>
80238
80239         * lib/tempname.c: Don't declare getenv, thus reverting the change of
80240         2001-11-18.  It's no longer necessary, now that stdlib.h is always
80241         included.
80242
80243         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
80244         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
80245
80246 2001-11-30  Akim Demaille  <akim@epita.fr>
80247
80248         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
80249         before being defined.
80250
80251 2001-11-27  Paul Eggert  <eggert@twinsun.com>
80252
80253         * lib/quotearg.h (quotearg_n, quotearg_n_style):
80254         First arg is int, not unsigned.
80255         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
80256         (SIZE_MAX, UINT_MAX): New macros.
80257         (quotearg_n_options): Abort if N is negative.
80258         Avoid overflow check on hosts where size_t is 64 bits and int
80259         is 32 bits, as overflow is impossible there.
80260         Fix off-by-one typo that caused unnecessary reallocation.
80261
80262 2001-11-27  Jim Meyering  <meyering@lucent.com>
80263
80264         * lib/tempname.c: Merge with version from libc.
80265         * lib/regex.c: Likewise.
80266
80267         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
80268         systems for which STDC_HEADERS is 0, it was not included, resulting in
80269         a warning about an integer-to-pointer conversion problem with getenv.
80270         Reported by Volker Borchert.
80271
80272 2001-11-26  Jim Meyering  <meyering@lucent.com>
80273
80274         * lib/gtod.h: Remove file.
80275         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
80276         * lib/gettimeofday.c: Don't include gtod.h.
80277         (GTOD_init): Remove function.
80278         (rpl_gettimeofday): Do its job here instead, rather than aborting.
80279         Suggestion from Volker Borchert.
80280
80281 2001-11-23  Jim Meyering  <meyering@lucent.com>
80282
80283         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
80284         it.
80285         * lib/hash.c (struct hash_table): Define it here instead.
80286
80287 2001-11-22  Jim Meyering  <meyering@lucent.com>
80288
80289         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
80290
80291 2001-11-20  Jim Meyering  <meyering@lucent.com>
80292
80293         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
80294         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
80295
80296 2001-11-19  Jim Meyering  <meyering@lucent.com>
80297
80298         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
80299         directory.  Use "conftestXXXXXX" as the template.
80300         Suggestion from Paul Eggert.
80301
80302         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
80303         immediately, so the test doesn't mistakenly hit the max-open-files
80304         limit.
80305
80306 2001-11-18  Paul Eggert  <eggert@twinsun.com>
80307
80308         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
80309         (TEMPORARIES): New macro.
80310         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
80311         removes an artificial limitation (e.g. HP-UX 10.20, where
80312         TMP_MAX is 17576).
80313
80314 2001-11-18  Jim Meyering  <meyering@lucent.com>
80315
80316         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
80317
80318 2001-11-18  Jim Meyering  <meyering@lucent.com>
80319
80320         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
80321         on SunOS 4.
80322
80323         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
80324         files will be created before anything else.
80325
80326 2001-11-17  Paul Eggert  <eggert@twinsun.com>
80327
80328         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80329         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80330
80331 2001-11-17  Jim Meyering  <meyering@lucent.com>
80332
80333         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80334         Prompted by a report from Bob Proulx.
80335
80336         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80337         Instead, require UTILS_FUNC_MKSTEMP.
80338
80339 2001-11-17  Jim Meyering  <meyering@lucent.com>
80340
80341         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80342         Now, that's done as part of AC_FUNC_STRTOD.
80343
80344 2001-11-17  Jim Meyering  <meyering@lucent.com>
80345
80346         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80347         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80348         rather than group writable.  Patch by Juan F. Codagnone.
80349
80350         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80351         xrealloc, Instead, include "xalloc.h".
80352
80353         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80354         Remove explicit declarations of xmalloc, xrealloc,
80355         and xstrdup.  Instead, include "xalloc.h".
80356
80357         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80358         unlocked-io.h.
80359         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80360         Likewise.
80361         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80362
80363         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80364         Reported by Padraig Brady.
80365
80366         * lib/mkstemp.c: #undef mkstemp.
80367         Include config.h.
80368         (rpl_mkstemp): Rename from mkstemp.
80369         Protoize.
80370
80371 2001-11-16  Jim Meyering  <meyering@lucent.com>
80372
80373         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80374         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80375         determine the amount of total physical memory, use pstat_getstatic.
80376         HPUX-11 doesn't define _SC_PHYS_PAGES.
80377         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80378         If sysconf couldn't be used to determine the amount of available
80379         physical memory, use both pstat_getstatic and pstat_getdynamic.
80380         Based on a patch from Bob Proulx.
80381
80382 2001-11-10  Jim Meyering  <meyering@lucent.com>
80383
80384         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80385         (jm_PREREQ): Use it.
80386
80387 2001-11-09  Jim Meyering  <meyering@lucent.com>
80388
80389         * m4/jm-macros.m4: Require autoconf-2.52f.
80390         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80391         Use these AC_-prefixed names, not the AM_-prefixed ones.
80392
80393         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80394
80395 2001-11-05  Jim Meyering  <meyering@lucent.com>
80396
80397         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80398
80399 2001-11-04  Jim Meyering  <meyering@lucent.com>
80400
80401         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
80402         $DEFS.
80403
80404 2001-11-03  Jim Meyering  <meyering@lucent.com>
80405
80406         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
80407         of AC_DEFUN.
80408
80409         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
80410         know the name of the variable in the macro definition.
80411
80412 2001-11-03  Jim Meyering  <meyering@lucent.com>
80413
80414         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
80415         in argmatch_to_argument call.
80416
80417         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
80418         argument.
80419
80420         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
80421         e.g., a fault due to an attempt to free a NULL pointer.
80422
80423 2001-11-01  Jim Meyering  <meyering@lucent.com>
80424
80425         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
80426         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
80427
80428 2001-11-01  Jim Meyering  <meyering@lucent.com>
80429
80430         * lib/dirfd.c, lib/dirfd.h: New files.
80431         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
80432
80433         * lib/hash.c (hash_print) [TESTING]: Clean up.
80434
80435 2001-10-22  Paul Eggert  <eggert@twinsun.com>
80436
80437         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
80438         to avoid a warning if -Wall.
80439
80440 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
80441
80442         * README: New file
80443         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
80444         (per RMS's instructions, this is now the canonical source)
80445         * lgpl/, gpl/: New directories.
80446
80447 2001-10-21  Paul Eggert  <eggert@twinsun.com>
80448
80449         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
80450
80451 2001-10-21  Jim Meyering  <meyering@lucent.com>
80452
80453         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
80454         this code would end up calling gettext even in packages built
80455         with --disable-nls.
80456         * lib/getopt.c (_): Likewise.
80457         * lib/regex.c (_): Likewise.
80458
80459 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80460
80461         * m4/error.m4 (jm_PREREQ_ERROR):
80462         Do not invoke AC_CHECK_FUNCS with strerror_r, as
80463         AC_FUNC_STRERROR_R does that.
80464         Check for strerror declaration.
80465
80466         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
80467         are supposed to have them these days.
80468         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
80469         Merge changes from latest Autoconf CVS.
80470         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
80471         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
80472         POSIX decided to standardize on the int flavor of strerror_r.
80473
80474 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80475
80476         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
80477         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
80478         Use strerror_r that is only a macro, even if it is not a function.
80479         (strerror): Check for HAVE_DECL_STRERROR before declaring.
80480         (private_strerror): Use prototypes, not old-style function definition.
80481         (print_errno_message): New function.
80482         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
80483         char*-flavored one.
80484         (error_tail, error, error_at_line): Use it.
80485
80486 2001-10-11  Jim Meyering  <meyering@lucent.com>
80487
80488         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
80489         and quote_n (1, ... to avoid clobbering a buffer.
80490
80491 2001-10-05  Jim Meyering  <meyering@lucent.com>
80492
80493         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
80494         hash-pjw.h.
80495         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
80496         * lib/hash-pjw.h: New file.
80497
80498 2001-09-30  Jim Meyering  <meyering@lucent.com>
80499
80500         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
80501         `struct fsstat' has the `f_fstypename' member.
80502         Use that to define FS_TYPE, which is now used to make
80503         the getfsstat link test tighter.
80504
80505 2001-09-30  Jim Meyering  <meyering@lucent.com>
80506
80507         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
80508         Include <sys/ucred.h>, for Apple Darwin.
80509         Include sys/mount.h and sys/fs_types.h only if available.
80510         (FS_TYPE): Define.
80511         (read_filesystem_list): Use FS_TYPE.
80512
80513 2001-09-29  Paul Eggert  <eggert@twinsun.com>
80514
80515         * lib/exclude.c (excluded_filename): 0 -> false, since it's
80516         a boolean context.
80517
80518 2001-09-29  Jim Meyering  <meyering@lucent.com>
80519
80520         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80521         [one-argument getmntent function]): Include stdio.h before mntent.h.
80522         SunOS 4.1.x needs it for the declaration of `FILE'.
80523         Patch by Volker Borchert.
80524
80525         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80526         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
80527         sys/fs_types.h, and make the link-test for getfsstat guard #include
80528         directives with appropriate #if HAVE_*_H tests so that we can
80529         detect getfsstat on Apple Darwin1.3.7 systems.
80530         Reported by Nelson Beebe.
80531         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
80532
80533 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80534
80535         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80536         #defines strtoimax.  Also treat the other strto* functions
80537         like strtoimax.
80538
80539         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80540         Check for strtoul and strtoumax,
80541         as those declarations are made even in the signed case.
80542         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
80543         Likewise, for strtol and strtoimax.
80544
80545 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80546
80547         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80548         #defines strtoimax.  Also treat the other strto* functions
80549         like strtoimax.
80550
80551         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
80552         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
80553         (strtoimax, strtoumax): Do not declare if already defined as a macro.
80554
80555 2001-09-26  Jim Meyering  <meyering@lucent.com>
80556
80557         Most macros in unlocked-io.h had the wrong number of arguments.
80558         * lib/gen-uio: New script.
80559         (USE_UNLOCKED_IO): Define to 1 if not already defined.
80560         * lib/unlocked-io.hin: Remove file.
80561         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
80562         rather than trying to embed it here.
80563         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
80564         Reported by Padraig Brady.
80565
80566 2001-09-25  Volker Borchert  <bt@teknon.de>
80567
80568         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
80569         `result'.
80570
80571 2001-09-24  Jim Meyering  <meyering@lucent.com>
80572
80573         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
80574
80575 2001-09-23  Jim Meyering  <meyering@lucent.com>
80576
80577         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
80578         instead of the mere test for existence of mntent.h.  The latter
80579         would get a false-positive on AIX 3.4 systems.
80580         In the outer getmntent if-block, don't die if neither of the getmntent
80581         tests succeeds.  Instead, just fall through and continue with the
80582         remaining tests.
80583
80584 2001-09-23  Jim Meyering  <meyering@lucent.com>
80585
80586         * lib/mountlist.c: Remove useless parentheses in #if directives.
80587         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
80588         the deprecated MOUNTED symbol is no longer defined in mntent.h.
80589
80590 2001-09-22  Jim Meyering  <meyering@lucent.com>
80591
80592         * m4/gettext.m4: New file.  From gettext.
80593         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
80594         * m4/progtest.m4: Likewise
80595         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
80596         * m4/glibc21.m4: Likewise.
80597
80598         * m4/libintl.m4: Remove.  No longer used.
80599
80600 2001-09-22  Jim Meyering  <meyering@lucent.com>
80601
80602         * lib/localcharset.c: Update from latest gettext.
80603         * lib/config.charset: Likewise.
80604
80605 2001-09-20  Jim Meyering  <meyering@lucent.com>
80606
80607         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
80608         strtoimax.
80609         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
80610         strtoumax.
80611
80612 2001-09-20  Jim Meyering  <meyering@lucent.com>
80613
80614         * lib/xstrtol.c (strtoimax): Guard declaration with
80615         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
80616         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
80617         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
80618         (strtoumax): Likewise, for completeness (it wasn't necessary).
80619
80620 2001-09-17  Paul Eggert  <eggert@twinsun.com>
80621
80622         * lib/strtoimax.c (HAVE_LONG_LONG):
80623         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
80624         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
80625         to work around bug in IBM C compiler.
80626
80627 2001-09-17  Jim Meyering  <meyering@lucent.com>
80628
80629         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
80630         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
80631         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
80632         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
80633         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
80634         whenever the right hand side need not be expanded by the shell.
80635
80636 2001-09-16  Paul Eggert  <eggert@twinsun.com>
80637
80638         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
80639         library.  It's not correct, as some older glibcs are buggy.
80640         fnmatch wasn't fixed until glibc 2.2.
80641
80642         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
80643         special shell magic here.
80644
80645 2001-09-16  Jim Meyering  <meyering@lucent.com>
80646
80647         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
80648         * m4/jm-macros.m4: Require it.
80649
80650 2001-09-16  Jim Meyering  <meyering@lucent.com>
80651
80652         * lib/mkdir.c: New file.
80653
80654 2001-09-15  Jim Meyering  <meyering@lucent.com>
80655
80656         * m4/jm-macros.m4: Check for help2man.
80657
80658 2001-09-11  Jim Meyering  <meyering@lucent.com>
80659
80660         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
80661         The body, by Paul Eggert, was moved here from configure.in.
80662         * m4/jm-macros.m4: Require UTILS_HOST_OS.
80663
80664 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80665
80666         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
80667         (jm_PREREQ): Use it.
80668
80669 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80670
80671         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
80672         Use ssize_t, not int, to store result of readlink.
80673         Check for ssize_t overflow as well as size_t overflow,
80674         as POSIX says the result of readlink is implementation-defined
80675         when ssize_t overflows.
80676         Remove unnecessary cast to char*.
80677         Use free+malloc instead of realloc, as the storage doesn't need
80678         to be preserved and it's clearer and can be more efficient that way.
80679         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
80680         * lib/xreadlink.h (xreadlink): Update prototype.
80681
80682 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80683
80684         * lib/xgetcwd.c: Revert some of the previous change; intead,
80685         fix the HAVE_GETCWD_NULL code to behave more like the
80686         !HAVE_GETCWD_NULL code used to.
80687
80688         Include "xalloc.h".
80689         (xgetcwd): Do not return NULL when memory is exhausted; instead,
80690         invoke xalloc_die.
80691
80692 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80693
80694         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
80695         sys/param.h, as pathmax.h includes them.
80696
80697 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80698
80699         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
80700         (jm_PREREQ_XGETCWD): New macro.
80701
80702         * m4/getcwd.m4: New file.
80703
80704 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80705
80706         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
80707         like the HAVE_GETCWD_NULL code.
80708         Include pathmax.h if not HAVE_GETCWD.
80709         Do not include xalloc.h.
80710         (INITIAL_BUFFER_SIZE): New symbol.
80711         Do not use xmalloc / xrealloc, since the caller is responsible for
80712         handling errors.  Preserve errno around `free' during failure.
80713         Do not overrun buffer when using getwd.
80714
80715 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80716
80717         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
80718         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
80719         getcwd (NULL, 0).
80720
80721 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80722
80723         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
80724         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
80725         spotted by Jim Meyering.
80726
80727 2001-09-03  Jim Meyering  <meyering@lucent.com>
80728
80729         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
80730         failure.
80731
80732 2001-09-02  Jim Meyering  <meyering@lucent.com>
80733
80734         * lib/error.c: Update from GNU libc.
80735
80736 2001-09-01  Jim Meyering  <meyering@lucent.com>
80737
80738         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
80739         Used by df.
80740
80741 2001-09-01  Jim Meyering  <meyering@lucent.com>
80742
80743         * lib/xreadlink.c: New file.
80744         * lib/xreadlink.h: New file.
80745         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
80746         xreadlink.h.
80747
80748         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
80749         doesn't conflict with sparc Solaris 7's definition in
80750         /usr/include/sys/int_types.h.
80751
80752         * lib/exclude.c: Use `""', not `<>' to #include non-system header
80753         files.
80754         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
80755         and strncasecmp as r-values.  Unixware didn't have declarations.
80756
80757 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80758
80759         * lib/xstrtol.h: Add copyright notice.
80760         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
80761         LONGINT_INVALID_SUFFIX_CHAR.
80762
80763 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80764
80765         * lib/xstrtol.c (strtoimax): New decl.
80766
80767 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80768
80769         * lib/xgetcwd.c: Don't include pathmax.h.
80770         Include stdlib.h and unistd.h if available.
80771         Include xalloc.h.
80772         (xmalloc, xstrdup, free): Remove decls.
80773         (xgetcwd): Don't assume sizes fit in unsigned.
80774         Check for overflow when computing sizes.
80775         Simplify reallocation code.
80776
80777 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80778
80779         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
80780         a directory's st_size can have an arbitrary value, so the old
80781         usage could waste an arbitrary amount of memory.  All uses
80782         changed.
80783         * lib/savedir.h: Update prototype.
80784
80785 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80786
80787         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
80788
80789         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
80790         old strtoimax.c.
80791
80792         Also, make the following further changes to make this file's
80793         configuration more similar to that of strtol.c:
80794         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
80795         (strtoumax, uintmax_t, strtoull, strtol): Remove.
80796         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
80797         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
80798         changed to signed values.
80799
80800         And make the following changes as well:
80801         Fix copyright notice, as 1999 was missing.
80802         (verify): New macro.
80803         (strtoimax): Check sizes at compile-time, not run-time.
80804         Prefer strtol to strtoll if both work.
80805         (main): Remove; it was not that useful and was a pain to maintain.
80806
80807         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
80808
80809 2001-08-31  Jim Meyering  <meyering@lucent.com>
80810
80811         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
80812         Use an initial, malloc'd, buffer of length 128 rather than
80813         a statically allocated one of length 1024.
80814
80815 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80816
80817         Simplify code, partly by assuming autoconf 2.52 semantics.
80818
80819         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
80820
80821         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
80822         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
80823         All uses removed.
80824         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
80825         Move AC_REQUIRE to next-to-top level, to avoid confusion.
80826         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
80827         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
80828         jm_AC_HEADER_INTTYPES_H.
80829         * m4/jm-macros.m4 (jm_MACROS): Likewise.
80830
80831         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
80832
80833         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80834         Quote first arg of AC_DEFUN.
80835         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
80836         since they are needed to parse the include file even if we need
80837         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
80838         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
80839         but with opposite signedness.
80840
80841 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80842
80843         Merge 'exclude' changes from tar 1.13.22.
80844         This fixes one or two unlikely storage allocation overflow bugs,
80845         but doesn't change user-visible behavior otherwise.
80846
80847 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80848
80849         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
80850         (jm_PREREQ_EXCLUDE): New macro.
80851
80852 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80853
80854         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
80855         tm to be declared.
80856
80857 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80858
80859         * lib/hash.c: Remove '2001' from copyright notice.
80860
80861 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80862
80863         * lib/full-write.h: New file.
80864         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
80865         * lib/full-write.c: Correct credits, as cccp.c no longer
80866         exists and anyway it was so heavily changed from the old cccp
80867         code as to be unrecognizable.  Include full-write.h.
80868         (full_write): Return size_t, with short writes meaning failure.
80869         All callers changed.  This fixes a bug with large buffers
80870         on 64-bit hosts.
80871         * lib/utime.c: Include full-write.h.
80872
80873 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80874
80875         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
80876         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
80877         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
80878         Include if available.
80879         (<xalloc.h>): Include
80880         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
80881         (verify): New macro.  Use it to verify that EXCLUDE macros do not
80882         collide with FNM macros.
80883         (struct patopts): New struct.
80884         (struct exclude): Use it, as exclude patterns now come with options.
80885         (new_exclude): Support above changes.
80886         (new_exclude, add_exclude_file):
80887         Initial size must now be a power of two to simplify overflow checking.
80888         (free_exclude, fnmatch_no_wildcards): New function.
80889         (excluded_filename): No longer requires options arg, as the options
80890         are determined by add_exclude.  Now returns bool, not int.
80891         (excluded_filename, add_exclude):
80892         Add support for the fancy new exclusion options.
80893         (add_exclude, add_exclude_file): Now takes int options arg.
80894         Check for arithmetic overflow when computing sizes.
80895         (add_exclude_file): xrealloc might modify errno, so don't
80896         realloc until after errno might be used.
80897
80898         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
80899         New macros.
80900         (free_exclude): New decl.
80901         (add_exclude, add_exclude_file): Now takes int options arg.
80902         (excluded_filename): No longer requires options arg, as the options
80903         are determined by add_exclude.  Now returns bool, not int.
80904
80905 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80906
80907         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
80908
80909 2001-08-27  Jim Meyering  <meyering@lucent.com>
80910
80911         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
80912
80913         * lib/version-etc.c (N_): Remove definition.
80914         Revert most of last change.
80915         Instead, simply don't mark the `Copyright...' string for translation.
80916         Based on advice from Paul Eggert.
80917
80918         * lib/strtoxmax.c: Tweak comment.
80919
80920 2001-08-26  Jim Meyering  <meyering@lucent.com>
80921
80922         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
80923
80924         * m4/xstrtoimax.m4: New file.
80925         * m4/xstrtoumax.m4: Add comments explaining why we
80926         AC_REPLACE_FUNCS(strtol).
80927
80928 2001-08-26  Jim Meyering  <meyering@lucent.com>
80929
80930         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
80931         of copyright with `%s' so translators don't get an untranslated
80932         message in 2002.
80933         (COPYRIGHT_YEAR): Define.
80934         (version_etc): Use fprintf rather than fputs.
80935         Suggestion from Ulrich Drepper.
80936
80937         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
80938
80939         * lib/strtoll.c: New file, from GNU libc.
80940         * lib/xstrtoimax.c: New file.
80941
80942         * lib/xstrtol.h: Add xstrtoimax.
80943         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
80944         * lib/strtoimax.c: New file.  Likewise, but first define
80945         STRTOUXMAX_SIGNED.
80946
80947         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
80948         ...
80949         * lib/strtoxmax.c: ... then renamed to this.
80950
80951 2001-08-18  Paul Eggert  <eggert@twinsun.com>
80952
80953         * m4/inttypes.m4: Add AC_PREREQ(2.13).
80954         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
80955         (jm_AC_TYPE_INTMAX_T): New macro.
80956         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
80957
80958         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
80959
80960         * m4/longlong.m4: Renamed from ulonglong.m4.
80961         * m4/inttypes.m4: Renamed from inttypes_h.m4.
80962         * m4/uintmax_t.m4: Removed.
80963
80964 2001-08-13  Paul Eggert  <eggert@twinsun.com>
80965
80966         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
80967         Port to Solaris 8, where 'sed' requires a space after the 'r'
80968         command, and where sh dislikes "$/".  Clean up the spacing a bit.
80969         Redirect output to $tmp just once.
80970
80971 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
80972
80973         * lib/addext.c (<errno.h>): Include.
80974         (errno): Declare if not defined.
80975         (addext): Work correctly when pathconf returns -1 and leaves
80976         errno alone because there is no limit.  Also, work even if
80977         pathconf returns a value greater than SIZE_MAX.
80978
80979 2001-08-12  Jim Meyering  <meyering@lucent.com>
80980
80981         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
80982         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
80983         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
80984         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
80985         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
80986         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
80987         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
80988         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
80989         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
80990         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
80991         utime.m4, utimes.m4, xstrtoumax.m4:
80992         Quote the first argument in each use of AC_DEFUN.
80993
80994 2001-08-12  Jim Meyering  <meyering@lucent.com>
80995
80996         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
80997         Simply `return getcwd (NULL, 0);'.
80998         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
80999         Use 1300 as initial value for length, not PATH_MAX.
81000
81001         * lib/pathmax.h: Clean up cpp syntax.
81002
81003 2001-08-12  Jim Meyering  <meyering@lucent.com>
81004
81005         * lib/gettimeofday.c: New file.
81006         * lib/gtod.h: New file.
81007         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
81008
81009 2001-08-05  Jim Meyering  <meyering@lucent.com>
81010
81011         * m4/jm-macros.m4: Require autoconf-2.52.
81012
81013 2001-08-04  Jim Meyering  <meyering@lucent.com>
81014
81015         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
81016         stmt, to get in sync with glibc.
81017
81018 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81019
81020         The following changes are from gettext 0.10.39 as maintained by
81021         Bruno Haible.
81022
81023         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81024         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81025         with inverted sense.  All uses changed.
81026
81027         * lib/mbswidth.c: Don't include <limits.h>.
81028         Include <stdlib.h> and <string.h> unconditionally.
81029         (iswcntrl, mbsinit, ISCNTRL): New macros.
81030         (mbsnwidth): Use K&R style function declarations.
81031         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81032         can optimize it when MB_CUR_MAX == 1.
81033         The width of control characters is zero, not 1.
81034
81035 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81036
81037         The following changes are from gettext 0.10.39 as maintained by
81038         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81039
81040         * m4/codeset.m4: Upgrade to serial AM1.
81041         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81042         all uses changed.  Quote first arg of AC_DEFUN.
81043         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81044
81045         * m4/iconv.m4: Upgrade to serial AM2.
81046         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81047         Add --with-libconv-prefix.
81048         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81049         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81050         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81051         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81052         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81053
81054         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81055         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81056         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81057         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81058         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81059         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81060         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81061         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81062         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81063
81064         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81065         string.h any more.
81066
81067         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81068         not the default value.
81069
81070         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81071         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81072         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81073         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81074         Also check for iswcntrl, used for wcwidth fallback.
81075         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81076         to Autoconf 2.13.
81077
81078 2001-08-03  Jim Meyering  <meyering@lucent.com>
81079
81080         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81081         as it was in the original.  Reported by Paul Eggert.
81082
81083 2001-07-16  Jim Meyering  <meyering@lucent.com>
81084
81085         * m4/gettimeofday.m4: New file.
81086         Prompted by a report from Bernhard Baehr.
81087
81088 2001-07-15  Jim Meyering  <meyering@lucent.com>
81089
81090         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81091         stuff. Now it's in ../Makefile.cfg.
81092
81093 2001-07-15  Jim Meyering  <meyering@lucent.com>
81094
81095         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81096         (BUILT_SOURCES): Add unlocked-io.h.
81097         (io_functions): Define.
81098         (unlocked-io.h): New rule.
81099         (DISTCLEANFILES): Add unlocked-io.h.
81100         (all-local): Depend on unlocked-io.h, to ensure it is created.
81101
81102         * lib/unlocked-io.hin: New file
81103
81104         * lib/regex.c: Update from glibc.
81105
81106 2001-07-05  Jim Meyering  <meyering@lucent.com>
81107
81108         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81109         recommendation.
81110         (libfetish_a_SOURCES): Put all .h files here instead.
81111         Remove a thus-exposed (better checks in automake) duplicate and
81112         two unnecessary .h files.
81113
81114 2001-07-04  Jim Meyering  <meyering@lucent.com>
81115
81116         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81117         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81118         distcheck failure.
81119
81120 2001-07-02  Jim Meyering  <meyering@lucent.com>
81121
81122         The following changes were prompted by suggestions from Bruno Haible.
81123
81124         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81125         is now generated.
81126         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81127         definition of EXTRA_DIST.
81128         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81129         ensure that the generated file is created/updated whenever the list
81130         of $(unlocked_functions) is changed.
81131         (jm-glibc-io.m4): New rule.
81132         (unlocked-io.h): New rule -- currently unused.
81133
81134 2001-06-24  Jim Meyering  <meyering@lucent.com>
81135
81136         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81137         unmatched right bracket, rather than kludging it with an extra,
81138         falsely-matching quote in a comment.  Patch by Akim Demaille.
81139
81140 2001-06-11  Jim Meyering  <meyering@lucent.com>
81141
81142         * lib/regex.c: Update from GNU libc.
81143
81144 2001-05-27  Jim Meyering  <meyering@lucent.com>
81145
81146         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81147         Check for ut_type in struct utmp.
81148
81149 2001-05-27  Jim Meyering  <meyering@lucent.com>
81150
81151         * lib/readutmp.h (UT_TYPE): Define.
81152
81153 2001-05-24  Jim Meyering  <meyering@lucent.com>
81154
81155         * lib/argmatch.c: Include "quote.h".
81156         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81157         quote function.  Reported by Göran Uddeborg.
81158
81159 2001-05-22  Jim Meyering  <meyering@lucent.com>
81160
81161         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81162         now that we use the package-supplied version unconditionally.
81163         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81164
81165 2001-05-21  Jim Meyering  <meyering@lucent.com>
81166
81167         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81168         shell syntax errors.
81169
81170 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81171
81172         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81173
81174 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81175
81176         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81177         Don't bother to check library strftime, since
81178         we'll be using our own my_strftime function anyway.
81179         Define my_strftime instead of strftime.
81180
81181 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81182
81183         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81184         which is not yet declared.
81185
81186 2001-05-15  Jim Meyering  <meyering@lucent.com>
81187
81188         * m4/regex.m4: Use proper quoting so brackets appear in the test
81189         program.
81190         Reported by, and with help from, Bruno Haible.
81191
81192 2001-05-13  Jim Meyering  <meyering@lucent.com>
81193
81194         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81195         undefined.
81196
81197 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81198
81199         dirname code cleanup.  base_name now behaves more compatibly
81200         with POSIX basename when given file names that have trailing
81201         slashes, and similarly for dir_name.  Add new primitives
81202         base_len and dir_len.  Put the directory-name-related decls
81203         into dirname.h.
81204
81205         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81206         * lib/backupfile.c (base_name): Likewise.
81207         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81208         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81209         * lib/makepath.c (strip_trailing_slashes): Likewise.
81210         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81211         ISSLASH): Likewise.
81212         * lib/rename.c (strip_trailing_slashes): Likewise.
81213         * lib/same.c (base_name): Likewise.
81214         * lib/stripslash.c (ISSLASH): Likewise.
81215
81216         * lib/addext.c: Include <dirname.h> after size_t is defined.
81217         * lib/backupfile.c: Likewise.
81218
81219         * lib/addext.c (addext): Use base_len to trim redundant
81220         trailing slashes instead of doing it ourselves.
81221         But do not trim the last slash if it is not redundant.
81222
81223         * lib/backupfile.c (find_backup_file_name,
81224         max_backup_version): Use base_len instead of rolling it ourselves.
81225         Handle the case of "" and (on DOS) "C:" correctly.
81226
81227         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81228         needed. Include <string.h>, <dirname.h>.
81229         (base_name): Allow file names ending in slashes, other than names
81230         that are all slashes.  In this case, return the basename followed
81231         by the slashes.  This is more general, and can be used in places
81232         where the original base_name purposely had an assertion failure.
81233         (base_len): New function.
81234
81235         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81236         Do not include <assert.h>; no longer needed.
81237         Include xalloc.h.
81238         (memrchr): Remove decl.
81239         (dir_name_r): Remove.
81240         (dir_len): Renamed from dirlen.  All callers changed.
81241         Rewrite in terms of base_name, for simplicity and consistency.
81242         (dir_name): Never return NULL.  All callers changed.
81243         Do not include <stdlib.h> in test program; no longer needed.
81244         return 0; is fine for test program.
81245
81246         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
81247         New macros.
81248         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
81249
81250         * lib/path-concat.c (path_concat): Use base_len to compute
81251         base length, not strlen; this means we cannot rely on memcpy
81252         to null-terminate.
81253
81254         * lib/same.c (STREQ): Remove.
81255         (same_name): Handle the case where the basename ends in trailing '/'.
81256
81257         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
81258         a slash was stripped.  Do not strip the last slash after a
81259         file system prefix.
81260
81261 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81262
81263         * lib/Makefile.am (libfetish_a_SOURCES):
81264         Add strftime.c, since we now compile it on all hosts.
81265
81266         * lib/strftime.c (my_strftime):
81267         Define to nstrftime if emacs, but only if my_strftime is not defined.
81268         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
81269         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
81270         Add one more extra argument: a nanoseconds value.
81271         All uses changed.
81272         (ns): New macro.
81273         (my_strftime function): Add %N format.
81274         (emacs_strftimeu): Renamed from emacs_strftime,
81275         with extra ut argument.
81276
81277 2001-05-09  Paul Eggert  <eggert@twinsun.com>
81278
81279         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
81280
81281 2001-04-21  Jim Meyering  <meyering@lucent.com>
81282
81283         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
81284         doesn't interfere.
81285
81286 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81287
81288         * m4/ftruncate.m4: Check for chsize.
81289         Link with ftruncate.o unconditionally if ftruncate is missing.
81290         This was required when cross-compiling to i586-mingw32msvc.
81291
81292 2001-04-08  Jim Meyering  <meyering@lucent.com>
81293
81294         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
81295         recomputed; that's necessary when the offset spans a DST transition.
81296         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
81297
81298 2001-04-02  Jim Meyering  <meyering@lucent.com>
81299
81300         * lib/regex.h, regex.c: Update from GNU libc.
81301
81302 2001-03-24  Jim Meyering  <meyering@lucent.com>
81303
81304         * m4/jm-macros.m4: Require autoconf-2.49d.
81305
81306 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
81307
81308         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
81309
81310 2001-03-19  Paul Eggert  <eggert@twinsun.com>
81311
81312         * lib/version-etc.c (version_etc_copyright): Update to 2001.
81313
81314 2001-03-17  Jim Meyering  <meyering@lucent.com>
81315
81316         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
81317         now that the version in autoconf is equivalent.
81318         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
81319
81320         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
81321         Suggestion from Akim Demaille.
81322
81323         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
81324         (jm_PREREQ_TEMPNAME): New function.
81325
81326 2001-03-16  Paul Eggert  <eggert@twinsun.com>
81327
81328         * lib/tempname.c (uint64_t): Define to uintmax_t if
81329         not defined, and if UINT64_MAX is not defined.
81330         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81331         Reported by John David Anglin.
81332
81333 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81334
81335         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81336         resolve alias if codeset is empty.
81337         * lib/config.charset (BeOS): Use wildcard syntax.
81338
81339 2001-03-13  Jim Meyering  <meyering@lucent.com>
81340
81341         * lib/path-concat.c (path_concat)
81342         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81343         concatenating e.g., `C:' and `foo'.
81344         From Bruno Haible.
81345
81346 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81347
81348         * lib/localcharset.c (locale_charset): Don't use
81349         setlocale(LC_CTYPE,NULL). Don't return NULL.
81350         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81351
81352 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81353
81354         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81355         support for DOS/DJGPP.
81356
81357 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81358
81359         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81360         lacks mkstemp.  Compile our own tempname.c if we compile our own
81361         mkstemp.c, as mkstemp relies on tempname.
81362
81363 2001-03-01  Jim Meyering  <meyering@lucent.com>
81364
81365         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81366         AH_VERBATIM really does output its argument verbatim.
81367
81368 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81369
81370         * lib/Makefile.am (libfetish_a_SOURCES):
81371         Add dup-safer.c, fopen-safer.c.
81372         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81373
81374         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81375         * lib/unistd-safer.h: New files.
81376
81377 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81378
81379         The mkstemp replacement is taken from glibc 2.2.2, with some
81380         portability fixes for use outside glibc, as follows:
81381
81382         * lib/tempname.c (struct_stat64): New macro.
81383         (direxists, __gen_tempname): Use it.
81384         This avoids a portability problem with Solaris 8.
81385
81386         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81387         (<stddef.h>, <stdint.h>, <string.h>):
81388         Include only if STDC_HEADERS || _LIBC.
81389         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81390         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81391         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81392         (__set_errno): Define this macro if <errno.h> doesn't.
81393         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81394         Define these macros if <stdio.h> doesn't.
81395         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81396         Define these macros if <sys/stat.h>
81397         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81398         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81399         __xstat64): Define if not _LIBC.
81400         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81401         (__gen_tempname): Invoke gettimeofday only if
81402         HAVE_GETTIMEOFDAY || _LIBC;
81403         otherwise, fall back on plain "time".
81404         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
81405
81406         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
81407
81408         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
81409
81410 2001-02-18  Paul Eggert  <eggert@twinsun.com>
81411
81412         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
81413
81414 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81415
81416         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
81417         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
81418         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
81419         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81420
81421 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81422
81423         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
81424         Remove workaround macros for hosts that have mbrtowc but not
81425         mbstate_t, as we now insist on proper declarations for both
81426         before using mbrtowc.
81427
81428 2001-02-17  Jim Meyering  <meyering@lucent.com>
81429
81430         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
81431         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
81432         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
81433         UnixWare 7.1.1.
81434
81435         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
81436         rather than AC_CACHE_VAL.
81437
81438 2001-02-17  Jim Meyering  <meyering@lucent.com>
81439
81440         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
81441         around included file name.
81442
81443         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
81444
81445         * lib/strftime.c: Update from GNU libc (the only changes were to
81446         comments).
81447
81448 2001-02-17  Jim Meyering  <meyering@lucent.com>
81449
81450         * lib/regex.c: Update from libc.
81451
81452 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
81453
81454         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
81455         clash.
81456
81457 2001-02-16  Paul Eggert  <eggert@twinsun.com>
81458
81459         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
81460         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
81461         Reported by Mark Hounschell via Paul Eggert.
81462
81463 2001-02-07  Jim Meyering  <meyering@lucent.com>
81464
81465         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
81466
81467 2001-02-05  Jim Meyering  <meyering@lucent.com>
81468
81469         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
81470         it includes the patch required for `large file' support with at least
81471         HP-UX's 10.20 /bin/cc.
81472
81473 2001-02-03  Jim Meyering  <meyering@lucent.com>
81474
81475         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
81476         AS_IF, now that it works once again (mysteriously).
81477         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81478
81479 2001-01-30  Jim Meyering  <meyering@lucent.com>
81480
81481         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
81482         * m4/chown.m4: Rename conftestchown to conftest.chown.
81483         * m4/rename.m4: s/conftestdir/conftest.d1/ and
81484         s/conftestdir2/conftest.d2/.
81485         * m4/utimes.m4: s/conftestdata/conftest.data/
81486         Inspired by Pavel Roskin's change in autoconf.
81487
81488 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
81489
81490         * lib/config.charset: Update for FreeBSD 4.2.
81491
81492 2001-01-27  Jim Meyering  <meyering@lucent.com>
81493
81494         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
81495         a use of AS_IF.
81496         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81497
81498 2001-01-26  Jim Meyering  <meyering@lucent.com>
81499
81500         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
81501         quotearg.c includes it.
81502
81503 2001-01-26  Jim Meyering  <meyering@lucent.com>
81504
81505         * lib/quotearg.c: Include stddef.h.
81506         * lib/quote.c: Include stddef.h.
81507         Reported by Axel Kittenberger.
81508
81509         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
81510         line in double quotes so that it evokes a better diagnostic.
81511         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
81512         Reported by Axel Kittenberger.
81513
81514 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
81515
81516         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
81517         as if it was a `charset'.
81518
81519 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81520
81521         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
81522         has const.
81523
81524 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81525
81526         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
81527         to avoid a warning.  Add back 'const' to inptr.
81528
81529 2001-01-20  Jim Meyering  <meyering@lucent.com>
81530
81531         Be sure that headers are checked before used in code compiled
81532         for the type checks.
81533         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
81534         In place of that, invoke jm_CHECK_ALL_TYPES.
81535         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
81536         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
81537         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
81538         The check for ssize_t was mistakenly run before the test for unistd.h.
81539
81540         The configure-time check for stdbool.h was missing.
81541         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
81542         (jm_PREREQ_HASH): New function.
81543
81544 2001-01-17  Jim Meyering  <meyering@lucent.com>
81545
81546         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
81547         for autoconf-2.49c.
81548         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
81549
81550 2001-01-16  Jim Meyering  <meyering@lucent.com>
81551
81552         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
81553         From Bruno Haible.
81554
81555 2001-01-14  Jim Meyering  <meyering@lucent.com>
81556
81557         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
81558         foo and bar.  Create conftestdir/ in the script, not in the C code.
81559         Remove directories in the script, not in the C code.
81560         Remove conftestdir{,2} before trying to create the directory.
81561         Make the entire configure script fail if the mkdir fails.
81562
81563 2001-01-14  Jim Meyering  <meyering@lucent.com>
81564
81565         * lib/rename.c: New file.  From Volker Borchert.
81566         Include stdlib.h, string.h or strings.h, and xalloc.h.
81567         Use strip_trailing_slashes rather than open-coding it.
81568
81569 2001-01-03  Paul Eggert  <eggert@twinsun.com>
81570
81571         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
81572
81573 2001-01-03  Jim Meyering  <meyering@lucent.com>
81574
81575         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
81576         of local `inptr' to avoid warning with some system declarations of
81577         iconv.
81578
81579 2001-01-02  Volker Borchert  <bt@teknon.de>
81580
81581         * m4/rename.m4: New file.
81582         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
81583
81584 2001-01-01  Jim Meyering  <meyering@lucent.com>
81585
81586         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
81587         even on systems with utmpx.h.  It's necessary for the declaration of
81588         utmp's ut_user member.  Reported by Andreas Jaeger.
81589
81590         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
81591         available. They are required for the declarations of getgrgid and
81592         getpwuid resp.
81593         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
81594         Reported by Andreas Jaeger.
81595
81596 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
81597
81598         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
81599         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
81600         so `make install' also works in VPATH builds.
81601
81602 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
81603
81604         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
81605         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
81606         can be used in subdirectories.
81607
81608 2000-12-29  Paul Eggert  <eggert@twinsun.com>
81609
81610         * lib/modechange.c: Do not assume that mode_t uses the
81611         traditional octal encoding.  E.g. "chmod 1 FOO" should set
81612         the other-execute bit of FOO even if S_IXOTH != 1.
81613
81614         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
81615         WOTH, XOTH, ALLM): New macros.
81616         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
81617          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
81618         Use them.
81619         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
81620         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
81621         (mode_compile):
81622         No need to use uintmax_t; unsigned long is long enough.
81623         Don't bother to get suffix since we don't use it.
81624
81625 2000-12-26  Jim Meyering  <meyering@lucent.com>
81626
81627         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
81628         better with autoheader.
81629
81630 2000-12-24  Jim Meyering  <meyering@lucent.com>
81631
81632         * lib/hash.c (is_prime): Return explicit boolean values.
81633         (hash_get_first): Return NULL to appease Irix5.6's 89.
81634         Reported by Nelson Beebe.
81635
81636 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
81637
81638         * lib/localcharset.c (locale_charset): Add support for Win32.
81639
81640 2000-12-18  Paul Eggert  <eggert@twinsun.com>
81641
81642         * lib/physmem.h, lib/physmem.c: New files.
81643
81644         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
81645         (noinst_HEADERS): Add physmem.h.
81646
81647         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
81648         't' for compatibility with Solaris 8 sort.
81649
81650 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
81651
81652         * lib/config.charset: Add support for BeOS.
81653
81654 2000-12-17  Jim Meyering  <meyering@lucent.com>
81655
81656         * m4/dos.m4 (jm_AC_DOS): New file and macro.
81657         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
81658
81659 2000-12-16  Jim Meyering  <meyering@lucent.com>
81660
81661         This bug had a serious impact on chown: `chown N:M FILE' (for integer
81662         N and M) would have treated it like `chown N:N FILE'.
81663
81664         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
81665
81666 2000-12-16  Jim Meyering  <meyering@lucent.com>
81667
81668         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
81669         SHELLS_FILE to a file name that's useful on djgpp systems.
81670         Include stdlib.h.
81671         (ADDITIONAL_DEFAULT_SHELLS): Define.
81672         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
81673         Based mostly on a patch from Prashant TR.
81674
81675 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
81676
81677         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
81678         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
81679         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
81680
81681 2000-12-08  Andreas Schwab  <schwab@suse.de>
81682
81683         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
81684         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
81685
81686 2000-12-07  Jim Meyering  <meyering@lucent.com>
81687
81688         * lib/stripslash.c (ISSLASH): Define.
81689         (strip_trailing_slashes): Use ISSLASH rather than comparing against
81690         `/'.
81691         From Prashant TR.
81692
81693         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
81694         (dir_name_r): Declare this function as static.
81695         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
81696         manifest itself on a name containing a mix of slashes and
81697         backslashes.
81698         Make this function work with names starting with a DOS-style
81699         drive letter and colon prefix.
81700         (dir_name): Append `.' if necessary.
81701         Based mostly on patches from Prashant TR and Eli Zaretskii.
81702
81703         * lib/dirname.h (dir_name_r): Remove prototype.
81704
81705 2000-12-06  Paul Eggert  <eggert@twinsun.com>
81706
81707         * m4/off_t-format.m4: Remove this file.
81708         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
81709
81710 2000-12-06  Jim Meyering  <meyering@lucent.com>
81711
81712         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
81713         replacement strtoull, we may well need the replacement strtoul, too.
81714         Check for declarations of strtoul and strtoull.
81715         Check for strtol.  Mainly as a cue to cause automake to include
81716         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
81717         Check for limits.h -- strtol.c needs it.
81718
81719 2000-12-05  Jim Meyering  <meyering@lucent.com>
81720
81721         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
81722
81723 2000-12-04  Jim Meyering  <meyering@lucent.com>
81724
81725         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
81726         Also include memory.h, stdlib.h, unistd.h if appropriate.
81727         Reported by Andreas Jaeger (conflicting declaration of malloc).
81728
81729 2000-12-02  Jim Meyering  <meyering@lucent.com>
81730
81731         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
81732         * m4/jm-macros.m4 (jm_MACROS): require it.
81733
81734 2000-12-02  Jim Meyering  <meyering@lucent.com>
81735
81736         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
81737
81738 2000-12-01  Paul Eggert  <eggert@twinsun.com>
81739
81740         * lib/memrchr.c: Include <config.h> before any system include file.
81741
81742 2000-11-30  Jim Meyering  <meyering@lucent.com>
81743
81744         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
81745
81746 2000-11-30  Jim Meyering  <meyering@lucent.com>
81747
81748         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
81749
81750 2000-11-29  Paul Eggert  <eggert@twinsun.com>
81751
81752         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
81753
81754 2000-11-26  Jim Meyering  <meyering@lucent.com>
81755
81756         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
81757
81758 2000-11-22  Paul Eggert  <eggert@twinsun.com>
81759
81760         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
81761         size of (size_t) -1; it's not portable.
81762
81763 2000-11-17  Jim Meyering  <meyering@lucent.com>
81764
81765         * lib/strstr.c: Update from GNU libc.
81766
81767 2000-11-17  Akim Demaille  <akim@epita.fr>
81768
81769         * lib/obstack.h: Formatting changes.
81770         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
81771         prevent type checking.
81772         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
81773         cast the value to (void *): assigning a `foo *' to a `void *'
81774         variable is valid.
81775         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
81776
81777 2000-11-16  Jim Meyering  <meyering@lucent.com>
81778
81779         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
81780
81781 2000-11-11  Jim Meyering  <meyering@lucent.com>
81782
81783         * lib/error.c: Add a couple #includes, merging from GNU libc version.
81784
81785 2000-11-10  Jim Meyering  <meyering@lucent.com>
81786
81787         * lib/obstack.h: Update from GNU libc.
81788         * lib/obstack.c: Likewise.
81789
81790 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
81791
81792         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
81793
81794 2000-11-06  Paul Eggert  <eggert@twinsun.com>
81795
81796         * lib/getusershell.c (setusershell): Use rewind rather than
81797         fseek/fseeko, to avoid configuration hassles with fseeko.
81798         Don't bother opening SHELLS_FILE if shellstream is NULL;
81799         it's not necessary.
81800
81801 2000-11-05  Jim Meyering  <meyering@lucent.com>
81802
81803         * lib/makepath.h (make_dir): Declare.
81804         * lib/makepath.c (make_dir): Remove `static' attribute.
81805         Tweak a comment.
81806
81807 2000-11-04  Jim Meyering  <meyering@lucent.com>
81808
81809         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
81810
81811 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
81812
81813         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
81814         last one in a bucket, advance to the next bucket.
81815
81816 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
81817
81818         * lib/fnmatch.c: Do not comment out all the code if we are using
81819         the GNU C library, because in some cases we are replacing buggy
81820         code in the GNU C library itself.
81821
81822 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
81823
81824         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
81825         (regex_compile): Catch bogus \(\1\).
81826
81827 2000-10-30  Paul Eggert  <eggert@twinsun.com>
81828
81829         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
81830         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
81831         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
81832
81833 2000-10-30  Paul Eggert  <eggert@twinsun.com>
81834
81835         * lib/error.h, getline.h, modechange.h:
81836         Remove "2000" from Copyright line, as the file hasn't been
81837         changed this year other than in the copyright notice.
81838
81839         * lib/xalloc.h: Add "2000" to Copyright line, as this file
81840         was changed this year.
81841
81842 2000-10-29  Jim Meyering  <meyering@lucent.com>
81843
81844         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
81845         renaming.
81846         * m4/ls-mntd-fs.m4: Likewise
81847
81848 2000-10-29  Jim Meyering  <meyering@lucent.com>
81849
81850         * lib/xstat.in: Fix grammar in comment.
81851
81852 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
81853
81854         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
81855         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
81856         doesn't define __restrict_arr.
81857
81858 2000-10-28  Jim Meyering  <meyering@lucent.com>
81859
81860         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
81861         (jm_PREREQ_MEMCHR): New function.
81862
81863 2000-10-28  Jim Meyering  <meyering@lucent.com>
81864
81865         * lib/memchr.c: Update from libc.
81866         Adjust for portability:
81867         [HAVE_STDLIB_H]: Include stdlib.h.
81868         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
81869         Undef __memchr, too.
81870         [!weak_alias]: Define __memchr to memchr.
81871
81872         * lib/regex.c: Update from libc.
81873         * lib/regex.h: Likewise.
81874         * lib/getopt1.c: Likewise.
81875         * lib/memcmp.c: Likewise.
81876
81877         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
81878         Avoid using fseek, when possible -- it's broken by design.
81879         Patch by Ulrich Drepper.
81880
81881 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
81882
81883         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
81884         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
81885         Giving in to popular pressure to shut up the compiler with casts.
81886
81887 2000-10-26  Jim Meyering  <meyering@lucent.com>
81888
81889         * lib/strftime.c: Update from libc.
81890
81891 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
81892
81893         * regex.c: More `unsigned char' -> `re_char' changes.
81894         Also change several `int' into `re_wchar_t'.
81895         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
81896         (PUSH_FAILURE_POINTER): Don't cast any more.
81897         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
81898         We want GCC to complain, since this piece of code makes
81899         re_match non-reentrant, which *should* be fixed.
81900         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
81901         (EXTEND_BUFFER): Use RETALLOC.
81902         (SET_LIST_BIT): Don't cast.
81903         (re_wchar_t): New type.
81904         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
81905         that those two functions will always properly return.
81906         (IMMEDIATE_QUIT_CHECK): Cast to void.
81907         (analyse_first): Use recursion rather than an explicit stack.
81908         (re_compile_fastmap): Can't fail anymore.
81909         (re_search_2): Don't check re_compile_fastmap for failure.
81910         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
81911         Now also sets the new value (passed in a new argument).
81912         (re_match_2_internal): Use it.
81913         Also, use a new var `reg' of type size_t when looping through regs
81914         rather than reuse the inappropriate `mcnt'.
81915
81916 2000-10-25  Jim Meyering  <meyering@lucent.com>
81917
81918         * lib/obstack.c: Update from libc.
81919
81920 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
81921
81922         * regex.c (regex_compile): Change the way of handling a range from
81923         a char less than 256 to a char not less than 256.
81924
81925 2000-10-24  Andrew Innes  <andrewi@gnu.org>
81926
81927         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
81928         NT-Emacs only.
81929         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
81930         so that re_search functions only quit when callers expect them to.
81931
81932 2000-10-23  Jim Meyering  <meyering@lucent.com>
81933
81934         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
81935         wrong.  That set_locale call must not have any side effects.
81936         From Paul Eggert.
81937
81938 2000-10-22  Jim Meyering  <meyering@lucent.com>
81939
81940         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
81941         [CYCLIC]: Remove now-unused definition.
81942
81943         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
81944         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
81945         Suggestion from Ulrich Drepper.
81946
81947 2000-10-21  Jim Meyering  <meyering@lucent.com>
81948
81949         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
81950         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
81951         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
81952
81953 2000-10-21  Jim Meyering  <meyering@lucent.com>
81954
81955         * lib/dirname.c (memrchr): Declare if necessary.
81956         (dir_name): Remove the restriction that there be no
81957         trailing slashes.  Now, this code skips past them, effectively
81958         ignoring them.
81959         [TEST_DIRNAME] (main): New unit tests.
81960
81961         * lib/memrchr.c: New file from GNU libc.
81962         Undef __memrchr, too.
81963         [!weak_alias]: Define __memrchr to memrchr.
81964         Guard weak_alias use with `#ifdef weak_alias'.
81965
81966 2000-10-21  Jim Meyering  <meyering@lucent.com>
81967
81968         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
81969         (dir_name): Use dir_name_r.
81970         * lib/dirname.h (dir_name_r): Declare it.
81971
81972 2000-10-17  Jim Meyering  <meyering@lucent.com>
81973
81974         * lib/quote.h (PARAMS): Define and use.
81975         Reported by Akim Demaille.
81976
81977         * lib/getopt.c: Update from libc.
81978
81979 2000-10-16  Jim Meyering  <meyering@lucent.com>
81980
81981         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
81982         setlocale.
81983         From Jan Fedak.
81984
81985 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
81986
81987         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
81988
81989 2000-09-25  Jim Meyering  <meyering@lucent.com>
81990
81991         * lib/md5.h (rol): Define (from GnuPG).
81992
81993         * lib/sha.c: Give credit (GnuPG) where due.
81994         (M): Use rol rather than open-coding it.
81995         Add a FIXME comment.
81996
81997 2000-09-21  Jim Meyering  <meyering@lucent.com>
81998
81999         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
82000         Reported by Michael Stone.
82001
82002 2000-09-20  Jim Meyering  <meyering@lucent.com>
82003
82004         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
82005         (noinst_HEADERS): Add sha.h.
82006         Based on code from Scott G. Miller and from GnuPG.
82007
82008 2000-09-18  Jim Meyering  <meyering@lucent.com>
82009
82010         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
82011         LIBS. Otherwise, everyone ends up linking with -lelf for some
82012         configurations.
82013         Reported by Mike Stone.
82014
82015 2000-09-15  Jim Meyering  <meyering@lucent.com>
82016
82017         * lib/regex.c: Update from libc.
82018
82019 2000-09-10  Jim Meyering  <meyering@lucent.com>
82020
82021         * lib/getopt.c (_getopt_internal): Update from glibc.
82022
82023 2000-09-09  Jim Meyering  <meyering@lucent.com>
82024
82025         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82026         think it should be used as a general replacement for isascii.
82027         * lib/fnmatch.c: Likewise.
82028         * lib/mbswidth.c: Likewise
82029         * lib/regex.c: Likewise.
82030
82031         Don't use atoi.
82032         * lib/userspec.c: Include sys/param.h and limits.h.
82033         Include xstrtol.h.
82034         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82035         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82036         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82037         UID, GID.  Check range.
82038
82039 2000-09-06  Jim Meyering  <meyering@lucent.com>
82040
82041         * lib/getopt.c (_getopt_internal): Update from glibc.
82042
82043 2000-08-30  Jim Meyering  <meyering@lucent.com>
82044
82045         * lib/strftime.c: Merge in changes from GNU libc.
82046
82047 2000-08-26  Jim Meyering  <meyering@lucent.com>
82048
82049         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82050         * m4/fpending.m4: New file.
82051
82052 2000-08-26  Jim Meyering  <meyering@lucent.com>
82053
82054         * lib/closeout.c: Include "__fpending.h".
82055         (close_stdout_status): Return right away if there's nothing to flush.
82056
82057         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82058         * lib/__fpending.c: New file.
82059         * lib/__fpending.h: New file.
82060
82061 2000-08-20  Jim Meyering  <meyering@lucent.com>
82062
82063         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82064         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82065         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82066
82067 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82068
82069         Improve fileutils installation on systems where running
82070         programs (like install) can't be unlinked.
82071         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82072         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82073
82074 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82075
82076         Standardize on "memory exhausted" instead of "Memory exhausted"
82077         or "virtual memory exhausted".
82078         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82079         "virtual memory exhausted".
82080         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82081         our own message.
82082         * lib/userspec.c (parse_user_spec): Likewise.
82083         * lib/bumpalloc.h: comment fix
82084         * lib/same.c, userspec.c: Include xalloc.h.
82085
82086         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82087         not char *const and pointing to a constant array.
82088         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82089         (xrealloc): Comment fix.
82090
82091         * lib/userspec.c (parse_user_spec):
82092         Don't translate a message until just before returning,
82093         to avoid unnecessary translation.
82094
82095 2000-08-07  Jim Meyering  <meyering@lucent.com>
82096
82097         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82098         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82099         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82100         getgroups.c, gethostname.c, getopt.h, group-member.c,
82101         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82102         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82103         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82104         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82105         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82106         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82107         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82108         yesno.c: Back out Copyright date changes for each file with no change
82109         this year.  This eases coordination with other programs using the same
82110         source code modules.  From Paul Eggert.
82111
82112 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82113
82114         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82115         not char, for compatibility with glibc 2.1.3 strftime.c.
82116
82117 2000-08-03  Greg McGary  <greg@mcgary.org>
82118
82119         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82120         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82121         (EXTEND_BUFFER): Use them.
82122
82123 2000-08-01  Jim Meyering  <meyering@lucent.com>
82124
82125         * lib/dirname.c (ISSLASH): Define.
82126         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82127         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82128         both `\' and `/' may be use as path separators.
82129         Based on a patch from Prashant TR.
82130
82131 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82132
82133         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82134         slot vector a constant, since it might get modified.
82135
82136 2000-07-31  Jim Meyering  <meyering@lucent.com>
82137
82138         * lib/xmalloc.c: Use `virtual memory exhausted', not
82139         `Memory exhausted'.
82140         * lib/obstack.c (print_and_abort): Likewise.
82141
82142 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82143
82144         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82145         buffer, so that the caller can always quote one small
82146         component of a "memory exhausted" message in slot 0.
82147         From a suggestion by Jim Meyering.
82148
82149 2000-07-30  Jim Meyering  <meyering@lucent.com>
82150
82151         * lib/makepath.c (make_path): Quote the other instance, too.
82152
82153         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82154         (STATIC_BUF_SIZE): Define.
82155         (quotearg_n_options): Use only statically allocated storage when
82156         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82157         than STATIC_BUF_SIZE.
82158
82159 2000-07-29  Jim Meyering  <meyering@lucent.com>
82160
82161         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82162         * lib/dirname.c (dir_name): Likewise.
82163
82164         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82165         `/'.
82166
82167         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82168         (dir_name): Assert that there are no trailing slashes.
82169
82170 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82171
82172         * lib/mbswidth.h (mbswidth): Add a flags argument.
82173         (mbswidth): New declaration.
82174         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82175         * lib/mbswidth.c (mbswidth): Add a flags argument.
82176         (mbsnwidth): New function.
82177
82178 2000-07-24  Jim Meyering  <meyering@lucent.com>
82179
82180         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82181
82182 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82183
82184         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82185
82186 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82187
82188         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82189         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82190         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82191         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82192         invoke multibyte primitives.
82193
82194 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82195
82196         * lib/quotearg.c:
82197         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82198         so that mbstate_t is always defined.
82199
82200         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82201         be 1 in at least one GCC installation, and this configuration
82202         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82203         performance on hosts that have mbrtowc but have only unibyte
82204         locales, but I assume these hosts are rare.
82205
82206 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82207
82208         * lib/mbswidth.c (_XOPEN_SOURCE):
82209         Don't define; this causes problems on Solaris 7.
82210         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82211
82212 2000-07-23  Jim Meyering  <meyering@lucent.com>
82213
82214         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82215         too: getgrgid, getpwuid, getuid.
82216
82217 2000-07-23  Jim Meyering  <meyering@lucent.com>
82218
82219         * lib/basename.c (base_name): Add an assertion.
82220
82221 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82222
82223         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82224         shadow its mbsinit function.
82225
82226 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82227
82228         * lib/mbswidth.h: New file.
82229         * lib/mbswidth.c: New file.
82230         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82231         (noinst_HEADERS): Add mbswidth.h.
82232
82233 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82234
82235         * lib/config.charset: Add support for FreeBSD. Improve support for
82236         HP-UX and IRIX 6.
82237
82238 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
82239
82240         * m4/mbswidth.m4: New file.
82241         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
82242
82243 2000-07-15  Jim Meyering  <meyering@lucent.com>
82244
82245         * lib/makepath.c: Include quote.h.
82246         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
82247         corresponding argument in a `quote (...)' call.
82248         Give better diagnostics.
82249
82250         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
82251         (noinst_HEADERS): Add quote.h.
82252
82253         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
82254         from tar's src/misc.c.
82255         * lib/quote.h: New file.  Prototypes for same.
82256
82257 2000-07-14  Paul Eggert  <eggert@twinsun.com>
82258
82259         From a suggestion by Bruno Haible.
82260         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
82261         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
82262         to decide whether to define the BeOS workaround macro;
82263         this adjusts to the change to AC_MBSTATE_T.
82264
82265 2000-07-14  Jim Meyering  <meyering@lucent.com>
82266
82267         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
82268         jm_AC_TYPE_UINTMAX_T.
82269
82270 2000-07-13  Paul Eggert  <eggert@twinsun.com>
82271
82272         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
82273
82274         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
82275         quotearg_buffer_restyled): Add support for
82276         clocale_quoting_style.  Undo previous change to
82277         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
82278         and "{RIGHT QUOTATION MARK}" msgids.
82279
82280 2000-07-10  Paul Eggert  <eggert@twinsun.com>
82281
82282         From a suggestion by Bruno Haible.
82283         * m4/mbstate_t.m4 (AC_MBSTATE_T):
82284         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
82285         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
82286         and mbstate_t, to a single-part test that simply defines mbstate_t.
82287         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
82288         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
82289
82290 2000-07-10  Jim Meyering  <meyering@lucent.com>
82291
82292         * m4/strerror_r.m4: Mirror the correction made in autoconf.
82293
82294         * m4/gnu-source.m4: Output to confdefs.h directly.
82295         Suggestion from Akim Demaille.
82296
82297 2000-07-09  Paul Eggert  <eggert@twinsun.com>
82298
82299         The old behavior of quoting `like this' doesn't look good with
82300         newer, ISO-style fonts.  See:
82301         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
82302
82303         Instead, quote "like this" by default.  Let the translator
82304         tailor the locale-specific quoting behavior by providing
82305         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
82306
82307         * lib/quotearg.c (N_): New macro.
82308         (gettext_default): New function.
82309         (quotearg_buffer_restyled): Use
82310         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
82311         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
82312
82313 2000-07-09  Jim Meyering  <meyering@lucent.com>
82314
82315         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
82316         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
82317
82318         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
82319         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
82320
82321 2000-07-09  Jim Meyering  <meyering@lucent.com>
82322
82323         * lib/Most files: Update copyright dates to include 2000.
82324
82325 2000-07-08  Jim Meyering  <meyering@lucent.com>
82326
82327         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82328         if not defined.
82329         (xgethostname): Remove now-unnecessary #ifdef.
82330         Move declaration of `err' into loop where it's used.
82331
82332 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82333         and Bruno Haible  <haible@clisp.cons.org>
82334
82335         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82336         only if the test for an object-type mbstate_t fails.  This
82337         prevents us from mistakenly reporting that mbstate_t is a
82338         system object type after we "#define mbstate_t int" to work
82339         around its lack.
82340
82341 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82342         and Bruno Haible  <haible@clisp.cons.org>
82343
82344         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82345
82346 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82347
82348         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82349         to strerror_r.
82350         Include <ctype.h> for use of isalpha.
82351
82352 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82353
82354         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82355         by allocating a larger buffer. Test the gethostname return value for
82356         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82357         returns an error and ENAMETOOLONG isn't defined.
82358
82359 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82360
82361         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82362         dimension.
82363
82364 2000-07-04  Jim Meyering  <meyering@lucent.com>
82365
82366         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82367         of the deprecated AC_CHECKING.
82368
82369 2000-07-04  Jim Meyering  <meyering@lucent.com>
82370
82371         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82372         Reported by Bruno Haible.
82373
82374 2000-07-04  Jim Meyering  <meyering@lucent.com>
82375
82376         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82377         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82378         lacks mbrtowc.
82379
82380 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82381
82382         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82383         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82384
82385 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82386         and Bruno Haible  <haible@clisp.cons.org>
82387
82388         * lib/quotearg.c (mbrtowc):
82389         Assign to *pwc, and return 1 only if result is nonzero.
82390         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82391
82392 2000-07-03  Jim Meyering  <meyering@lucent.com>
82393
82394         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82395
82396 2000-07-03  Jim Meyering  <meyering@lucent.com>
82397
82398         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82399         This is necessary to get a definition of e.g., UTMP_FILE on
82400         HP-UX 10.20.
82401         From Bob Proulx.
82402
82403 2000-07-02  Jim Meyering  <meyering@lucent.com>
82404
82405         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
82406
82407         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
82408         AC_LIBOBJ(function_name).
82409         * m4/chown.m4: Likewise.
82410         * m4/fnmatch.m4: Likewise.
82411         * m4/ftruncate.m4: Likewise.
82412         * m4/getgroups.m4: Likewise.
82413         * m4/getline.m4: Likewise.
82414         * m4/group-member.m4: Likewise.
82415         * m4/jm-macros.m4: Likewise.
82416         * m4/lstat.m4: Likewise.
82417         * m4/malloc.m4: Likewise.
82418         * m4/memcmp.m4: Likewise.
82419         * m4/nanosleep.m4: Likewise.
82420         * m4/putenv.m4: Likewise.
82421         * m4/realloc.m4: Likewise.
82422         * m4/regex.m4: Likewise.
82423         * m4/stat.m4: Likewise.
82424         * m4/strftime.m4: Likewise.
82425
82426 2000-07-02  Jim Meyering  <meyering@lucent.com>
82427
82428         * lib/quotearg.c (mbstate_t): Don't define here.
82429
82430 2000-07-02  Jim Meyering  <meyering@lucent.com>
82431
82432         * lib/nanosleep.c (SIGCONT): Define if not already defined.
82433
82434 2000-07-01  Jim Meyering  <meyering@lucent.com>
82435
82436         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
82437
82438 2000-07-01  Jim Meyering  <meyering@lucent.com>
82439
82440         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
82441         problem.
82442
82443 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82444
82445         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
82446         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
82447
82448 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82449
82450         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
82451         per change in ../m4/ls-mntd-fs.m4.
82452         (read_filesystem_list): Ignore symbolic links.
82453
82454 2000-06-29  Jim Meyering  <meyering@lucent.com>
82455
82456         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
82457         for declaration of strcmp.
82458
82459         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
82460
82461         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
82462         Avoid warning by casting result to `char *' to remove `const'.
82463
82464 2000-06-28  Jim Meyering  <meyering@lucent.com>
82465
82466         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
82467         included by quotearg.c, for which we perform this test.  From
82468         Bruno Haible.
82469
82470 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82471
82472         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
82473         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
82474         <utmpx.h> exists, put readutmp.o into LIBOBJS.
82475
82476 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82477
82478         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
82479
82480 2000-06-26  Paul Eggert  <eggert@twinsun.com>
82481
82482         savedir now sets errno on failure and invokes xmalloc to get memory.
82483         Fix a couple of other minor bugs while we're at it.
82484
82485         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
82486         (NAMLEN): Remove macro.
82487         (malloc, realloc): Remove decls.
82488         (stpcpy): Likewise.
82489         ("xalloc.h"): Include.
82490         (NAME_SIZE_DEFAULT): New macro.
82491         (savedir): Use xmalloc / xrealloc to allocate memory.
82492         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
82493         Skip "" directory entries.
82494         Use strlen to calculate directory entry length, since the old method
82495         is rarely used these days and isn't worth supporting.
82496         Don't use a pointer after freeing it.
82497         Check for integer overflow when calculating allocation size.
82498         Use memcpy to copy entries, instead of stpcpy.
82499         Set errno properly when returning NULL.
82500         Check for readdir error.
82501
82502 2000-06-26  Jim Meyering  <meyering@lucent.com>
82503
82504         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
82505
82506 2000-06-25  Jim Meyering  <meyering@lucent.com>
82507
82508         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
82509         Linux header bug when _XOPEN_SOURCE is defined to 500.
82510
82511 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82512
82513         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
82514         deficiency.
82515
82516 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82517
82518         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
82519         Include xalloc.h.
82520         Don't include <stdlib.h>.  Don't declare malloc, realloc.
82521
82522 2000-06-24  Jim Meyering  <meyering@lucent.com>
82523
82524         * m4/strerror_r.m4: Revive this file -- to try out an experimental
82525         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
82526         for which strerror does return char*, but which lacks a conveniently
82527         accessible declaration of the function.  If the compile-test says
82528         strerror_r doesn't work, then resort to a `run'-test that works on
82529         BeOS and segfaults on DEC Unix.
82530
82531 2000-06-24  Jim Meyering  <meyering@lucent.com>
82532
82533         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
82534
82535 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82536
82537         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
82538         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
82539
82540 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82541
82542         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
82543         (mbrtowc, mbstate_t): Define substitutes if
82544         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
82545         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
82546         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
82547
82548 2000-06-23  Jim Meyering  <meyering@lucent.com>
82549
82550         * m4/afs.m4: Add missing AC_MSG_RESULT.
82551         Reported by Bruno Haible.
82552
82553         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
82554         Suggestion from Bruno Haible.
82555
82556 2000-06-23  Jim Meyering  <meyering@lucent.com>
82557
82558         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
82559
82560 2000-06-21  Jim Meyering  <meyering@lucent.com>
82561
82562         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
82563
82564 2000-06-21  Jim Meyering  <meyering@lucent.com>
82565
82566         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
82567         (noinst_HEADERS): Add getstr.h.
82568
82569         * lib/getline.c (getstr): Move into a separate file.
82570         * lib/getstr.c (getstr): New file, extracted from getline.c, with
82571         the following changes: new parameter, delim2; both delim[12]
82572         parameters have type `int', not `char'.  The latter would lose
82573         with 8-bit delimiters.
82574         * lib/getstr.h: New file.
82575
82576 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82577
82578         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
82579         than 1024, return a memory chunk of least possible size, instead
82580         of size PATH_MAX + 2. In the loop, increment the size proportionally.
82581         Use free/xmalloc instead of xrealloc to avoid copying for very long
82582         paths.
82583
82584 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82585
82586         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
82587         the empty string.
82588
82589 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82590
82591         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
82592         address, not strdup.  Include <stdlib.h> and don't declare free().
82593
82594 2000-06-19  Jim Meyering  <meyering@lucent.com>
82595
82596         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
82597
82598 2000-06-18  Jim Meyering  <meyering@lucent.com>
82599
82600         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
82601
82602         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
82603         `checking whether...' message to be consistent with that of the
82604         lstat test.
82605
82606 2000-06-18  Jim Meyering  <meyering@lucent.com>
82607
82608         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
82609         Besides, these days every porting target provides a mkdir function.
82610
82611         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
82612         needed. (this snippet comes from src/system.h).
82613
82614 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
82615
82616         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
82617
82618 2000-06-15  Paul Eggert  <eggert@twinsun.com>
82619
82620         * lib/human.c (adjust_value): New function.
82621         (human_readable_inexact): Apply rounding style even when
82622         printing approximate values.
82623
82624 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82625
82626         * lib/human.c (human_readable_inexact): Allow an input block
82627         size that is not a multiple of the output block size, and vice versa.
82628         Reported by Piergiorgio Sartor.
82629
82630 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82631
82632         * lib/getdate.y (get_date): Apply relative times after time
82633         zone indicator, not before.  Reported by Todd A. Jacobs.
82634
82635 2000-06-13  Jim Meyering  <meyering@lucent.com>
82636
82637         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
82638
82639         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
82640
82641 2000-06-12  Paul Eggert  <eggert@twinsun.com>
82642
82643         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
82644
82645 2000-06-12  Jim Meyering  <meyering@lucent.com>
82646
82647         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
82648         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
82649         optional argument.
82650         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
82651         the optional argument, `lib'.
82652
82653 2000-06-08  Jim Meyering  <meyering@lucent.com>
82654
82655         * m4/largefile.m4: Remove file (now that it's part of autoconf).
82656
82657 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82658
82659         Rewrite largefile configuration so that we don't need to run
82660         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
82661         AC_CANONICAL_HOST in configure.in -- jmm]
82662
82663         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
82664         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
82665         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
82666         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
82667         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
82668         All uses changed.
82669         Instead of inspecting the output of getconf, try to compile the
82670         test program without and with the macro definition.
82671         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
82672         for getconf.  Instead, check for the needed flags by compiling
82673         test programs.
82674
82675 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82676
82677         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
82678
82679 2000-06-04  Jim Meyering  <meyering@lucent.com>
82680
82681         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
82682         SunOS 4.1.4 for which gid_t is an unsigned type.
82683
82684 2000-06-03  Jim Meyering  <meyering@lucent.com>
82685
82686         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
82687         now that autoconf requires that.
82688
82689         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
82690         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
82691         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
82692
82693 2000-06-03  Jim Meyering  <meyering@lucent.com>
82694
82695         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
82696
82697 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82698
82699         * m4/glibc21.m4: New file.
82700         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
82701
82702 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82703
82704         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
82705         newer, don't install charset.alias.
82706         * lib/config.charset: Change the Linux/glibc rules so they become empty
82707         on glibc-2.1 or newer.
82708
82709 2000-06-02  Jim Meyering  <meyering@lucent.com>
82710
82711         * lib/mountlist.c: Back out last change.  Instead, do this...
82712         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
82713         me_dummy member using the same `ignore'-testing code.
82714         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
82715         fs_type strings.
82716         From Mark D. Roth.
82717
82718 2000-05-29  Jim Meyering  <meyering@lucent.com>
82719
82720         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
82721         mounts with the `ignore' attribute.  Based on a patch from
82722         Mark D. Roth.
82723
82724 2000-05-28  Jim Meyering  <meyering@lucent.com>
82725
82726         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
82727         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82728         * m4/stat.m4: Likewise.
82729         * m4/lstat.m4: Likewise.
82730         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
82731
82732         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
82733         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
82734
82735 2000-05-26  Jim Meyering  <meyering@lucent.com>
82736
82737         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
82738
82739 2000-05-24  Jim Meyering  <meyering@lucent.com>
82740
82741         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
82742         autoconf requires that.
82743         * m4/lib-check.m4: Likewise.
82744         * m4/jm-macros.m4: Likewise.
82745         * m4/strftime.m4: Likewise.
82746
82747         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
82748         AC_CHECK_DECLS, now that autoconf requires that.
82749
82750 2000-05-22  Jim Meyering  <meyering@lucent.com>
82751
82752         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82753         * m4/lstat.m4: Likewise.
82754
82755 2000-05-22  Jim Meyering  <meyering@lucent.com>
82756
82757         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
82758
82759 2000-05-20  Jim Meyering  <meyering@lucent.com>
82760
82761         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
82762         (jm_PREREQ): Use it.
82763
82764 2000-05-18  Jim Meyering  <meyering@lucent.com>
82765
82766         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
82767         back, too, since it may have been modified by allocate_entry.
82768         (hash_delete): Rewrite to use neither the assignment operator
82769         nor the comma operator in an if-expression.
82770
82771 2000-05-15  Paul Eggert  <eggert@twinsun.com>
82772
82773         * lib/closeout.c:
82774         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
82775         Remove; no longer needed.
82776         "quotearg.h": Add include.
82777         (file_name): Do not bother to explicitly initialize to NULL; it's less
82778         efficient on some hosts.
82779         (close_stdout_status): Remove test as to whether stdout was already
82780         closed; it breaks for the case "echo x | sort >&-".
82781         Quote file name colons.
82782         Do not assume that _("write error") lacks format strings.
82783
82784 2000-05-15  Jim Meyering  <meyering@lucent.com>
82785
82786         * lib/version-etc.c (version_etc_copyright): Update the copyright
82787         string used in all --version output.
82788
82789 2000-05-14  Jim Meyering  <meyering@lucent.com>
82790
82791         * lib/closeout.c (close_stdout_set_file_name): New function.
82792         (close_stdout_status): Use new file-scoped global.
82793         Return right away if fstat says the stdout file descriptor is invalid.
82794         * lib/closeout.h (close_stdout_set_file_name): Declare.
82795
82796 2000-05-10  Jim Meyering  <meyering@lucent.com>
82797
82798         * lib/closeout.c [default_exit_status]: New file-scoped variable.
82799         (close_stdout_set_status): New function.
82800         * lib/closeout.h (close_stdout_set_status): Declare.
82801
82802 2000-05-09  Jim Meyering  <meyering@lucent.com>
82803
82804         * m4/gettext.m4: Rename this...
82805         * m4/libintl.m4: ...to this.
82806
82807 2000-05-08  Jim Meyering  <meyering@lucent.com>
82808
82809         * lib/long-options.c: Don't include closeout.h.
82810         (parse_long_options): Don't call close_stdout for --version.
82811
82812 2000-05-06  Paul Eggert  <eggert@twinsun.com>
82813
82814         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
82815         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
82816         2.1.3 bug.  This avoids a clash when files like regex.c define
82817         _GNU_SOURCE.
82818
82819 2000-05-06  Jim Meyering  <meyering@lucent.com>
82820
82821         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
82822         (AC_REPLACE_FUNCS): Add strnlen.
82823
82824         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
82825         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
82826
82827         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
82828         AC_SEARCH_LIBS call for nanosleep.
82829         (LIB_NANOSLEEP): Set and AC_SUBST.
82830
82831 2000-05-06  Jim Meyering  <meyering@lucent.com>
82832
82833         * lib/strnlen.c: Undefine __strnlen and strnlen.
82834         [!weak_alias]: Define __strnlen to strnlen.
82835
82836         * lib/atexit.c: New file, from libiberty.
82837
82838 2000-05-06  Jim Meyering  <meyering@lucent.com>
82839
82840         * lib/closeout.c (close_stdout_status): Also check for errors on the
82841         stderr stream.
82842
82843 2000-05-05  Jim Meyering  <meyering@lucent.com>
82844
82845         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
82846         AC_SEARCH_LIBS call for clock_gettime.
82847         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
82848
82849         * m4/search-libs.m4: Update from autoconf.
82850
82851         su doesn't work on Solaris 2.6.
82852         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
82853         <shadow.h>.  Reported by Dragos Harabor.
82854
82855 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
82856
82857         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
82858         memcpy instead of xmalloc, xrealloc, path_concat.
82859         (locale_charset): Treat empty environment variables as absent.
82860         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
82861
82862 2000-05-04  Jim Meyering  <meyering@lucent.com>
82863
82864         * lib/getopt.c: Update from glibc.
82865         * lib/obstack.c: Likewise.
82866         * lib/obstack.h: Likewise.
82867         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
82868         file
82869
82870         * lib/regex.h: Likewise.
82871         * lib/strndup.c: Likewise.
82872         * lib/strnlen.c: New file, from glibc.
82873
82874 2000-05-03  Jim Meyering  <meyering@lucent.com>
82875
82876         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
82877
82878 2000-05-02  Paul Eggert  <eggert@twinsun.com>
82879
82880         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
82881         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
82882         compile-time test, rather than inspecting host and OS, to
82883         decide whether to define _LARGEFILE_SOURCE.
82884
82885 2000-05-01  Jim Meyering  <meyering@lucent.com>
82886
82887         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
82888
82889         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
82890         Based on a patch from Bruno Haible.
82891
82892 2000-05-01  Jim Meyering  <meyering@lucent.com>
82893
82894         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
82895
82896 2000-04-29  Jim Meyering  <meyering@lucent.com>
82897
82898         * lib/path-concat.c: Declare strdup only if it's not defined.
82899         * lib/canon-host.c: Likewise.
82900
82901 2000-04-28  Jim Meyering  <meyering@lucent.com>
82902
82903         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
82904         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
82905         is included first, then limits.h is included by locale.h by libintl.h.
82906         From John David Anglin.
82907
82908 2000-04-25  Jim Meyering  <meyering@lucent.com>
82909
82910         * lib/makepath.c (S_IRWXUGO): Define.
82911         (make_path): Always perform explicit chmod if MODE specifies any
82912         of the `special' permission bits.  Prompted by a bug report against
82913         install from Mate Wierdl and Joost van Baal.
82914
82915 2000-04-18  Jim Meyering  <meyering@lucent.com>
82916
82917         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
82918         (jm_PREREQ): Use it.
82919
82920 2000-04-18  Jim Meyering  <meyering@lucent.com>
82921
82922         * lib/README: New file.
82923
82924         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
82925         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
82926
82927 2000-04-17  Jim Meyering  <meyering@lucent.com>
82928
82929         Get it right :-)
82930         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
82931         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
82932         Suggestion from Akim Demaille.
82933
82934 2000-04-17  Jim Meyering  <meyering@lucent.com>
82935
82936         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
82937         the definition of it to rpl_strftime also defined-away the system's
82938         declaration.
82939
82940 2000-04-15  Jim Meyering  <meyering@lucent.com>
82941
82942         Use `C' to denote so-called `contiguous' files, the same way
82943         that tar does.
82944         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
82945         (ftypelet): Use S_ISCTG.
82946         From Michael Deutschmann.
82947
82948 2000-04-14  Jim Meyering  <meyering@lucent.com>
82949
82950         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
82951         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
82952         clobbered.
82953
82954 2000-04-14  Jim Meyering  <meyering@lucent.com>
82955
82956         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
82957
82958 2000-04-13  Jim Meyering  <meyering@lucent.com>
82959
82960         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
82961         AH_VERBATIM to insert required #ifndef into config.h.in.
82962         Suggestion from Akim Demaille.
82963
82964 2000-04-12  Jim Meyering  <meyering@lucent.com>
82965
82966         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
82967         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
82968         Christian Krackowizer.
82969
82970         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
82971         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
82972         (AC_SYS_LARGEFILE): Require.
82973         (AM_C_PROTOTYPES): Require.
82974
82975 2000-04-08  Jim Meyering  <meyering@lucent.com>
82976
82977         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
82978         names don't conflict.  Reported by Eli Zaretskii.
82979
82980 2000-04-07  Jim Meyering  <meyering@lucent.com>
82981
82982         * lib/putenv.c: Move inclusion of errno.h so it follows that of
82983         sys/types.h, to work around system header problems on AIX 3.2.5.
82984         From Bruno Haible.
82985
82986 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
82987
82988         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
82989         bug.  Deal with the different error behavior of Irix iconv.
82990
82991 2000-04-05  Paul Eggert  <eggert@twinsun.com>
82992
82993         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
82994         IRIX if the installer said otherwise.
82995
82996 2000-04-05  Jim Meyering  <meyering@lucent.com>
82997
82998         Portability tweaks required for ultrix4.3.
82999         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
83000         (jm_CHECK_DECLS): Add getutent to the list of functions.
83001         (_jm_DECL_HEADERS): Add utmpx.h.
83002         From John David Anglin.
83003
83004         * m4/strftime.m4: Back out the 2000-04-02 change.
83005         Instead of that change, simply undefine putenv in the test program.
83006
83007 2000-04-05  Jim Meyering  <meyering@lucent.com>
83008
83009         Portability tweaks required for ultrix4.3.
83010         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
83011         getutent.
83012         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
83013         * lib/canon-host.c: Declare strdup.
83014         * lib/path-concat.c: Likewise.
83015         From John David Anglin.
83016
83017 2000-04-04  Jim Meyering  <meyering@lucent.com>
83018
83019         Be more DOS 8.3-friendly.
83020         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83021         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83022         * lib/Makefile.am: Reflect renaming.
83023         Reported by Eli Zaretskii.
83024
83025         Use a temporary file name that won't clash with `charset.alias'
83026         in the DOS 8.3 name space.
83027         * lib/Makefile.am (charset_tmp): Define.
83028         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83029         (uninstall-local): Likewise.
83030         Reported by Eli Zaretskii.
83031
83032 2000-04-03  Jim Meyering  <meyering@lucent.com>
83033
83034         * m4/gettext.m4: Fix typo in comment.
83035
83036         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83037         textutils/configure.in).  Suggestion from Paul Eggert.
83038         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83039
83040 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83041
83042         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83043         variable in the shell rather than using putenv, which isn't
83044         portable.  This avoids the configure-time inter-test dependency
83045         on the potentially-renamed putenv function.
83046
83047 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83048
83049         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83050         before checking struct stat.st_blksize, so that
83051         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83052
83053 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83054
83055         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83056         since strftime.c uses HAVE_STRFTIME to decide whether to use
83057         the underlying strftime.
83058
83059 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83060
83061         * lib/time/strftime.c (my_strftime): Make sure we call the system
83062         strftime, not ourselves, when invoking the underlying strftime.
83063
83064 2000-03-24  Jim Meyering  <meyering@lucent.com>
83065
83066         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83067         (charset_alias): Define.
83068         (install-exec-local): Factor out common code.
83069         (uninstall-local): Split lines longer than 80.
83070         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83071         (SUFFIXES): Define.
83072         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83073         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83074
83075 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83076
83077         * lib/config.charset: Output a line containing "Packages using this
83078         file".
83079         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83080         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83081         ref-del.sed): New rules.
83082
83083 2000-03-17  Jim Meyering  <meyering@lucent.com>
83084
83085         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83086         Otherwise, include <strings.h>
83087
83088 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83089
83090         * lib/unicodeio.c (utf8_wctomb): New function.
83091         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83092         format instead of in UCS-4 with platform dependent endianness.
83093
83094 2000-03-10  Jim Meyering  <meyering@lucent.com>
83095
83096         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83097         From Marco Franzen.
83098
83099 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83100
83101         * lib/savedir.c (savedir): Work even if directory size is
83102         negative; this can happen with some screwy NFS configurations.
83103
83104 2000-03-06  Jim Meyering  <meyering@lucent.com>
83105
83106         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83107         if it's NULL (because we ran out of memory).  From Bruno Haible.
83108
83109 2000-03-05  Jim Meyering  <meyering@lucent.com>
83110
83111         * lib/localcharset.c ("path-concat.h"): Include.
83112         (get_charset_aliases): Use path_concat instead of ANSI string
83113         concatenation.
83114
83115         * lib/unicodeio.h (PARAMS): Define.
83116         Use it to guard prototype.
83117
83118 2000-03-04  Jim Meyering  <meyering@lucent.com>
83119
83120         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83121         for lib/localcharset.c.
83122
83123 2000-03-04  Jim Meyering  <meyering@lucent.com>
83124
83125         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83126         installing into it.
83127         (uninstall-local): Uncomment this rule so `make distcheck' works
83128         once again.
83129
83130         * lib/unicodeio.c (<errno.h>): Include it.
83131         (errno): Declare if not defined.
83132
83133         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83134
83135         * lib/config.charset: New version, incorporating remarks from a linux
83136         i18n mailing list.  From Bruno Haible.
83137
83138 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83139
83140         * m4/codeset.m4: New file.
83141         * m4/iconv.m4: New file.
83142         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83143
83144 2000-03-03  Jim Meyering  <meyering@lucent.com>
83145
83146         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83147
83148 2000-03-02  Jim Meyering  <meyering@lucent.com>
83149
83150         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83151         the messages come out on separate lines.
83152
83153         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83154         rather than jm_CHECK_DECLARATIONS.
83155         * m4/decl.m4: Remove now-unused file.
83156
83157         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83158         geteuid.
83159
83160 2000-03-02  Jim Meyering  <meyering@lucent.com>
83161
83162         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83163
83164 2000-03-01  Jim Meyering  <meyering@lucent.com>
83165
83166         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83167         * lib/unicodeio.c: Likewise.
83168
83169 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83170
83171         * lib/config.charset: New file.
83172         * lib/localcharset.c: New file.
83173         * lib/unicodeio.h, lib/unicodeio.c: New files.
83174         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83175         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83176         (noinst_HEADERS): Add unicodeio.h.
83177         (all-local, install-exec-local, charset.alias): New targets.
83178
83179 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83180
83181         * lib/quotearg.c (ALERT_CHAR): New macro.
83182         (quotearg_buffer_restyled): Use it.
83183
83184 2000-02-27  Jim Meyering  <meyering@lucent.com>
83185
83186         * m4/check-decl.m4: Add getenv to the list.
83187
83188 2000-02-27  Jim Meyering  <meyering@lucent.com>
83189
83190         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83191         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83192
83193         * lib/backupfile.c: Guard inclusion of stdlib.h with
83194         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83195         Declare malloc if needed.
83196
83197         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83198         `#ifndef HAVE_DECL..'
83199         now that autoconf always defines the HAVE_DECL_ symbols.
83200         * lib/human.c: Likewise.
83201         * lib/same.c: Likewise.
83202         * lib/strtoumax.c: Likewise.
83203
83204         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83205         declaration check was not run.
83206         * lib/hash.c: Likewise.
83207         * lib/human.c: Likewise.
83208         * lib/same.c: Likewise.
83209         * lib/strtoumax.c: Likewise.
83210
83211         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83212         `.', then first look up the entire `.'-containing string as a login
83213         name.
83214
83215 2000-02-23  Jim Meyering  <meyering@lucent.com>
83216
83217         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83218         in place of my hack.
83219
83220 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83221
83222         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83223         (textint): New typedef.
83224         (parser_control): Member year changed from int to textint.
83225         All uses changed.
83226         (YYSTYPE): Removed; replaced by %union with int and textint members.
83227         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83228         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83229         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83230         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83231         (date, number, to_year): Use width of number in digits, not its value,
83232         to determine whether it's a 2-digit year, or a 2-digit time.
83233         (yylex): Store number of digits of numeric tokens.
83234         Reported by John Kendall.
83235
83236         (parser_control): Changed from struct parser_control to typedef (for
83237         consistency).  All uses changed.
83238
83239         (tID): Removed; not used.
83240         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
83241
83242 2000-02-14  Paul Eggert  <eggert@twinsun.com>
83243
83244         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
83245         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
83246
83247 2000-02-12  Jim Meyering  <meyering@lucent.com>
83248
83249         * lib/userspec.c (ISDIGIT): Define it.
83250         (isdigit): Remove definition.
83251         (is_number): Use ISDIGIT, not isdigit.
83252         <libintl.h>: Include.
83253         (_ and N_): Define.
83254         (parse_user_spec): Mark translatable strings.
83255
83256 2000-02-10  Jim Meyering  <meyering@lucent.com>
83257
83258         With these changes, nanosleep.[ch] are finally enough like the other
83259         lib/* replacement files to compile on a few more losing systems.
83260
83261         * lib/nanosleep.h: Don't include config.h.
83262         Remove prototype from declaration of nanosleep.
83263         (PARAMS): Remove now-unneeded definition.
83264         * lib/nanosleep.c: #undef nanosleep.
83265         (rpl_nanosleep): Rename from nanosleep.
83266
83267 2000-02-10  Jim Meyering  <meyering@lucent.com>
83268
83269         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
83270         gnu_nanosleep to rpl_nanosleep.
83271
83272 2000-02-09  Jim Meyering  <meyering@lucent.com>
83273
83274         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
83275         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
83276
83277 2000-02-08  Akim Demaille  <akim@epita.fr>
83278
83279         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
83280         `[' and `]' and remove uses of `changequote'.
83281         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
83282         (AC_SYS_LARGEFILE): Likewise.
83283         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83284         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
83285         of changequote.
83286         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
83287         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
83288         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
83289         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
83290
83291 2000-02-05  Jim Meyering  <meyering@lucent.com>
83292
83293         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
83294         Remove explicit use of AC_HEADER_TIME.  It is required by
83295         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
83296         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
83297         in autoconf whereby the expansion of the latter ended up preceding
83298         the expansion of its prerequisite, AC_HEADER_TIME.
83299         Reported by Volker Borchert.
83300
83301 2000-02-03  Jim Meyering  <meyering@lucent.com>
83302
83303         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
83304
83305 2000-02-03  Jim Meyering  <meyering@lucent.com>
83306
83307         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
83308         rather than with `#if HAVE_UTMPNAME'.
83309
83310 2000-02-02  Jim Meyering  <meyering@lucent.com>
83311
83312         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
83313         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
83314         Reported by Eli Zaretskii.
83315
83316 2000-02-01  Jim Meyering  <meyering@lucent.com>
83317
83318         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
83319
83320 2000-01-31  Jim Meyering  <meyering@lucent.com>
83321
83322         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
83323         functions.  Add the time.h and sys/time.h headers along with the
83324         AC_REQUIRE'ment of AC_HEADER_TIME.
83325
83326 2000-01-31  Jim Meyering  <meyering@lucent.com>
83327
83328         * lib/nanosleep.h (nanosleep): Guard declaration with
83329         `#if ! HAVE_DECL_NANOSLEEP'.
83330         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83331         the declaration in that vendor's sys/timers.h.
83332         Reported by Christian Krackowizer.
83333
83334         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83335         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83336         (ISPRINT): Likewise.
83337         Reported by Tom Tromey.
83338
83339 2000-01-30  Jim Meyering  <meyering@lucent.com>
83340
83341         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83342
83343         * m4/prereq.m4 (utmp_includes): Define.
83344         Check for ut_user and ut_name members in both struct utmpx
83345         and struct utmp.
83346
83347 2000-01-30  Jim Meyering  <meyering@lucent.com>
83348
83349         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83350         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83351         header files where only utmpx.ut_user is declared.
83352
83353         * lib/readutmp.h (UT_USER): Define.
83354
83355 2000-01-29  Jim Meyering  <meyering@lucent.com>
83356
83357         * m4/lib-check.m4: New file containing library-related checks from
83358         fileutils and sh-utils (textutils had none).
83359
83360 2000-01-28  Jim Meyering  <meyering@lucent.com>
83361
83362         * m4/perl.m4: Change format of warning message to look more like that
83363         from the missing script.  Suggestion from François Pinard.
83364
83365 2000-01-25  Jim Meyering  <meyering@lucent.com>
83366
83367         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83368         well as time.h in the compile check.
83369         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83370         Fix typo in cross-compiling case: s/yes/no/.
83371
83372 2000-01-23  Jim Meyering  <meyering@lucent.com>
83373
83374         * m4/jm-macros.m4: Move df-related tests here from
83375         fileutils/configure.in
83376
83377         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83378         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83379
83380         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83381         s/space/ac_fsusage_space/.
83382         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83383
83384         * m4/ftruncate.m4: New file (derived from part of
83385         fileutils/configure.in).
83386         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83387         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83388
83389         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83390         AC_SUBST these here, rather than just in sh-util/configure.in, so
83391         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83392         all the same.
83393         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83394         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83395         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83396         (AC_SUBST(POW_LIBM)): Likewise.
83397         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83398
83399 2000-01-23  Jim Meyering  <meyering@lucent.com>
83400
83401         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
83402         obstack.c.
83403
83404 2000-01-22  Jim Meyering  <meyering@lucent.com>
83405
83406         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
83407
83408         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
83409
83410         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
83411         configure.in
83412         (AC_CHECK_HEADERS): Likewise for sh-utils.
83413         (AC_CHECK_HEADERS): Likewise for textutils.
83414         Merge the three lists of headers.
83415
83416         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
83417         from fileutils' configure.in.
83418
83419         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
83420         code. Moved tests into their own function (_jm_DECL_HEADERS) in
83421         check-decl.m4.
83422
83423         * m4/check-decl.m4: Use #if rather than #ifdef.
83424         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
83425         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
83426         (_jm_DECL_HEADERS): Define new function.
83427         (jm_CHECK_DECLARATIONS): Require it.
83428
83429 2000-01-22  Jim Meyering  <meyering@lucent.com>
83430
83431         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
83432         [! HAVE_DECL_STRTOULL]: Declare strtoull.
83433         Required for some AIX systems.  Reported by Christian Krackowizer.
83434         [TESTING] (main): New function.
83435
83436         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
83437         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
83438         letters.
83439
83440         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
83441         iswprint.
83442
83443         * lib/strverscmp.c (ISDIGIT): Define.
83444         (strverscmp): Use ISDIGIT, not isdigit.
83445
83446 2000-01-19  Jim Meyering  <meyering@lucent.com>
83447
83448         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
83449         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
83450         defines `struct timespec' in <sys/time.h>
83451
83452         * m4/c-bs-a.m4: Remove uses of changequote altogether.
83453         Thanks to Akim for explaining.
83454
83455 2000-01-17  Paul Eggert  <eggert@twinsun.com>
83456
83457         * lib/nanosleep.c (nanosleep):
83458         Don't use SA_INTERRUPT to decide whether to call sigaction, as
83459         POSIX.1 doesn't require SA_INTERRUPT and some systems
83460         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
83461         it's been part of POSIX.1 since day 1 (in 1988).
83462
83463 2000-01-17  Jim Meyering  <meyering@lucent.com>
83464
83465         * lib/interlock: Remove unused file.  Reported by François Pinard.
83466
83467 2000-01-16  Paul Eggert  <eggert@twinsun.com>
83468
83469         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
83470         alert, backslash, formfeed, and vertical tab unnecessarily in
83471         shell quoting style.
83472
83473 2000-01-16  Jim Meyering  <meyering@lucent.com>
83474
83475         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
83476         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
83477         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
83478         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
83479
83480 2000-01-16  Jim Meyering  <meyering@lucent.com>
83481
83482         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
83483         because the latter didn't work.
83484
83485 2000-01-15  Jim Meyering  <meyering@lucent.com>
83486
83487         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
83488         (AC_REPLACE_FUNCS): Add memcpy and memset.
83489         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
83490         Add strpbrk.
83491         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
83492
83493 2000-01-12  Jim Meyering  <meyering@lucent.com>
83494
83495         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
83496         (jm_PREREQ): Use it.
83497         (jm_PREREQ_READUTMP): New macro.
83498         (jm_PREREQ): Use it.
83499
83500 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83501
83502         Quote multibyte characters correctly.
83503         * m4/c-bs-a.m4: New file.
83504         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
83505         (jm_PREREQ): Use it.
83506
83507 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83508
83509         * m4/uintmax_t.m4: Port to autoconf 2.13.
83510
83511 2000-01-08  Jim Meyering  <meyering@ascend.com>
83512
83513         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
83514         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
83515
83516 2000-01-04  Jim Meyering  <meyering@ascend.com>
83517
83518         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
83519         jm_STRUCT_DIRENT_D_TYPE.
83520         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
83521         jm_STRUCT_DIRENT_D_INO.
83522         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
83523         jm_STRUCT_UTIMBUF.
83524         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
83525         renamings.
83526         * m4/utime.m4: Likewise.
83527
83528         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
83529         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
83530
83531 2000-01-03  Paul Eggert  <eggert@twinsun.com>
83532
83533         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
83534         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
83535
83536 2000-01-02  Jim Meyering  <meyering@ascend.com>
83537
83538         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
83539         remember if this is necessary.
83540
83541 1999-12-26  Jim Meyering  <meyering@ascend.com>
83542
83543         * m4/jm-macros.m4: Use it here.
83544         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
83545
83546 1999-12-23  Jim Meyering  <meyering@ascend.com>
83547
83548         * m4/jm-macros.m4: Check for clock_gettime (moved from
83549         fileutils/configure.in)
83550         Check for gettimeofday.
83551
83552 1999-12-20  Jim Meyering  <meyering@ascend.com>
83553
83554         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
83555         autoconf-2.14a-1999-12-20.
83556
83557 1999-12-19  Jim Meyering  <meyering@ascend.com>
83558
83559         * m4/lstat-slash.m4: New file.
83560         * m4/jm-macros.m4: Use the new macro:
83561         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83562
83563 1999-12-07  Jim Meyering  <meyering@ascend.com>
83564
83565         * m4/perl.m4: Require that File::Compare be available, too.
83566         Too many systems seem to lack it.
83567
83568         * m4/strftime.m4: Add checks for most of the cpp macros tested in
83569         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
83570
83571 1999-11-18  Paul Eggert  <eggert@twinsun.com>
83572
83573         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
83574         problem with the QNX 4.25 shell, which doesn't propagate exit
83575         status of failed commands inside shell assignments.
83576
83577 1999-11-17  Jim Meyering  <meyering@ascend.com>
83578
83579         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
83580
83581 1999-11-07  Jim Meyering  <meyering@ascend.com>
83582
83583         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
83584
83585 1999-11-06  Jim Meyering  <meyering@ascend.com>
83586
83587         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
83588         * m4/jm-macros.m4 (jm_MACROS): Use it here.
83589
83590 1999-11-05  Jim Meyering  <meyering@ascend.com>
83591
83592         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
83593         configure.in of textutils, fileutils, and sh-utils into this one
83594         (shared between those packages) file.
83595         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
83596         AC_STRUCT_ST_BLKSIZE.
83597
83598 1999-11-03  Jim Meyering  <meyering@ascend.com>
83599
83600         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
83601         of AC_CHECK_TYPE checks includes unistd.h.
83602         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
83603         Suggestion from Akim Demaille.
83604
83605 1999-10-30  Jim Meyering  <meyering@ascend.com>
83606
83607         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
83608         m4-quoted string.
83609         * m4/ls-mntd-fs.m4: Likewise.
83610         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
83611         * m4/jm-winsz1.m4: Likewise.
83612
83613         * m4/const.m4: Remove file, since the fix made it into the experimental
83614         version of autoconf.
83615         * m4/mktime.m4: Likewise.
83616
83617         * m4/check-type.m4: Remove file, now that the latest version of
83618         AC_CHECK_TYPE takes a third arg to specify additional #includes.
83619
83620         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
83621         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
83622         AC_CHECK_TYPE.
83623
83624 1999-10-04  Jim Meyering  <meyering@ascend.com>
83625
83626         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
83627
83628 1999-09-22  Paul Eggert  <eggert@twinsun.com>
83629
83630         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
83631         2.95.1 bug with HP-UX 10.20.
83632
83633 1999-09-17  Jim Meyering  <meyering@ascend.com>
83634
83635         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
83636         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
83637         due to missing strdup (against sh-utils-2.0).
83638
83639 1999-08-29  Jim Meyering  <meyering@ascend.com>
83640
83641         * m4/jm-macros.m4: Require jm_BISON.
83642         * m4/bison.m4: New file.
83643
83644 1999-08-17  Paul Eggert  <eggert@twinsun.com>
83645
83646         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
83647         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
83648
83649 1999-08-05  Jim Meyering  <meyering@ascend.com>
83650
83651         * m4/getline.m4: Rename test file from conftestdata to conftest.data
83652         to avoid conflicts with `conftest' on 8+3 filesystems.
83653         Suggestion from Eli Zaretskii.
83654
83655 1999-08-04  Jim Meyering  <meyering@ascend.com>
83656
83657         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
83658         fileutils and sh-utils (textutils's getline test was inadequate).
83659         (AM_FUNC_GETLINE): Run this test.
83660         (AC_CHECK_FUNCS): Check for getdelim.
83661         Reported by Bob Proulx.
83662
83663 1999-08-02  Jim Meyering  <meyering@ascend.com>
83664
83665         * m4/jm-macros.m4: Add a comment.
83666
83667 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83668
83669         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
83670         <inttypes.h> defines strtoumax as a macro (and not as a
83671         function).
83672
83673 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83674
83675         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
83676         that we can shift, multiply and divide unsigned long long
83677         values; Ultrix cc can't do it.
83678
83679 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83680
83681         * m4/mktime.m4: New file, which is a preview of what should appear
83682         in the next public autoconf release.
83683
83684 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83685
83686         * m4/lfs.m4: Remove this file.
83687         * m4/largefile.m4: New file.  It contains the old contents of
83688         lfs.m4, except that all names with prefix AC_LFS have been
83689         changed to use the prefix AC_SYS_LARGEFILE instead, to be
83690         compatible with future autoconf versions.  Also, some minor m4
83691         quoting problems have been fixed.
83692
83693 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83694
83695         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
83696         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
83697         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
83698         and simplify the shell code.
83699
83700 1999-08-01  Jim Meyering  <meyering@ascend.com>
83701
83702         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
83703         m4.
83704
83705 1999-07-20  Jim Meyering  <meyering@ascend.com>
83706
83707         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
83708
83709 1999-07-15  Jim Meyering  <meyering@ascend.com>
83710
83711         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
83712
83713 1999-05-22  Jim Meyering  <meyering@ascend.com>
83714
83715         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
83716
83717 1999-05-20  Jim Meyering  <meyering@ascend.com>
83718
83719         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
83720         Add a colon after each `then' in case $4 is empty.
83721
83722 1999-05-16  Jim Meyering  <meyering@ascend.com>
83723
83724         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
83725
83726 1999-05-10  Jim Meyering  <meyering@ascend.com>
83727
83728         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
83729
83730         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
83731         AC_FUNC_MKTIME.
83732
83733 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
83734
83735         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
83736
83737 1999-05-04  Paul Eggert  <eggert@twinsun.com>
83738
83739         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
83740         not CPPFLAGS, so that linking works correctly in IRIX.
83741
83742 1999-04-30  Paul Eggert  <eggert@twinsun.com>
83743
83744         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
83745
83746 1999-04-20  Paul Eggert  <eggert@twinsun.com>
83747
83748         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
83749         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
83750         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
83751         jm_AC_TYPE_UNSIGNED_LONG_LONG.
83752         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
83753
83754         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
83755
83756 1999-04-20  Jim Meyering  <meyering@ascend.com>
83757
83758         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
83759         AC_REPLACE xstroull if necessary.  From Paul Eggert.
83760         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
83761
83762 1999-04-18  Jim Meyering  <meyering@ascend.com>
83763
83764         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
83765         * m4/jm-macros.m4: Use it.
83766
83767 1999-04-06  Jim Meyering  <meyering@ascend.com>
83768
83769         * m4/strftime.m4: Remove test for %f.
83770
83771 1999-03-29  Jim Meyering  <meyering@ascend.com>
83772
83773         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
83774         superset of the AC_TYPE_* checks in the textutils, fileutils,
83775         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
83776         AC_TYPE_PID_T.
83777
83778 1999-03-28  Jim Meyering  <meyering@ascend.com>
83779
83780         * m4/jm-macros.m4: Define GNU_PACKAGE here.
83781         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
83782         replaced e.g., in the *.sh files of the sh-utils.
83783
83784 1999-03-20  Jim Meyering  <meyering@ascend.com>
83785
83786         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
83787         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
83788         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
83789
83790 1999-03-19  Jim Meyering  <meyering@ascend.com>
83791
83792         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
83793
83794 1999-03-12  Jim Meyering  <meyering@ascend.com>
83795
83796         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
83797
83798 1999-03-07  Jim Meyering  <meyering@ascend.com>
83799
83800         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
83801         declared.
83802
83803 1999-02-17  Jim Meyering  <meyering@ascend.com>
83804
83805         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
83806         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
83807
83808 1999-02-07  Jim Meyering  <meyering@ascend.com>
83809
83810         * m4/group-member.m4: New file -- extracted from sh-utils'
83811         configure.in.
83812
83813         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
83814         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
83815
83816 1999-02-06  Jim Meyering  <meyering@ascend.com>
83817
83818         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
83819         * m4/fnmatch.m4: Likewise.
83820         * m4/getgroups.m4: Likewise.
83821         * m4/lstat.m4: Likewise.
83822         * m4/malloc.m4: Likewise.
83823         * m4/putenv.m4: Likewise.
83824         * m4/realloc.m4: Likewise.
83825         * m4/regex.m4: Likewise.
83826         * m4/stat.m4: Likewise.
83827         * m4/strftime.m4: Likewise.
83828         Suggestion from Alain Magloire.
83829
83830         * m4/chown.m4: Use `.$ac_objext', not `.o'.
83831         * m4/fnmatch.m4: Likewise.
83832         * m4/getgroups.m4: Likewise.
83833         * m4/getline.m4: Likewise.
83834         * m4/lstat.m4: Likewise.
83835         * m4/malloc.m4: Likewise.
83836         * m4/memcmp.m4: Likewise.
83837         * m4/putenv.m4: Likewise.
83838         * m4/realloc.m4: Likewise.
83839         * m4/regex.m4: Likewise.
83840         * m4/stat.m4: Likewise.
83841         * m4/strftime.m4: Likewise.
83842         Suggestion from Alain Magloire.
83843
83844         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
83845         an argument.
83846
83847         * m4/regex.m4: Add a run-time Test for proper operation of
83848         re_compile_pattern.
83849
83850 1999-01-31  Jim Meyering  <meyering@ascend.com>
83851
83852         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
83853
83854 1999-01-30  Jim Meyering  <meyering@ascend.com>
83855
83856         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
83857
83858         * m4/jm-mktime.m4: Make this a wrapper around the official
83859         AM_FUNC_MKTIME rather than my private copy, now that the official one
83860         is up to date.
83861         * m4/mktime.m4: Remove file.
83862
83863         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
83864         * m4/uptime.m4: Likewise.
83865         * m4/uintmax_t.m4: Likewise.
83866
83867 1999-01-28  Jim Meyering  <meyering@ascend.com>
83868
83869         * m4/jm-macros.m4: Use jm_AFS.
83870         * m4/afs.m4: New file (from fileutils' configure.in).
83871
83872         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
83873         * m4/chown.m4: Likewise.
83874         * m4/d-ino.m4: Likewise.
83875         * m4/d-type.m4: Likewise.
83876         * m4/fnmatch.m4: Likewise.
83877         * m4/getgroups.m4: Likewise.
83878         * m4/gettext.m4: Likewise.
83879         * m4/jm-mktime.m4: Likewise.
83880         * m4/jm-winsz2.m4: Likewise.
83881         * m4/lcmessage.m4: Likewise.
83882         * m4/ls-mntd-fs.m4: Likewise.
83883         * m4/malloc.m4: Likewise.
83884         * m4/memcmp.m4: Likewise.
83885         * m4/putenv.m4: Likewise.
83886         * m4/realloc.m4: Likewise.
83887         * m4/st_mtim.m4: Likewise.
83888         * m4/strftime.m4: Likewise.
83889
83890 1999-01-16  Jim Meyering  <meyering@ascend.com>
83891
83892         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
83893         (ARGMATCH_DIE_DECL): Define.
83894
83895 1999-01-12  Jim Meyering  <meyering@ascend.com>
83896
83897         * m4/Makefile.am.in: Rewrite to avoid using fmt.
83898         Reported by Lars Hecking.
83899
83900 1999-01-10  Jim Meyering  <meyering@ascend.com>
83901
83902         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
83903         gross kludge.
83904         * m4/inttypes_h.m4: Likewise.
83905         * m4/lstat.m4: Likewise.
83906         * m4/malloc.m4: Likewise.
83907         * m4/readdir.m4: Likewise.
83908         * m4/realloc.m4: Likewise.
83909         * m4/st_dm_mode.m4: Likewise.
83910         * m4/stat.m4: Likewise.
83911         * m4/utimbuf.m4: Likewise.
83912         * m4/utimes.m4: Likewise.
83913
83914         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
83915         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
83916         comments in config.h.in are meaningful.
83917
83918         * m4/jm-macros.m4: Require autoconf-2.13 here.
83919
83920         * m4/regex.m4: By default, don't use the included regex.c on systems
83921         with glibc 2.  Suggestion from Uli Drepper.
83922
83923 1999-01-02  Jim Meyering  <meyering@ascend.com>
83924
83925         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
83926
83927 1998-12-18  Jim Meyering  <meyering@ascend.com>
83928
83929         * m4/Makefile.am.in (Makefile.am): Simplify rule.
83930         Based on a suggestion from Lars Hecking.
83931
83932 1998-11-16  Paul Eggert  <eggert@twinsun.com>
83933
83934         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
83935
83936 1998-11-16  Jim Meyering  <meyering@ascend.com>
83937
83938         * m4/lfs.m4: Double-quote the `uname...` expression.
83939
83940 1998-11-14  Jim Meyering  <meyering@ascend.com>
83941
83942         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
83943         * m4/stat.m4: Likewise.
83944
83945 1998-11-03  Jim Meyering  <meyering@ascend.com>
83946
83947         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
83948         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
83949
83950 1998-10-18  Jim Meyering  <meyering@ascend.com>
83951
83952         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
83953
83954 1998-10-17  Jim Meyering  <meyering@ascend.com>
83955
83956         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
83957         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
83958         calls for those previously hard-coded headers.  Instead, take a new
83959         parameter.
83960         (jm_CHECK_DECLARATIONS): Reflect interface change.
83961         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
83962         (jm_CHECK_DECL_LOCALTIME_R): New macro.
83963
83964         * m4/mktime.m4: Test for spring-forward gap before long-running test.
83965
83966 1998-10-14  Jim Meyering  <meyering@ascend.com>
83967
83968         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
83969         instead of "TZ=America/Vancouver".  From Paul Eggert.
83970
83971 1998-10-11  Jim Meyering  <meyering@ascend.com>
83972
83973         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
83974         This adds a test for a recently added compatibility fix for mktime.c.
83975         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
83976
83977 1998-09-27  Jim Meyering  <meyering@ascend.com>
83978
83979         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
83980
83981         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
83982         ../configure.in, including a change from Gordon Matzigkeit to allow
83983         cross-compiling for the Hurd.
83984
83985         * m4/glibc.m4: New file/macro to test for the GNU C Library
83986         versions 1 and 2.  From Gordon Matzigkeit.
83987         Indent.
83988
83989 1998-09-21  Jim Meyering  <meyering@ascend.com>
83990
83991         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
83992
83993 1998-08-18  Paul Eggert  <eggert@twinsun.com>
83994
83995         Port nanosecond-resolution times to UnixWare 2.1.2 and
83996         pedantic Solaris 2.6.
83997
83998         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
83999         AC_STRUCT_ST_MTIM.
84000         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
84001         Generate name of ns member, instead of just 1 or undef.
84002         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
84003
84004 1998-08-15  Jim Meyering  <meyering@ascend.com>
84005
84006         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
84007         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
84008         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
84009         instead of jm_TYPE_SSIZE_T.
84010
84011 1998-08-12  Jim Meyering  <meyering@ascend.com>
84012
84013         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
84014
84015 1998-08-02  Jim Meyering  <meyering@ascend.com>
84016
84017         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
84018         in acconfig.h manually.
84019
84020 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84021
84022         * m4/st_mtim.m4: New file.
84023
84024 1998-07-28  Jim Meyering  <meyering@ascend.com>
84025
84026         * m4/utimes.m4: Undef stat.
84027
84028 1998-07-25  Jim Meyering  <meyering@ascend.com>
84029
84030         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84031         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84032
84033 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84034
84035         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84036         uid and gid actually remain unchanged.
84037
84038 1998-07-07  Jim Meyering  <meyering@ascend.com>
84039
84040         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84041
84042 1998-07-04  Jim Meyering  <meyering@ascend.com>
84043
84044         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84045         to prove that this macro can be used in packages without regex.c.
84046
84047 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84048
84049         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84050         is to be used.
84051
84052 1998-07-03  Jim Meyering  <meyering@ascend.com>
84053
84054         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84055
84056         * m4/gettext.m4: New file -- from gettext-0.10.35.
84057         * m4/lcmessage.m4: Likewise.
84058         * m4/progtest.m4: Likewise.
84059
84060         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84061         * m4/jm-macros.m4: Require the new macro.
84062
84063 1998-06-29  Jim Meyering  <meyering@ascend.com>
84064
84065         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84066         for the definition of NGROUPS (used in a system header included
84067         by sys/mount.h).
84068
84069 1998-06-28  Jim Meyering  <meyering@ascend.com>
84070
84071         * m4/ls-mntd-fs.m4: New file.
84072         * m4/fstypename.m4: New file.
84073
84074         * m4/jm-macros.m4: Require the new macro.
84075         * m4/jm-glibc-io.m4: New file.
84076
84077 1998-05-19  Jim Meyering  <meyering@ascend.com>
84078
84079         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84080         * m4/lchown.m4: New file.
84081
84082         * m4/Makefile.am.in: New file.
84083         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84084
84085 1998-05-14  Jim Meyering  <meyering@ascend.com>
84086
84087         * m4/Makefile.am (EXTRA_DIST): Add them.
84088         * m4/jm-macros.m4: New file.
84089         * m4/utimbuf.m4: New file.
84090
84091 1998-05-12  Jim Meyering  <meyering@ascend.com>
84092
84093         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84094
84095 1998-05-11  Jim Meyering  <meyering@ascend.com>
84096
84097         * m4/isc-posix.m4: New file.
84098
84099 1998-05-10  Jim Meyering  <meyering@ascend.com>
84100
84101         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84102
84103 1998-05-09  Jim Meyering  <meyering@ascend.com>
84104
84105         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84106         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84107         with automake.
84108
84109         * m4/ssize_t.m4: New file.
84110         * m4/mktime.m4: Remove file -- the new automake has this now.
84111
84112 1998-04-26  Jim Meyering  <meyering@ascend.com>
84113
84114         * m4/assert.m4: New file.
84115         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84116
84117 1998-04-05  Jim Meyering  <meyering@ascend.com>
84118
84119         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84120         (jm_PREREQ): Use it here.
84121
84122 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84123
84124         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84125         in acconfig.h.
84126
84127 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84128
84129         * m4/prereq.m4: New file.
84130         * m4/error.m4: New file.
84131         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84132
84133 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84134
84135         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84136         cache-check for the same variable -- that defeated the purpose of
84137         the test; the test program was never run.  This was a problem only
84138         on systems with losing getline functions -- HP-UX 10.20 is one.
84139         Reported by Bjorn Helgaas.
84140
84141 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84142
84143         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84144
84145 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84146
84147         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84148
84149         * m4/const.m4: New file.  Use an initializer in this declaration
84150         typedef int charset[2]; const charset x;
84151         Reported by Bob Glickstein.
84152
84153 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84154
84155         * m4/chown.m4: Fix reversed types on -1 args to chown.
84156         From Kaveh Ghazi.
84157
84158 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84159
84160         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84161         Add lseek and memchr.
84162
84163         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84164         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84165         have a 20-character limit on names.
84166
84167 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84168
84169         * m4/inttypes_h.m4: New file.
84170         * m4/uintmax_t.m4: New file.
84171         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84172
84173
84174         -----
84175
84176         Local Variables:
84177         coding: utf-8
84178         End:
84179
84180         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84181
84182         Copying and distribution of this file, with or without
84183         modification, are permitted provided the copyright notice
84184         and this notice are preserved.