sigpipe-die: use stdnoreturn.h
[gnulib.git] / ChangeLog
1 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2
3         sigpipe-die: use stdnoreturn.h
4         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
7
8         openat: use stdnoreturn.h
9         * lib/openat.h: Include <stdnoreturn.h>.
10         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11         * modules/openat (Depends-on): Add stdnoreturn.
12
13         * lib/openat-die.c (openat_save_fail): Modernize comment.
14
15         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16
17         * lib/glthread/thread.h: Modernize comment.
18
19         obstack: use _Noreturn
20         * lib/obstack.c (__attribute__): Remove macro.
21         (print_and_abort): Use _Noreturn.
22
23         c-stack: use _Noreturn
24         * lib/c-stack.c (die, overflow_handler, segv_handler):
25         Use _Noreturn rather than __attribute__((noreturn)).
26
27         argmatch-tests, exclude_tests: use _Noreturn
28         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
29         Remove.
30         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
31
32         stdlib: use _Noreturn
33         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
34         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
35         * modules/stdlib (Depends-on): Add _Noreturn.
36         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
37
38         stdnoreturn-tests: new module
39         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
40
41         stdnoreturn: new module
42         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
43         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
44
45         _Noreturn-tests: new module
46         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
47
48         _Noreturn: new module
49         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
50         New section, mentioning it.
51         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
52
53         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
54
55 2011-07-11  Eric Blake  <eblake@redhat.com>
56
57         ffs: new module
58         * modules/ffs: New file.
59         * m4/ffs.m4: Likewise.
60         * lib/ffs.c: Likewise.
61         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
62         * modules/strings (Makefile.am): Substitute witness.
63         (Depends-on): Add c++defs.
64         * lib/strings.in.h (ffs): Declare.
65         * modules/ffs-tests: New test file.
66         * tests/test-ffs.c: Test new module.
67         * MODULES.html.sh (Integer arithmetic functions): Mention it.
68         * doc/posix-functions/ffs.texi (ffs): Likewise.
69
70         regex: avoid compiler warning
71         * lib/regex.c (includes): Include <strings.h>, for use of
72         strcasecmp in regcomp.c.
73         Reported by Joachim Schmitz.
74
75 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76
77         stdint: respect system's intmax_t if INTMAX_MAX
78         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
79         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
80         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
81         long but int64_t is long long, and where we will clash with the
82         system intmax_t if we override it.  See
83         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
84         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
85         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
86         similarly for UINTMAX_C.
87
88 2011-07-08  Bruno Haible  <bruno@clisp.org>
89
90         pthread_sigmask tests: Avoid a compiler warning.
91         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
92         non-zero.
93
94         sigprocmask tests: A better way to avoid a compiler warning.
95         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
96         (main): Complain if system() returns non-zero.
97         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
98
99 2011-07-08  Bruno Haible  <bruno@clisp.org>
100
101         pthread_sigmask: Work around IRIX bug.
102         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
103         bug.
104         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
105         there may be unblocked pending signals.
106         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
107
108 2011-07-08  Bruno Haible  <bruno@clisp.org>
109
110         pthread_sigmask: Work around Cygwin bug.
111         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
112         bug.
113         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
114         the system's pthread_sigmask function.
115         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
116
117 2011-07-08  Bruno Haible  <bruno@clisp.org>
118
119         pthread_sigmask: Work around bug in single-threaded implementation.
120         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
121         FreeBSD, HP-UX, Solaris bug.
122         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
123         * lib/pthread_sigmask.c: Include <stddef.h>.
124         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
125         the system's pthread_sigmask function.
126         * modules/pthread_sigmask (configure.ac): Invoke
127         gl_PREREQ_PTHREAD_SIGMASK.
128         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
129         HP-UX, Solaris.
130
131 2011-07-08  Eric Blake  <eblake@redhat.com>
132
133         test-sigprocmask: avoid compiler warning
134         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
135         * tests/test-sigprocmask.c (main): Use it to silence warning.
136         Reported by Jim Meyering.
137
138         test-snprintf: avoid compiler warning
139         * tests/test-snprintf.c (main): Avoid shadowed declaration.
140         * tests/test-vsnprintf.c (main): Likewise.
141         Reported by Jim Meyering.
142
143 2011-07-08  Bruno Haible  <bruno@clisp.org>
144
145         Tests for module 'pthread_sigmask'.
146         * modules/pthread_sigmask-tests: New file.
147         * tests/test-pthread_sigmask1.c: New file, based on
148         tests/test-sigprocmask.c.
149         * tests/test-pthread_sigmask2.c: New file.
150
151 2011-07-08  Jim Meyering  <meyering@redhat.com>
152
153         test-getopt.h: avoid warning about an unused variable
154         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
155
156 2011-07-07  Jim Meyering  <meyering@redhat.com>
157
158         maint: reduce list of files exempt from sc_prohibit_leading_TABs
159         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
160         now that it no longer contains leading TABs.
161         Remove unused "url=FIXME" statement.
162
163 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
164
165         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
166         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
167         When gl_THREADLIB is not in use, assume that the POSIX sematics
168         are desired.  This is better for Emacs, which uses POSIX semantics
169         on GNUish and/or POSIXish platforms, and does not use threads at
170         all otherwise.
171
172         pthread_sigmask: fix typo when testing for libraries
173         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
174         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
175
176 2011-07-08  Eric Blake  <eblake@redhat.com>
177
178         fts: introduce FTS_NOATIME
179         * lib/fts_.h (FTS_NOATIME): New bit flag.
180         (FTS_OPTIONMASK): Adjust.
181         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
182         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
183
184 2011-07-08  Bruno Haible  <bruno@clisp.org>
185
186         Tests for module 'thread'.
187         * modules/thread-tests: New file.
188         * tests/test-thread_self.c: New file.
189         * tests/test-thread_create.cc: New file.
190
191 2011-07-08  Bruno Haible  <bruno@clisp.org>
192
193         thread: Avoid gcc warnings when using gl_thread_self().
194         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
195         'void *'.
196         (gl_thread_self_pointer): Update.
197
198 2011-07-07  Bruno Haible  <bruno@clisp.org>
199
200         signal-c++-tests: Check declaration of pthread_sigmask.
201         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
202         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
203         $(LIB_PTHREAD_SIGMASK).
204
205 2011-07-07  Bruno Haible  <bruno@clisp.org>
206
207         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
208         * lib/signal.in.h (pthread_sigmask): Override if
209         REPLACE_PTHREAD_SIGMASK is 1.
210         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
211         REPLACE_PTHREAD_SIGMASK.
212         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
213         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
214         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
215         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
216         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
217
218 2011-07-07  Bruno Haible  <bruno@clisp.org>
219
220         pthread_sigmask: Ensure declaration in <signal.h>.
221         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
222         include <pthread.h>.
223         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
224         problem.
225
226 2011-07-07  Bruno Haible  <bruno@clisp.org>
227
228         pthread_sigmask: Document the module.
229         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
230
231 2011-07-07  Bruno Haible  <bruno@clisp.org>
232
233         pthread_sigmask: Follow gnulib conventions.
234         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
235         gl_PTHREAD_SIGMASK.
236         * modules/pthread_sigmask (configure.ac): Update.
237
238 2011-07-07  Bruno Haible  <bruno@clisp.org>
239
240         pthread_sigmask: Make declaration C++ safe.
241         * lib/signal.in.h: In two special conditions, just do an #include_next.
242         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
243         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
244         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
245         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
246         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
247         not REPLACE_PTHREAD_MASK.
248         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
249         not REPLACE_PTHREAD_MASK.
250         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
251
252 2011-07-07  Bruno Haible  <bruno@clisp.org>
253
254         pthread_sigmask: Fix return value.
255         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
256         * lib/pthread_sigmask.c: New file.
257         * modules/pthread_sigmask (Files): Add it.
258         (configure.ac): Invoke AC_LIBOBJ.
259
260 2011-07-07  Eric Blake  <eblake@redhat.com>
261
262         getopt: more portable argv creation
263         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
264         const, use char arrays rather than strings.
265         Suggested by Paul Eggert.
266
267 2011-07-07  Bruno Haible  <bruno@clisp.org>
268
269         Tests for module 'sigprocmask'.
270         * modules/sigprocmask-tests: New file.
271         * tests/test-sigprocmask.c: New file.
272
273 2011-07-07  Bruno Haible  <bruno@clisp.org>
274
275         float tests: Tweak.
276         * tests/test-float.c (main): Tweak skip message.
277
278 2011-07-07  Eric Blake  <eblake@redhat.com>
279
280         getopt: avoid compiler warning during configure
281         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
282         assigning string literals to non-const pointer.
283
284         getopt-gnu: avoid crash in glibc getopt
285         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
286         * tests/test-getopt.h (test_getopt): Enhance test.
287         * tests/test-getopt_long.h (test_getopt_long): Likewise.
288         * doc/posix-functions/getopt.texi (getopt): Document it.
289         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
290         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
291         Likewise.
292
293 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
294
295         getopt: handle W; without long options in getopt [BZ #12922]
296         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
297         but no long options are defined, just return 'W'.
298
299 2011-07-07  Bruno Haible  <bruno@clisp.org>
300
301         Avoid literal tabs.
302         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
303         variable containing a tab instead of a literal tab.
304         Reported by Jim Meyering.
305
306 2011-07-07  Bruno Haible  <bruno@clisp.org>
307
308         Comments.
309         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
310
311 2011-07-06  Bruno Haible  <bruno@clisp.org>
312
313         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
314         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
315         <winsock2.h>.
316         (rpl_fd_isset, FD_ISSET): New definitions, copied from
317         lib/sys_socket.in.h.
318         (close, gethostname): Hide declarations from <winsock2.h>.
319         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
320         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
321         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
322         (select): Don't override if gnulib's <sys/select.h> was already
323         included.
324         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
325         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
326         setsockopt, shutdown, select): Tweak indentation.
327
328 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
329
330         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
331         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
332         in an application that does not use the sys_select module.
333
334 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
335
336         poll: do not return 0 on timeout=-1
337         * lib/poll.c: Loop with yield if no events occured
338
339 2011-07-06  Eric Blake  <eblake@redhat.com>
340
341         pthread_sigmask: always replace when not using pthread
342         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
343         replacement when using some threading other than pthread.  Fix
344         logic bug.
345
346 2011-07-06  Bruno Haible  <bruno@clisp.org>
347
348         Comments.
349         * m4/printf.m4: Update comments about mingw.
350
351 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
352
353         sys_select: define sigset_t more portably
354         * lib/sys_select.in.h: Always include <sys/types.h>, since
355         we now need sigset_t and mingw defines it there.
356         Include <signal.h> before split inclusion guard, to avoid
357         mishaps on Solaris, whose <signal.h> eventually includes us.
358         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
359         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
360         which come from ...
361         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
362         gl_CHECK_TYPE_SIGSET_T.
363         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
364         does the real work.
365         * modules/sys_select (Depends-on): Add 'signal'.
366
367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
368         Suggested by Bruno Haible.
369
370         pselect: Use pthread_sigmask, not sigprocmask.
371         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
372         multithreaded apps better than sigprocmask does.
373         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
374         sigprocmask directly.
375
376 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
377
378         * lib/pselect.c (pselect): Use plain name, without "rpl_".
379         Don't #undef,  since we don't need any underlying pselect.
380         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
381         (Depends-on): Add select.
382         (Link): Add $(LIBSOCKET).
383         These changes suggested by Bruno Haible.
384
385         pselect: document better
386         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
387         * doc/posix-functions/pselect.texi (pselect): Document new module.
388
389         pthread_sigmask: new module
390         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
391         * doc/posix-functions/pthread_sigmask.texi: Document new module.
392         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
393         This is done only as a macro; I don't know how well that'll
394         work for C++.  Move <sys/types.h> include before the include_next,
395         to avoid mishap on Solaris.
396         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
397         * modules/signal (Makefile.am): Substitute the check's results.
398         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
399
400         test-pselect: new module
401         * modules/pselect-tests, tests/test-pselect.c: New files.
402         * tests/test-select.c, tests/test-sys_select-c++.cc:
403         If TEST_PSELECT is defined, test pselect instead of testing select.
404
405         * tests/test-sys_select.c (sigset_t): Test for it, too.
406         Suggested by Bruno Haible.
407
408 2011-07-05  Eric Blake  <eblake@redhat.com>
409
410         snprintf: guarantee %1$d, for libintl
411         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
412         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
413         * doc/posix-functions/snprintf.texi (snprintf): Update.
414         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
415         * tests/test-snprintf.c (main): Enhance test.
416         * tests/test-vsnprintf.c (main): Likewise.
417
418 2011-07-05  Jim Meyering  <meyering@redhat.com>
419
420         maint: exempt stdio-read.c and stdio-write.c from the cppi check
421         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
422         per Bruno's request, to accommodate this idiom (no space after "#")
423         even when the function is inside an #if block:
424         char *
425         gets (char *s)
426         #undef gets
427         {
428           ...
429         }
430
431 2011-07-04  Jim Meyering  <meyering@redhat.com>
432
433         maint: indent with spaces, not TABs, and add a rule to check this
434         * tests/test-userspec.c: Indent with spaces, not TABs.
435         * tests/test-argp.c: Likewise.
436         * tests/test-c-stack2.sh: Likewise.
437         * tests/test-parse-duration.sh: Likewise
438         * m4/strtod.m4: Likewise.
439         * m4/alloca.m4: Likewise.
440         * m4/pselect.m4: Likewise.
441         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
442
443 2011-07-03  Jim Meyering  <meyering@redhat.com>
444
445         maint.mk: correct omissions in prohibit_argmatch_without_use check
446         This rule would mistakenly report that argmatch.h is included without
447         use even when both the argmatch and invalid_arg macro were used.
448         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
449         of argmatch and invalid_arg.
450
451 2011-07-03  Bruno Haible  <bruno@clisp.org>
452
453         Comments about EINTR.
454         * lib/safe-read.h: Explain the purpose of this module.
455         * lib/safe-write.h: Likewise.
456         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
457         module.
458         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
459         module.
460         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
461
462 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
463
464         xnanosleep: Rewrite to use new dtotimespec module.
465         It has the conversion code that used to be in xnanosleep.
466         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
467         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
468         (TIME_T_MAX): Remove.
469         (xnanosleep): Rewrite in terms of dtotimespec.
470         * modules/xnanosleep (Depends-on): Add dtotimespec.
471         Remove intprops, stdbool.
472
473         timespec-add, timespec-sub: new modules
474         * lib/timespec.h (timespec_add, timespec_sub): New decls.
475         * lib/timespec-add.c, lib/timespec-sub.c:
476         * modules/timespec-add, modules/timespec-sub: New files.
477
478         dtotimespec: new module
479         * lib/timespec.h (dtotimespec): New decl.
480         * lib/dtotimespec.c, modules/dtotimespec: New files.
481
482         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
483
484         pselect: new module
485         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
486         (pselect): New decls.
487         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
488         since the standard pselect decl uses 'restrict'.
489         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
490         HAVE_PSELECT, REPLACE_PSELECT.
491         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
492         HAVE_PSELECT, REPLACE_PSELECT.
493         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
494
495         sys_select: don't depend on sys_socket
496         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
498         This fix works on GNU and GNU-like platforms, but has not been tested
499         on native Windows.
500         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
501         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
502         gl_HEADER_SYS_SOCKET.
503         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
504         gl_PREREQ_SYS_H_WINSOCK2.
505
506 2011-06-29  Eric Blake  <eblake@redhat.com>
507
508         pipe2: fix C89 compile problem
509         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
510         Reported by Bruno Haible.
511
512         pipe, pipe2: don't corrupt fd on error
513         * lib/pipe.c (pipe): Leave fd unchanged on error.
514         * lib/pipe2.c (pipe2): Likewise.
515         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
516         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
517
518 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
519
520         mmap-anon: do not use regular expressions inadvertently
521         * m4/mmap-anon.m4: Remove trailing period from strings sought
522         in the output.
523
524 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
525
526         nanosleep: fix integer overflow problem
527         * lib/nanosleep.c (my_usleep): Don't assume signed integer
528         arithmetic wraps around on overflow.
529
530         nanosleep: simplify carrying
531         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
532         first call to the underyling nanosleep, not for the last one.
533         This doesn't fix any bugs, but it simplifies the computation of
534         the remaining delay.  Found while auditing integer overflow issues.
535
536         dup2: remove test for existence of fcntl
537         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
538         "#if HAVE_FCNTL", in the configure-time test program.
539         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
540         and therefore speeds up "configure" a bit.  Found while
541         adding the dup2 module to Emacs.
542
543 2011-06-24  Eric Blake  <eblake@redhat.com>
544
545         maint.mk: enhance useless header checks
546         * top/maint.mk (_sc_header_without_use): Check both include
547         styles.
548         (sc_prohibit_assert_without_use)
549         (sc_prohibit_close_stream_without_use)
550         (sc_prohibit_getopt_without_use)
551         (sc_prohibit_quotearg_without_use)
552         (sc_prohibit_quote_without_use)
553         (sc_prohibit_long_options_without_use)
554         (sc_prohibit_inttostr_without_use)
555         (sc_prohibit_ignore_value_without_use)
556         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
557         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
558         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
559         (sc_prohibit_hash_pjw_without_use)
560         (sc_prohibit_safe_read_without_use)
561         (sc_prohibit_argmatch_without_use)
562         (sc_prohibit_canonicalize_without_use)
563         (sc_prohibit_root_dev_ino_without_use)
564         (sc_prohibit_openat_without_use)
565         (sc_prohibit_c_ctype_without_use)
566         (sc_prohibit_signal_without_use)
567         (sc_prohibit_stdio--_without_use)
568         (sc_prohibit_stdio-safer_without_use)
569         (sc_prohibit_strings_without_use)
570         (sc_prohibit_intprops_without_use)
571         (sc_prohibit_stddef_without_use)
572         (sc_prohibit_xfreopen_without_use): Update clients.
573
574 2011-06-24  Jim Meyering  <meyering@redhat.com>
575
576         syntax-check: keep one maint.mk rule in sync with its header
577         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
578         of the bug Eric has just fixed, with today's commit 25e4c2ec.
579         I prefer to avoid temporary files here, so use <(...), but that
580         is not supported by /bin/sh, so...
581         (SHELL): Define to /bin/bash.
582
583 2011-06-24  Eric Blake  <eblake@redhat.com>
584
585         maint.mk: update sc_prohibit_intprops_without_use
586         * top/maint.mk (_intprops_names): Match recent changes.
587
588 2011-06-24  Bruno Haible  <bruno@clisp.org>
589
590         strerror-override: No-op tweak.
591         * lib/strerror-override.h (strerror_override): Reorder conditions,
592         for consistency with lib/strerror-override.c.
593
594 2011-06-23  Eric Blake  <eblake@redhat.com>
595
596         maint.mk: test further PATH_MAX issues
597         * top/maint.mk (sc_prohibit_path_max_array): Rename...
598         (sc_prohibit_path_max_allocation): ...and also test alloca.
599         Suggested by Jim Meyering.
600
601 2011-06-22  Eric Blake  <eblake@redhat.com>
602
603         maint.mk: add syntax-check to avoid char[PATH_MAX]
604         * top/maint.mk (sc_prohibit_path_max_array): New rule.
605
606         stat: be robust to PATH_MAX definition
607         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
608         * modules/stat (Depends-on): Add verify.
609
610         link: work around IRIX bug
611         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
612         * lib/link.c (rpl_link): Work around it.
613         * tests/test-link.h (test_link): Enhance test.
614         * doc/posix-functions/link.texi (link): Document the bug.
615
616         getopt: silence clang warning
617         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
618         dereference.
619         Reported by Gustavo Martin Domato.
620
621 2011-06-22  Jim Meyering  <meyering@redhat.com>
622
623         bootstrap: do not insert a blank line into each .gitignore file
624         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
625
626 2011-06-21  Eric Blake  <eblake@redhat.com>
627
628         perror: test for output mismatch
629         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
630         perror on IRIX.
631
632         strerror_r: fix OpenBSD behavior on out-of-range
633         * lib/strerror_r.c (strerror_r): Always use maximal string.
634         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
635
636         strerror_r: fix OpenBSD behavior on 0
637         * lib/strerror-override.c (strerror_override): Also override 0
638         when needed.
639         * lib/strerror-override.h (strerror_override): Likewise.
640         * lib/strerror.c (strerror): Simplify, now that 0 override is done
641         earlier.
642         * lib/strerror_r.c (strerror_r): Likewise.
643         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
644         behavior...
645         (gl_FUNC_STRERROR_0): ...into new macro.
646         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
647         is overridden.
648         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
649         * modules/strerror-override (Files): Add strerror.m4.
650         (configure.ac): Also provide override for 0 when needed.
651         * doc/posix-functions/strerror.texi (strerror): Document this.
652         * doc/posix-functions/perror.texi (perror): Likewise.
653
654         perror: adjust array size
655         * modules/perror (Depends-on): Add strerror-override.
656         * lib/perror.c (perror): Use it to avoid magic number.
657
658         strerror-override: reduce size
659         * lib/strerror-override.c (strerror_override): Use fewer lines.
660
661 2011-06-20  Bruno Haible  <bruno@clisp.org>
662
663         pathmax: Ensure correct value for PATH_MAX on HP-UX.
664         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
665
666 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
667
668         alloca: port to compilers that can optimize like GCC 4.6.0
669         * lib/alloca.c (find_stack_direction): New signature, taken from
670         Autoconf git.  This works with GCC 4.6.0.  This code should never
671         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
672         be used with other compilers that optimize as well as GCC 4.6.0 does.
673         (alloca): Adjust to new signature.
674         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
675         New macro, which patches Autoconf in a similar way.
676
677         c-stack: stop worrying about stack direction
678         * lib/c-stack.c (find_stack_direction): Remove.
679         (segv_handler): Don't worry about stack direction growth, as it's
680         too much of a pain to configure this correctly, given how compilers
681         are optimizing-away our stack-growth detection code.  Instead, assume
682         that any access to just before or just after the stack is OK.
683         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
684         Don't require AC_FUNC_ALLOCA; no longer needed.
685
686 2011-06-20  Eric Blake  <eblake@redhat.com>
687
688         test-stat: don't allocate PATH_MAX bytes
689         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
690         PATH_MAX-sized buffer.
691         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
692         * modules/stat-tests (Depends-on): Likewise.
693         * tests/test-fstatat.c (includes): Drop pathmax.h.
694         * tests/test-stat.c (includes): Likewise.
695         Reported by Bruno Haible.
696
697 2011-06-20  Bruno Haible  <bruno@clisp.org>
698
699         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
700         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
701         * lib/float.c: New file.
702         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
703         REPLACE_FLOAT_LDBL.
704         * modules/float (Files): Add lib/float.c.
705         (configure.ac): Invoke AC_LIBOBJ.
706         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
707
708 2011-06-20  Bruno Haible  <bruno@clisp.org>
709
710         Tests for module 'float'.
711         * modules/float-tests: New file.
712         * tests/test-float.c: New file.
713
714 2011-06-19  Bruno Haible  <bruno@clisp.org>
715
716         isinf: Coding style.
717         * lib/isinf.c: Use GNU coding style.
718
719 2011-06-19  Bruno Haible  <bruno@clisp.org>
720
721         linkat test: Avoid test failure on AIX 7.1.
722         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
723         * tests/test-link.h (test_link): Likewise.
724
725 2011-06-19  Bruno Haible  <bruno@clisp.org>
726
727         pread test: Avoid test failure on OpenBSD 4.9.
728         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
729
730 2011-06-19  Bruno Haible  <bruno@clisp.org>
731
732         sprintf-posix: Fix test failure on AIX 7.1.
733         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
734         * doc/posix-functions/dprintf.texi: Mention limited precision problem
735         on AIX.
736         * doc/posix-functions/fprintf.texi: Likewise.
737         * doc/posix-functions/printf.texi: Likewise.
738         * doc/posix-functions/snprintf.texi: Likewise.
739         * doc/posix-functions/sprintf.texi: Likewise.
740         * doc/posix-functions/vdprintf.texi: Likewise.
741         * doc/posix-functions/vfprintf.texi: Likewise.
742         * doc/posix-functions/vprintf.texi: Likewise.
743         * doc/posix-functions/vsnprintf.texi: Likewise.
744         * doc/posix-functions/vsprintf.texi: Likewise.
745
746 2011-06-19  Bruno Haible  <bruno@clisp.org>
747
748         roundl-ieee: Fix test failure on AIX 7.1.
749         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
750         * doc/posix-functions/roundl.texi: Mention problem with negative
751         arguments.
752
753 2011-06-19  Bruno Haible  <bruno@clisp.org>
754
755         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
756         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
757         * doc/posix-functions/round.texi: Mention problem with negative
758         arguments.
759         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
760
761 2011-06-19  Bruno Haible  <bruno@clisp.org>
762
763         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
764         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
765         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
766         * doc/posix-functions/roundf.texi: Mention problem with negative
767         arguments.
768         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
769
770 2011-06-19  Bruno Haible  <bruno@clisp.org>
771
772         ceilf-ieee: Work around bug on MacOS X 10.5.
773         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
774
775         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
776         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
777         IEEE compliant, avoid compiler optimizations.
778         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
779         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
780         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
781         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
782         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
783         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
784         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
785         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
786         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
787         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
788
789 2011-06-19  Bruno Haible  <bruno@clisp.org>
790
791         ceilf-ieee: Work around bug on AIX 7.1.
792         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
793         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
794
795 2011-06-19  Bruno Haible  <bruno@clisp.org>
796
797         ceil-ieee: Work around bug on AIX 7.1.
798         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
799         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
800
801 2011-06-18  Bruno Haible  <bruno@clisp.org>
802
803         fsync test: Avoid test failure on MacOS X and AIX.
804         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
805         EINVAL.
806
807 2011-06-18  Bruno Haible  <bruno@clisp.org>
808
809         openat, fdopendir tests: Fix link errors.
810         * modules/openat-tests (Depends-on): Add progname.
811         * modules/fdopendir-tests (Depends-on): Likewise.
812         * tests/test-fchownat.c: Include progname.h.
813         (main): Call set_program_name.
814         * tests/test-fstatat.c: Include progname.h.
815         (main): Call set_program_name.
816         * tests/test-mkdirat.c: Include progname.h.
817         (main): Call set_program_name.
818         * tests/test-openat.c: Include progname.h.
819         (main): Call set_program_name.
820         * tests/test-unlinkat.c: Include progname.h.
821         (main): Call set_program_name.
822         * tests/test-fdopendir.c: Include progname.h.
823         (main): Call set_program_name.
824
825 2011-06-18  Bruno Haible  <bruno@clisp.org>
826
827         Doc update.
828         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
829         HP-UX.
830         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
831
832 2011-06-18  Bruno Haible  <bruno@clisp.org>
833
834         getcwd tests: Avoid compilation error on HP-UX 11.31.
835         * modules/getcwd-tests (Depends-on): Add pathmax.
836         * tests/test-getcwd.c: Include pathmax.h.
837
838 2011-06-18  Bruno Haible  <bruno@clisp.org>
839
840         isfinite, isinf: Fix link error on AIX 6 and 7.
841         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
842         needed, also test the macro with a 'float' argument.
843         * m4/isinf.m4 (gl_ISINF): Likewise.
844
845 2011-06-18  Bruno Haible  <bruno@clisp.org>
846
847         getloadavg: Don't clobber LIBS. Regression from previous commit.
848         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
849         AC_CHECK_LIB from here...
850         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
851         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
852         gl_func_getloadavg_done.
853         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
854
855 2011-06-18  Bruno Haible  <bruno@clisp.org>
856
857         clean-temp: Improve documentation.
858         * lib/clean-temp.h: Explain better how to use this module.
859         Reported by John Darrington <john@darrington.wattle.id.au>.
860
861 2011-06-17  Bruno Haible  <bruno@clisp.org>
862
863         pread, pwrite: Avoid cc warning on AIX.
864         * lib/unistd.in.h (pread): Undefine before defining as a macro.
865         (pwrite): Likewise.
866
867 2011-06-17  Bruno Haible  <bruno@clisp.org>
868
869         spawn-pipe tests: Fix link error.
870         * tests/test-spawn-pipe-child.c: Undefine fprintf.
871         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
872
873 2011-06-17  Bruno Haible  <bruno@clisp.org>
874
875         Tests: Remove unnecessary dependency.
876         * modules/canonicalize-tests (Depends-on): Remove progname.
877         * modules/chown-tests (Depends-on): Likewise.
878         * modules/dirname-tests (Depends-on): Likewise.
879         * modules/fdopendir-tests (Depends-on): Likewise.
880         * modules/fdutimensat-tests (Depends-on): Likewise.
881         * modules/hash-tests (Depends-on): Likewise.
882         * modules/lchown-tests (Depends-on): Likewise.
883         * modules/linkat-tests (Depends-on): Likewise.
884         * modules/renameat-tests (Depends-on): Likewise.
885         * modules/spawn-pipe-tests (Depends-on): Likewise.
886         * modules/utimensat-tests (Depends-on): Likewise.
887
888 2011-06-17  Bruno Haible  <bruno@clisp.org>
889
890         spawn-pipe tests: Fix link error.
891         * tests/test-spawn-pipe-child.c: Undefine fflush.
892
893 2011-06-17  Bruno Haible  <bruno@clisp.org>
894
895         Fix tests link errors.
896         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
897         * modules/chown-tests (Makefile.am): Don't link test-chown with
898         LIBINTL.
899         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
900         LIBINTL.
901         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
902         LIBINTL.
903         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
904         LIBINTL.
905
906 2011-06-16  Bruno Haible  <bruno@clisp.org>
907
908         crypto/gc-sha1: Fix recent regression.
909         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
910         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
911
912         crypto/gc-md5: Fix recent regression.
913         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
914
915         crypto/gc-md4: Fix recent regression.
916         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
917         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
918
919         crypto/gc-arctwo: Fix recent regression.
920         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
921         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
922
923         crypto/gc-rijndael: Fix recent regression.
924         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
925         (configure.ac): Invoke AC_LIBOBJ here.
926         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
927         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
928
929         crypto/gc-hmac-sha1: Fix recent regression.
930         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
931         (configure.ac): Invoke AC_LIBOBJ here.
932         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
933         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
934
935         crypto/gc-hmac-md5: Fix recent regression.
936         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
937         (configure.ac): Invoke AC_LIBOBJ here.
938         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
939         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
940
941         crypto/gc-des: Fix recent regression.
942         * modules/crypto/gc-des (Files): Remove m4/des.m4.
943         (configure.ac): Invoke AC_LIBOBJ here.
944         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
945         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
946
947         crypto/gc-arcfour: Fix recent regression.
948         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
949         (configure.ac): Invoke AC_LIBOBJ here.
950         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
951         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
952
953 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
954
955         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
956         After the 2011-05-21 change, this macro requires
957         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
958         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
959
960 2011-06-16  Bruno Haible  <bruno@clisp.org>
961
962         fprintftime: Move AC_LIBOBJ invocations to module description.
963         * m4/fprintftime.m4: Remove file.
964         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
965         (configure.ac): Remove gl_FPRINTFTIME call.
966         (Makefile.am): Augment lib_SOURCES.
967         Reported by Jim Meyering.
968
969 2011-06-16  Bruno Haible  <bruno@clisp.org>
970
971         tmpfile-safer: Finish 2011-05-23 commit.
972         * m4/stdio-safer.m4: Really remove file.
973         Reported by Jim Meyering.
974
975 2011-06-16  Bruno Haible  <bruno@clisp.org>
976
977         syntax-check: Fix typo.
978         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
979         printf-posix.m4.
980         Reported by Jim Meyering.
981
982 2011-06-13  Jim Meyering  <meyering@redhat.com>
983
984         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
985         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
986
987 2011-05-23  Bruno Haible  <bruno@clisp.org>
988
989         yesno: Move AC_LIBOBJ invocations to module description.
990         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
991         * modules/yesno (Makefile.am): Augment lib_SOURCES.
992
993 2011-05-23  Bruno Haible  <bruno@clisp.org>
994
995         xstrtol: Move AC_LIBOBJ invocations to module description.
996         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
997         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
998
999 2011-05-23  Bruno Haible  <bruno@clisp.org>
1000
1001         xstrtold: Move AC_LIBOBJ invocations to module description.
1002         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
1003         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
1004
1005 2011-05-23  Bruno Haible  <bruno@clisp.org>
1006
1007         xstrtod: Move AC_LIBOBJ invocations to module description.
1008         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
1009         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
1010
1011 2011-05-23  Bruno Haible  <bruno@clisp.org>
1012
1013         xnanosleep: Move AC_LIBOBJ invocations to module description.
1014         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
1015         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
1016
1017 2011-05-23  Bruno Haible  <bruno@clisp.org>
1018
1019         xgetcwd: Move AC_LIBOBJ invocations to module description.
1020         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
1021         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
1022
1023 2011-05-23  Bruno Haible  <bruno@clisp.org>
1024
1025         xalloc: Move AC_LIBOBJ invocations to module description.
1026         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
1027         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
1028
1029 2011-05-23  Bruno Haible  <bruno@clisp.org>
1030
1031         write-any-file: Move AC_LIBOBJ invocations to module description.
1032         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
1033         invocation.
1034         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
1035
1036 2011-05-23  Bruno Haible  <bruno@clisp.org>
1037
1038         utimens: Move AC_LIBOBJ invocations to module description.
1039         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
1040         * modules/utimens (Makefile.am): Augment lib_SOURCES.
1041
1042 2011-05-23  Bruno Haible  <bruno@clisp.org>
1043
1044         utimecmp: Move AC_LIBOBJ invocations to module description.
1045         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
1046         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
1047
1048 2011-05-23  Bruno Haible  <bruno@clisp.org>
1049
1050         userspec: Move AC_LIBOBJ invocations to module description.
1051         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
1052         * modules/userspec (Makefile.am): Augment lib_SOURCES.
1053
1054 2011-05-23  Bruno Haible  <bruno@clisp.org>
1055
1056         unlinkdir: Move AC_LIBOBJ invocations to module description.
1057         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
1058         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
1059
1060 2011-05-23  Bruno Haible  <bruno@clisp.org>
1061
1062         unistd-safer: Move AC_LIBOBJ invocations to module description.
1063         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
1064         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
1065
1066 2011-05-23  Bruno Haible  <bruno@clisp.org>
1067
1068         tempname: Move AC_LIBOBJ invocations to module description.
1069         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
1070         * modules/tempname (Makefile.am): Augment lib_SOURCES.
1071
1072 2011-05-23  Bruno Haible  <bruno@clisp.org>
1073
1074         strftime: Move AC_LIBOBJ invocations to module description.
1075         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
1076         * modules/strftime (Makefile.am): Augment lib_SOURCES.
1077
1078 2011-05-23  Bruno Haible  <bruno@clisp.org>
1079
1080         stdlib-safer: Move AC_LIBOBJ invocations to module description.
1081         * m4/stdlib-safer.m4: Remove file.
1082         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
1083         (configure.ac): Remove gl_STDLIB_SAFER call.
1084         (Makefile.am): Augment lib_SOURCES.
1085
1086 2011-05-23  Bruno Haible  <bruno@clisp.org>
1087
1088         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
1089         * m4/stdio-safer.m4: Remove file.
1090         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
1091         (configure.ac): Remove gl_TMPFILE_SAFER call.
1092         (Makefile.am): Augment lib_SOURCES.
1093
1094 2011-05-23  Bruno Haible  <bruno@clisp.org>
1095
1096         popen-safer: Move AC_LIBOBJ invocations to module description.
1097         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
1098         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
1099         (configure.ac): Remove gl_POPEN_SAFER call.
1100         (Makefile.am): Augment lib_SOURCES.
1101
1102 2011-05-23  Bruno Haible  <bruno@clisp.org>
1103
1104         freopen-safer: Move AC_LIBOBJ invocations to module description.
1105         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
1106         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
1107         (configure.ac): Remove gl_FREOPEN_SAFER call.
1108         (Makefile.am): Augment lib_SOURCES.
1109
1110 2011-05-23  Bruno Haible  <bruno@clisp.org>
1111
1112         fopen-safer: Move AC_LIBOBJ invocations to module description.
1113         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
1114         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
1115         (configure.ac): Remove gl_FOPEN_SAFER call.
1116         (Makefile.am): Augment lib_SOURCES.
1117
1118 2011-05-23  Bruno Haible  <bruno@clisp.org>
1119
1120         crypto/sha512: Move AC_LIBOBJ invocations to module description.
1121         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
1122         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
1123
1124 2011-05-23  Bruno Haible  <bruno@clisp.org>
1125
1126         crypto/sha256: Move AC_LIBOBJ invocations to module description.
1127         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
1128         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
1129
1130 2011-05-23  Bruno Haible  <bruno@clisp.org>
1131
1132         crypto/sha1: Move AC_LIBOBJ invocations to module description.
1133         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
1134         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
1135
1136 2011-05-23  Bruno Haible  <bruno@clisp.org>
1137
1138         settime: Move AC_LIBOBJ invocations to module description.
1139         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
1140         * modules/settime (Makefile.am): Augment lib_SOURCES.
1141
1142 2011-05-23  Bruno Haible  <bruno@clisp.org>
1143
1144         savedir: Move AC_LIBOBJ invocations to module description.
1145         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
1146         * modules/savedir (Makefile.am): Augment lib_SOURCES.
1147
1148 2011-05-23  Bruno Haible  <bruno@clisp.org>
1149
1150         save-cwd: Move AC_LIBOBJ invocations to module description.
1151         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
1152         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
1153
1154 2011-05-23  Bruno Haible  <bruno@clisp.org>
1155
1156         same: Move AC_LIBOBJ invocations to module description.
1157         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
1158         * modules/same (Makefile.am): Augment lib_SOURCES.
1159
1160 2011-05-23  Bruno Haible  <bruno@clisp.org>
1161
1162         safe-write: Move AC_LIBOBJ invocations to module description.
1163         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
1164         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
1165         instead of gl_SAFE_WRITE.
1166         (Makefile.am): Augment lib_SOURCES.
1167
1168 2011-05-23  Bruno Haible  <bruno@clisp.org>
1169
1170         safe-read: Move AC_LIBOBJ invocations to module description.
1171         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
1172         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
1173         of gl_SAFE_READ.
1174         (Makefile.am): Augment lib_SOURCES.
1175
1176 2011-05-23  Bruno Haible  <bruno@clisp.org>
1177
1178         safe-alloc: Move AC_LIBOBJ invocations to module description.
1179         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
1180         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
1181
1182 2011-05-23  Bruno Haible  <bruno@clisp.org>
1183
1184         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
1185         * m4/rijndael.m4: Remove file.
1186         * modules/crypto/rijndael (Files): Remove it.
1187         (configure.ac): Remove gl_RIJNDAEL call.
1188         (Makefile.am): Augment lib_SOURCES.
1189
1190 2011-05-23  Bruno Haible  <bruno@clisp.org>
1191
1192         readtokens: Move AC_LIBOBJ invocations to module description.
1193         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
1194         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
1195
1196 2011-05-23  Bruno Haible  <bruno@clisp.org>
1197
1198         read-file: Move AC_LIBOBJ invocations to module description.
1199         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
1200         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
1201         of gl_FUNC_READ_FILE.
1202         (Makefile.am): Augment lib_SOURCES.
1203
1204 2011-05-23  Bruno Haible  <bruno@clisp.org>
1205
1206         quotearg: Move AC_LIBOBJ invocations to module description.
1207         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
1208         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
1209
1210 2011-05-23  Bruno Haible  <bruno@clisp.org>
1211
1212         quote: Move AC_LIBOBJ invocations to module description.
1213         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
1214         * modules/quote (Makefile.am): Augment lib_SOURCES.
1215
1216 2011-05-23  Bruno Haible  <bruno@clisp.org>
1217
1218         posixver: Move AC_LIBOBJ invocations to module description.
1219         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
1220         * modules/posixver (Makefile.am): Augment lib_SOURCES.
1221
1222 2011-05-23  Bruno Haible  <bruno@clisp.org>
1223
1224         posixtm: Move AC_LIBOBJ invocations to module description.
1225         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
1226         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
1227
1228 2011-05-23  Bruno Haible  <bruno@clisp.org>
1229
1230         physmem: Move AC_LIBOBJ invocations to module description.
1231         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
1232         * modules/physmem (Makefile.am): Augment lib_SOURCES.
1233
1234 2011-05-23  Bruno Haible  <bruno@clisp.org>
1235
1236         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
1237         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
1238         invocation.
1239         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
1240
1241 2011-05-23  Bruno Haible  <bruno@clisp.org>
1242
1243         mpsort: Move AC_LIBOBJ invocations to module description.
1244         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
1245         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
1246
1247 2011-05-23  Bruno Haible  <bruno@clisp.org>
1248
1249         modechange: Move AC_LIBOBJ invocations to module description.
1250         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
1251         * modules/modechange (Makefile.am): Augment lib_SOURCES.
1252
1253 2011-05-23  Bruno Haible  <bruno@clisp.org>
1254
1255         mkdir-p: Move AC_LIBOBJ invocations to module description.
1256         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
1257         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
1258
1259 2011-05-23  Bruno Haible  <bruno@clisp.org>
1260
1261         mkancesdirs: Move AC_LIBOBJ invocations to module description.
1262         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
1263         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
1264
1265 2011-05-23  Bruno Haible  <bruno@clisp.org>
1266
1267         mgetgroups: Move AC_LIBOBJ invocations to module description.
1268         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
1269         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
1270
1271 2011-05-23  Bruno Haible  <bruno@clisp.org>
1272
1273         memxor: Move AC_LIBOBJ invocations to module description.
1274         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
1275         * modules/memxor (Makefile.am): Augment lib_SOURCES.
1276
1277 2011-05-23  Bruno Haible  <bruno@clisp.org>
1278
1279         memcoll: Move AC_LIBOBJ invocations to module description.
1280         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
1281         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
1282
1283 2011-05-23  Bruno Haible  <bruno@clisp.org>
1284
1285         memcasecmp: Move AC_LIBOBJ invocations to module description.
1286         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
1287         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
1288
1289 2011-05-23  Bruno Haible  <bruno@clisp.org>
1290
1291         crypto/md5: Move AC_LIBOBJ invocations to module description.
1292         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
1293         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
1294
1295 2011-05-23  Bruno Haible  <bruno@clisp.org>
1296
1297         crypto/md4: Move AC_LIBOBJ invocations to module description.
1298         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
1299         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
1300
1301 2011-05-23  Bruno Haible  <bruno@clisp.org>
1302
1303         crypto/md2: Move AC_LIBOBJ invocations to module description.
1304         * m4/md2.m4: Remove file.
1305         * modules/crypto/md2 (Files): Remove it.
1306         (configure.ac): Remove gl_MD2 call.
1307         (Makefile.am): Augment lib_SOURCES.
1308
1309 2011-05-23  Bruno Haible  <bruno@clisp.org>
1310
1311         long-options: Move AC_LIBOBJ invocations to module description.
1312         * m4/long-options.m4: Remove file.
1313         * modules/long-options (Files): Remove it.
1314         (configure.ac): Remove gl_LONG_OPTIONS call.
1315         (Makefile.am): Augment lib_SOURCES.
1316
1317 2011-05-23  Bruno Haible  <bruno@clisp.org>
1318
1319         i-ring: Move AC_LIBOBJ invocations to module description.
1320         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
1321         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
1322
1323 2011-05-23  Bruno Haible  <bruno@clisp.org>
1324
1325         idcache: Move AC_LIBOBJ invocations to module description.
1326         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
1327         * modules/idcache (Makefile.am): Augment lib_SOURCES.
1328
1329 2011-05-23  Bruno Haible  <bruno@clisp.org>
1330
1331         human: Move AC_LIBOBJ invocations to module description.
1332         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
1333         * modules/human (Makefile.am): Augment lib_SOURCES.
1334
1335 2011-05-23  Bruno Haible  <bruno@clisp.org>
1336
1337         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
1338         * m4/hmac-sha1.m4: Remove file.
1339         * modules/crypto/hmac-sha1 (Files): Remove it.
1340         (configure.ac): Remove gl_HMAC_SHA1 call.
1341         (Makefile.am): Augment lib_SOURCES.
1342
1343 2011-05-23  Bruno Haible  <bruno@clisp.org>
1344
1345         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
1346         * m4/hmac-md5.m4: Remove file.
1347         * modules/crypto/hmac-md5 (Files): Remove it.
1348         (configure.ac): Remove gl_HMAC_MD5 call.
1349         (Makefile.am): Augment lib_SOURCES.
1350
1351 2011-05-23  Bruno Haible  <bruno@clisp.org>
1352
1353         hash: Move AC_LIBOBJ invocations to module description.
1354         * m4/hash.m4: Remove file.
1355         * modules/hash (Files): Remove it.
1356         (configure.ac): Remove gl_HASH call.
1357         (Makefile.am): Augment lib_SOURCES.
1358
1359 2011-05-23  Bruno Haible  <bruno@clisp.org>
1360
1361         hard-locale: Move AC_LIBOBJ invocations to module description.
1362         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
1363         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
1364
1365 2011-05-23  Bruno Haible  <bruno@clisp.org>
1366
1367         getugroups: Move AC_LIBOBJ invocations to module description.
1368         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
1369         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
1370
1371 2011-05-23  Bruno Haible  <bruno@clisp.org>
1372
1373         gettime: Move AC_LIBOBJ invocations to module description.
1374         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
1375         * modules/gettime (Makefile.am): Augment lib_SOURCES.
1376
1377 2011-05-23  Bruno Haible  <bruno@clisp.org>
1378
1379         getndelim2: Move AC_LIBOBJ invocations to module description.
1380         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
1381         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
1382
1383 2011-05-23  Bruno Haible  <bruno@clisp.org>
1384
1385         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
1386         * m4/gc-pbkdf2-sha1.m4: Remove file.
1387         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
1388         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
1389         (Makefile.am): Augment lib_SOURCES.
1390
1391 2011-05-23  Bruno Haible  <bruno@clisp.org>
1392
1393         fts: Move AC_LIBOBJ invocations to module description.
1394         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
1395         * modules/fts (configure.ac): ... to here.
1396
1397 2011-05-23  Bruno Haible  <bruno@clisp.org>
1398
1399         file-type: Move AC_LIBOBJ invocations to module description.
1400         * m4/file-type.m4: Remove file.
1401         * modules/file-type (Files): Remove it.
1402         (configure.ac): Remove gl_FILE_TYPE call.
1403         (Makefile.am): Augment lib_SOURCES.
1404
1405 2011-05-23  Bruno Haible  <bruno@clisp.org>
1406
1407         filenamecat*: Respect rules for use of AC_LIBOBJ.
1408         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
1409         Remove AC_LIBOBJ invocation.
1410         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
1411         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
1412
1413 2011-05-23  Bruno Haible  <bruno@clisp.org>
1414
1415         filemode: Move AC_LIBOBJ invocations to module description.
1416         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
1417         * modules/filemode (Makefile.am): Augment lib_SOURCES.
1418
1419 2011-05-23  Bruno Haible  <bruno@clisp.org>
1420
1421         openat-safer: Move AC_LIBOBJ invocations to module description.
1422         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
1423         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
1424
1425 2011-05-23  Bruno Haible  <bruno@clisp.org>
1426
1427         fcntl-safer: Move AC_LIBOBJ invocations to module description.
1428         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
1429         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
1430
1431 2011-05-23  Bruno Haible  <bruno@clisp.org>
1432
1433         exclude: Move AC_LIBOBJ invocations to module description.
1434         * m4/exclude.m4: Remove file.
1435         * modules/exclude (Files): Remove it.
1436         (configure.ac): Remove gl_EXCLUDE call.
1437         (Makefile.am): Augment lib_SOURCES.
1438
1439 2011-05-23  Bruno Haible  <bruno@clisp.org>
1440
1441         dirname*: Respect rules for use of AC_LIBOBJ.
1442         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
1443         invocations.
1444         * modules/dirname (Makefile.am): Augment lib_SOURCES.
1445         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
1446
1447 2011-05-23  Bruno Haible  <bruno@clisp.org>
1448
1449         dirent-safer: Move AC_LIBOBJ invocations to module description.
1450         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
1451         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
1452
1453 2011-05-23  Bruno Haible  <bruno@clisp.org>
1454
1455         crypto/des: Move AC_LIBOBJ invocations to module description.
1456         * m4/des.m4: Remove file.
1457         * modules/crypto/des (Files): Remove it.
1458         (configure.ac): Remove gl_DES call.
1459         (Makefile.am): Augment lib_SOURCES.
1460
1461 2011-05-23  Bruno Haible  <bruno@clisp.org>
1462
1463         cycle-check: Move AC_LIBOBJ invocations to module description.
1464         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
1465         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
1466
1467 2011-05-23  Bruno Haible  <bruno@clisp.org>
1468
1469         c-strtold: Move AC_LIBOBJ invocations to module description.
1470         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
1471         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
1472
1473 2011-05-23  Bruno Haible  <bruno@clisp.org>
1474
1475         c-strtod: Move AC_LIBOBJ invocations to module description.
1476         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
1477         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
1478
1479 2011-05-23  Bruno Haible  <bruno@clisp.org>
1480
1481         crc: Move AC_LIBOBJ invocations to module description.
1482         * m4/crc.m4: Remove file.
1483         * modules/crc (Files): Remove it.
1484         (configure.ac): Remove gl_CRC call.
1485         (Makefile.am): Augment lib_SOURCES.
1486
1487 2011-05-23  Bruno Haible  <bruno@clisp.org>
1488
1489         close-stream: Move AC_LIBOBJ invocations to module description.
1490         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
1491         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
1492
1493 2011-05-23  Bruno Haible  <bruno@clisp.org>
1494
1495         closeout: Move AC_LIBOBJ invocations to module description.
1496         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
1497         * modules/closeout (Makefile.am): Augment lib_SOURCES.
1498
1499 2011-05-23  Bruno Haible  <bruno@clisp.org>
1500
1501         closein: Move AC_LIBOBJ invocations to module description.
1502         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
1503         * modules/closein (Makefile.am): Augment lib_SOURCES.
1504
1505 2011-05-23  Bruno Haible  <bruno@clisp.org>
1506
1507         cloexec: Move AC_LIBOBJ invocations to module description.
1508         * m4/cloexec.m4: Remove file.
1509         * modules/cloexec (Files): Remove it.
1510         (configure.ac): Remove gl_CLOEXEC call.
1511         (Makefile.am): Augment lib_SOURCES.
1512
1513 2011-05-23  Bruno Haible  <bruno@clisp.org>
1514
1515         check-version: Move AC_LIBOBJ invocations to module description.
1516         * m4/check-version.m4: Remove file.
1517         * modules/check-version (Files): Remove it.
1518         (configure.ac): Remove gl_CHECK_VERSION call.
1519         (Makefile.am): Augment lib_SOURCES.
1520
1521 2011-05-23  Bruno Haible  <bruno@clisp.org>
1522
1523         chdir-safer: Move AC_LIBOBJ invocations to module description.
1524         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
1525         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
1526
1527 2011-05-23  Bruno Haible  <bruno@clisp.org>
1528
1529         canonicalize: Move AC_LIBOBJ invocations to module description.
1530         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
1531         AC_LIBOBJ invocation.
1532         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
1533
1534 2011-05-23  Bruno Haible  <bruno@clisp.org>
1535
1536         canon-host: Move AC_LIBOBJ invocations to module description.
1537         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
1538         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
1539         instead of gl_CANON_HOST.
1540         (Makefile.am): Augment lib_SOURCES.
1541
1542 2011-05-23  Bruno Haible  <bruno@clisp.org>
1543
1544         backupfile: Move AC_LIBOBJ invocations to module description.
1545         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
1546         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
1547
1548 2011-05-23  Bruno Haible  <bruno@clisp.org>
1549
1550         argmatch: Move AC_LIBOBJ invocations to module description.
1551         * m4/argmatch.m4: Remove file.
1552         * modules/argmatch (Files): Remove it.
1553         (configure.ac): Remove gl_ARGMATCH call.
1554         (Makefile.am): Augment lib_SOURCES.
1555
1556 2011-05-23  Bruno Haible  <bruno@clisp.org>
1557
1558         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
1559         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
1560         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
1561
1562 2011-05-23  Bruno Haible  <bruno@clisp.org>
1563
1564         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
1565         * m4/arcfour.m4: Remove file.
1566         * modules/crypto/arcfour (Files): Remove it.
1567         (configure.ac): Remove gl_ARCFOUR call.
1568         (Makefile.am): Augment lib_SOURCES.
1569
1570 2011-05-22  Bruno Haible  <bruno@clisp.org>
1571
1572         write: Move AC_LIBOBJ invocations to module description.
1573         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
1574         * modules/write (configure.ac): ... to here.
1575
1576 2011-05-22  Bruno Haible  <bruno@clisp.org>
1577
1578         wmemset: Move AC_LIBOBJ invocations to module description.
1579         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
1580         here...
1581         * modules/wmemset (configure.ac): ... to here.
1582
1583 2011-05-22  Bruno Haible  <bruno@clisp.org>
1584
1585         wmemmove: Move AC_LIBOBJ invocations to module description.
1586         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
1587         here...
1588         * modules/wmemmove (configure.ac): ... to here.
1589
1590 2011-05-22  Bruno Haible  <bruno@clisp.org>
1591
1592         wmemcpy: Move AC_LIBOBJ invocations to module description.
1593         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
1594         here...
1595         * modules/wmemcpy (configure.ac): ... to here.
1596
1597 2011-05-22  Bruno Haible  <bruno@clisp.org>
1598
1599         wmemcmp: Move AC_LIBOBJ invocations to module description.
1600         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
1601         here...
1602         * modules/wmemcmp (configure.ac): ... to here.
1603
1604 2011-05-22  Bruno Haible  <bruno@clisp.org>
1605
1606         wmemchr: Move AC_LIBOBJ invocations to module description.
1607         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
1608         here...
1609         * modules/wmemchr (configure.ac): ... to here.
1610
1611 2011-05-22  Bruno Haible  <bruno@clisp.org>
1612
1613         wcswidth: Move AC_LIBOBJ invocations to module description.
1614         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
1615         here...
1616         * modules/wcswidth (configure.ac): ... to here.
1617
1618 2011-05-22  Bruno Haible  <bruno@clisp.org>
1619
1620         wcwidth: Respect rules for use of AC_LIBOBJ.
1621         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
1622         invocation from here...
1623         * modules/wcwidth (configure.ac): ... to here.
1624         (Depends-on): Update conditions.
1625
1626 2011-05-22  Bruno Haible  <bruno@clisp.org>
1627
1628         wctype: Move AC_LIBOBJ invocations to module description.
1629         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
1630         invocation from here...
1631         * modules/wctype (configure.ac): ... to here.
1632         (Depends-on): Update conditions.
1633
1634 2011-05-22  Bruno Haible  <bruno@clisp.org>
1635
1636         wctrans: Move AC_LIBOBJ invocations to module description.
1637         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
1638         invocation from here...
1639         * modules/wctrans (configure.ac): ... to here.
1640
1641 2011-05-22  Bruno Haible  <bruno@clisp.org>
1642
1643         wctomb: Move AC_LIBOBJ invocations to module description.
1644         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
1645         invocations from here...
1646         * modules/wctomb (configure.ac): ... to here.
1647
1648 2011-05-22  Bruno Haible  <bruno@clisp.org>
1649
1650         wctob: Move AC_LIBOBJ invocations to module description.
1651         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
1652         gl_PREREQ_WCTOB invocations from here...
1653         * modules/wctob (configure.ac): ... to here.
1654         (Depends-on): Update conditions.
1655
1656 2011-05-22  Bruno Haible  <bruno@clisp.org>
1657
1658         wcsxfrm: Move AC_LIBOBJ invocations to module description.
1659         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
1660         here...
1661         * modules/wcsxfrm (configure.ac): ... to here.
1662
1663 2011-05-22  Bruno Haible  <bruno@clisp.org>
1664
1665         wcstok: Move AC_LIBOBJ invocations to module description.
1666         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
1667         * modules/wcstok (configure.ac): ... to here.
1668
1669 2011-05-22  Bruno Haible  <bruno@clisp.org>
1670
1671         wcsstr: Move AC_LIBOBJ invocations to module description.
1672         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
1673         * modules/wcsstr (configure.ac): ... to here.
1674
1675 2011-05-22  Bruno Haible  <bruno@clisp.org>
1676
1677         wcsspn: Move AC_LIBOBJ invocations to module description.
1678         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
1679         * modules/wcsspn (configure.ac): ... to here.
1680
1681 2011-05-22  Bruno Haible  <bruno@clisp.org>
1682
1683         wcsrtombs: Move AC_LIBOBJ invocations to module description.
1684         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
1685         gl_PREREQ_WCSRTOMBS invocations from here...
1686         * modules/wcsrtombs (configure.ac): ... to here.
1687
1688 2011-05-22  Bruno Haible  <bruno@clisp.org>
1689
1690         wcsrchr: Move AC_LIBOBJ invocations to module description.
1691         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
1692         here...
1693         * modules/wcsrchr (configure.ac): ... to here.
1694
1695 2011-05-22  Bruno Haible  <bruno@clisp.org>
1696
1697         wcspbrk: Move AC_LIBOBJ invocations to module description.
1698         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
1699         here...
1700         * modules/wcspbrk (configure.ac): ... to here.
1701
1702 2011-05-22  Bruno Haible  <bruno@clisp.org>
1703
1704         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
1705         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
1706         gl_PREREQ_WCSNRTOMBS invocations from here...
1707         * modules/wcsnrtombs (configure.ac): ... to here.
1708
1709 2011-05-22  Bruno Haible  <bruno@clisp.org>
1710
1711         wcsnlen: Move AC_LIBOBJ invocations to module description.
1712         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
1713         here...
1714         * modules/wcsnlen (configure.ac): ... to here.
1715
1716 2011-05-22  Bruno Haible  <bruno@clisp.org>
1717
1718         wcsncpy: Move AC_LIBOBJ invocations to module description.
1719         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
1720         here...
1721         * modules/wcsncpy (configure.ac): ... to here.
1722
1723 2011-05-22  Bruno Haible  <bruno@clisp.org>
1724
1725         wcsncmp: Move AC_LIBOBJ invocations to module description.
1726         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
1727         here...
1728         * modules/wcsncmp (configure.ac): ... to here.
1729
1730 2011-05-22  Bruno Haible  <bruno@clisp.org>
1731
1732         wcsncat: Move AC_LIBOBJ invocations to module description.
1733         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
1734         here...
1735         * modules/wcsncat (configure.ac): ... to here.
1736
1737 2011-05-22  Bruno Haible  <bruno@clisp.org>
1738
1739         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
1740         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
1741         from here...
1742         * modules/wcsncasecmp (configure.ac): ... to here.
1743
1744 2011-05-22  Bruno Haible  <bruno@clisp.org>
1745
1746         wcslen: Move AC_LIBOBJ invocations to module description.
1747         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
1748         * modules/wcslen (configure.ac): ... to here.
1749
1750 2011-05-22  Bruno Haible  <bruno@clisp.org>
1751
1752         wcsdup: Move AC_LIBOBJ invocations to module description.
1753         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
1754         * modules/wcsdup (configure.ac): ... to here.
1755
1756 2011-05-22  Bruno Haible  <bruno@clisp.org>
1757
1758         wcscspn: Move AC_LIBOBJ invocations to module description.
1759         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
1760         here...
1761         * modules/wcscspn (configure.ac): ... to here.
1762
1763 2011-05-22  Bruno Haible  <bruno@clisp.org>
1764
1765         wcscpy: Move AC_LIBOBJ invocations to module description.
1766         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
1767         * modules/wcscpy (configure.ac): ... to here.
1768
1769 2011-05-22  Bruno Haible  <bruno@clisp.org>
1770
1771         wcscoll: Move AC_LIBOBJ invocations to module description.
1772         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
1773         here...
1774         * modules/wcscoll (configure.ac): ... to here.
1775
1776 2011-05-22  Bruno Haible  <bruno@clisp.org>
1777
1778         wcscmp: Move AC_LIBOBJ invocations to module description.
1779         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
1780         * modules/wcscmp (configure.ac): ... to here.
1781
1782 2011-05-22  Bruno Haible  <bruno@clisp.org>
1783
1784         wcschr: Move AC_LIBOBJ invocations to module description.
1785         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
1786         * modules/wcschr (configure.ac): ... to here.
1787
1788 2011-05-22  Bruno Haible  <bruno@clisp.org>
1789
1790         wcscat: Move AC_LIBOBJ invocations to module description.
1791         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
1792         * modules/wcscat (configure.ac): ... to here.
1793
1794 2011-05-22  Bruno Haible  <bruno@clisp.org>
1795
1796         wcscasecmp: Move AC_LIBOBJ invocations to module description.
1797         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
1798         here...
1799         * modules/wcscasecmp (configure.ac): ... to here.
1800
1801 2011-05-22  Bruno Haible  <bruno@clisp.org>
1802
1803         wcrtomb: Move AC_LIBOBJ invocations to module description.
1804         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
1805         invocations from here...
1806         * modules/wcrtomb (configure.ac): ... to here.
1807
1808 2011-05-22  Bruno Haible  <bruno@clisp.org>
1809
1810         wcpncpy: Move AC_LIBOBJ invocations to module description.
1811         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
1812         here...
1813         * modules/wcpncpy (configure.ac): ... to here.
1814
1815 2011-05-22  Bruno Haible  <bruno@clisp.org>
1816
1817         wcpcpy: Move AC_LIBOBJ invocations to module description.
1818         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
1819         * modules/wcpcpy (configure.ac): ... to here.
1820
1821 2011-05-22  Bruno Haible  <bruno@clisp.org>
1822
1823         waitpid: Move AC_LIBOBJ invocations to module description.
1824         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
1825         invocation from here...
1826         * modules/waitpid (configure.ac): ... to here.
1827
1828 2011-05-22  Bruno Haible  <bruno@clisp.org>
1829
1830         utimensat: Move AC_LIBOBJ invocations to module description.
1831         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
1832         here...
1833         * modules/utimensat (configure.ac): ... to here.
1834
1835 2011-05-22  Bruno Haible  <bruno@clisp.org>
1836
1837         usleep: Move AC_LIBOBJ invocations to module description.
1838         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
1839         here...
1840         * modules/usleep (configure.ac): ... to here.
1841
1842 2011-05-22  Bruno Haible  <bruno@clisp.org>
1843
1844         unlockpt: Move AC_LIBOBJ invocations to module description.
1845         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
1846         gl_PREREQ_UNLOCKPT invocations from here...
1847         * modules/unlockpt (configure.ac): ... to here.
1848
1849 2011-05-22  Bruno Haible  <bruno@clisp.org>
1850
1851         unlink: Respect rules for use of AC_LIBOBJ.
1852         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
1853         * modules/unlink (configure.ac): ... to here.
1854
1855 2011-05-22  Bruno Haible  <bruno@clisp.org>
1856
1857         uname: Move AC_LIBOBJ invocations to module description.
1858         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
1859         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
1860         here...
1861         * modules/uname (configure.ac): ... to here.
1862
1863 2011-05-22  Bruno Haible  <bruno@clisp.org>
1864
1865         ttyname_r: Move AC_LIBOBJ invocations to module description.
1866         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
1867         gl_PREREQ_TTYNAME_R invocations from here...
1868         * modules/ttyname_r (configure.ac): ... to here.
1869
1870 2011-05-22  Bruno Haible  <bruno@clisp.org>
1871
1872         tsearch: Move AC_LIBOBJ invocations to module description.
1873         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
1874         invocations from here...
1875         * modules/tsearch (configure.ac): ... to here.
1876
1877 2011-05-22  Bruno Haible  <bruno@clisp.org>
1878
1879         towctrans: Move AC_LIBOBJ invocations to module description.
1880         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
1881         AC_LIBOBJ invocation from here...
1882         * modules/towctrans (configure.ac): ... to here.
1883
1884 2011-05-22  Bruno Haible  <bruno@clisp.org>
1885
1886         tmpfile: Move AC_LIBOBJ invocations to module description.
1887         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
1888         invocations from here...
1889         * modules/tmpfile (configure.ac): ... to here.
1890
1891 2011-05-22  Bruno Haible  <bruno@clisp.org>
1892
1893         times: Move AC_LIBOBJ invocations to module description.
1894         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
1895         * modules/times (configure.ac): ... to here.
1896
1897 2011-05-22  Bruno Haible  <bruno@clisp.org>
1898
1899         time_r: Move AC_LIBOBJ invocations to module description.
1900         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
1901         invocations from here...
1902         * modules/time_r (configure.ac): ... to here.
1903
1904 2011-05-22  Bruno Haible  <bruno@clisp.org>
1905
1906         timegm: Move AC_LIBOBJ invocations to module description.
1907         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
1908         invocations from here...
1909         * modules/timegm (configure.ac): ... to here.
1910
1911 2011-05-22  Bruno Haible  <bruno@clisp.org>
1912
1913         tcgetsid: Move AC_LIBOBJ invocations to module description.
1914         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
1915         and gl_PREREQ_TCGETSID invocations from here...
1916         * modules/tcgetsid (configure.ac): ... to here.
1917         (Depends-on): Update conditions.
1918
1919 2011-05-22  Bruno Haible  <bruno@clisp.org>
1920
1921         symlinkat: Move AC_LIBOBJ invocations to module description.
1922         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
1923         here...
1924         * modules/symlinkat (configure.ac): ... to here.
1925
1926 2011-05-22  Bruno Haible  <bruno@clisp.org>
1927
1928         symlink: Move AC_LIBOBJ invocations to module description.
1929         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
1930         here...
1931         * modules/symlink (configure.ac): ... to here.
1932
1933 2011-05-22  Bruno Haible  <bruno@clisp.org>
1934
1935         strverscmp: Move AC_LIBOBJ invocations to module description.
1936         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
1937         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
1938         from here...
1939         * modules/strverscmp (configure.ac): ... to here.
1940
1941 2011-05-22  Bruno Haible  <bruno@clisp.org>
1942
1943         strtok_r: Move AC_LIBOBJ invocations to module description.
1944         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
1945         and gl_PREREQ_STRTOK_R invocations from here...
1946         * modules/strtok_r (configure.ac): ... to here.
1947         (Depends-on): Update conditions.
1948
1949 2011-05-22  Bruno Haible  <bruno@clisp.org>
1950
1951         strtoumax: Move AC_LIBOBJ invocations to module description.
1952         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
1953         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
1954         from here...
1955         * modules/strtoumax (configure.ac): ... to here.
1956
1957 2011-05-22  Bruno Haible  <bruno@clisp.org>
1958
1959         strtoimax: Move AC_LIBOBJ invocations to module description.
1960         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
1961         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
1962         from here...
1963         * modules/strtoimax (configure.ac): ... to here.
1964
1965 2011-05-22  Bruno Haible  <bruno@clisp.org>
1966
1967         strtoull: Move AC_LIBOBJ invocations to module description.
1968         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
1969         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
1970         from here...
1971         * modules/strtoull (configure.ac): ... to here.
1972
1973 2011-05-22  Bruno Haible  <bruno@clisp.org>
1974
1975         strtoll: Move AC_LIBOBJ invocations to module description.
1976         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
1977         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
1978         here...
1979         * modules/strtoll (configure.ac): ... to here.
1980
1981 2011-05-22  Bruno Haible  <bruno@clisp.org>
1982
1983         strtoul: Move AC_LIBOBJ invocations to module description.
1984         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
1985         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1986         * modules/strtoul (configure.ac): ... to here.
1987
1988 2011-05-22  Bruno Haible  <bruno@clisp.org>
1989
1990         strtol: Move AC_LIBOBJ invocations to module description.
1991         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
1992         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1993         * modules/strtol (configure.ac): ... to here.
1994
1995 2011-05-22  Bruno Haible  <bruno@clisp.org>
1996
1997         strtod: Move AC_LIBOBJ invocations to module description.
1998         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
1999         invocations from here...
2000         * modules/strtod (configure.ac): ... to here.
2001
2002 2011-05-22  Bruno Haible  <bruno@clisp.org>
2003
2004         strstr*: Move AC_LIBOBJ invocations to module description.
2005         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
2006         invocations from here...
2007         * modules/strstr-simple (configure.ac): ... to here.
2008         * modules/strstr (configure.ac): ... and here.
2009
2010 2011-05-22  Bruno Haible  <bruno@clisp.org>
2011
2012         strsignal: Move AC_LIBOBJ invocations to module description.
2013         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
2014         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
2015         * modules/strsignal (configure.ac): ... to here.
2016         (Depends-on): Update conditions.
2017
2018 2011-05-22  Bruno Haible  <bruno@clisp.org>
2019
2020         strsep: Move AC_LIBOBJ invocations to module description.
2021         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
2022         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
2023         here...
2024         * modules/strsep (configure.ac): ... to here.
2025
2026 2011-05-22  Bruno Haible  <bruno@clisp.org>
2027
2028         strptime: Move AC_LIBOBJ invocations to module description.
2029         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
2030         gl_PREREQ_STRPTIME invocations from here...
2031         * modules/strptime (configure.ac): ... to here.
2032
2033 2011-05-22  Bruno Haible  <bruno@clisp.org>
2034
2035         strpbrk: Move AC_LIBOBJ invocations to module description.
2036         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
2037         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
2038         here...
2039         * modules/strpbrk (configure.ac): ... to here.
2040
2041 2011-05-22  Bruno Haible  <bruno@clisp.org>
2042
2043         strnlen: Move AC_LIBOBJ invocations to module description.
2044         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
2045         invocations from here...
2046         * modules/strnlen (configure.ac): ... to here.
2047
2048 2011-05-22  Bruno Haible  <bruno@clisp.org>
2049
2050         strndup: Move AC_LIBOBJ invocations to module description.
2051         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
2052         invocations from here...
2053         * modules/strndup (configure.ac): ... to here.
2054         (Depends-on): Update conditions.
2055
2056 2011-05-22  Bruno Haible  <bruno@clisp.org>
2057
2058         strncat: Move AC_LIBOBJ invocations to module description.
2059         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
2060         invocations from here...
2061         * modules/strncat (configure.ac): ... to here.
2062
2063 2011-05-22  Bruno Haible  <bruno@clisp.org>
2064
2065         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
2066         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
2067         invocations from here...
2068         * modules/strdup (configure.ac): ... to here.
2069         * modules/strdup-posix (configure.ac): ... and here.
2070
2071 2011-05-22  Bruno Haible  <bruno@clisp.org>
2072
2073         strcspn: Move AC_LIBOBJ invocations to module description.
2074         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
2075         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
2076         here...
2077         * modules/strcspn (configure.ac): ... to here.
2078
2079 2011-05-22  Bruno Haible  <bruno@clisp.org>
2080
2081         strchrnul: Move AC_LIBOBJ invocations to module description.
2082         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
2083         gl_PREREQ_STRCHRNUL invocations from here...
2084         * modules/strchrnul (configure.ac): ... to here.
2085
2086 2011-05-22  Bruno Haible  <bruno@clisp.org>
2087
2088         strcasestr*: Move AC_LIBOBJ invocations to module description.
2089         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
2090         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
2091         * modules/strcasestr-simple (configure.ac): ... to here.
2092         * modules/strcasestr (configure.ac): ... and here.
2093
2094 2011-05-22  Bruno Haible  <bruno@clisp.org>
2095
2096         strcase: Move AC_LIBOBJ invocations to module description.
2097         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
2098         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
2099         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
2100         gl_PREREQ_STRNCASECMP invocations from here...
2101         * modules/strcase (configure.ac): ... to here.
2102
2103 2011-05-22  Bruno Haible  <bruno@clisp.org>
2104
2105         stpncpy: Move AC_LIBOBJ invocations to module description.
2106         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
2107         here...
2108         * modules/stpncpy (configure.ac): ... to here.
2109
2110 2011-05-22  Bruno Haible  <bruno@clisp.org>
2111
2112         stpcpy: Move AC_LIBOBJ invocations to module description.
2113         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
2114         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
2115         here...
2116         * modules/stpcpy (configure.ac): ... to here.
2117
2118 2011-05-21  Bruno Haible  <bruno@clisp.org>
2119
2120         stat: Move AC_LIBOBJ invocations to module description.
2121         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
2122         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
2123         here...
2124         * modules/stat (configure.ac): ... to here.
2125
2126 2011-05-21  Bruno Haible  <bruno@clisp.org>
2127
2128         sleep: Move AC_LIBOBJ invocations to module description.
2129         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
2130         * modules/sleep (configure.ac): ... to here.
2131
2132 2011-05-21  Bruno Haible  <bruno@clisp.org>
2133
2134         signbit: Move AC_LIBOBJ invocations to module description.
2135         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
2136         * modules/signbit (configure.ac): ... to here.
2137
2138 2011-05-21  Bruno Haible  <bruno@clisp.org>
2139
2140         sigprocmask: Move AC_LIBOBJ invocations to module description.
2141         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
2142         gl_PREREQ_SIGPROMASK invocations from here...
2143         * modules/sigprocmask (configure.ac): ... to here.
2144
2145 2011-05-21  Bruno Haible  <bruno@clisp.org>
2146
2147         sigaction: Move AC_LIBOBJ invocations to module description.
2148         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
2149         gl_PREREQ_SIGACTION invocations from here...
2150         * modules/sigaction (configure.ac): ... to here.
2151
2152 2011-05-21  Bruno Haible  <bruno@clisp.org>
2153
2154         sig2str: Move AC_LIBOBJ invocations to module description.
2155         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
2156         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
2157         here...
2158         * modules/sig2str (configure.ac): ... to here.
2159
2160 2011-05-21  Bruno Haible  <bruno@clisp.org>
2161
2162         setlocale: Move AC_LIBOBJ invocations to module description.
2163         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
2164         gl_PREREQ_SETLOCALE invocations from here...
2165         * modules/setlocale (configure.ac): ... to here.
2166
2167 2011-05-21  Bruno Haible  <bruno@clisp.org>
2168
2169         unsetenv: Move AC_LIBOBJ invocations to module description.
2170         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
2171         and gl_PREREQ_UNSETENV invocations from here...
2172         * modules/unsetenv (configure.ac): ... to here.
2173         (Depends-on): Update.
2174
2175 2011-05-21  Bruno Haible  <bruno@clisp.org>
2176
2177         setenv: Move AC_LIBOBJ invocations to module description.
2178         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
2179         here...
2180         * modules/setenv (configure.ac): ... to here.
2181
2182 2011-05-21  Bruno Haible  <bruno@clisp.org>
2183
2184         selinux-h: Move AC_LIBOBJ invocations to module description.
2185         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
2186         AC_LIBOBJ invocation from here...
2187         * modules/selinux-h (configure.ac): ... to here.
2188
2189 2011-05-21  Bruno Haible  <bruno@clisp.org>
2190
2191         select: Respect rules for use of AC_LIBOBJ.
2192         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
2193         here...
2194         * modules/select (configure.ac): ... to here.
2195
2196 2011-05-21  Bruno Haible  <bruno@clisp.org>
2197
2198         scandir: Move AC_LIBOBJ invocations to module description.
2199         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
2200         invocations from here...
2201         * modules/scandir (configure.ac): ... to here.
2202
2203 2011-05-21  Bruno Haible  <bruno@clisp.org>
2204
2205         rpmatch: Move AC_LIBOBJ invocations to module description.
2206         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
2207         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
2208         here...
2209         * modules/rpmatch (configure.ac): ... to here.
2210
2211 2011-05-21  Bruno Haible  <bruno@clisp.org>
2212
2213         rmdir: Respect rules for use of AC_LIBOBJ.
2214         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
2215         * modules/rmdir (configure.ac): ... to here.
2216
2217 2011-05-21  Bruno Haible  <bruno@clisp.org>
2218
2219         renameat: Move AC_LIBOBJ invocations to module description.
2220         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
2221         here...
2222         * modules/renameat (configure.ac): ... to here.
2223
2224 2011-05-21  Bruno Haible  <bruno@clisp.org>
2225
2226         rename: Respect rules for use of AC_LIBOBJ.
2227         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
2228         here...
2229         * modules/rename (configure.ac): ... to here.
2230
2231 2011-05-21  Bruno Haible  <bruno@clisp.org>
2232
2233         remove: Move AC_LIBOBJ invocations to module description.
2234         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
2235         here...
2236         * modules/remove (configure.ac): ... to here.
2237
2238 2011-05-21  Bruno Haible  <bruno@clisp.org>
2239
2240         relocatable-lib: Move AC_LIBOBJ invocations to module description.
2241         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
2242         macro.
2243         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
2244         * modules/relocatable-lib (configure.ac): ... to here.
2245         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2246         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
2247
2248 2011-05-21  Bruno Haible  <bruno@clisp.org>
2249
2250         relocatable-prog: Move AC_LIBOBJ invocations to module description.
2251         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
2252         here...
2253         * modules/relocatable-prog (configure.ac): ... to here.
2254
2255 2011-05-21  Bruno Haible  <bruno@clisp.org>
2256
2257         regex: Move AC_LIBOBJ invocations to module description.
2258         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
2259         invocations from here...
2260         * modules/regex (configure.ac): ... to here.
2261
2262 2011-05-21  Bruno Haible  <bruno@clisp.org>
2263
2264         realloc-*: Move AC_LIBOBJ invocations to module description.
2265         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
2266         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
2267         AC_LIBOBJ invocations from here...
2268         * modules/realloc-gnu (configure.ac): ... to here.
2269         * modules/realloc-posix (configure.ac): ... and here.
2270
2271 2011-05-21  Bruno Haible  <bruno@clisp.org>
2272
2273         readutmp: Move AC_LIBOBJ invocations to module description.
2274         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
2275         * modules/readutmp (configure.ac): ... to here.
2276
2277 2011-05-21  Bruno Haible  <bruno@clisp.org>
2278
2279         readlinkat: Move AC_LIBOBJ invocations to module description.
2280         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
2281         here...
2282         * modules/readlinkat (configure.ac): ... to here.
2283
2284 2011-05-21  Bruno Haible  <bruno@clisp.org>
2285
2286         readlink: Move AC_LIBOBJ invocations to module description.
2287         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
2288         gl_PREREQ_READLINK invocations from here...
2289         * modules/readlink (configure.ac): ... to here.
2290
2291 2011-05-21  Bruno Haible  <bruno@clisp.org>
2292
2293         readline: Move AC_LIBOBJ invocations to module description.
2294         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
2295         gl_PREREQ_READLINE invocations from here...
2296         * modules/readline (configure.ac): ... to here.
2297
2298 2011-05-21  Bruno Haible  <bruno@clisp.org>
2299
2300         read: Move AC_LIBOBJ invocations to module description.
2301         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
2302         * modules/read (configure.ac): ... to here.
2303
2304 2011-05-21  Bruno Haible  <bruno@clisp.org>
2305
2306         rawmemchr: Move AC_LIBOBJ invocations to module description.
2307         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
2308         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
2309         from here...
2310         * modules/rawmemchr (configure.ac): ... to here.
2311
2312 2011-05-21  Bruno Haible  <bruno@clisp.org>
2313
2314         random_r: Move AC_LIBOBJ invocations to module description.
2315         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
2316         gl_PREREQ_RANDOM_R invocations from here...
2317         * modules/random_r (configure.ac): ... to here.
2318
2319 2011-05-21  Bruno Haible  <bruno@clisp.org>
2320
2321         pwrite: Move AC_LIBOBJ invocations to module description.
2322         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
2323         * modules/pwrite (configure.ac): ... to here.
2324
2325 2011-05-21  Bruno Haible  <bruno@clisp.org>
2326
2327         putenv: Move AC_LIBOBJ invocations to module description.
2328         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
2329         * modules/putenv (configure.ac): ... to here.
2330
2331 2011-05-21  Bruno Haible  <bruno@clisp.org>
2332
2333         login_tty: Move AC_LIBOBJ invocations to module description.
2334         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
2335         * modules/login_tty (configure.ac): ... to here.
2336
2337 2011-05-21  Bruno Haible  <bruno@clisp.org>
2338
2339         openpty: Move AC_LIBOBJ invocations to module description.
2340         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
2341         * modules/openpty (configure.ac): ... to here.
2342
2343 2011-05-21  Bruno Haible  <bruno@clisp.org>
2344
2345         forkpty: Move AC_LIBOBJ invocations to module description.
2346         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
2347         * modules/forkpty (configure.ac): ... to here.
2348
2349 2011-05-21  Bruno Haible  <bruno@clisp.org>
2350
2351         ptsname: Move AC_LIBOBJ invocations to module description.
2352         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
2353         invocations from here...
2354         * modules/ptsname (configure.ac): ... to here.
2355
2356 2011-05-21  Bruno Haible  <bruno@clisp.org>
2357
2358         pread: Move AC_LIBOBJ invocations to module description.
2359         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
2360         * modules/pread (configure.ac): ... to here.
2361
2362 2011-05-21  Bruno Haible  <bruno@clisp.org>
2363
2364         posix_spawn*: Move AC_LIBOBJ invocations to module description.
2365         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
2366         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
2367         * modules/posix_spawn (configure.ac): ... to here.
2368         * modules/posix_spawnp (configure.ac): ... and here.
2369
2370 2011-05-21  Bruno Haible  <bruno@clisp.org>
2371
2372         popen: Move AC_LIBOBJ invocations to module description.
2373         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
2374         invocations from here...
2375         * modules/popen (configure.ac): ... to here.
2376
2377 2011-05-21  Bruno Haible  <bruno@clisp.org>
2378
2379         poll: Move AC_LIBOBJ invocations to module description.
2380         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
2381         invocations from here...
2382         * modules/poll (configure.ac): ... to here.
2383
2384 2011-05-21  Bruno Haible  <bruno@clisp.org>
2385
2386         pipe-posix: Move AC_LIBOBJ invocations to module description.
2387         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
2388         * modules/pipe-posix (configure.ac): ... to here.
2389
2390 2011-05-21  Bruno Haible  <bruno@clisp.org>
2391
2392         openat: Respect rules for use of AC_LIBOBJ.
2393         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
2394         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2395         * modules/openat (configure.ac): ... to here.
2396
2397 2011-05-21  Bruno Haible  <bruno@clisp.org>
2398
2399         obstack-printf*: Move AC_LIBOBJ invocations to module description.
2400         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
2401         invocation from here...
2402         * modules/obstack-printf (configure.ac): ... to here.
2403         * modules/obstack-printf-posix (configure.ac): ... and here.
2404
2405 2011-05-21  Bruno Haible  <bruno@clisp.org>
2406
2407         nl_langinfo: Move AC_LIBOBJ invocations to module description.
2408         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
2409         from here...
2410         * modules/nl_langinfo (configure.ac): ... to here.
2411
2412 2011-05-21  Bruno Haible  <bruno@clisp.org>
2413
2414         nanosleep: Move AC_LIBOBJ invocations to module description.
2415         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
2416         gl_PREREQ_NANOSLEEP invocations from here...
2417         * modules/nanosleep (configure.ac): ... to here.
2418
2419 2011-05-21  Bruno Haible  <bruno@clisp.org>
2420
2421         mountlist: Move AC_LIBOBJ invocations to module description.
2422         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
2423         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
2424         * modules/mountlist (configure.ac): ... to here.
2425
2426 2011-05-21  Bruno Haible  <bruno@clisp.org>
2427
2428         mktime: Respect rules for use of AC_LIBOBJ.
2429         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
2430         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
2431         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
2432         (gl_FUNC_MKTIME_INTERNAL): ... and here...
2433         * modules/mktime (configure.ac): ... to here.
2434         * modules/mktime-internal (configure.ac): ... and here.
2435         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
2436
2437 2011-05-21  Bruno Haible  <bruno@clisp.org>
2438
2439         mkstemps: Move AC_LIBOBJ invocations to module description.
2440         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
2441         here...
2442         * modules/mkstemps (configure.ac): ... to here.
2443
2444 2011-05-21  Bruno Haible  <bruno@clisp.org>
2445
2446         mkstemp: Move AC_LIBOBJ invocations to module description.
2447         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
2448         gl_PREREQ_MKSTEMP invocations from here...
2449         * modules/mkstemp (configure.ac): ... to here.
2450
2451 2011-05-21  Bruno Haible  <bruno@clisp.org>
2452
2453         mkostemps: Move AC_LIBOBJ invocations to module description.
2454         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
2455         here...
2456         * modules/mkostemps (configure.ac): ... to here.
2457
2458 2011-05-21  Bruno Haible  <bruno@clisp.org>
2459
2460         mkostemp: Move AC_LIBOBJ invocations to module description.
2461         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
2462         gl_PREREQ_MKOSTEMP invocations from here...
2463         * modules/mkostemp (configure.ac): ... to here.
2464
2465 2011-05-21  Bruno Haible  <bruno@clisp.org>
2466
2467         mknod: Move AC_LIBOBJ invocations to module description.
2468         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
2469         * modules/mknod (configure.ac): ... to here.
2470
2471 2011-05-21  Bruno Haible  <bruno@clisp.org>
2472
2473         mkfifoat: Move AC_LIBOBJ invocations to module description.
2474         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
2475         here...
2476         * modules/mkfifoat (configure.ac): ... to here.
2477
2478 2011-05-21  Bruno Haible  <bruno@clisp.org>
2479
2480         mkfifo: Respect rules for use of AC_LIBOBJ.
2481         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
2482         here...
2483         * modules/mkfifo (configure.ac): ... to here.
2484
2485 2011-05-21  Bruno Haible  <bruno@clisp.org>
2486
2487         mkdtemp: Move AC_LIBOBJ invocations to module description.
2488         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
2489         invocations from here...
2490         * modules/mkdtemp (configure.ac): ... to here.
2491
2492 2011-05-21  Bruno Haible  <bruno@clisp.org>
2493
2494         mkdir: Move AC_LIBOBJ invocations to module description.
2495         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
2496         * modules/mkdir (configure.ac): ... to here.
2497
2498 2011-05-21  Bruno Haible  <bruno@clisp.org>
2499
2500         memset: Move AC_LIBOBJ invocations to module description.
2501         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
2502         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
2503         here...
2504         * modules/memset (configure.ac): ... to here.
2505
2506 2011-05-21  Bruno Haible  <bruno@clisp.org>
2507
2508         memrchr: Move AC_LIBOBJ invocations to module description.
2509         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
2510         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
2511         here...
2512         * modules/memrchr (configure.ac): ... to here.
2513
2514 2011-05-21  Bruno Haible  <bruno@clisp.org>
2515
2516         mempcpy: Move AC_LIBOBJ invocations to module description.
2517         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
2518         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
2519         here...
2520         * modules/mempcpy (configure.ac): ... to here.
2521
2522 2011-05-21  Bruno Haible  <bruno@clisp.org>
2523
2524         memmove: Move AC_LIBOBJ invocations to module description.
2525         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
2526         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
2527         here...
2528         * modules/memmove (configure.ac): ... to here.
2529
2530 2011-05-21  Bruno Haible  <bruno@clisp.org>
2531
2532         memmem*: Move AC_LIBOBJ invocations to module description.
2533         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
2534         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
2535         here...
2536         (gl_FUNC_MEMMEM): ... and here...
2537         * modules/memmem-simple (configure.ac): ... to here.
2538         * modules/memmem (configure.ac): ... and here.
2539
2540 2011-05-21  Bruno Haible  <bruno@clisp.org>
2541
2542         memcpy: Move AC_LIBOBJ invocations to module description.
2543         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
2544         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
2545         here...
2546         * modules/memcpy (configure.ac): ... to here.
2547
2548 2011-05-21  Bruno Haible  <bruno@clisp.org>
2549
2550         memcmp: Simplify autoconf macro.
2551         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
2552         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
2553         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
2554
2555 2011-05-21  Bruno Haible  <bruno@clisp.org>
2556
2557         memcmp: Move AC_LIBOBJ invocations to module description.
2558         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
2559         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
2560         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
2561         * modules/memcmp (configure.ac): ... to here.
2562         (Depends-on): Update conditions.
2563
2564 2011-05-21  Bruno Haible  <bruno@clisp.org>
2565
2566         memchr: Respect rules for use of AC_LIBOBJ.
2567         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
2568         invocations from here...
2569         * modules/memchr (configure.ac): ... to here.
2570
2571 2011-05-21  Bruno Haible  <bruno@clisp.org>
2572
2573         mbtowc: Move AC_LIBOBJ invocations to module description.
2574         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
2575         invocations from here...
2576         * modules/mbtowc (configure.ac): ... to here.
2577
2578 2011-05-21  Bruno Haible  <bruno@clisp.org>
2579
2580         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
2581         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
2582         gl_PREREQ_MBSRTOWCS invocations from here...
2583         * modules/mbsrtowcs (configure.ac): ... to here.
2584
2585 2011-05-21  Bruno Haible  <bruno@clisp.org>
2586
2587         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
2588         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
2589         gl_PREREQ_MBSNRTOWCS invocations from here...
2590         * modules/mbsnrtowcs (configure.ac): ... to here.
2591
2592 2011-05-21  Bruno Haible  <bruno@clisp.org>
2593
2594         mbsinit: Move AC_LIBOBJ invocations to module description.
2595         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
2596         invocations from here...
2597         * modules/mbsinit (configure.ac): ... to here.
2598
2599 2011-05-21  Bruno Haible  <bruno@clisp.org>
2600
2601         mbrlen: Move AC_LIBOBJ invocations to module description.
2602         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
2603         invocations from here...
2604         * modules/mbrlen (configure.ac): ... to here.
2605
2606 2011-05-21  Bruno Haible  <bruno@clisp.org>
2607
2608         mbrtowc: Respect rules for use of AC_LIBOBJ.
2609         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
2610         invocations from here...
2611         * modules/mbrtowc (configure.ac): ... to here.
2612
2613 2011-05-21  Bruno Haible  <bruno@clisp.org>
2614
2615         malloc-*: Move AC_LIBOBJ invocations to module description.
2616         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
2617         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
2618         AC_LIBOBJ invocations from here...
2619         * modules/malloc-gnu (configure.ac): ... to here.
2620         * modules/malloc-posix (configure.ac): ... and here.
2621
2622 2011-05-21  Bruno Haible  <bruno@clisp.org>
2623
2624         lstat, openat: Respect rules for use of AC_LIBOBJ.
2625         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
2626         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
2627         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
2628         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
2629         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
2630         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
2631         here.
2632         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2633
2634 2011-05-21  Bruno Haible  <bruno@clisp.org>
2635
2636         lseek: Move AC_LIBOBJ invocations to module description.
2637         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
2638         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2639         * modules/lseek (configure.ac): ... to here.
2640
2641 2011-05-21  Bruno Haible  <bruno@clisp.org>
2642
2643         linkat: Move AC_LIBOBJ invocations to module description.
2644         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
2645         here...
2646         * modules/linkat (configure.ac): ... to here.
2647
2648 2011-05-21  Bruno Haible  <bruno@clisp.org>
2649
2650         link: Respect rules for use of AC_LIBOBJ.
2651         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
2652         * modules/link (configure.ac): ... to here.
2653
2654 2011-05-21  Bruno Haible  <bruno@clisp.org>
2655
2656         lchown: Move AC_LIBOBJ invocations to module description.
2657         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2658         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2659         * modules/lchown (configure.ac): ... to here.
2660
2661 2011-05-21  Bruno Haible  <bruno@clisp.org>
2662
2663         iswctype: Move AC_LIBOBJ invocations to module description.
2664         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
2665         here...
2666         * modules/iswctype (configure.ac): ... to here.
2667
2668 2011-05-21  Bruno Haible  <bruno@clisp.org>
2669
2670         iswblank: Move AC_LIBOBJ invocations to module description.
2671         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
2672         here...
2673         * modules/iswblank (configure.ac): ... to here.
2674
2675 2011-05-21  Bruno Haible  <bruno@clisp.org>
2676
2677         atanl: Move AC_LIBOBJ invocations to module description.
2678         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
2679         * modules/atanl (configure.ac): ... to here.
2680
2681 2011-05-21  Bruno Haible  <bruno@clisp.org>
2682
2683         acosl: Move AC_LIBOBJ invocations to module description.
2684         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
2685         * modules/acosl (configure.ac): ... to here.
2686
2687 2011-05-21  Bruno Haible  <bruno@clisp.org>
2688
2689         asinl: Respect rules for use of AC_LIBOBJ.
2690         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
2691         * modules/asinl (configure.ac): ... to here.
2692
2693 2011-05-21  Bruno Haible  <bruno@clisp.org>
2694
2695         tanl: Move AC_LIBOBJ invocations to module description.
2696         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
2697         * modules/tanl (configure.ac): ... to here.
2698
2699 2011-05-21  Bruno Haible  <bruno@clisp.org>
2700
2701         cosl: Move AC_LIBOBJ invocations to module description.
2702         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
2703         * modules/cosl (configure.ac): ... to here.
2704
2705 2011-05-21  Bruno Haible  <bruno@clisp.org>
2706
2707         sinl: Move AC_LIBOBJ invocations to module description.
2708         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
2709         * modules/sinl (configure.ac): ... to here.
2710
2711 2011-05-21  Bruno Haible  <bruno@clisp.org>
2712
2713         logl: Move AC_LIBOBJ invocations to module description.
2714         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
2715         * modules/logl (configure.ac): ... to here.
2716
2717 2011-05-21  Bruno Haible  <bruno@clisp.org>
2718
2719         expl: Move AC_LIBOBJ invocations to module description.
2720         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
2721         * modules/expl (configure.ac): ... to here.
2722
2723 2011-05-21  Bruno Haible  <bruno@clisp.org>
2724
2725         roundl: Move AC_LIBOBJ invocations to module description.
2726         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
2727         * modules/roundl (configure.ac): ... to here.
2728
2729 2011-05-21  Bruno Haible  <bruno@clisp.org>
2730
2731         round: Move AC_LIBOBJ invocations to module description.
2732         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
2733         * modules/round (configure.ac): ... to here.
2734
2735 2011-05-21  Bruno Haible  <bruno@clisp.org>
2736
2737         roundf: Move AC_LIBOBJ invocations to module description.
2738         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
2739         * modules/roundf (configure.ac): ... to here.
2740
2741 2011-05-21  Bruno Haible  <bruno@clisp.org>
2742
2743         truncl: Move AC_LIBOBJ invocations to module description.
2744         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
2745         * modules/truncl (configure.ac): ... to here.
2746
2747 2011-05-21  Bruno Haible  <bruno@clisp.org>
2748
2749         trunc: Move AC_LIBOBJ invocations to module description.
2750         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
2751         * modules/trunc (configure.ac): ... to here.
2752
2753 2011-05-21  Bruno Haible  <bruno@clisp.org>
2754
2755         truncf: Move AC_LIBOBJ invocations to module description.
2756         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
2757         * modules/truncf (configure.ac): ... to here.
2758
2759 2011-05-21  Bruno Haible  <bruno@clisp.org>
2760
2761         ceill: Move AC_LIBOBJ invocations to module description.
2762         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
2763         * modules/ceill (configure.ac): ... to here.
2764
2765 2011-05-21  Bruno Haible  <bruno@clisp.org>
2766
2767         ceil: Move AC_LIBOBJ invocations to module description.
2768         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
2769         * modules/ceil (configure.ac): ... to here.
2770
2771 2011-05-21  Bruno Haible  <bruno@clisp.org>
2772
2773         ceilf: Move AC_LIBOBJ invocations to module description.
2774         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
2775         * modules/ceilf (configure.ac): ... to here.
2776
2777 2011-05-21  Bruno Haible  <bruno@clisp.org>
2778
2779         floorl: Respect rules for use of AC_LIBOBJ.
2780         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
2781         * modules/floorl (configure.ac): ... to here.
2782
2783 2011-05-21  Bruno Haible  <bruno@clisp.org>
2784
2785         floor: Respect rules for use of AC_LIBOBJ.
2786         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
2787         * modules/floor (configure.ac): ... to here.
2788
2789 2011-05-21  Bruno Haible  <bruno@clisp.org>
2790
2791         floorf: Move AC_LIBOBJ invocations to module description.
2792         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
2793         * modules/floorf (configure.ac): ... to here.
2794
2795 2011-05-20  Bruno Haible  <bruno@clisp.org>
2796
2797         sqrtl: Respect rules for use of AC_LIBOBJ.
2798         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
2799         * modules/sqrtl (configure.ac): ... to here.
2800
2801 2011-05-20  Bruno Haible  <bruno@clisp.org>
2802
2803         ldexpl: Respect rules for use of AC_LIBOBJ.
2804         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
2805         * modules/ldexpl (configure.ac): ... to here.
2806
2807 2011-05-20  Bruno Haible  <bruno@clisp.org>
2808
2809         frexpl*: Respect rules for use of AC_LIBOBJ.
2810         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
2811         invocation from here...
2812         * modules/frexpl (configure.ac): ... to here.
2813         * modules/frexpl-nolibm (configure.ac): ... and here.
2814
2815 2011-05-20  Bruno Haible  <bruno@clisp.org>
2816
2817         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
2818         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
2819         invocation from here...
2820         * modules/frexp (configure.ac): ... to here.
2821         * modules/frexp-nolibm (configure.ac): ... and here.
2822
2823 2011-05-20  Bruno Haible  <bruno@clisp.org>
2824
2825         isnan: Respect rules for use of AC_LIBOBJ.
2826         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
2827         invocations here.
2828         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
2829         REPLACE_ISNAN.
2830         * modules/isnand (configure.ac): Likewise.
2831         * modules/isnanl (configure.ac): Likewise.
2832
2833 2011-05-20  Bruno Haible  <bruno@clisp.org>
2834
2835         isnanl*: Respect rules for use of AC_LIBOBJ.
2836         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
2837         invocation from here...
2838         * modules/isnanl (configure.ac): ... to here.
2839         * modules/isnanl-nolibm (configure.ac): ... and here.
2840
2841 2011-05-20  Bruno Haible  <bruno@clisp.org>
2842
2843         isnand*: Move AC_LIBOBJ invocations to module description.
2844         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
2845         invocation from here...
2846         * modules/isnand (configure.ac): ... to here.
2847         * modules/isnand-nolibm (configure.ac): ... and here.
2848
2849 2011-05-20  Bruno Haible  <bruno@clisp.org>
2850
2851         isnanf*: Move AC_LIBOBJ invocations to module description.
2852         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
2853         invocation from here...
2854         * modules/isnanf (configure.ac): ... to here.
2855         * modules/isnanf-nolibm (configure.ac): ... and here.
2856
2857 2011-05-20  Bruno Haible  <bruno@clisp.org>
2858
2859         isnan*: Separate the AC_LIBOBJ invocations.
2860         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
2861         AC_LIBOBJ invocation.
2862         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
2863         here.
2864         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
2865         AC_LIBOBJ invocation.
2866         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
2867         here.
2868         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
2869         AC_LIBOBJ invocation.
2870         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
2871         here.
2872         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
2873
2874 2011-05-08  Bruno Haible  <bruno@clisp.org>
2875
2876         isinf: Move AC_LIBOBJ invocations to module description.
2877         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
2878         * modules/isinf (configure.ac): ... to here.
2879
2880 2011-05-08  Bruno Haible  <bruno@clisp.org>
2881
2882         isfinite: Move AC_LIBOBJ invocations to module description.
2883         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
2884         * modules/isfinite (configure.ac): ... to here.
2885
2886 2011-05-08  Bruno Haible  <bruno@clisp.org>
2887
2888         isblank: Move AC_LIBOBJ invocations to module description.
2889         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
2890         here...
2891         * modules/isblank (configure.ac): ... to here.
2892
2893 2011-05-08  Bruno Haible  <bruno@clisp.org>
2894
2895         isapipe: Move AC_LIBOBJ invocations to module description.
2896         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
2897         gl_PREREQ_ISAPIPE invocations from here...
2898         * modules/isapipe (configure.ac): ... to here.
2899         (Depends-on): Update condition.
2900
2901 2011-05-08  Bruno Haible  <bruno@clisp.org>
2902
2903         ioctl: Move AC_LIBOBJ invocations to module description.
2904         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
2905         invocations from here...
2906         * modules/ioctl (configure.ac): ... to here.
2907         (Depends-on): Update condition.
2908
2909 2011-05-08  Bruno Haible  <bruno@clisp.org>
2910
2911         imaxdiv: Move AC_LIBOBJ invocations to module description.
2912         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
2913         invocations from here...
2914         * modules/imaxdiv (configure.ac): ... to here.
2915
2916 2011-05-08  Bruno Haible  <bruno@clisp.org>
2917
2918         imaxabs: Move AC_LIBOBJ invocations to module description.
2919         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
2920         invocations from here...
2921         * modules/imaxabs (configure.ac): ... to here.
2922
2923 2011-05-08  Bruno Haible  <bruno@clisp.org>
2924
2925         getaddrinfo: Move AC_LIBOBJ invocations to module description.
2926         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
2927         AC_LIBOBJ invocations from here...
2928         * modules/getaddrinfo (configure.ac): ... to here.
2929         (Depends-on): Add conditions.
2930
2931 2011-05-08  Bruno Haible  <bruno@clisp.org>
2932
2933         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
2934         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
2935         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
2936         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
2937         (gl_PREREQ_INET_PTON): ... from here.
2938         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
2939         gl_PREREQ_INET_PTON here.
2940         (Depends-on): Update condition.
2941
2942 2011-05-08  Bruno Haible  <bruno@clisp.org>
2943
2944         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
2945         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
2946         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
2947         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
2948         (gl_PREREQ_INET_NTOP): ... from here.
2949         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
2950         gl_PREREQ_INET_NTOP here.
2951         (Depends-on): Update condition.
2952
2953 2011-05-08  Bruno Haible  <bruno@clisp.org>
2954
2955         iconv_open: Move AC_LIBOBJ invocations to module description.
2956         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
2957         AC_LIBOBJ invocations from here...
2958         * modules/iconv_open (configure.ac): ... to here.
2959
2960 2011-05-08  Bruno Haible  <bruno@clisp.org>
2961
2962         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
2963         If module 'iconv_open' is among the main modules and module
2964         'iconv_open-utf' is among the tests dependencies, then
2965         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
2966         return the special iconv_t values. Therefore iconv() and iconv_close()
2967         must support these special iconv_t values, already in lib, not only in
2968         tests.
2969         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
2970         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
2971         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
2972         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
2973         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
2974         (Depends-on): Add the dependencies of iconv_open-utf.
2975         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
2976         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
2977         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
2978
2979 2011-05-08  Bruno Haible  <bruno@clisp.org>
2980
2981         group-member: Move AC_LIBOBJ invocations to module description.
2982         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
2983         gl_PREREQ_GROUP_MEMBER invocations from here...
2984         * modules/group-member (configure.ac): ... to here.
2985
2986 2011-05-08  Bruno Haible  <bruno@clisp.org>
2987
2988         grantpt: Move AC_LIBOBJ invocations to module description.
2989         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
2990         invocations from here...
2991         * modules/grantpt (configure.ac): ... to here.
2992
2993 2011-05-08  Bruno Haible  <bruno@clisp.org>
2994
2995         glob: Move AC_LIBOBJ invocations to module description.
2996         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
2997         from here...
2998         * modules/glob (configure.ac): ... to here.
2999
3000 2011-05-08  Bruno Haible  <bruno@clisp.org>
3001
3002         getusershell: Move AC_LIBOBJ invocations to module description.
3003         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
3004         Move AC_LIBOBJ invocation from here...
3005         * modules/getusershell (configure.ac): ... to here.
3006         (Depends-on): Update condition.
3007
3008 2011-05-08  Bruno Haible  <bruno@clisp.org>
3009
3010         gettimeofday: Move AC_LIBOBJ invocations to module description.
3011         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
3012         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
3013         gl_PREREQ_GETTIMEOFDAY invocations from here...
3014         * modules/gettimeofday (configure.ac): ... to here.
3015
3016 2011-05-08  Bruno Haible  <bruno@clisp.org>
3017
3018         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
3019         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
3020         just gl_FUNC_TZSET.
3021         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
3022         (gl_FUNC_TZSET_CLOBBER): Remove actions.
3023         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
3024         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
3025
3026 2011-05-08  Bruno Haible  <bruno@clisp.org>
3027
3028         getsubopt: Move AC_LIBOBJ invocations to module description.
3029         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
3030         gl_PREREQ_GETSUBOPT invocations from here...
3031         * modules/getsubopt (configure.ac): ... to here.
3032
3033 2011-05-08  Bruno Haible  <bruno@clisp.org>
3034
3035         getpass-gnu: Move AC_LIBOBJ invocations to module description.
3036         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
3037         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
3038         * modules/getpass-gnu (configure.ac): ... to here.
3039
3040 2011-05-08  Bruno Haible  <bruno@clisp.org>
3041
3042         getpass: Move AC_LIBOBJ invocations to module description.
3043         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
3044         gl_PREREQ_GETPASS invocations from here...
3045         * modules/getpass (configure.ac): ... to here.
3046
3047 2011-05-08  Bruno Haible  <bruno@clisp.org>
3048
3049         getpagesize: Move AC_LIBOBJ invocations to module description.
3050         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
3051         from here...
3052         * modules/getpagesize (configure.ac): ... to here.
3053
3054 2011-05-08  Bruno Haible  <bruno@clisp.org>
3055
3056         getopt: Move AC_LIBOBJ invocations to module description.
3057         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
3058         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
3059         invocations from here...
3060         * modules/getopt-gnu (configure.ac): ... to here.
3061         * modules/getopt-posix (configure.ac): ... and here.
3062         (Depends-on): Update condition.
3063
3064 2011-05-08  Bruno Haible  <bruno@clisp.org>
3065
3066         getopt, argp: Respect rules for use of AC_LIBOBJ.
3067         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
3068         (gl_REPLACE_GETOPT_ALWAYS): New macro.
3069         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
3070         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
3071
3072 2011-05-08  Bruno Haible  <bruno@clisp.org>
3073
3074         getlogin_r: Move AC_LIBOBJ invocations to module description.
3075         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
3076         gl_PREREQ_GETLOGIN_R invocations from here...
3077         * modules/getlogin_r (configure.ac): ... to here.
3078
3079 2011-05-08  Bruno Haible  <bruno@clisp.org>
3080
3081         getlogin: Move AC_LIBOBJ invocations to module description.
3082         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
3083         here...
3084         * modules/getlogin (configure.ac): ... to here.
3085
3086 2011-05-08  Bruno Haible  <bruno@clisp.org>
3087
3088         getloadavg: Move AC_LIBOBJ invocations to module description.
3089         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
3090         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
3091         * modules/getloadavg (configure.ac): ... to here.
3092
3093 2011-05-08  Bruno Haible  <bruno@clisp.org>
3094
3095         gethrxtime: Move AC_LIBOBJ invocations to module description.
3096         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
3097         LIB_GETHRXTIME from here...
3098         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
3099         invocations from here...
3100         * modules/gethrxtime (configure.ac): ... to here.
3101
3102 2011-05-08  Bruno Haible  <bruno@clisp.org>
3103
3104         gethostname: Move AC_LIBOBJ invocations to module description.
3105         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
3106         gl_PREREQ_GETHOSTNAME invocations from here...
3107         * modules/gethostname (configure.ac): ... to here.
3108
3109 2011-05-08  Bruno Haible  <bruno@clisp.org>
3110
3111         getgroups: Move AC_LIBOBJ invocations to module description.
3112         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
3113         here...
3114         * modules/getgroups (configure.ac): ... to here.
3115
3116 2011-05-08  Bruno Haible  <bruno@clisp.org>
3117
3118         getdtablesize: Move AC_LIBOBJ invocations to module description.
3119         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
3120         invocation from here...
3121         * modules/getdtablesize (configure.ac): ... to here.
3122
3123 2011-05-08  Bruno Haible  <bruno@clisp.org>
3124
3125         getdomainname: Move AC_LIBOBJ invocations to module description.
3126         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
3127         gl_PREREQ_GETDOMAINNAME invocations from here...
3128         * modules/getdomainname (configure.ac): ... to here.
3129
3130 2011-05-08  Bruno Haible  <bruno@clisp.org>
3131
3132         getline: Move AC_LIBOBJ invocations to module description.
3133         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
3134         invocations from here...
3135         * modules/getline (configure.ac): ... to here.
3136
3137 2011-05-08  Bruno Haible  <bruno@clisp.org>
3138
3139         getline: Simplify.
3140         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
3141         It's already handled through the module dependency.
3142
3143 2011-05-08  Bruno Haible  <bruno@clisp.org>
3144
3145         getdelim: Move AC_LIBOBJ invocations to module description.
3146         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
3147         and gl_PREREQ_GETDELIM invocations from here...
3148         * modules/getdelim (configure.ac): ... to here.
3149         (Depends-on): Fix condition.
3150
3151 2011-05-08  Bruno Haible  <bruno@clisp.org>
3152
3153         getcwd: Move AC_LIBOBJ invocations to module description.
3154         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
3155         invocations from here...
3156         * modules/getcwd (configure.ac): ... to here.
3157
3158 2011-05-08  Bruno Haible  <bruno@clisp.org>
3159
3160         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
3161         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
3162         here...
3163         * modules/getcwd-lgpl (configure.ac): ... to here.
3164
3165 2011-05-07  Bruno Haible  <bruno@clisp.org>
3166
3167         crypto/gc: Move AC_LIBOBJ invocations to module description.
3168         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
3169         * modules/crypto/gc (configure.ac): ... to here.
3170
3171 2011-05-07  Bruno Haible  <bruno@clisp.org>
3172
3173         fwriting: Move AC_LIBOBJ invocations to module description.
3174         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
3175         here...
3176         * modules/fwriting (configure.ac): ... to here.
3177
3178 2011-05-07  Bruno Haible  <bruno@clisp.org>
3179
3180         fwritable: Move AC_LIBOBJ invocations to module description.
3181         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
3182         here...
3183         * modules/fwritable (configure.ac): ... to here.
3184
3185 2011-05-07  Bruno Haible  <bruno@clisp.org>
3186
3187         futimens: Move AC_LIBOBJ invocations to module description.
3188         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
3189         here...
3190         * modules/futimens (configure.ac): ... to here.
3191
3192 2011-05-07  Bruno Haible  <bruno@clisp.org>
3193
3194         ftruncate: Move AC_LIBOBJ invocations to module description.
3195         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
3196         gl_PREREQ_FTRUNCATE invocations from here...
3197         * modules/ftruncate (configure.ac): ... to here.
3198
3199 2011-05-07  Bruno Haible  <bruno@clisp.org>
3200
3201         fsync: Move AC_LIBOBJ invocations to module description.
3202         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
3203         invocations from here...
3204         * modules/fsync (configure.ac): ... to here.
3205
3206 2011-05-07  Bruno Haible  <bruno@clisp.org>
3207
3208         fsusage: Move AC_LIBOBJ invocations to module description.
3209         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
3210         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
3211         * modules/fsusage (configure.ac): ... to here.
3212
3213 2011-05-07  Bruno Haible  <bruno@clisp.org>
3214
3215         freopen: Move AC_LIBOBJ invocations to module description.
3216         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
3217         invocations from here...
3218         * modules/freopen (configure.ac): ... to here.
3219
3220 2011-05-07  Bruno Haible  <bruno@clisp.org>
3221
3222         free: Move AC_LIBOBJ invocations to module description.
3223         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
3224         invocations from here...
3225         * modules/free (configure.ac): ... to here.
3226
3227 2011-05-07  Bruno Haible  <bruno@clisp.org>
3228
3229         freadable: Move AC_LIBOBJ invocations to module description.
3230         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
3231         here...
3232         * modules/freadable (configure.ac): ... to here.
3233
3234 2011-05-07  Bruno Haible  <bruno@clisp.org>
3235
3236         fpurge: Move AC_LIBOBJ invocations to module description.
3237         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
3238         invocations from here...
3239         * modules/fpurge (configure.ac): ... to here.
3240
3241 2011-05-07  Bruno Haible  <bruno@clisp.org>
3242
3243         fpending: Move AC_LIBOBJ invocations to module description.
3244         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
3245         gl_FUNC_FPENDING.
3246         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
3247         invocations from here...
3248         * modules/fpending (configure.ac): ... to here.
3249
3250 2011-05-07  Bruno Haible  <bruno@clisp.org>
3251
3252         fopen: Move AC_LIBOBJ invocations to module description.
3253         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
3254         invocations from here...
3255         * modules/fopen (configure.ac): ... to here.
3256
3257 2011-05-07  Bruno Haible  <bruno@clisp.org>
3258
3259         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
3260         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
3261         gl_FUNC_FNMATCH_POSIX.
3262         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
3263         invocations from here...
3264         * modules/fnmatch (configure.ac): ... to here.
3265         * modules/fnmatch-gnu (configure.ac): ... and here.
3266
3267 2011-05-07  Bruno Haible  <bruno@clisp.org>
3268
3269         flock: Move AC_LIBOBJ invocations to module description.
3270         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
3271         invocations from here...
3272         * modules/flock (configure.ac): ... to here.
3273
3274 2011-05-07  Bruno Haible  <bruno@clisp.org>
3275
3276         fileblocks: Move AC_LIBOBJ invocations to module description.
3277         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
3278         gl_PREREQ_FILEBLOCKS invocations from here...
3279         * modules/fileblocks (configure.ac): ... to here.
3280
3281 2011-05-06  Bruno Haible  <bruno@clisp.org>
3282
3283         fflush: Move AC_LIBOBJ invocations to module description.
3284         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
3285         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
3286         invocations from here...
3287         * modules/fflush (configure.ac): ... to here.
3288
3289 2011-05-06  Bruno Haible  <bruno@clisp.org>
3290
3291         fdopendir: Move AC_LIBOBJ invocations to module description.
3292         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
3293         here...
3294         * modules/fdopendir (configure.ac): ... to here.
3295         (Depends-on): Improve conditions.
3296
3297 2011-05-06  Bruno Haible  <bruno@clisp.org>
3298
3299         _Exit: Move AC_LIBOBJ invocations to module description.
3300         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
3301         invocations from here...
3302         * modules/_Exit (configure.ac): ... to here.
3303
3304 2011-05-21  Bruno Haible  <bruno@clisp.org>
3305
3306         euidaccess: Respect rules for use of AC_LIBOBJ.
3307         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
3308         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
3309         from here...
3310         * modules/euidaccess (configure.ac): ... to here.
3311
3312 2011-05-06  Bruno Haible  <bruno@clisp.org>
3313
3314         error: Move AC_LIBOBJ invocations to module description.
3315         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
3316         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
3317         invocations from here...
3318         * modules/error (configure.ac): ... to here.
3319
3320 2011-05-06  Bruno Haible  <bruno@clisp.org>
3321
3322         duplocale: Move AC_LIBOBJ invocations to module description.
3323         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
3324         gl_PREREQ_DUPLOCALE invocations from here...
3325         * modules/duplocale (configure.ac): ... to here.
3326
3327 2011-05-05  Bruno Haible  <bruno@clisp.org>
3328
3329         dirfd: Move AC_LIBOBJ invocations to module description.
3330         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
3331         gl_FUNC_DIRFD.
3332         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
3333         here...
3334         * modules/dirfd (configure.ac): ... to here.
3335         (Depends-on): Fix condition.
3336
3337 2011-05-05  Bruno Haible  <bruno@clisp.org>
3338
3339         chown: Respect rules for use of AC_LIBOBJ.
3340         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
3341         * modules/chown (configure.ac): ... to here.
3342
3343 2011-05-05  Bruno Haible  <bruno@clisp.org>
3344
3345         chdir-long: Move AC_LIBOBJ invocations to module description.
3346         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
3347         gl_PREREQ_CHDIR_LONG invocations from here...
3348         * modules/chdir-long (configure.ac): ... to here.
3349
3350 2011-05-05  Bruno Haible  <bruno@clisp.org>
3351
3352         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
3353         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
3354         from here...
3355         * modules/canonicalize-lgpl (configure.ac): ... to here.
3356
3357 2011-05-05  Bruno Haible  <bruno@clisp.org>
3358
3359         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
3360         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
3361         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
3362         REPLACE_CALLOC.
3363         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
3364         * modules/calloc-gnu (configure.ac): Likewise.
3365
3366 2011-05-05  Bruno Haible  <bruno@clisp.org>
3367
3368         btowc: Move AC_LIBOBJ invocations to module description.
3369         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
3370         invocations from here...
3371         * modules/btowc (configure.ac): ... to here.
3372
3373 2011-05-21  Bruno Haible  <bruno@clisp.org>
3374
3375         atexit: Move AC_LIBOBJ invocations to module description.
3376         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
3377         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
3378         here...
3379         * modules/atexit (configure.ac): ... to here.
3380
3381 2011-05-05  Bruno Haible  <bruno@clisp.org>
3382
3383         atoll: Move AC_LIBOBJ invocations to module description.
3384         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
3385         invocations from here...
3386         * modules/atoll (configure.ac): ... to here.
3387
3388 2011-05-05  Bruno Haible  <bruno@clisp.org>
3389
3390         argz: Move AC_LIBOBJ invocations to module description.
3391         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
3392         * modules/argz (configure.ac): ... to here.
3393
3394 2011-05-05  Bruno Haible  <bruno@clisp.org>
3395
3396         alphasort: Move AC_LIBOBJ invocations to module description.
3397         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
3398         gl_PREREQ_ALPHASORT invocations from here...
3399         * modules/alphasort (configure.ac): ... to here.
3400
3401 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
3402
3403         verify: new macro verify_expr; verify_true deprecated
3404         * NEWS: Mention this.
3405         * doc/verify.texi (Compile-time Assertions): Document this.
3406         * lib/verify.h (verify_true): Deprecate.
3407         (verify_expr): New macro.
3408         * tests/test-verify.c (function): Test verify_expr.
3409
3410 2011-06-14  Jim Meyering  <meyering@redhat.com>
3411
3412         init.sh: give more portable redirection-related advice in a comment
3413         * tests/init.sh (stderr_fileno_): Update the advice in comments.
3414         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
3415         for lots of discussion.  Stefano Lattarini suggested the solution
3416         of putting "9>&2" after the command.  Reported by Bruno Haible.
3417
3418 2011-06-13  Bruno Haible  <bruno@clisp.org>
3419
3420         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
3421         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
3422         'none'.
3423
3424 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
3425
3426         ftoastr: use strtof only if HAVE_STRTOF
3427         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
3428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
3429         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
3430         * modules/ftoastr (configure.ac): Check for strtof.
3431
3432 2011-06-13  Bruno Haible  <bruno@clisp.org>
3433
3434         gnulib-tool: Addendum to 2011-06-08 commit.
3435         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
3436         and --witness-c-macro have been given, augment AM_CPPFLAGS.
3437
3438 2011-06-13  Bruno Haible  <bruno@clisp.org>
3439
3440         fseeko: Provide a non-inline replacement of fseek().
3441         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
3442         * modules/fseeko (Depends-on): Add fseek.
3443         * modules/fseek (License): Change to LGPLv2+.
3444
3445 2011-06-13  Bruno Haible  <bruno@clisp.org>
3446
3447         ftello: Provide a non-inline replacement of ftell().
3448         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
3449         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
3450         not have ftello() (such as on mingw).
3451         * modules/ftello (Depends-on): Add ftell.
3452         * modules/ftell (License): Change to LGPLv2+.
3453
3454 2011-05-07  Bruno Haible  <bruno@clisp.org>
3455
3456         ftell: Move AC_LIBOBJ invocations to module description.
3457         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
3458         * modules/ftell (configure.ac): ... to here.
3459
3460 2011-05-07  Bruno Haible  <bruno@clisp.org>
3461
3462         ftello: Respect rules for use of AC_LIBOBJ.
3463         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
3464         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
3465         here...
3466         * modules/ftello (configure.ac): ... to here.
3467
3468 2011-05-07  Bruno Haible  <bruno@clisp.org>
3469
3470         fseeko: Simplify.
3471         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
3472         (gl_FUNC_FSEEKO): Inline it here.
3473
3474 2011-05-07  Bruno Haible  <bruno@clisp.org>
3475
3476         fseek: Move AC_LIBOBJ invocations to module description.
3477         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
3478         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
3479         * modules/fseek (configure.ac): ... to here.
3480
3481 2011-05-07  Bruno Haible  <bruno@clisp.org>
3482
3483         fseek: Respect rules for use of AC_LIBOBJ.
3484         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
3485         here...
3486         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
3487
3488 2011-05-07  Bruno Haible  <bruno@clisp.org>
3489
3490         fseeko: Respect rules for use of AC_LIBOBJ.
3491         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
3492         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
3493         here...
3494         * modules/fseeko (configure.ac): ... to here.
3495
3496 2011-06-13  Bruno Haible  <bruno@clisp.org>
3497
3498         gnulib-tool: Allow comments in the 'Depends-on' section.
3499         * doc/gnulib.texi (Module description): Mention comment syntax in the
3500         Depends-on section.
3501         * gnulib-tool (func_get_dependencies): Filter out comment lines.
3502
3503 2011-06-13  Bruno Haible  <bruno@clisp.org>
3504
3505         file-set.h: guard __attibute__ use, now that it's not always defined
3506         * lib/file-set.h (record_file): Use __attribute__ only with compiler
3507         versions that support it.  This fixes a coreutils build failure with
3508         the vendor cc on HP-UX 11.31.
3509
3510 2011-06-12  Bruno Haible  <bruno@clisp.org>
3511
3512         acl: Add support for HP-UX >= 11.11 JFS ACLs.
3513         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
3514         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
3515         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
3516         (acl, aclsort): New declarations.
3517         (aclv_nontrivial): New declaration.
3518         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
3519         (file_has_acl): Read also the second kind of HP-UX ACLs.
3520         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
3521         kind of HP-UX ACLs if the first kind fails.
3522         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
3523         second kind of HP-UX ACLs.
3524         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
3525         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
3526         agree.
3527         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3528         hpuxjfs.
3529         Handle hpuxjfs.
3530         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
3531         hpuxjfs.
3532         Handle hpuxjfs.
3533         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3534         (func_test_same_acls): Use both lsacl and getacl.
3535         Handle hpuxjfs.
3536         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
3537         (func_test_same_acls): Use both lsacl and getacl.
3538         Handle hpuxjfs.
3539
3540 2011-06-12  Bruno Haible  <bruno@clisp.org>
3541
3542         acl: Complete the 2010-08-10 fix.
3543         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
3544         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
3545         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
3546         explicitly.
3547         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
3548         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
3549
3550 2011-06-12  Bruno Haible  <bruno@clisp.org>
3551
3552         spawn-pipe tests: Comments.
3553         * tests/test-spawn-pipe-child.c (main): Update comment.
3554         Reported by James Youngman <jay@gnu.org>.
3555
3556 2011-06-11  James Youngman  <jay@gnu.org>
3557
3558         New module 'stat-size'.
3559         * modules/stat-size: New module.  Provides macros for accessing
3560         file size information in instances of struct stat.  Depends on the
3561         fileblocks module because it calls st_blocks.
3562         * lib/stat-size.h: New file, adapted from coreutils' system.h.
3563         * doc/gnulib.texi: Include stat-size.texi.
3564         * doc/stat-size.texi: Documentation for this module.
3565         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
3566         * m4/fileblocks.m4: Mention that stat-size depends on the call to
3567         AC_STRUCT_ST_BLOCKS.
3568
3569 2011-06-09  Bruno Haible  <bruno@clisp.org>
3570
3571         thread: Support pthreads-win32.
3572         * lib/glthread/thread.h (gl_thread_self): Define differently on
3573         pthreads-win32.
3574         (gl_null_thread): New declaration.
3575         (gl_thread_self_pointer): New macro.
3576         * lib/glthread/thread.c (gl_null_thread): New constant.
3577         * tests/test-lock.c: Use gl_thread_self_pointer instead of
3578         gl_thread_self.
3579         * tests/test-tls.c: Likewise.
3580         Suggested by Paul Eggert. Reported by Eric Blake.
3581
3582 2011-06-09  Bruno Haible  <bruno@clisp.org>
3583
3584         thread: Fix confusion between NULL and 0.
3585         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
3586         Reported by Paul Eggert.
3587
3588 2011-06-09  Bruno Haible  <bruno@clisp.org>
3589
3590         spawn-pipe tests: Avoid test failure on HP-UX 11.
3591         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
3592         is closed.
3593
3594 2011-06-09  Bruno Haible  <bruno@clisp.org>
3595
3596         acl tests: Fix compilation error on HP-UX 11.
3597         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
3598
3599 2011-06-09  Bruno Haible  <bruno@clisp.org>
3600
3601         rmdir: Avoid test failure on HP-UX 10.20.
3602         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
3603         EEXIST.
3604
3605 2011-06-08  Eric Blake  <eblake@redhat.com>
3606
3607         perror: fix test on mingw
3608         * modules/perror-tests (Depends-on): Add dup2.
3609
3610         strerror_r-posix: fix on MacOS
3611         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
3612         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
3613         logic bug.
3614         * lib/strerror_r.c (strerror_r): Fix the bug.
3615         * lib/strerror.c (strerror): Likewise.
3616         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3617         problem.
3618         * doc/posix-functions/strerror.texi (strerror): Likewise.
3619         * doc/posix-functions/perror.texi (perror): Likewise.
3620         * tests/test-strerror.c (main): Enhance test.
3621         * tests/test-strerror_r.c (main): Likewise.
3622
3623 2011-06-08  Bruno Haible  <bruno@clisp.org>
3624
3625         gnulib-tool: Better isolation between different gnulib-tool invocations.
3626         * gnulib-tool: New option --witness-c-macro.
3627         (witness_c_macro): New variable.
3628         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
3629         AM_CPPFLAGS define it as a C macro.
3630         (func_emit_tests_Makefile_am): Likewise.
3631         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
3632         read it from there.
3633         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
3634         m4_define, not AC_DEFUN.
3635         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
3636         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
3637         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
3638         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
3639         s|...|...|, to substitute the values of the GNULIB_* module indicator
3640         variables.
3641         * modules/dirent (Makefile.am): Likewise.
3642         * modules/fcntl-h (Makefile.am): Likewise.
3643         * modules/iconv-h (Makefile.am): Likewise.
3644         * modules/langinfo (Makefile.am): Likewise.
3645         * modules/locale (Makefile.am): Likewise.
3646         * modules/math (Makefile.am): Likewise.
3647         * modules/netdb (Makefile.am): Likewise.
3648         * modules/poll-h (Makefile.am): Likewise.
3649         * modules/pty (Makefile.am): Likewise.
3650         * modules/search (Makefile.am): Likewise.
3651         * modules/signal (Makefile.am): Likewise.
3652         * modules/spawn (Makefile.am): Likewise.
3653         * modules/stdio (Makefile.am): Likewise.
3654         * modules/stdlib (Makefile.am): Likewise.
3655         * modules/string (Makefile.am): Likewise.
3656         * modules/sys_ioctl (Makefile.am): Likewise.
3657         * modules/sys_select (Makefile.am): Likewise.
3658         * modules/sys_socket (Makefile.am): Likewise.
3659         * modules/sys_stat (Makefile.am): Likewise.
3660         * modules/sys_times (Makefile.am): Likewise.
3661         * modules/sys_utsname (Makefile.am): Likewise.
3662         * modules/sys_wait (Makefile.am): Likewise.
3663         * modules/termios (Makefile.am): Likewise.
3664         * modules/time (Makefile.am): Likewise.
3665         * modules/unistd (Makefile.am): Likewise.
3666         * modules/wchar (Makefile.am): Likewise.
3667
3668 2011-06-08  Eric Blake  <eblake@redhat.com>
3669
3670         strerror: simplify replacement
3671         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
3672         * modules/strerror (configure.ac): No prereqs needed here...
3673         * modules/strerror-override (configure.ac): ...but this needs it.
3674         (Files): Add file for needed prereq macro.
3675
3676 2011-06-08  Bruno Haible  <bruno@clisp.org>
3677
3678         strerror_r-posix: Tweaks.
3679         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
3680         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
3681         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
3682         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
3683         (gl_FUNC_STRERROR_R): ... to here.
3684         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
3685
3686 2011-06-07  Eric Blake  <eblake@redhat.com>
3687
3688         perror: document fixed bugs
3689         * doc/posix-functions/perror.texi (perror): Document recent
3690         patches.
3691
3692 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3693
3694         stat-time: get_stat_birthtime failure is better-defined
3695         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
3696         return a timestamp whose tv_sec and tv_nsec values are both -1.
3697         Previously, the spec said only that the tv_nsec value was negative.
3698         This upward-compatible change simplifies GNU tar a bit.
3699
3700 2011-06-07  Eric Blake  <eblake@redhat.com>
3701
3702         strerror_r-posix: work around cygwin 1.7.9
3703         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
3704         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
3705         bug without replacing strerror_r.
3706         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
3707         strerror_r is buggy, but without requiring strerror_r compilation.
3708         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
3709
3710         test-perror: relax test to ignore cygwin bug
3711         * tests/test-perror2.c (main): Relax test on requiring detection
3712         of stream errors, and use unbuffered stream.
3713         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
3714         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
3715         * doc/posix-functions/fputc.texi (fputc): Likewise.
3716         * doc/posix-functions/fputs.texi (fputs): Likewise.
3717         * doc/posix-functions/fputws.texi (fputws): Likewise.
3718         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
3719         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
3720         * doc/posix-functions/getopt.texi (getopt): Likewise.
3721         * doc/posix-functions/perror.texi (perror): Likewise.
3722         * doc/posix-functions/printf.texi (printf): Likewise.
3723         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
3724         * doc/posix-functions/psignal.texi (psignal): Likewise.
3725         * doc/posix-functions/putc.texi (putc): Likewise.
3726         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
3727         Likewise.
3728         * doc/posix-functions/putchar.texi (putchar): Likewise.
3729         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
3730         Likewise.
3731         * doc/posix-functions/puts.texi (puts): Likewise.
3732         * doc/posix-functions/putwc.texi (putwc): Likewise.
3733         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
3734         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
3735         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3736         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
3737         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3738         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
3739         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
3740         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
3741
3742 2011-05-22  Bruno Haible  <bruno@clisp.org>
3743
3744         strerror: Move AC_LIBOBJ invocations to module description.
3745         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
3746         gl_PREREQ_STRERROR invocations from here...
3747         * modules/strerror (configure.ac): ... to here.
3748
3749 2011-05-21  Bruno Haible  <bruno@clisp.org>
3750
3751         perror: Use common idiom.
3752         * modules/perror (configure.ac): Reorder statements.
3753
3754 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3755
3756         tests: fix usage message in 'mktempd_'
3757         * tests/init.sh (mktempd_): In the usage message, use literal
3758         'mktempd_', not '$ME' (which is even undefined), as the name of
3759         the subroutine.
3760
3761 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3762
3763         tests init: new function 'fatal_', for hard errors
3764         Before this patch, the only way offered by tests/init.sh to
3765         properly signal a hard error was the `framework_failure_'
3766         function.  But the error message issued by that function,
3767         as its name would suggest, refers to a set-up failure in the
3768         testsuite, while hard errors can obviously also be due to
3769         other reasons.  The best way to fix this inconsistency is to
3770         introduce a new function with a more general error message.
3771         * tests/init.sh (fatal_): New function.
3772
3773 2011-06-06  Eric Blake  <eblake@redhat.com>
3774
3775         canonicalize-lgpl: use common idiom
3776         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
3777         over newer POSIX -Rf.
3778         Reported by Bruno Haible.
3779
3780         canonicalize-lgpl: work around AIX realpath bug
3781         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
3782         * doc/posix-functions/realpath.texi (realpath): Document it.
3783         Reported by Bruno Haible.
3784
3785         strerror: work around FreeBSD bug
3786         * lib/strerror.c (strerror): Special case 0.
3787         Reported by Bruno Haible.
3788
3789         strerror-override: avoid bloating errno module
3790         * modules/errno (Files, configure.ac): Move replacement strings...
3791         * modules/strerror-override: ...to new module.
3792         * modules/strerror (Depends-on): Add strerror-override.
3793         * modules/strerror_r-posix (Depends-on): Likewise.
3794         * MODULES.html.sh: Document new module.
3795         Reported by Bruno Haible.
3796
3797 2011-06-06  Bruno Haible  <bruno@clisp.org>
3798
3799         spawn-pipe tests: Rename program.
3800         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
3801         * tests/test-spawn-pipe-child.c: Update comment.
3802         * tests/test-spawn-pipe.sh: Update.
3803         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
3804
3805         spawn-pipe tests: Link the child program only against libc.
3806         * tests/test-spawn-pipe-child.c: New file, extracted from
3807         tests/test-spawn-pipe.c.
3808         (main): Expect only one argument.
3809         (is_open): New function, copied from tests/test-pipe.c.
3810         * tests/test-spawn-pipe.c: Don't include <errno.h>.
3811         (child_main): Remove function.
3812         (test_pipe): Pass only one argument to the child program.
3813         (main): Remove child process code. Expect the child program's name as
3814         first argument.
3815         * tests/test-spawn-pipe.sh: Pass the child program's name as first
3816         argument.
3817         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
3818         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
3819         test-spawn-pipe-child against no libraries.
3820
3821 2011-06-06  Bruno Haible  <bruno@clisp.org>
3822
3823         careadlinkat: Avoid mismatch between ssize_t and int.
3824         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
3825         * lib/careadlinkat.c (careadlinkatcwd): Define always.
3826
3827 2011-06-06  Jim Meyering  <meyering@redhat.com>
3828
3829         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
3830         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
3831         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
3832
3833 2011-06-05  Bruno Haible  <bruno@clisp.org>
3834
3835         ansi-c++-opt: Interoperability with libtool.
3836         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
3837         set the variable to "no", not to ":".
3838         * NEWS: Mention the change.
3839
3840 2011-06-05  Bruno Haible  <bruno@clisp.org>
3841
3842         acl: Fix test failure on AIX 7.
3843         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
3844         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
3845
3846 2011-06-05  Bruno Haible  <bruno@clisp.org>
3847
3848         pipe-filter-ii: Fix test failure on AIX and IRIX.
3849         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
3850         with EAGAIN, retry with a smaller buffer size.
3851
3852 2011-06-05  Bruno Haible  <bruno@clisp.org>
3853
3854         localename: Fix link dependencies.
3855         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
3856         * modules/localename-tests (Makefile.am): Link test-localename with
3857         $(LIBTHREAD).
3858
3859 2011-06-05  Bruno Haible  <bruno@clisp.org>
3860
3861         error: Avoid gcc warning.
3862         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
3863
3864 2011-06-05  Bruno Haible  <bruno@clisp.org>
3865
3866         unsetenv: Avoid gcc warning.
3867         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
3868
3869 2011-06-05  Bruno Haible  <bruno@clisp.org>
3870
3871         setenv: Avoid gcc warning.
3872         * lib/setenv.c (setenv): Provide declaration if system lacks it.
3873
3874 2011-06-05  Bruno Haible  <bruno@clisp.org>
3875
3876         sys_select: Ensure memset is declared also on AIX 7.
3877         * lib/sys_select.in.h: Include <string.h> also on AIX.
3878         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
3879         self-contained also on AIX 7.1.
3880
3881 2011-06-04  Jim Meyering  <meyering@redhat.com>
3882
3883         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
3884         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
3885         function name, "error".
3886         (_gl_translatable_diag_func_re): New configurable variable.
3887
3888 2011-06-04  Bruno Haible  <bruno@clisp.org>
3889
3890         getopt: Avoid gcc warning.
3891         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
3892
3893 2011-06-04  Bruno Haible  <bruno@clisp.org>
3894
3895         strerror_r: Fix comments.
3896         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
3897         commit.
3898
3899 2011-06-04  Bruno Haible  <bruno@clisp.org>
3900
3901         perror: Fix compilation error.
3902         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
3903         Undefine fprintf, not sprintf.
3904         * modules/perror (Depends-on): Remove intprops, verify.
3905
3906 2011-06-04  Bruno Haible  <bruno@clisp.org>
3907
3908         setlocale: Enable replacement on Cygwin 1.5.
3909         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
3910         Cygwin 1.5.x.
3911         * doc/posix-functions/setlocale.texi: Mention that the problem with the
3912         LC_CTYPE category also exists on Cygwin 1.5.x.
3913
3914 2011-06-04  Bruno Haible  <bruno@clisp.org>
3915
3916         strerror-override: Don't disable symbol renamings.
3917         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
3918         * lib/strerror-override.c: Include config.h.
3919         (strerror_override): Don't undefine.
3920
3921 2011-06-03  Bruno Haible  <bruno@clisp.org>
3922
3923         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
3924         * lib/localename.h: Update copyright header.
3925         * lib/localename.c: Likewise.
3926         * lib/relocatable.h: Likewise.
3927         * lib/relocatable.c: Likewise.
3928
3929 2011-06-02  Bruno Haible  <bruno@clisp.org>
3930
3931         doc: Fix a module name.
3932         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
3933
3934 2011-06-02  Bruno Haible  <bruno@clisp.org>
3935
3936         pipe2: Remove dependency on 'nonblocking' module.
3937         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
3938         O_NONBLOCK is defined by gnulib.
3939         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
3940         is zero.
3941         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
3942         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
3943         defined by gnulib.
3944         (get_nonblocking_flag): New function.
3945         (main): Test O_NONBLOCK flag only if it is nonzero.
3946         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
3947
3948 2011-06-03  Jim Meyering  <meyering@redhat.com>
3949
3950         maint: three new prohibit-header-without-use rules
3951         Prohibit use of cloexec.h, posixver.h, same.h without use.
3952         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
3953         (sc_prohibit_posixver_without_use): Likewise.
3954         (sc_prohibit_same_without_use): Likewise.
3955
3956 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
3957
3958         allocator: 'die' routine is now given requested size
3959         * lib/allocator.h (struct allocator.die): New size arg.
3960         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
3961         If the actual problem is an ssize_t limitation, not a size_t or
3962         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
3963
3964 2011-06-01  Eric Blake  <eblake@redhat.com>
3965
3966         strerror: drop strerror_r dependency
3967         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
3968         * lib/strerror-override.c (strerror_override): ...to new file.
3969         * lib/strerror-override.h: Add prototype.
3970         * lib/strerror-impl.h: Delete.
3971         * lib/strerror.c (strerror): New implementation.
3972         * modules/errno (Files): Add new files.
3973         (configure.ac): Compile new file as appropriate.
3974         * modules/strerror (Files): Drop unused file.
3975         (Depends-on): Drop strerror_r-posix.
3976         * MODULES.html.sh: Document strerror_r-posix.
3977         Requested by Sam Steingold.
3978
3979         perror: call strerror_r directly
3980         * modules/perror (Files): Drop strerror-impl.h.
3981         * lib/perror.c (perror): Use our own stack buffer, rather than
3982         calling a wrapper that uses static storage.
3983         * doc/posix-functions/perror.texi (perror): Document a limitation
3984         of our replacement.
3985
3986         strerror_r: fix includes for FreeBSD
3987         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
3988         since we use abort on some platforms.
3989         Reported by Matthias Bolte.
3990
3991 2011-05-31  Bruno Haible  <bruno@clisp.org>
3992
3993         Fix link errors in tests: openat-die uses gettext-h.
3994         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
3995         against $(LIBINTL).
3996         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
3997         against $(LIBINTL).
3998         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
3999         $(LIBINTL).
4000         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
4001         against $(LIBINTL).
4002         * modules/linkat-tests (Makefile.am): Link test-linkat against
4003         $(LIBINTL).
4004         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
4005         $(LIBINTL).
4006         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
4007         against $(LIBINTL).
4008         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
4009         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
4010         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
4011         $(LIBINTL).
4012         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
4013         $(LIBINTL).
4014         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
4015         $(LIBINTL).
4016         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4017
4018 2011-05-31  Bruno Haible  <bruno@clisp.org>
4019
4020         Fix link errors in tests: wait-process uses gettext-h.
4021         * modules/nonblocking-pipe-tests (Makefile.am): Set
4022         test_nonblocking_pipe_main_LDADD.
4023         * modules/nonblocking-socket-tests (Makefile.am): Link
4024         test-nonblocking-socket-main against $(LIBINTL).
4025         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4026
4027 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4028
4029         assert-h: work around 'verify' incompatibility
4030         * lib/verify.h: Use @...@ directives, not ifdef.
4031         * modules/assert-h (assert.h): Implement the directives.
4032         (assert.h): Substitute the symbol-prefix more consistently.
4033
4034 2011-05-29  Jim Meyering  <meyering@redhat.com>
4035
4036         trim: remove three superfluous assignments
4037         * lib/trim.c (trim2): Remove three superfluous assignments
4038         and correct brace positioning.
4039
4040 2011-05-29  Bruno Haible  <bruno@clisp.org>
4041
4042         wctype-h: Avoid namespace pollution on Solaris 2.6.
4043         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
4044         identifiers.
4045         * doc/posix-headers/wctype.texi: Mention the problem.
4046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4047
4048 2011-05-28  Jim Meyering  <meyering@redhat.com>
4049
4050         parse-datetime.y: accommodate -Wstrict-overflow
4051         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
4052         placate -Wstrict-overflow.
4053
4054         trim: avoid a warning from -O2 -Wstrict-overflow
4055         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
4056
4057 2011-05-29  Bruno Haible  <bruno@clisp.org>
4058
4059         gnulib-tool: Fix bug in yesterday's commit.
4060         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
4061         twice.
4062
4063 2011-05-29  Bruno Haible  <bruno@clisp.org>
4064
4065         Allow multiple gnulib generated include files to be combined.
4066         * gnulib-tool (func_compute_include_guard_prefix): New function.
4067         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
4068         ${gl_include_guard_prefix} references.
4069         (func_import, func_create_testdir): Invoke
4070         func_compute_include_guard_prefix.
4071         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
4072         * lib/ctype.in.h: Likewise.
4073         * lib/dirent.in.h: Likewise.
4074         * lib/errno.in.h: Likewise.
4075         * lib/fcntl.in.h: Likewise.
4076         * lib/float.in.h: Likewise.
4077         * lib/getopt.in.h: Likewise.
4078         * lib/iconv.in.h: Likewise.
4079         * lib/langinfo.in.h: Likewise.
4080         * lib/locale.in.h: Likewise.
4081         * lib/math.in.h: Likewise.
4082         * lib/netdb.in.h: Likewise.
4083         * lib/netinet_in.in.h: Likewise.
4084         * lib/poll.in.h: Likewise.
4085         * lib/pthread.in.h: Likewise.
4086         * lib/pty.in.h: Likewise.
4087         * lib/sched.in.h: Likewise.
4088         * lib/se-selinux.in.h: Likewise.
4089         * lib/search.in.h: Likewise.
4090         * lib/signal.in.h: Likewise.
4091         * lib/spawn.in.h: Likewise.
4092         * lib/stdarg.in.h: Likewise.
4093         * lib/stddef.in.h: Likewise.
4094         * lib/stdint.in.h: Likewise.
4095         * lib/stdio.in.h: Likewise.
4096         * lib/stdlib.in.h: Likewise.
4097         * lib/string.in.h: Likewise.
4098         * lib/strings.in.h: Likewise.
4099         * lib/sys_file.in.h: Likewise.
4100         * lib/sys_ioctl.in.h: Likewise.
4101         * lib/sys_select.in.h: Likewise.
4102         * lib/sys_socket.in.h: Likewise.
4103         * lib/sys_stat.in.h: Likewise.
4104         * lib/sys_time.in.h: Likewise.
4105         * lib/sys_times.in.h: Likewise.
4106         * lib/sys_uio.in.h: Likewise.
4107         * lib/sys_utsname.in.h: Likewise.
4108         * lib/sys_wait.in.h: Likewise.
4109         * lib/sysexits.in.h: Likewise.
4110         * lib/termios.in.h: Likewise.
4111         * lib/time.in.h: Likewise.
4112         * lib/unistd.in.h: Likewise.
4113         * lib/wchar.in.h: Likewise.
4114         * lib/wctype.in.h: Likewise.
4115         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
4116         * modules/ctype (Makefile.am): Likewise.
4117         * modules/dirent (Makefile.am): Likewise.
4118         * modules/errno (Makefile.am): Likewise.
4119         * modules/fcntl-h (Makefile.am): Likewise.
4120         * modules/float (Makefile.am): Likewise.
4121         * modules/getopt-posix (Makefile.am): Likewise.
4122         * modules/iconv-h (Makefile.am): Likewise.
4123         * modules/langinfo (Makefile.am): Likewise.
4124         * modules/locale (Makefile.am): Likewise.
4125         * modules/math (Makefile.am): Likewise.
4126         * modules/netdb (Makefile.am): Likewise.
4127         * modules/netinet_in (Makefile.am): Likewise.
4128         * modules/poll-h (Makefile.am): Likewise.
4129         * modules/pthread (Makefile.am): Likewise.
4130         * modules/pty (Makefile.am): Likewise.
4131         * modules/sched (Makefile.am): Likewise.
4132         * modules/search (Makefile.am): Likewise.
4133         * modules/selinux-h (Makefile.am): Likewise.
4134         * modules/signal (Makefile.am): Likewise.
4135         * modules/spawn (Makefile.am): Likewise.
4136         * modules/stdarg (Makefile.am): Likewise.
4137         * modules/stddef (Makefile.am): Likewise.
4138         * modules/stdint (Makefile.am): Likewise.
4139         * modules/stdio (Makefile.am): Likewise.
4140         * modules/stdlib (Makefile.am): Likewise.
4141         * modules/string (Makefile.am): Likewise.
4142         * modules/strings (Makefile.am): Likewise.
4143         * modules/sys_file (Makefile.am): Likewise.
4144         * modules/sys_ioctl (Makefile.am): Likewise.
4145         * modules/sys_select (Makefile.am): Likewise.
4146         * modules/sys_socket (Makefile.am): Likewise.
4147         * modules/sys_stat (Makefile.am): Likewise.
4148         * modules/sys_time (Makefile.am): Likewise.
4149         * modules/sys_times (Makefile.am): Likewise.
4150         * modules/sys_uio (Makefile.am): Likewise.
4151         * modules/sys_utsname (Makefile.am): Likewise.
4152         * modules/sys_wait (Makefile.am): Likewise.
4153         * modules/sysexits (Makefile.am): Likewise.
4154         * modules/termios (Makefile.am): Likewise.
4155         * modules/time (Makefile.am): Likewise.
4156         * modules/unistd (Makefile.am): Likewise.
4157         * modules/wchar (Makefile.am): Likewise.
4158         * modules/wctype-h (Makefile.am): Likewise.
4159         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
4160
4161 2011-05-29  Bruno Haible  <bruno@clisp.org>
4162
4163         assert-h: Allow multiple gnulib generated replacements to coexist.
4164         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
4165
4166 2011-05-29  Bruno Haible  <bruno@clisp.org>
4167
4168         argp: Allow coexistence with strerror_r-posix module.
4169         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
4170         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
4171         by gnulib's <string.h> replacement), assume it has the POSIX signature,
4172         not the glibc signature.
4173
4174 2011-05-28  Bruno Haible  <bruno@clisp.org>
4175
4176         gnulib-tool: Alternative structure of testdirs, similar to --import.
4177         * gnulib-tool: New option --single-configure.
4178         (func_usage): Document it.
4179         (single_configure): New variable.
4180         (func_modules_transitive_closure_separately,
4181         func_modules_transitive_closure_separately,
4182         func_determine_use_libtests, func_modules_add_dummy_separately,
4183         func_modules_to_filelist_separately): New functions, extracted from
4184         func_import.
4185         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
4186         (func_import): Use the new functions.
4187         (func_create_testdir): Set final_modules. Handle $single_configure =
4188         true case.
4189
4190 2011-05-28  Bruno Haible  <bruno@clisp.org>
4191
4192         getloadavg: Remove an unreliable safety check.
4193         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
4194         getloadavg.c is in place.
4195         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
4196         Reported by Sam Steingold <sds@gnu.org>.
4197
4198 2011-05-28  Bruno Haible  <bruno@clisp.org>
4199
4200         doc: Cleanup yet another file produced by texinfo.tex.
4201         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
4202
4203 2011-05-28  Bruno Haible  <bruno@clisp.org>
4204
4205         Finish the conditional dependencies mechanism.
4206         * gnulib-tool: New option --no-conditional-dependencies.
4207         (func_usage): Document it. Don't mark --conditional-dependencies as
4208         experimental.
4209         (cond_dependencies): The possible values can now be true, false, empty.
4210         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
4211         (func_import): Store setting in gnulib-cache.m4 and read it from there.
4212         * doc/gnulib-tool.texi (Conditional dependencies): New section.
4213
4214 2011-05-28  Bruno Haible  <bruno@clisp.org>
4215
4216         doc: Use a recent texinfo.tex.
4217         * doc/Makefile (tex_opts): New variable.
4218         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
4219
4220 2011-05-28  Jim Meyering  <meyering@redhat.com>
4221
4222         intprops.h: adjust comment to match code change
4223         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
4224         only once, it *may* have side effects.  Also fix an unrelated typo.
4225         (_GL_INT_SIGNED): Likewise.
4226
4227 2011-05-26  Simon Josefsson  <simon@josefsson.org>
4228
4229         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
4230
4231 2011-05-26  Bruno Haible  <bruno@clisp.org>
4232
4233         mbsrchr: Avoid collision with system function on Interix.
4234         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
4235         Reported by Markus Duft <mduft@gentoo.org>.
4236
4237 2011-05-15  James Youngman  <jay@gnu.org>
4238
4239         getopt: for ambiguous options, enumerate the possibilities.
4240         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
4241         the ambiguous options when an ambiguous prefix is given. This was
4242         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
4243         glibc change was
4244         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
4245
4246 2011-05-25  Eric Blake  <eblake@redhat.com>
4247
4248         getcwd: work around mingw bug
4249         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
4250         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4251         Reported by Matthias Bolte.
4252
4253 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4254
4255         test-intprops: disable -Wtype-limits diagnostics
4256         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
4257         diagnostics.  Otherwise, the integer overflow macros generate many
4258         diagnostics.  Reported by Jim Meyering in
4259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4260
4261         intprops: shorten, to pacify gcc -Woverlength-strings
4262         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
4263         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
4264         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
4265         likely to run afoul of C compiler limits for string constant lengths.
4266         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
4267
4268 2011-05-24  Eric Blake  <eblake@redhat.com>
4269
4270         docs: document recently fixed glibc printf bug
4271         * doc/posix-functions/fprintf.texi (fprintf): Document it.
4272         * doc/posix-functions/printf.texi (printf): Likewise.
4273         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
4274         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
4275
4276         closein-tests: convert to init.sh
4277         * modules/closein-tests (Files): Add init.sh
4278         * tests/test-closein.sh Use it.
4279
4280         yesno-tests: convert to init.sh
4281         * modules/yesno-tests (Files): Add init.sh.
4282         * tests/test-yesno.sh: Use it.
4283
4284         atexit-tests: ensure reliable exit status
4285         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
4286         Reported by Bruno Haible.
4287
4288 2011-05-24  Bruno Haible  <bruno@clisp.org>
4289
4290         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
4291         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
4292         gl_PREREQ_STRERROR_R invocations from here...
4293         * modules/strerror_r-posix (configure.ac): ... to here.
4294
4295 2011-05-24  Eric Blake  <eblake@redhat.com>
4296
4297         strerror_r: fix missing header
4298         * lib/strerror_r.c: Avoid compiler warning about snprintf.
4299
4300         strerror_r: fix AIX test failures
4301         * lib/strerror_r.c (strerror_r): Convert silent truncation to
4302         ERANGE failure.
4303
4304         strerror_r: fix Solaris test failures
4305         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
4306         failures.
4307         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4308
4309         strerror_r: enforce POSIX recommendations
4310         * lib/strerror_r.c (safe_copy): New helper method.
4311         (strerror_r): Guarantee a non-empty string.
4312         * tests/test-strerror_r.c (main): Enhance tests to incorporate
4313         recent POSIX rulings and to match our strerror guarantees.
4314         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
4315
4316 2011-05-24  Jim Meyering  <meyering@redhat.com>
4317
4318         test-perror2.c: avoid warning about unused variable
4319         * tests/test-perror2.c (main): Remove declaration of unused "fp".
4320
4321 2011-05-24  Eric Blake  <eblake@redhat.com>
4322
4323         perror: avoid spurious test failure on HP-UX
4324         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
4325
4326         tests: fix logic bug in init.sh
4327         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
4328         shell.
4329
4330 2011-05-24  Jim Meyering  <meyering@redhat.com>
4331
4332         utimensat: do not reference an out-of-scope buffer
4333         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
4334         declared in an inner scope, yet "times" would be dereferenced outside
4335         the scope in which "ts" was valid.
4336         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
4337         of ts[2] "out/up", so that the use of aliased "times" (via
4338         "times = ts;") does not end up referencing an out-of-scope "ts"
4339
4340         opendir-safer.c: don't clobber errno; don't close negative FD
4341         * lib/opendir-safer.c (opendir_safer):
4342         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
4343         file descriptor, and more importantly, don't clobber the
4344         offending errno value with EINVAL.  Before, upon failure
4345         of dup_safer, we would pass the negative file descriptor to
4346         fdopendir, which would clobber errno.
4347
4348 2011-05-23  Bruno Haible  <bruno@clisp.org>
4349
4350         idcache: Fix module description.
4351         * modules/idcache (Include): Set to "idcache.h".
4352
4353 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4354
4355         gnulib-tool: fix portability problem with MacOS sed
4356         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
4357         before the "}".  Problem reported by Leo in
4358         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
4359         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
4360         sed_extract_condition1, sed_extract_condition2.
4361
4362 2011-05-23  Bruno Haible  <bruno@clisp.org>
4363
4364         hash: Simplify autoconf macro.
4365         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
4366
4367 2011-05-23  Bruno Haible  <bruno@clisp.org>
4368
4369         getugroups: Fix module description.
4370         * modules/getugroups (Include): Set to "getugroups.h".
4371
4372 2011-05-23  Bruno Haible  <bruno@clisp.org>
4373
4374         linkat: Simplify autoconf macro.
4375         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
4376
4377 2011-05-23  Bruno Haible  <bruno@clisp.org>
4378             Eric Blake  <eblake@redhat.com>
4379
4380         linkat, renameat: Update dependencies.
4381         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
4382         * modules/linkat (Depends-on): Likewise. Remove also readlink,
4383         symlinkat.
4384
4385 2011-05-23  Jim Meyering  <meyering@redhat.com>
4386
4387         maint.mk: more tight_scope improvements
4388         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
4389         (_gl_TS_headers): Define only in if-0'd block.
4390         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
4391         sometimes we must *not* use it.  Adjust uses accordingly.
4392         (sc_tight_scope): Use much simpler grep-based test to determine
4393         whether we skip this rule.
4394
4395         maint.mk: generalize/improve the tight-scope rule
4396         * top/maint.mk: Emit a warning when the test is skipped.
4397         (_gl_TS_dir): Add $(srcdir)/ prefix.
4398         (_gl_TS_function_match): Simplify, rather than trying
4399         to enumerate common types.  Otherwise, it would fail to match an
4400         "extern unsigned char const *" declaration in idutils.
4401         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
4402         a way to support use of that type of macro.
4403         (_gl_TS_var_match): Simplify regexp.
4404         (_gl_TS_obj_files): New configurable variable.
4405         (_gl_TS_headers): Likewise.
4406
4407 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4408
4409         verify: fix bug when gnulib <assert.h> is also included
4410         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
4411         is defined, not if _GL_STATIC_ASSERT_H is not defined.
4412         Perhaps there's a better way, but this fixes the immediate problem.
4413         Problem reported by Bruno Haible in
4414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
4415
4416 2011-05-22  Bruno Haible  <bruno@clisp.org>
4417
4418         xgetcwd: Simplify autoconf macro.
4419         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
4420
4421 2011-05-22  Bruno Haible  <bruno@clisp.org>
4422
4423         New module 'mktime-internal'.
4424         * modules/mktime-internal: New file.
4425         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
4426         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
4427         mktime_internal as a C macro if libc has __mktime_internal.
4428         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
4429         conditions.
4430         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
4431
4432 2011-05-22  Bruno Haible  <bruno@clisp.org>
4433
4434         timegm: Correct mktime replacement statements.
4435         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
4436         defining mktime as a C macro. This completes a 2009-07-28 commit.
4437
4438 2011-05-22  Bruno Haible  <bruno@clisp.org>
4439
4440         timegm: Simplify autoconf macro.
4441         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
4442
4443 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
4444
4445         clock-time: change to LGPLv2+.
4446         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
4447         BSD-like but we have no mark for that; this is good enough for now.
4448
4449 2011-05-21  Bruno Haible  <bruno@clisp.org>
4450
4451         strerror_r: Fix comments.
4452         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
4453
4454 2011-05-21  Bruno Haible  <bruno@clisp.org>
4455
4456         relocatable-prog-wrapper: Fix possible link error.
4457         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
4458         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
4459         (gl_FUNC_SETENV): ... to here.
4460         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
4461         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
4462
4463 2011-05-21  Bruno Haible  <bruno@clisp.org>
4464
4465         relocatable-prog-wrapper: Assume strerror() exists.
4466         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
4467         m4/strerror.m4.
4468         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
4469         * lib/relocwrapper.c: Remove mention of strerror module.
4470         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
4471         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
4472         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
4473         C macro.
4474
4475 2011-05-21  Bruno Haible  <bruno@clisp.org>
4476
4477         select: Simplify replacement idiom.
4478         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
4479         Win32 platforms.
4480         * lib/sys_select.in.h (select): Simplify accordingly.
4481         * modules/select (Depends-on): Likewise.
4482
4483 2011-05-21  Bruno Haible  <bruno@clisp.org>
4484
4485         mkdir-p: Simplify autoconf macro.
4486         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
4487         gl_FUNC_LCHOWN.
4488
4489 2011-05-21  Eric Blake  <eblake@redhat.com>
4490
4491         strerror_r: avoid clobbering strerror on cygwin
4492         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
4493         fall back instead to sys_errlist.
4494         * modules/strerror (configure.ac): Add witness.
4495         * tests/test-strerror_r.c (main): Enhance test.
4496         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4497         * tests/test-perror2.c (main): Free memory before exit.
4498
4499 2011-05-21  Bruno Haible  <bruno@clisp.org>
4500
4501         mkdtemp: Use gnulib naming conventions.
4502         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
4503         * modules/mkdtemp (configure.ac): Update.
4504
4505 2011-05-20  Eric Blake  <eblake@redhat.com>
4506
4507         strerror_r: avoid corrupting errno on Solaris
4508         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
4509         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4510
4511         strerror_r: avoid compiler warning
4512         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
4513
4514         strerror_r: simplify AIX code
4515         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
4516
4517         test-perror: avoid spurious failure on FreeBSD
4518         * modules/perror-tests (Depends-on): Add strerror, now that
4519         strerror_r no longer pulls it in.
4520
4521 2011-05-20  Bruno Haible  <bruno@clisp.org>
4522
4523         strerror_r-posix: Remove unused dependencies.
4524         * modules/strerror_r-posix (Depends-on): Remove strerror.
4525         Reported by Eric Blake.
4526
4527 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
4528
4529         intprops: remove assumption about A|B representation
4530         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
4531         is a valid integer if both A and B are.  Although this is true for
4532         all known practical hosts, the C standard doesn't guarantee it,
4533         and the code need not assume it.  Also, this change may work around
4534         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
4535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
4536
4537 2011-05-20  Eric Blake  <eblake@redhat.com>
4538
4539         perror: work around FreeBSD bug
4540         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
4541         is broken.  Move AC_LIBOBJ...
4542         * modules/perror (configure.ac): Here.
4543         * doc/posix-functions/perror.texi (perror): Document this.
4544         * tests/test-perror2.c (main): Enhance test.
4545
4546         test-perror: check for strerror interactions
4547         * tests/macros.h (STREQ): Add macro.
4548         * modules/perror-tests (Files): Add second test.
4549         * tests/test-perror2.c (main): New file.
4550         * doc/posix-functions/perror.texi (perror): Document glibc bug.
4551
4552         test-perror: rewrite to use init script
4553         * modules/perror-tests (Files): Add init.sh.
4554         * tests/test-perror.sh: Use temporary directory.
4555
4556 2011-05-20  Jim Meyering  <meyering@redhat.com>
4557
4558         maint: replace misused "a" with "an"
4559         * doc/intprops.texi: "a integer"
4560         * doc/regex.texi: "a explanation"
4561         * lib/alignof.h: "a object"
4562         * lib/argmatch.h: "a explanation"
4563         * lib/argp-help.c: "a option" and "a OPTION_DOC"
4564         * lib/stdint.in.h: "a integer"
4565         * lib/userspec.c: "a owner"
4566         * doc/gnulib.texi: Fix "a idea", and reword.
4567
4568 2011-05-19  Jim Meyering  <meyering@redhat.com>
4569
4570         maint: correct misuse of "a" and "an"
4571         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
4572         * lib/argp-help.c: "an docum...": s/an/a/
4573         * lib/argp-parse.c: "An vector": s/An/A/
4574         * lib/execute.c: "an native": s/an/a/
4575         * lib/spawn-pipe.c: Likewise.
4576         * lib/gc.h: "an Gc_rc": s/an/a/
4577         * lib/unigbrk.in.h: "an grapheme": s/an/a/
4578         * lib/fts.c: "an stat.st_dev": s/an/a/
4579
4580 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4581
4582         intprops-tests: work around HP-UX 11.23 cc bug with constants
4583         * tests/test-intprops.c (VERIFY): New macro.
4584         (main): Use it, instead of verify, to work around the compiler bug; see
4585         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4586
4587         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
4588         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
4589         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
4590         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
4591         (_GL_REMAINDER_OVERFLOW): Use it.
4592
4593         intprops-tests: revert unsigned part of previous change
4594         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
4595         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
4596         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
4597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
4598
4599 2011-05-19  Bruno Haible  <bruno@clisp.org>
4600
4601         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
4602         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
4603         strerror_r() returned without filling the buffer.
4604         Reported by Eric Blake.
4605
4606 2011-05-19  Eric Blake  <eblake@redhat.com>
4607
4608         strerror_r: guarantee unchanged errno
4609         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
4610         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
4611         failure.
4612         * tests/test-strerror_r.c (main): Enhance test.
4613
4614 2011-05-19  Bruno Haible  <bruno@clisp.org>
4615
4616         strerror_r: Reorder #if blocks.
4617         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
4618         for consistency with the previous commit.
4619
4620 2011-05-19  Bruno Haible  <bruno@clisp.org>
4621
4622         perror: Avoid clobbering the strerror buffer when possible.
4623         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
4624         * lib/strerror.c: Include it.
4625         * modules/strerror (Files): Add lib/strerror-impl.h.
4626         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
4627         (my_strerror): New function, defined through lib/strerror-impl.h.
4628         (perror): Use it instead of strerror.
4629         * modules/perror (Files): Add lib/strerror-impl.h.
4630         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
4631
4632 2011-05-19  Eric Blake  <eblake@redhat.com>
4633
4634         strerror_r: fix on newer cygwin
4635         * lib/strerror_r.c (strerror_r): Cygwin now has
4636         __xpg_strerror_r, use it.
4637
4638 2011-05-19  Bruno Haible  <bruno@clisp.org>
4639
4640         strerror_r: Avoid clobbering the strerror buffer when possible.
4641         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
4642         (sys_nerr, sys_errlist): New declarations.
4643         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
4644         HP-UX, native Win32, IRIX, and 32-bit Solaris.
4645         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
4646
4647 2011-05-19  Bruno Haible  <bruno@clisp.org>
4648
4649         strerror_r: Fix test failure on mingw.
4650         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
4651         EXTEND_STRERROR_R.
4652         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
4653         macros from errno.in.h instead.
4654
4655 2011-05-19  Eric Blake  <eblake@redhat.com>
4656
4657         strerror: relax test for Solaris
4658         * tests/test-strerror.c (main): Permit Solaris behavior.
4659         * tests/test-strerror_r.c (main): Likewise.
4660
4661         strerror: enforce POSIX ruling on strerror(0)
4662         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
4663         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4664         * lib/strerror_r.c (rpl_strerror_r): Work around it.
4665         * doc/posix-functions/strerror.texi (strerror): Document it.
4666         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
4667         * tests/test-strerror.c (main): Strengthen test.
4668         * tests/test-strerror_r.c (main): Likewise.
4669
4670 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4671
4672         intprop-tests: port to older and more-pedantic compilers
4673         * modules/intprops-tests (Files): Add tests/macros.h.
4674         * tests/test-intprops.c: Include macros.h.
4675         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
4676         it's no longer documented to expand to an integer constant expression.
4677         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
4678         argument is floating point, as it's no longer documented to expand
4679         to an integer constant expression in that case.
4680         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
4681         compiler bugs reported by Bruno Haible.  See
4682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4683         (U0, U1): New constants, to work around the same bugs.  Also,
4684         in tests, use e.g., "(unsigned int) 39" rather than "39u".
4685
4686         intprops: work around C compiler bugs
4687         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
4688         bug in Sun C 5.11 2010/08/13 and other compilers; see
4689         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4690
4691         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
4692         * doc/intprops.texi (Integer Type Determination): Fix
4693         documentation for TYPE_IS_INTEGER: it returns an constant
4694         expression, not an integer constant expression.  Fix doc for
4695         TYPE_SIGNED: it returns an integer constant expression only if its
4696         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
4697         hardly worth documented that way....)
4698
4699 2011-05-18  Bruno Haible  <bruno@clisp.org>
4700
4701         strerror_r: Avoid clobbering the strerror buffer when possible.
4702         * lib/strerror_r.c (strerror_r): Merge the three implementations.
4703         Handle gnulib defined errno values here. When strerror() returns NULL
4704         or an empty string, return EINVAL.
4705         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
4706         gnulib defined errno values here.
4707         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
4708
4709 2011-05-18  Eric Blake  <eblake@redhat.com>
4710
4711         fnmatch: avoid compiler warning
4712         * lib/fnmatch_loop.c (FCT): Use correct type.
4713         Reported by Matthias Bolte.
4714
4715 2011-05-13  Jim Meyering  <meyering@redhat.com>
4716
4717         maint.mk: three new prohibit_<HDR>_without_use rules
4718         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
4719         (sc_prohibit_stdio-safer_without_use): Likewise.
4720         (sc_prohibit_xfreopen_without_use): Likewise.
4721
4722 2011-05-17  Jim Meyering  <meyering@redhat.com>
4723
4724         announce-gen: fail if the NEWS delta is empty
4725         If there's nothing noteworthy in NEWS, then either you forgot
4726         or you shouldn't be releasing.
4727         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
4728
4729 2011-05-17  Pádraig Brady <P@draigBrady.com>
4730
4731         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
4732         reserved symbols starting with double underscore from the check.
4733
4734 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
4735
4736         intprops: add doc
4737         * doc/intprops.texi: New file, documenting intprops.
4738         * doc/gnulib.texi (Particular Modules): Include it.
4739
4740         verify: add doc to gnulib manual and fix example
4741         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
4742         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
4743         (Compile-time Assertions): Fix example so it can't overflow.
4744
4745 2011-05-17  Jim Meyering  <meyering@redhat.com>
4746
4747         warnings.m4: don't usurp save_CPPFLAGS variable name
4748         * m4/warnings.m4: Prefix local temporary variable name with gl_.
4749
4750         doc: fix typo
4751         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
4752
4753 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4754             Bruno Haible  <bruno@clisp.org>
4755
4756         doc: Tweak recent change.
4757         * README (Portability guidelines): Tweak new text.
4758         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
4759         Interix 6.1.
4760
4761 2011-05-16  Eric Blake  <eblake@redhat.com>
4762
4763         inttypes: avoid autoconf warning
4764         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
4765         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4766
4767 2011-05-16  Sam Steingold <sds@gnu.org>
4768         and Eric Blake  <eblake@redhat.com>
4769
4770         vc-list-files: accept multiple directory operands
4771         * build-aux/vc-list-files: Iterate over all remaining operands.
4772
4773 2011-05-16  Bruno Haible  <bruno@clisp.org>
4774
4775         Fix confusion regarding deprecated modules.
4776         * modules/calloc (Status, Notice): Mark module as deprecated, not
4777         obsolete.
4778         * modules/fnmatch-posix (Status, Notice): Likewise.
4779         * modules/getdate (Status, Notice): Likewise.
4780         * modules/getopt (Status, Notice): Likewise.
4781         * modules/malloc (Status, Notice): Likewise.
4782         * modules/pipe (Status, Notice): Likewise.
4783         * modules/realloc (Status, Notice): Likewise.
4784         * modules/rename-dest-slash (Status, Notice): Likewise.
4785         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
4786         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
4787         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
4788         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
4789         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
4790
4791 2011-05-16  Bruno Haible  <bruno@clisp.org>
4792
4793         doc: List the target platforms.
4794         * doc/gnulib-intro.texi (Target Platforms): New section.
4795         * doc/gnulib.texi (Introduction): Update menu.
4796         * README (Portability guidelines): Refer to the new section. Update
4797         statement about oldest supported environment. Remove rationale why
4798         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
4799         unportable C89 function.
4800         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
4801         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
4802
4803 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4804
4805         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
4806
4807 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
4808
4809         intprops-tests: new module
4810         * modules/intprops-tests, tests/test-intprops.c: New files.
4811
4812         intprops: add safe, portable integer overflow checking
4813         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
4814         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
4815         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
4816         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
4817         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
4818         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
4819         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
4820         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
4821         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
4822         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
4823         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
4824
4825 2011-05-12  James Youngman  <jay@gnu.org>
4826
4827         Add a test for glibc's Bugzilla bug #12378.
4828         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
4829         doesn't allow the literal matching of a lone "[" (which is
4830         required by POSIX).
4831         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
4832
4833 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
4834
4835         Sync glibc change fixing Bugzilla bug #12378.
4836         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
4837         beginning and fall back to matching as normal character if the
4838         string ends before the matching ']' is found.  This is what POSIX
4839         requires.
4840
4841 2011-05-13  Eric Blake  <eblake@redhat.com>
4842
4843         getcwd-lgpl: relax test for FreeBSD
4844         * doc/posix-functions/getcwd.texi (getcwd): Document portability
4845         issue.
4846         * tests/test-getcwd-lgpl.c (main): Relax test.
4847         Reported by Matthias Bolte.
4848
4849 2011-05-11  Eric Blake  <eblake@redhat.com>
4850
4851         test-fflush: silence compiler warning
4852         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
4853
4854 2011-05-11  Bruno Haible  <bruno@clisp.org>
4855
4856         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
4857         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
4858         * modules/canonicalize (Depends-on): Add 'nocrash'.
4859         * modules/canonicalize-lgpl (Depends-on): Likewise.
4860         * doc/posix-functions/realpath.texi: Update platforms list.
4861         Reported by Ryan Schmidt <ryandesign@macports.org>.
4862
4863 2011-05-11  Bruno Haible  <bruno@clisp.org>
4864
4865         group-member: Declare function in <unistd.h>.
4866         * lib/unistd.in.h (group_member): New declaration.
4867         * lib/group-member.h: Remove file.
4868         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
4869         * tests/test-unistd-c++.cc: Check signature of group_member.
4870         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
4871         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
4872         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
4873         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
4874         HAVE_GROUP_MEMBER.
4875         * modules/group-member (Files): Remove lib/group-member.h.
4876         (Depends-on): Add unistd. Specify conditions.
4877         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4878         (Include): Change to <unistd.h>.
4879         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
4880         HAVE_GROUP_MEMBER.
4881         * NEWS: Mention the change.
4882         * lib/euidaccess.c: Don't include group-member.h.
4883
4884 2011-05-11  Bruno Haible  <bruno@clisp.org>
4885
4886         group-member: Document module.
4887         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
4888         module.
4889
4890 2011-05-11  Bruno Haible  <bruno@clisp.org>
4891
4892         fclose: Fix mistake earlier today.
4893         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
4894
4895 2011-05-11  Eric Blake  <eblake@redhat.com>
4896
4897         fclose: preserve fflush errors
4898         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
4899         Reported by Jim Meyering.
4900
4901         bootstrap: support a prereq of 'rpcgen -' on RHEL5
4902         * build-aux/bootstrap (check_versions): When no specific version
4903         is required, merely check that the app produces an exit status
4904         that indicates its existence.
4905
4906         maint.mk: drop redundant check
4907         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
4908         the same but better.
4909
4910 2011-05-11  Bruno Haible  <bruno@clisp.org>
4911
4912         fclose: Fix possible link error.
4913         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
4914         unregister_shadow_fd. Improve comments.
4915         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
4916         Eric Blake.
4917
4918 2011-05-11  Jim Meyering  <meyering@redhat.com>
4919
4920         maint.mk: improve "can not" detection and generalize rule name
4921         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
4922         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
4923         Use the same technique as in sc_prohibit_doubled_word, so that
4924         we recognize "can not" also when the words are separated by a newline.
4925         Suggested by Eric Blake.
4926         (perl_filename_lineno_text_): Define.  Factored out of...
4927         (prohibit_doubled_word_): ...here.  Use the new definition.
4928         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
4929         (prohibit_undesirable_word_seq_RE_): New overridable variable.
4930         (ignore_undesirable_word_sequence_RE_): New overridable variable.
4931
4932 2011-05-10  Eric Blake  <eblake@redhat.com>
4933
4934         fclose: avoid double close race when possible
4935         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
4936         all but WINDOWS_SOCKETS.
4937
4938 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
4939
4940         openat: correct new comment
4941         * lib/openat-proc.c (openat_proc_name): Correct the comment.
4942
4943 2011-05-10  Jim Meyering  <meyering@redhat.com>
4944
4945         openat: add comments
4946         * lib/openat-proc.c (openat_proc_name): Add comments,
4947         mostly from Eric Blake.
4948
4949 2011-05-09  Eric Blake  <eblake@redhat.com>
4950
4951         openat: reduce syscalls in first probe of /proc
4952         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
4953         be a directory.  Simplify the probe for .. bugs.
4954         * modules/openat (Depends-on): Drop same-inode.
4955         Reported by Bastien ROUCARIES.
4956
4957 2011-05-09  Jim Meyering  <meyering@redhat.com>
4958
4959         maint.mk: change semantics/name of tight_scope variables
4960         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
4961         Rename variables to align with semantics that make them more useful.
4962
4963         maint.mk: tweak new rule's name not to impinge
4964         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
4965         (sc_tight_scope): Use new rule name rather than $@-0.
4966
4967         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
4968         * top/maint.mk (sc_tight_scope): New rule.
4969         (sc_tight_scope-0): New rule, ifdef'd out.
4970         (_gl_TS_dir): Default.
4971         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
4972         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
4973
4974 2011-05-09  Simon Josefsson  <simon@josefsson.org>
4975
4976         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
4977         Haible <bruno@clisp.org>.
4978
4979 2011-05-08  Bruno Haible  <bruno@clisp.org>
4980
4981         Comments.
4982         * m4/isnanf.m4: Add comment.
4983         * m4/isnanl.m4: Likewise.
4984
4985 2011-05-08  Bruno Haible  <bruno@clisp.org>
4986
4987         glob: Remove obsolete macro.
4988         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
4989
4990 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4991
4992         intprops: Sun C 5.11 supports __typeof__
4993         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
4994         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
4995         which is new.
4996         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
4997
4998         intprops: switch to usual gnulib indenting and naming
4999         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
5000         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
5001
5002         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
5003
5004 2011-05-08  Jim Meyering  <meyering@redhat.com>
5005
5006         maint.mk: suppress "Entering/Leaving directory" diag in announcement
5007         * top/maint.mk (release-prep): Use make's --no-print-directory
5008         option when generating the announcement.  This eliminates the
5009         pesky "make[2]: Entering/Leaving directory" diagnostics in the
5010         generated announcement template.
5011
5012 2011-05-08  Bruno Haible  <bruno@clisp.org>
5013
5014         tzset: Fix gettimeofday wrapper on Solaris 2.6.
5015         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
5016         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
5017
5018 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5019
5020         ignore-value, verify: Omit include files from lib_SOURCES.
5021         * modules/ignore-value, modules/verify (Makefile.am):
5022         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
5023         that leads Automake to duplicate use of am__objects_... variables
5024         in Makefile.in.  See
5025         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
5026
5027 2011-05-07  Bruno Haible  <bruno@clisp.org>
5028
5029         fclose: Simplify autoconf macro.
5030         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
5031         defined.
5032
5033 2011-05-07  Bruno Haible  <bruno@clisp.org>
5034
5035         canonicalize-lgpl: Fix autoconf macro ordering bug.
5036         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
5037         gl_STDLIB_H_DEFAULTS.
5038
5039 2011-05-06  Eric Blake  <eblake@redhat.com>
5040
5041         maintainer-makefile: make sc_po_check easier to tune
5042         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
5043         to probe for strings, such as an alternate location for gnulib.
5044
5045         fclose: guarantee behavior on seekable stdin
5046         * modules/fclose (Depends-on): Add fflush.
5047         * doc/posix-functions/fclose.texi (fclose): Document this.
5048         * tests/test-fclose.c (main): Make test for this unconditional.
5049
5050 2011-05-06  Bruno Haible  <bruno@clisp.org>
5051
5052         fflush, fpurge: Relicense under LGPLv2+.
5053         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5054         * modules/fpurge (License): Likewise.
5055         With permission from Eric Blake and Jim Meyering.
5056         Suggested by Eric Blake.
5057
5058 2011-05-06  Karl Berry  <karl@gnu.org>
5059
5060         * MODULES.html.sh (func_all_modules): remove exit.
5061
5062 2011-05-06  Jim Meyering  <meyering@redhat.com>
5063
5064         maint.mk: use info-gnu@ as the default only for a stable release
5065         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
5066         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
5067         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
5068         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
5069
5070 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5071
5072         assert-h: new module, which supports C1X-style static_assert
5073         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5074         * lib/verify.h: Revamp so that this can be copied into assert.h,
5075         while retaining the ability to use it standalone as before.
5076         Rename private identifiers so as not to encroach on the
5077         standard C namespace, since this is now used by assert.h.
5078         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
5079         the old verify_true.
5080         (_GL_VERIFY_TRUE): New macro, with much of the contents of
5081         the old verify_true.  Use _GL_VERIFY_TYPE.
5082         (_GL_VERIFY): New macro, with much of the contents of the old verify.
5083         (static_assert): New macro, if _GL_STATIC_ASSERT_H
5084         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
5085         defined when this file is copied into the replacement assert.h.
5086         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
5087         and _Static_assert is not built in.
5088         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
5089         defined, and use the new macros mentioned above.
5090         * doc/posix-headers/assert.texi: Document this.
5091
5092 2011-05-05  Bruno Haible  <bruno@clisp.org>
5093
5094         fclose, fflush: Respect rules for use of AC_LIBOBJ.
5095         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
5096         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
5097         gl_REPLACE_FCLOSE here.
5098         * modules/fflush (Depends-on): Remove fclose.
5099         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
5100         combination with module 'fclose'.
5101
5102 2011-05-05  Bruno Haible  <bruno@clisp.org>
5103
5104         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
5105         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
5106         gl_FUNC_FFLUSH.
5107         (gl_FUNC_FFLUSH): Use it.
5108         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
5109         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
5110         gl_REPLACE_FSEEKO here.
5111
5112 2011-05-05  Bruno Haible  <bruno@clisp.org>
5113
5114         tzset: Relicense under LGPL.
5115         * modules/tzset (License): Change to LGPL.
5116         No agreement needed; it's a no-op.
5117
5118         strtoimax, strtoumax: Relicense under LGPL.
5119         * modules/strtoimax (License): Change to LGPL.
5120         * modules/strtoumax (License): Likewise.
5121         With permission from Jim Meyering, Paul Eggert:
5122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
5123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
5124
5125         getgroups: Relicense under LGPL.
5126         * modules/getgroups (License): Change to LGPL.
5127         With permission from Jim Meyering, Paul Eggert, Eric Blake:
5128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5129         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5131
5132         nanosleep: Relicense under LGPL.
5133         * modules/nanosleep (License): Change to LGPL.
5134         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
5135         Haible:
5136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
5137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
5138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5140
5141         futimens: Relicense under LGPL.
5142         * modules/futimens (License): Change to LGPL.
5143         With permission from Eric Blake:
5144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5145
5146         fflush: Relicense under LGPL.
5147         * modules/fflush (License): Change to LGPL.
5148         With permission from Eric Blake, Bruno Haible, Jim Meyering:
5149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
5150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
5151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
5152
5153         tmpfile: Relicense under LGPL.
5154         * modules/tmpfile (License): Change to LGPL.
5155         With permission from Ben Pfaff:
5156         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5157
5158         isfinite: Relicense under LGPL.
5159         * modules/isfinite (License): Change to LGPL.
5160         With permission from Ben Pfaff, Bruno Haible:
5161         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
5162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
5163
5164         acosl..tanl: Relicense under LGPL.
5165         * modules/acosl (License): Change to LGPL.
5166         * modules/asinl (License): Likewise.
5167         * modules/atanl (License): Likewise.
5168         * modules/cosl (License): Likewise.
5169         * modules/expl (License): Likewise.
5170         * modules/logl (License): Likewise.
5171         * modules/sinl (License): Likewise.
5172         * modules/sqrtl (License): Likewise.
5173         * modules/tanl (License): Likewise.
5174         Source code originally from glibc and Paolo Bonzini. Agreements:
5175         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
5176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
5177
5178 2011-05-05  Bruno Haible  <bruno@clisp.org>
5179
5180         signal: Define sighandler_t.
5181         * lib/signal.in.h (sighandler_t): New type.
5182         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
5183         whether sighandler_t is defined.
5184         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
5185         * modules/signal (Depends-on): Add extensions.
5186         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
5187         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
5188         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
5189
5190 2011-05-05  Eric Blake  <eblake@redhat.com>
5191
5192         maint: remove useless REPLACE_*_H macros
5193         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
5194         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5195         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5196         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
5197         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5198         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5199         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
5200         * m4/btowc.m4: Update callers.
5201         * m4/dirfd.m4: Likewise.
5202         * m4/duplocale.m4: Likewise.
5203         * m4/fchdir.m4: Likewise.
5204         * m4/fdopendir.m4: Likewise.
5205         * m4/inet_ntop.m4: Likewise.
5206         * m4/inet_pton.m4: Likewise.
5207         * m4/ioctl.m4: Likewise.
5208         * m4/mbrlen.m4: Likewise.
5209         * m4/mbrtowc.m4: Likewise.
5210         * m4/mbsinit.m4: Likewise.
5211         * m4/mbsnrtowcs.m4: Likewise.
5212         * m4/mbsrtowcs.m4: Likewise.
5213         * m4/poll.m4: Likewise.
5214         * m4/setlocale.m4: Likewise.
5215         * m4/wcrtomb.m4: Likewise.
5216         * m4/wcsnrtombs.m4: Likewise.
5217         * m4/wcsrtombs.m4: Likewise.
5218         * m4/wctob.m4: Likewise.
5219         * m4/wcwidth.m4: Likewise.
5220         * modules/posix_spawn: Likewise.
5221         * modules/posix_spawn_file_actions_addclose: Likewise.
5222         * modules/posix_spawn_file_actions_adddup2: Likewise.
5223         * modules/posix_spawn_file_actions_addopen: Likewise.
5224         * modules/posix_spawn_file_actions_destroy: Likewise.
5225         * modules/posix_spawn_file_actions_init: Likewise.
5226         * modules/posix_spawnattr_destroy: Likewise.
5227         * modules/posix_spawnattr_getflags: Likewise.
5228         * modules/posix_spawnattr_getpgroup: Likewise.
5229         * modules/posix_spawnattr_getschedparam: Likewise.
5230         * modules/posix_spawnattr_getschedpolicy: Likewise.
5231         * modules/posix_spawnattr_getsigdefault: Likewise.
5232         * modules/posix_spawnattr_getsigmask: Likewise.
5233         * modules/posix_spawnattr_init: Likewise.
5234         * modules/posix_spawnattr_setflags: Likewise.
5235         * modules/posix_spawnattr_setpgroup: Likewise.
5236         * modules/posix_spawnattr_setschedparam: Likewise.
5237         * modules/posix_spawnattr_setschedpolicy: Likewise.
5238         * modules/posix_spawnattr_setsigdefault: Likewise.
5239         * modules/posix_spawnattr_setsigmask: Likewise.
5240         * modules/posix_spawnp: Likewise.
5241
5242 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
5243
5244         Add option to do-release-commit-and-tag to specify branch.
5245         * build-aux/do-release-commit-and-tag: Add --branch.
5246
5247 2011-05-03  Bruno Haible  <bruno@clisp.org>
5248
5249         Avoid unnecessary compilation units, through conditional dependencies.
5250         * modules/accept (Depends-on): Add conditions to the dependencies.
5251         * modules/acosl (Depends-on): Likewise.
5252         * modules/argz (Depends-on): Likewise.
5253         * modules/asinl (Depends-on): Likewise.
5254         * modules/atanl (Depends-on): Likewise.
5255         * modules/atoll (Depends-on): Likewise.
5256         * modules/bind (Depends-on): Likewise.
5257         * modules/btowc (Depends-on): Likewise.
5258         * modules/canonicalize-lgpl (Depends-on): Likewise.
5259         * modules/ceil (Depends-on): Likewise.
5260         * modules/ceilf (Depends-on): Likewise.
5261         * modules/ceill (Depends-on): Likewise.
5262         * modules/chdir-long (Depends-on): Likewise.
5263         * modules/chown (Depends-on): Likewise.
5264         * modules/close (Depends-on): Likewise.
5265         * modules/connect (Depends-on): Likewise.
5266         * modules/cosl (Depends-on): Likewise.
5267         * modules/dirfd (Depends-on): Likewise.
5268         * modules/dprintf (Depends-on): Likewise.
5269         * modules/dprintf-posix (Depends-on): Likewise.
5270         * modules/error (Depends-on): Likewise.
5271         * modules/euidaccess (Depends-on): Likewise.
5272         * modules/expl (Depends-on): Likewise.
5273         * modules/faccessat (Depends-on): Likewise.
5274         * modules/fchdir (Depends-on): Likewise.
5275         * modules/fclose (Depends-on): Likewise.
5276         * modules/fcntl (Depends-on): Likewise.
5277         * modules/fdopendir (Depends-on): Likewise.
5278         * modules/fflush (Depends-on): Likewise.
5279         * modules/floor (Depends-on): Likewise.
5280         * modules/floorf (Depends-on): Likewise.
5281         * modules/floorl (Depends-on): Likewise.
5282         * modules/fnmatch (Depends-on): Likewise.
5283         * modules/fopen (Depends-on): Likewise.
5284         * modules/fprintf-posix (Depends-on): Likewise.
5285         * modules/frexp (Depends-on): Likewise.
5286         * modules/frexp-nolibm (Depends-on): Likewise.
5287         * modules/frexpl (Depends-on): Likewise.
5288         * modules/frexpl-nolibm (Depends-on): Likewise.
5289         * modules/fseek (Depends-on): Likewise.
5290         * modules/fsusage (Depends-on): Likewise.
5291         * modules/ftell (Depends-on): Likewise.
5292         * modules/ftello (Depends-on): Likewise.
5293         * modules/futimens (Depends-on): Likewise.
5294         * modules/getcwd (Depends-on): Likewise.
5295         * modules/getcwd-lgpl (Depends-on): Likewise.
5296         * modules/getdelim (Depends-on): Likewise.
5297         * modules/getdomainname (Depends-on): Likewise.
5298         * modules/getgroups (Depends-on): Likewise.
5299         * modules/gethostname (Depends-on): Likewise.
5300         * modules/getline (Depends-on): Likewise.
5301         * modules/getlogin_r (Depends-on): Likewise.
5302         * modules/getopt-posix (Depends-on): Likewise.
5303         * modules/getpeername (Depends-on): Likewise.
5304         * modules/getsockname (Depends-on): Likewise.
5305         * modules/getsockopt (Depends-on): Likewise.
5306         * modules/getsubopt (Depends-on): Likewise.
5307         * modules/getusershell (Depends-on): Likewise.
5308         * modules/glob (Depends-on): Likewise.
5309         * modules/grantpt (Depends-on): Likewise.
5310         * modules/iconv_open (Depends-on): Likewise.
5311         * modules/iconv_open-utf (Depends-on): Likewise.
5312         * modules/inet_ntop (Depends-on): Likewise.
5313         * modules/inet_pton (Depends-on): Likewise.
5314         * modules/ioctl (Depends-on): Likewise.
5315         * modules/isapipe (Depends-on): Likewise.
5316         * modules/isfinite (Depends-on): Likewise.
5317         * modules/isinf (Depends-on): Likewise.
5318         * modules/lchown (Depends-on): Likewise.
5319         * modules/ldexpl (Depends-on): Likewise.
5320         * modules/link (Depends-on): Likewise.
5321         * modules/linkat (Depends-on): Likewise.
5322         * modules/listen (Depends-on): Likewise.
5323         * modules/logl (Depends-on): Likewise.
5324         * modules/lstat (Depends-on): Likewise.
5325         * modules/mbrlen (Depends-on): Likewise.
5326         * modules/mbrtowc (Depends-on): Likewise.
5327         * modules/mbsinit (Depends-on): Likewise.
5328         * modules/mbsnrtowcs (Depends-on): Likewise.
5329         * modules/mbsrtowcs (Depends-on): Likewise.
5330         * modules/mbtowc (Depends-on): Likewise.
5331         * modules/memcmp (Depends-on): Likewise.
5332         * modules/mkdir (Depends-on): Likewise.
5333         * modules/mkdtemp (Depends-on): Likewise.
5334         * modules/mkfifo (Depends-on): Likewise.
5335         * modules/mkfifoat (Depends-on): Likewise.
5336         * modules/mknod (Depends-on): Likewise.
5337         * modules/mkostemp (Depends-on): Likewise.
5338         * modules/mkostemps (Depends-on): Likewise.
5339         * modules/mkstemp (Depends-on): Likewise.
5340         * modules/mkstemps (Depends-on): Likewise.
5341         * modules/mktime (Depends-on): Likewise.
5342         * modules/nanosleep (Depends-on): Likewise.
5343         * modules/open (Depends-on): Likewise.
5344         * modules/openat (Depends-on): Likewise.
5345         * modules/perror (Depends-on): Likewise.
5346         * modules/poll (Depends-on): Likewise.
5347         * modules/popen (Depends-on): Likewise.
5348         * modules/posix_spawn (Depends-on): Likewise.
5349         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
5350         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
5351         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
5352         * modules/posix_spawnp (Depends-on): Likewise.
5353         * modules/pread (Depends-on): Likewise.
5354         * modules/printf-posix (Depends-on): Likewise.
5355         * modules/ptsname (Depends-on): Likewise.
5356         * modules/putenv (Depends-on): Likewise.
5357         * modules/pwrite (Depends-on): Likewise.
5358         * modules/readline (Depends-on): Likewise.
5359         * modules/readlink (Depends-on): Likewise.
5360         * modules/readlinkat (Depends-on): Likewise.
5361         * modules/recv (Depends-on): Likewise.
5362         * modules/recvfrom (Depends-on): Likewise.
5363         * modules/regex (Depends-on): Likewise.
5364         * modules/remove (Depends-on): Likewise.
5365         * modules/rename (Depends-on): Likewise.
5366         * modules/renameat (Depends-on): Likewise.
5367         * modules/rmdir (Depends-on): Likewise.
5368         * modules/round (Depends-on): Likewise.
5369         * modules/roundf (Depends-on): Likewise.
5370         * modules/roundl (Depends-on): Likewise.
5371         * modules/rpmatch (Depends-on): Likewise.
5372         * modules/select (Depends-on): Likewise.
5373         * modules/send (Depends-on): Likewise.
5374         * modules/sendto (Depends-on): Likewise.
5375         * modules/setenv (Depends-on): Likewise.
5376         * modules/setlocale (Depends-on): Likewise.
5377         * modules/setsockopt (Depends-on): Likewise.
5378         * modules/shutdown (Depends-on): Likewise.
5379         * modules/sigaction (Depends-on): Likewise.
5380         * modules/signbit (Depends-on): Likewise.
5381         * modules/sigprocmask (Depends-on): Likewise.
5382         * modules/sinl (Depends-on): Likewise.
5383         * modules/sleep (Depends-on): Likewise.
5384         * modules/snprintf (Depends-on): Likewise.
5385         * modules/snprintf-posix (Depends-on): Likewise.
5386         * modules/socket (Depends-on): Likewise.
5387         * modules/sprintf-posix (Depends-on): Likewise.
5388         * modules/sqrtl (Depends-on): Likewise.
5389         * modules/stat (Depends-on): Likewise.
5390         * modules/strchrnul (Depends-on): Likewise.
5391         * modules/strdup-posix (Depends-on): Likewise.
5392         * modules/strerror (Depends-on): Likewise.
5393         * modules/strerror_r-posix (Depends-on): Likewise.
5394         * modules/strndup (Depends-on): Likewise.
5395         * modules/strnlen (Depends-on): Likewise.
5396         * modules/strptime (Depends-on): Likewise.
5397         * modules/strsep (Depends-on): Likewise.
5398         * modules/strsignal (Depends-on): Likewise.
5399         * modules/strstr-simple (Depends-on): Likewise.
5400         * modules/strtod (Depends-on): Likewise.
5401         * modules/strtoimax (Depends-on): Likewise.
5402         * modules/strtok_r (Depends-on): Likewise.
5403         * modules/strtoumax (Depends-on): Likewise.
5404         * modules/symlink (Depends-on): Likewise.
5405         * modules/symlinkat (Depends-on): Likewise.
5406         * modules/tanl (Depends-on): Likewise.
5407         * modules/tcgetsid (Depends-on): Likewise.
5408         * modules/tmpfile (Depends-on): Likewise.
5409         * modules/trunc (Depends-on): Likewise.
5410         * modules/truncf (Depends-on): Likewise.
5411         * modules/truncl (Depends-on): Likewise.
5412         * modules/uname (Depends-on): Likewise.
5413         * modules/unlink (Depends-on): Likewise.
5414         * modules/unlockpt (Depends-on): Likewise.
5415         * modules/unsetenv (Depends-on): Likewise.
5416         * modules/usleep (Depends-on): Likewise.
5417         * modules/utimensat (Depends-on): Likewise.
5418         * modules/vasprintf (Depends-on): Likewise.
5419         * modules/vdprintf (Depends-on): Likewise.
5420         * modules/vdprintf-posix (Depends-on): Likewise.
5421         * modules/vfprintf-posix (Depends-on): Likewise.
5422         * modules/vprintf-posix (Depends-on): Likewise.
5423         * modules/vsnprintf (Depends-on): Likewise.
5424         * modules/vsnprintf-posix (Depends-on): Likewise.
5425         * modules/vsprintf-posix (Depends-on): Likewise.
5426         * modules/wcrtomb (Depends-on): Likewise.
5427         * modules/wcscasecmp (Depends-on): Likewise.
5428         * modules/wcscspn (Depends-on): Likewise.
5429         * modules/wcsdup (Depends-on): Likewise.
5430         * modules/wcsncasecmp (Depends-on): Likewise.
5431         * modules/wcsnrtombs (Depends-on): Likewise.
5432         * modules/wcspbrk (Depends-on): Likewise.
5433         * modules/wcsrtombs (Depends-on): Likewise.
5434         * modules/wcsspn (Depends-on): Likewise.
5435         * modules/wcsstr (Depends-on): Likewise.
5436         * modules/wcstok (Depends-on): Likewise.
5437         * modules/wcswidth (Depends-on): Likewise.
5438         * modules/wctob (Depends-on): Likewise.
5439         * modules/wctomb (Depends-on): Likewise.
5440         * modules/wctype (Depends-on): Likewise.
5441         * modules/wcwidth (Depends-on): Likewise.
5442         * modules/write (Depends-on): Likewise.
5443
5444 2011-05-03  Bruno Haible  <bruno@clisp.org>
5445
5446         Support for conditional dependencies.
5447         * doc/gnulib.texi (Module description): Document the syntax of
5448         conditional dependencies.
5449         * gnulib-tool: New option --conditional-dependencies.
5450         (func_usage): Document it.
5451         (cond_dependencies): New variable.
5452         (func_get_automake_snippet_conditional,
5453         func_get_automake_snippet_unconditional): New functions, extracted from
5454         func_get_automake_snippet.
5455         (func_get_automake_snippet): Use them.
5456         (sed_first_32_chars): New variable.
5457         (func_module_shellfunc_name): New function.
5458         (func_module_shellvar_name): New function.
5459         (func_module_conditional_name): New function.
5460         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
5461         func_cond_module_condition): New functions.
5462         (func_modules_transitive_closure): Add support for conditional
5463         dependencies.
5464         (func_emit_lib_Makefile_am): For a conditional module, enclose the
5465         conditional automake snippet in an automake conditional.
5466         (func_emit_autoconf_snippets): Emit shell functions that contain the
5467         code for conditional modules.
5468         (func_import, func_create_testdir): Update specification.
5469
5470 2011-05-03  Eric Blake  <eblake@redhat.com>
5471
5472         test-getaddrinfo: report error information
5473         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
5474
5475 2011-05-03  Jim Meyering  <meyering@redhat.com>
5476
5477         bootstrap: avoid build failure when $GZIP is set
5478         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
5479         program name.  If defined at all, it is supposed to list gzip options.
5480         Reported by Alan Curry in http://debbugs.gnu.org/8609
5481
5482 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
5483
5484         readme-release: new module with release instructions
5485         * modules/readme-release: New module.
5486         * top/README-release: New file, from coreutils, grep, diffutils.
5487         * MODULES.html.sh (Support for maintaining and releasing): Add it.
5488
5489 2011-05-02  Eric Blake  <eblake@redhat.com>
5490
5491         fflush: also replace fclose when fixing fflush
5492         * modules/fflush (Depends-on): Add fclose.
5493         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
5494         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
5495         memstreams with no backing fd.
5496         * doc/posix-functions/fclose.texi (fclose): Document the use of
5497         fflush module to fix the bug.
5498         * tests/test-fclose.c (main): Relax test when fclose is used in
5499         isolation.
5500
5501         fclose: add some tests
5502         * modules/fclose-tests: New test module.
5503         * tests/test-fclose.c: New file.
5504         * doc/posix-functions/fclose.texi (fclose): Document the bug.
5505
5506         fclose: reduced dependencies
5507         * modules/fclose (Depends-on): Switch from fflush/fseeko to
5508         simpler lseek.
5509         * lib/fclose.c (rpl_fclose): Likewise.
5510         Reported by Simon Josefsson.
5511
5512         exit: drop remaining clients
5513         * modules/argmatch (Depends-on): Replace exit with stdlib.
5514         * modules/copy-file (Depends-on): Likewise.
5515         * modules/execute (Depends-on): Likewise.
5516         * modules/exitfail (Depends-on): Likewise.
5517         * modules/obstack (Depends-on): Likewise.
5518         * modules/pagealign_alloc (Depends-on): Likewise.
5519         * modules/pipe-filter-gi (Depends-on): Likewise.
5520         * modules/pipe-filter-ii (Depends-on): Likewise.
5521         * modules/savewd (Depends-on): Likewise.
5522         * modules/spawn-pipe (Depends-on): Likewise.
5523         * modules/wait-process (Depends-on): Likewise.
5524         * modules/xsetenv (Depends-on): Likewise.
5525         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
5526         * modules/git-merge-changelog (Depends-on): Likewise.
5527         * modules/long-options (Depends-on): Likewise.
5528         * modules/pt_chown (Depends-on): Likewise.
5529         * modules/sysexits (Depends-on): Likewise.
5530
5531         freading: relax license from LGPLv3+ to LGPLv2+
5532         * modules/freading (License): Relax LGPL version.
5533
5534 2011-05-02  Bruno Haible  <bruno@clisp.org>
5535
5536         fchdir: Remove unused dependencies.
5537         * modules/fchdir (Depends-on): Remove include_next.
5538
5539 2011-05-02  Bruno Haible  <bruno@clisp.org>
5540
5541         gnulib-tool: Refactor.
5542         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
5543         from func_emit_autoconf_snippets.
5544         (func_emit_autoconf_snippets): Use it.
5545
5546 2011-05-02  Simon Josefsson  <simon@josefsson.org>
5547
5548         * NEWS: Document removal of 'exit'.
5549         * modules/exit: Remove file.
5550
5551 2011-05-01  Bruno Haible  <bruno@clisp.org>
5552
5553         Update DEPENDENCIES.
5554         * DEPENDENCIES (gettext): Recommend the newest release.
5555         Reported by Simon Josefsson.
5556
5557 2011-05-01  Bruno Haible  <bruno@clisp.org>
5558
5559         gnulib-tool: Reduce code duplication.
5560         * gnulib-tool (func_emit_autoconf_snippets): New function.
5561         (func_import, func_create_testdir): Use it.
5562
5563 2011-04-30  Eric Blake  <eblake@redhat.com>
5564
5565         fclose: don't fail on non-seekable input stream
5566         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
5567         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
5568         since fflush is allowed to fail in that case.
5569
5570 2011-04-30  Bruno Haible  <bruno@clisp.org>
5571
5572         dup3: cleanup
5573         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
5574
5575 2011-04-30  Bruno Haible  <bruno@clisp.org>
5576
5577         netdb: Make it work in C++ mode.
5578         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
5579         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
5580         module.
5581         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
5582         gl_MODULE_INDICATOR_FOR_TESTS.
5583         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
5584         * modules/netdb-c++-tests: New file.
5585         * tests/test-netdb-c++.cc: New file.
5586
5587 2011-04-30  Bruno Haible  <bruno@clisp.org>
5588
5589         New modules 'vfscanf', 'vscanf'.
5590         * modules/vfscanf: New file.
5591         * modules/vscanf: New file.
5592         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
5593         here.
5594         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
5595         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
5596
5597 2011-04-30  Bruno Haible  <bruno@clisp.org>
5598
5599         passfd: Add comments.
5600         * lib/passfd.c: Add comments about platforms.
5601
5602 2011-04-30  Bruno Haible  <bruno@clisp.org>
5603
5604         sys_uio: Make <sys/uio.h> self-contained.
5605         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
5606         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
5607
5608 2011-04-30  Bruno Haible  <bruno@clisp.org>
5609
5610         sys_socket: Ensure 'struct iovec' definition.
5611         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
5612         <sys/socket.h>.
5613         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
5614
5615 2011-04-30  Bruno Haible  <bruno@clisp.org>
5616
5617         sys_uio: Protect definition of 'struct iovec'.
5618         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
5619         it as a C struct.
5620
5621 2011-04-30  Bruno Haible  <bruno@clisp.org>
5622
5623         manywarnings: fix indentation
5624         * m4/manywarnings.m4: Indent by 2 spaces consistently.
5625
5626 2011-04-30  Pádraig Brady <P@draigBrady.com>
5627
5628         manywarnings: add -Wno-missing-field-initializers if needed.
5629         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
5630         option if it's needed to allow initialization with { 0, }
5631
5632 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
5633
5634         announce-gen: cosmetic improvement
5635         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
5636
5637 2011-04-29  Jim Meyering  <meyering@redhat.com>
5638
5639         vc-list-files: indent with spaces, not TABs
5640         * build-aux/vc-list-files: Convert leading TABs to spaces,
5641         to match the style of most other files in gnulib.
5642
5643         announce-gen: indent with spaces, not TABs
5644         * build-aux/announce-gen: Convert all TABs to spaces, to match
5645         the style of most other files in gnulib.
5646
5647 2011-04-29  Eric Blake  <eblake@redhat.com>
5648
5649         quotearg: avoid uninitialized variable use
5650         * lib/quotearg.c (quoting_options_from_style): Initialize
5651         remaining fields, and ensure that custom styles are only used via
5652         quoting_options rather than quoting_style.
5653
5654 2011-04-29  Jim Meyering  <meyering@redhat.com>
5655
5656         maint.mk: remove unused VC-tag variable
5657         * top/maint.mk (VC-tag): Remove unused variable.
5658
5659 2011-04-29  Bruno Haible  <bruno@clisp.org>
5660
5661         netdb: fix gai_strerror replacements
5662         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
5663         * modules/netdb: Substitute it.
5664
5665 2011-04-29  Jim Meyering  <meyering@redhat.com>
5666
5667         test-getcwd.c: avoid new set-but-not-used warning
5668         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
5669         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
5670         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
5671         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
5672
5673         test-hash.c: avoid a new shadowing warning
5674         * tests/test-hash.c (main): Don't shadow "dup".
5675
5676 2011-04-28  Eric Blake  <eblake@redhat.com>
5677
5678         getaddrinfo: fix gai_strerror signature
5679         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
5680         and work around mingw with UNICODE defined.
5681         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
5682         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
5683         * modules/netdb (Makefile.am): Substitute it.
5684         * lib/netdb.in.h (gai_strerror): Declare replacement.
5685         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
5686         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
5687         the fix.
5688
5689         getsockopt: avoid compiler warning
5690         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
5691         Reported by Matthias Bolte.
5692
5693         tests: drop unused link dependency
5694         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
5695         * modules/dirent-safer-tests (Makefile.am): Likewise.
5696         * modules/fdopendir-tests (Makefile.am): Likewise.
5697         * modules/mkfifoat-tests (Makefile.am): Likewise.
5698         * modules/openat-safer-tests (Makefile.am): Likewise.
5699         * modules/openat-tests (Makefile.am): Likewise.
5700         * modules/readlinkat-tests (Makefile.am): Likewise.
5701         * modules/symlinkat-tests (Makefile.am): Likewise.
5702         * modules/linkat-tests (Makefile.am): Likewise.
5703         (Depends-on): Switch to filenamecat-lgpl.
5704         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
5705         LIBINTL.
5706         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
5707         * tests/test-linkat.c (main): Don't require xalloc.
5708
5709         hash, mgetgroups: drop xalloc dependency
5710         * lib/hash.c (includes): Adjust includes.
5711         * lib/mgetgroups.c (includes): Likewise.
5712         (xgetgroups): Move...
5713         * lib/xgetgroups.c: ...to new file.
5714         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
5715         * modules/xgetgroups: New file, split from...
5716         * modules/mgetgroups: ...here.
5717         (Depends-on): Add xalloc-oversized.
5718         * modules/hash (Depends-on): Likewise.
5719         * modules/hash-tests (Depends-on): Drop xalloc.
5720         (test_hash_LDADD): Drop unused library.
5721         * tests/test-hash.c (main): Break xalloc dependency.
5722         (includes): Drop unused include.
5723
5724         xalloc-oversized: new module
5725         * modules/xalloc-oversized: New module.
5726         * modules/xalloc (Depends-on): Add it.
5727         * lib/xalloc.h (xalloc_oversized): Move...
5728         * lib/xalloc-oversized.h: ...into new file.
5729
5730         utimecmp: drop dependency on xmalloc
5731         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
5732         due to memory pressure.
5733         * modules/utimecmp (Depends-on): Drop xalloc.
5734
5735 2011-04-27  Eric Blake  <eblake@redhat.com>
5736
5737         getcwd: fix mingw bugs
5738         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
5739         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
5740         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
5741
5742 2011-04-27  Bruno Haible  <bruno@clisp.org>
5743
5744         mkstemps: Ensure declaration on MacOS X 10.5.
5745         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
5746         * doc/glibc-functions/mkstemps.texi: Document header file problem on
5747         MacOS X.
5748
5749 2011-04-27  Bruno Haible  <bruno@clisp.org>
5750
5751         mkstemp: More documentation.
5752         * doc/posix-functions/mkstemp.texi: Document header file problem on
5753         MacOS X.
5754
5755 2011-04-27  Bruno Haible  <bruno@clisp.org>
5756
5757         mkstemp: Tweak configure message when cross-compiling.
5758         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
5759         result as a guess.
5760
5761 2011-04-27  Bruno Haible  <bruno@clisp.org>
5762
5763         clean-temp: Clarify what it does.
5764         * lib/clean-temp.h: Add more comments.
5765         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
5766         module.
5767         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
5768         * doc/glibc-functions/mkstemps.texi: Likewise.
5769         * doc/glibc-functions/mkostemps.texi: Likewise.
5770
5771 2011-04-27  Eric Blake  <eblake@redhat.com>
5772
5773         fchdir: avoid extra chdir and fix test
5774         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
5775         getcwd-lgpl.
5776         * lib/fchdir.c (get_name): Any absolute name will do; it does not
5777         have to be canonical.
5778         (canonicalize_file_name): Drop unused macro.
5779         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
5780
5781         filenamecat-lgpl: fix licence
5782         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
5783         when it was first created.
5784
5785         linkat, renameat: add missing dependency
5786         * modules/linkat (Depends-on): Require getcwd-lgpl.
5787         * modules/renameat (Depends-on): Likewise.
5788
5789         tests: reduce dependencies
5790         * tests/test-linkat.c (main): Use lighter-weight getcwd.
5791         * tests/test-renameat.c (main): Likewise.
5792         * modules/linkat-tests (Depends-on): Relax dependency.
5793         * modules/renameat-tests (Depends-on): Likewise.
5794         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
5795         dependency explicit.
5796
5797         save-cwd: reduce default dependency
5798         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
5799         * lib/save-cwd.c: Update comments.
5800         * NEWS: Document the semantic change.
5801
5802         getcwd: enhance tests
5803         * tests/test-getcwd-lgpl.c: New file, taken from...
5804         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
5805         repeat long path stress tests from m4 probe.
5806         * modules/getcwd-lgpl-tests: New module.
5807         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
5808         * m4/getcwd-abort-bug.m4: Update comment.
5809         * m4/getcwd-path-max.m4: Likewise.
5810
5811         getcwd-lgpl: new module
5812         * modules/getcwd-lgpl: New module.
5813         * lib/getcwd-lgpl.c: New file.
5814         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5815         * MODULES.html.sh (lacking POSIX:2008): Likewise.
5816         * modules/getcwd (configure.ac): Set C witness.
5817         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
5818
5819         getcwd: tweak comments
5820         * m4/getcwd-abort-bug.m4: Fix comments.
5821         * m4/getcwd-path-max.m4: Likewise.
5822         * m4/getcwd.m4: Likewise.
5823
5824 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
5825         and Eric Blake  <eblake@redhat.com>
5826
5827         mkstemp: replace if system version uses wrong permissions
5828         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
5829         read/write mode bits set in file created by mkstemp.
5830         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
5831
5832 2011-04-27  Eric Blake  <eblake@redhat.com>
5833
5834         passfd: avoid compiler warning
5835         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
5836         Reported by Laine Stump.
5837
5838 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
5839
5840         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
5841         required by the NetBSD (and perhaps other 4.4BSD derived) join.
5842
5843 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
5844         and Eric Blake  <eblake@redhat.com>
5845
5846         mkstemp: mention clean-temp module
5847         * lib/mkstemp.c: Add comment.
5848         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
5849
5850 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5851
5852         inttypes: also provide default values for 32-bit tests
5853         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
5854         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
5855
5856 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5857
5858         strtoumax: remove dependency on strtoimax
5859         This is like the strtoull change of yesterday.
5860         * modules/strtoumax (Files): Add lib/strtoimax.c.
5861         (Depends-on): Remove strtoimax and add verify.
5862
5863         inttypes-incomplete: new module
5864         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
5865         all but the PRI* and SCN* parts of gl_INTTYPES_H.
5866         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
5867         of gl_INTTYPES_H.
5868         (gl_INTTYPES_H): Rewrite in terms of these new macros.
5869         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
5870         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
5871         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
5872         * modules/strtoumax, modules/xstrtol (Depends-on):
5873         Depend on inttypes-incomplete, not inttypes.
5874         * modules/inttypes-incomplete: New module, containing the contents
5875         of the old modules/inttypes module, except that the Files: section
5876         omits m4/inttypes-pri.m4, and the configure.ac section invokes
5877         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
5878         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
5879         (Depends-on): Depend only on inttypes-incomplete.
5880         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
5881
5882         inttypes: omit now-redundant strtoimax and strtoumax work
5883         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
5884         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
5885
5886         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
5887         This supports apps that need pointers to strtoimax and strtoumax,
5888         and ports to HP-UX 11.00 64.bit, which has macros that expand to
5889         nonexistent functions.  See
5890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
5891         et seq.
5892         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
5893         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
5894         a macro.
5895         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
5896
5897 2011-04-25  Simon Josefsson  <simon@josefsson.org>
5898
5899         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
5900
5901 2011-04-25  Bruno Haible  <bruno@clisp.org>
5902
5903         strtol, strtoul: Mark modules as obsolete.
5904         * modules/strtol (Status, Notice): New sections.
5905         * modules/strtoul (Status, Notice): New sections.
5906
5907 2011-04-25  Bruno Haible  <bruno@clisp.org>
5908
5909         strtod: Remove check for strtod, unless supporting old platforms.
5910         * modules/strtod-obsolete: New file.
5911         * m4/strtod-obsolete.m4: New file.
5912         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
5913         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
5914         * modules/strtod (Depends-on): Add strtod-obsolete.
5915         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
5916
5917 2011-04-25  Bruno Haible  <bruno@clisp.org>
5918
5919         strcase: Make module obsolete.
5920         * modules/strcase (Status, Notice): New sections.
5921
5922 2011-04-25  Bruno Haible  <bruno@clisp.org>
5923
5924         dup2: Remove check for dup2, unless supporting old obsolete platforms.
5925         * modules/dup2-obsolete: New file.
5926         * m4/dup2-obsolete.m4: New file.
5927         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
5928         gl_FUNC_DUP2_OBSOLETE is not also defined.
5929         * modules/dup2 (Depends-on): Add dup2-obsolete.
5930         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
5931
5932 2011-04-25  Bruno Haible  <bruno@clisp.org>
5933
5934         strnlen: Avoid memchr related link error on old obsolete platforms.
5935         * modules/memchr-obsolete: New file.
5936         * m4/memchr-obsolete.m4: New file.
5937         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
5938         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
5939         * modules/memchr (Depends-on): Add memchr-obsolete.
5940         * modules/strnlen (Depends-on): Likewise.
5941         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
5942
5943 2011-04-25  Jim Meyering  <meyering@redhat.com>
5944
5945         maint.mk: makefile_at_at_check extend and clean up
5946         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
5947         in addition to */Makefile.am.
5948         Exempt legitimate uses of @VAR@ notation, e.g.,
5949         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
5950         Remove obsolete coreutils-specific comment.
5951         Prompted by discussion here:
5952         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
5953
5954 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5955
5956         strtoul: remove dependency on strtol
5957         This is so that 'configure' need not check for strtol merely because
5958         the application needs strtoul.
5959         * modules/strtoul (Files): Add lib/strtol.c.
5960         (Depends-on): Remove strtol.
5961
5962         strtoull: remove dependency on strtoul
5963         This is like the strtoll change.
5964         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
5965         (Depends-on): Remove strtoul.
5966
5967         strtoll: remove dependency on strtol
5968         This is so that 'configure' need not check for strtol merely because
5969         the application needs strtoll.
5970         * modules/strtoll (Files): Add lib/strtol.c.
5971         (Depends-on): Remove strtol.
5972
5973 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5974
5975         inttypes: Move some configure check to module 'imaxdiv'.
5976         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
5977         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
5978         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
5979
5980 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5981
5982         inttypes: Move some configure check to module 'imaxabs'.
5983         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
5984         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
5985         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
5986
5987 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5988
5989         inttypes: Remove configure tests that are not needed since 2009-12-31.
5990         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
5991         gl_cv_header_working_inttypes_h.
5992
5993 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5994
5995         * modules/strnlen (Depends-on): Remove memchr.
5996         The strnlen implementation doesn't need the memchr module's fixes; see
5997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
5998
5999         strtol: remove dependency on wchar
6000         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
6001         * modules/strtol (Depends-on): Remove wchar.
6002
6003 2011-04-21  Eric Blake  <eblake@redhat.com>
6004
6005         passfd: fix test regression on Linux
6006         * modules/passfd-tests (configure.ac): Correct socketpair check.
6007
6008         passfd: speed up configure and drop unused code
6009         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
6010         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
6011         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
6012         Instead of probing at configure for unix_scm_rights_bsd44_way,
6013         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
6014         check to a struct member probe.
6015         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
6016         (sendfd, recvfd): Update preprocessor checks.
6017         * modules/passfd (Files): Reflect rename, and drop unused file.
6018         (Depends-on): Drop unused dependency.
6019
6020         passfd: allow compilation on mingw
6021         * modules/sys_socket (Depends-on): Add sys_uio.
6022         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
6023         iovec and a minimal struct msghdr.
6024         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
6025         * tests/test-sys_socket.c (main): Enhance test.
6026         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
6027         guaranteed to provide what we need.
6028         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
6029         * modules/passfd-tests (Depends-on): Add sys_wait.
6030         * tests/test-passfd.c (main): Skip test on mingw, for now.
6031         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
6032         partial 'struct msghdr' implementation.
6033
6034         sys_uio: new module
6035         * modules/sys_uio: New module.
6036         * modules/sys_uio-tests: Likewise.
6037         * lib/sys_uio.in.h: New file.
6038         * m4/sys_uio_h.m4: Likewise.
6039         * tests/test-sys_uio.c: Likewise.
6040         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
6041         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
6042
6043 2011-04-20  Jim Meyering  <meyering@redhat.com>
6044
6045         useless-if-before-free: avoid false-positive
6046         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
6047         disjunct so that it too requires a terminating ";".  Without that,
6048         this script would identify as useless one statement from gcc that
6049         was not:
6050           if (aligned_ptr)
6051             free (((void **) aligned_ptr) [-1]);
6052
6053 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
6054
6055         doc: update users.txt.
6056         * users.txt: Add barcode.
6057
6058 2011-04-19  Bruno Haible  <bruno@clisp.org>
6059
6060         ioctl: Remove link dependency on native Windows.
6061         * lib/fd-hook.h: Renamed from lib/close-hook.h.
6062         (gl_close_fn, gl_ioctl_fn): New types.
6063         (struct fd_hook): Renamed from struct close_hook. Change type of
6064         private_close_fn field. Add private_ioctl_fn field.
6065         (close_hook_fn): Add parameter for primary close method.
6066         (execute_close_hooks, execute_all_close_hooks): Likewise.
6067         (ioctl_hook_fn): New type.
6068         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
6069         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6070         argument.
6071         (unregister_fd_hook): Renamed from unregister_close_hook.
6072         * lib/fd-hook.c: Renamed from lib/close-hook.c.
6073         Don't include <unistd.h>.
6074         (close): Remove undef.
6075         (anchor): Update.
6076         (execute_close_hooks): Add argument for primary close method.
6077         (execute_all_close_hooks): Likewise.
6078         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
6079         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
6080         argument. Allow each argument to be NULL.
6081         (unregister_fd_hook): Renamed from unregister_close_hook.
6082         * lib/close.c (rpl_close): Pass 'close' function pointer to
6083         execute_all_close_hooks.
6084         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
6085         (primary_ioctl): New function.
6086         (ioctl): Don't call ioctlsocket here. Instead, call
6087         execute_all_ioctl_hooks.
6088         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
6089         close method.
6090         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
6091         (fd_sockets_hook): Renamed from close_sockets_hook.
6092         (gl_sockets_startup, gl_sockets_cleanup): Update.
6093         * modules/fd-hook: Renamed from modules/close-hook. Update.
6094         * modules/close (Depends-on): Add fd-hook, remove close-hook.
6095         * modules/sockets (Depends-on): Likewise.
6096         * modules/ioctl (Depends-on): Add fd-hook.
6097         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
6098         GNULIB_SOCKET.
6099
6100 2011-04-19  Bruno Haible  <bruno@clisp.org>
6101
6102         Move the support of O_NONBLOCK in open() to the 'open' module.
6103         * modules/nonblocking (Depends-on): Remove 'open'.
6104         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
6105         gl_cv_have_open_O_NONBLOCK.
6106         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
6107         O_NONBLOCK support.
6108         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
6109
6110 2011-04-17  Bruno Haible  <bruno@clisp.org>
6111
6112         pipe2: Simplify code.
6113         * lib/pipe2.c (pipe2): Reduce code duplication.
6114
6115 2011-04-17  Bruno Haible  <bruno@clisp.org>
6116
6117         nonblocking: Add comment.
6118         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
6119
6120 2011-04-17  Bruno Haible  <bruno@clisp.org>
6121
6122         nonblocking: Add tests for sockets.
6123         * tests/test-nonblocking-socket.sh: New file.
6124         * tests/test-nonblocking-socket-main.c: New file.
6125         * tests/test-nonblocking-socket-child.c: New file.
6126         * tests/test-nonblocking-socket.h: New file.
6127         * tests/socket-server.h: New file.
6128         * tests/socket-client.h: New file.
6129         * modules/nonblocking-socket-tests: New file.
6130         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
6131
6132 2011-04-17  Bruno Haible  <bruno@clisp.org>
6133
6134         nonblocking: Add tests for pipes.
6135         * tests/test-nonblocking-pipe.sh: New file.
6136         * tests/test-nonblocking-pipe-main.c: New file.
6137         * tests/test-nonblocking-pipe-child.c: New file.
6138         * tests/test-nonblocking-pipe.h: New file.
6139         * tests/test-nonblocking-writer.h: New file.
6140         * tests/test-nonblocking-reader.h: New file.
6141         * tests/test-nonblocking-misc.h: New file.
6142         * modules/nonblocking-pipe-tests: New file.
6143         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
6144
6145 2011-04-16  Bruno Haible  <bruno@clisp.org>
6146
6147         gettext: Clarify the needed programmer actions.
6148         * modules/gettext (Notice): New field.
6149         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
6150
6151 2011-04-16  Bruno Haible  <bruno@clisp.org>
6152
6153         strchrnul: Tweak last commit.
6154         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
6155         bug.
6156         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
6157         as in _GL_FUNCDECL_SYS.
6158         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
6159         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
6160
6161 2011-04-15  Eric Blake  <eblake@redhat.com>
6162
6163         strchrnul: work around cygwin bug
6164         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
6165         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
6166         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
6167         * modules/string (Makefile.am): Substitute it.
6168         * lib/string.in.h (strchrnul): Use it.
6169
6170 2011-04-15  Bruno Haible  <bruno@clisp.org>
6171
6172         Don't require lib/stdio-write.c when only module 'stdio' is used.
6173         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
6174         invocation.
6175         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
6176
6177 2011-04-14  Bruno Haible  <bruno@clisp.org>
6178
6179         Support non-blocking pipe I/O in read() on native Windows.
6180         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
6181         (read): New declaration.
6182         * lib/read.c: New file.
6183         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
6184         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
6185         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
6186         vscanf): New declarations.
6187         * lib/stdio-read.c: New file.
6188         * m4/read.m4: New file.
6189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
6190         REPLACE_READ.
6191         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
6192         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6193         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
6194         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
6195         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
6196         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6197         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6198         * modules/read: New file.
6199         * modules/nonblocking (Files): Add lib/stdio-read.c.
6200         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
6201         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
6202         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
6203         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
6204         * modules/pread (Depends-on): Add read.
6205         * modules/safe-read (Depends-on): Likewise.
6206         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
6207         gets, scanf, vfscanf, vscanf): Verify signatures.
6208         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
6209         problem with non-blocking pipes.
6210         * doc/posix-functions/fgetc.texi: Likewise.
6211         * doc/posix-functions/fgets.texi: Likewise.
6212         * doc/posix-functions/fread.texi: Likewise.
6213         * doc/posix-functions/fscanf.texi: Likewise.
6214         * doc/posix-functions/getc.texi: Likewise.
6215         * doc/posix-functions/getchar.texi: Likewise.
6216         * doc/posix-functions/gets.texi: Likewise.
6217         * doc/posix-functions/scanf.texi: Likewise.
6218         * doc/posix-functions/vfscanf.texi: Likewise.
6219         * doc/posix-functions/vscanf.texi: Likewise.
6220
6221 2011-04-14  Bruno Haible  <bruno@clisp.org>
6222
6223         Support non-blocking pipe I/O in write() on native Windows.
6224         * lib/write.c (rpl_write): Split a write request that failed merely
6225         because the byte count was larger than the pipe buffer's size.
6226         * doc/posix-functions/write.texi: Mention the problem with large byte
6227         counts.
6228
6229 2011-04-14  Bruno Haible  <bruno@clisp.org>
6230
6231         wchar: Ensure that wchar_t gets defined on uClibc.
6232         * lib/wchar.in.h: On uClibc, include <stddef.h>.
6233         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
6234
6235 2011-04-13  Bruno Haible  <bruno@clisp.org>
6236
6237         safe-write, full-read: Avoid unnecessary compilation units.
6238         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
6239         (Depends-on): Remove safe-read. Add ssize_t.
6240         * modules/full-read (Files): Add lib/full-write.c.
6241         (Depends-on): Add full-write.
6242
6243 2011-04-13  Bruno Haible  <bruno@clisp.org>
6244
6245         Support non-blocking pipe I/O and SIGPIPE in pwrite().
6246         * modules/pwrite (Depends-on): Add 'write'.
6247
6248 2011-04-13  Bruno Haible  <bruno@clisp.org>
6249
6250         Support non-blocking pipe I/O in write() on native Windows.
6251         * lib/unistd.in.h (write): Enable replacement also if
6252         GNULIB_UNISTD_H_NONBLOCKING is 1.
6253         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
6254         (rpl_write): When failing to write on a non-blocking pipe, change
6255         errno from ENOSPC to EAGAIN.
6256         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
6257         putchar, puts, vfprintf, vprintf): Enable replacement also if
6258         GNULIB_STDIO_H_NONBLOCKING is 1.
6259         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
6260         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
6261         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
6262         CALL_WITH_SIGPIPE_EMULATION.
6263         (CALL_WITH_SIGPIPE_EMULATION): Use them.
6264         * m4/nonblocking.m4: New file.
6265         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
6266         for non-blocking I/O support.
6267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6268         GNULIB_UNISTD_H_NONBLOCKING.
6269         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
6270         required for non-blocking I/O support.
6271         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
6272         * modules/nonblocking (Files): Add m4/nonblocking.m4,
6273         lib/stdio-write.c, m4/asm-underscore.m4.
6274         (Depends-on): Add stdio, unistd.
6275         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
6276         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
6277         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
6278         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
6279         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
6280         problem with non-blocking pipes.
6281         * doc/posix-functions/fputc.texi: Likewise.
6282         * doc/posix-functions/fputs.texi: Likewise.
6283         * doc/posix-functions/fwrite.texi: Likewise.
6284         * doc/posix-functions/printf.texi: Likewise.
6285         * doc/posix-functions/putc.texi: Likewise.
6286         * doc/posix-functions/putchar.texi: Likewise.
6287         * doc/posix-functions/puts.texi: Likewise.
6288         * doc/posix-functions/vfprintf.texi: Likewise.
6289         * doc/posix-functions/vprintf.texi: Likewise.
6290         * doc/posix-functions/write.texi: Likewise.
6291
6292 2011-04-10  Jim Meyering  <meyering@redhat.com>
6293
6294         maint.mk: prohibit doubled words
6295         Detect them also when they're separated by a newline.
6296         There are 3 ways to customize it:
6297           - disable the test on a per file basis, as usual with rules using
6298             $(VC_LIST_EXCEPT)
6299           - replace the default doubled-word-selecting regexp (affects all files)
6300           - ignore a particular file-vs-doubled-word match
6301         I nearly used that last one to ignore the "is is" match in
6302         coreutils' NEWS file, since the text was "ls -is is ..."
6303         To do that, I would have added this line to cfg.mk:
6304           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
6305         but it would have ignored any "is is" match in NEWS.
6306         Low probability, but still...
6307         Instead, I changed the text, slightly:
6308           -  ls -is is now consistent with ls -lis in ignoring values returned
6309           +  "ls -is" is now consistent with ls -lis in ignoring values returned
6310         * top/maint.mk (prohibit_double_word_RE_): Provide default.
6311         (prohibit_doubled_word_): Define.
6312         (sc_prohibit_doubled_word): New rule.
6313         (sc_prohibit_the_the): Remove.  Subsumed by the above.
6314
6315 2011-04-10  Jim Meyering  <meyering@redhat.com>
6316
6317         maint: fix doubled-word typo in comment
6318         * m4/gethostname.m4: s/is is/it is/
6319         * m4/getdomainname.m4: Likewise.
6320
6321 2011-04-10  Jim Meyering  <meyering@redhat.com>
6322
6323         maint: remove doubled word: s/it it/it/
6324         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
6325
6326 2011-04-10  Jim Meyering  <meyering@redhat.com>
6327
6328         maint.mk: remove useless semicolon and backslash
6329         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
6330         semicolon and backslash.
6331
6332 2011-04-10  Bruno Haible  <bruno@clisp.org>
6333
6334         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
6335         * modules/stdint-tests (Depends-on): Add wchar.
6336
6337 2011-04-10  Jim Meyering  <meyering@redhat.com>
6338
6339         maint: remove doubled words in comments, e.g., s/a a/a/
6340         * lib/strptime.c (day_of_the_week): s/the the/the/
6341         * tests/test-chown.h (test_chown): s/a a/a/
6342
6343         test-chown.h: correct a cast
6344         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
6345         when the destination is a stat.st_gid.
6346
6347 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
6348
6349         getaddrinfo: Fix test for sa_len member.
6350         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
6351         include <sys/types.h> before <sys/socket.h>.
6352
6353 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
6354
6355         maint: change "can not" to "cannot"
6356         * doc/posix-functions/iconv.texi (iconv): This one crossed line
6357         boundaries.
6358
6359 2011-04-09  Jim Meyering  <meyering@redhat.com>
6360
6361         maint: change "a a" to "a"
6362         * tests/test-lchown.h (test_lchown): s/a a/a/
6363
6364         maint.mk: prohibit \<the the\>
6365         * top/maint.mk (sc_prohibit_the_the): New rule.
6366
6367         maint: fix "the the" in comment
6368         * lib/count-one-bits.h: s/the the/the/
6369
6370         maint: change "can not" to "cannot"
6371         But do not change the occurrences in maintain.texi or in
6372         build-aux/po/Makefile.in.in, which I presume comes from gettext.
6373         * doc/gnulib-tool.texi: s/can not/cannot/
6374         * doc/posix-functions/accept.texi (accept): Likewise.
6375         * doc/posix-functions/socket.texi (socket): Likewise.
6376         * lib/mbrtowc.c: Likewise.
6377
6378         maint.mk: prohibit use of "can not"
6379         * top/maint.mk (sc_prohibit_can_not): New rule.
6380         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
6381
6382 2011-04-09  Bruno Haible  <bruno@clisp.org>
6383
6384         careadlinkat: Guard against misuse of careadlinkatcwd.
6385         * lib/careadlinkat.c: Include <stdlib.h>.
6386         (careadlinkatcwd): Check that the fd argument is as expected.
6387
6388 2011-04-09  Bruno Haible  <bruno@clisp.org>
6389
6390         careadlinkat: Use common coding style.
6391         * lib/careadlinkat.c: Move gnulib includes after system includes.
6392
6393 2011-04-09  Bruno Haible  <bruno@clisp.org>
6394
6395         careadlinkat: Clarify specification.
6396         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
6397         (careadlinkatcwd): Add comment.
6398         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
6399
6400 2011-04-09  Bruno Haible  <bruno@clisp.org>
6401
6402         areadlinkat: Avoid link error on many platforms.
6403         * modules/areadlinkat (Depends-on): Add areadlink.
6404
6405 2011-04-09  Bruno Haible  <bruno@clisp.org>
6406
6407         allocator, careadlinkat: Fix double-inclusion guard.
6408         * lib/allocator.h: Fix double-inclusion guard.
6409         * lib/careadlinkat.h: Likewise.
6410
6411 2011-04-09  Bruno Haible  <bruno@clisp.org>
6412
6413         relocatable-prog-wrapper: Update after module 'areadlink' changed.
6414         * lib/relocwrapper.c: Update dependencies hierarchy.
6415         * build-aux/install-reloc: Update list of files to be compiled.
6416         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
6417         lib/allocator.[hc].
6418
6419 2011-04-08  Eric Blake  <eblake@redhat.com>
6420
6421         strftime: silence gnulib-tool warning
6422         * modules/strftime-tests (Depends-on): Drop automatic dependency.
6423
6424 2011-04-08  Bruno Haible  <bruno@clisp.org>
6425
6426         verify: Fix syntax error with GCC 4.6 in C++ mode.
6427         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
6428         (HAVE_STATIC_ASSERT): New macro.
6429         (verify_true, verify): Use 'static_assert' if it is supported and
6430         '_Static_assert' is not supported.
6431
6432 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6433
6434         allocator: New module.
6435         * modules/allocator, lib/allocator.c: New files.
6436         * lib/allocator.h (stdlib_allocator): New decl.
6437         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
6438         Remove.  Do not include <stdlib.h>.
6439         (careadlinkat): Use stdlib_allocator instead of rolling our own.
6440         * modules/careadlinkat (Files): Remove lib/allocator.h.
6441         (Depends-on): Add allocator.
6442
6443         stdlib: let modules use system malloc, realloc
6444         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
6445         if !_GL_USE_STDLIB_ALLOC.
6446         (malloc, realloc): Limit this change to a smaller scope.
6447
6448         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
6449         (malloc, realloc): Don't #undef; no longer needed.
6450         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6451         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6452         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6453         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6454         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6455         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6456         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
6457         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
6458
6459         careadlinkat: rename members to avoid problem
6460         * lib/allocator.h (struct allocator): Rename members from
6461         malloc/realloc to allocate/reallocate, to avoid problems if malloc
6462         and realloc are #define'd.  Reported by Eric Blake in
6463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
6464         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
6465
6466 2011-04-08  Eric Blake  <eblake@redhat.com>
6467
6468         nonblocking: reduce dependency
6469         * tests/test-nonblocking.c: Only test sockets when in use.
6470         * modules/nonblocking-tests (Depends-on): Drop socket.
6471         (Makefile.am): Link even if sockets are not present.
6472         * modules/pipe2-tests (Makefile.am): Likewise.
6473         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
6474
6475         pipe2: fix O_NONBLOCK support on mingw
6476         * modules/pipe2 (Depends-on): Add nonblocking.
6477         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
6478         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
6479         * tests/test-nonblocking.c (main): Likewise.
6480         * modules/pipe2-tests (Makefile.am): Avoid link failure.
6481
6482         fcntl-h: fix O_ACCMODE on cygwin
6483         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
6484         * lib/fcntl.in.h (O_ACCMODE): Fix it.
6485
6486         pipe-filter: drop O_NONBLOCK workarounds
6487         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
6488         * modules/pipe-filter-ii (Depends-on): Likewise.
6489         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
6490
6491         nonblocking: provide O_NONBLOCK for mingw
6492         * modules/nonblocking (Depends-on): Add open.
6493         (configure.ac): Set new witness macro.
6494         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
6495         * modules/fcntl-h (Makefile.am): Substitute it.
6496         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
6497         nonblocking module is in use.
6498         * lib/nonblocking.c: Adjust portability test.
6499         * lib/open.c (open): Don't let native open see gnulib flag.
6500         * tests/test-fcntl-h.c (main): Enhance test.
6501         * tests/test-open.h (test_open): Likewise.
6502         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
6503
6504         careadlinkat: fix compilation error on mingw
6505         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
6506         within struct allocator.
6507
6508 2011-04-06  Eric Blake  <eblake@redhat.com>
6509
6510         binary-io: relicense under LGPLv2+
6511         * modules/binary-io (License): Relax to LGPLv2+.
6512         Requested for libvirt, and required by pipe2.
6513
6514 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6515
6516         verify: use _Static_assert if available
6517         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
6518         (verify_true, verify): Use it if available.  This generates better
6519         diagnostics with GCC 4.6.0 and later.
6520
6521 2011-04-05  Bruno Haible  <bruno@clisp.org>
6522
6523         Remove leftover generated .h files after config.status changed.
6524
6525         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
6526         GL_GENERATE_ALLOCA_H.
6527         * modules/alloca-opt (Makefile.am): Remove alloca.h if
6528         GL_GENERATE_ALLOCA_H evaluates to false.
6529
6530         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
6531         GL_GENERATE_ARGZ_H.
6532         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
6533         evaluates to false.
6534
6535         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
6536         GL_GENERATE_BYTESWAP_H.
6537         * modules/byteswap (Makefile.am): Remove byteswap.h if
6538         GL_GENERATE_BYTESWAP_H evaluates to false.
6539
6540         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
6541         GL_GENERATE_ERRNO_H.
6542         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
6543         evaluates to false.
6544
6545         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
6546         GL_GENERATE_FLOAT_H.
6547         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
6548         evaluates to false.
6549
6550         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
6551         GL_GENERATE_FNMATCH_H.
6552         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
6553         GL_GENERATE_FNMATCH_H evaluates to false.
6554
6555         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
6556         GL_GENERATE_GLOB_H.
6557         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
6558         evaluates to false.
6559
6560         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
6561         automake conditional GL_GENERATE_ICONV_H.
6562         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
6563         evaluates to false.
6564
6565         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
6566         GL_GENERATE_NETINET_IN_H.
6567         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
6568         GL_GENERATE_NETINET_IN_H evaluates to false.
6569
6570         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
6571         conditional GL_GENERATE_PTHREAD_H.
6572         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
6573         * modules/pthread (Makefile.am): Remove pthread.h if
6574         GL_GENERATE_PTHREAD_H evaluates to false.
6575
6576         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
6577         GL_GENERATE_SCHED_H.
6578         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
6579         evaluates to false.
6580
6581         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
6582         conditional GL_GENERATE_SELINUX_CONTEXT_H.
6583         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
6584         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
6585
6586         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
6587         GL_GENERATE_STDARG_H.
6588         * modules/stdarg (Makefile.am): Remove stdarg.h if
6589         GL_GENERATE_STDARG_H evaluates to false.
6590
6591         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
6592         GL_GENERATE_STDBOOL_H.
6593         * modules/stdbool (Makefile.am): Remove stdbool.h if
6594         GL_GENERATE_STDBOOL_H evaluates to false.
6595
6596         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
6597         conditional GL_GENERATE_STDDEF_H.
6598         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
6599         * modules/stddef (Makefile.am): Remove stddef.h if
6600         GL_GENERATE_STDDEF_H evaluates to false.
6601
6602         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
6603         GL_GENERATE_STDINT_H.
6604         * modules/stdint (Makefile.am): Remove stdint.h if
6605         GL_GENERATE_STDINT_H evaluates to false.
6606
6607         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
6608         GL_GENERATE_SYSEXITS_H.
6609         * modules/sysexits (Makefile.am): Remove sysexits.h if
6610         GL_GENERATE_SYSEXITS_H evaluates to false.
6611
6612         Reported by Karl Berry and Ralf Wildenhues.
6613
6614 2011-04-05  Bruno Haible  <bruno@clisp.org>
6615
6616         Ensure to rebuild generated .h files when config.status has changed.
6617         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
6618         config.status.
6619         * modules/ctype (Makefile.am): Likewise.
6620         * modules/dirent (Makefile.am): Likewise.
6621         * modules/errno (Makefile.am): Likewise.
6622         * modules/fcntl-h (Makefile.am): Likewise.
6623         * modules/float (Makefile.am): Likewise.
6624         * modules/getopt-posix (Makefile.am): Likewise.
6625         * modules/glob (Makefile.am): Likewise.
6626         * modules/iconv-h (Makefile.am): Likewise.
6627         * modules/inttypes (Makefile.am): Likewise.
6628         * modules/langinfo (Makefile.am): Likewise.
6629         * modules/locale (Makefile.am): Likewise.
6630         * modules/math (Makefile.am): Likewise.
6631         * modules/netdb (Makefile.am): Likewise.
6632         * modules/netinet_in (Makefile.am): Likewise.
6633         * modules/poll-h (Makefile.am): Likewise.
6634         * modules/pthread (Makefile.am): Likewise.
6635         * modules/pty (Makefile.am): Likewise.
6636         * modules/sched (Makefile.am): Likewise.
6637         * modules/search (Makefile.am): Likewise.
6638         * modules/selinux-h (Makefile.am): Likewise.
6639         * modules/signal (Makefile.am): Likewise.
6640         * modules/spawn (Makefile.am): Likewise.
6641         * modules/stdarg (Makefile.am): Likewise.
6642         * modules/stdbool (Makefile.am): Likewise.
6643         * modules/stddef (Makefile.am): Likewise.
6644         * modules/stdint (Makefile.am): Likewise.
6645         * modules/stdio (Makefile.am): Likewise.
6646         * modules/stdlib (Makefile.am): Likewise.
6647         * modules/string (Makefile.am): Likewise.
6648         * modules/strings (Makefile.am): Likewise.
6649         * modules/sys_file (Makefile.am): Likewise.
6650         * modules/sys_ioctl (Makefile.am): Likewise.
6651         * modules/sys_select (Makefile.am): Likewise.
6652         * modules/sys_socket (Makefile.am): Likewise.
6653         * modules/sys_stat (Makefile.am): Likewise.
6654         * modules/sys_time (Makefile.am): Likewise.
6655         * modules/sys_times (Makefile.am): Likewise.
6656         * modules/sys_utsname (Makefile.am): Likewise.
6657         * modules/sys_wait (Makefile.am): Likewise.
6658         * modules/sysexits (Makefile.am): Likewise.
6659         * modules/termios (Makefile.am): Likewise.
6660         * modules/time (Makefile.am): Likewise.
6661         * modules/unistd (Makefile.am): Likewise.
6662         * modules/wchar (Makefile.am): Likewise.
6663         * modules/wctype-h (Makefile.am): Likewise.
6664         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
6665
6666 2011-04-05  Bruno Haible  <bruno@clisp.org>
6667
6668         pipe2: Relicense under LGPLv2+.
6669         * modules/pipe2 (License): Change to LGPLv2+.
6670         Requested by Eric Blake, for libvirt.
6671
6672 2011-04-05  Bruce Korb  <bkorb@gnu.org>
6673
6674         bootstrap: compute gnulib_extra_files after updating build_aux
6675         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
6676         change build_aux or also supply gnulib_extra_files.  Handle correctly.
6677
6678 2011-04-05  Eric Blake  <eblake@redhat.com>
6679
6680         bootstrap: preserve git whitelist item sorting
6681         * build-aux/bootstrap (sort_patterns): New function.
6682         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
6683
6684 2011-04-05  Simon Josefsson  <simon@josefsson.org>
6685
6686         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
6687         sc_space_tab check.
6688
6689 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6690
6691         areadlink, areadlinkat: rewrite in terms of careadlinkat
6692         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
6693         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
6694         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
6695         (malloc, realloc): Remove #undefs.
6696         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
6697         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
6698         readlink, ssize_t, stdint, unistd.
6699         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
6700         areadlink, stdint.
6701
6702         careadlinkat: new module
6703         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
6704         * modules/careadlinkat: New files, written by me with
6705         a review and feedback from Ben Pfaff in
6706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
6707
6708 2011-04-01  Bruno Haible  <bruno@clisp.org>
6709
6710         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
6711         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
6712         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
6713         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
6714         Reported by Bruce Korb <bruce.korb@gmail.com>.
6715
6716 2011-04-01  Bruno Haible  <bruno@clisp.org>
6717
6718         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
6719         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
6720         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
6721         * modules/wcpcpy (Depends-on): Add extensions.
6722         * modules/wcpncpy (Depends-on): Likewise.
6723         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
6724         systems.
6725         * doc/posix-functions/wcpncpy.texi: Likewise.
6726         * doc/posix-functions/wcwidth.texi: Likewise.
6727
6728 2011-03-31  Eric Blake  <eblake@redhat.com>
6729
6730         nonblocking: fix mingw test failures
6731         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
6732         non-blocking flag on regular file.
6733         (get_nonblocking_flag): Set errno on invalid fd.
6734         * tests/test-nonblocking.c (main): Avoid test failure on
6735         directories if fchdir is not active.
6736         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
6737
6738 2011-03-31  Bruno Haible  <bruno@clisp.org>
6739
6740         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
6741         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
6742         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
6743         Reported by Simon Josefsson <simon@josefsson.org>.
6744
6745 2011-03-31  Bruno Haible  <bruno@clisp.org>
6746         and Eric Blake  <eblake@redhat.com>
6747
6748         nonblocking: new module
6749         * modules/nonblocking: New module.
6750         * modules/nonblocking-tests: Likewise.
6751         * lib/nonblocking.h: New file.
6752         * lib/nonblocking.c: Likewise.
6753         * tests/test-nonblocking.c: New test.
6754         * lib/ioctl.c (ioctl) [mingw]: Update comment.
6755
6756 2011-03-30  Bruno Haible  <bruno@clisp.org>
6757
6758         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
6759         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
6760         instead of 'printf' format for GCC >= 4.4.
6761         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
6762         (fprintf, printf, vfprintf, vprintf): Declare with
6763         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
6764         the system's vfprintf() function.
6765         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
6766
6767 2011-03-30  Eric Blake  <eblake@redhat.com>
6768
6769         passfd: fix scoping bug
6770         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
6771         before sendmsg/recvmsg.
6772
6773         passfd: standardize coding conventions
6774         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
6775         can be learned at compile time.
6776         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
6777         ifdefs.
6778         (sendfd, recvfd): Follow gnulib code conventions.
6779
6780         passfd: fix incorrect sendmsg arguments
6781         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
6782         incorrect msg_controllen value.
6783         * modules/passfd-tests (Depends-on): Check for alarm.
6784         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
6785         Reported by Bastien ROUCARIES.
6786
6787 2011-03-30  Bruno Haible  <bruno@clisp.org>
6788
6789         c-strcasestr: Relicense under LGPLv2+.
6790         * modules/c-strcasestr (License): Change to LGPLv2+.
6791         Requested by Eric Blake, for libvirt.
6792
6793 2011-03-30  Simon Josefsson  <simon@josefsson.org>
6794
6795         * users.txt: Add libidn2.  Fix libtasn1 link.
6796
6797 2011-03-30  Jim Meyering  <meyering@redhat.com>
6798
6799         tests: readlink* ("",... fails with EINVAL on newer kernels
6800         readlink and readlinkat have typically failed with ENOENT for
6801         the invalid, empty file name,  "".  However, with the advent
6802         of linux-2.6.39, they fail with EINVAL.
6803         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
6804         when operating on the empty file name.
6805         * tests/test-readlink.h (test_readlink): Likewise.
6806
6807 2011-03-29  Bruno Haible  <bruno@clisp.org>
6808
6809         Relicense some modules under LGPLv2+, for libidn2.
6810         * modules/array-mergesort (License): Change to LGPLv2+.
6811         * modules/c-strcaseeq (License): Likewise.
6812         * modules/striconveh (License): Likewise.
6813         * modules/striconveha (License): Likewise.
6814         * modules/uniconv/base (License): Likewise.
6815         * modules/uniconv/u8-conv-from-enc (License): Likewise.
6816         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
6817         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
6818         * modules/unictype/base (License): Likewise.
6819         * modules/unictype/bidiclass-of (License): Likewise.
6820         * modules/unictype/category-M (License): Likewise.
6821         * modules/unictype/category-none (License): Likewise.
6822         * modules/unictype/category-of (License): Likewise.
6823         * modules/unictype/category-test (License): Likewise.
6824         * modules/unictype/category-test-withtable (License): Likewise.
6825         * modules/unictype/combining-class (License): Likewise.
6826         * modules/unictype/joiningtype-of (License): Likewise.
6827         * modules/unictype/scripts (License): Likewise.
6828         * modules/uninorm/base (License): Likewise.
6829         * modules/uninorm/canonical-decomposition (License): Likewise.
6830         * modules/uninorm/composition (License): Likewise.
6831         * modules/uninorm/decompose-internal (License): Likewise.
6832         * modules/uninorm/decomposition-table (License): Likewise.
6833         * modules/uninorm/nfc (License): Likewise.
6834         * modules/uninorm/nfd (License): Likewise.
6835         * modules/uninorm/u32-normalize (License): Likewise.
6836         * modules/unistr/base (License): Likewise.
6837         * modules/unistr/u32-cpy (License): Likewise.
6838         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
6839         * modules/unistr/u32-to-u8 (License): Likewise.
6840         * modules/unistr/u32-uctomb (License): Likewise.
6841         * modules/unistr/u8-check (License): Likewise.
6842         * modules/unistr/u8-mblen (License): Likewise.
6843         * modules/unistr/u8-mbtouc (License): Likewise.
6844         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
6845         * modules/unistr/u8-mbtoucr (License): Likewise.
6846         * modules/unistr/u8-prev (License): Likewise.
6847         * modules/unistr/u8-strlen (License): Likewise.
6848         * modules/unistr/u8-to-u32 (License): Likewise.
6849         * modules/unistr/u8-uctomb (License): Likewise.
6850         * modules/unitypes (License): Likewise.
6851         Requested by Simon Josefsson.
6852
6853 2011-03-29  Simon Josefsson  <simon@josefsson.org>
6854
6855         lib-symbol-visibility: Add a notice.
6856         * modules/lib-symbol-visibility (Notice): New field.
6857
6858 2011-03-29  Bruno Haible  <bruno@clisp.org>
6859
6860         getaddrinfo: Doc fix.
6861         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
6862         section "fixed in Gnulib".
6863
6864 2011-03-28  Simon Josefsson  <simon@josefsson.org>
6865
6866         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
6867         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
6868
6869 2011-03-26  Bruno Haible  <bruno@clisp.org>
6870
6871         unictype/property-byname: Reduce the number of load-time relocations.
6872         * lib/unictype/pr_byname.c: Include <stdlib.h>.
6873         (UC_PROPERTY_INDEX_*): New enumeration values.
6874         (uc_property_byname): Convert an index from the lookup table to an
6875         uc_property_t.
6876         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
6877         values.
6878
6879 2011-03-26  Bruno Haible  <bruno@clisp.org>
6880
6881         unictype/property-byname: Allow omitted word separators and aliases.
6882         * lib/unictype/pr_byname.gperf: Add property names without word
6883         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
6884         for 'space'.
6885
6886 2011-03-26  Bruno Haible  <bruno@clisp.org>
6887
6888         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
6889         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
6890         also hyphens to space.
6891         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
6892         without spaces.
6893         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
6894
6895 2011-03-26  Bruno Haible  <bruno@clisp.org>
6896
6897         unictype/joiningtype-byname: Recognize long names as well.
6898         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
6899         a long name.
6900         * lib/unictype/joiningtype_byname.c: Include <string.h>,
6901         unictype/joiningtype_byname.h.
6902         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
6903         * lib/unictype/joiningtype_byname.gperf: New file.
6904         * modules/unictype/joiningtype-byname (Files): Add
6905         lib/unictype/joiningtype_byname.gperf.
6906         (Depends-on): Add gperf.
6907         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
6908         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
6909         long names.
6910
6911         Tests for module 'unictype/joiningtype-longname'.
6912         * modules/unictype/joiningtype-longname-tests: New file.
6913         * tests/unictype/test-joiningtype_longname.c: New file.
6914
6915         New module 'unictype/joiningtype-longname'.
6916         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
6917         * lib/unictype/joiningtype_longname.c: New file.
6918         * modules/unictype/joiningtype-longname: New file.
6919         * modules/unictype/joiningtype-all (Depends-on): Add
6920         unictype/joiningtype-longname.
6921
6922 2011-03-26  Bruno Haible  <bruno@clisp.org>
6923
6924         unictype/bidiclass-byname: Recognize long names as well.
6925         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
6926         name.
6927         * lib/unictype/bidi_byname.c: Include <string.h>,
6928         unictype/bidi_byname.h.
6929         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
6930         * lib/unictype/bidi_byname.gperf: New file.
6931         * modules/unictype/bidiclass-byname (Files): Add
6932         lib/unictype/bidi_byname.gperf.
6933         (Depends-on): Add gperf.
6934         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
6935         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
6936         long names.
6937
6938         Tests for module 'unictype/bidiclass-longname'.
6939         * modules/unictype/bidiclass-longname-tests: New file.
6940         * tests/unictype/test-bidi_longname.c: New file.
6941
6942         New module 'unictype/bidiclass-longname'.
6943         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
6944         * lib/unictype/bidi_longname.c: New file.
6945         * modules/unictype/bidiclass-longname: New file.
6946         * modules/unictype/bidiclass-all (Depends-on): Add
6947         unictype/bidiclass-longname.
6948
6949 2011-03-26  Bruno Haible  <bruno@clisp.org>
6950
6951         unictype/bidi*: Rename modules.
6952         * modules/unictype/bidiclass-all: Renamed from
6953         modules/unictype/bidicategory-all.
6954         * modules/unictype/bidiclass-name: Renamed from
6955         modules/unictype/bidiclass-name.
6956         (Description): Update.
6957         * modules/unictype/bidiclass-name-tests: Renamed from
6958         modules/unictype/bidicategory-name-tests.
6959         * modules/unictype/bidiclass-byname: Renamed from
6960         modules/unictype/bidicategory-byname.
6961         (Description): Update.
6962         * modules/unictype/bidiclass-byname-tests: Renamed from
6963         modules/unictype/bidicategory-byname-tests.
6964         * modules/unictype/bidiclass-of: Renamed from
6965         modules/unictype/bidicategory-of.
6966         (Description): Update.
6967         * modules/unictype/bidiclass-of-tests: Renamed from
6968         modules/unictype/bidicategory-of-tests.
6969         * modules/unictype/bidiclass-test: Renamed from
6970         modules/unictype/bidicategory-test.
6971         (Description): Update.
6972         * modules/unictype/bidiclass-test-tests: Renamed from
6973         modules/unictype/bidicategory-test-tests.
6974         * modules/unictype/bidicategory-all: New file, a simple redirection.
6975         * modules/unictype/bidicategory-name: Likewise.
6976         * modules/unictype/bidicategory-byname: Likewise.
6977         * modules/unictype/bidicategory-of: Likewise.
6978         * modules/unictype/bidicategory-test: Likewise.
6979         * modules/unictype/property-bidi-* (Dependencies): Update.
6980         * lib/unictype/bidi_*.c: Update comment.
6981
6982 2011-03-26  Bruno Haible  <bruno@clisp.org>
6983
6984         unictype/bidi*: Rename functions, part 2.
6985         * modules/unictype/bidicategory-name (configure.ac): Update required
6986         libunistring version.
6987         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
6988
6989 2011-03-25  Bruno Haible  <bruno@clisp.org>
6990
6991         New module 'unictype/combining-class-all'.
6992         * modules/unictype/combining-class-all: New file.
6993
6994         Tests for module 'unictype/combining-class-byname'.
6995         * modules/unictype/combining-class-byname-tests: New file.
6996         * tests/unictype/test-combiningclass_byname.c: New file.
6997
6998         New module 'unictype/combining-class-byname'.
6999         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
7000         * lib/unictype/combiningclass_byname.c: New file.
7001         * lib/unictype/combiningclass_byname.gperf: New file.
7002         * modules/unictype/combining-class-byname: New file.
7003
7004         Tests for module 'unictype/combining-class-longname'.
7005         * modules/unictype/combining-class-longname-tests: New file.
7006         * tests/unictype/test-combiningclass_longname.c: New file.
7007
7008         New module 'unictype/combining-class-longname'.
7009         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
7010         * lib/unictype/combiningclass_longname.c: New file.
7011         * modules/unictype/combining-class-longname: New file.
7012
7013         Tests for module 'unictype/combining-class-name'.
7014         * modules/unictype/combining-class-name-tests: New file.
7015         * tests/unictype/test-combiningclass_name.c: New file.
7016
7017         New module 'unictype/combining-class-name'.
7018         * lib/unictype.in.h (uc_combining_class_name): New declaration.
7019         * lib/unictype/combiningclass_name.c: New file.
7020         * modules/unictype/combining-class-name: New file.
7021
7022 2011-03-25  Bruno Haible  <bruno@clisp.org>
7023
7024         unictype/combining-class: Rename source files.
7025         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
7026         of unictype/combining.h.
7027         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
7028         Update.
7029         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
7030         * modules/unictype/combining-class (Description): Fix.
7031         (Files, Makefile.am): Update.
7032         * tests/unictype/test-combiningclass.c: Renamed from
7033         tests/unictype/test-combining.c.
7034         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
7035
7036 2011-03-25  Bruno Haible  <bruno@clisp.org>
7037
7038         unictype: Update list of canonical combining classes.
7039         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
7040
7041 2011-03-25  Bruno Haible  <bruno@clisp.org>
7042
7043         unictype/category-byname: Recognize long names as well.
7044         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
7045         a long name.
7046         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
7047         unictype/categ_byname.h.
7048         (UC_CATEGORY_INDEX_*): New enumeration values.
7049         (uc_general_category_byname): Use uc_general_category_lookup and
7050         convert from index to value.
7051         * lib/unictype/categ_byname.gperf: New file.
7052         * modules/unictype/category-byname (Files): Add
7053         lib/unictype/categ_byname.gperf.
7054         (Depends-on): Add gperf.
7055         (Makefile.am): Add rule for generating unictype/categ_byname.h.
7056         * tests/unictype/test-categ_byname.c (main): Test the recognition of
7057         long names.
7058
7059         Tests for module 'unictype/category-longname'.
7060         * modules/unictype/category-longname-tests: New file.
7061         * tests/unictype/test-categ_longname.c: New file.
7062
7063         New module 'unictype/category-longname'.
7064         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
7065         * lib/unictype/categ_longname.c: New file.
7066         * modules/unictype/category-longname: New file.
7067         * modules/unictype/category-all (Depends-on): Add it.
7068
7069 2011-03-25  Bruno Haible  <bruno@clisp.org>
7070
7071         Tests for module 'unictype/category-LC'.
7072         * modules/unictype/category-LC-tests: New file.
7073         * tests/unictype/test-categ_LC.c: New file, automatically generated.
7074
7075         New module 'unictype/category-LC'.
7076         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
7077         (UC_CATEGORY_LC): New declaration.
7078         (UC_CASED_LETTER): New macro.
7079         * lib/gen-uni-tables.c (is_category_LC): New function.
7080         (output_categories): Also handle category LC.
7081         (UC_CATEGORY_MASK_LC): New enumeration value.
7082         (general_category_byname): Also handle category LC.
7083         * lib/unictype/categ_LC.c: New file.
7084         * lib/unictype/categ_LC.h: New file, automatically generated.
7085         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
7086         category LC.
7087         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
7088         * modules/unictype/category-LC: New file.
7089         * modules/unictype/category-byname (Depends-on): Add
7090         unictype/category-LC.
7091         * modules/unictype/category-all (Depends-on): Likewise.
7092
7093 2011-03-25  Eric Blake  <eblake@redhat.com>
7094
7095         xmalloc: revert yesterday's regression
7096         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
7097         realloc's underlying behavior (allowing allocation of zero-size
7098         objects, especially if malloc-gnu is also in use).
7099
7100 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
7101
7102         maint.mk: add missing version to VC-tag
7103         * top/maint.mk: git tag was missing actual tag name; add it.
7104
7105         valgrind: do leak checking, and exit with code 1 on error (not 0)
7106         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
7107         to VALGRIND.
7108
7109 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
7110
7111         posix-modules: say what it does.
7112         * posix-modules: Add a line to the --help output saying what it does.
7113
7114 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7115
7116         xmalloc: Do not leak if underlying realloc is C99 compatible.
7117         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
7118         This avoids a leak on C99-based systems.  See
7119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
7120
7121 2011-03-24  Eric Blake  <eblake@redhat.com>
7122
7123         realloc: document portability problem
7124         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
7125         passing 0 size to realloc.
7126
7127 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
7128
7129         doc: update users.txt
7130         * users.txt: Add cvsps, tmpwatch
7131
7132 2011-03-23  Matt Rice  <ratmice@gmail.com>
7133
7134         doc: update users.txt
7135         * users.txt: Add gdb.
7136
7137 2011-03-23  Jim Meyering  <meyering@redhat.com>
7138
7139         doc: update users.txt
7140         Looking through matches up to the following URL (there are still
7141         several more pages), I found several projects that use gnulib:
7142         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
7143         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
7144         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
7145
7146 2011-03-22  Bruno Haible  <bruno@clisp.org>
7147
7148         unictype/bidi*: Rename functions.
7149         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
7150         uc_bidi_class, uc_is_bidi_class): New declarations.
7151         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
7152         uc_bidi_category_byname.
7153         (uc_bidi_category_byname): New function.
7154         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
7155         u_bidi_category_name.
7156         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
7157         (uc_bidi_category_name): New function.
7158         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
7159         uc_bidi_category.
7160         (uc_bidi_category): New function.
7161         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
7162         uc_is_bidi_category. Invoke uc_bidi_class.
7163         (uc_is_bidi_category): New function.
7164         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
7165         instead of uc_bidi_category_byname.
7166         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
7167         instead of uc_bidi_category_name.
7168         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
7169         uc_bidi_category.
7170         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
7171         instead of uc_is_bidi_category.
7172
7173 2011-03-21  Bruno Haible  <bruno@clisp.org>
7174
7175         New module 'unictype/joininggroup-all'.
7176         * modules/unictype/joininggroup-all: New file.
7177
7178         Tests for module 'unictype/joininggroup-of'.
7179         * modules/unictype/joininggroup-of-tests: New file.
7180         * tests/unictype/test-joininggroup_of.c: New file.
7181         * tests/unictype/test-joininggroup_of.h: New file, automatically
7182         generated by gen-uni-tables.
7183
7184         New module 'unictype/joininggroup-of'.
7185         * modules/unictype/joininggroup-of: New file.
7186         * lib/unictype/joininggroup_of.c: New file.
7187         * lib/unictype/joininggroup_of.h: New file, automatically generated by
7188         gen-uni-tables.
7189
7190         Tests for module 'unictype/joininggroup-byname'.
7191         * modules/unictype/joininggroup-byname-tests: New file.
7192         * tests/unictype/test-joininggroup_byname.c: New file.
7193
7194         New module 'unictype/joininggroup-byname'.
7195         * modules/unictype/joininggroup-byname: New file.
7196         * lib/unictype/joininggroup_byname.c: New file.
7197         * lib/unictype/joininggroup_byname.gperf: New file.
7198
7199         Tests for module 'unictype/joininggroup-name'.
7200         * modules/unictype/joininggroup-name-tests: New file.
7201         * tests/unictype/test-joininggroup_name.c: New file.
7202
7203         New module 'unictype/joininggroup-name'.
7204         * modules/unictype/joininggroup-name: New file.
7205         * lib/unictype/joininggroup_name.c: New file.
7206         * lib/unictype/joininggroup_name.h: New file.
7207
7208         New module 'unictype/joiningtype-all'.
7209         * modules/unictype/joiningtype-all: New file.
7210
7211         Tests for module 'unictype/joiningtype-of'.
7212         * modules/unictype/joiningtype-of-tests: New file.
7213         * tests/unictype/test-joiningtype_of.c: New file.
7214         * tests/unictype/test-joiningtype_of.h: New file, automatically
7215         generated by gen-uni-tables.
7216
7217         New module 'unictype/joiningtype-of'.
7218         * modules/unictype/joiningtype-of: New file.
7219         * lib/unictype/joiningtype_of.c: New file.
7220         * lib/unictype/joiningtype_of.h: New file, automatically generated by
7221         gen-uni-tables.
7222
7223         Tests for module 'unictype/joiningtype-byname'.
7224         * modules/unictype/joiningtype-byname-tests: New file.
7225         * tests/unictype/test-joiningtype_byname.c: New file.
7226
7227         New module 'unictype/joiningtype-byname'.
7228         * modules/unictype/joiningtype-byname: New file.
7229         * lib/unictype/joiningtype_byname.c: New file.
7230
7231         Tests for module 'unictype/joiningtype-name'.
7232         * modules/unictype/joiningtype-name-tests: New file.
7233         * tests/unictype/test-joiningtype_name.c: New file.
7234
7235         New module 'unictype/joiningtype-name'.
7236         * modules/unictype/joiningtype-name: New file.
7237         * lib/unictype/joiningtype_name.c: New file.
7238
7239         unictype: Add support for Arabic shaping properties.
7240         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
7241         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
7242         declarations.
7243         (UC_JOINING_GROUP_*): New enumeration values.
7244         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
7245         declarations.
7246         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
7247         (unicode_joining_type): New variable.
7248         (UC_JOINING_GROUP_*): New enumeration values.
7249         (unicode_joining_group): New variable.
7250         (fill_arabicshaping, joining_type_as_c_identifier,
7251         output_joining_type_test, output_joining_type,
7252         joining_group_as_c_identifier, output_joining_group_test,
7253         output_joining_group): New functions.
7254         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
7255         fill_arabicshaping and output_joining_type_test, output_joining_type,
7256         output_joining_group_test, output_joining_group.
7257         Reported by Simon Josefsson.
7258
7259 2011-03-21  Jim Meyering  <meyering@redhat.com>
7260
7261         strftime: fix a bug in yesterday's change
7262         * lib/strftime.c (add): Accommodate width's initial value of -1.
7263         Otherwise, nstrftime would copy uninitialized data into
7264         the result buffer.
7265
7266 2011-03-21  Jim Meyering  <meyering@redhat.com>
7267
7268         tests: add strftime-tests module
7269         * tests/test-strftime.c: New file.
7270         * modules/strftime-tests: New module.
7271
7272 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7273
7274         strftime: don't assume a byte count fits in 'int'
7275         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
7276         found this problem by static analysis, using gcc -Wstrict-overflow
7277         (GCC 4.5.2, x86-64).  This reported an optimization that depended
7278         on an integer overflow having undefined behavior, but it turns out
7279         that the argument is a size, which might not fit in 'int' anyway,
7280
7281 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7282
7283         stdio: don't require ignore_value around fwrite
7284
7285         This patch works around libc bug 11959
7286         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
7287         Without this patch, applications must often write
7288         ignore_value (fwrite (...)) even though the ignore_value is
7289         not helpful here.  It's common to write many objects, using
7290         fwrite/printf/etc., and then use ferror to detect output error.
7291
7292         I considered making this patch optional, but decided against it,
7293         because libc is obviously being inconsistent here: there is no
7294         reason libc should insist that user code must inspect fwrite
7295         return's value without also insisting that it inspect printf's,
7296         putchar's, etc.  If user code wants to have a strict style where
7297         all these functions' values are checked (so that ferror need not
7298         be checked), we could add support for that style in a new gnulib
7299         module, but in the meantime it's better to be consistent and to
7300         support common usage.
7301
7302         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
7303         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
7304         that we are compiling in checking mode, and if not C++, and
7305         if not already wrapping fwrite for some other reason.
7306         (fwrite): #define to rpl_fwrite if the latter is defined.
7307
7308 2011-03-20  Bruno Haible  <bruno@clisp.org>
7309
7310         verror: Fix compilation error introduced on 2011-02-13.
7311         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
7312         instead of __attribute__.
7313         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7314
7315 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
7316             Bruno Haible  <bruno@clisp.org>
7317
7318         socklen: do not depend on sys_socket
7319         While trying to modify Emacs to use gnulib's socklen module,
7320         I discovered a circular dependency: socklen depends on sys_socket
7321         and vice versa.  Emacs can use socklen, but it does not need
7322         sys_socket because it has its own substitute for sys/socket.h.
7323         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
7324         gl_TYPE_SOCKLEN_T.
7325         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
7326         gl_PREREQ_SYS_H_SOCKET.
7327         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
7328         gl_PREREQ_SYS_H_SOCKET.
7329         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
7330         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
7331         * modules/socklen (Depends-on): Do not depend on sys_socket.
7332         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
7333
7334 2011-03-20  Jim Meyering  <meyering@redhat.com>
7335
7336         maint.mk: sort file names *after* new transformation
7337         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
7338         prefix would have led to an unwarranted failure in GNU parted.
7339         Sort after that transformation.
7340
7341 2011-03-19  Jim Meyering  <meyering@redhat.com>
7342
7343         maint.mk: fix po-file syntax-check rule
7344         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
7345         Patch by Bruno Haible.
7346
7347 2011-03-19  Bruno Haible  <bruno@clisp.org>
7348
7349         socklen: Update comment.
7350         * m4/socklen.m4: Update comment about platforms.
7351
7352 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7353             Bruno Haible  <bruno@clisp.org>
7354
7355         inet_ntop, inet_pton: Simplify.
7356         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
7357         documented to provide socklen_t and we already depend on sys_socket.
7358         * modules/inet_pton (Depends-on): Likewise.
7359         * lib/arpa_inet.in.h: Adjust comment.
7360
7361 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7362             Bruno Haible  <bruno@clisp.org>
7363
7364         netdb: Simplify.
7365         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
7366         documented to provide socklen_t and we already depend on sys_socket.
7367         * lib/netdb.in.h: Adjust comment.
7368
7369 2011-03-19  Bruno Haible  <bruno@clisp.org>
7370
7371         sys_socket, netdb: Document problem with socklen_t.
7372         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
7373         platforms.
7374         * doc/posix-headers/netdb.texi: Likewise.
7375
7376 2011-03-18  Eric Blake  <eblake@redhat.com>
7377
7378         maint.mk: let po check work in VPATH build
7379         * top/maint.mk (po_file): Allow cfg.mk override.
7380         (sc_po_check): Allow VPATH use.
7381         Reported by Jiri Denemark.
7382
7383 2011-03-16  Jim Meyering  <meyering@redhat.com>
7384
7385         maint.mk: allow fine-grained syntax-check exclusion via Make variables
7386         Before, you would have had to create one .x-sc_ file per rule in order
7387         to exempt offending files.  Now, you may instead use a Make variable --
7388         usually defined in cfg.mk -- whose name identifies the affected rule.
7389         * top/maint.mk (_sc_excl): Define.
7390         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
7391         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
7392
7393 2011-03-13  Bruno Haible  <bruno@clisp.org>
7394
7395         ignore-value tests: Avoid warnings.
7396         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
7397         empty for gcc < 3.4.
7398
7399 2011-03-13  Bruno Haible  <bruno@clisp.org>
7400
7401         passfd: Fix link error on Solaris.
7402         * modules/passfd (Description): Correct.
7403         (Depends-on): Add socketlib.
7404         (Link): New section.
7405         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
7406
7407 2011-03-13  Bruno Haible  <bruno@clisp.org>
7408
7409         passfd: Fix link error on AIX 5.2.
7410         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
7411
7412 2011-03-13  Bruno Haible  <bruno@clisp.org>
7413
7414         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
7415         * lib/sys_socket.in.h: Include <stddef.h>.
7416         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
7417         CMSG_FIRSTHDR. Remove unused variable.
7418
7419 2011-03-13  Bruno Haible  <bruno@clisp.org>
7420
7421         passfd: Fix compilation error on OpenBSD.
7422         * lib/passfd.c: Include <sys/uio.h>.
7423
7424 2011-03-13  Bruno Haible  <bruno@clisp.org>
7425
7426         passfd test: Fix warnings.
7427         * tests/test-passfd.c: Include <sys/wait.h>.
7428         (main): Fix typo.
7429
7430 2011-03-13  Bruno Haible  <bruno@clisp.org>
7431
7432         passfd module, part 4, tweaks.
7433         * tests/test-passfd.c: Reorder includes.
7434         (main): Fix perror and printf calls.
7435
7436 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7437
7438         passfd module, part 4.
7439         * modules/passfd-tests: New file.
7440         * tests/test-passfd.c: New file.
7441
7442 2011-03-13  Jim Meyering  <meyering@redhat.com>
7443
7444         Makefile: rely on GNU make; derive syntax-check rule names
7445         Rather than requiring that each sc_ rule be listed as a dependent
7446         of "check", use features of GNU make to derive the list.
7447         * Makefile (syntax-check-rules): Define.
7448         (check): Depend on the new variable, not the hard-coded list.
7449
7450 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
7451             Bruno Haible  <bruno@clisp.org>
7452
7453         passfd module, part 3.
7454         * lib/passfd.h (recvfd): Add a flags argument.
7455         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
7456         (recvfd): Add a flags argument.
7457         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
7458         exists.
7459         * modules/passfd (Depends-on): Add cloexec.
7460         Suggested by Eric Blake.
7461
7462 2011-03-13  Bruno Haible  <bruno@clisp.org>
7463
7464         passfd module, part 2, tweaks.
7465         * modules/passfd (Files): Reorder.
7466         (Depends-on): Remove errno.
7467         (Include): Remove <sys/socket.h>, <sys/un.h>.
7468         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
7469         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
7470         specification header. Include <sys/socket.h> always. Don't include
7471         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
7472         (sendfd): Clarify that it sets errno when it fails.
7473         (recvfd): Fix specification.
7474
7475 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7476
7477         passfd module, part 2.
7478         * modules/passfd: New file.
7479         * lib/passfd.h: New file.
7480         * lib/passfd.c: New file.
7481
7482 2011-03-12  Bruno Haible  <bruno@clisp.org>
7483
7484         wcswidth, mbswidth: Avoid integer overflow.
7485         * lib/wcswidth.c: Include <limits.h>.
7486         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
7487         * lib/mbswidth.c: Include <limits.h>.
7488         (mbsnwidth): Avoid 'int' overflow.
7489         Reported by Jim Meyering.
7490
7491 2011-03-12  Bruno Haible  <bruno@clisp.org>
7492
7493         futimens, utimensat: Avoid endless recursion on Solaris 10.
7494         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
7495         Solaris.
7496         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
7497         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
7498
7499 2011-03-11  Jim Meyering  <meyering@redhat.com>
7500
7501         maint.mk: relax a regexp to accommodate other formatting styles
7502         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
7503         between "ngettext" and the following "(".
7504
7505 2011-03-11  Pádraig Brady <P@draigBrady.com>
7506
7507         maint.mk: suppress a false positive warning
7508         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
7509         diagnostics are marked with ngettext.
7510
7511 2011-03-10  Eric Blake  <eblake@redhat.com>
7512
7513         wchar: add explicit dependencies, for Tru64
7514         * modules/mbmemcasecoll (Depends-on): Add wchar.
7515         * modules/mbtowc (Depends-on): Likewise.
7516         * modules/vasnprintf (Depends-on): Likewise.
7517         * modules/unistdio/u-printf-args (Depends-on): Likewise.
7518         * modules/wctomb (Depends-on): Likewise.
7519         Reported by Peter O'Gorman.
7520
7521 2011-03-08  Bruno Haible  <bruno@clisp.org>
7522
7523         passfd module, part 1, tweaks.
7524         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
7525         Improve indentation. Improve AC_MSG_CHECKING messages.
7526         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
7527         gl_SOCKET_FAMILIES.
7528
7529 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
7530
7531         passfd module, part 1.
7532         * m4/afunix.m4: New file.
7533         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
7534         sockets.
7535
7536 2011-03-08  Bruno Haible  <bruno@clisp.org>
7537
7538         regex-quote: New API.
7539         * lib/regex-quote.h: Include <stdbool.h>.
7540         (struct regex_quote_spec): New type.
7541         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7542         New declarations.
7543         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7544         'const struct regex_quote_spec *' argument.
7545         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
7546         (pcre_special): New constant.
7547         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
7548         New functions.
7549         (regex_quote_length, regex_quote_copy, regex_quote): Take a
7550         'const struct regex_quote_spec *' argument.
7551         * modules/regex-quote (Depends-on): Add stdbool.
7552         * tests/test-regex-quote.c (check): Update for new API. Add test for
7553         anchored results.
7554         * NEWS: Mention the API change.
7555         Reported by Reuben Thomas and Eric Blake.
7556
7557 2011-03-06  Bruno Haible  <bruno@clisp.org>
7558
7559         regex-quote: Fix creation of POSIX extended regular expressions.
7560         * lib/regex-quote.c (ere_special): Add grouping and alternation
7561         operators.
7562
7563 2011-03-05  Bruno Haible  <bruno@clisp.org>
7564
7565         doc: Improve doc regarding autopoint vs. gnulib.
7566         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
7567         disable autopoint while running autoreconf.
7568         Suggested by Ralf Wildenhues.
7569
7570 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7571
7572         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
7573         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
7574
7575 2011-03-03  Bruce Korb  <bkorb@gnu.org>
7576
7577         parse-duration: remove xalloc.h dependency
7578         * lib/parse-duration.c (parse_period): handle NULL return from
7579         strdup instead of calling xstrdup().
7580         * modules/parse-duration: remove "xalloc" dependency
7581
7582 2011-03-03  Matthew Booth  <mbooth@redhat.com>
7583
7584         bootstrap: honor m4_base when running aclocal
7585         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
7586
7587 2011-03-02  Jim Meyering  <meyering@redhat.com>
7588
7589         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
7590         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
7591         on request from Matt Booth.
7592
7593 2011-03-01  Eric Blake  <eblake@redhat.com>
7594
7595         test-link: work on Hurd
7596         * tests/test-link.h (test_link): Hurd rejects linking directories
7597         with EISDIR instead of the POSIX-mandated EPERM.
7598
7599 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
7600
7601         stdio: simplify by moving files to printf-posix, sigpipe
7602         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
7603         since this symbol is needed only if printf is replaced.
7604         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
7605         Require gl_ASM_SYMBOL_PREFIX.
7606         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
7607         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
7608         (Depends-on): Add 'raise'.
7609         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
7610         * modules/stdio (Files): Remove lib/stdio-write.c,
7611         m4/asm-underscore.m4.
7612         (Depends-on): Remove 'raise'.
7613
7614         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
7615         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
7616         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
7617         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
7618
7619 2011-02-28  Bruno Haible  <bruno@clisp.org>
7620
7621         localcharset: Assume ANSI C behaviour of free().
7622         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
7623         calling free().
7624         Suggested by Simon Josefsson <simon@josefsson.org>.
7625
7626 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
7627             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
7628             Bruno Haible  <bruno@clisp.org>  (tiny change)
7629
7630         On Cygwin, use /proc file system instead of win32 API.
7631         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
7632         Win32 file names.
7633         (DllMain): Simplify by removing Cygwin specific code.
7634         (find_shared_library_fullname): Use Linux specific implementation also
7635         for Cygwin.
7636         (get_shared_library_fullname): Update accordingly.
7637         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
7638         Win32 file names.
7639         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
7640         Cygwin specific code.
7641
7642 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
7643             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
7644
7645         Fix OpenMP flag detection for various Fortran compilers.
7646         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
7647         OpenMP-conditional compilation construct, to force compile
7648         failure with missing OpenMP flag.
7649         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
7650
7651 2011-02-25  Eric Blake  <eblake@redhat.com>
7652
7653         strstr: expand test coverage
7654         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
7655         compilation.
7656         * tests/test-memmem.c (main): Duplicate tests.
7657         * tests/test-strcasestr.c (main): Likewise.
7658         * tests/test-c-strcasestr.c (main): Likewise.
7659
7660 2011-02-25  Jim Meyering  <meyering@redhat.com>
7661
7662         maint.mk: detect missing-NL-at-EOF, too
7663         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
7664         it also detects when a file lacks a newline at EOF.
7665         (require_exactly_one_NL_at_EOF_): Renamed from
7666         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
7667         since people may well have .x-sc_... file names tied to the
7668         existing name.  Suggested by Eric Blake.
7669
7670 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
7671
7672         dirname: move m4/dos.m4 functionality into lib/dosname.h
7673
7674         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
7675         extracts symbols from it, puts them into config.h; but it's much
7676         easier to use the symbols directly.  filename.h already does this,
7677         but it disagrees with dos.m4 in some respects.  This patch
7678         introduces a different include file dosname.h that packages up
7679         dos.m4, and then later we can work on merging filename.h and
7680         dosname.h.  Applications that need only the easy-to-configure
7681         symbols should consider including dosname.h rather than dirname.h.
7682         * NEWS: Mention incompatible changes.
7683         * m4/dos.m4: Remove.
7684         * lib/dosname.h, modules/dosname: New files.
7685         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
7686         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
7687         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
7688         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
7689         Include dosname.h, not dirname.h.
7690         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
7691         Include dosname.h, for definitions of symbols like ISSLASH
7692         that used to be in config.h.
7693         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
7694         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7695         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7696         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7697         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
7698         * modules/rmdir (Files): Likewise.
7699         * modules/stat (Files): Likewise.
7700         * modules/unlink (Files): Likewise.
7701         * modules/dirname-lgpl (Depends-on): Add dosname.
7702         * modules/lstat (Depends-on): Likewise.
7703         * modules/openat (Depends-on): Likewise.
7704         * modules/rmdir (Depends-on): Likewise.
7705         * modules/savewd (Depends-on): Likewise.
7706         * modules/stat (Depends-on): Likewise.
7707         * modules/unlink (Depends-on): Likewise.
7708         * modules/openat (Depends-on): Remove dirname-lgpl.
7709         * modules/savewd (Depends-on): Likewise.
7710         * tests/test-dirname.c: Do not use removed symbols like
7711         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
7712         the remaining symbols, e.g., ISSLASH ('\\').
7713
7714 2011-02-25  Eric Blake  <eblake@redhat.com>
7715
7716         strstr: revert patches that introduced bug and pessimization
7717         * lib/str-two-way.h: Add another reference.
7718         (two_way_short_needle, two_way_long_needle): Revert changes from
7719         2011-02-24; they pessimize search speed.
7720         (critical_factorization): Partially revert changes from
7721         2010-06-22; they violate the requirement that the left half of the
7722         needle be smaller than the period of the needle.
7723
7724 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7725
7726         filenamecat: remove unnecessary dependency on dirname-lgpl
7727         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
7728         is no direct dependency, just an indirect one via filenamecat-lgpl.
7729
7730         remove: remove unnecessary use of m4/dos.m4
7731         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
7732         * modules/remove (FILES): Remove m4/dos.m4.
7733
7734         * lib/openat-proc.c: Don't include dirname.h; not needed.
7735
7736         backupfile: remove unnecessary use of m4/dos.m4
7737         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
7738         of its symbols are used by the backupfile code.  backupfile.c does
7739         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
7740         for the rare case of programs that want all their backup file
7741         names to live within 8+3 limits, and dos.m4 doesn't address that.
7742         * modules/backupfile (Files): Remove m4/dos.m4.
7743
7744 2011-02-24  Jim Meyering  <meyering@redhat.com>
7745
7746         strstr: fix a bug whereby strstr would mistakenly return NULL
7747         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
7748         in period calculation.
7749         (two_way_long_needle): Likewise.
7750         The original problem was reported by Mike Stump in
7751         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
7752         Ralf Wildenhues provided the short needle and haystack.
7753         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
7754         Add a more involved test to trigger the bug in two_way_long_needle.
7755
7756 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7757
7758         gnulib-tool: remove use of bold display in help screen
7759         * gnulib-tool (func_usage): Do not use bold display anymore in the
7760         help screen.  That was just meant to be a temporary emphasis for a
7761         backward-incompatible change.
7762
7763 2011-02-23  Bruno Haible  <bruno@clisp.org>
7764
7765         Fix misindentation of preprocessor directives.
7766         * lib/argp-namefrob.h: Reindent preprocessor directives.
7767         * lib/getopt_int.h (struct _getopt_data): Likewise.
7768         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
7769         * lib/vasnprintf.c (decode_long_double): Likewise.
7770         * tests/test-argmatch.c: Insert blank lines, for clarity.
7771         * tests/test-exclude.c: Likewise.
7772
7773 2011-02-22  Bruno Haible  <bruno@clisp.org>
7774
7775         ioctl: Fix for MacOS X in 64-bit mode.
7776         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
7777         value.
7778         Suggested by Eric Blake.
7779         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
7780
7781 2011-02-22  Jim Meyering  <meyering@redhat.com>
7782
7783         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
7784         * Makefile (sc_cpp_indent_check): Don't limit the check to files
7785         in lib/.
7786
7787 2011-02-22  Eric Blake  <eblake@redhat.com>
7788
7789         maint: avoid any CDPATH issue
7790         * Makefile (sc_cpp_indent_check): Anchor cd argument.
7791
7792         maint: adjust cpp indentation for my modules, as well
7793         * Makefile (sc_cpp_indent_check): Add my name.
7794         * lib/fbufmode.c: Filter through cppi.
7795         * lib/fpurge.c: Likewise.
7796         * lib/freadable.c: Likewise.
7797         * lib/freading.c: Likewise.
7798         * lib/fwritable.c: Likewise.
7799         * lib/fwriting.c: Likewise.
7800         * lib/sigaction.c: Likewise.
7801
7802 2011-02-22  Jim Meyering  <meyering@redhat.com>
7803
7804         maint: adjust cpp indentation to reflect nesting depth
7805         I.e., in a block of code that begins with an unnested "#if",
7806         put one space between the "#" in column 1 and following token.
7807         For example,
7808         -#include <sys/vfs.h>
7809         +# include <sys/vfs.h>
7810         Do this only in .c files that are part of a module I maintain.
7811         * lib/linkat.c: Filter through cppi.
7812         * lib/nanosleep.c: Likewise.
7813         * lib/openat.c: Likewise.
7814         * lib/openat-die.c: Likewise.
7815         * lib/dup3.c: Likewise.
7816         * lib/fchownat.c: Likewise.
7817         * lib/flock.c: Likewise.
7818         * lib/fsync.c: Likewise.
7819         * lib/fts.c: Likewise.
7820         * lib/getpass.c: Likewise.
7821         * lib/gettimeofday.c: Likewise.
7822         * lib/userspec.c: Likewise.
7823         * Makefile (sc_cpp_indent_check): New rule, to check this.
7824
7825 2011-02-22  Bruno Haible  <bruno@clisp.org>
7826
7827         New module 'wctomb'.
7828         * lib/stdlib.in.h (wctomb): New declaration.
7829         * lib/wctomb.c: New file.
7830         * lib/wctomb-impl.h: New file.
7831         * m4/wctomb.m4: New file.
7832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
7833         REPLACE_WCTOMB.
7834         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
7835         REPLACE_WCTOMB.
7836         * modules/wctomb: New file.
7837         * tests/test-stdlib-c++.cc: Test signature of wctomb.
7838         * doc/posix-functions/wctomb.texi: Mention the new module.
7839         * modules/wctob (Depends-on): Add wctomb.
7840
7841 2011-02-22  Bruno Haible  <bruno@clisp.org>
7842
7843         New module 'mbtowc'.
7844         * lib/stdlib.in.h (mbtowc): New declaration.
7845         * lib/mbtowc.c: New file.
7846         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
7847         * m4/mbtowc.m4: New file.
7848         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
7849         REPLACE_MBTOWC.
7850         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
7851         REPLACE_MBTOWC.
7852         * modules/mbtowc: New file.
7853         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
7854         * doc/posix-functions/mbtowc.texi: Mention the new module.
7855         * modules/btowc (Depends-on): Add mbtowc.
7856
7857 2011-02-22  Bruno Haible  <bruno@clisp.org>
7858
7859         wcrtomb: Add more tests for native Windows platforms.
7860         * tests/test-wcrtomb-w32-1.sh: New file.
7861         * tests/test-wcrtomb-w32-2.sh: New file.
7862         * tests/test-wcrtomb-w32-3.sh: New file.
7863         * tests/test-wcrtomb-w32-4.sh: New file.
7864         * tests/test-wcrtomb-w32-5.sh: New file.
7865         * tests/test-wcrtomb-w32.c: New file.
7866         * modules/wcrtomb-tests (Files): Add them.
7867         (Makefile.am): Arrange to run these tests.
7868         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
7869         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
7870
7871 2011-02-20  Bruno Haible  <bruno@clisp.org>
7872
7873         wcrtomb: Enhance test.
7874         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
7875
7876 2011-02-20  Bruno Haible  <bruno@clisp.org>
7877
7878         mbrtowc: Tiny optimization.
7879         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
7880
7881 2011-02-20  Jim Meyering  <meyering@redhat.com>
7882
7883         test-exclude.c: remove unmatched #endif
7884         * tests/test-exclude.c: Remove stray #endif, left over from
7885         the change of a week ago.
7886
7887 2011-02-19  Jim Meyering  <meyering@redhat.com>
7888
7889         git-version-gen: skip "-dirty" check when appropriate
7890         * build-aux/git-version-gen: Don't run any git commands when the
7891         version string comes from .tarball-version.  Prior to this, we
7892         would run git update-index --refresh even from a just-unpacked
7893         tarball directory, and that could affect a .git/ directory in a
7894         parent of the build directory.  Reported by Mike Frysinger.
7895
7896 2011-02-19  Bruno Haible  <bruno@clisp.org>
7897
7898         unictype/property-byname: Reduce the size of the 'data' segment.
7899         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
7900
7901 2011-02-19  Bruno Haible  <bruno@clisp.org>
7902
7903         unictype/scripts: Reduce the size of the 'data' segment.
7904         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
7905         '%pic'.
7906         * lib/unictype/scripts_byname.gperf: Regenerated.
7907
7908 2011-02-19  Bruno Haible  <bruno@clisp.org>
7909
7910         stdint: Update documentation.
7911         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
7912
7913 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
7914
7915         stdint: omit redundant check for wchar.h
7916         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
7917         always tests whether wchar.h exists, so remove the now-redundant test.
7918
7919 2011-02-18  Bruno Haible  <bruno@clisp.org>
7920
7921         stdint: Cut dependency to module 'wchar'.
7922         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
7923         include the necessary prerequisites.
7924         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
7925         * modules/stdint (Depends-on): Remove wchar.
7926         (Makefile.am): Substitute HAVE_WCHAR_H.
7927         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
7928
7929 2011-02-18  Eric Blake  <eblake@redhat.com>
7930
7931         longlong: skip, rather than fail, on cross-compilation
7932         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
7933         when cross-compiling; regression from 2011-02-16.
7934
7935 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
7936
7937         * NEWS: Mention 2011-02-08 change to stdlib.
7938
7939 2011-02-17  Bruno Haible  <bruno@clisp.org>
7940
7941         getloadavg: Add comments about platforms.
7942         * m4/getloadavg.m4: Add comment.
7943         * lib/getloadavg.c: Likewise.
7944
7945 2011-02-17  Bruno Haible  <bruno@clisp.org>
7946
7947         getloadavg: Fix link error on Solaris 2.6.
7948         * modules/getloadavg (Link): New section.
7949         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
7950         linking test-getloadavg.
7951         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
7952         getloadavg.
7953
7954 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
7955
7956         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
7957         It was 'int', but this doesn't match the IRIX 6.5 manual.
7958         Suggested by Bruno Haible in
7959         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
7960
7961 2011-02-17  Bruno Haible  <bruno@clisp.org>
7962
7963         havelib: Fix comments.
7964         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
7965         change.
7966
7967 2011-02-17  Bruno Haible  <bruno@clisp.org>
7968
7969         havelib: Update config.rpath.
7970         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
7971
7972 2011-02-17  Bruno Haible  <bruno@clisp.org>
7973
7974         getloadavg test: Add some plausibility checks.
7975         * tests/test-getloadavg.c (check_avg): Print a warning when the value
7976         is improbable.
7977
7978 2011-02-16  Eric Blake  <eblake@redhat.com>
7979
7980         maintainer-makefile: make syntax-check a no-op from tarballs
7981         * top/maint.mk (no-vc-detected): New rule.
7982         (local-checks-available): Use it to avoid hanging if someone tries
7983         'make syntax-check' from a tarball.  Also append to any non-syntax
7984         checks already defined in cfg.mk.
7985
7986 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7987
7988         longlong: tune, particularly for common case of c99
7989
7990         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
7991         or running anything if c99, or if unsigned long long int does not
7992         work.  In either case, we know the answer without further tests.
7993         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
7994         it at most once, and use its results for both long long int and
7995         unsigned long long int.  This is more likely to be efficient in
7996         the common case where the program wants to check for both long
7997         long int and unsigned long long int.
7998         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
7999         since the answer is already known.
8000
8001 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8002
8003         getloadavg: set errno
8004         * lib/getloadavg.c: Set errno when returning -1.  If no other
8005         error number looks appropriate, set it to ENOSYS if the getloadavg
8006         looks like it can't possibly ever work, ENOTSUP otherwise.
8007         Suggested by Bruno Haible in
8008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
8009
8010         getloadavg: trim unused parts and speed up 'configure'
8011         * NEWS: Document this.
8012         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
8013         always compiled if getloadavg is absent.
8014         Move test code to ...
8015         * tests/test-getloadavg.c: New file, containing previous
8016         contents of test from lib/getloadavg.c.  It also contains
8017         suggestions by Bruno Haible in
8018         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
8019         * modules/getloadavg-tests: New file.
8020         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
8021         Do tests in the same order as they're needed for getloadavg.c.
8022         Omit setgid-related tests that generate symbols KMEM_GROUP,
8023         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
8024         Do only the tests that are needed to see whether the system has
8025         getloadavg, moving the other tests into ...
8026         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
8027         NLIST_NAME_UNION; nobody should be using it.  Do not define
8028         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
8029         relevant, as the user of this module shouldn't care how getloadavg
8030         is implemented.
8031
8032         getloadavg: omit unused var
8033         * lib/getloadavg.c (getloadavg): Omit unused local variable.
8034
8035 2011-02-15  Jim Meyering  <meyering@redhat.com>
8036
8037         doc: update users.txt
8038         * users.txt: Update iwhd's URL.
8039
8040 2011-02-13  Bruno Haible  <bruno@clisp.org>
8041
8042         Consistent macro naming for macros that use GCC __attribute__.
8043         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
8044         _ATTRIBUTE_NONNULL_.
8045         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
8046         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
8047         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
8048         ATTRIBUTE_DEPRECATED.
8049         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
8050         ATTRIBUTE_NORETURN.
8051         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8052         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8053         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8054         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
8055         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
8056         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
8057         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
8058         ATTRIBUTE_SENTINEL.
8059         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
8060         ATTRIBUTE_RETURN_CHECK.
8061         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
8062         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
8063         ATTRIBUTE_NORETURN.
8064         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
8065         Reported by Paul Eggert.
8066
8067 2011-02-13  Bruno Haible  <bruno@clisp.org>
8068
8069         Don't interfere with a program's definition of __attribute__.
8070         * lib/argp.h (__attribute__): Remove definition.
8071         (_GL_ATTRIBUTE_FORMAT): New macro.
8072         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
8073         * lib/argp-fmtstream.h (__attribute__): Remove definition.
8074         (_GL_ATTRIBUTE_FORMAT): New macro.
8075         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
8076         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
8077         GCC 3 or newer.
8078         * lib/error.h (__attribute__): Remove definition.
8079         (_GL_ATTRIBUTE_FORMAT): New macro.
8080         (error, error_at_line): Use it.
8081         * lib/hash.h (__attribute__): Remove definition.
8082         (ATTRIBUTE_WUR): Update definition. Define always.
8083         * lib/openat.h (__attribute__): Remove definition.
8084         (ATTRIBUTE_NORETURN): Update definition. Define always.
8085         * lib/sigpipe-die.h (__attribute__): Remove definition.
8086         (ATTRIBUTE_NORETURN): Update definition. Define always.
8087         * lib/vasnprintf.h (__attribute__): Remove definition.
8088         (_GL_ATTRIBUTE_FORMAT): New macro.
8089         (asnprintf, vasnprintf): Use it.
8090         * lib/xalloc.h (__attribute__): Remove definition.
8091         (ATTRIBUTE_NORETURN): Update definition. Define always.
8092         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
8093         * lib/xmemdup0.h (__attribute__): Remove definition.
8094         (ATTRIBUTE_NORETURN): Update definition. Define always.
8095         * lib/xprintf.h (__attribute__): Remove definition.
8096         (_GL_ATTRIBUTE_FORMAT): New macro.
8097         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
8098         * lib/xstrtol.h (__attribute__): Remove definition.
8099         (ATTRIBUTE_NORETURN): Update definition. Define always.
8100         * lib/xvasprintf.h (__attribute__): Remove definition.
8101         (_GL_ATTRIBUTE_FORMAT): New macro.
8102         (xasprintf, xvasprintf): Use it.
8103         * tests/test-argmatch.c (__attribute__): Remove definition.
8104         (ATTRIBUTE_NORETURN): Update definition. Define always.
8105         * tests/test-exclude.c (__attribute__): Remove definition.
8106         (ATTRIBUTE_NORETURN): Update definition. Define always.
8107         Reported by Paul Eggert.
8108
8109 2011-02-13  Bruno Haible  <bruno@clisp.org>
8110
8111         mbrtowc: Add more tests for native Windows platforms.
8112         * tests/test-mbrtowc-w32-1.sh: New file.
8113         * tests/test-mbrtowc-w32-2.sh: New file.
8114         * tests/test-mbrtowc-w32-3.sh: New file.
8115         * tests/test-mbrtowc-w32-4.sh: New file.
8116         * tests/test-mbrtowc-w32-5.sh: New file.
8117         * tests/test-mbrtowc-w32.c: New file.
8118         * modules/mbrtowc-tests (Files): Add them.
8119         (Makefile.am): Arrange to run these tests.
8120         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
8121         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
8122
8123 2011-02-13  Bruno Haible  <bruno@clisp.org>
8124
8125         mbrtowc: Work around native Windows bug.
8126         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
8127         guess when no suitable locale for testing was found.
8128         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
8129
8130 2011-02-13  Bruno Haible  <bruno@clisp.org>
8131
8132         mbsinit: Work around mingw bug.
8133         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
8134         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
8135         Windows.
8136         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
8137
8138 2011-02-13  Bruno Haible  <bruno@clisp.org>
8139
8140         mbsinit: Don't crash for a NULL argument.
8141         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
8142         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
8143
8144 2011-02-13  Bruno Haible  <bruno@clisp.org>
8145
8146         Don't interfere with a program's definition of __attribute__.
8147         * lib/stdio.in.h (__attribute__): Remove definition.
8148         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
8149         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
8150         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
8151         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
8152         * lib/string.in.h (__attribute__): Remove definition.
8153         Reported by Paul Eggert.
8154
8155 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8156
8157         stdlib: don't get in the way of non-GCC __attribute__
8158         See thread starting at
8159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
8160         Revert previous stdlib change, installing the following instead:
8161         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
8162         to get in the way of a non-GCC compiler that supports __attribute__.
8163         (_GL_ATTRIBUTE_RETURN): New macro.
8164         (_Exit): Use it instead of __attribute__.
8165
8166 2011-02-12  Bruno Haible  <bruno@clisp.org>
8167
8168         quotearg test: Avoid test failure on mingw.
8169         * tests/test-quotearg.sh: Convert the locale identifier from native
8170         Windows syntax to Unix syntax.
8171
8172 2011-02-12  Bruno Haible  <bruno@clisp.org>
8173
8174         setlocale: Prefer gnulib's override over libintl's override.
8175         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
8176         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
8177         GNULIB_defined_setlocale is set.
8178
8179 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8180
8181         stdlib: support non-GCC __attribute__
8182
8183         Fix a serious and tricky problem encountered when attempting to
8184         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
8185         5.5, but it crashed due to memory corruption on Solaris 10 with
8186         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
8187         bits that are otherwise zero.  This tagging is optional inside
8188         Emacs but is preferred and is used when __attribute__ ((__aligned
8189         (8))) works, as it does with both recent-enough GCC and with Sun C
8190         5.11.  However, Sun C 5.11 is not GCC and does not #define
8191         __GNUC__ and __GNUC_MINOR__.
8192
8193         When I added the getloadavg module to Emacs, it brought in
8194         stdlib.in.h, which contained this fragment:
8195
8196            #ifndef __attribute__
8197            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
8198            #  define __attribute__(Spec)   /* empty */
8199            # endif
8200            #endif
8201
8202         When files that include <stdlib.h> were compiled with Sun C 5.11,
8203         the above code disabled __attribute__ ((__aligned (8))), which
8204         caused variables to not be properly aligned, which eventually led
8205         to the pointer corruption mentioned above.  (This was a bit hard
8206         to diagnose, unfortunately.)
8207
8208         Several "#define __attribute__(X) /* empty */" code snippets need
8209         to be eradicated from Gnulib to work with non-GCC compilers that
8210         support __attribute__.  The Autoconf way to do this is to test for
8211         each kind of attribute that we want support for, and selectively
8212         enable that in source code.
8213
8214         Fix this problem just for stdlib.h, by adding a test for the
8215         __noreturn__ attribute, and change stdlib.in.h to use that test
8216         when needed.  This technique can be easily generalized to the
8217         other *.in.h files and attributes, and a similar technique can be
8218         used for *.h and *.c files.  This patch is enough to solve the
8219         problem for Emacs + getloadavg, and I thought I'd publish it for
8220         feedback before undertaking further, similar fixes in other
8221         modules.
8222
8223         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
8224         because it's not needed for stdlib.h.  It merely substitutes the
8225         value directly into stdlib.h.  We may well need to #define it, or
8226         similar symbols, for other modules, but it's nice to also have an
8227         option to not #define it for applications like Emacs that do not
8228         need it.
8229
8230         * lib/stdlib.in.h (__attribute__): Do not #define.
8231         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
8232         be defined only if the _Exit module is also used.
8233         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
8234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
8235         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
8236         platforms.
8237         * modules/_Exit (Files): Add m4/attribute.m4.
8238         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
8239         * m4/attribute.m4: New file.
8240
8241 2011-02-12  Bruno Haible  <bruno@clisp.org>
8242
8243         wcsrtombs: Work around bug on native Windows.
8244         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
8245         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
8246         instead of len.
8247         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
8248
8249 2011-02-12  Bruno Haible  <bruno@clisp.org>
8250
8251         mbsrtowcs: Work around bug on native Windows.
8252         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
8253         against mingw bug.
8254         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
8255
8256 2011-02-12  Bruno Haible  <bruno@clisp.org>
8257
8258         Avoid setlocale bugs in tests.
8259         * modules/btowc (Dependencies): Add setlocale.
8260         * modules/c-strcase (Dependencies): Likewise.
8261         * modules/mbmemcasecmp (Dependencies): Likewise.
8262         * modules/mbmemcasecoll (Dependencies): Likewise.
8263         * modules/mbrtowc (Dependencies): Likewise.
8264         * modules/mbscasecmp (Dependencies): Likewise.
8265         * modules/mbscasestr (Dependencies): Likewise.
8266         * modules/mbschr (Dependencies): Likewise.
8267         * modules/mbscspn (Dependencies): Likewise.
8268         * modules/mbsinit (Dependencies): Likewise.
8269         * modules/mbsncasecmp (Dependencies): Likewise.
8270         * modules/mbsnrtowcs (Dependencies): Likewise.
8271         * modules/mbspbrk (Dependencies): Likewise.
8272         * modules/mbspcasecmp (Dependencies): Likewise.
8273         * modules/mbsrchr (Dependencies): Likewise.
8274         * modules/mbsrtowcs (Dependencies): Likewise.
8275         * modules/mbsspn (Dependencies): Likewise.
8276         * modules/mbsstr (Dependencies): Likewise.
8277         * modules/nl_langinfo (Dependencies): Likewise.
8278         * modules/quotearg (Dependencies): Likewise.
8279         * modules/unicase/locale-language (Dependencies): Likewise.
8280         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
8281         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
8282         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
8283         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
8284         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
8285         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
8286         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
8287         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
8288         * modules/vasnprintf-posix (Dependencies): Likewise.
8289         * modules/wcrtomb (Dependencies): Likewise.
8290         * modules/wcsnrtombs (Dependencies): Likewise.
8291         * modules/wcsrtombs (Dependencies): Likewise.
8292
8293 2011-02-12  Bruno Haible  <bruno@clisp.org>
8294
8295         setlocale: Workaround native Windows bug.
8296         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
8297         succeeds but sets LC_CTYPE to "C", report a failure.
8298         * tests/test-setlocale2.sh: New file.
8299         * tests/test-setlocale2.c: New file.
8300         * modules/setlocale-tests (Files): Add the new files.
8301         (Makefile.am): Enable test-setlocale2.sh test.
8302         * doc/posix-functions/setlocale.texi: Mention workaround.
8303
8304 2011-02-11  Bruno Haible  <bruno@clisp.org>
8305
8306         Tests for module 'setlocale'.
8307         * modules/setlocale-tests: New file.
8308         * tests/test-setlocale1.sh: New file.
8309         * tests/test-setlocale1.c: New file.
8310
8311         New module 'setlocale'.
8312         * lib/locale.in.h (setlocale): New declaration.
8313         * lib/setlocale.c: New file, based on
8314         gettext/gettext-runtime/intl/setlocale.c.
8315         * m4/setlocale.m4: New file.
8316         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
8317         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
8318         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
8319         REPLACE_SETLOCALE.
8320         * modules/setlocale: New file.
8321         * tests/test-locale-c++.cc: Test the declaration of setlocale.
8322         * doc/posix-functions/setlocale.texi: Mention the new module.
8323
8324 2011-02-11  Bruno Haible  <bruno@clisp.org>
8325
8326         Prepare for locale dependent tests on mingw.
8327         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
8328         because it has the wrong locale encoding.
8329         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
8330         French_France.1252 instead of "fr".
8331         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
8332         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
8333         because it has the wrong locale encoding.
8334         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
8335         native Windows, try Turkish_Turkey.65001.
8336         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
8337         Chinese_China.54936.
8338
8339         Prepare for locale dependent tests on mingw.
8340         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
8341         differently.
8342         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
8343         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
8344         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8345         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8346
8347 2011-02-11  Eric Blake  <eblake@redhat.com>
8348
8349         strptime: avoid compiler warnings
8350         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
8351         compiler warnings about dead code.
8352         Reported by Daniel P. Berrange.
8353
8354 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
8355
8356         doc: update users.txt
8357         * users.txt: Add rcs.
8358
8359 2011-02-10  John W. Eaton  <jwe@gnu.org>
8360
8361         doc: update users.txt
8362         * users.txt: Add octave.
8363
8364 2011-02-10  Jim Meyering  <meyering@redhat.com>
8365
8366         doc: update users.txt
8367         * users.txt: Add iwhd.
8368
8369 2011-02-09  Bruno Haible  <bruno@clisp.org>
8370
8371         gnulib-tool: Make copyright notice adjustment more robust.
8372         * gnulib-tool (func_import): In sed_transform_main_lib_file,
8373         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
8374         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
8375         License".
8376         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
8377
8378 2011-02-06  Bruno Haible  <bruno@clisp.org>
8379
8380         New module 'towctrans'.
8381         * modules/towctrans: New file.
8382         * lib/wctype.in.h (towctrans): New declaration.
8383         * lib/towctrans.c: New file.
8384         * lib/towctrans-impl.h: New file.
8385         * m4/towctrans.m4: New file.
8386         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
8387         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
8388         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
8389         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
8390         * doc/posix-functions/towctrans.texi: Mention the new module.
8391
8392 2011-02-06  Bruno Haible  <bruno@clisp.org>
8393
8394         New module 'wctrans'.
8395         * modules/wctrans: New file.
8396         * lib/wctype.in.h (wctrans): New declaration.
8397         * lib/wctrans.c: New file.
8398         * lib/wctrans-impl.h: New file.
8399         * m4/wctrans.m4: New file.
8400         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
8401         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
8402         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
8403         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
8404         * doc/posix-functions/wctrans.texi: Mention the new module.
8405
8406 2011-02-06  Bruno Haible  <bruno@clisp.org>
8407
8408         New module 'iswctype'.
8409         * modules/iswctype: New file.
8410         * lib/wctype.in.h (iswctype): New declaration.
8411         * lib/iswctype.c: New file.
8412         * lib/iswctype-impl.h: New file.
8413         * m4/iswctype.m4: New file.
8414         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
8415         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
8416         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
8417         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
8418         * doc/posix-functions/iswctype.texi: Mention the new module and the
8419         HP-UX 11.00 problem.
8420
8421 2011-02-06  Bruno Haible  <bruno@clisp.org>
8422
8423         New module 'wctype'.
8424         * modules/wctype: Change to represent the wctype() substitute.
8425         * lib/wctype.in.h (wctype): New declaration.
8426         * lib/wctype.c: New file.
8427         * lib/wctype-impl.h: New file.
8428         * m4/wctype.m4: New file.
8429         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
8430         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
8431         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
8432         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
8433         * doc/posix-functions/wctype.texi: Mention the new module and the
8434         HP-UX 11.00 problem.
8435
8436 2011-02-06  Bruno Haible  <bruno@clisp.org>
8437
8438         wctype-h: Ensure wctype_t and wctrans_t are defined.
8439         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
8440         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8441         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
8442         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
8443         HAVE_WCTRANS_T.
8444         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
8445
8446 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8447
8448         flock: fix license typo
8449
8450         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
8451         omitted.
8452
8453 2011-02-08  Bruno Haible  <bruno@clisp.org>
8454
8455         Split large sed scripts, for HP-UX sed.
8456         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
8457         to avoid HP-UX limit of 99 commands, in the near future.
8458         * modules/stdlib (Makefile.am): Likewise.
8459         * modules/unistd (Makefile.am): Likewise.
8460         * modules/wchar (Makefile.am): Likewise.
8461         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8462         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
8463         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
8464
8465 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8466             Bruno Haible  <bruno@clisp.org>
8467
8468         stdlib: improve random_r modularization
8469         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
8470         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
8471         you also need the random_r module to get this material right.
8472         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
8473         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
8474         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
8475
8476 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8477
8478         stdlib: don't depend on stdint
8479         * lib/stdlib.in.h: Don't include <stdint.h> merely because
8480         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
8481         be independent of whether stdint.h is needed.
8482         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
8483         here, instead of ...
8484         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
8485         struct random_data should be using the random_r module, not just
8486         the stdlib module (which wouldn't make sense: what package needs
8487         just struct random_data without also needing random_r?).
8488         * modules/stdlib (Depends-on): Remove stdint.
8489
8490         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
8491         See the thread rooted at
8492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
8493         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
8494         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
8495         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
8496         __VMS)); previously it was always included (via fcntl--.h).
8497         (getloadavg): Do not use c_strtod.  Instead, approximate it by
8498         hand; this is good enough for load averages.  Also, do not use
8499         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
8500         flags directly if available and don't bother otherwise.  (Packages
8501         that need the extra reliability should use the modules that define
8502         these flags on older platforms that lack them.)
8503         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
8504         fcntl-safer.
8505
8506 2011-02-08  Jim Meyering  <meyering@redhat.com>
8507
8508         di-set.h, ino-map.h: add multiple-inclusion guard
8509         Technically, the guard is required only for ino-map.h, due to its
8510         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
8511         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
8512         * lib/ino-map.h: Likewise.
8513
8514 2011-02-06  Bruno Haible  <bruno@clisp.org>
8515
8516         iswblank: Ensure declaration on glibc systems.
8517         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
8518         * modules/iswblank (Dependencies): Add 'extensions'.
8519         * doc/posix-functions/iswblank.texi: Document the glibc problem.
8520
8521 2011-02-06  Bruno Haible  <bruno@clisp.org>
8522
8523         New module 'iswblank'.
8524         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
8525         * modules/iswblank: New file.
8526         * modules/wctype-h (Files): Remove lib/iswblank.c.
8527         (Makefile.am): Substitute GNULIB_ISWBLANK.
8528         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
8529         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
8530         (gl_WCTYPE_H_DEFAULTS): New macro.
8531         (gl_WCTYPE_H): Require it. Remove iswblank related code.
8532         * modules/iswblank-tests: New file.
8533         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
8534         * tests/test-wctype-h.c (main): Remove iswblank tests.
8535         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
8536         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
8537         of 'wctype-h'.
8538         * NEWS: Mention the change.
8539         * modules/mbchar (Depends-on): Add iswblank.
8540
8541 2011-02-08  Bruno Haible  <bruno@clisp.org>
8542
8543         di-set tests: Refactor.
8544         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
8545         unnecessary includes.
8546         (ASSERT): Remove macro.
8547         (main): Make C90 compliant by avoiding variable declaration after
8548         statement.
8549         * modules/di-set-tests (Files): Add tests/macros.h.
8550
8551 2011-02-08  Bruno Haible  <bruno@clisp.org>
8552
8553         ino-map tests: Refactor.
8554         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
8555         unnecessary includes.
8556         (ASSERT): Remove macro.
8557         (main): Make C90 compliant by avoiding variable declaration after
8558         statement.
8559         * modules/ino-map-tests (Files): Add tests/macros.h.
8560
8561 2011-02-08  Jim Meyering  <meyering@redhat.com>
8562
8563         di-set: add "const" to a cast
8564         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
8565         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
8566
8567 2011-02-06  Bruno Haible  <bruno@clisp.org>
8568
8569         Rename module 'wctype' to 'wctype-h'.
8570         * modules/wctype-h: Renamed from modules/wctype.
8571         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
8572         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
8573         (Files, Depends-on, Makefile.am): Update.
8574         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
8575         (Files, Makefile.am): Update.
8576         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
8577         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
8578         * doc/posix-headers/wctype.texi: Update.
8579         * doc/posix-functions/iswalnum.texi: Update.
8580         * doc/posix-functions/iswalpha.texi: Update.
8581         * doc/posix-functions/iswblank.texi: Update.
8582         * doc/posix-functions/iswcntrl.texi: Update.
8583         * doc/posix-functions/iswdigit.texi: Update.
8584         * doc/posix-functions/iswgraph.texi: Update.
8585         * doc/posix-functions/iswlower.texi: Update.
8586         * doc/posix-functions/iswprint.texi: Update.
8587         * doc/posix-functions/iswpunct.texi: Update.
8588         * doc/posix-functions/iswspace.texi: Update.
8589         * doc/posix-functions/iswupper.texi: Update.
8590         * doc/posix-functions/iswxdigit.texi: Update.
8591         * doc/posix-functions/towlower.texi: Update.
8592         * doc/posix-functions/towupper.texi: Update.
8593         * NEWS: Mention the change.
8594         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
8595         * modules/mbchar (Dependencies): Likewise.
8596         * modules/mbswidth (Dependencies): Likewise.
8597         * modules/quotearg (Dependencies): Likewise.
8598         * modules/regex (Dependencies): Likewise.
8599         * modules/wcscasecmp (Dependencies): Likewise.
8600         * modules/wcsncasecmp (Dependencies): Likewise.
8601         * modules/wcwidth (Dependencies): Likewise.
8602
8603 2011-02-06  Bruno Haible  <bruno@clisp.org>
8604
8605         New module 'wcswidth'.
8606         * modules/wcswidth: New file.
8607         * lib/wchar.in.h (wcswidth): New declaration.
8608         * lib/wcswidth.c: New file.
8609         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
8610         * m4/wcswidth.m4: New file.
8611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
8612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
8613         REPLACE_WCSWIDTH.
8614         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
8615         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
8616         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
8617         * doc/posix-functions/wcswidth.texi: Mention the new module.
8618
8619 2011-02-06  Bruno Haible  <bruno@clisp.org>
8620
8621         New module 'wcstok'.
8622         * modules/wcstok: New file.
8623         * lib/wchar.in.h (wcstok): New declaration.
8624         * lib/wcstok.c: New file.
8625         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
8626         * m4/wcstok.m4: New file.
8627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
8628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
8629         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
8630         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
8631         * doc/posix-functions/wcstok.texi: Mention the new module.
8632
8633 2011-02-06  Bruno Haible  <bruno@clisp.org>
8634
8635         New module 'wcsstr'.
8636         * modules/wcsstr: New file.
8637         * lib/wchar.in.h (wcsstr): New declaration.
8638         * lib/wcsstr.c: New file.
8639         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
8640         * m4/wcsstr.m4: New file.
8641         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
8642         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
8643         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
8644         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
8645         * doc/posix-functions/wcsstr.texi: Mention the new module.
8646
8647 2011-02-06  Bruno Haible  <bruno@clisp.org>
8648
8649         New module 'wcspbrk'.
8650         * modules/wcspbrk: New file.
8651         * lib/wchar.in.h (wcspbrk): New declaration.
8652         * lib/wcspbrk.c: New file.
8653         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
8654         * m4/wcspbrk.m4: New file.
8655         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
8656         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
8657         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
8658         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
8659         * doc/posix-functions/wcspbrk.texi: Mention the new module.
8660
8661 2011-02-06  Bruno Haible  <bruno@clisp.org>
8662
8663         New module 'wcsspn'.
8664         * modules/wcsspn: New file.
8665         * lib/wchar.in.h (wcsspn): New declaration.
8666         * lib/wcsspn.c: New file.
8667         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
8668         * m4/wcsspn.m4: New file.
8669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
8670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
8671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
8672         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
8673         * doc/posix-functions/wcsspn.texi: Mention the new module.
8674
8675 2011-02-06  Bruno Haible  <bruno@clisp.org>
8676
8677         New module 'wcscspn'.
8678         * modules/wcscspn: New file.
8679         * lib/wchar.in.h (wcscspn): New declaration.
8680         * lib/wcscspn.c: New file.
8681         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
8682         * m4/wcscspn.m4: New file.
8683         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
8684         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
8685         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
8686         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
8687         * doc/posix-functions/wcscspn.texi: Mention the new module.
8688
8689 2011-02-06  Bruno Haible  <bruno@clisp.org>
8690
8691         New module 'wcsrchr'.
8692         * modules/wcsrchr: New file.
8693         * lib/wchar.in.h (wcsrchr): New declaration.
8694         * lib/wcsrchr.c: New file.
8695         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
8696         * m4/wcsrchr.m4: New file.
8697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
8698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
8699         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
8700         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
8701         * doc/posix-functions/wcsrchr.texi: Mention the new module.
8702
8703 2011-02-06  Bruno Haible  <bruno@clisp.org>
8704
8705         New module 'wcschr'.
8706         * modules/wcschr: New file.
8707         * lib/wchar.in.h (wcschr): New declaration.
8708         * lib/wcschr.c: New file.
8709         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
8710         * m4/wcschr.m4: New file.
8711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
8712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
8713         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
8714         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
8715         * doc/posix-functions/wcschr.texi: Mention the new module.
8716
8717 2011-02-06  Bruno Haible  <bruno@clisp.org>
8718
8719         New module 'wcsdup'.
8720         * modules/wcsdup: New file.
8721         * lib/wchar.in.h (wcsdup): New declaration.
8722         * lib/wcsdup.c: New file.
8723         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
8724         * m4/wcsdup.m4: New file.
8725         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
8726         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
8727         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
8728         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
8729         * doc/posix-functions/wcsdup.texi: Mention the new module.
8730
8731 2011-02-06  Bruno Haible  <bruno@clisp.org>
8732
8733         New module 'wcsxfrm'.
8734         * modules/wcsxfrm: New file.
8735         * lib/wchar.in.h (wcsxfrm): New declaration.
8736         * lib/wcsxfrm.c: New file.
8737         * lib/wcsxfrm-impl.h: New file.
8738         * m4/wcsxfrm.m4: New file.
8739         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
8740         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
8741         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
8742         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
8743         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
8744
8745 2011-02-06  Bruno Haible  <bruno@clisp.org>
8746
8747         New module 'wcscoll'.
8748         * modules/wcscoll: New file.
8749         * lib/wchar.in.h (wcscoll): New declaration.
8750         * lib/wcscoll.c: New file.
8751         * lib/wcscoll-impl.h: New file.
8752         * m4/wcscoll.m4: New file.
8753         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
8754         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
8755         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
8756         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
8757         * doc/posix-functions/wcscoll.texi: Mention the new module.
8758
8759 2011-02-06  Bruno Haible  <bruno@clisp.org>
8760
8761         New module 'wcsncasecmp'.
8762         * modules/wcsncasecmp: New file.
8763         * lib/wchar.in.h (wcsncasecmp): New declaration.
8764         * lib/wcsncasecmp.c: New file.
8765         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
8766         * m4/wcsncasecmp.m4: New file.
8767         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
8768         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
8769         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
8770         HAVE_WCSNCASECMP.
8771         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
8772         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
8773
8774 2011-02-06  Bruno Haible  <bruno@clisp.org>
8775
8776         New module 'wcscasecmp'.
8777         * modules/wcscasecmp: New file.
8778         * lib/wchar.in.h (wcscasecmp): New declaration.
8779         * lib/wcscasecmp.c: New file.
8780         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
8781         * m4/wcscasecmp.m4: New file.
8782         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
8783         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
8784         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
8785         HAVE_WCSCASECMP.
8786         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
8787         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
8788
8789 2011-02-05  Bruno Haible  <bruno@clisp.org>
8790
8791         New module 'wcsncmp'.
8792         * modules/wcsncmp: New file.
8793         * lib/wchar.in.h (wcsncmp): New declaration.
8794         * lib/wcsncmp.c: New file.
8795         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
8796         * m4/wcsncmp.m4: New file.
8797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
8798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
8799         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
8800         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
8801         * doc/posix-functions/wcsncmp.texi: Mention the new module.
8802
8803 2011-02-05  Bruno Haible  <bruno@clisp.org>
8804
8805         New module 'wcscmp'.
8806         * modules/wcscmp: New file.
8807         * lib/wchar.in.h (wcscmp): New declaration.
8808         * lib/wcscmp.c: New file.
8809         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
8810         * m4/wcscmp.m4: New file.
8811         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
8812         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
8813         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
8814         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
8815         * doc/posix-functions/wcscmp.texi: Mention the new module.
8816
8817 2011-02-05  Bruno Haible  <bruno@clisp.org>
8818
8819         New module 'wcsncat'.
8820         * modules/wcsncat: New file.
8821         * lib/wchar.in.h (wcsncat): New declaration.
8822         * lib/wcsncat.c: New file.
8823         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
8824         * m4/wcsncat.m4: New file.
8825         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
8826         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
8827         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
8828         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
8829         * doc/posix-functions/wcsncat.texi: Mention the new module.
8830
8831 2011-02-05  Bruno Haible  <bruno@clisp.org>
8832
8833         New module 'wcscat'.
8834         * modules/wcscat: New file.
8835         * lib/wchar.in.h (wcscat): New declaration.
8836         * lib/wcscat.c: New file.
8837         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
8838         * m4/wcscat.m4: New file.
8839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
8840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
8841         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
8842         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
8843         * doc/posix-functions/wcscat.texi: Mention the new module.
8844
8845 2011-02-05  Bruno Haible  <bruno@clisp.org>
8846
8847         New module 'wcpncpy'.
8848         * modules/wcpncpy: New file.
8849         * lib/wchar.in.h (wcpncpy): New declaration.
8850         * lib/wcpncpy.c: New file.
8851         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
8852         * m4/wcpncpy.m4: New file.
8853         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
8854         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
8855         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
8856         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
8857         * doc/posix-functions/wcpncpy.texi: Mention the new module.
8858
8859 2011-02-05  Bruno Haible  <bruno@clisp.org>
8860
8861         New module 'wcsncpy'.
8862         * modules/wcsncpy: New file.
8863         * lib/wchar.in.h (wcsncpy): New declaration.
8864         * lib/wcsncpy.c: New file.
8865         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
8866         * m4/wcsncpy.m4: New file.
8867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
8868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
8869         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
8870         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
8871         * doc/posix-functions/wcsncpy.texi: Mention the new module.
8872
8873 2011-02-05  Bruno Haible  <bruno@clisp.org>
8874
8875         New module 'wcpcpy'.
8876         * modules/wcpcpy: New file.
8877         * lib/wchar.in.h (wcpcpy): New declaration.
8878         * lib/wcpcpy.c: New file.
8879         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
8880         * m4/wcpcpy.m4: New file.
8881         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
8882         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
8883         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
8884         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
8885         * doc/posix-functions/wcpcpy.texi: Mention the new module.
8886
8887 2011-02-05  Bruno Haible  <bruno@clisp.org>
8888
8889         New module 'wcscpy'.
8890         * modules/wcscpy: New file.
8891         * lib/wchar.in.h (wcscpy): New declaration.
8892         * lib/wcscpy.c: New file.
8893         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
8894         * m4/wcscpy.m4: New file.
8895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
8896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
8897         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
8898         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
8899         * doc/posix-functions/wcscpy.texi: Mention the new module.
8900
8901 2011-02-05  Bruno Haible  <bruno@clisp.org>
8902
8903         New module 'wcsnlen'.
8904         * modules/wcsnlen: New file.
8905         * lib/wchar.in.h (wcsnlen): New declaration.
8906         * lib/wcsnlen.c: New file.
8907         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
8908         * m4/wcsnlen.m4: New file.
8909         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
8910         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
8911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
8912         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
8913         * doc/posix-functions/wcsnlen.texi: Mention the new module.
8914
8915 2011-02-05  Bruno Haible  <bruno@clisp.org>
8916
8917         New module 'wcslen'.
8918         * modules/wcslen: New file.
8919         * lib/wchar.in.h (wcslen): New declaration.
8920         * lib/wcslen.c: New file.
8921         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
8922         * m4/wcslen.m4: New file.
8923         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
8924         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
8925         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
8926         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
8927         * doc/posix-functions/wcslen.texi: Mention the new module.
8928
8929 2011-02-05  Bruno Haible  <bruno@clisp.org>
8930
8931         New module 'wmemset'.
8932         * modules/wmemset: New file.
8933         * lib/wchar.in.h (wmemset): New declaration.
8934         * lib/wmemset.c: New file.
8935         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
8936         * m4/wmemset.m4: New file.
8937         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
8938         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
8939         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
8940         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
8941         * doc/posix-functions/wmemset.texi: Mention the new module.
8942
8943 2011-02-05  Bruno Haible  <bruno@clisp.org>
8944
8945         New module 'wmemmove'.
8946         * modules/wmemmove: New file.
8947         * lib/wchar.in.h (wmemmove): New declaration.
8948         * lib/wmemmove.c: New file.
8949         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
8950         * m4/wmemmove.m4: New file.
8951         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
8952         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
8953         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
8954         HAVE_WMEMMOVE.
8955         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
8956         * doc/posix-functions/wmemmove.texi: Mention the new module.
8957
8958 2011-02-05  Bruno Haible  <bruno@clisp.org>
8959
8960         New module 'wmemcpy'.
8961         * modules/wmemcpy: New file.
8962         * lib/wchar.in.h (wmemcpy): New declaration.
8963         * lib/wmemcpy.c: New file.
8964         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
8965         * m4/wmemcpy.m4: New file.
8966         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
8967         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
8968         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
8969         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
8970         * doc/posix-functions/wmemcpy.texi: Mention the new module.
8971
8972 2011-02-05  Bruno Haible  <bruno@clisp.org>
8973
8974         New module 'wmemcmp'.
8975         * modules/wmemcmp: New file.
8976         * lib/wchar.in.h (wmemcmp): New declaration.
8977         * lib/wmemcmp.c: New file.
8978         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
8979         * m4/wmemcmp.m4: New file.
8980         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
8981         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
8982         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
8983         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
8984         * doc/posix-functions/wmemcmp.texi: Mention the new module.
8985
8986 2011-02-07  Jim Meyering  <meyering@redhat.com>
8987
8988         di-set, ino-map: new modules, from coreutils
8989         * lib/di-set.c: New file.
8990         * lib/di-set.h: Likewise.
8991         * lib/ino-map.c: Likewise.
8992         * lib/ino-map.h: Likewise.
8993         * modules/di-set: Likewise.
8994         * modules/di-set-tests: Likewise.
8995         * modules/ino-map: Likewise.
8996         * modules/ino-map-tests: Likewise.
8997         * tests/test-di-set.c: Likewise.
8998         * tests/test-ino-map.c: Likewise.
8999
9000 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
9001
9002         getloadavg: merge minor changes from Emacs
9003
9004         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
9005         (getloadavg): Use memset, not bzero.
9006
9007         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
9008         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
9009         clash (bug#86).
9010
9011 2010-11-14  Bruno Haible  <bruno@clisp.org>
9012
9013         Allow multiple gnulib generated replacements to coexist.
9014         * lib/getopt.in.h (struct option): Avoid identical redefinition.
9015         * lib/inttypes.in.h (imaxdiv_t): Likewise.
9016         * lib/langinfo.in.h (nl_item): Likewise.
9017         * lib/math.in.h (_NaN, NAN): Likewise.
9018         * lib/netdb.in.h (struct addrinfo): Likewise.
9019         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
9020         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
9021         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
9022         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
9023         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
9024         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
9025         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
9026         pthread_mutexattr_init, pthread_mutexattr_settype,
9027         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
9028         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
9029         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
9030         pthread_spin_trylock, pthread_spin_unlock): Likewise.
9031         * lib/sched.in.h (struct sched_param): Likewise.
9032         * lib/se-selinux.in.h (security_class_t, security_context_t,
9033         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
9034         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
9035         lsetfilecon, fsetfilecon, security_check_context,
9036         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
9037         Likewise.
9038         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
9039         Likewise.
9040         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
9041         _gl_function_taking_int_returning_void_t, union sigval,
9042         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
9043         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
9044         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9045         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
9046         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
9047         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
9048         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
9049         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
9050         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
9051         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
9052         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
9053         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
9054         socklen_t, rpl_fd_isset): Likewise.
9055         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
9056         * lib/sys_time.in.h (struct timeval): Likewise.
9057         * lib/sys_times.in.h (struct tms): Likewise.
9058         * lib/sys_utsname.in.h (struct utsname):
9059         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
9060         * lib/unistd.in.h (getpagesize): Likewise.
9061         * lib/wchar.in.h (mbstate_t): Likewise.
9062         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9063         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
9064         towlower, towupper): Likewise.
9065         Reported by Sam Steingold <sds@gnu.org>.
9066
9067 2011-02-05  Eric Blake  <eblake@redhat.com>
9068
9069         unsetenv: work around Haiku issues
9070         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
9071         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
9072
9073 2010-12-30  Bruce Korb  <bkorb@gnu.org>
9074
9075         libposix: avoid calling error() within libposix
9076         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
9077         is defined.
9078
9079 2011-02-05  Eric Blake  <eblake@redhat.com>
9080
9081         strerror_r-posix: port to cygwin
9082         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
9083         implementation.
9084         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
9085         * tests/test-strerror_r.c (main): Fix test.
9086         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9087         issue.
9088
9089 2011-02-05  Bruno Haible  <bruno@clisp.org>
9090
9091         New module 'wmemchr'.
9092         * modules/wmemchr: New file.
9093         * lib/wchar.in.h (wmemchr): New declaration.
9094         * lib/wmemchr.c: New file.
9095         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
9096         * m4/wmemchr.m4: New file.
9097         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
9098         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
9099         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
9100         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
9101         * doc/posix-functions/wmemchr.texi: Mention the new module.
9102
9103 2011-02-04  Eric Blake  <eblake@redhat.com>
9104
9105         fdopendir: detect FreeBSD bug
9106         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
9107         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
9108
9109 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9110
9111         stdbool: do not define HAVE_STDBOOL_H
9112         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
9113         AC_HEADER_STDBOOL.  All uses changed.  Do not define
9114         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
9115         imported from the latest Autoconf git.  It was motivated by Emacs,
9116         which uses gnulib but does not need HAVE_STDBOOL_H.
9117
9118 2011-02-04  Bruno Haible  <bruno@clisp.org>
9119
9120         wcsnrtombs: Prepare for new module wwcsnrtombs.
9121         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
9122         * lib/wcsnrtombs.c: Include it.
9123         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
9124
9125         wcsrtombs: Prepare for new module wwcsrtombs.
9126         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
9127         * lib/wcsrtombs.c: Include it.
9128         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
9129
9130         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
9131         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
9132         * lib/mbsnrtowcs.c: Include it.
9133         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
9134
9135         mbsrtowcs: Prepare for new module mbsrtowwcs.
9136         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
9137         * lib/mbsrtowcs.c: Include it.
9138         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
9139
9140 2011-02-04  Bruno Haible  <bruno@clisp.org>
9141
9142         vasnprintf: Reduce use of malloc for small format strings.
9143         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
9144         (arguments): Add room for the first 7 arguments.
9145         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
9146         (char_directives, u8_directives, u16_directives, u32_directives): Add
9147         room for the first 7 directives.
9148         * lib/printf-parse.c: Include <string.h>.
9149         (PRINTF_PARSE): Change memory handling code so that it uses the first
9150         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
9151         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
9152         Reported by Pádraig Brady <P@draigbrady.com>.
9153
9154 2011-01-31  Eric Blake  <eblake@redhat.com>
9155
9156         dup2: work around Haiku bug
9157         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
9158         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
9159         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9160         * tests/test-dup2.c (main): Enhance test.
9161
9162 2011-01-31  Simon Josefsson  <simon@josefsson.org>
9163
9164         doc: off_t is not available in eglibc 2.11.2 stdio.h.
9165         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
9166         declared by eglibc 2.11.2.
9167         * lib/stdio.in.h: Likewise.
9168
9169 2011-01-31  Eric Blake  <eblake@redhat.com>
9170
9171         ignore-value: add missing test dependency
9172         * tests/test-ignore-value.c: Revert previous change; stdio.h
9173         provides off_t.
9174         * modules/ignore-value-tests (Depends-on): Add missing dependency.
9175
9176 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9177
9178         mktime: clarify long_int width checking
9179         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
9180         the top level, to make it clearer that the assumption about
9181         long_int width is being checked.  See
9182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
9183
9184 2011-01-30  Simon Josefsson  <simon@josefsson.org>
9185
9186         ignore-value: Fix self-test.
9187         * tests/test-ignore-value.c: Include sys/types.h for off_t.
9188
9189 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9190
9191         TYPE_MAXIMUM: avoid theoretically undefined behavior
9192         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
9193         negative number, which the C Standard says has undefined behavior.
9194         In practice this is not a problem, but might as well do it by the book.
9195         Reported by Rich Felker and Eric Blake; see
9196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
9197         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
9198         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9199         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9200         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
9201         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9202         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
9203
9204         mktime: #undef mktime before #defining it
9205         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
9206
9207         mktime: systematically normalize tm_isdst comparisons
9208         * lib/mktime.c (isdst_differ): New function.
9209         (__mktime_internal): Use it systematically for all isdst comparisons.
9210         This completes the fix for libc BZ #6723, and removes the need for
9211         normalizing tm_isdst.  See
9212         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
9213         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
9214
9215         mktime: fix some integer overflow issues and sidestep the rest
9216
9217         This was prompted by a bug report by Benjamin Lindner for MinGW
9218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
9219         His bug is due to signed integer overflow (0 - INT_MIN), and I
9220         I scanned through mktime.c looking for other integer overflow
9221         problems, fixing all the bugs I found.
9222
9223         Although the C Standard says the resulting code is still not safe
9224         in the presence of integer overflow, in practice it should be good
9225         enough for all real-world two's-complement implementations, except
9226         for debugging environments that deliberately trap on integer
9227         overflow (e.g., gcc -ftrapv).
9228
9229         * lib/mktime.c (WRAPV): New macro.
9230         (SHR): Also check that long_int and time_t shift right in the
9231         usual way, before using the fast-but-unportable method.
9232         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
9233         used.  The code already assumed two's complement, so there's
9234         no need to test for alternatives.  All uses removed.
9235         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
9236         the C standard.  Problem reported by Rich Felker in
9237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
9238         (twos_complement_arithmetic): Also check long_int and time_t.
9239         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
9240         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
9241         (__mktime_internal): Avoid integer overflow with unary subtraction
9242         in two instances where -1 - X is an adequate replacement for -X,
9243         since the calculations are approximate.
9244
9245 2011-01-29  Eric Blake  <eblake@redhat.com>
9246
9247         mktime: avoid infinite loop
9248         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
9249         type; behavior is still undefined but portable to all known targets.
9250         Reported by Rich Felker.
9251
9252 2011-01-29  Simon Josefsson  <simon@josefsson.org>
9253
9254         rename, unlink, same-inode: Relicense.
9255         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
9256         * modules/unlink (License): Likewise.
9257         * modules/same-inode (License): Likewise.
9258
9259 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9260
9261         mktime: avoid problems on NetBSD 5 / i386
9262         * lib/mktime.c (long_int): New type.  This works around a problem
9263         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
9264         but time_t is 64 bits, and where I expect the existing code is
9265         wrong in some cases.
9266         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
9267         (ydhms_diff): Bring back the compile-time check for wide-enough
9268         year and yday.
9269
9270         mktime: fix misspelling in comment
9271         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
9272         This merges all recent glibc changes of importance.
9273
9274 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9275
9276         move-if-change: cope with concurrent mv of identical file.
9277         * build-aux/move-if-change (CMPPROG): Accept environment
9278         variable as an override for `cmp'.
9279         (usage): Document CMPPROG.
9280         Adjust comparison to drop stdout.  Cope with failure of mv if
9281         the target file exists and is identical to the source, for
9282         parallel builds.
9283         Report from H.J. Lu against binutils in PR binutils/12283.
9284
9285 2011-01-28  Bruce Korb  <bkorb@gnu.org>
9286
9287         * users.txt: Mention sharutils.
9288
9289 2011-01-28  Simon Josefsson  <simon@josefsson.org>
9290
9291         * users.txt: Mention OATH Toolkit.
9292
9293 2011-01-27  Bruno Haible  <bruno@clisp.org>
9294
9295         Prepare for supporting FreeBSD 10.
9296         * build-aux/config.libpath: Remove handling of freebsd1*.
9297
9298 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
9299
9300         Prepare for supporting FreeBSD 10.
9301         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
9302         match FreeBSD 10.0.
9303
9304 2011-01-27  Bruno Haible  <bruno@clisp.org>
9305
9306         vma-iter, get-rusage-as: Add OpenBSD support.
9307         * modules/vma-iter (configure.ac): Test for mquery.
9308         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
9309         * lib/vma-iter.c: Include <sys/mman.h>.
9310         (vma_iterate): Add an implementation based on mquery().
9311         * lib/resource-ext.h (get_rusage_as): Update comments.
9312         * lib/get-rusage-as.c: Likewise.
9313         * lib/get-rusage-data.c: Likewise.
9314
9315 2011-01-26  Karl Berry  <karl@gnu.org>
9316
9317         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
9318         variables to make it easier to override the makeinfo program used.
9319
9320 2011-01-26  Eric Blake  <eblake@redhat.com>
9321
9322         fcntl: work around Haiku F_DUPFD bugs
9323         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
9324         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
9325         cloexec bit on duplication.
9326         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
9327
9328 2011-01-26  Bruno Haible  <bruno@clisp.org>
9329
9330         Enable memory leak tests on AIX.
9331         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
9332         * tests/test-fprintf-posix3.c (main): Likewise.
9333
9334 2011-01-26  Bruno Haible  <bruno@clisp.org>
9335
9336         Tests for module 'get-rusage-data'.
9337         * modules/get-rusage-data-tests: New file.
9338         * tests/test-get-rusage-data.c: New file.
9339
9340         New module 'get-rusage-data'.
9341         * lib/resource-ext.h (get_rusage_data): New declaration.
9342         * lib/get-rusage-data.c: New file.
9343         * modules/get-rusage-data: New file.
9344
9345 2011-01-25  Bruno Haible  <bruno@clisp.org>
9346
9347         get-rusage-as: Allow for easier testing.
9348         * lib/resource-ext.h (get_rusage_as): Add comment.
9349         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
9350         (main): New function for interactive testing.
9351
9352 2011-01-25  Bruno Haible  <bruno@clisp.org>
9353
9354         vma-iter: Treat Haiku like BeOS.
9355         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
9356         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
9357
9358 2011-01-25  Eric Blake  <eblake@redhat.com>
9359
9360         c-stack: fix regression on cygwin when libsigsegv is present
9361         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
9362
9363 2011-01-24  Bruno Haible  <bruno@clisp.org>
9364
9365         vma-iter: Avoid empty intervals.
9366         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
9367         on an empty interval.
9368
9369 2011-01-24  Jim Meyering  <meyering@redhat.com>
9370
9371         u64: remove unnecessary #include
9372         * lib/u64.h: Don't include <stddef.h>.  It was not used.
9373
9374 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9375
9376         Allow the user to avoid the HAVE_RAW_DECL_* macros.
9377         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
9378
9379 2011-01-23  Bruno Haible  <bruno@clisp.org>
9380
9381         New module 'vma-iter'.
9382         * lib/vma-iter.h: New file.
9383         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
9384         * modules/vma-iter: New file.
9385         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
9386         for get_rusage_as_via_iterator.
9387         (vma_iterate_callback): New function.
9388         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
9389         * modules/get-rusage-as (Depends-on): Add vma-iter.
9390
9391 2011-01-23  Bruno Haible  <bruno@clisp.org>
9392
9393         uninorm: Tweak includes.
9394         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
9395         Reported by Jim Meyering.
9396
9397 2011-01-23  Bruno Haible  <bruno@clisp.org>
9398
9399         get-rusage-as: Improve on NetBSD.
9400         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
9401         /proc, like on FreeBSD.
9402
9403 2011-01-23  Jim Meyering  <meyering@redhat.com>
9404
9405         xreadlink.h: remove unnecessary #include
9406         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
9407
9408         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
9409         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
9410
9411 2011-01-23  Bruno Haible  <bruno@clisp.org>
9412
9413         get-rusage-as: Fix bug.
9414         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
9415         original limit when aborting the first loop.
9416
9417 2011-01-23  Bruno Haible  <bruno@clisp.org>
9418
9419         wctype: Ensure valid C syntax.
9420         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
9421         unconditionally, instead of gl_NEXT_HEADERS conditionally.
9422
9423 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9424
9425         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
9426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
9427         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
9428         as they are needed only for configure's test case.
9429         This removes two unnecessary symbols from config.h.
9430
9431         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
9432         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
9433         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
9434         AC_CHECK_HEADERS_ONCE on a header that we also invoke
9435         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
9436         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
9437         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
9438         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9439         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9440         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9441         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9442         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9443         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9444         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9445         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9446         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9447         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9448         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9449
9450 2011-01-21  Eric Blake  <eblake@redhat.com>
9451
9452         maintainer-makefile: work with older git for submodule check
9453         * top/maint.mk (public-submodule-commit): Rewrite to avoid
9454         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
9455         Reported by Matthias Bolte.
9456
9457         bootstrap: minor portability fixes
9458         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
9459         (usage): Omit leading capital and trailing . on help phrases, per
9460         GNU Coding Standards.
9461         (check_versions, top level): Prefix messages with script name.
9462
9463 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
9464
9465         bootstrap: support --no-git option
9466         * build-aux/bootstrap: Add --no-git option, to be used when
9467         --gnulib-srcdir points to the exact desired checkout.
9468
9469 2011-01-21  Eric Blake  <eblake@redhat.com>
9470
9471         strerror_r-posix: work with glibc 2.13
9472         * lib/strerror_r.c (strerror_r): Fix return type.
9473
9474 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9475             Bruno Haible  <bruno@clisp.org>
9476
9477         uN_strstr: New unit tests.
9478         * modules/unistr/u8-strstr-tests: New file.
9479         * modules/unistr/u16-strstr-tests: New file.
9480         * modules/unistr/u32-strstr-tests: New file.
9481         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
9482         * tests/unistr/test-u8-strstr.c: New file.
9483         * tests/unistr/test-u16-strstr.c: New file.
9484         * tests/unistr/test-u32-strstr.c: New file.
9485
9486 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9487             Bruno Haible  <bruno@clisp.org>
9488
9489         Make uN_strstr functions O(n) worst-case.
9490         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
9491         16-bit and 32-bit unit cases, use the unibyte algorithm from
9492         lib/mbsstr.c.
9493         * lib/unistr/u8-strstr.c: Include <string.h>.
9494         (UNIT_IS_UINT8_T): New macro.
9495         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
9496         (U_STRLEN, U_STRNLEN): New macros.
9497         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
9498         (U_STRLEN, U_STRNLEN): New macros.
9499         * modules/unistr/u8-strstr (Depends-on): Add strstr.
9500         (configure.ac): Update required libunistring version.
9501         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
9502         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
9503         malloca.
9504         (configure.ac): Update required libunistring version.
9505         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
9506         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
9507         malloca.
9508         (configure.ac): Update required libunistring version.
9509
9510 2011-01-21  Pádraig Brady  <P@draigBrady.com>
9511             Bruno Haible  <bruno@clisp.org>
9512
9513         Prepare for faster uN_strstr functions.
9514         * lib/str-kmp.h: Support definable UNITs.
9515         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
9516         needle_len argument.
9517         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
9518         * lib/mbscasestr.c (mbscasestr): Likewise.
9519
9520 2011-01-21  Pádraig Brady <P@draigBrady.com>
9521
9522         malloca-tests: make faster by unsetting MALLOC_PERTURB_
9523         * tests/test-malloca.c (main): Unset the environment variable
9524         to greatly speed up the test.
9525         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
9526         * modules/malloca-tests: Depend on unsetenv.
9527
9528 2011-01-21  Pádraig Brady <P@draigBrady.com>
9529
9530         ignore-value: remove stdint dependency
9531         * lib/ignore-value.h: Remove <stdint.h>
9532         * modules/ignore-value: Remove stdint dependency.
9533
9534 2011-01-21  Jim Meyering  <meyering@redhat.com>
9535
9536         maint.mk: adjust variable name to be consistent with other gl_ vars
9537         * top/maint.mk (gl_public_submodule_commit): Rename the variable
9538         to be lower case.
9539
9540 2011-01-20  Jim Meyering  <meyering@redhat.com>
9541
9542         maint.mk: make "check" depend on public-submodule-commit by default
9543         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
9544
9545 2011-01-20  Bruno Haible  <bruno@clisp.org>
9546
9547         mbfile, mbiter: Complete change from 2008-12-21.
9548         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
9549         * m4/mbiter.m4 (gl_MBITER): Likewise.
9550
9551 2011-01-20  Jim Meyering  <meyering@redhat.com>
9552
9553         init.sh: insert space between each function name and "()"
9554         * tests/init.sh: Make it a little easier to see that a function's
9555         name is "warn_", and not "warn" when looking at the first part of
9556         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
9557
9558 2011-01-20  Jim Meyering  <meyering@redhat.com>
9559
9560         mountlist: clean up code formatting
9561         * lib/mountlist.c (read_file_system_list): Split a long line,
9562         correct bracing style, use NULL in place of "(struct statfs *)0",
9563         don't parenthesize return value, add spaces around "=" and after
9564         ";-in-for-stmt".
9565
9566 2011-01-14  Markus Duft <mduft@gentoo.org>
9567
9568         mountlist: add support for Interix
9569         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
9570         Apply statvfs to all entries of /dev/fs.
9571         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
9572         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
9573
9574 2011-01-20  Jim Meyering  <meyering@redhat.com>
9575
9576         maint.mk: improve the public-submodule-commit rule
9577         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
9578         to suppress printing of its commands... unless V=1.
9579         Add git submodule's --quiet option to suppress printing of e.g.,
9580         "Entering gnulib" output.
9581         "cd" into $(srcdir) before running git submodule.
9582
9583 2011-01-20  Bruno Haible  <bruno@clisp.org>
9584
9585         include_next: Fix bug introduced on 2011-01-18.
9586         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
9587         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
9588         ac_cv_header_... variable if the second argument is not 'check'.
9589         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
9590         gl_NEXT_HEADERS_INTERNAL.
9591
9592 2011-01-20  Bruno Haible  <bruno@clisp.org>
9593
9594         Allow the user to avoid the GNULIB_TEST_* macros.
9595         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
9596         Suggested by Paul Eggert.
9597
9598 2011-01-14  Jim Meyering  <meyering@redhat.com>
9599
9600         bootstrap: avoid failure when there is no .gitmodules file
9601         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
9602         has been assigned to, even when its value is the empty string.
9603         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
9604         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
9605         Reported by John W. Eaton <jwe@gnu.org>.
9606
9607 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
9608
9609         assume <ctype.h>, ..., <time.h> exist
9610         For years gnulib has been assuming the existence of the headers
9611         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
9612         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
9613         them, since they don't appear to be needed.
9614         * README (Portability guidelines): Document this.
9615         * lib/flock.c: Assume <fcntl.h> exists.
9616         * lib/regex_internal.h: Assume <locale.h> exists.
9617         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
9618         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
9619         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
9620         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
9621         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
9622         * m4/regex.m4 (gl_REGEX): Likewise.
9623         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
9624         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
9625         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
9626         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
9627         * tests/test-argp.c: Likewise.
9628         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
9629
9630         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
9631         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
9632         AA_APPLE_UNIVERSAL_BUILD.  See
9633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
9634         * NEWS: Document this.
9635
9636 2011-01-19  Eric Blake  <eblake@redhat.com>
9637
9638         c-stack: assume stack overflow if SA_SIGINFO unsupported
9639         * lib/c-stack.c (SIGACTION_WORKS): Rename...
9640         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
9641         sigaction will work.
9642         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
9643         behavior match Linux.
9644         * tests/test-c-stack.c (main): Prefer NULL for pointers.
9645
9646         stdbool-tests: accomodate Haiku
9647         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
9648
9649         binary-io: fix O_TEXT on Haiku
9650         * modules/binary-io (Depends-on): Add fcntl-h.
9651         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
9652         than blindly undefining O_TEXT.
9653         Reported by Scott McCreary.
9654
9655 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9656
9657         include_next: do not check for standard headers like stddef.h
9658
9659         I found this problem when modifying Emacs to use gnulib.
9660         I noticed that it added HAVE_STDDEF_H to config.h, even though
9661         gnulib always assumes <stddef.h> exists as per README and this
9662         symbol is unnecessary.
9663         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
9664         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
9665         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
9666         faster for headers like stddef.h that are known to exist.
9667         (gl_CHECK_NEXT_HEADERS): Use it.
9668         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
9669         rather than gl_CHECK_NEXT_HEADERS.
9670         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
9671         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
9672
9673 2011-01-18  Eric Blake  <eblake@redhat.com>
9674
9675         ansi-c++-opt: skip C++ dependency style if C++ is unused
9676         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
9677         tests when we know C++ compilation is not desired.
9678         Reported by Scott McCreary.
9679
9680 2011-01-18  Bruno Haible  <bruno@clisp.org>
9681
9682         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
9683         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
9684         (main): Perform test also when getrlimit and setrlimit don't exist or
9685         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
9686         limiting the address space size using setrlimit, compare the address
9687         space size before and after the the test.
9688         * tests/test-dprintf-posix2.c: Likewise.
9689         * tests/test-fprintf-posix3.sh: Update skip messages.
9690         * tests/test-dprintf-posix2.sh: Likewise.
9691         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
9692         * modules/dprintf-posix-tests (Depends-on): Likewise.
9693         Reported by Bruce Korb <bkorb@gnu.org> and
9694         Gary V. Vaughan <gary@gnu.org>.
9695
9696 2011-01-18  Bruno Haible  <bruno@clisp.org>
9697
9698         get-rusage-as: Improvement for Cygwin.
9699         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
9700         areas that are merely reserved.
9701
9702 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9703
9704         strftime: remove dependencies on multibyte modules
9705
9706         strftime depended on mbrlen, mbsinit, and wchar, but these modules
9707         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
9708         only if __osf__ is defined, and I suspect OSF doesn't need these
9709         other modules.  If my guess is wrong, we'll need to come up with a
9710         variant of strftime that doesn't need the multibyte modules.
9711
9712         I discovered this problem when attempting modify Emacs to use the
9713         strftime module.  With the previous gnulib, this caused Emacs to
9714         need 31 new files, ranging from lib/config.charset to
9715         m4/wint_t.m4.  This was overkill and I expect would be offputting
9716         to the Emacs maintainers.  After this change, only 6 new files are
9717         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
9718         stdbool.m4, and tm_gmtoff.m4.
9719
9720         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
9721         Suggested by Bruno Haible in
9722         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
9723         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
9724         and do not check for wchar.h.
9725         * modules/strftime (Files): Remove m4/mbstate_t.m4.
9726         (Depends-on): Remove mbrlen, mbsinit, wchar.
9727
9728 2011-01-18  Bruno Haible  <bruno@clisp.org>
9729
9730         Tests for module 'get-rusage-as'.
9731         * modules/get-rusage-as-tests: New file.
9732         * tests/test-get-rusage-as.c: New file.
9733
9734         New module 'get-rusage-as'.
9735         * modules/get-rusage-as: New file.
9736         * lib/resource-ext.h: New file.
9737         * lib/get-rusage-as.c: New file.
9738
9739 2011-01-17  Eric Blake  <eblake@redhat.com>
9740
9741         sigaction: relax license from LGPLv3+ to LGPLv2+
9742         * modules/sigaction (License): Relax to LGPLv2+.
9743
9744 2011-01-14  Bruno Haible  <bruno@clisp.org>
9745
9746         filemode: Make function declarations usable in C++ mode.
9747         * lib/filemode.h: Enclose function declarations in extern "C" block.
9748         Reported by John W. Eaton <jwe@gnu.org>.
9749
9750 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
9751
9752         save-cwd: no longer include "xgetcwd.h"
9753         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
9754         This avoids a compilation failure in projects that use save-cwd
9755         without also using the xgetcwd module.
9756
9757 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9758
9759         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
9760         This is so that a program like Emacs, which needs only dtoastr,
9761         does not have to bother with distributing and compiling ftoastr
9762         and ldtoastr.
9763         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
9764         * modules/dtoastr, modules/ldtoastr: New files.
9765         * modules/ftoastr: Now works just for 'float'.
9766         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
9767         (Makefile.am): Remove ftoastr.h (not needed and no effect),
9768         dtoastr.c, ldtoastr.c.
9769
9770 2011-01-11  Jim Meyering  <meyering@redhat.com>
9771
9772         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
9773         There is no need to work around the lack of the fchdir function,
9774         since gnulib can now provide a replacement when required.
9775         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
9776         * modules/save-cwd (Depends-on): Add fchdir.
9777
9778 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9779
9780         openat, save-cwd: avoid xmalloc
9781
9782         This removes a direct (but undocumented) dependency of openat on
9783         xalloc, along with an indirect dependency via save-cwd.  It also
9784         removes a dependency of save-cwd on xgetcwd, and thereby
9785         indirectly on xalloc.  This change causes the openat substitute
9786         to fall back on save_cwd when memory is tight, and for save_cwd to
9787         fail instead of dying when memory is tight, but that's good enough.
9788         Problem and initial idea for fix reported by Bastien Roucaries in
9789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
9790
9791         * lib/openat-proc.c: Include stdlib.h (for malloc), not
9792         xalloc.h (for xmalloc).
9793         (openat_proc_name): Use malloc, not xmalloc.
9794         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
9795         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
9796
9797         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
9798         This avoids heap allocation for file names whose lengths are in
9799         the range 512..1023, with the upper bound increasing to at most
9800         4031 depending on the platform's PATH_MAX.  (We do not want
9801         pathmax.h here as it might supply a non-constant PATH_MAX.)
9802         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
9803         Perhaps they should be moved to malloca.h?
9804         (OPENAT_BUFFER_SIZE): Use them.
9805
9806 2011-01-10  Bruno Haible  <bruno@clisp.org>
9807
9808         doc: Update users.txt.
9809         * users.txt: Add recutils.
9810
9811 2011-01-09  Karl Berry  <karl@gnu.org>
9812
9813         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
9814
9815         * doc/configmake.texi: New file.
9816         * doc/gnulib.texi: Include it.
9817         * modules/configmake: Move documentation from here.
9818
9819 2011-01-09  Bruno Haible  <bruno@clisp.org>
9820
9821         Update to Unicode 6.0.0.
9822         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
9823         (get_lbp): Update for Unicode 6.0.0.
9824         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
9825         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
9826         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
9827         U+11001, U+11038..U+11046. Remove U+06DE.
9828         (uc_width): Fix bounds of planes.
9829         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9830         lib/uniwidth/width.c.
9831         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
9832         trailing whitespace removed.
9833         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
9834         without comments, but with the original copyright notice.
9835         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
9836         * lib/unicase/ignorable.h: Likewise.
9837         * lib/unicase/tocasefold.h: Likewise.
9838         * lib/unicase/tolower.h: Likewise.
9839         * lib/unicase/totitle.h: Likewise.
9840         * lib/unicase/toupper.h: Likewise.
9841         * lib/unictype/bidi_of.h: Likewise.
9842         * lib/unictype/blocks.h: Likewise.
9843         * lib/unictype/categ_C.h: Likewise.
9844         * lib/unictype/categ_Cn.h: Likewise.
9845         * lib/unictype/categ_L.h: Likewise.
9846         * lib/unictype/categ_Ll.h: Likewise.
9847         * lib/unictype/categ_Lm.h: Likewise.
9848         * lib/unictype/categ_Lo.h: Likewise.
9849         * lib/unictype/categ_Lu.h: Likewise.
9850         * lib/unictype/categ_M.h: Likewise.
9851         * lib/unictype/categ_Mc.h: Likewise.
9852         * lib/unictype/categ_Me.h: Likewise.
9853         * lib/unictype/categ_Mn.h: Likewise.
9854         * lib/unictype/categ_N.h: Likewise.
9855         * lib/unictype/categ_Nd.h: Likewise.
9856         * lib/unictype/categ_No.h: Likewise.
9857         * lib/unictype/categ_P.h: Likewise.
9858         * lib/unictype/categ_Po.h: Likewise.
9859         * lib/unictype/categ_S.h: Likewise.
9860         * lib/unictype/categ_Sc.h: Likewise.
9861         * lib/unictype/categ_Sk.h: Likewise.
9862         * lib/unictype/categ_Sm.h: Likewise.
9863         * lib/unictype/categ_So.h: Likewise.
9864         * lib/unictype/categ_of.h: Likewise.
9865         * lib/unictype/combining.h: Likewise.
9866         * lib/unictype/ctype_alnum.h: Likewise.
9867         * lib/unictype/ctype_alpha.h: Likewise.
9868         * lib/unictype/ctype_graph.h: Likewise.
9869         * lib/unictype/ctype_lower.h: Likewise.
9870         * lib/unictype/ctype_print.h: Likewise.
9871         * lib/unictype/ctype_punct.h: Likewise.
9872         * lib/unictype/ctype_upper.h: Likewise.
9873         * lib/unictype/decdigit.h: Likewise.
9874         * lib/unictype/digit.h: Likewise.
9875         * lib/unictype/numeric.h: Likewise.
9876         * lib/unictype/pr_alphabetic.h: Likewise.
9877         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9878         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9879         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9880         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9881         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9882         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9883         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9884         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9885         * lib/unictype/pr_case_ignorable.h: Likewise.
9886         * lib/unictype/pr_cased.h: Likewise.
9887         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
9888         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
9889         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
9890         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
9891         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
9892         * lib/unictype/pr_combining.h: Likewise.
9893         * lib/unictype/pr_composite.h: Likewise.
9894         * lib/unictype/pr_currency_symbol.h: Likewise.
9895         * lib/unictype/pr_decimal_digit.h: Likewise.
9896         * lib/unictype/pr_deprecated.h: Likewise.
9897         * lib/unictype/pr_format_control.h: Likewise.
9898         * lib/unictype/pr_grapheme_base.h: Likewise.
9899         * lib/unictype/pr_grapheme_extend.h: Likewise.
9900         * lib/unictype/pr_grapheme_link.h: Likewise.
9901         * lib/unictype/pr_id_continue.h: Likewise.
9902         * lib/unictype/pr_id_start.h: Likewise.
9903         * lib/unictype/pr_ideographic.h: Likewise.
9904         * lib/unictype/pr_lowercase.h: Likewise.
9905         * lib/unictype/pr_math.h: Likewise.
9906         * lib/unictype/pr_numeric.h: Likewise.
9907         * lib/unictype/pr_other_alphabetic.h: Likewise.
9908         * lib/unictype/pr_other_id_continue.h: Likewise.
9909         * lib/unictype/pr_other_math.h: Likewise.
9910         * lib/unictype/pr_punctuation.h: Likewise.
9911         * lib/unictype/pr_sentence_terminal.h: Likewise.
9912         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9913         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9914         * lib/unictype/pr_unified_ideograph.h: Likewise.
9915         * lib/unictype/pr_uppercase.h: Likewise.
9916         * lib/unictype/pr_xid_continue.h: Likewise.
9917         * lib/unictype/pr_xid_start.h: Likewise.
9918         * lib/unictype/scripts.h: Likewise.
9919         * lib/unictype/scripts_byname.gperf: Likewise.
9920         * lib/unictype/sy_java_ident.h: Likewise.
9921         * lib/unigbrk/gbrkprop.h: Likewise.
9922         * lib/unilbrk/lbrkprop1.h: Likewise.
9923         * lib/unilbrk/lbrkprop2.h: Likewise.
9924         * lib/uninorm/decomposition-table2.h: Likewise.
9925         * lib/uniwbrk/wbrkprop.h: Likewise.
9926         * tests/unicase/test-cased.c: Likewise.
9927         * tests/unicase/test-ignorable.c: Likewise.
9928         * tests/unicase/test-uc_tolower.c: Likewise.
9929         * tests/unicase/test-uc_totitle.c: Likewise.
9930         * tests/unicase/test-uc_toupper.c: Likewise.
9931         * tests/unictype/test-categ_C.c: Likewise.
9932         * tests/unictype/test-categ_Cn.c: Likewise.
9933         * tests/unictype/test-categ_L.c: Likewise.
9934         * tests/unictype/test-categ_Ll.c: Likewise.
9935         * tests/unictype/test-categ_Lm.c: Likewise.
9936         * tests/unictype/test-categ_Lo.c: Likewise.
9937         * tests/unictype/test-categ_Lu.c: Likewise.
9938         * tests/unictype/test-categ_M.c: Likewise.
9939         * tests/unictype/test-categ_Mc.c: Likewise.
9940         * tests/unictype/test-categ_Me.c: Likewise.
9941         * tests/unictype/test-categ_Mn.c: Likewise.
9942         * tests/unictype/test-categ_N.c: Likewise.
9943         * tests/unictype/test-categ_Nd.c: Likewise.
9944         * tests/unictype/test-categ_No.c: Likewise.
9945         * tests/unictype/test-categ_P.c: Likewise.
9946         * tests/unictype/test-categ_Po.c: Likewise.
9947         * tests/unictype/test-categ_S.c: Likewise.
9948         * tests/unictype/test-categ_Sc.c: Likewise.
9949         * tests/unictype/test-categ_Sk.c: Likewise.
9950         * tests/unictype/test-categ_Sm.c: Likewise.
9951         * tests/unictype/test-categ_So.c: Likewise.
9952         * tests/unictype/test-ctype_alnum.c: Likewise.
9953         * tests/unictype/test-ctype_alpha.c: Likewise.
9954         * tests/unictype/test-ctype_graph.c: Likewise.
9955         * tests/unictype/test-ctype_lower.c: Likewise.
9956         * tests/unictype/test-ctype_print.c: Likewise.
9957         * tests/unictype/test-ctype_punct.c: Likewise.
9958         * tests/unictype/test-ctype_upper.c: Likewise.
9959         * tests/unictype/test-decdigit.h: Likewise.
9960         * tests/unictype/test-digit.h: Likewise.
9961         * tests/unictype/test-numeric.h: Likewise.
9962         * tests/unictype/test-pr_alphabetic.c: Likewise.
9963         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9964         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
9965         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
9966         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9967         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9968         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9969         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9970         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9971         * tests/unictype/test-pr_case_ignorable.c: Likewise.
9972         * tests/unictype/test-pr_cased.c: Likewise.
9973         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
9974         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
9975         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
9976         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
9977         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
9978         * tests/unictype/test-pr_combining.c: Likewise.
9979         * tests/unictype/test-pr_composite.c: Likewise.
9980         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9981         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9982         * tests/unictype/test-pr_deprecated.c: Likewise.
9983         * tests/unictype/test-pr_format_control.c: Likewise.
9984         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9985         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9986         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9987         * tests/unictype/test-pr_id_continue.c: Likewise.
9988         * tests/unictype/test-pr_id_start.c: Likewise.
9989         * tests/unictype/test-pr_ideographic.c: Likewise.
9990         * tests/unictype/test-pr_lowercase.c: Likewise.
9991         * tests/unictype/test-pr_math.c: Likewise.
9992         * tests/unictype/test-pr_numeric.c: Likewise.
9993         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9994         * tests/unictype/test-pr_other_id_continue.c: Likewise.
9995         * tests/unictype/test-pr_other_math.c: Likewise.
9996         * tests/unictype/test-pr_punctuation.c: Likewise.
9997         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9998         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9999         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10000         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10001         * tests/unictype/test-pr_uppercase.c: Likewise.
10002         * tests/unictype/test-pr_xid_continue.c: Likewise.
10003         * tests/unictype/test-pr_xid_start.c: Likewise.
10004         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10005         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10006         changes.
10007         * lib/unictype/categ_Cc.h: Likewise.
10008         * lib/unictype/categ_Cf.h: Likewise.
10009         * lib/unictype/categ_Co.h: Likewise.
10010         * lib/unictype/categ_Cs.h: Likewise.
10011         * lib/unictype/categ_Lt.h: Likewise.
10012         * lib/unictype/categ_Nl.h: Likewise.
10013         * lib/unictype/categ_Pc.h: Likewise.
10014         * lib/unictype/categ_Pd.h: Likewise.
10015         * lib/unictype/categ_Pe.h: Likewise.
10016         * lib/unictype/categ_Pf.h: Likewise.
10017         * lib/unictype/categ_Pi.h: Likewise.
10018         * lib/unictype/categ_Ps.h: Likewise.
10019         * lib/unictype/categ_Z.h: Likewise.
10020         * lib/unictype/categ_Zl.h: Likewise.
10021         * lib/unictype/categ_Zp.h: Likewise.
10022         * lib/unictype/categ_Zs.h: Likewise.
10023         * lib/unictype/ctype_blank.h: Likewise.
10024         * lib/unictype/ctype_cntrl.h: Likewise.
10025         * lib/unictype/ctype_digit.h: Likewise.
10026         * lib/unictype/ctype_space.h: Likewise.
10027         * lib/unictype/ctype_xdigit.h: Likewise.
10028         * lib/unictype/mirror.h: Likewise.
10029         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10030         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10031         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10032         * lib/unictype/pr_bidi_control.h: Likewise.
10033         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10034         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10035         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10036         * lib/unictype/pr_bidi_pdf.h: Likewise.
10037         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10038         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10039         * lib/unictype/pr_dash.h: Likewise.
10040         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10041         * lib/unictype/pr_diacritic.h: Likewise.
10042         * lib/unictype/pr_extender.h: Likewise.
10043         * lib/unictype/pr_hex_digit.h: Likewise.
10044         * lib/unictype/pr_hyphen.h: Likewise.
10045         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10046         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10047         * lib/unictype/pr_ignorable_control.h: Likewise.
10048         * lib/unictype/pr_iso_control.h: Likewise.
10049         * lib/unictype/pr_join_control.h: Likewise.
10050         * lib/unictype/pr_left_of_pair.h: Likewise.
10051         * lib/unictype/pr_line_separator.h: Likewise.
10052         * lib/unictype/pr_logical_order_exception.h: Likewise.
10053         * lib/unictype/pr_non_break.h: Likewise.
10054         * lib/unictype/pr_not_a_character.h: Likewise.
10055         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10056         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10057         * lib/unictype/pr_other_id_start.h: Likewise.
10058         * lib/unictype/pr_other_lowercase.h: Likewise.
10059         * lib/unictype/pr_other_uppercase.h: Likewise.
10060         * lib/unictype/pr_paired_punctuation.h: Likewise.
10061         * lib/unictype/pr_paragraph_separator.h: Likewise.
10062         * lib/unictype/pr_pattern_syntax.h: Likewise.
10063         * lib/unictype/pr_pattern_white_space.h: Likewise.
10064         * lib/unictype/pr_private_use.h: Likewise.
10065         * lib/unictype/pr_quotation_mark.h: Likewise.
10066         * lib/unictype/pr_radical.h: Likewise.
10067         * lib/unictype/pr_soft_dotted.h: Likewise.
10068         * lib/unictype/pr_space.h: Likewise.
10069         * lib/unictype/pr_titlecase.h: Likewise.
10070         * lib/unictype/pr_variation_selector.h: Likewise.
10071         * lib/unictype/pr_white_space.h: Likewise.
10072         * lib/unictype/pr_zero_width.h: Likewise.
10073         * lib/unictype/sy_c_ident.h: Likewise.
10074         * lib/unictype/sy_c_whitespace.h: Likewise.
10075         * lib/unictype/sy_java_whitespace.h: Likewise.
10076         * lib/uninorm/composition-table.gperf: Likewise.
10077         * lib/uninorm/decomposition-table1.h: Likewise.
10078         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
10079         LB8.
10080         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10081         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10082         * modules/unictype/*: Bump version number of expected libunistring
10083         version.
10084
10085 2011-01-09  Bruno Haible  <bruno@clisp.org>
10086
10087         Update to Unicode 5.2.0.
10088         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
10089         trailing whitespace removed.
10090
10091 2011-01-09  Bruno Haible  <bruno@clisp.org>
10092
10093         New Unicode character properties, from Unicode 5.2.0.
10094         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
10095         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
10096         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
10097         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
10098         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
10099         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
10100         uc_is_property_cased, uc_is_property_case_ignorable,
10101         uc_is_property_changes_when_lowercased,
10102         uc_is_property_changes_when_uppercased,
10103         uc_is_property_changes_when_titlecased,
10104         uc_is_property_changes_when_casefolded,
10105         uc_is_property_changes_when_casemapped): New declarations.
10106         * lib/unictype/pr_byname.gperf: Add the new properties.
10107         * modules/unictype/property-byname (Depends-on): Depend on the new
10108         properties modules.
10109         * modules/unictype/property-all (Depends-on): Likewise.
10110         * MODULES.html.sh (Unicode string functions): Add
10111         unictype/property-case-ignorable, unictype/property-cased,
10112         unictype/property-changes-when-casefolded,
10113         unictype/property-changes-when-casemapped,
10114         unictype/property-changes-when-lowercased,
10115         unictype/property-changes-when-titlecased,
10116         unictype/property-changes-when-uppercased.
10117
10118         New module 'unictype/property-changes-when-casemapped'.
10119         * modules/unictype/property-changes-when-casemapped: New file.
10120         * lib/unictype/pr_changes_when_casemapped.c: New file.
10121         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
10122         generated by gen-uni-tables.
10123         * modules/unictype/property-changes-when-casemapped-tests: New file.
10124         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
10125         automatically generated by gen-uni-tables.
10126
10127         New module 'unictype/property-changes-when-casefolded'.
10128         * modules/unictype/property-changes-when-casefolded: New file.
10129         * lib/unictype/pr_changes_when_casefolded.c: New file.
10130         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
10131         generated by gen-uni-tables.
10132         * modules/unictype/property-changes-when-casefolded-tests: New file.
10133         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
10134         automatically generated by gen-uni-tables.
10135
10136         New module 'unictype/property-changes-when-titlecased'.
10137         * modules/unictype/property-changes-when-titlecased: New file.
10138         * lib/unictype/pr_changes_when_titlecased.c: New file.
10139         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
10140         generated by gen-uni-tables.
10141         * modules/unictype/property-changes-when-titlecased-tests: New file.
10142         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
10143         automatically generated by gen-uni-tables.
10144
10145         New module 'unictype/property-changes-when-uppercased'.
10146         * modules/unictype/property-changes-when-uppercased: New file.
10147         * lib/unictype/pr_changes_when_uppercased.c: New file.
10148         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
10149         generated by gen-uni-tables.
10150         * modules/unictype/property-changes-when-uppercased-tests: New file.
10151         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
10152         automatically generated by gen-uni-tables.
10153
10154         New module 'unictype/property-changes-when-lowercased'.
10155         * modules/unictype/property-changes-when-lowercased: New file.
10156         * lib/unictype/pr_changes_when_lowercased.c: New file.
10157         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
10158         generated by gen-uni-tables.
10159         * modules/unictype/property-changes-when-lowercased-tests: New file.
10160         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
10161         automatically generated by gen-uni-tables.
10162
10163         New module 'unictype/property-case-ignorable'.
10164         * modules/unictype/property-case-ignorable: New file.
10165         * lib/unictype/pr_case_ignorable.c: New file.
10166         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
10167         by gen-uni-tables.
10168         * modules/unictype/property-case-ignorable-tests: New file.
10169         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
10170         generated by gen-uni-tables.
10171
10172         New module 'unictype/property-cased'.
10173         * modules/unictype/property-cased: New file.
10174         * lib/unictype/pr_cased.c: New file.
10175         * lib/unictype/pr_cased.h: New file, automatically generated by
10176         gen-uni-tables.
10177         * modules/unictype/property-cased-tests: New file.
10178         * tests/unictype/test-pr_cased.c: New file, automatically generated by
10179         gen-uni-tables.
10180
10181 2011-01-09  Bruno Haible  <bruno@clisp.org>
10182
10183         Update to Unicode 5.2.0.
10184         * lib/gen-uni-tables.c (output_predicate, output_category,
10185         output_combclass, output_bidi_category, output_decimal_digit_test,
10186         output_decimal_digit, output_digit_test, output_digit,
10187         output_numeric_test, output_numeric, output_mirror, output_scripts,
10188         output_scripts_byname, output_blocks, output_ident_category): Fix
10189         comment header.
10190         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
10191         get_wbp.
10192         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
10193         items.
10194         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
10195         Changes_When_Lowercased, Changes_When_Uppercased,
10196         Changes_When_Titlecased, Changes_When_Casefolded,
10197         Changes_When_Casemapped.
10198         (is_property_alphabetic, is_property_default_ignorable_code_point):
10199         Update for Unicode 5.2.0.
10200         (is_property_cased, is_property_case_ignorable,
10201         is_property_changes_when_lowercased,
10202         is_property_changes_when_uppercased,
10203         is_property_changes_when_titlecased,
10204         is_property_changes_when_casefolded,
10205         is_property_changes_when_casemapped): New functions.
10206         (output_properties): Output also the properties cased, case_ignorable,
10207         changes_when_lowercased, changes_when_uppercased,
10208         changes_when_titlecased, changes_when_casefolded,
10209         changes_when_casemapped.
10210         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
10211         Unicode TR#11 revision 17 -> 19.
10212         (LBP_CP): New enumeration value.
10213         (LBP_*): Adjust values accordingly.
10214         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10215         TR#14 revision 22 -> 24.
10216         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
10217         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
10218         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
10219         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
10220         is_WBP_MIDLETTER.
10221         (output_composition_tables): Allow for 24 bits instead of 16 bits in
10222         the code1 and code2 of each composition rule.
10223         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
10224         * lib/unicase/ignorable.h: Likewise.
10225         * lib/unicase/tocasefold.h: Likewise.
10226         * lib/unicase/tolower.h: Likewise.
10227         * lib/unicase/totitle.h: Likewise.
10228         * lib/unicase/toupper.h: Likewise.
10229         * lib/unictype/bidi_of.h: Likewise.
10230         * lib/unictype/blocks.h: Likewise.
10231         * lib/unictype/categ_C.h: Likewise.
10232         * lib/unictype/categ_Cf.h: Likewise.
10233         * lib/unictype/categ_Cn.h: Likewise.
10234         * lib/unictype/categ_L.h: Likewise.
10235         * lib/unictype/categ_Ll.h: Likewise.
10236         * lib/unictype/categ_Lm.h: Likewise.
10237         * lib/unictype/categ_Lo.h: Likewise.
10238         * lib/unictype/categ_Lu.h: Likewise.
10239         * lib/unictype/categ_M.h: Likewise.
10240         * lib/unictype/categ_Mc.h: Likewise.
10241         * lib/unictype/categ_Mn.h: Likewise.
10242         * lib/unictype/categ_N.h: Likewise.
10243         * lib/unictype/categ_Nd.h: Likewise.
10244         * lib/unictype/categ_Nl.h: Likewise.
10245         * lib/unictype/categ_No.h: Likewise.
10246         * lib/unictype/categ_P.h: Likewise.
10247         * lib/unictype/categ_Pd.h: Likewise.
10248         * lib/unictype/categ_Po.h: Likewise.
10249         * lib/unictype/categ_S.h: Likewise.
10250         * lib/unictype/categ_Sc.h: Likewise.
10251         * lib/unictype/categ_So.h: Likewise.
10252         * lib/unictype/categ_of.h: Likewise.
10253         * lib/unictype/combining.h: Likewise.
10254         * lib/unictype/ctype_alnum.h: Likewise.
10255         * lib/unictype/ctype_alpha.h: Likewise.
10256         * lib/unictype/ctype_graph.h: Likewise.
10257         * lib/unictype/ctype_lower.h: Likewise.
10258         * lib/unictype/ctype_print.h: Likewise.
10259         * lib/unictype/ctype_punct.h: Likewise.
10260         * lib/unictype/ctype_upper.h: Likewise.
10261         * lib/unictype/decdigit.h: Likewise.
10262         * lib/unictype/digit.h: Likewise.
10263         * lib/unictype/numeric.h: Likewise.
10264         * lib/unictype/pr_alphabetic.h: Likewise.
10265         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
10266         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
10267         * lib/unictype/pr_bidi_european_digit.h: Likewise.
10268         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
10269         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
10270         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10271         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10272         * lib/unictype/pr_combining.h: Likewise.
10273         * lib/unictype/pr_composite.h: Likewise.
10274         * lib/unictype/pr_currency_symbol.h: Likewise.
10275         * lib/unictype/pr_dash.h: Likewise.
10276         * lib/unictype/pr_decimal_digit.h: Likewise.
10277         * lib/unictype/pr_deprecated.h: Likewise.
10278         * lib/unictype/pr_diacritic.h: Likewise.
10279         * lib/unictype/pr_extender.h: Likewise.
10280         * lib/unictype/pr_grapheme_base.h: Likewise.
10281         * lib/unictype/pr_grapheme_extend.h: Likewise.
10282         * lib/unictype/pr_grapheme_link.h: Likewise.
10283         * lib/unictype/pr_id_continue.h: Likewise.
10284         * lib/unictype/pr_id_start.h: Likewise.
10285         * lib/unictype/pr_ideographic.h: Likewise.
10286         * lib/unictype/pr_ignorable_control.h: Likewise.
10287         * lib/unictype/pr_logical_order_exception.h: Likewise.
10288         * lib/unictype/pr_lowercase.h: Likewise.
10289         * lib/unictype/pr_numeric.h: Likewise.
10290         * lib/unictype/pr_other_alphabetic.h: Likewise.
10291         * lib/unictype/pr_punctuation.h: Likewise.
10292         * lib/unictype/pr_sentence_terminal.h: Likewise.
10293         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10294         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10295         * lib/unictype/pr_unified_ideograph.h: Likewise.
10296         * lib/unictype/pr_uppercase.h: Likewise.
10297         * lib/unictype/pr_xid_continue.h: Likewise.
10298         * lib/unictype/pr_xid_start.h: Likewise.
10299         * lib/unictype/pr_zero_width.h: Likewise.
10300         * lib/unictype/scripts.h: Likewise.
10301         * lib/unictype/scripts_byname.gperf: Likewise.
10302         * lib/unictype/sy_java_ident.h: Likewise.
10303         * lib/unigbrk/gbrkprop.h: Likewise.
10304         * lib/unilbrk/lbrkprop1.h: Likewise.
10305         * lib/unilbrk/lbrkprop2.h: Likewise.
10306         * lib/unilbrk/lbrktables.h: Likewise.
10307         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
10308         LBP_CP. Implement rule LB30.
10309         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
10310         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
10311         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
10312         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
10313         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
10314         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
10315         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
10316         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
10317         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
10318         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
10319         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
10320         bits instead of 16 bits in the code1 and code2 of each composition
10321         rule.
10322         (uc_composition): Update for Unicode 5.2.0.
10323         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
10324         * lib/uninorm/decomposition-table2.h: Likewise.
10325         * lib/uniwbrk/wbrkprop.h: Likewise.
10326         * tests/unicase/test-cased.c: Likewise.
10327         * tests/unicase/test-ignorable.c: Likewise.
10328         * tests/unicase/test-uc_tolower.c: Likewise.
10329         * tests/unicase/test-uc_totitle.c: Likewise.
10330         * tests/unicase/test-uc_toupper.c: Likewise.
10331         * tests/unictype/test-categ_C.c: Likewise.
10332         * tests/unictype/test-categ_Cf.c: Likewise.
10333         * tests/unictype/test-categ_Cn.c: Likewise.
10334         * tests/unictype/test-categ_L.c: Likewise.
10335         * tests/unictype/test-categ_Ll.c: Likewise.
10336         * tests/unictype/test-categ_Lm.c: Likewise.
10337         * tests/unictype/test-categ_Lo.c: Likewise.
10338         * tests/unictype/test-categ_Lu.c: Likewise.
10339         * tests/unictype/test-categ_M.c: Likewise.
10340         * tests/unictype/test-categ_Mc.c: Likewise.
10341         * tests/unictype/test-categ_Mn.c: Likewise.
10342         * tests/unictype/test-categ_N.c: Likewise.
10343         * tests/unictype/test-categ_Nd.c: Likewise.
10344         * tests/unictype/test-categ_Nl.c: Likewise.
10345         * tests/unictype/test-categ_No.c: Likewise.
10346         * tests/unictype/test-categ_P.c: Likewise.
10347         * tests/unictype/test-categ_Pd.c: Likewise.
10348         * tests/unictype/test-categ_Po.c: Likewise.
10349         * tests/unictype/test-categ_S.c: Likewise.
10350         * tests/unictype/test-categ_Sc.c: Likewise.
10351         * tests/unictype/test-categ_So.c: Likewise.
10352         * tests/unictype/test-ctype_alnum.c: Likewise.
10353         * tests/unictype/test-ctype_alpha.c: Likewise.
10354         * tests/unictype/test-ctype_graph.c: Likewise.
10355         * tests/unictype/test-ctype_lower.c: Likewise.
10356         * tests/unictype/test-ctype_print.c: Likewise.
10357         * tests/unictype/test-ctype_punct.c: Likewise.
10358         * tests/unictype/test-ctype_upper.c: Likewise.
10359         * tests/unictype/test-decdigit.h: Likewise.
10360         * tests/unictype/test-digit.h: Likewise.
10361         * tests/unictype/test-numeric.h: Likewise.
10362         * tests/unictype/test-pr_alphabetic.c: Likewise.
10363         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
10364         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
10365         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
10366         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
10367         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
10368         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
10369         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
10370         * tests/unictype/test-pr_combining.c: Likewise.
10371         * tests/unictype/test-pr_composite.c: Likewise.
10372         * tests/unictype/test-pr_currency_symbol.c: Likewise.
10373         * tests/unictype/test-pr_dash.c: Likewise.
10374         * tests/unictype/test-pr_decimal_digit.c: Likewise.
10375         * tests/unictype/test-pr_deprecated.c: Likewise.
10376         * tests/unictype/test-pr_diacritic.c: Likewise.
10377         * tests/unictype/test-pr_extender.c: Likewise.
10378         * tests/unictype/test-pr_grapheme_base.c: Likewise.
10379         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
10380         * tests/unictype/test-pr_grapheme_link.c: Likewise.
10381         * tests/unictype/test-pr_id_continue.c: Likewise.
10382         * tests/unictype/test-pr_id_start.c: Likewise.
10383         * tests/unictype/test-pr_ideographic.c: Likewise.
10384         * tests/unictype/test-pr_ignorable_control.c: Likewise.
10385         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
10386         * tests/unictype/test-pr_lowercase.c: Likewise.
10387         * tests/unictype/test-pr_numeric.c: Likewise.
10388         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
10389         * tests/unictype/test-pr_punctuation.c: Likewise.
10390         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
10391         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
10392         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
10393         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
10394         * tests/unictype/test-pr_uppercase.c: Likewise.
10395         * tests/unictype/test-pr_xid_continue.c: Likewise.
10396         * tests/unictype/test-pr_xid_start.c: Likewise.
10397         * tests/unictype/test-pr_zero_width.c: Likewise.
10398         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
10399         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
10400         changed behaviour: line breaking is now disallowed between a letter
10401         or '=' and '('.
10402         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10403         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10404         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10405         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
10406         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10407         lib/uniwidth/width.c.
10408         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
10409         without comments, but with the original copyright notice.
10410         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
10411         changes.
10412         * lib/unictype/categ_Cc.h: Likewise.
10413         * lib/unictype/categ_Co.h: Likewise.
10414         * lib/unictype/categ_Cs.h: Likewise.
10415         * lib/unictype/categ_Lt.h: Likewise.
10416         * lib/unictype/categ_Me.h: Likewise.
10417         * lib/unictype/categ_Pc.h: Likewise.
10418         * lib/unictype/categ_Pe.h: Likewise.
10419         * lib/unictype/categ_Pf.h: Likewise.
10420         * lib/unictype/categ_Pi.h: Likewise.
10421         * lib/unictype/categ_Ps.h: Likewise.
10422         * lib/unictype/categ_Sk.h: Likewise.
10423         * lib/unictype/categ_Sm.h: Likewise.
10424         * lib/unictype/categ_Z.h: Likewise.
10425         * lib/unictype/categ_Zl.h: Likewise.
10426         * lib/unictype/categ_Zp.h: Likewise.
10427         * lib/unictype/categ_Zs.h: Likewise.
10428         * lib/unictype/ctype_blank.h: Likewise.
10429         * lib/unictype/ctype_cntrl.h: Likewise.
10430         * lib/unictype/ctype_digit.h: Likewise.
10431         * lib/unictype/ctype_space.h: Likewise.
10432         * lib/unictype/ctype_xdigit.h: Likewise.
10433         * lib/unictype/mirror.h: Likewise.
10434         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
10435         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
10436         * lib/unictype/pr_bidi_block_separator.h: Likewise.
10437         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
10438         * lib/unictype/pr_bidi_common_separator.h: Likewise.
10439         * lib/unictype/pr_bidi_control.h: Likewise.
10440         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
10441         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
10442         * lib/unictype/pr_bidi_pdf.h: Likewise.
10443         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10444         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10445         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10446         * lib/unictype/pr_format_control.h: Likewise.
10447         * lib/unictype/pr_hex_digit.h: Likewise.
10448         * lib/unictype/pr_hyphen.h: Likewise.
10449         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10450         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10451         * lib/unictype/pr_iso_control.h: Likewise.
10452         * lib/unictype/pr_join_control.h: Likewise.
10453         * lib/unictype/pr_left_of_pair.h: Likewise.
10454         * lib/unictype/pr_line_separator.h: Likewise.
10455         * lib/unictype/pr_math.h: Likewise.
10456         * lib/unictype/pr_non_break.h: Likewise.
10457         * lib/unictype/pr_not_a_character.h: Likewise.
10458         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10459         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10460         * lib/unictype/pr_other_id_continue.h: Likewise.
10461         * lib/unictype/pr_other_id_start.h: Likewise.
10462         * lib/unictype/pr_other_lowercase.h: Likewise.
10463         * lib/unictype/pr_other_math.h: Likewise.
10464         * lib/unictype/pr_other_uppercase.h: Likewise.
10465         * lib/unictype/pr_paired_punctuation.h: Likewise.
10466         * lib/unictype/pr_paragraph_separator.h: Likewise.
10467         * lib/unictype/pr_pattern_syntax.h: Likewise.
10468         * lib/unictype/pr_pattern_white_space.h: Likewise.
10469         * lib/unictype/pr_private_use.h: Likewise.
10470         * lib/unictype/pr_quotation_mark.h: Likewise.
10471         * lib/unictype/pr_radical.h: Likewise.
10472         * lib/unictype/pr_soft_dotted.h: Likewise.
10473         * lib/unictype/pr_space.h: Likewise.
10474         * lib/unictype/pr_titlecase.h: Likewise.
10475         * lib/unictype/pr_variation_selector.h: Likewise.
10476         * lib/unictype/pr_white_space.h: Likewise.
10477         * lib/unictype/sy_c_ident.h: Likewise.
10478         * lib/unictype/sy_c_whitespace.h: Likewise.
10479         * lib/unictype/sy_java_whitespace.h: Likewise.
10480         * modules/uni*/*: Bump version number of expected libunistring version.
10481         Reported by Simon Josefsson.
10482
10483 2011-01-09  Karl Heuer  <kwzh@gnu.org>
10484
10485         useless-if-before-free: fix typo in --help and make the internal,
10486         automatic version date update process work once again.
10487         --help output contained a NUL character instead of the
10488         backslash-zero that was intended.  Also, the "must lie within
10489         the first 8 lines" line is on line 9, and hence not getting
10490         automatically updated.
10491         * build-aux/useless-if-before-free: Fix the former by adding a
10492         backslash, and the latter by condensing the three lines of what-it-does
10493         to a single line, leaving one line of slack for the future.
10494
10495 2011-01-09  Bruno Haible  <bruno@clisp.org>
10496
10497         uniwidth/width: Fix width of U+1D173..U+1D17A.
10498         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
10499         symbolic_width, output_width_property_test): New functions.
10500         (main): Invoke output_nonspacing_property, output_width_property_test.
10501         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
10502         U+1D173..U+1D17A.
10503         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
10504         1.
10505         * modules/uniwidth/*: Bump version number of expected libunistring
10506         version.
10507         * modules/unilbrk/*: Likewise.
10508
10509 2011-01-08  Bruno Haible  <bruno@clisp.org>
10510
10511         uninorm tests: Preserve copyright of Unicode data file.
10512         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
10513         Mention modifications.
10514
10515 2011-01-08  Bruno Haible  <bruno@clisp.org>
10516
10517         gen-uni-tables: Prepare for Unicode 5.2.0.
10518         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
10519         (debug_output_lbp, output_lbp): Update.
10520
10521 2011-01-08  Bruno Haible  <bruno@clisp.org>
10522
10523         unilbrk: Clarify gen-uni-tables.c code.
10524         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
10525         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
10526         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
10527
10528 2011-01-07  Bruno Haible  <bruno@clisp.org>
10529
10530         strtod: Restore errno when successfully parsing Infinity or NaN.
10531         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
10532         restore the original errno.
10533
10534 2011-01-07  Bruno Haible  <bruno@clisp.org>
10535
10536         remove test: Avoid failure on HP-UX 11.
10537         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
10538
10539 2011-01-07  Bruno Haible  <bruno@clisp.org>
10540
10541         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
10542         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
10543         error code.
10544
10545 2011-01-07  Pádraig Brady <P@draigBrady.com>
10546
10547         ignore-value: fixup comments, and add Eric Blake
10548         as an author since he rewrote the macros.
10549         * lib/ignore-value.h (ignore_value):  State that
10550         we now support aggregates.  Also specify exactly
10551         when the GCC warn_unused_result feature was added.
10552
10553 2011-01-06  Eric Blake  <eblake@redhat.com>
10554
10555         ignore-value: support aggregate types
10556         * lib/ignore-value.h (ignore_value): Provide separate gcc
10557         definition.
10558         * modules/ignore-value-tests: New test module.
10559         * tests/test-ignore-value.c: New test.
10560
10561         maint.mk: improve sc_prohibit_strcmp regex
10562         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
10563         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
10564         definition of STRNEQ.
10565
10566         signal: work around Haiku issue with SIGBUS
10567         * lib/siglist.h: Add comment.
10568         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
10569         strsignal's favoring of SIGSEGV.
10570         * tests/test-signal.c (main): Avoid test failure.
10571         * doc/posix-headers/signal.texi (signal.h): Document the issue.
10572         Reported by Scott McCreary.
10573
10574         maint.mk: add pre-release check to ensure submodule commits are public
10575         * top/maint.mk (public-submodule-commit): New rule.
10576         (submodule-checks): New variable.
10577         (alpha beta stable): Depend on the variable.
10578
10579 2011-01-05  Pádraig Brady <P@draigBrady.com>
10580         and Jim Meyering  <meyering@redhat.com>
10581
10582         ignore-value: make ignore_value more generic; deprecate ignore_ptr
10583         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
10584         (ATTRIBUTE_DEPRECATED): Define.
10585         (_ignore_case): New function.
10586         (ignore_value): New macro, to replace the old function.
10587         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
10588         * modules/ignore-value (Depends-on): Add stdint.
10589
10590 2011-01-04  Eric Blake  <eblake@redhat.com>
10591
10592         doc: regenerate INSTALL
10593         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
10594         @firstparagraphindent support, now that autoconf dropped it.
10595         (INSTALL_PRELUDE): Reinstate old macro.
10596         * doc/install.texi: Resync from autoconf.
10597         * doc/INSTALL: Reflect recent autoconf update.
10598         * doc/INSTALL.ISO: Likewise.
10599         * doc/INSTALL.UTF-8: Likewise.
10600         Reported by Karl Berry.
10601
10602 2011-01-04  Bruce Korb  <address@hidden>
10603
10604         git-version-gen: avoid a sub-shell
10605         * build-aux/git-version-gen: Redirect stderr in `...` via
10606         "exec 2>...", rather than via an added sub-shell.
10607
10608 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
10609
10610         git-version-gen: use (...) rather than sh -c '...'
10611         * build-aux/git-version-gen: Rather than hard-coding a shell's name
10612         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
10613
10614 2011-01-03  Jim Meyering  <meyering@redhat.com>
10615
10616         git-version-gen: convert leading TABs to spaces
10617         * build-aux/git-version-gen: Expand leading TABs.
10618
10619         git-version-gen: handle failed "git rev-list"
10620         * build-aux/git-version-gen: Rather than leaking a "fatal" error
10621         from git and proceeding as if it had succeeded but printed no SHA1
10622         checksums, suppress the diagnostic and handle the failure.
10623         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
10624
10625         git-version-gen: include command name in one more diagnostic
10626         * build-aux/git-version-gen: When the required .tarball-version file
10627         was missing or unreadable, you might see the diagnostic from "cat",
10628         but no trace of the name of the invoking script.  Now, you still see
10629         the diagnostic from cat, but also get one from "git-version-gen: ".
10630         Inspired by a patch from Bruce Korb.
10631
10632         update-copyright: adjust test to match changed code
10633         * tests/test-update-copyright.sh: Change test's expected output
10634         to match new actual output.
10635
10636 2011-01-02  Bruno Haible  <bruno@clisp.org>
10637
10638         getlogin_r: Avoid test failure on HP-UX 11.
10639         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
10640         ERANGE when the second argument is zero.
10641         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
10642         portability problem.
10643
10644 2011-01-02  Bruce Korb  <bkorb@gnu.org>
10645
10646         * build-aux/update-copyright: doc Simon's changes
10647
10648 2011-01-02  Simon Josefsson  <simon@josefsson.org>
10649
10650         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
10651         environment variable.
10652
10653 2011-01-02  Bruno Haible  <bruno@clisp.org>
10654
10655         unigbrk: Avoid gcc warnings.
10656         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
10657         unused variable.
10658         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
10659         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
10660         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
10661         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
10662         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
10663         Change type of first argument to 'const char *'.
10664         (main): Remove unused variable.
10665         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
10666         type of first argument to 'const char *'.
10667         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
10668         Likewise.
10669         (main): Change type of variable 's'.
10670         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
10671         to 'int'.
10672
10673 2011-01-02  Bruno Haible  <bruno@clisp.org>
10674
10675         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
10676         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
10677         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
10678         bug.
10679         * lib/pwrite.c: Undo 2010-12-31 patch.
10680         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
10681
10682 2011-01-02  Bruno Haible  <bruno@clisp.org>
10683
10684         pread: Fix test whether it works.
10685         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
10686
10687 2011-01-02  Bruno Haible  <bruno@clisp.org>
10688
10689         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
10690         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
10691         ends in "6". Don't require a specific month name. Try also the locale
10692         names found on HP-UX 11 and Solaris 7.
10693
10694 2011-01-02  Bruno Haible  <bruno@clisp.org>
10695
10696         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
10697         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
10698         C linkage.
10699         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
10700
10701 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10702
10703         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
10704         for consistency, since the "cluster" term is not used elsewhere.
10705         * lib/unigbrk.in.h: Update name.
10706         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
10707         * lib/unigbrk/u16-grapheme-next.c: Update name.
10708         * lib/unigbrk/u16-grapheme-prev.c: Update name.
10709         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
10710         * lib/unigbrk/u32-grapheme-next.c: Update name.
10711         * lib/unigbrk/u32-grapheme-prev.c: Update name.
10712         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
10713         * lib/unigbrk/u8-grapheme-next.c: Update name.
10714         * lib/unigbrk/u8-grapheme-prev.c: Update name.
10715         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
10716         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
10717         Suggested by Bruno Haible.
10718
10719 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10720
10721         Remove module 'u8-grapheme-len' as too redundant with
10722         'u8-grapheme-next'.
10723         * modules/unigbrk/u8-grapheme-len: Delete file.
10724         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
10725         * lib/unigbrk.in.h: Remove prototype for deleted function.
10726         * lib/unigbrk/u8-grapheme-len.c: Delete file.
10727         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
10728
10729         Remove module 'u16-grapheme-len' as too redundant with
10730         'u16-grapheme-next'.
10731         * modules/unigbrk/u16-grapheme-len: Delete file.
10732         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
10733         * lib/unigbrk.in.h: Remove prototype for deleted function.
10734         * lib/unigbrk/u16-grapheme-len.c: Delete file.
10735         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
10736
10737         Remove module 'u32-grapheme-len' as too redundant with
10738         'u32-grapheme-next'.
10739         * modules/unigbrk/u32-grapheme-len: Delete file.
10740         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
10741         * lib/unigbrk.in.h: Remove prototype for deleted function.
10742         * lib/unigbrk/u32-grapheme-len.c: Delete file.
10743         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
10744
10745         Suggested by Bruno Haible.
10746
10747 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10748
10749         * unigbrk.in.h: Fix typo: "ben" => "been".
10750         Reported by Bruno Haible.
10751
10752 2011-01-01  Jim Meyering  <meyering@redhat.com>
10753
10754         maint: update almost all copyright ranges to include 2011
10755         Run the new "make update-copyright" rule.
10756
10757 2011-01-01  Jim Meyering  <meyering@redhat.com>
10758
10759         maint: update-copyright: exempt doc/INSTALL*
10760         * Makefile (update-copyright): Also exclude doc/INSTALL*,
10761         since they are generated.  Suggested by Bruno Haible.
10762
10763 2011-01-01  Jim Meyering  <meyering@redhat.com>
10764
10765         maint: refine the update-copyright rule
10766         * Makefile (update-copyright): Also exclude any file that includes
10767         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
10768         code that merely generates the comment.
10769
10770 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10771
10772         New module 'u8-grapheme-len'.
10773         * modules/unigbrk/u8-grapheme-len: New file.
10774         * modules/unigbrk/u8-grapheme-len-tests: New file.
10775         * lib/unigbrk.in.h: Add prototype for new function.
10776         * lib/unigbrk/u8-grapheme-len.c: New file.
10777         * tests/unigbrk/test-u8-grapheme-len.c: New file.
10778
10779         New module 'u16-grapheme-len'.
10780         * modules/unigbrk/u16-grapheme-len: New file.
10781         * modules/unigbrk/u16-grapheme-len-tests: New file.
10782         * lib/unigbrk.in.h: Add prototype for new function.
10783         * lib/unigbrk/u16-grapheme-len.c: New file.
10784         * tests/unigbrk/test-u16-grapheme-len.c: New file.
10785
10786         New module 'u32-grapheme-len'.
10787         * modules/unigbrk/u32-grapheme-len: New file.
10788         * modules/unigbrk/u32-grapheme-len-tests: New file.
10789         * lib/unigbrk.in.h: Add prototype for new function.
10790         * lib/unigbrk/u32-grapheme-len.c: New file.
10791         * tests/unigbrk/test-u32-grapheme-len.c: New file.
10792
10793         New module 'u8-grapheme-next'.
10794         * modules/unigbrk/u8-grapheme-next: New file.
10795         * modules/unigbrk/u8-grapheme-next-tests: New file.
10796         * lib/unigbrk.in.h: Add prototype for new function.
10797         * lib/unigbrk/u8-grapheme-next.c: New file.
10798         * tests/unigbrk/test-u8-grapheme-next.c: New file.
10799
10800         New module 'u16-grapheme-next'.
10801         * modules/unigbrk/u16-grapheme-next: New file.
10802         * modules/unigbrk/u16-grapheme-next-tests: New file.
10803         * lib/unigbrk.in.h: Add prototype for new function.
10804         * lib/unigbrk/u16-grapheme-next.c: New file.
10805         * tests/unigbrk/test-u16-grapheme-next.c: New file.
10806
10807         New module 'u32-grapheme-next'.
10808         * modules/unigbrk/u32-grapheme-next: New file.
10809         * modules/unigbrk/u32-grapheme-next-tests: New file.
10810         * lib/unigbrk.in.h: Add prototype for new function.
10811         * lib/unigbrk/u32-grapheme-next.c: New file.
10812         * tests/unigbrk/test-u32-grapheme-next.c: New file.
10813
10814         New module 'u8-grapheme-prev'.
10815         * modules/unigbrk/u8-grapheme-prev: New file.
10816         * modules/unigbrk/u8-grapheme-prev-tests: New file.
10817         * lib/unigbrk.in.h: Add prototype for new function.
10818         * lib/unigbrk/u8-grapheme-prev.c: New file.
10819         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
10820
10821         New module 'u16-grapheme-prev'.
10822         * modules/unigbrk/u16-grapheme-prev: New file.
10823         * modules/unigbrk/u16-grapheme-prev-tests: New file.
10824         * lib/unigbrk.in.h: Add prototype for new function.
10825         * lib/unigbrk/u16-grapheme-prev.c: New file.
10826         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
10827
10828         New module 'u32-grapheme-prev'.
10829         * modules/unigbrk/u32-grapheme-prev: New file.
10830         * modules/unigbrk/u32-grapheme-prev-tests: New file.
10831         * lib/unigbrk.in.h: Add prototype for new function.
10832         * lib/unigbrk/u32-grapheme-prev.c: New file.
10833         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
10834
10835         New module 'u8-grapheme-breaks'.
10836         * modules/unigbrk/u8-grapheme-breaks: New file.
10837         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
10838         * lib/unigbrk.in.h: Add prototype for new function.
10839         * lib/unigbrk/u8-grapheme-breaks.c: New file.
10840         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
10841
10842         New module 'u16-grapheme-breaks'.
10843         * modules/unigbrk/u16-grapheme-breaks: New file.
10844         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
10845         * lib/unigbrk.in.h: Add prototype for new function.
10846         * lib/unigbrk/u16-grapheme-breaks.c: New file.
10847         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
10848
10849         New module 'u32-grapheme-breaks'.
10850         * modules/unigbrk/u32-grapheme-breaks: New file.
10851         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
10852         * lib/unigbrk.in.h: Add prototype for new function.
10853         * lib/unigbrk/u32-grapheme-breaks.c: New file.
10854         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
10855
10856         New module 'ulc-grapheme-breaks'.
10857         * modules/unigbrk/ulc-grapheme-breaks: New file.
10858         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
10859         * m4/locale-ar.m4: New file.
10860         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
10861         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
10862         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
10863
10864 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10865
10866         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
10867         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
10868         modified how this file was generated before I initially submitted
10869         the module, but failed to regenerate it.  This meant that several
10870         of the level2 entries were wrong.
10871         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
10872         Remove the division-by-2 that is folded into the table now that
10873         gbrkprop.h has been regenerated properly.  Now -1 entries are
10874         handled correctly.
10875
10876         New module 'unigbrk/uc-gbrk-prop-tests'.
10877         * modules/unigbrk/uc-gbrk-prop-tests: New file.
10878         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
10879         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
10880         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
10881
10882 2011-01-01  Bruno Haible  <bruno@clisp.org>
10883
10884         Avoid use of hexadecimal escapes.
10885         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
10886         instead of hexadecimal escapes.
10887
10888 2011-01-01  Jim Meyering  <meyering@redhat.com>
10889
10890         maint: new rule to update copyright year ranges
10891         * Makefile (update-copyright): New rule.
10892
10893         maint: indent with TABs in Makefile
10894         * Makefile: Expand leading sequences of spaces to TABs
10895
10896         version-etc: update the copyright year it reports
10897         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
10898
10899 2010-12-31  Bruno Haible  <bruno@clisp.org>
10900
10901         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
10902         * lib/isfinite.c (zerof, zerod, zerol): New variables.
10903         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
10904         zero.
10905
10906 2010-12-31  Bruno Haible  <bruno@clisp.org>
10907
10908         pwrite: Work around HP-UX 11.11 bug.
10909         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
10910         works and set REPLACE_PWRITE if not.
10911         * lib/pwrite.c (pwrite): Add an implementation that uses the system
10912         function.
10913         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
10914
10915 2010-12-31  Bruno Haible  <bruno@clisp.org>
10916
10917         pread: Work around HP-UX 11 bugs.
10918         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
10919         and set REPLACE_PREAD if not.
10920         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
10921
10922 2010-12-31  Eric Blake  <eblake@redhat.com>
10923
10924         nl_langinfo: fix YESEXPR on Irix 6.5
10925         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
10926         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
10927         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
10928         it.
10929
10930 2010-12-31  Bruno Haible  <bruno@clisp.org>
10931
10932         iconv: Document HP-UX 11 bug.
10933         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
10934
10935 2010-12-31  Bruno Haible  <bruno@clisp.org>
10936
10937         ldexpl: Fix link error on HP-UX 11.
10938         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
10939         LDEXPL_LIBM, using $ISNANL_LIBM.
10940
10941 2010-12-31  Eric Blake  <eblake@redhat.com>
10942
10943         ftello: avoid compilation failure with SunStudio c89
10944         * lib/ftello.c (ftello): Use lseek, not llseek.
10945
10946         tests: avoid failing coreutils tests on cygwin
10947         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
10948         (create_exe_shims_): Return 0 when skipping.
10949
10950 2010-12-31  Bruno Haible  <bruno@clisp.org>
10951
10952         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
10953         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
10954
10955 2010-12-31  Bruno Haible  <bruno@clisp.org>
10956
10957         waitpid: Fix link error in C++ mode.
10958         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
10959
10960 2010-12-31  Bruno Haible  <bruno@clisp.org>
10961
10962         isnan: Use GCC built-ins when possible.
10963         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
10964         __builtin_isnan.
10965         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
10966         (isnan): Define using GCC built-ins for GCC >= 4.0.
10967
10968 2010-12-31  Bruno Haible  <bruno@clisp.org>
10969
10970         isnand: Fix mistake.
10971         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
10972         __builtin_isnand.
10973
10974 2010-12-31  Bruno Haible  <bruno@clisp.org>
10975
10976         open: Avoid C++ error on HP-UX 11.
10977         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
10978
10979 2010-12-31  Bruno Haible  <bruno@clisp.org>
10980
10981         time_r: Add missing declarations on HP-UX 11.
10982         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
10983         instead of HAVE_LOCALTIME_R.
10984         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
10985         HAVE_LOCALTIME_R always.
10986         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
10987         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
10988         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
10989         HAVE_LOCALTIME_R.
10990         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
10991         * doc/posix-functions/localtime_r.texi: Likewise.
10992
10993 2010-12-29  Eric Blake  <eblake@redhat.com>
10994
10995         mountlist: tweak previous commit
10996         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
10997         Reported by Paul Eggert.
10998
10999         mountlist: fix local drive detection on cygwin
11000         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
11001         that works for cygwin.
11002
11003 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11004
11005         ftoastr, snprintf: ftoastr + snprintf module
11006         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
11007         since the snprintf module now should be good enough here.
11008         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
11009         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
11010         and gl_MODULE_INDICATOR([snprintf]), but the former enables
11011         GNULIB_SNPRINTF only for the test directory, and the latter
11012         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
11013         seems to suffice by itself.
11014
11015 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11016
11017         alloca: one step towards thread-safety
11018         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
11019         need for a static variable.  All callers changed.  This does not
11020         make the alloca replacement thread-safe, but it's one step.
11021
11022         tests: minor indenting change
11023         * tests/init.sh: Sync from coreutils housekeeping patch
11024         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
11025         to keep lines within 80 columns.
11026
11027 2010-12-28  Jim Meyering  <meyering@redhat.com>
11028
11029         regex: don't infloop on persistent failing calloc
11030         * lib/regexec.c (build_trtable): Return failure indication upon
11031         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
11032         In glibc, this was fixed for version 2.13:
11033         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
11034
11035 2010-12-28  Bruno Haible  <bruno@clisp.org>
11036             Paul Eggert <eggert@cs.ucla.edu>
11037
11038         linkat: Make implementation robust against system behaviour variations.
11039         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
11040         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
11041         way, and to -2 if it needs a generic runtime test.
11042         * lib/linkat.c (solaris_optimized_link_immediate,
11043         solaris_optimized_link_follow): New functions.
11044         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
11045         (check_same_link): Use it.
11046
11047 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
11048
11049         New module 'unigbrk/base'.
11050         * modules/unigbrk/base: New file.
11051         * lib/unigbrk.in.h: New file.
11052
11053         New module 'unigbrk/uc-gbrk-prop'.
11054         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
11055         * modules/unigbrk/uc-gbrk-prop: New file.
11056         * lib/unigbrk/gbrkprop.h: New file.
11057         * lib/unigbrk/uc-gbrk-prop.c: New file.
11058
11059         New module 'unigbrk/uc-is-grapheme-break'.
11060         * modules/unigbrk/uc-is-grapheme-break: New file.
11061         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
11062         * lib/unigbrk/uc-is-grapheme-break.c: New file.
11063         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
11064         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
11065         * tests/unigbrk/GraphemeBreakTest.txt: New file.
11066
11067         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
11068
11069 2010-12-27  Bruno Haible  <bruno@clisp.org>
11070
11071         linkat test: Avoid failure on Solaris 11 2010-11.
11072         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
11073
11074 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11075
11076         utimens: work around glibc rounding bug on more platforms
11077         * lib/utimens.c (fdutimens): Work around rounding bug even if
11078         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
11079         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
11080
11081 2010-12-27  Bruno Haible  <bruno@clisp.org>
11082
11083         select tests: Improve comments.
11084         * tests/test-select.c (do_select): Add comments.
11085
11086 2010-12-27  Bruno Haible  <bruno@clisp.org>
11087
11088         select tests: Safer way of handling timeout.
11089         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
11090         at every invocation.
11091
11092 2010-12-27  Bruno Haible  <bruno@clisp.org>
11093
11094         select tests: Use 'bool' where appropriate.
11095         * tests/test-select.c (connect_to_socket): Change argument type to
11096         'bool'.
11097
11098 2010-12-27  Bruno Haible  <bruno@clisp.org>
11099
11100         select tests: Use existing modules.
11101         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
11102         (configure.ac): Don't test for unistd.h.
11103         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
11104         declared in <unistd.h>.
11105
11106 2010-12-27  Bruno Haible  <bruno@clisp.org>
11107
11108         mbrtowc: Work around a Solaris 7 bug.
11109         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
11110         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
11111         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
11112         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
11113         MBRTOWC_NULL_ARG1_BUG.
11114         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
11115         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
11116         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
11117         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
11118
11119 2010-12-27  Jim Meyering  <meyering@redhat.com>
11120
11121         read-file.c: tweak syntax
11122         * lib/read-file.c (fread_file): Remove space after "*" in function
11123         definitions.
11124
11125 2010-12-27  Bruno Haible  <bruno@clisp.org>
11126
11127         times test: Avoid gcc warnings on OSF/1.
11128         * tests/test-times.c (main): Cast printf arguments from clock_t to
11129         'long int'.
11130
11131 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11132
11133         utimens: work around glibc rounding bug on older Linux kernels
11134         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
11135         on Linux with a glibc whose utimes might not work, then work
11136         around a longstanding glibc bug involving rounding rather than
11137         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
11138         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11139
11140 2010-12-26  Bruno Haible  <bruno@clisp.org>
11141
11142         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
11143         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
11144         _GL_CXXALIAS_SYS.
11145         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11146
11147 2010-12-26  Bruno Haible  <bruno@clisp.org>
11148
11149         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
11150         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
11151         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11152         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
11153         looking for the declaration.
11154         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
11155         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
11156         problem.
11157         * doc/posix-functions/inet_pton.texi: Likewise.
11158
11159 2010-12-26  Bruno Haible  <bruno@clisp.org>
11160
11161         arpa_inet: Use the common idioms with C++ support.
11162         * lib/arpa_inet.in.h: Include c++defs.h.
11163         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
11164         support.
11165         * modules/arpa_inet (Depends-on): Add c++defs.
11166         (Makefile.am): Substitute the contents of c++defs.h.
11167         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
11168         * modules/arpa_inet-c++-tests: New file.
11169         * tests/test-arpa_inet-c++.cc: New file.
11170
11171 2010-12-25  Bruno Haible  <bruno@clisp.org>
11172
11173         Fix more C++ link errors on Solaris 8.
11174         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
11175         $(LIB_EACCESS).
11176         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
11177         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
11178         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
11179         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
11180         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
11181
11182 2010-12-25  Bruno Haible  <bruno@clisp.org>
11183
11184         printf-posix: Fix link error when a non-GCC compiler is used.
11185         * lib/stdio.in.h (printf): When not using GCC, override printf
11186         correctly.
11187         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11188
11189 2010-12-25  Bruno Haible  <bruno@clisp.org>
11190
11191         strerror_r-posix: Update doc.
11192         * doc/posix-functions/strerror_r.texi: Update doc about the return
11193         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
11194
11195 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11196
11197         utimens: simplify the logic of the previous change
11198         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
11199         This should not affect whether the test succeeds or fails.
11200
11201         utimens: configure better on hosts with NFS clock skew
11202         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
11203         uses the clock of the local host.  It might use the clock of the
11204         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
11205         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
11206
11207 2010-12-25  Bruno Haible  <bruno@clisp.org>
11208
11209         ptsname test: Avoid failure on Solaris.
11210         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
11211         open a pseudo-terminal; don't use BSD-style ptys.
11212         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
11213
11214 2010-12-25  Bruno Haible  <bruno@clisp.org>
11215
11216         ptsname: Avoid ERANGE failure on some systems.
11217         * lib/ptsname.c (buffer): Increase size.
11218
11219 2010-12-25  Bruno Haible  <bruno@clisp.org>
11220
11221         rename, renameat: Avoid test failures at NFS mounted locations.
11222         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
11223         so that subsequent mkdir calls succeed.
11224
11225 2010-12-25  Bruno Haible  <bruno@clisp.org>
11226
11227         iswblank: Fix C++ link error on Solaris 8.
11228         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
11229         _GL_FUNCDECL_SYS.
11230
11231 2010-12-25  Bruno Haible  <bruno@clisp.org>
11232
11233         unistd: Fix C++ link error on Solaris 8.
11234         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
11235
11236 2010-12-25  Bruno Haible  <bruno@clisp.org>
11237
11238         readlink doc: Mention an old glibc bug.
11239         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
11240
11241 2010-12-25  Bruno Haible  <bruno@clisp.org>
11242
11243         fcntl-h: Fix for use of C++ on glibc systems.
11244         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11245         also on glibc systems in C++ mode.
11246         Reported by Gary V. Vaughan <gary@gnu.org>.
11247
11248 2010-12-25  Bruno Haible  <bruno@clisp.org>
11249
11250         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11251         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
11252
11253 2010-12-25  Bruno Haible  <bruno@clisp.org>
11254
11255         truncl-ieee: Make it work on OSF/1 5.1 with cc.
11256         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
11257         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
11258         test whether truncl works according to ISO C 99 with IEC 60559.
11259         * m4/truncl-ieee.m4: New file.
11260         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
11261         m4/signbit.m4.
11262         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
11263
11264 2010-12-25  Bruno Haible  <bruno@clisp.org>
11265
11266         ceill-ieee: Make it work on OSF/1 5.1 with cc.
11267         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
11268         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
11269         test whether ceill works according to ISO C 99 with IEC 60559.
11270         * m4/ceill-ieee.m4: New file.
11271         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
11272         m4/signbit.m4.
11273         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
11274
11275 2010-12-25  Bruno Haible  <bruno@clisp.org>
11276
11277         Ensure all prerequisites of <wchar.h> are included.
11278         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
11279         before <wchar.h>.
11280         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11281         gl_MBRLEN_NUL_RETVAL): Likewise.
11282         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11283         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
11284         AC_FUNC_MBRTOWC): Likewise.
11285         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11286         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11287         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11288         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
11289         Likewise.
11290         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11291         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
11292         (gl_WCHAR_H): Improve comments.
11293         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11294
11295 2010-12-25  Bruno Haible  <bruno@clisp.org>
11296
11297         strtok_r: Fix C syntax error in autoconf macro.
11298         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
11299         characters in test program.
11300
11301 2010-12-24  Bruno Haible  <bruno@clisp.org>
11302
11303         ceil, trunc, round: Fix gcc warnings.
11304         * lib/ceil.c (MIN): Undefine before redefining.
11305         * lib/trunc.c (MIN): Likewise.
11306         * lib/round.c (MIN): Likewise.
11307         Include <math.h> first.
11308
11309 2010-12-24  Bruno Haible  <bruno@clisp.org>
11310
11311         select tests: Avoid failures on OSF/1 5.1.
11312         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
11313         failure of closing the last socket; it may fail with ECONNRESET.
11314
11315 2010-12-24  Eric Blake  <eblake@redhat.com>
11316
11317         stdint: avoid HP-UX 10.20 preprocessor bug
11318         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
11319         than #if.
11320         * tests/test-floor2.c (main): Likewise.
11321         Reported by Peter O'Gorman.
11322
11323         pipe: make obsoletion transition easier
11324         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
11325         * modules/pipe (Files): Include revived file.
11326         (Include): Drop reference, to mirror getdate's behavior.
11327
11328 2010-12-24  Bruno Haible  <bruno@clisp.org>
11329
11330         sys_socket: Hide mismatch of declarations on NonStop Kernel.
11331         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
11332         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11333         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11334
11335 2010-12-24  Bruno Haible  <bruno@clisp.org>
11336
11337         gethostname: Ensure declaration on NonStop Kernel.
11338         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
11339         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11340
11341 2010-12-24  Bruno Haible  <bruno@clisp.org>
11342
11343         sys_select: Ensure all necessary types on NonStop Kernel.
11344         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
11345         include <sys/time.h>.
11346         * doc/posix-headers/sys_select.texi: Mention that it's missing on
11347         NonStop Kernel.
11348         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11349
11350 2010-12-24  Bruno Haible  <bruno@clisp.org>
11351
11352         sys_select: Remove unneeded include.
11353         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
11354         have <sys/select.h>.
11355
11356 2010-12-24  Bruno Haible  <bruno@clisp.org>
11357
11358         gethostname: Provide a fallback for HOST_NAME_MAX.
11359         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
11360         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
11361         instead.
11362         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11363
11364 2010-12-24  Bruno Haible  <bruno@clisp.org>
11365
11366         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
11367         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
11368         (SA_RESTART): Likewise.
11369         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11370
11371 2010-12-24  Bruno Haible  <bruno@clisp.org>
11372
11373         signal: Define NSIG.
11374         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
11375         * tests/test-signal.c (nsig): New variable.
11376         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11377
11378 2010-12-24  Bruno Haible  <bruno@clisp.org>
11379
11380         rename, renameat: Avoid test failures on OSF/1 5.1.
11381         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
11382         alternative error codes.
11383         * tests/test-renameat.c (main): Likewise.
11384
11385 2010-12-24  Bruno Haible  <bruno@clisp.org>
11386
11387         *printf: Detect large precisions bug on Solaris 10/SPARC.
11388         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
11389         by Paul Eggert.
11390         * tests/test-snprintf-posix.h (test_function): Add this test code here
11391         too.
11392         * tests/test-sprintf-posix.h (test_function): Likewise.
11393         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11394         * tests/test-vasprintf-posix.c (test_function): Likewise.
11395         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
11396         around by gnulib.
11397         * doc/posix-functions/printf.texi: Likewise.
11398         * doc/posix-functions/snprintf.texi: Likewise.
11399         * doc/posix-functions/sprintf.texi: Likewise.
11400         * doc/posix-functions/vfprintf.texi: Likewise.
11401         * doc/posix-functions/vprintf.texi: Likewise.
11402         * doc/posix-functions/vsnprintf.texi: Likewise.
11403         * doc/posix-functions/vsprintf.texi: Likewise.
11404         * doc/posix-functions/dprintf.texi: Undo last commit.
11405         * doc/posix-functions/vdprintf.texi: Likewise.
11406
11407 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11408
11409         tests: port test-fdutimensat.c to Solaris 8
11410         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
11411         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
11412         On Solaris 8, it fails with errno == ENOSYS, because there is no
11413         futimens (so it can't use the fd), and there is no lutimens (so it
11414         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
11415
11416         vsnprintf: make more consistent with snprintf; doc fixes
11417
11418         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
11419         the byte count return problem was promoted from the snprintf-posix
11420         to the snprintf module.
11421         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11422         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
11423         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11424         * tests/test-snprintf.c (main): Check the byte count returned.
11425         * tests/test-vsnprintf.c (main): Likewise.
11426
11427 2010-12-23  Eric Blake  <eblake@redhat.com>
11428
11429         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
11430         * modules/sigpipe (License): Relax license.
11431
11432 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11433
11434         doc: document Solaris printf bug with large float precisions
11435         * doc/posix-functions/dprintf.texi (dprintf):
11436         * doc/posix-functions/fprintf.texi (fprintf):
11437         * doc/posix-functions/printf.texi (printf):
11438         * doc/posix-functions/snprintf.texi (snprintf):
11439         * doc/posix-functions/sprintf.texi (sprintf):
11440         * doc/posix-functions/vdprintf.texi (vdprintf):
11441         * doc/posix-functions/vfprintf.texi (vfprintf):
11442         * doc/posix-functions/vprintf.texi (vprintf):
11443         * doc/posix-functions/vsnprintf.texi (vsnprintf):
11444         * doc/posix-functions/vsprintf.texi (vsprintf):
11445         Mention that these functions mishandle large floating point
11446         precisions on Solaris 10.  The same bug is also present in Solaris
11447         8, and I assume earlier.  This causes "cd gnulib-tests; make
11448         check" to fail on Solaris 8 (and I assume, later) when building
11449         the latest coreutils, in test-vasprintf-posix's call to
11450         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
11451         the wide flavors (e.g., wprintf) so this patch just updates the
11452         documentation for the narrow ones.
11453
11454         test-posixtm.c: add two tests
11455         * tests/test-posixtm.c: Add two tests, to highlight the
11456         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
11457         around this bug; this is merely to document it.
11458
11459 2010-12-22  Bruno Haible  <bruno@clisp.org>
11460
11461         getlogin_r: Work around portability problem on OSF/1.
11462         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
11463         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
11464         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
11465         test for a truncated result.
11466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
11467         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
11468         * modules/getlogin_r (Depends-on): Add memchr.
11469         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
11470
11471 2010-12-22  Bruno Haible  <bruno@clisp.org>
11472
11473         ptsname: Avoid test failure on OSF/1 5.1.
11474         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
11475         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
11476         (same_slave): New function.
11477         (main): Use it to compare ptsname's result with the expected file name.
11478
11479 2010-12-22  Bruno Haible  <bruno@clisp.org>
11480
11481         Port extended stdio modules to HP NonStop Kernel.
11482         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
11483         macros.
11484         * lib/fbufmode.c: Update comments.
11485         * lib/fflush.c: Likewise.
11486         * lib/fpurge.c: Likewise.
11487         * lib/freadable.c: Likewise.
11488         * lib/freadahead.c: Likewise.
11489         * lib/freading.c: Likewise.
11490         * lib/freadptr.c: Likewise.
11491         * lib/freadseek.c: Likewise.
11492         * lib/fseeko.c: Likewise.
11493         * lib/fseterr.c: Likewise.
11494         * lib/fwritable.c: Likewise.
11495         * lib/fwriting.c: Likewise.
11496         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
11497
11498 2010-12-22  Bruno Haible  <bruno@clisp.org>
11499
11500         ttyname_r: Work around bug on OSF/1 5.1.
11501         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
11502         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
11503         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
11504         present.
11505         * lib/ttyname_r.c (ttyname_r): Update comments.
11506
11507 2010-12-22  Bruno Haible  <bruno@clisp.org>
11508
11509         round: Implement result sign according to IEEE 754.
11510         * lib/round.c (MIN, MINUS_ZERO): New macros.
11511         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
11512         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
11513         * tests/test-round-ieee.c (main): Likewise.
11514         * tests/test-roundl-ieee.c (main): Likewise.
11515
11516         trunc: Implement result sign according to IEEE 754.
11517         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
11518         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
11519         * tests/test-trunc2.c: Include minus-zero.h.
11520         (MINUS_ZERO): New macro.
11521         (trunc_reference): Keep in sync with lib/trunc.c.
11522         * tests/test-truncf2.c: Include minus-zero.h.
11523         (MINUS_ZERO): New macro.
11524         (truncf_reference): Keep in sync with lib/trunc.c.
11525         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
11526         * tests/test-trunc-ieee.c (main): Likewise.
11527         * tests/test-truncl-ieee.c (main): Likewise.
11528
11529         ceil: Implement result sign according to IEEE 754.
11530         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
11531         (FUNC): Return -0.0 for -1 < x < 0.
11532         * tests/test-ceil2.c: Include minus-zero.h.
11533         (MINUS_ZERO): New macro.
11534         (ceil_reference): Keep in sync with lib/ceil.c.
11535         * tests/test-ceilf2.c: Include minus-zero.h.
11536         (MINUS_ZERO): New macro.
11537         (ceilf_reference): Keep in sync with lib/ceil.c.
11538         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
11539         * tests/test-ceil-ieee.c (main): Likewise.
11540         * tests/test-ceill-ieee.c (main): Likewise.
11541
11542         floor: Implement result sign according to IEEE 754.
11543         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
11544         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
11545         * tests/test-floorf2.c (floorf_reference): Likewise.
11546         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
11547         * tests/test-floor-ieee.c (main): Likewise.
11548         * tests/test-floorl-ieee.c (main): Likewise.
11549
11550 2010-12-22  Bruno Haible  <bruno@clisp.org>
11551
11552         getaddrinfo: Update doc.
11553         * doc/posix-functions/gai_strerror.texi: Return type is also different
11554         on AIX and HP-UX.
11555
11556 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11557
11558         getaddrinfo, inet_ntop: Update doc for Solaris.
11559         * doc/posix-functions/gai_strerror.texi: Return type is also an
11560         issue on Solaris 9 and earlier.
11561         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
11562         on Solaris 10 and earlier.
11563
11564 2010-12-21  Bruno Haible  <bruno@clisp.org>
11565
11566         New module 'roundl-ieee'.
11567         * modules/roundl-ieee: New file.
11568         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
11569         test whether roundl works according to ISO C 99 with IEC 60559.
11570         * m4/roundl-ieee.m4: New file.
11571         * modules/roundl-ieee-tests: New file.
11572         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
11573         * tests/test-roundl.c (main): Remove signbit tests.
11574         * modules/roundl-tests (Depends-on): Remove signbit.
11575         * doc/posix-functions/roundl.texi: Mention the new module.
11576
11577 2010-12-21  Bruno Haible  <bruno@clisp.org>
11578
11579         New module 'truncl-ieee'.
11580         * modules/truncl-ieee: New file.
11581         * modules/truncl-ieee-tests: New file.
11582         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
11583         * tests/test-truncl.c (main): Remove signbit tests.
11584         * modules/truncl-tests (Depends-on): Remove signbit.
11585         * doc/posix-functions/truncl.texi: Mention the new module.
11586
11587 2010-12-21  Bruno Haible  <bruno@clisp.org>
11588
11589         New module 'ceill-ieee'.
11590         * modules/ceill-ieee: New file.
11591         * modules/ceill-ieee-tests: New file.
11592         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
11593         * tests/test-ceill.c (main): Remove signbit tests.
11594         * modules/ceill-tests (Depends-on): Remove signbit.
11595         * doc/posix-functions/ceill.texi: Mention the new module.
11596
11597 2010-12-21  Bruno Haible  <bruno@clisp.org>
11598
11599         New module 'floorl-ieee'.
11600         * modules/floorl-ieee: New file.
11601         * modules/floorl-ieee-tests: New file.
11602         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
11603         * tests/test-floorl.c (main): Remove signbit tests.
11604         * modules/floorl-tests (Depends-on): Remove signbit.
11605         * doc/posix-functions/floorl.texi: Mention the new module.
11606
11607 2010-12-21  Bruno Haible  <bruno@clisp.org>
11608
11609         New module 'round-ieee'.
11610         * modules/round-ieee: New file.
11611         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
11612         whether round works according to ISO C 99 with IEC 60559.
11613         * m4/round-ieee.m4: New file.
11614         * modules/round-ieee-tests: New file.
11615         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
11616         * tests/test-round1.c (main): Remove signbit tests.
11617         * modules/round-tests (Depends-on): Remove 'signbit'.
11618         * doc/posix-functions/round.texi: Mention the new module.
11619
11620 2010-12-21  Bruno Haible  <bruno@clisp.org>
11621
11622         New module 'trunc-ieee'.
11623         * modules/trunc-ieee: New file.
11624         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
11625         whether trunc works according to ISO C 99 with IEC 60559.
11626         * m4/trunc-ieee.m4: New file.
11627         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
11628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
11629         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
11630         * modules/trunc-ieee-tests: New file.
11631         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
11632         * tests/test-trunc1.c (main): Remove signbit tests.
11633         * modules/trunc-tests (Depends-on): Remove 'signbit'.
11634         * doc/posix-functions/trunc.texi: Mention the new module.
11635
11636 2010-12-21  Bruno Haible  <bruno@clisp.org>
11637
11638         New module 'ceil-ieee'.
11639         * modules/ceil-ieee: New file.
11640         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
11641         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
11642         ISO C 99 with IEC 60559.
11643         * m4/ceil-ieee.m4: New file.
11644         * modules/ceil (Files): Add lib/ceil.c.
11645         (Depends-on): Add 'float'.
11646         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11647         * lib/math.in.h (ceil): New declaration.
11648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
11649         REPLACE_CEIL.
11650         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
11651         * modules/ceil-ieee-tests: New file.
11652         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
11653         * tests/test-math-c++.cc: Check the signature of 'ceil'.
11654         * doc/posix-functions/ceil.texi: Mention the new module.
11655
11656 2010-12-21  Bruno Haible  <bruno@clisp.org>
11657
11658         New module 'floor-ieee'.
11659         * modules/floor-ieee: New file.
11660         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
11661         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
11662         ISO C 99 with IEC 60559.
11663         * m4/floor-ieee.m4: New file.
11664         * modules/floor (Files): Add lib/floor.c.
11665         (Depends-on): Add 'float'.
11666         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11667         * lib/math.in.h (floor): New declaration.
11668         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
11669         REPLACE_FLOOR.
11670         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
11671         * modules/floor-ieee-tests: New file.
11672         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
11673         * tests/test-math-c++.cc: Check the signature of 'floor'.
11674         * doc/posix-functions/floor.texi: Mention the new module.
11675
11676 2010-12-21  Bruno Haible  <bruno@clisp.org>
11677
11678         New module 'roundf-ieee'.
11679         * modules/roundf-ieee: New file.
11680         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
11681         test whether roundf works according to ISO C 99 with IEC 60559.
11682         * m4/roundf-ieee.m4: New file.
11683         * modules/roundf-ieee-tests: New file.
11684         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
11685         * tests/test-roundf1.c (main): Remove signbit tests.
11686         * modules/roundf-tests (Depends-on): Remove 'signbit'.
11687         * doc/posix-functions/roundf.texi: Mention the new module.
11688
11689 2010-12-21  Bruno Haible  <bruno@clisp.org>
11690
11691         New module 'truncf-ieee'.
11692         * modules/truncf-ieee: New file.
11693         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
11694         test whether truncf works according to ISO C 99 with IEC 60559.
11695         * m4/truncf-ieee.m4: New file.
11696         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
11697         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
11698         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
11699         * modules/truncf-ieee-tests: New file.
11700         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
11701         * tests/test-truncf1.c (main): Remove signbit tests.
11702         * modules/truncf-tests (Depends-on): Remove 'signbit'.
11703         * doc/posix-functions/truncf.texi: Mention the new module.
11704
11705 2010-12-21  Bruno Haible  <bruno@clisp.org>
11706
11707         New module 'ceilf-ieee'.
11708         * modules/ceilf-ieee: New file.
11709         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
11710         test whether ceilf works according to ISO C 99 with IEC 60559.
11711         * m4/ceilf-ieee.m4: New file.
11712         * modules/ceilf-ieee-tests: New file.
11713         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
11714         * tests/test-ceilf1.c (main): Remove signbit tests.
11715         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
11716         * doc/posix-functions/ceilf.texi: Mention the new module.
11717
11718 2010-12-21  Bruno Haible  <bruno@clisp.org>
11719
11720         New module 'floorf-ieee'.
11721         * modules/floorf-ieee: New file.
11722         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
11723         test whether floorf works according to ISO C 99 with IEC 60559.
11724         * m4/floorf-ieee.m4: New file.
11725         * modules/floorf-ieee-tests: New file.
11726         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
11727         * tests/test-floorf1.c (main): Remove signbit tests.
11728         * modules/floorf-tests (Depends-on): Remove 'signbit'.
11729         * doc/posix-functions/floorf.texi: Mention the new module.
11730
11731 2010-12-21  Bruno Haible  <bruno@clisp.org>
11732
11733         Support for minus zero in autoconf macros.
11734         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
11735         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
11736         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
11737         * tests/minus-zero.h: Update comments.
11738
11739 2010-12-21  Bruno Haible  <bruno@clisp.org>
11740
11741         Tests for module 'ceil'.
11742         * modules/ceil-tests: New file.
11743         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
11744         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
11745
11746 2010-12-21  Bruno Haible  <bruno@clisp.org>
11747
11748         Tests for module 'floor'.
11749         * modules/floor-tests: New file.
11750         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
11751         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
11752
11753 2010-12-21  Bruno Haible  <bruno@clisp.org>
11754
11755         math: Fix indentation.
11756         * lib/math.in.h (floorf): Fix indentation.
11757
11758 2010-12-21  Bruno Haible  <bruno@clisp.org>
11759
11760         Fix cross-compilation guesses on Solaris.
11761         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
11762         not match "solaris2.10".
11763         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11764         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
11765         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11766
11767 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
11768
11769         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
11770         This fixes a problem observed with the latest coreutils snapshot
11771         that caused a test to fail on Solaris 8.  src/csplit.c's call
11772         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
11773         earlier, instead of returning the number of bytes that would have
11774         been generated; this causes csplit to incorrectly report memory
11775         exhaustion.
11776         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
11777         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
11778         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
11779         comments to match.
11780         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
11781         Fix typo in matching older versions of Solaris: "solaris2.10"
11782         is matched by the shell pattern "solaris2.[0-9]*".  This matters
11783         only for guessing while cross-compiling.
11784         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
11785
11786 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
11787
11788         ftoastr: fix comment again
11789         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11790         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
11791         Also, simplify example a bit by using flags = 0.
11792
11793 2010-12-20  Bruno Haible  <bruno@clisp.org>
11794
11795         round*, trunc*: Update documentation regarding glibc.
11796         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
11797         * doc/posix-functions/round.texi: Likewise.
11798         * doc/posix-functions/roundl.texi: Likewise.
11799         * doc/posix-functions/truncf.texi: Likewise.
11800         * doc/posix-functions/trunc.texi: Likewise.
11801         * doc/posix-functions/truncl.texi: Likewise.
11802
11803 2010-12-20  Bruno Haible  <bruno@clisp.org>
11804
11805         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
11806         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
11807         * doc/posix-functions/round.texi: Likewise.
11808         * doc/posix-functions/roundl.texi: Likewise.
11809
11810 2010-12-20  Bruno Haible  <bruno@clisp.org>
11811
11812         ttyname_r: Add missing declaration on HP-UX 11.
11813         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
11814         HAVE_TTYNAME_R.
11815         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
11816         declared. Set HAVE_TTYNAME_R always.
11817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11818         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
11819         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
11820         HAVE_TTYNAME_R.
11821         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
11822
11823 2010-12-20  Bruno Haible  <bruno@clisp.org>
11824
11825         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
11826         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
11827         * doc/posix-functions/getlogin_r.texi: Likewise.
11828         * tests/test-getlogin.c: Include <errno.h>.
11829         (main): Avoid test failure on HP-UX 11.11.
11830         * tests/test-getlogin_r.c (main): Likewise.
11831
11832 2010-12-20  Bruno Haible  <bruno@clisp.org>
11833
11834         getlogin_r: Add missing declaration on HP-UX 11.
11835         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
11836         declared also when it exists as a function.
11837         * doc/posix-functions/getlogin_r.texi: Document this workaround.
11838
11839 2010-12-20  Bruno Haible  <bruno@clisp.org>
11840
11841         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
11842         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
11843         through wcrtomb.
11844
11845 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
11846
11847         ftoastr: fix comment
11848         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11849         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
11850
11851 2010-12-19  Bruno Haible  <bruno@clisp.org>
11852
11853         isnan: Ensure it is a macro.
11854         * lib/math.in.h (isnan): Define as a macro if not already a macro.
11855         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
11856         Solaris.
11857
11858 2010-12-19  Bruno Haible  <bruno@clisp.org>
11859
11860         ldexpl test: Fix link error on OSF/1 5.1.
11861         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
11862
11863 2010-12-19  Bruno Haible  <bruno@clisp.org>
11864
11865         wctype: Make it work in C++ mode on OSF/1 5.1.
11866         * lib/wctype.in.h (iswblank): Declare but not define here.
11867         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
11868         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
11869         * modules/wctype (Files): Add lib/iswblank.c.
11870
11871 2010-12-19  Bruno Haible  <bruno@clisp.org>
11872
11873         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
11874         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
11875         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
11876
11877 2010-12-19  Bruno Haible  <bruno@clisp.org>
11878
11879         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
11880         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
11881         _POSIX_PII_SOCKET.
11882         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
11883         * doc/posix-functions/recvfrom.texi: Likewise.
11884         * doc/posix-functions/send.texi: Likewise.
11885         * doc/posix-functions/sendto.texi: Likewise.
11886
11887 2010-12-19  Bruno Haible  <bruno@clisp.org>
11888
11889         tcgetsid: Add missing declaration on OSF/1 5.1.
11890         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
11891         HAVE_TCGETSID.
11892         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
11893         Don't set HAVE_TCGETSID.
11894         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
11895         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
11896         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
11897         HAVE_TCGETSID.
11898         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
11899
11900 2010-12-19  Bruno Haible  <bruno@clisp.org>
11901
11902         stdio: Fix problem with popen() declaration on OSF/1 5.1.
11903         * lib/stdio.in.h: During the include_next statement, let recursive
11904         includes of this file include only the system header file.
11905
11906 2010-12-19  Bruno Haible  <bruno@clisp.org>
11907
11908         iconv_open: Fix regression from 2010-12-04.
11909         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
11910         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
11911
11912 2010-12-19  Bruno Haible  <bruno@clisp.org>
11913
11914         stdbool test: Avoid a gcc warning.
11915         * tests/test-stdbool.c (main): Fail if e1 is false.
11916         Reported by Jim Meyering.
11917
11918 2010-12-19  Jim Meyering  <meyering@redhat.com>
11919
11920         setenv: restore to working order
11921         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
11922         mistakenly removed.
11923         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
11924         HAVE_SETENV.
11925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
11926         HAVE_SETENV.
11927
11928 2010-12-19  Bruno Haible  <bruno@clisp.org>
11929
11930         Document some different function declarations on OSF/1 5.1.
11931         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
11932         * doc/posix-functions/inet_ntop.texi: Likewise.
11933         * doc/posix-functions/gethostname.texi: Likewise.
11934         * lib/unistd.in.h (gethostname): Update comment.
11935
11936 2010-12-19  Bruno Haible  <bruno@clisp.org>
11937
11938         doc: Mention vasprintf-posix module.
11939         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
11940         the 'vasprintf-posix' module.
11941         * doc/glibc-functions/vasprintf.texi: Likewise.
11942
11943 2010-12-19  Bruno Haible  <bruno@clisp.org>
11944
11945         unsetenv: Add missing declaration on OSF/1 5.1.
11946         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
11947         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
11948         Don't set HAVE_UNSETENV. In the test program, set _BSD.
11949         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
11950         not HAVE_UNSETENV.
11951         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
11952         HAVE_UNSETENV.
11953         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
11954
11955 2010-12-19  Bruno Haible  <bruno@clisp.org>
11956
11957         setenv: Add missing declaration on OSF/1 5.1.
11958         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
11959         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
11960         declared. Don't set HAVE_SETENV.
11961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
11962         not HAVE_SETENV.
11963         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
11964         HAVE_SETENV.
11965         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
11966
11967 2010-12-19  Bruno Haible  <bruno@clisp.org>
11968
11969         nl_langinfo tests: Avoid gcc warning.
11970         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
11971
11972 2010-12-19  Bruno Haible  <bruno@clisp.org>
11973
11974         mknod: Avoid error in C++ mode on OSF/1 with GCC.
11975         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
11976         _GL_CXXALIAS_SYS.
11977
11978 2010-12-19  Bruno Haible  <bruno@clisp.org>
11979
11980         stdbool: Relax test.
11981         * tests/test-stdbool.c (e): Don't require that casts from a variable's
11982         address to 'bool' work in static initializer, for compilers other than
11983         GCC.
11984
11985 2010-12-19  Bruno Haible  <bruno@clisp.org>
11986
11987         ftello: Add missing declaration on OSF/1 5.1.
11988         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
11989         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
11990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
11991         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
11992         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
11993
11994 2010-12-19  Bruno Haible  <bruno@clisp.org>
11995
11996         fseeko: Add missing declaration on OSF/1 5.1.
11997         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
11998         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
11999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
12000         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
12001         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
12002
12003 2010-12-19  Bruno Haible  <bruno@clisp.org>
12004
12005         fchdir: Add missing declaration on OSF/1 5.1.
12006         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
12007         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
12008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
12009         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
12010         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
12011
12012 2010-12-19  Bruno Haible  <bruno@clisp.org>
12013
12014         relocatable-prog-wrapper: Separate from relocatable-prog.
12015         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
12016         uninstall-relocwrapper rule here.
12017         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
12018         Reported by Ian Beckwith <ianb@erislabs.net>.
12019
12020 2010-12-19  Bruno Haible  <bruno@clisp.org>
12021
12022         unistr/u8-mbsnlen: Add missing dependency.
12023         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
12024         Reported by Ian Beckwith <ianb@erislabs.net>.
12025
12026 2010-12-19  Bruno Haible  <bruno@clisp.org>
12027
12028         iconv: Make it possible again to use this module without 'iconv-h'.
12029         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
12030         if it is not defined.
12031         Reported by Ian Beckwith <ianb@erislabs.net>.
12032
12033 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
12034
12035         acl: port to Solaris 8 when copying from tmpfs to ufs
12036         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
12037         error number.  Problem observed on Solaris 8 with latest
12038         coreutils, with "mv A B", where A is on a tmpfs file system and B
12039         is on a ufs file system.  This caused coreutils' mv/part-symlink
12040         test to fail.
12041
12042         tests: set fail=0 at start
12043         * tests/init.sh (setup_): Move fail=0 initialization here ...
12044         (mktempd_): ... from here, so that tests can rely on fail being
12045         set to 0 initially.  This fixes a problem in coreutils; see:
12046         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
12047
12048 2010-12-18  Bruno Haible  <bruno@clisp.org>
12049
12050         memmem-simple: Stylistic changes.
12051         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
12052         Fix preprocessor directive indentation.
12053
12054 2010-12-15  Pádraig Brady <P@draigBrady.com>
12055
12056         memmem, memmem-simple: reorganize and expand empty needle check
12057         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
12058         functional checks to memmem-simple so that one has a fully functional
12059         memmem by using just this module.
12060         Restrict the performance only check to the memmem module.
12061         Also expand the empty needle check to ensure the correct
12062         pointer is returned, not just a non NULL pointer.
12063         * doc/glibc-functions/memmem.texi: Rearrange the portability
12064         documentation to correlate with the rearranged checks.
12065         Clarify exactly how the memmem and memmem-simple modules
12066         relate to each other.
12067
12068 2010-12-15  Pádraig Brady <P@draigBrady.com>
12069             Bruno Haible  <bruno@clisp.org>
12070
12071         Improve cross-compilation guesses for uClibc.
12072         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
12073         that uClibc does not have the glibc bug.
12074         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12075         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
12076
12077 2010-12-14  Eric Blake  <eblake@redhat.com>
12078
12079         configmake: provide fallbacks for oldest supported autotools
12080         * m4/configmake.m4: New file.
12081         * modules/configmake (Files): Ship it.
12082         (configure.ac): Use it to guarantee fallbacks.
12083
12084 2010-12-13  Pádraig Brady <P@draigBrady.com>
12085
12086         read-file: Improve handling of large files
12087         * lib/read-file.c (fread_file): Minimize realloc()s
12088         for regular files, and better manage sizes around SIZE_MAX.
12089
12090 2010-12-13  Eric Blake  <eblake@redhat.com>
12091
12092         cloexec, fcntl: relax license
12093         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
12094         consent from all contributors.
12095         * modules/fcntl (License): Likewise.
12096
12097 2010-12-10  Bruno Haible  <bruno@clisp.org>
12098
12099         Tests for module 'pipe-posix'.
12100         * modules/pipe-posix-tests: New file.
12101         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
12102
12103 2010-12-10  Bruno Haible  <bruno@clisp.org>
12104
12105         pipe-posix: Make it work in C++ mode.
12106         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
12107         (pipe): Use common idiom, not a macro definition.
12108         * lib/pipe.c: New file.
12109         * m4/pipe.m4: New file.
12110         * modules/pipe-posix (Description): Enhance.
12111         (Files): Add lib/pipe.c, m4/pipe.m4.
12112         (configure.ac): Invoke gl_FUNC_PIPE.
12113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
12114         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
12115         * tests/test-unistd-c++.cc: Check the signature of pipe.
12116
12117 2010-12-10  Bruno Haible  <bruno@clisp.org>
12118
12119         Rename module 'pipe' to 'spawn-pipe'.
12120         * modules/spawn-pipe: New file, renamed from modules/pipe.
12121         (Files, configure.ac, Makefile.am): Update.
12122         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
12123         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
12124         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
12125         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
12126         "spawn-pipe.h" instead of "pipe.h".
12127         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
12128         to gl_SPAWN_PIPE.
12129         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
12130         (Files, Makefile.am): Update.
12131         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
12132         Update.
12133         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
12134         Include "spawn-pipe.h" instead of "pipe.h".
12135         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
12136         * lib/javacomp.c: Likewise.
12137         * lib/javaversion.c: Likewise.
12138         * lib/pipe-filter-gi.c: Likewise.
12139         * lib/pipe-filter-ii.c: Likewise.
12140         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
12141         * modules/javacomp (Depends-on): Likewise.
12142         * modules/javaversion (Depends-on): Likewise.
12143         * modules/pipe-filter-gi (Depends-on): Likewise.
12144         * modules/pipe-filter-ii (Depends-on): Likewise.
12145         * MODULES.html.sh (Executing programs): Update.
12146         * NEWS: Mention the change.
12147
12148 2010-12-10  Eric Blake  <eblake@redhat.com>
12149
12150         pipe-posix: new module
12151         * modules/pipe-posix: New file.
12152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
12153         (gl_UNISTD_H): Check for declaration.
12154         * modules/unistd (Makefile.am): Substitute it.
12155         * lib/unistd.in.h (pipe): Provide it for mingw.
12156         * doc/posix-functions/pipe.texi (pipe): Update documentation.
12157         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
12158
12159 2010-12-07  Bruno Haible  <bruno@clisp.org>
12160
12161         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
12162         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
12163         u8_strcmp_gnu.
12164         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
12165
12166 2010-12-06  Bruno Haible  <bruno@clisp.org>
12167
12168         Update internal documentation.
12169         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
12170
12171 2010-12-04  Bruno Haible  <bruno@clisp.org>
12172
12173         Put more information about failed tests into the test return codes.
12174         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
12175         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
12176         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12177         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12178         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
12179         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12180         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12181         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12182         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
12183         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12184         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
12185         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12186         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12187         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12188         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
12189         returns a bit mask.
12190         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12191         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
12192         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
12193         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12194         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12195         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12196         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12197         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
12198         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12199         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12200         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12201         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12202         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12203         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12204         * m4/link.m4 (gl_FUNC_LINK): Likewise.
12205         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
12206         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
12207         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
12208         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12209         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
12210         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12211         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12212         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12213         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12214         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12215         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12216         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12217         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12218         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12219         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
12220         gl_PRINTF_PRECISION): Likewise.
12221         * m4/regex.m4 (gl_REGEX): Likewise.
12222         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12223         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12224         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
12225         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12226         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12228         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12229         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
12230         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12231         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12232         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
12233         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12234         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12235         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12236         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12237         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12238         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12239         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12240         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12241         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
12242         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
12243         enumerated value.
12244         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
12245
12246 2010-12-04  Bruno Haible  <bruno@clisp.org>
12247
12248         Update for Solaris 11 2010-11.
12249         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
12250         Express, released in November 2010.
12251
12252 2010-12-04  Bruno Haible  <bruno@clisp.org>
12253
12254         nproc: Relax license.
12255         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
12256         and Paul Eggert.
12257         Requested by Ludovic Courtès <ludo@gnu.org>.
12258
12259 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
12260
12261         utimecmp: fine-grained src to nearby coarse-grained dest
12262
12263         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
12264         and the source is on a file system with higher-resolution time
12265         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
12266         not work, and the time stamps are close together, the algorithm to
12267         determine the exact resolution from the read-back mtime was buggy:
12268         it had a "!=" where it should have had an "==".  This bug has been
12269         in the code ever since it was introduced to gnulib.
12270         Problem reported by Dan Jacobson in
12271         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
12272
12273 2010-11-30  Bruno Haible  <bruno@clisp.org>
12274
12275         strerror_r-posix: Fix autoconf test.
12276         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
12277
12278 2010-11-28  Bruno Haible  <bruno@clisp.org>
12279             Paul Eggert  <eggert@cs.ucla.edu>
12280
12281         Tests for module 'getdomainname'.
12282         * modules/getdomainname-tests: New file.
12283         * tests/test-getdomainname.c: New file, based on
12284         tests/test-gethostname.c.
12285
12286 2010-11-28  Bruno Haible  <bruno@clisp.org>
12287             Paul Eggert  <eggert@cs.ucla.edu>
12288
12289         getdomainname: Use the system function when possible.
12290         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
12291         (getdomainname): Replace if needed. Provide the declaration if it is
12292         missing. Don't use _GL_CXXALIAS_SYS_CAST.
12293         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
12294         (getdomainname): When the system has getdomainname, call the system
12295         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
12296         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
12297         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
12298         found in libnsl. Look for the declaration also in <netdb.h>. Replace
12299         the function if its second argument is of type 'int' or if it is found
12300         in libnsl.
12301         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
12302         <sys/systeminfo.h> and sysinfo().
12303         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
12304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12305         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
12306         HAVE_GETDOMAINNAME.
12307         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
12308         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
12309         * doc/glibc-functions/getdomainname.texi: Document the problems with
12310         the getdomainname declaration.
12311
12312 2010-11-28  Bruno Haible  <bruno@clisp.org>
12313
12314         sys_socket: Ensure ss_family field on AIX.
12315         * lib/sys_socket.in.h (ss_family): New macro definition.
12316         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
12317         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
12318         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12319         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12320         * modules/sys_socket (Makefile.am): Substitute
12321         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
12322         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
12323
12324 2010-11-27  Bruno Haible  <bruno@clisp.org>
12325
12326         readline: Improve configure output.
12327         * m4/readline.m4 (gl_FUNC_READLINE): Make the
12328         "checking for readline..." result understandable.
12329
12330 2010-11-27  Bruno Haible  <bruno@clisp.org>
12331
12332         *printf-posix: Detect a bug on Solaris 10/x86.
12333         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
12334         for floating-point output.
12335         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
12336         directive.
12337         * tests/test-snprintf-posix.h (test_function): Likewise.
12338         * tests/test-sprintf-posix.h (test_function): Likewise.
12339         * tests/test-vasprintf-posix.c (test_function): Likewise.
12340         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
12341         * doc/posix-functions/printf.texi: Likewise.
12342         * doc/posix-functions/snprintf.texi: Likewise.
12343         * doc/posix-functions/sprintf.texi: Likewise.
12344         * doc/posix-functions/vfprintf.texi: Likewise.
12345         * doc/posix-functions/vprintf.texi: Likewise.
12346         * doc/posix-functions/vsnprintf.texi: Likewise.
12347         * doc/posix-functions/vsprintf.texi: Likewise.
12348         * doc/glibc-functions/obstack_printf.texi: Likewise.
12349         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12350
12351 2010-11-27  Bruno Haible  <bruno@clisp.org>
12352
12353         Fix link error when module libunistring-optional is in use.
12354         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
12355         * modules/striconveha-tests (Makefile.am): Likewise.
12356
12357 2010-11-27  Bruno Haible  <bruno@clisp.org>
12358
12359         regex: Mention link dependencies.
12360         * modules/regex (Link): New section.
12361         * modules/rpmatch (Link): Likewise.
12362         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
12363
12364 2010-11-27  Bruno Haible  <bruno@clisp.org>
12365
12366         ftoastr: Fix compilation error on Solaris.
12367         * lib/ftoastr.c: Include <config.h>.
12368
12369 2010-11-27  Bruno Haible  <bruno@clisp.org>
12370
12371         getloadavg: Update documentation.
12372         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
12373
12374 2010-11-27  Bruno Haible  <bruno@clisp.org>
12375
12376         sys_socket: Fix test whether the functions are declared.
12377         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
12378         not <sys/select.h>.
12379
12380 2010-11-27  Bruno Haible  <bruno@clisp.org>
12381
12382         getpass: Make sure to get system declaration on some platforms.
12383         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
12384         gl_USE_SYSTEM_EXTENSIONS.
12385         * modules/getpass (Depends-on): Add extensions.
12386
12387 2010-11-26  Bruno Haible  <bruno@clisp.org>
12388
12389         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
12390         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
12391         'iconv' module is present.
12392         (ICONV_CONST): New macro.
12393         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
12394         ICONV_CONST.
12395         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
12396         set ICONV_CONST.
12397         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
12398         here.
12399         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
12400         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
12401         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
12402         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
12403         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
12404         present.
12405
12406 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
12407
12408         ftoastr: comment fix
12409         * lib/ftoastr.c: "little" -> "little or no" in comment
12410
12411 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
12412
12413         stdint: port to GCC 4.3 + OSX + Octave
12414         On this platform, stdint.h is buggy and defines int64_t to long
12415         long int.  The replacement defined it to long int, causing
12416         problems with C++ style name mangling.  Instead, trust the system
12417         definition if INT64_MAX is defined, and likewise for the unsigned
12418         variant.   Problem reported by Jarno Rajahalme in
12419         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
12420         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
12421         and don't mess with int64_t and INT64_MAX in this case.
12422         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
12423
12424 2010-11-24  Bruno Haible  <bruno@clisp.org>
12425
12426         doc: Corrections regarding MacOS X 10.4 and 10.5.
12427         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
12428         MacOS X.
12429         Reported by Simon Josefsson.
12430
12431 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
12432
12433         Uninstall ".bin" files installed by relocwrapper.
12434         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
12435         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
12436         unless it is already there.
12437
12438 2010-11-21  Bruno Haible  <bruno@clisp.org>
12439
12440         Update for NetBSD 5.0.
12441         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12442         NetBSD; the test fails on NetBSD 5.0.
12443         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12444         about NetBSD.
12445
12446 2010-11-21  Bruno Haible  <bruno@clisp.org>
12447
12448         Update for HP-UX 11.23 and HP-UX 11.31.
12449         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
12450         HP-UX.
12451
12452 2010-11-21  Bruno Haible  <bruno@clisp.org>
12453
12454         Update for MacOS X 10.5.
12455         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
12456         MacOS X; the test fails on MacOS X 10.5.8.
12457         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
12458         about MacOS X.
12459
12460 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
12461
12462         bootstrap: add bootstrap_sync option.
12463         See discussion at
12464         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
12465         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
12466         * build-aux/bootstrap: Accept --bootstrap-sync to update
12467         bootstrap if it is not identical to the local gnulib's
12468         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
12469         enable this by default.  Accept --no-bootstrap-sync to disable
12470         it.
12471
12472 2010-11-20  Bruno Haible  <bruno@clisp.org>
12473
12474         Ensure that <features.h> is included before __GLIBC__ is tested.
12475         * lib/printf-parse.h: Include <features.h>.
12476         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
12477         Reported by Mike Frysinger <vapier@gentoo.org>.
12478
12479         Ensure that <features.h> is included before __GLIBC__ is tested.
12480         * lib/wchar.in.h: Include <features.h>.
12481         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
12482         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
12483         Reported by Mike Frysinger <vapier@gentoo.org>.
12484
12485         Ensure that <features.h> is included before __GLIBC__ is tested.
12486         * lib/arpa_inet.in.h: Include <features.h>.
12487         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
12488         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
12489         Reported by Mike Frysinger <vapier@gentoo.org>.
12490
12491         Ensure that <features.h> is included before __GLIBC__ is tested.
12492         * build-aux/link-warning.h: Include <features.h>.
12493         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
12494         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
12495         Reported by Mike Frysinger <vapier@gentoo.org>.
12496
12497         Ensure that <features.h> is included before __GLIBC__ is tested.
12498         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
12499         Reported by Mike Frysinger <vapier@gentoo.org>.
12500
12501 2010-11-20  Bruno Haible  <bruno@clisp.org>
12502
12503         memmem: Fix autoconf test.
12504         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
12505
12506 2010-11-20  Bruno Haible  <bruno@clisp.org>
12507
12508         Port to uClibc.
12509         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
12510         * lib/fcntl.in.h: Likewise.
12511         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
12512         * lib/mbrtowc.c (mbrtowc): Likewise.
12513         * lib/relocatable.c (find_shared_library_fullname): Likewise.
12514         * lib/strerror_r.c: Likewise.
12515         * lib/unistr/u8-strnlen.c: Likewise.
12516         * lib/vasnprintf.c (decimal_point_char): Likewise.
12517         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12518         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12519         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12520         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
12521         * tests/test-sigaction.c (handler, main): Likewise.
12522         * lib/freading.h: Treat uClibc like a non-glibc platform.
12523         * lib/freading.c: Likewise.
12524         * lib/gettext.h: Likewise.
12525         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
12526         Likewise.
12527         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
12528         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
12529         * lib/propername.c (proper_name_utf8): Likewise.
12530         * lib/spawn.in.h: Likewise.
12531         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
12532         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
12533         mem_cd_iconveh_internal): Likewise.
12534         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
12535         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
12536         strstr, strcasestr): Likewise.
12537         * lib/unicodeio.c (unicode_to_mb): Likewise.
12538         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
12539         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
12540         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
12541         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
12542         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
12543         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
12544         * lib/unistr/u8-stpncpy.c: Likewise.
12545         * lib/vasnprintf.c (VASNPRINTF): Likewise.
12546         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
12547         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12548         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12549         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
12550         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
12551         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
12552         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
12553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12554         Likewise.
12555         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12556         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12557         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
12558         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12559         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
12560         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12561         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12562         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12563         * tests/test-getopt.h (OPTIND_MIN): Likewise.
12564         * tests/test-striconveha.c (main): Likewise.
12565         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12566         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
12567         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
12568         * doc/posix-functions/getline.texi: Likewise.
12569         Reported by Mike Frysinger <vapier@gentoo.org>.
12570
12571 2010-11-20  Bruno Haible  <bruno@clisp.org>
12572
12573         nproc: Fix condition.
12574         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
12575         HAVE_PTHREAD_AFFINITY_NP.
12576
12577 2010-11-20  Bruno Haible  <bruno@clisp.org>
12578
12579         Fix a comment.
12580         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
12581
12582 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
12583
12584         ftoastr: don't assume snprintf
12585         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
12586         Implement a subset of snprintf here, by using sprintf safely.
12587         * modules/ftoastr (Depends-on): Remove snprintf.
12588
12589 2010-11-19  Jim Meyering  <meyering@redhat.com>
12590
12591         test-rename.h: fix compilation failure
12592         * tests/test-rename.h (test_rename): Add omitted "}".
12593
12594 2010-11-17  Jim Meyering  <meyering@redhat.com>
12595
12596         maint.mk: add a URL discussing the no-@acronym policy
12597         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
12598
12599 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
12600
12601         ftoastr: depend on snprintf, improve comments
12602         * lib/ftoastr.c: Also mention Loitsch's draft.
12603         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
12604         needed in the current implementation, but it might simplify
12605         speeding up the code later.
12606         * modules/ftoastr: Depend on snprintf; this improves portability.
12607         Suggested by Bruno Haible in the same email.
12608
12609         ftoastr: port to hosts lacking strtof and strtold
12610         Problem reported by Bruno Haible in
12611         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
12612         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
12613         environment and strtold (and presumably strtof) are not available.
12614         * modules/ftoastr (Files): Add m4/c-strtod.m4.
12615         (configure.ac): Require gl_C99_STRTOLD.
12616
12617 2010-11-18  Bruno Haible  <bruno@clisp.org>
12618
12619         c-strtold: Avoid link error on AIX 7.
12620         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
12621         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
12622         (gl_C_STRTOLD): Test whether strtold_l exists.
12623         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12624
12625 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
12626
12627         intprops: new macro INT_BITS_STRLEN_BOUND
12628         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
12629         ftoastr.h.  This exposes an internal of intprops.h that was formerly
12630         not exposed.  Also, it uses a slightly tighter bound than before;
12631         though this makes no practical difference, we might as well be as
12632         tight as we easily can.
12633
12634         ftoastr: new module, for lossless conversion of floats to short strings
12635         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
12636         * modules/ftoastr: New files.
12637
12638 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
12639
12640         bootstrap: port to Solaris sed
12641         * build-aux/bootstrap (get_version): Port to Solaris sed.
12642         See Ralf Wildenhues's note in
12643         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
12644
12645 2010-11-14  Jim Meyering  <meyering@redhat.com>
12646
12647         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
12648         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
12649         and move definition closer to sole use.
12650
12651 2010-11-13  Jim Meyering  <meyering@redhat.com>
12652
12653         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
12654         Now we require at least autoconf-2.59, which means the work-around
12655         is no longer needed.
12656         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
12657         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12658         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12659         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
12660         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12661
12662 2010-11-13  Bruno Haible  <bruno@clisp.org>
12663
12664         rename, renameat: Avoid test failures at NFS mounted locations.
12665         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
12666         functions.
12667         (test_rename): Use assert_nonexistent.
12668         * tests/test-rename.c: Include <dirent.h>.
12669         * tests/test-renameat.c: Likewise.
12670         Reported by Gary V. Vaughan <gary@gnu.org>.
12671
12672         rename, renameat: Document Linux bug with NFS
12673         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
12674         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
12675         * doc/posix-functions/renameat.texi: Likewise.
12676         Suggested by Eric Blake.
12677
12678 2010-11-13  Bruno Haible  <bruno@clisp.org>
12679
12680         rename test: Add comments.
12681         * tests/test-rename.h (test_rename): Add structure and comments.
12682
12683 2010-11-13  Eric Blake  <eblake@redhat.com>
12684
12685         maintainer-makefile: cover a few more files
12686         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
12687         scripts generated within C files, for libvirt.
12688
12689 2010-11-13  Bruno Haible  <bruno@clisp.org>
12690
12691         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
12692         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
12693         character, return the number of bytes that belong together, not always
12694         1.
12695         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
12696         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
12697         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
12698         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
12699         number of bytes of an invalid character.
12700         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
12701         (main): Invoke it.
12702         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
12703         results.
12704         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
12705         malformed byte sequences.
12706         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
12707         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
12708         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
12709         Reported by Ben Pfaff and Paolo Bonzini.
12710
12711 2010-11-13  Bruno Haible  <bruno@clisp.org>
12712
12713         openat: Work around glibc bug with fchownat() and empty file names.
12714         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
12715         (gl_FUNC_FCHOWNAT): Invoke it.
12716         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
12717         * doc/posix-functions/fchownat.texi: Document the glibc bug.
12718         Reported by Gary V. Vaughan <gary@gnu.org>.
12719
12720 2010-11-13  Bruno Haible  <bruno@clisp.org>
12721
12722         openat: Ensure autoconf macro ordering.
12723         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
12724         gl_USE_SYSTEM_EXTENSIONS.
12725         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
12726
12727 2010-11-13  Bruno Haible  <bruno@clisp.org>
12728
12729         Update comments.
12730         * lib/unistr/u8-check.c: Update file name in comments.
12731         * lib/unistr/u8-mblen.c: Likewise.
12732         * lib/unistr/u8-prev.c: Likewise.
12733         * lib/unistr/u8-strmblen.c: Likewise.
12734         * lib/unistr/u8-strmbtouc.c: Likewise.
12735
12736 2010-11-13  Jim Meyering  <meyering@redhat.com>
12737
12738         tests: avoid test failure on Solaris 10 due to lack of PATH export
12739         * tests/test-update-copyright.sh: Don't forget to export PATH.
12740
12741         init.sh: ensure that IFS is defined, just in case...
12742         * tests/init.sh (setup_): Ensure that IFS is defined,
12743         so that saving and restoring it works as expected.  This
12744         appears to be useful at least for an old version of dash
12745         from a long time ago (RH 6).  See here for details:
12746         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
12747
12748         maint.mk: tighten "test a == b" check
12749         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
12750         test to files that contain something like #!/bin/sh.
12751         Without this, coreutils would get two false positives in
12752         the comments of C source files.
12753
12754 2010-11-12  Eric Blake  <eblake@redhat.com>
12755
12756         bootstrap: fix typo in previous attempt
12757         * build-aux/bootstrap (buildreq): Correct the grouping.
12758         Reported by Paul Eggert.
12759
12760         maintainer-makefile: prohibit test x == x
12761         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
12762         Based on a report by Matthias Bolte.
12763
12764         bootstrap: allow FreeBSD gzip
12765         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
12766         which has no '.' and goes to stderr.
12767         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
12768         Reported by Matthias Bolte.
12769
12770         maintainer-makefile: check for i18n setup
12771         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
12772         will likely work.
12773
12774 2010-11-12  Bruno Haible  <bruno@clisp.org>
12775
12776         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
12777         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
12778         * lib/nanosleep.c (nanosleep): Likewise.
12779
12780 2010-11-11  Bruno Haible  <bruno@clisp.org>
12781
12782         fcntl-h: Fix for use of C++ on glibc systems.
12783         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12784         also on glibc systems in C++ mode.
12785         Reported by Gary V. Vaughan <gary@gnu.org>.
12786
12787 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12788
12789         mknod: avoid false failure with dash
12790         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
12791
12792 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12793
12794         unlink: Fix "is it should" typo in diagnostic.
12795         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
12796         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
12797
12798 2010-11-11  Bruno Haible  <bruno@clisp.org>
12799
12800         Tests for module 'strerror_r-posix'.
12801         * modules/strerror_r-posix-tests: New file.
12802         * tests/test-strerror_r.c: New file.
12803         * tests/test-string-c++.cc: Check the signature of strerror_r.
12804
12805         New module 'strerror_r-posix'.
12806         * lib/string.in.h (strerror_r): New declaration.
12807         * lib/strerror_r.c: New file.
12808         * m4/strerror_r.m4: New file.
12809         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
12810         of strerror_r.
12811         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
12812         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
12813         * modules/strerror_r-posix: New file.
12814         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
12815         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
12816         * doc/posix-functions/strerror_r.texi: Mention the new module and the
12817         portability problems.
12818
12819 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
12820
12821         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
12822         line is also considered for output. Quoted function name in shell
12823         command, so temporary files for functions like MyClass::operator()
12824         are removed correctly without errors.
12825
12826 2010-11-09  Bruno Haible  <bruno@clisp.org>
12827
12828         * doc/posix-functions/strerror.texi: List more failing platforms.
12829
12830         * doc/posix-functions/strerror.texi: Add a comment.
12831
12832 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
12833
12834         fdopendir: fix bug on MacOS X when low on file descriptors
12835
12836         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
12837         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
12838         All callers changed.
12839         (fdopendir): Invoke save_cwd at the top level, not after using
12840         multiple dup() calls to use up file descriptors.  Then retry
12841         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
12842         less than the maximum number of open file descriptors, because
12843         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
12844         on Mac OS X 10.6.4 for tar 1.24
12845         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
12846         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
12847         and for tar 1.25
12848         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
12849
12850 2010-11-07  Bruno Haible  <bruno@clisp.org>
12851
12852         vasnprintf: Support I flag on glibc systems.
12853         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
12854         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
12855         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
12856         snprintf function.
12857         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
12858         glibc systems.
12859         * tests/test-vasnprintf-posix3.c: New file.
12860         * modules/vasnprintf-posix-tests (Files): Add it.
12861         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
12862
12863 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12864
12865         [html] Fix copy/paste bug: Use unique name for compiler warnings.
12866         * MODULES.html.sh: For compiler warnings, use name
12867         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
12868
12869 2010-11-05  Eric Blake  <eblake@redhat.com>
12870
12871         ceil, floor: avoid spurious failure with icc
12872         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
12873         [denormals-as-zero] when optimizing without -mieee-fp option.
12874         * tests/test-floorf2.c (floorf_reference): Likewise.
12875         * tests/test-ceilf1.c (dummy): New function.
12876         (main): Use it to outsmart icc's optimization.
12877         * tests/test-floorf1.c (dummy, main): Likewise.
12878
12879         tests: require working signbit
12880         * modules/ceilf-tests (Depends-on): Add signbit.
12881         * modules/ceill-tests (Depends-on): Likewise.
12882         * modules/floorf-tests (Depends-on): Likewise.
12883         * modules/floorl-tests (Depends-on): Likewise.
12884         * modules/round-tests (Depends-on): Likewise.
12885         * modules/roundf-tests (Depends-on): Likewise.
12886         * modules/roundl-tests (Depends-on): Likewise.
12887         * modules/trunc-tests (Depends-on): Likewise.
12888         * modules/truncf-tests (Depends-on): Likewise.
12889         * modules/truncl-tests (Depends-on): Likewise.
12890
12891         strtod: work around icc bug
12892         * lib/strtod.c (minus_zero): Define to working value.
12893         (strtod): Use it to avoid icc bug.
12894
12895         copysign: enhance tests
12896         * modules/copysign-tests (Files): Add minus-zero.h.
12897         * tests/test-copysign.c (main): Also test zeros.
12898
12899 2010-11-04  Eric Blake  <eblake@redhat.com>
12900
12901         ceil, floor, round, trunc: enhance tests of -0
12902         * tests/test-ceilf1.c (main): Ensure correct sign of result.
12903         * tests/test-ceill.c (main): Likewise.
12904         * tests/test-floorf1.c (main): Likewise.
12905         * tests/test-floorl.c (main): Likewise.
12906         * tests/test-round1.c (main): Likewise.
12907         * tests/test-roundf1.c (main): Likewise.
12908         * tests/test-roundl.c (main): Likewise.
12909         * tests/test-trunc1.c (main): Likewise.
12910         * tests/test-truncf1.c (main): Likewise.
12911         * tests/test-truncl.c (main): Likewise.
12912
12913 2010-11-04  Eric Blake  <eblake@redhat.com>
12914
12915         frexp, tests: work around ICC bug with -zero
12916         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
12917         works with more compilers.
12918         * tests/minus-zero.h: New file.
12919         * modules/ceilf-tests (Files): Include it.
12920         * modules/ceill-tests (Files): Likewise.
12921         * modules/floorf-tests (Files): Likewise.
12922         * modules/floorl-tests (Files): Likewise.
12923         * modules/frexp-nolibm-tests (Files): Likewise.
12924         * modules/frexp-tests (Files): Likewise.
12925         * modules/frexpl-nolibm-tests (Files): Likewise.
12926         * modules/frexpl-tests (Files): Likewise.
12927         * modules/isnan-tests (Files): Likewise.
12928         * modules/isnand-nolibm-tests (Files): Likewise.
12929         * modules/isnand-tests (Files): Likewise.
12930         * modules/isnanf-nolibm-tests (Files): Likewise.
12931         * modules/isnanf-tests (Files): Likewise.
12932         * modules/isnanl-nolibm-tests (Files): Likewise.
12933         * modules/isnanl-tests (Files): Likewise.
12934         * modules/round-tests (Files): Likewise.
12935         * modules/roundf-tests (Files): Likewise.
12936         * modules/roundl-tests (Files): Likewise.
12937         * modules/ldexpl-tests (Files): Likewise.
12938         * modules/signbit-tests (Files): Likewise.
12939         * modules/snprintf-posix-tests (Files): Likewise.
12940         * modules/sprintf-posix-tests (Files): Likewise.
12941         * modules/strtod-tests (Files): Likewise.
12942         * modules/trunc-tests (Files): Likewise.
12943         * modules/truncf-tests (Files): Likewise.
12944         * modules/truncl-tests (Files): Likewise.
12945         * modules/vsnprintf-posix-tests (Files): Likewise.
12946         * modules/vsprintf-posix-tests (Files): Likewise.
12947         * modules/vasnprintf-posix-tests (Files): Likewise.
12948         * modules/vasprintf-posix-tests (Files): Likewise.
12949         * tests/test-ceilf1.c (main): Use it.
12950         * tests/test-ceill.c (main): Likewise.
12951         * tests/test-floorf1.c (main): Likewise.
12952         * tests/test-floorl.c (main): Likewise.
12953         * tests/test-frexp.c (main): Likewise.
12954         * tests/test-frexpl.c (main): Likewise.
12955         * tests/test-isnan.c (main): Likewise.
12956         * tests/test-isnand.h (main): Likewise.
12957         * tests/test-isnanf.h (main): Likewise.
12958         * tests/test-isnanl.h (main): Likewise.
12959         * tests/test-ldexpl.c (main): Likewise.
12960         * tests/test-round.c (main): Likewise.
12961         * tests/test-roundf.c (main): Likewise.
12962         * tests/test-roundl.c (main): Likewise.
12963         * tests/test-signbit.c (test_signbitf, test_signbitd)
12964         (test_signbitl): Likewise.
12965         * tests/test-snprintf-posix.h (test_function): Likewise.
12966         * tests/test-sprintf-posix.h (test_function): Likewise.
12967         * tests/test-strtod.c (main): Likewise.
12968         * tests/test-trunc1.c (main): Likewise.
12969         * tests/test-truncf1.c (main): Likewise.
12970         * tests/test-truncl.c (main): Likewise.
12971
12972         isnanl: work around icc bug
12973         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
12974
12975 2010-11-03  Eric Blake  <eblake@redhat.com>
12976
12977         tests: fix compiler warnings
12978         * tests/test-getopt.h (test_getopt): Fix condition.
12979         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12980         * tests/test-pipe2.c (main): Likewise.
12981         * tests/test-quotearg-simple.c (main): Avoid icc warning.
12982
12983         utimens: fix broken m4 test
12984         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
12985
12986 2010-10-28  Bruno Haible  <bruno@clisp.org>
12987
12988         posix_spawn*, getdtablesize: Relax license.
12989         * modules/posix_spawn (License): Change to LGPLv2+.
12990         * modules/posix_spawnp (License): Likewise.
12991         * modules/posix_spawn-internal (License): Likewise.
12992         * modules/posix_spawnattr_init (License): Likewise.
12993         * modules/posix_spawnattr_getflags (License): Likewise.
12994         * modules/posix_spawnattr_setflags (License): Likewise.
12995         * modules/posix_spawnattr_getpgroup (License): Likewise.
12996         * modules/posix_spawnattr_setpgroup (License): Likewise.
12997         * modules/posix_spawnattr_getschedparam (License): Likewise.
12998         * modules/posix_spawnattr_setschedparam (License): Likewise.
12999         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
13000         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
13001         * modules/posix_spawnattr_getsigdefault (License): Likewise.
13002         * modules/posix_spawnattr_setsigdefault (License): Likewise.
13003         * modules/posix_spawnattr_getsigmask (License): Likewise.
13004         * modules/posix_spawnattr_setsigmask (License): Likewise.
13005         * modules/posix_spawnattr_destroy (License): Likewise.
13006         * modules/posix_spawn_file_actions_init (License): Likewise.
13007         * modules/posix_spawn_file_actions_addclose (License): Likewise.
13008         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
13009         * modules/posix_spawn_file_actions_addopen (License): Likewise.
13010         * modules/posix_spawn_file_actions_destroy (License): Likewise.
13011         * modules/getdtablesize (License): Likewise.
13012         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
13013
13014 2010-10-26  Bruno Haible  <bruno@clisp.org>
13015
13016         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
13017         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
13018         Cygwin and mingw.
13019         Suggested by Eric Blake.
13020
13021 2010-10-26  Bruno Haible  <bruno@clisp.org>
13022
13023         stdio: Work around compilation error due to renameat() on Solaris 10.
13024         * lib/stdio.in.h: Include <unistd.h> on Solaris.
13025         * lib/renameat.c: Don't include <unistd.h> here.
13026         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
13027         Reported by Paul Eggert and Eric Blake.
13028
13029 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
13030
13031         renameat: port to Solaris 10, which declares renameat in unistd.h
13032
13033         * lib/renameat.c: Include unistd.h before stdio.h, because
13034         Solaris 10 declares renameat in unistd.h.  Problem encountered
13035         when building GNU tar 1.24 on Solaris 10.
13036
13037 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13038
13039         fdopendir: fix C89 compilation
13040         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
13041         compilers.
13042
13043 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13044
13045         inttostr: simplify by removing unnecessary redundancy
13046         * lib/anytostr.c: Don't include verify.h.
13047         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
13048         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
13049         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
13050         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
13051         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
13052         Likewise.
13053         * modules/inttostr (Depends-on): Remove 'verify'.
13054
13055 2010-10-23  Bruno Haible  <bruno@clisp.org>
13056
13057         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
13058         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
13059         Reported by Eric Blake.
13060
13061 2010-10-23  Bruno Haible  <bruno@clisp.org>
13062
13063         Tests: Fix LOCALE_JA on MirBSD 10.
13064         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
13065         to an UTF-8 locale.
13066         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
13067         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13068         Reported by Eric Blake.
13069
13070 2010-10-21  Bruno Haible  <bruno@clisp.org>
13071
13072         nl_langinfo test: Avoid test failure on NetBSD 5.
13073         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
13074         Reported by Eric Blake.
13075
13076 2010-10-21  Eric Blake  <eblake@redhat.com>
13077
13078         c-stack: work around libsigsegv 2.8 bug
13079         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
13080         overflow on at least PowerPC64.
13081
13082 2010-10-17  Bruno Haible  <bruno@clisp.org>
13083
13084         userspec: Drop redundant file.
13085         * modules/userspec (Files): Remove lib/inttostr.h.
13086
13087 2010-10-17  Bruno Haible  <bruno@clisp.org>
13088
13089         nl_langinfo tests: Silence some warnings.
13090         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
13091         Reported by Jim Meyering.
13092
13093 2010-10-17  Bruno Haible  <bruno@clisp.org>
13094
13095         Make use of GCC's attribute __alloc_size__.
13096         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
13097         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
13098         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
13099         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
13100         __alloc_size__.
13101         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13102         Suggested by Jim Meyering.
13103
13104 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
13105
13106         bootstrap: anchor .gitignore entries.
13107         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
13108         with...
13109         (insert_vc_ignore): ... this new function, which prepends `/' to
13110         all .gitignore entries before passing them to
13111         insert_sorted_if_absent.
13112
13113 2010-10-16  Bruno Haible  <bruno@clisp.org>
13114
13115         nextafter: Fix configure check.
13116         * modules/nextafter (configure.ac): Correct expected prototype.
13117
13118 2010-10-16  Bruno Haible  <bruno@clisp.org>
13119
13120         termios: Update documentation.
13121         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
13122
13123 2010-10-16  Bruno Haible  <bruno@clisp.org>
13124
13125         tests: Make them compile with TinyCC.
13126         * tests/test-strstr.c (main): Remove parentheses around array
13127         initializer.
13128
13129 2010-10-15  Eric Blake  <eblake@redhat.com>
13130
13131         ignore-value: make header idempotent
13132         * lib/ignore-value.h: Add double-inclusion guards.
13133         Reported by Stefan Berger.
13134
13135 2010-10-15  Jim Meyering  <meyering@redhat.com>
13136
13137         GNUmakefile: handle "stable" target, not "major"
13138         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
13139         lists in maint.mk and announce-gen.  Without this, "make stable"
13140         would fail to ensure that $(VERSION) is up to date.
13141
13142 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
13143
13144         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
13145         & co.
13146
13147 2010-10-14  Bruno Haible  <bruno@clisp.org>
13148
13149         vasnprintf: Don't set errno to 0.
13150         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
13151         block that sets it to 0.
13152         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
13153
13154 2010-10-14  Bruno Haible  <bruno@clisp.org>
13155
13156         socketlib: Fix.
13157         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
13158         gl_PREREQ_SYS_H_WINSOCK2.
13159         Reported by Ian Beckwith <ianb@erislabs.net>.
13160
13161 2010-10-13  Jim Meyering  <meyering@redhat.com>
13162
13163         test-select-stdin.c: avoid warn_unused_result warnings
13164         * tests/test-select-stdin.c: Include "macros.h".
13165         ASSERT that read and fflush succeed.
13166
13167 2010-10-13  Jim Meyering  <meyering@redhat.com>
13168
13169         git-version-gen: do require git-VC'd files in cwd
13170         * build-aux/git-version-gen: Reject a git version string
13171         if there are no commits associated with the current directory.
13172         This avoids an unlikely false-positive (unrelated dir whose parent
13173         repository also contains a tag matching v*), as pointed out
13174         by Giuseppe Scrivano in
13175         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
13176
13177 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13178
13179         argv-iter: omit nonconforming declaration
13180         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
13181         enum arg_iter_err declaration, which doesn't conform to C99.
13182         Solaris 10 cc warns about this.
13183
13184 2010-10-13  Eric Blake  <eblake@redhat.com>
13185
13186         termios: fix compilation on mingw
13187         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
13188         (gl_TERMIOS_H): Adjust it on mingw.
13189         * modules/termios (Makefile.am): Substitute new key.
13190         * lib/termios.in.h (includes): Make include_next conditional.
13191         * doc/posix-headers/termios.texi (termios.h): Update
13192         documentation.
13193         Reported by Daniel P. Berrange.
13194
13195 2010-10-13  Jim Meyering  <meyering@redhat.com>
13196
13197         git-version-gen: don't require that .git/ be in the current dir
13198         * build-aux/git-version-gen: Adjust this script so that it works
13199         when run from any working directory beneath the top-level .git/-
13200         containing directory.  Inspired by a patch from Giuseppe Scrivano,
13201         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
13202
13203         test-select: avoid warn_unused_result warnings
13204         * tests/test-select.c: Include "macros.h".
13205         ASSERT that each call to read, write, and pipe succeeds.
13206         While not technically required, also check each "close".
13207         * modules/select-tests (Files): Add tests/macros.h.
13208
13209         test-symlinkat: remove declaration of unused local
13210         * tests/test-symlinkat.c (main): Remove unused local, "buf".
13211
13212         test-inttostr: avoid shadowing warnings
13213         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
13214         and use malloc rather than the stack for the same reason as
13215         mentioned in the comment justifying the other allocation.
13216
13217 2010-10-11  Bruno Haible  <bruno@clisp.org>
13218
13219         stdlib: Allow multiple gnulib generated replacements to coexist.
13220         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
13221         Reported by Sam Steingold <sds@gnu.org>.
13222
13223 2010-10-11  Jim Meyering  <meyering@redhat.com>
13224
13225         fix a documentation typo
13226         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
13227
13228 2010-10-11  Eric Blake  <eblake@redhat.com>
13229
13230         futimens: work around Solaris 11 bug
13231         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
13232         * tests/test-futimens.h (test_futimens): Enhance, rather than
13233         weaken test.
13234         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13235
13236 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13237
13238         Indentation.
13239         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13240         higher-level operators more to the left.
13241
13242 2010-10-11  Jim Meyering  <meyering@redhat.com>
13243
13244         test-futimens: avoid unwarranted test failure on Solaris 5.11
13245         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
13246         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
13247         because it tries to dereference the NULL name argument.
13248
13249 2010-10-11  Bruno Haible  <bruno@clisp.org>
13250
13251         Indentation.
13252         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
13253         indentation.
13254
13255 2010-10-11  Jim Meyering  <meyering@redhat.com>
13256
13257         spawn.in.h: make indentation consistent with parentheses
13258         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
13259         Make indentation consistent with parentheses.
13260
13261 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
13262
13263         Fix mismatched parens in previous commit
13264         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
13265         parens.
13266
13267 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13268
13269         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
13270
13271         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
13272         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
13273         * lib/malloca.c: Include "verify.h".
13274         (verify1): Remove, replacing with a verify call.
13275         * lib/relocwrapper.c (verify1): Likewise.
13276         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
13277         Likewise.
13278         * modules/malloca (Depends-on): Add 'verify'.
13279         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
13280         * modules/vasnprintf (Depends-on): Add 'verify'.
13281         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13282         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13283         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13284         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13285         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13286         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13287         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13288
13289         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
13290
13291         Formerly the style was sometimes 2*X - 1, because the C standard
13292         was wrongly thought to disallow ?: in integral constant expressions.
13293         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
13294         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
13295         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13296         * lib/stdint.in.h (_verify_intmax_size): Likewise.
13297         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
13298         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
13299         verify that time_t cannot be floating.
13300
13301 2010-10-08  Eric Blake  <eblake@redhat.com>
13302
13303         time: enforce recent POSIX ruling that time_t is integral
13304         * lib/time.in.h (__time_t_must_be_integral): Detect any
13305         problematic systems, allowing the rest of gnulib to assume POSIX.
13306
13307 2010-10-08  Jim Meyering  <meyering@redhat.com>
13308
13309         fdopendir: fix a bug on systems lacking openat and /proc support
13310         OpenBSD 4.7 is one such system.  The most noticeable effect was
13311         failure of any application making nontrivial use of fts: rm, du,
13312         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
13313           ./rm: traversal failed: `a': Bad file descriptor
13314         Debugging that, you see that even though FD 6 was closed just
13315         prior to the opendir call in fd_clone_opendir, its resulting
13316         dir->dd_fd was 8, rather than the expected value of 6:
13317
13318         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
13319         93                close (fd);
13320         (gdb) n
13321         94                dir = fd_clone_opendir (dupfd);
13322         (gdb) n
13323         95                saved_errno = errno;
13324         (gdb) p dir->dd_fd
13325         $11 = 8
13326
13327         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
13328         The problem is that on OpenBSD, fd_clone_opendir has to resort
13329         to using the old-style save/restore CWD mechanism, due to its
13330         lack of openat/proc support, and *that* would steal the FD (6)
13331         that opendir was supposed to use.
13332
13333         The fix is to squirrel away the desired FD so that save_cwd uses a
13334         different one, and then free the dest FD right before calling opendir.
13335         That guarantees opendir will use the required file descriptor.
13336
13337         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
13338
13339 2010-10-08  Bruno Haible  <bruno@clisp.org>
13340
13341         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
13342         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
13343
13344 2010-10-08  Bruno Haible  <bruno@clisp.org>
13345
13346         nanosleep: Make replacement POSIX compliant.
13347         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
13348         is out of range.
13349         Reported by Jim Meyering.
13350
13351 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13352
13353         bootstrap: add hook for altering gnulib.mk, for Bison
13354         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
13355         the Bison bootstrapping process can rewrite file names and variables
13356         in this file before later parts of 'bootstrap' use the file.
13357         Bison wants to include lib/gnulib.mk from the top-level makefile,
13358         so it needs the file names in this file to be relative to the top
13359         level, not relative to lib; plus it needs variable names to be
13360         rewritten.
13361         (slurp): Use the new function.
13362
13363         bootstrap: reformat for readability
13364         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
13365
13366 2010-10-08  Eric Blake  <eblake@redhat.com>
13367
13368         docs: update cygwin progress
13369         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
13370         1.7.7.
13371         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
13372         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
13373         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
13374         * doc/posix-functions/carg.texi (carg): Likewise.
13375         * doc/posix-functions/cargf.texi (cargf): Likewise.
13376         * doc/posix-functions/casin.texi (casin): Likewise.
13377         * doc/posix-functions/casinf.texi (casinf): Likewise.
13378         * doc/posix-functions/casinh.texi (casinh): Likewise.
13379         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
13380         * doc/posix-functions/catan.texi (catan): Likewise.
13381         * doc/posix-functions/catanf.texi (catanf): Likewise.
13382         * doc/posix-functions/catanh.texi (catanh): Likewise.
13383         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
13384         * doc/posix-functions/ccos.texi (ccos): Likewise.
13385         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
13386         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
13387         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
13388         * doc/posix-functions/cexp.texi (cexp): Likewise.
13389         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
13390         * doc/posix-functions/cimag.texi (cimag): Likewise.
13391         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
13392         * doc/posix-functions/clog.texi (clog): Likewise.
13393         * doc/posix-functions/clogf.texi (clogf): Likewise.
13394         * doc/posix-functions/conj.texi (conj): Likewise.
13395         * doc/posix-functions/conjf.texi (conjf): Likewise.
13396         * doc/posix-functions/cpow.texi (cpow): Likewise.
13397         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
13398         * doc/posix-functions/cproj.texi (cproj): Likewise.
13399         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
13400         * doc/posix-functions/creal.texi (creal): Likewise.
13401         * doc/posix-functions/crealf.texi (crealf): Likewise.
13402         * doc/posix-functions/csin.texi (csin): Likewise.
13403         * doc/posix-functions/csinf.texi (csinf): Likewise.
13404         * doc/posix-functions/csinh.texi (csinh): Likewise.
13405         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
13406         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
13407         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
13408         * doc/posix-functions/ctan.texi (ctan): Likewise.
13409         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
13410         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
13411         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
13412         * doc/posix-headers/complex.texi (complex.h): Likewise.
13413
13414 2010-10-07  Jim Meyering  <meyering@redhat.com>
13415
13416         parse-datetime: avoid compilation failure on OpenBSD 4.7
13417         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
13418         This works around a compilation failure on OpenBSD 4.7:
13419         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
13420
13421 2010-10-07  Eric Blake  <eblake@redhat.com>
13422
13423         docs: update cygwin progress
13424         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
13425         1.7.6.
13426         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13427         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
13428         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
13429         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
13430         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
13431         Likewise.
13432         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
13433         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
13434         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
13435         Likewise.
13436         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
13437         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
13438         Likewise.
13439         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
13440         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
13441         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
13442         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
13443         Likewise.
13444         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
13445         Likewise.
13446         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
13447
13448         docs: update parse-datetime history
13449         * doc/parse-datetime.texi (Authors of parse_datetime): Better
13450         documentation of this function's history and alternatives.
13451
13452         cygwin: use more robust version check
13453         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
13454         exclude an eventual cygwin 1.9.1.
13455         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13456         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13457         (gl_FUNC_STRCASESTR): Likewise.
13458         Reported by Bruno Haible.
13459
13460 2010-10-06  Bruno Haible  <bruno@clisp.org>
13461
13462         string, sys_select: Avoid #including large headers unless necessary.
13463         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
13464         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
13465         OSF/1, BeOS, Haiku.
13466         Reported by Jim Meyering.
13467
13468 2010-10-05  Eric Blake  <eblake@redhat.com>
13469
13470         memmem, strstr, strcasestr: fix bug with long periodic needle
13471         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
13472         periodic needle having false positive.
13473         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
13474         and cygwin 1.7.7.
13475         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
13476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
13477         (gl_FUNC_STRCASESTR): Likewise.
13478         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
13479         * tests/test-memmem.c (main): Expose the bug.
13480         * tests/test-strcasestr.c (main): Likewise.
13481         * tests/test-strstr.c (main): Likewise.
13482         * tests/test-c-strcasestr.c (main): Likewise.
13483         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
13484         * doc/posix-functions/strstr.texi (strstr): Likewise.
13485         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13486         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
13487
13488 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13489
13490         parse-datetime: do some more renaming
13491         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
13492         parse_datetime, not get_date.  Mention the renaming.
13493         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
13494         in comments.
13495         * m4/bison.m4: Likewise.
13496
13497 2010-10-05  Eric Blake  <eblake@redhat.com>
13498
13499         parse-datetime: better name than get_date
13500         * NEWS: Reword the deprecation notice.
13501         * modules/get_date: Rename to modules/parse-datetime.
13502         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
13503         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
13504         * lib/get_date.y: Rename to lib/parse-datetime.y.
13505         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
13506         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
13507         * doc/getdate.texi: Provide fallback wrapper.
13508         * lib/getdate.h: Move guts, and wrap...
13509         * lib/parse-datetime.h: ...new file.
13510         * lib/parse-datetime.y (get_date): Rename...
13511         (parse_datetime): ...to this.
13512         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
13513         (gl_PARSE_DATETIME): ...to this.
13514         * doc/posix-functions/getdate.texi (get_date): Provide fallback
13515         documentation.
13516         * modules/getdate (Files): Provide fallback docs and header.
13517         (Notice, Depends-on): Update references.
13518         * tests/test-parse-datetime.c: Likewise.
13519         * DEPENDENCIES: Likewise.
13520         * MODULES.html.sh (Date and time <time.h>): Likewise.
13521         * doc/parse-datetime.texi (Date input formats)
13522         (Authors of parse_datetime): Likewise.
13523         * modules/parse-datetime (Files, configure.ac, Makefile.am)
13524         (Include): Likewise.
13525         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
13526         * gnulib-tool: Likewise.
13527         * m4/bison.m4 (gl_BISON): Likewise.
13528         Suggested by Bruno Haible.
13529
13530 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13531
13532         more ports to Solaris tr, which needs [] around ranges
13533         * gnulib-tool: Solaris tr needs [] around ranges.
13534         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13535         * tests/test-pipe-filter-gi1.c (main): Likewise.
13536         * tests/test-pipe-filter-ii1.c (main): Likewise.
13537
13538 2010-10-05  Eric Blake  <eblake@redhat.com>
13539
13540         bootstrap: fix Solaris regression
13541         * build-aux/bootstrap (check_versions): Solaris tr still needs []
13542         around ranges.
13543         Reported by Pádraig Brady.
13544
13545         bootstrap: work with pkg-config
13546         * build-aux/bootstrap (check_versions): Also transliterate - in
13547         prerequisite name.
13548         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
13549         prerequisites that were already found, to avoid confusion.
13550         Reported by Justin Clift.
13551
13552         faccessat: remove unused wrappers
13553         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
13554         presence of these wrappers dragged in -lgen on Solaris.
13555         Reported by Clemens Brogi; fix suggested by Paul Eggert.
13556
13557 2010-10-05  Jim Meyering  <meyering@redhat.com>
13558
13559         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
13560         * Makefile (sc_pragma_columns): New syntax-check rule.
13561
13562 2010-10-04  Bruno Haible  <bruno@clisp.org>
13563
13564         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
13565         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
13566         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
13567         Reported by Bruce Korb and Eric Blake.
13568
13569 2010-10-04  Bruno Haible  <bruno@clisp.org>
13570
13571         threadlib: Make option --with-libpth-prefix work.
13572         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
13573         use $LIBPTH, not just -lpth.
13574
13575 2010-10-04  Bruno Haible  <bruno@clisp.org>
13576
13577         Avoid line length limitation from HP NonStop system header files.
13578         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
13579         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
13580         * lib/ctype.in.h: Likewise.
13581         * lib/dirent.in.h: Likewise.
13582         * lib/errno.in.h: Likewise.
13583         * lib/fcntl.in.h: Likewise.
13584         * lib/float.in.h: Likewise.
13585         * lib/getopt.in.h: Likewise.
13586         * lib/iconv.in.h: Likewise.
13587         * lib/inttypes.in.h: Likewise.
13588         * lib/langinfo.in.h: Likewise.
13589         * lib/locale.in.h: Likewise.
13590         * lib/math.in.h: Likewise.
13591         * lib/netdb.in.h: Likewise.
13592         * lib/netinet_in.in.h: Likewise.
13593         * lib/poll.in.h: Likewise.
13594         * lib/pthread.in.h: Likewise.
13595         * lib/pty.in.h: Likewise.
13596         * lib/sched.in.h: Likewise.
13597         * lib/se-selinux.in.h: Likewise.
13598         * lib/search.in.h: Likewise.
13599         * lib/signal.in.h: Likewise.
13600         * lib/spawn.in.h: Likewise.
13601         * lib/stdarg.in.h: Likewise.
13602         * lib/stddef.in.h: Likewise.
13603         * lib/stdint.in.h: Likewise.
13604         * lib/stdio.in.h: Likewise.
13605         * lib/stdlib.in.h: Likewise.
13606         * lib/string.in.h: Likewise.
13607         * lib/strings.in.h: Likewise.
13608         * lib/sys_file.in.h: Likewise.
13609         * lib/sys_ioctl.in.h: Likewise.
13610         * lib/sys_select.in.h: Likewise.
13611         * lib/sys_socket.in.h: Likewise.
13612         * lib/sys_stat.in.h: Likewise.
13613         * lib/sys_time.in.h: Likewise.
13614         * lib/sys_times.in.h: Likewise.
13615         * lib/sys_utsname.in.h: Likewise.
13616         * lib/sys_wait.in.h: Likewise.
13617         * lib/sysexits.in.h: Likewise.
13618         * lib/termios.in.h: Likewise.
13619         * lib/time.in.h: Likewise.
13620         * lib/unistd.in.h: Likewise.
13621         * lib/wchar.in.h: Likewise.
13622         * lib/wctype.in.h: Likewise.
13623         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
13624         * modules/ctype (Makefile.am): Likewise.
13625         * modules/dirent (Makefile.am): Likewise.
13626         * modules/errno (Makefile.am): Likewise.
13627         * modules/fcntl-h (Makefile.am): Likewise.
13628         * modules/float (Makefile.am): Likewise.
13629         * modules/getopt-posix (Makefile.am): Likewise.
13630         * modules/iconv-h (Makefile.am): Likewise.
13631         * modules/inttypes (Makefile.am): Likewise.
13632         * modules/langinfo (Makefile.am): Likewise.
13633         * modules/locale (Makefile.am): Likewise.
13634         * modules/math (Makefile.am): Likewise.
13635         * modules/netdb (Makefile.am): Likewise.
13636         * modules/netinet_in (Makefile.am): Likewise.
13637         * modules/poll-h (Makefile.am): Likewise.
13638         * modules/pthread (Makefile.am): Likewise.
13639         * modules/pty (Makefile.am): Likewise.
13640         * modules/sched (Makefile.am): Likewise.
13641         * modules/search (Makefile.am): Likewise.
13642         * modules/selinux-h (Makefile.am): Likewise.
13643         * modules/signal (Makefile.am): Likewise.
13644         * modules/spawn (Makefile.am): Likewise.
13645         * modules/stdarg (Makefile.am): Likewise.
13646         * modules/stddef (Makefile.am): Likewise.
13647         * modules/stdint (Makefile.am): Likewise.
13648         * modules/stdio (Makefile.am): Likewise.
13649         * modules/stdlib (Makefile.am): Likewise.
13650         * modules/string (Makefile.am): Likewise.
13651         * modules/strings (Makefile.am): Likewise.
13652         * modules/sys_file (Makefile.am): Likewise.
13653         * modules/sys_ioctl (Makefile.am): Likewise.
13654         * modules/sys_select (Makefile.am): Likewise.
13655         * modules/sys_socket (Makefile.am): Likewise.
13656         * modules/sys_stat (Makefile.am): Likewise.
13657         * modules/sys_time (Makefile.am): Likewise.
13658         * modules/sys_times (Makefile.am): Likewise.
13659         * modules/sys_utsname (Makefile.am): Likewise.
13660         * modules/sys_wait (Makefile.am): Likewise.
13661         * modules/sysexits (Makefile.am): Likewise.
13662         * modules/termios (Makefile.am): Likewise.
13663         * modules/time (Makefile.am): Likewise.
13664         * modules/unistd (Makefile.am): Likewise.
13665         * modules/wchar (Makefile.am): Likewise.
13666         * modules/wctype (Makefile.am): Likewise.
13667
13668 2010-10-04  Bruno Haible  <bruno@clisp.org>
13669
13670         read-file tests: Avoid a test failure on NonStop Kernel.
13671         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
13672         a regular file.
13673         Reported by Joachim Schmitz <schmitz@hp.com>.
13674
13675 2010-10-03  Bruno Haible  <bruno@clisp.org>
13676
13677         gnulib-tool: Fixes for --create-testdir with --libtool.
13678         * gnulib-tool (func_get_automake_snippet): Don't augment
13679         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
13680         an executable.
13681         (func_create_testdir): Handle module 'alloca' like func_import.
13682         Reported by Bruce Korb <bruce.korb@gmail.com>.
13683
13684 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
13685
13686         Avoid some lines longer than 80 characters.
13687         * lib/stdint.in.h: Break long comment lines.
13688         * lib/math.in.h: Likewise.
13689         (_GL_NUM_UINT_WORDS): New macro, for readability.
13690         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
13691         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
13692         * lib/stdlib.in.h: Likewise.
13693         * lib/spawn.in.h: Likewise.
13694         * lib/sys_socket.in.h: Update an URL.
13695         * lib/sys_stat.in.h: Break long line.
13696
13697 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
13698
13699         Improve pmccabe2html.
13700         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
13701         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
13702         when the sources change. Remove the line in the HTML about "Used
13703         ranges" (which implied that there might be other unused ranges),
13704         rename "Resume" to "Summary" (easier to understand for more users).
13705         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
13706         styles, and some unnecessary blank lines.
13707
13708 2010-10-03  Bruno Haible  <bruno@clisp.org>
13709             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13710
13711         acl: Add support for ACLs on NonStop Kernel.
13712         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
13713         Check whether the function aclsort() exists.
13714         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
13715         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
13716         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13717         (acl_nontrivial [HAVE_ACLSORT]: New function.
13718         (file_has_acl): Implement for NonStop Kernel.
13719         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13720         (qset_acl): Implement for NonStop Kernel.
13721         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
13722         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13723         (main): Implement for NonStop Kernel.
13724         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
13725         Kernel. Handle this flavor.
13726         * tests/test-set-mode-acl.sh: Likewise.
13727         * tests/test-copy-acl.sh: Likewise.
13728         * tests/test-copy-file.sh: Likewise.
13729
13730 2010-10-03  Bruno Haible  <bruno@clisp.org>
13731
13732         Info about ACLs on NonStop Kernel.
13733         * doc/acl-resources.txt: Add info about NonStop Kernel.
13734         References by Joachim Schmitz <schmitz@hp.com>.
13735
13736 2010-10-02  Bruno Haible  <bruno@clisp.org>
13737
13738         Define missing EDQUOT on NonStop Kernel.
13739         * lib/errno.in.h (EDQUOT): Assign a value if missing.
13740         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
13741         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
13742         missing.
13743         * doc/posix-headers/errno.texi: Mention the NSK bug.
13744         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
13745         Reported by Joachim Schmitz <schmitz@hp.com>.
13746
13747 2010-10-02  Bruno Haible  <bruno@clisp.org>
13748
13749         Update doc for POSIX:2008.
13750         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
13751         Update URL of POSIX specification.
13752
13753 2010-10-02  Bruno Haible  <bruno@clisp.org>
13754
13755         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
13756         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
13757         from gnulib, not from Automake.
13758
13759 2010-10-02  Bruno Haible  <bruno@clisp.org>
13760
13761         New module 'system-posix'.
13762         * modules/system-posix: New file.
13763         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
13764         module is present.
13765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
13766         GNULIB_SYSTEM_POSIX.
13767         * modules/stdlib (Depends-on): Remove sys_wait.
13768         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
13769         * doc/posix-functions/system.texi: Mention the new module.
13770         * doc/posix-headers/stdlib.texi: Likewise.
13771         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
13772         define test_sys_wait_macros to a no-op.
13773         Reported by Sam Steingold <sds@gnu.org>.
13774
13775 2010-09-30  Bruno Haible  <bruno@clisp.org>
13776
13777         More renaming from 'getdate' to 'get_date'.
13778         * doc/get_date.texi: Renamed from doc/getdate.texi.
13779         * modules/get_date (Files): Update.
13780         * MODULES.html.sh (Date and time <time.h>): Update.
13781         * DEPENDENCIES: Update.
13782         * gnulib-tool: Update comment.
13783         * m4/bison.m4 (gl_BISON): Likewise.
13784         * m4/get_date.m4 (gl_GET_DATE): Likewise.
13785
13786 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
13787
13788         bootstrap: support ACLOCAL_FLAGS during aclocal
13789         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
13790         can add additional -I dir for third-party .m4 files.
13791
13792 2010-09-30  Eric Blake  <eblake@redhat.com>
13793
13794         bootstrap: use glibtoolize on MacOS
13795         * build-aux/bootstrap (check_versions): Convert libtool into
13796         libtoolize.
13797         (tool search): Move libtool check earlier, and look for
13798         glibtoolize for MacOS.
13799         (gnulib_tool_options): Auto-add --libtool when appropriate.
13800         Reported by Justin Clift.
13801
13802         poll: fix typo that broke test on MacOS
13803         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
13804         Reported by Justin Clift.
13805
13806         getdate: rename to get_date
13807         Note: getdate.h is not renamed, to minimize client impact.
13808         * modules/getdate: Mark obsolete.  Move old contents...
13809         * modules/get_date: ...to new module name.
13810         * modules/getdate-tests: Move...
13811         * modules/get_date-tests: ...here.
13812         * m4/getdate.m4: Move...
13813         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
13814         * lib/getdate.y: Move...
13815         * lib/get_date.y: ...here.
13816         * tests/test-getdate.c: Move...
13817         * tests/test-get_date.c: ...here.
13818         * doc/posix-functions/getdate.texi (getdate): Update name.
13819         * NEWS: Mention the change.
13820
13821 2010-09-29  Bruno Haible  <bruno@clisp.org>
13822
13823         Separate the module 'waitpid' from the module 'sys_wait'.
13824         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
13825         present.
13826         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
13827         gl_MODULE_INDICATOR_FOR_TESTS.
13828         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
13829         * modules/sys_wait (Depends-on): Remove waitpid.
13830         (Makefile.am): Substitute GNULIB_WAITPID.
13831         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
13832         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
13833         signature only if the 'waitpid' module is present.
13834         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
13835         * NEWS: Mention the change.
13836         * modules/grantpt (Depends-on): Add waitpid.
13837         * modules/wait-process (Depends-on): Likewise.
13838
13839 2010-09-29  Bruno Haible  <bruno@clisp.org>
13840
13841         More tests for module 'sys_wait'.
13842         * modules/sys_wait-c++-tests: New file.
13843         * tests/test-sys_wait-c++.cc: New file.
13844         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
13845         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13846
13847 2010-09-29  Bruno Haible  <bruno@clisp.org>
13848
13849         New module 'waitpid'.
13850         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
13851         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
13852         Don't include <process.h>.
13853         (waitpid): Declare only, using modern idiom.
13854         * m4/waitpid.m4: New file.
13855         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
13856         * modules/waitpid: New file.
13857         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
13858         (Makefile.am): Update.
13859         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13860
13861 2010-09-28  Bruno Haible  <bruno@clisp.org>
13862
13863         poll: Assume ANSI C.
13864         * lib/poll.c (poll): Use an ANSI C declaration.
13865
13866 2010-09-28  Bruno Haible  <bruno@clisp.org>
13867
13868         poll-h: Create poll.h on all platforms.
13869         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
13870         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
13871         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
13872         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
13873         (gl_REPLACE_POLL_H): Don't set POLL_H.
13874         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
13875         * modules/poll-h (Depends-on): Add include_next.
13876         (Makefile.am): Create poll.h unconditionally. Substitute also
13877         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
13878
13879 2010-09-28  Bruno Haible  <bruno@clisp.org>
13880
13881         Tests for module 'poll-h'.
13882         * modules/poll-h-c++-tests: New file.
13883         * tests/test-poll-h-c++.cc: New file.
13884
13885         Tests for module 'poll-h'.
13886         * modules/poll-h-tests: New file.
13887         * tests/test-poll-h.c: New file.
13888
13889 2010-09-28  Bruno Haible  <bruno@clisp.org>
13890
13891         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
13892         * modules/poll-h (Depends-on): Add 'extensions'.
13893
13894 2010-09-28  Bruno Haible  <bruno@clisp.org>
13895
13896         New module 'poll-h'.
13897         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
13898         (poll): Use modern idiom.
13899         * modules/poll-h: New file.
13900         * modules/poll (Files): Remove lib/poll.in.h.
13901         (Depends-on): Add poll-h.
13902         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
13903         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
13904         * m4/poll_h.m4: New file.
13905         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
13906         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
13907         and invoke gl_REPLACE_POLL_H.
13908         * lib/poll.c: Use common idiom.
13909         * tests/test-poll.c: Likewise.
13910         * doc/posix-headers/poll.texi: Mention the poll-h module.
13911         Suggested by Eric Blake.
13912
13913 2010-09-26  Bruno Haible  <bruno@clisp.org>
13914
13915         sys_wait: Implement WSTOPSIG.
13916         * lib/sys_wait.in.h (WSTOPSIG): New macro.
13917         Reported by Simon Josefsson.
13918
13919 2010-09-26  Simon Josefsson  <simon@josefsson.org>
13920
13921         stdlib, sys_wait: Avoid compilation error on mingw.
13922         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
13923
13924 2010-09-26  Bruno Haible  <bruno@clisp.org>
13925
13926         stdlib tests: Avoid code duplication.
13927         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
13928         * modules/sys_wait-tests (Files): Likewise.
13929         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
13930         * tests/test-stdlib.c: Include test-sys_wait.h.
13931         (main): Invoke test_sys_wait_macros.
13932         * tests/test-sys_wait.c: Include test-sys_wait.h.
13933         (main): Invoke test_sys_wait_macros.
13934
13935 2010-09-25  Simon Josefsson  <simon@josefsson.org>
13936
13937         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
13938         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
13939         sure Windows sockets are working before calling getaddrinfo.
13940         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
13941         * doc/gnulib.texi (Windows sockets): Fix typo.
13942
13943 2010-09-25  Bruno Haible  <bruno@clisp.org>
13944
13945         Tests for module 'regex-quote'.
13946         * modules/regex-quote-tests: New file.
13947         * tests/test-regex-quote.c: New file.
13948
13949         New module 'regex-quote'.
13950         * lib/regex-quote.h: New file.
13951         * lib/regex-quote.c: New file.
13952         * modules/regex-quote: New file.
13953         Suggested by Reuben Thomas <rrt@sc3d.org>.
13954
13955 2010-09-24  Bruno Haible  <bruno@clisp.org>
13956
13957         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
13958         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
13959
13960 2010-09-23  Bruno Haible  <bruno@clisp.org>
13961
13962         setenv: Relax license.
13963         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
13964         Blake.
13965         Requested by Eric Blake.
13966
13967 2010-09-22  Bruno Haible  <bruno@clisp.org>
13968
13969         termios: Relax license.
13970         * modules/termios (License): Change to LGPLv2+.
13971         Requested by Eric Blake.
13972
13973 2010-09-22  Bruno Haible  <bruno@clisp.org>
13974
13975         threadlib: Allow the package to change the default to 'no'.
13976         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
13977         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
13978         Reported by Paul Eggert.
13979
13980 2010-09-22  Pádraig Brady  <P@draigbrady.com>
13981             Bruno Haible  <bruno@clisp.org>
13982
13983         Fix endless loop in mbmemcasecoll.
13984         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
13985         byte.
13986         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
13987
13988 2010-09-22  Bruno Haible  <bruno@clisp.org>
13989
13990         Tests for module 'memcoll'.
13991         * modules/memcoll-tests: New file.
13992         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
13993
13994         memcoll, xmemcoll: Clarify size vs. length.
13995         * modules/memcoll.c (memcoll0): Clarify specification.
13996         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
13997         passed to collate_error.
13998
13999 2010-09-22  Bruno Haible  <bruno@clisp.org>
14000
14001         Tests for module 'memcasecmp'.
14002         * modules/memcasecmp-tests: New file.
14003         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
14004
14005 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14006
14007         * lib/pthread.in.h: Add split double-inclusion guard, and include
14008         system <pthread.h> if there is one.  Use @@-style as in other
14009         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
14010         pthread.h doesn't.
14011         (pthread_mutexattr_destroy, pthread_mutexattr_init):
14012         (pthread_mutexattr_settype, pthread_mutex_trylock):
14013         New static inline functions, if there's no system <pthread.h>.
14014         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
14015         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
14016         Approximate with mutexes if the system lacks spinlocks, as in
14017         MacOS.
14018         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
14019         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
14020         @@-style.  Check for spinlocks separately.
14021         (gl_PTHREAD_DEFAULTS): New macro.
14022         * modules/pthread: Redo to use a more typical style for in.h files.
14023
14024 2010-09-21  Eric Blake  <eblake@redhat.com>
14025
14026         net_if: enhance tests
14027         * tests/test-net_if.c (main): Move signature checks earlier.
14028         Print failures to stderr.
14029         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
14030         Document the bug that we do not yet fix.
14031
14032 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14033
14034         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
14035         about gnulib, not GSS.
14036
14037 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
14038
14039         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
14040         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
14041         for Emacs.
14042         * build-aux/pmccabe2html: Make Makefile.am example code more
14043         cut-and-paste friendly.
14044
14045 2010-09-21  Simon Josefsson  <simon@josefsson.org>
14046
14047         * tests/test-net_if.c: New file.
14048         * modules/net_if-tests: New file.
14049
14050 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
14051
14052         pthread: add pthread_spin_destroy
14053         * lib/pthread.in.h (pthread_spin_destroy): New function.
14054
14055 2010-09-19  Bruno Haible  <bruno@clisp.org>
14056
14057         gnulib-tool: Fix --help output.
14058         * gnulib-tool (func_usage): Fix help message.
14059         Reported by Reuben Thomas <rrt@sc3d.org>.
14060
14061 2010-09-18  Jim Meyering  <meyering@redhat.com>
14062
14063         maint.mk: avoid unexpanded \n in two diagnostics
14064         * top/maint.mk (sc_prohibit_always_true_header_tests):
14065         Don't use a literal \n in a halt=... assignment.  It would not be
14066         expanded, and the two \n bytes would appear in the diagnostic output
14067         rather than the desired newline.  Use halt=$$(printf ... instead.
14068         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14069
14070 2010-09-18  Bruno Haible  <bruno@clisp.org>
14071
14072         netinet_in: Doc tweak.
14073         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
14074         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14075
14076 2010-09-18  Jim Meyering  <meyering@redhat.com>
14077
14078         init.sh: correct an outdated comment
14079         * tests/init.sh (create_exe_shims_):  s/function/alias/
14080
14081         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
14082         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
14083         a file named "*.exe" is removed between the glob expansion and the
14084         processing of that oddly named file.
14085
14086 2010-09-17  Eric Blake  <eblake@redhat.com>
14087
14088         mirbsd: add some more support
14089         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
14090         in BSD family.
14091         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
14092         devices as OpenBSD.
14093         * m4/host-os.m4 (mirbsd): Add MirBSD.
14094
14095         tests: fix unportable assumption on sys/wait.h
14096         * tests/test-sys_wait.c (main): Relax test.
14097         * tests/test-stdlib.c (main): Likewise.
14098
14099         init.sh: accomodate directory with no .exes
14100         * tests/init.sh: Accomodate directory containing only scripts.
14101
14102         tests: avoid compiler warning
14103         * tests/test-stdlib.c (main): Use the variable.
14104
14105         fdutimens, fdutimensat: update signature, again
14106         * lib/utimens.h (gl_futimens): Delete, and move signature...
14107         (fdutimens): ...here.
14108         (fdutimensat): Rearrange signature.
14109         (lutimensat): Rename variable for clarity.
14110         * lib/fdutimensat.c (fdutimensat): Update signature.
14111         * lib/utimens.c (fdutimens): Likewise.
14112         (gl_futimens): Delete.
14113         (utimens, lutimens): Update callers.
14114         * lib/futimens.c (futimens): Likewise.
14115         * tests/test-fdutimensat.c: Likewise.
14116         * tests/test-utimens.c: Likewise.
14117         * tests/test-futimens.h: Update comment.
14118         * NEWS: Mention this.
14119         Suggested by Paul Eggert.
14120
14121 2010-09-17  Bruno Haible  <bruno@clisp.org>
14122
14123         Take over the maintenance of some older macros from Autoconf.
14124         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
14125         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
14126         GNU Autoconf.
14127         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
14128         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
14129
14130 2010-09-17  Eric Blake  <eblake@redhat.com>
14131
14132         fdutimensat: drop atflag validation
14133         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
14134         with valid fd, to close a race scenario where futimens is
14135         unsupported and FILE was replaced by a symlink.
14136         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
14137         accordingly.
14138         Suggested by Paul Eggert.
14139
14140 2010-09-16  Bruno Haible  <bruno@clisp.org>
14141
14142         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
14143         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
14144
14145 2010-09-16  Bruno Haible  <bruno@clisp.org>
14146
14147         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
14148         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
14149         login_tty exists.
14150         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14151
14152 2010-09-16  Bruno Haible  <bruno@clisp.org>
14153
14154         login_tty: Make the replacement code work on BSD systems.
14155         * lib/login_tty.c: Include <sys/ioctl.h>.
14156         (login_tty): Use ioctl TIOCSCTTY when available.
14157         * modules/login_tty (Depends-on): Add sys_ioctl.
14158         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14159
14160 2010-09-16  Bruno Haible  <bruno@clisp.org>
14161
14162         login_tty: Stricter unit test.
14163         * modules/login_tty-tests (Depends-on): Add tcgetsid.
14164         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
14165         and tcgetsid() after login_tty.
14166         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14167
14168 2010-09-16  Bruno Haible  <bruno@clisp.org>
14169
14170         New module 'tcgetsid'.
14171         * lib/tcgetsid.c: New file.
14172         * m4/tcgetsid.m4: New file.
14173         * modules/tcgetsid: New file.
14174         * modules/termios (Depends-on): Add c++defs, warn-on-use.
14175         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
14176         GNULIB_TCGETSID, HAVE_TCGETSID.
14177         * lib/termios.in.h: Include <sys/types.h>.
14178         (tcgetsid): New declaration.
14179         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
14180         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
14181         * doc/posix-functions/tcgetsid.texi: Mention the new module.
14182         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
14183
14184 2010-09-16  Bruno Haible  <bruno@clisp.org>
14185
14186         Tests for module 'termios'.
14187         * modules/termios-c++-tests: New file.
14188         * modules/termios-tests: New file.
14189         * tests/test-termios-c++.cc: New file.
14190         * tests/test-termios.c: New file.
14191
14192         New module 'termios'.
14193         * modules/termios: New file.
14194         * lib/termios.in.h: New file.
14195         * m4/termios_h.m4: New file.
14196         * doc/posix-headers/termios.texi: Mention the new module.
14197
14198 2010-09-16  Eric Blake  <eblake@redhat.com>
14199
14200         fdutimensat: add an atflag parameter
14201         * lib/fdutimensat.c (fdutimensat): Add new parameter.
14202         * lib/utimens.h (fdutimensat): Update prototype.
14203         * tests/test-fdutimensat.c: Adjust test to match.
14204         * NEWS: Document the change.
14205         Suggested by Paul Eggert.
14206
14207 2010-09-16  Bruno Haible  <bruno@clisp.org>
14208
14209         Fix typos in comments.
14210         * lib/striconveh.h: Fix typo in comment.
14211         * lib/login_tty.c (login_tty): Likewise.
14212
14213 2010-09-15  Bruno Haible  <bruno@clisp.org>
14214
14215         stdlib: clarify MirBSD WEXITSTATUS bug
14216         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
14217         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14218
14219 2010-09-15  Eric Blake  <eblake@redhat.com>
14220
14221         stdlib: work around MirBSD WEXITSTATUS bug
14222         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
14223         * modules/stdlib (Depends-on): Add sys_wait.
14224         * tests/test-sys_wait.c (main): Enhance test.
14225         * tests/test-stdlib.c (main): Likewise.
14226         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
14227
14228         docs: mention MacOS issue with WEXITSTATUS(constant)
14229         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
14230         issue.
14231         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
14232
14233         strnlen: add tests
14234         * modules/strnlen-tests: New file.
14235         * tests/test-strnlen.c: Likewise.
14236
14237 2010-09-14  Bruno Haible  <bruno@clisp.org>
14238
14239         unistr/base: Avoid link errors when module 'libunistring' is also used.
14240         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
14241         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
14242         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
14243         Declare also when HAVE_LIBUNISTRING is set.
14244         Reported by Pádraig Brady <P@draigbrady.com>.
14245
14246 2010-09-14  Eric Blake  <eblake@redhat.com>
14247
14248         test-rawmemchr: make more robust
14249         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
14250         (Depends-on, configure.ac): Add needed prerequisites to use it.
14251         * modules/memchr-tests (Files, Depends-on, configure.ac):
14252         Likewise, to avoid implicit reliance on memchr module prereqs.
14253         * tests/test-memchr.c (main): Ensure proper masking.
14254         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
14255         reads.
14256
14257         memchr: detect glibc Alpha bug
14258         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
14259         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
14260         Alpha.
14261         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
14262         * tests/test-memchr.c (main): Enhance test.
14263         Reported by Nelson H. F. Beebe.
14264
14265 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14266
14267         fts, getcwd, glob: audit for dirfd returning -1
14268         * lib/fts.c (opendir): Remove #define; no longer used.
14269         (opendirat): New arg PDIR_FD.  All callers changed.
14270         (fts_build, _opendir2): Use new opendirat to avoid the need for
14271         dirfd, or for checking whether dirfd returns a negative value.
14272         Don't use opendir; always use openat followed by fdopendir.
14273         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
14274         it.
14275         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
14276         returns -1 here.
14277         * modules/fts (Depends-on): Remove dirfd.
14278         * modules/getcwd (Depends-on): Likewise.
14279
14280 2010-09-13  Eric Blake  <eblake@redhat.com>
14281
14282         float: fix broken MirBSD header
14283         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
14284         * doc/posix-headers/float.texi (float.h): Document it.
14285
14286 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14287
14288         fts: use O_NOFOLLOW to avoid race condition when opening a directory
14289         * lib/fts.c (opendirat): New arg extra_flags.
14290         (__opendir2): Use it to avoid following symlinks when opening
14291         a directory, if symlinks are not supposed to be followed.  See
14292         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
14293
14294         fdopendir: preserve argument fd before returning
14295         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
14296         (fdopendir_with_dup, fd_clone_opendir): New static functions.
14297         (fdopendir): Use them, arranging for FD to be open to the same
14298         directory that it was when it started.  (It might be temporarily
14299         closed while fdopendir is running, so this not thread- or
14300         signal-safe.)  Be careful to do the right thing even when file
14301         descriptors are scarce and dup fails with errno == EMFILE.  See
14302         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
14303
14304 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
14305
14306         regex: Pass the system regex if its only problem is 32-bit regoff_t.
14307         * NEWS: Document change.
14308         * m4/regex.m4: Disable test for regoff_t size.
14309
14310 2010-09-13  Jim Meyering  <meyering@redhat.com>
14311
14312         fts: don't operate on an invalid file descriptor after failed dup
14313         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
14314         negative file descriptor.
14315
14316 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
14317
14318         savedir: add streamsavedir, deprecate fdsavedir
14319         * NEWS: Mention deprecation of fdsavedir.
14320         * lib/savedir.c (streamsavedir): New extern function, whose name
14321         ends in "savedir" to be consistent with the others.  This differs
14322         from savedirstream in that it doesn't close its argument.  The
14323         next version of GNU tar will use this instead of fdsavedir, to
14324         avoid some race conditions and conserve file descriptors.
14325         (savedirstream): Reimplement as a wrapper around streamsavedir.
14326         (fdsavedir): Add a comment deprecating this function.  As far as
14327         I know, only GNU tar used it, and GNU tar doesn't need it any more.
14328         * lib/savedir.h (streamsavedir): New decl.
14329         (fdsavedir): Add a comment deprecating this.
14330
14331 2010-09-10  Bruno Haible  <bruno@clisp.org>
14332
14333         langinfo: Fix last commit.
14334         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
14335         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
14336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14337
14338 2010-09-10  Bruno Haible  <bruno@clisp.org>
14339
14340         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
14341         * lib/progreloc.c (O_EXEC): Define fallback.
14342
14343 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14344
14345         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
14346         * NEWS: Document recent changes to fcntl-h.
14347         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
14348         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
14349         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
14350         Similarly for O_SEARCH; this last was already true, but not documented.
14351         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
14352         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
14353         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
14354         Likewise.
14355         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
14356         is zero, not whether it is defined.
14357         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
14358         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
14359         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
14360
14361 2010-09-10  Bruno Haible  <bruno@clisp.org>
14362
14363         langinfo, nl_langinfo: Fix for IRIX 5.3.
14364         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
14365         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
14366         HAVE_LANGINFO_YESEXPR.
14367         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
14368         HAVE_LANGINFO_YESEXPR.
14369         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
14370         HAVE_LANGINFO_T_FMT_AMPM is 0.
14371         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
14372         HAVE_LANGINFO_YESEXPR is 0.
14373         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
14374         NOEXPR.
14375         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
14376         * doc/posix-functions/nl_langinfo.texi: Likewise.
14377         Reported by Eric Blake.
14378
14379 2010-09-10  Bruno Haible  <bruno@clisp.org>
14380
14381         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
14382         * doc/glibc-functions/login_tty.texi: Mention the include file problem
14383         on FreeBSD 8.0 and OpenBSD 4.6.
14384         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
14385         * m4/pty_h.m4 (gl_PTY_H): Likewise.
14386         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
14387         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
14388         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
14389         ac_includes_default.
14390         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
14391
14392 2010-09-09  Eric Blake  <eblake@redhat.com>
14393
14394         strsignal: work around NetBSD bug
14395         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
14396         * lib/string.in.h (includes): Likewise.
14397         * doc/posix-functions/strsignal.texi (strsignal): Document the
14398         bug.
14399         Reported by Nelson H. F. Beebe.
14400
14401         gnulib-tool: work with NetBSD /bin/sh
14402         * gnulib-tool (func_cache_var, func_cache_lookup_module)
14403         (func_get_description, func_get_comment, func_get_status)
14404         (func_get_notice, func_get_applicability, func_get_filelist)
14405         (func_get_dependencies, func_get_autoconf_early_snippet)
14406         (func_get_autoconf_snippet, func_get_automake_snippet)
14407         (func_get_include_directive, func_get_link_directive)
14408         (func_get_license, func_get_maintainer, func_import): Avoid
14409         shell syntax errors from parsing syntax extensions.
14410
14411 2010-09-09  Bruno Haible  <bruno@clisp.org>
14412
14413         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14414         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
14415         a reliable way to determine whether the 'alias' command works.
14416
14417 2010-09-08  Jim Meyering  <meyering@redhat.com>
14418
14419         init.sh: penalize a set-x-impaired shell; don't disqualify it
14420         * tests/init.sh: Too many shells corrupt application stderr when
14421         you set -x, so we can't afford to disqualify them, since at least
14422         on Irix-6.5, that would disqualify all bourne shells.
14423         Instead, use a two-pass approach.
14424         On the first pass, try to find a shell that meets the stricter
14425         condition that set -x does not corrupt stderr.
14426         If no shell meets the stricter condition, retest each candidate
14427         shell, but without that extra condition.  Finally, when
14428         VERBOSE=yes is requested and set -x might cause trouble, simply
14429         issue a warning and refrain from enabling debug output.
14430
14431 2010-09-08  Eric Blake  <eblake@redhat.com>
14432
14433         unsetenv: fix OpenBSD bug
14434         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
14435         * doc/posix-functions/unsetenv.texi (unsetenv): Update
14436         documentation.
14437         Reported by Jim Meyering.
14438
14439         strtod: work around IRIX 6.5 bug
14440         * lib/strtod.c (strtod): Reparse number on shorter string if
14441         exponent parse was invalid.
14442         * tests/test-strtod.c (main): Add check for "0x1p 2".
14443         Reported by Tom G. Christensen.
14444
14445         getopt: optimize previous patch
14446         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
14447         empty variable.  Speed up awk script.
14448         Reported by Paolo Bonzini.
14449
14450 2010-09-08  Jim Meyering  <meyering@redhat.com>
14451
14452         test.sh: disqualify shells for which set -x corrupts stderr
14453         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
14454         and OpenBSD 4.7.  They make it so with "set -x", environment settings
14455         appear in stderr output.  For example, this command:
14456             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
14457         prints "P=1" on those two systems:
14458
14459 2010-09-08  Bruno Haible  <bruno@clisp.org>
14460
14461         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
14462         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
14463         commands, because some shells ignore redirections when there is an
14464         error in the command lookup.
14465         Reported by Eric Blake.
14466
14467 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
14468
14469         * lib/regex.h: Fix a mention of `regex_compile' (should be
14470         `re_compile_pattern').
14471         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
14472         (re_set_registers): Correct name of parameter in comment.
14473
14474         * doc/regex.texi: Add documentation for missing syntax flags.
14475         Remove commented-out documentation of defunct syntax option
14476         RE_NO_EMPTY_ALTS.
14477         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
14478         Add documentation of re_set_registers.
14479         Document trick to re-use a pattern buffer by setting fastmap manually.
14480         Update documentation of struct re_pattern_buffer per public members.
14481         Uncomment documentation of equivalence class operators and
14482         collating symbol operators, since they are now implemented,
14483         Explain leftmost-longest matching in relation to alternatives.
14484         Tidy documentation of substring matching.
14485         Remove POSIX documentation, which is done better in
14486         glibc, and refer the reader there. Keep BSD API documentation, as
14487         that is not readily available elsewhere.
14488
14489 2010-09-07  Eric Blake  <eblake@redhat.com>
14490
14491         getopt: handle POSIXLY_CORRECT set but not exported
14492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
14493         export state of POSIXLY_CORRECT, due to bash set -o posix.
14494         Reported by Dustin J. Mitchell.
14495
14496 2010-09-05  Bruno Haible  <bruno@clisp.org>
14497
14498         gnulib-tool: Highlight the changed options.
14499         * gnulib-tool (func_usage): Display the --import, --add-import,
14500         --remove-import explanations in bold font.
14501
14502 2010-09-06  Karl Berry  <karl@gnu.org>
14503
14504         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
14505
14506 2010-09-05  Bruno Haible  <bruno@clisp.org>
14507
14508         uniwidth/width: Update comment.
14509         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
14510         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
14511
14512 2010-09-05  Bruno Haible  <bruno@clisp.org>
14513
14514         isinf, isnan: Relax license.
14515         * modules/isinf (License): Change from GPL to LGPL, with consent from
14516         Ben Pfaff.
14517         * modules/isnan (License): Likewise.
14518         Requested by Ludovic Courtès.
14519
14520 2010-09-04  Bruno Haible  <bruno@clisp.org>
14521
14522         gnulib-tool: Help migration from --import to --add-import or --update.
14523         * gnulib-tool: Emit a verbose error message when --import is used
14524         without any module name.
14525
14526 2010-09-04  Bruno Haible  <bruno@clisp.org>
14527
14528         Update doc about gnulib-tool.
14529         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
14530         'gnulib-tool --update' in more detail.
14531         Reported by Eric Blake.
14532
14533 2010-09-04  Bruno Haible  <bruno@clisp.org>
14534
14535         gnulib-tool: Change --import. New options --add/remove-import.
14536         * gnulib-tool: New options --add-import, --remove-import.
14537         (func_usage): Document them.
14538         (have_associative): Define always.
14539         (func_import): In import mode, don't merge the specified settings with
14540         the cached settings. Implement remove-import mode.
14541         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
14542         Explain when to use them versus --import.
14543         (Simple update): Use --add-import instead of --import.
14544         * NEWS: Mention the change.
14545
14546 2010-09-04  Bruno Haible  <bruno@clisp.org>
14547
14548         * doc/gnulib-tool.texi (Initial import): Update paragraph about
14549         separate gnulib.mk.
14550
14551 2010-09-04  Bruno Haible  <bruno@clisp.org>
14552
14553         gnulib-tool: Don't talk about CVS any more.
14554         * gnulib-tool (func_usage, func_import): Write "version control"
14555         instead of CVS.
14556
14557 2010-09-04  Jim Meyering  <meyering@redhat.com>
14558
14559         maint.mk: avoid obscure sc_copyright_check failure in coreutils
14560         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
14561         false positives (whose names may be ill-chosen) when searching
14562         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
14563         would cause a false-positive.
14564
14565         avoid coreutils "make distcheck" failure
14566         Coreutils tests with an absolute build directory name that contains
14567         a space.  Not quoting this directory name caused a failure.
14568         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
14569         * tests/test-vc-list-files-cvs.sh: Likewise.
14570
14571 2010-09-04  Bruno Haible  <bruno@clisp.org>
14572
14573         gnulib-tool: Avoid error when run in a package without Makefile.am.
14574         * gnulib-tool: When collecting the m4dirs in a package that does not
14575         have a Makefile.am, eliminate those directories that contain no
14576         gnulib-cache.m4. Fix expression that counts these directories.
14577
14578 2010-09-04  Bruno Haible  <bruno@clisp.org>
14579
14580         update-copyright test: Improve output when perl is missing or too old.
14581         * tests/test-update-copyright.sh: Move test of Perl version down after
14582         the test whether Perl exists. Provide an explanation relating Perl's
14583         error message to Automake's SKIP: message.
14584
14585 2010-09-04  Bruno Haible  <bruno@clisp.org>
14586
14587         Don't augment PATH in TESTS_ENVIRONMENT.
14588         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
14589         set abs_aux_dir instead of augmenting PATH.
14590         * modules/vc-list-files-tests (Makefile.am): Likewise.
14591         * tests/test-update-copyright.sh: Augment PATH here.
14592         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
14593         path_prepend_.
14594         * tests/test-vc-list-files-git.sh: Likewise.
14595
14596 2010-09-04  Jim Meyering  <meyering@redhat.com>
14597
14598         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
14599         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
14600
14601 2010-09-04  Bruno Haible  <bruno@clisp.org>
14602
14603         strdup: Fix compilation error in C++ mode.
14604         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
14605         the macro.
14606
14607 2010-09-04  Bruno Haible  <bruno@clisp.org>
14608
14609         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
14610         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
14611         macro into a function.
14612         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14613
14614 2010-09-04  Bruno Haible  <bruno@clisp.org>
14615
14616         Set PATH_SEPARATOR the same way autoconf does.
14617         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
14618         the value of PATH_SEPARATOR the same way autoconf-generated configure
14619         scripts do.
14620         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
14621         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14622
14623 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14624
14625         Set PATH_SEPARATOR the same way autoconf does.
14626         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
14627         the same way autoconf-generated configure scripts do.
14628         * posix-modules: Likewise.
14629
14630 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14631
14632         hash: fix safe_hasher const typo
14633         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
14634         const; otherwise, there is a type error later.
14635
14636 2010-09-02  Jim Meyering  <meyering@redhat.com>
14637
14638         test-update-copyright.sh: require perl 5.8.0
14639         * tests/test-update-copyright.sh: Require 5.8.0,
14640         which Tom G. Christensen has confirmed is adequate,
14641         while 5.6.1 is not.
14642
14643 2010-09-02  Eric Blake  <eblake@redhat.com>
14644
14645         tests: init.sh improvements for re-exec'ing with zsh
14646         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
14647         -vx through shell re-exec.
14648         Reported by Tom G. Christensen.
14649
14650         wctype: fix typo in previous commit
14651         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
14652         Reported by Ludovic Courtès.
14653
14654 2010-09-02  Jim Meyering  <meyering@redhat.com>
14655
14656         test-update-copyright.sh: skip test if Perl is too old
14657         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
14658         Reported by Tom G. Christensen.
14659
14660 2010-09-02  Bruno Haible  <bruno@clisp.org>
14661
14662         wctype: Avoid compilation error on IRIX 6.5.30.
14663         * lib/wctype.in.h (iswblank): Declare with a replacement if
14664         REPLACE_ISWBLANK is set.
14665         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
14666         declared. Set REPLACE_ISWBLANK.
14667         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
14668         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
14669         * doc/posix-headers/wctype.texi: Likewise.
14670         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14671
14672 2010-09-01  Bruno Haible  <bruno@clisp.org>
14673
14674         New module 'socketlib'.
14675         * modules/socketlib: New file.
14676         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
14677         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
14678         * modules/sockets (Depends-on): Add socketlib.
14679         Suggested by Sam Steingold <sds@gnu.org>.
14680
14681 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14682
14683         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
14684
14685         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
14686         when one needs search access to a directory but not read access.
14687         On systems where it is available, it works in some cases where
14688         O_RDONLY does not, namely on directories that are searchable but
14689         not readable, and which need only to be searchable.  If O_SEARCH
14690         is not available, fall back to the traditional method of using
14691         O_RDONLY.
14692
14693         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
14694         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
14695         when opening a directory that needs only to be searchable.
14696         * lib/chdir-safer.c (chdir_no_follow): Likewise.
14697         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
14698         * lib/openat-proc.c (openat_proc_name): Likewise.
14699         * lib/openat.c (openat_needs_fchdir): Likewise.
14700         * lib/save-cwd.c (save_cwd): Likewise.
14701         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
14702
14703 2010-08-28  Bruno Haible  <bruno@clisp.org>
14704
14705         New module 'host-cpu-c-abi'.
14706         * modules/host-cpu-c-abi: New file.
14707         * m4/host-cpu-c-abi.m4: New file, based on part of
14708         clisp/src/m4/general.m4.
14709         Requested by Sam Steingold <sds@gnu.org>.
14710
14711 2010-08-31  Eric Blake  <eblake@redhat.com>
14712         and Jim Meyering  <meyering@redhat.com>
14713
14714         hash: factor, and guard against misbehaving hasher function
14715         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
14716         of table->hasher's return value.  Also protect against a hash value
14717         so large that adding it to table->bucket results in a NULL pointer.
14718         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
14719         Use it in place of open-coded check-and-abort.
14720
14721 2010-08-30  Bruno Haible  <bruno@clisp.org>
14722
14723         hash: silence spurious clang warning
14724         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
14725         Reported by Eric Blake.
14726
14727 2010-08-30  Eric Blake  <eblake@redhat.com>
14728
14729         strstr, memmem, strcasestr: avoid leaked shell message
14730         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
14731         FreeBSD.
14732         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14733         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14734
14735         tests: silence clang warning
14736         * tests/test-malloca.c (do_allocation): Avoid dead store.
14737
14738 2010-08-29  Bruno Haible  <bruno@clisp.org>
14739
14740         gettext: Fix recent mistake.
14741         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
14742
14743 2010-08-29  Bruno Haible  <bruno@clisp.org>
14744
14745         selinux-h: Offer a --without-selinux option.
14746         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
14747         --without-selinux was specified, skip all tests and define
14748         HAVE_SELINUX_SELINUX_H to 0.
14749         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
14750         set LIB_SELINUX to empty.
14751         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
14752         gl_LIBSELINUX. If --without-selinux was specified, replace
14753         selinux/context.h.
14754         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
14755
14756 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14757             Bruno Haible  <bruno@clisp.org>
14758
14759         Make the module 'realloc-gnu' work again on AIX and OSF/1.
14760         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
14761         of HAVE_REALLOC.
14762         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
14763         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
14764         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
14765         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14766
14767 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14768             Bruno Haible  <bruno@clisp.org>
14769
14770         Make the module 'calloc-gnu' work again on AIX and OSF/1.
14771         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
14772         HAVE_CALLOC.
14773         * lib/xmalloc.c: Update accordingly.
14774         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
14775         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
14776         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14777
14778 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14779             Bruno Haible  <bruno@clisp.org>
14780
14781         Make the module 'malloc-gnu' work again on AIX and OSF/1.
14782         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
14783         HAVE_MALLOC.
14784         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
14785         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
14786         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14787
14788 2010-08-29  Bruno Haible  <bruno@clisp.org>
14789
14790         Update modules list.
14791         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14792         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
14793         (String handling <string.h>): Add astrxfrm.
14794         (File system functions): Add readlinkat.
14795
14796 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14797
14798         Tests for module 'realloc-gnu'.
14799         * modules/realloc-gnu-tests: New file.
14800         * tests/test-realloc-gnu.c: New file.
14801
14802         Tests for module 'calloc-gnu'.
14803         * modules/calloc-gnu-tests: New file.
14804         * tests/test-calloc-gnu.c: New file.
14805
14806         Tests for module 'malloc-gnu'.
14807         * modules/malloc-gnu-tests: New file.
14808         * tests/test-malloc-gnu.c: New file.
14809
14810 2010-08-28  Bruno Haible  <bruno@clisp.org>
14811
14812         Rename module 'realloc' -> 'realloc-gnu'.
14813         * modules/realloc-gnu: New file, copied from modules/realloc.
14814         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
14815         obsolete.
14816         * modules/mgetgroups (Depends-on): Update.
14817         * doc/posix-functions/realloc.texi: Update.
14818         * NEWS: Mention the change.
14819
14820         Rename module 'calloc' -> 'calloc-gnu'.
14821         * modules/calloc-gnu: New file, copied from modules/calloc.
14822         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
14823         obsolete.
14824         * doc/posix-functions/calloc.texi: Update.
14825         * NEWS: Mention the change.
14826
14827         Rename module 'malloc' -> 'malloc-gnu'.
14828         * modules/malloc-gnu: New file, copied from modules/malloc.
14829         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
14830         obsolete.
14831         * modules/argp (Depends-on): Update.
14832         * modules/regex (Depends-on): Update.
14833         * doc/posix-functions/malloc.texi: Update.
14834         * NEWS: Mention the change.
14835
14836 2010-08-28  Eric Blake  <eblake@redhat.com>
14837
14838         pread, pwrite: add missing dependency
14839         * modules/pread (Depends-on): Add extensions.
14840         * modules/pwrite (Depends-on): Likewise.
14841
14842 2010-08-28  Bruno Haible  <bruno@clisp.org>
14843
14844         unistr/u*-strchr: Fix tests dependencies.
14845         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
14846         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
14847         Reported by Ian Beckwith <ianb@erislabs.net>.
14848
14849 2010-08-28  Bruno Haible  <bruno@clisp.org>
14850
14851         read-file: Don't occupy too much unused memory.
14852         * lib/read-file.c (fread_file): Shrink the buffer at the end.
14853
14854 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
14855             Eric Blake  <eblake@redhat.com>
14856             Bruno Haible  <bruno@clisp.org>
14857
14858         read-file: Avoid memory reallocations with regular files.
14859         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
14860         (fread_file): With regular files, use the remaining length as the
14861         initial buffer size.  Check against overflow.
14862         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
14863         sys_stat.
14864
14865 2010-08-28  Bruno Haible  <bruno@clisp.org>
14866
14867         ftello: Relax license.
14868         * modules/ftello (License): Relax to LGPLv2+.
14869         Reported by Eric Blake.
14870
14871 2010-08-28  Bruno Haible  <bruno@clisp.org>
14872
14873         Avoid relocwrapper link errors due to gnulib replacement functions.
14874         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
14875         function.
14876         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14877
14878 2010-08-28  Bruno Haible  <bruno@clisp.org>
14879
14880         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
14881         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
14882         defined.
14883         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
14884         Suggested by Eric Blake.
14885
14886 2010-08-28  Bruno Haible  <bruno@clisp.org>
14887
14888         sys_socket, netdb: Ensure socklen_t gets defined.
14889         * modules/sys_socket (Depends-on): Add socklen.
14890         * modules/netdb (Depends-on): Likewise.
14891         * modules/getaddrinfo (Depends-on): Remove socklen.
14892         * modules/getsockopt (Depends-on): Likewise.
14893         * modules/setsockopt (Depends-on): Likewise.
14894         * tests/test-sys_socket.c: Check that socklen_t is defined.
14895         * tests/test-netdb.c: Likewise.
14896         * m4/socklen.m4: Update comments.
14897         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14898
14899 2010-08-27  Eric Blake  <eblake@redhat.com>
14900
14901         login_tty: add missing dependency
14902         * modules/login_tty (Depends-on): Add pty.
14903
14904 2010-08-26  Eric Blake  <eblake@redhat.com>
14905
14906         lib-symbol-versions: fix m4 quoting
14907         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
14908         format for AC_LINK_IFELSE.
14909
14910         glob: fix compile test
14911         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
14912
14913         btowc: fix missing file
14914         * modules/btowc (Files): Also ship locale-fr.m4.
14915
14916         lseek: fix link test
14917         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
14918         AC_LINK_IFELSE.
14919
14920         include_next: silence autoconf 2.68 warning
14921         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
14922         AC_COMPILE_IFELSE as special.
14923         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
14924         autoconf < 2.68.
14925
14926         acl: fix compilation test
14927         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
14928         AC_COMPILE_IFELSE.
14929
14930 2010-08-26  Bruno Haible  <bruno@clisp.org>
14931
14932         Modernize AC_TRY_RUN invocations.
14933         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
14934         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14935         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
14936         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
14937         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
14938         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14939         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14940         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14941         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14942         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14943         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14944         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14945         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14946         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14947         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14948         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
14949         gl_MBRLEN_NUL_RETVAL): Likewise.
14950         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14951         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14952         Likewise.
14953         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14954         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14955         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14956         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14957         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
14958         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
14959         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
14960         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14961         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
14962         Likewise.
14963         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
14964         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
14965         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14966         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14967         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14968         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14969         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14970         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
14971         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14973
14974 2010-08-26  Bruno Haible  <bruno@clisp.org>
14975
14976         Modernize AC_TRY_LINK invocations.
14977         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
14978         AC_TRY_LINK.
14979         * m4/argp.m4 (gl_ARGP): Likewise.
14980         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14981         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14982         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
14983         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14984         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14985         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
14986         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14987         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14988         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14989         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14990         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14991         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
14992         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
14993         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14994         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14995         * m4/hostent.m4 (gl_HOSTENT): Likewise.
14996         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14997         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
14998         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14999         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
15000         Likewise.
15001         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
15002         Likewise.
15003         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
15004         Likewise.
15005         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15006         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
15007         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
15008         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15009         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15010         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15011         * m4/servent.m4 (gl_SERVENT): Likewise.
15012         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15013         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15014         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15015         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15016         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15017         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15018         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15019         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15020         * modules/tsearch-tests (configure.ac): Likewise.
15021
15022 2010-08-26  Bruno Haible  <bruno@clisp.org>
15023
15024         Modernize AC_TRY_COMPILE invocations.
15025         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
15026         AC_TRY_COMPILE.
15027         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
15028         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
15029         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15030         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
15031         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15032         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15033         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
15034         * m4/lock.m4 (gl_LOCK): Likewise.
15035         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15036         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15037         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
15038         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
15039         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15040         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
15041         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15042         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
15043         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15044         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15045         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15046         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15047         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
15048         extraneous semicolon.
15049
15050 2010-08-26  Jim Meyering  <meyering@redhat.com>
15051
15052         stat-time: relax license LGPL
15053         * modules/stat-time (License): Change from GPL to LGPL,
15054         with consent from all contributors, for use in libguile.
15055         Requested by Ludovic Courtès.
15056
15057 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
15058
15059         poll: return immediately on POLLHUP.
15060         * lib/poll.c (poll): Always set timeout before wait_timeout is
15061         computed.
15062
15063 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15064
15065         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
15066         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
15067         rmdir ("dir/.//"), unlinkat.
15068
15069 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15070
15071         stdbool: avoid spurious failure with modern xlc
15072         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15073
15074 2010-08-24  Bruno Haible  <bruno@clisp.org>
15075
15076         getloadavg: simplify code
15077         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
15078         gl_have_func. Update comments.
15079
15080 2010-08-24  Eric Blake  <eblake@redhat.com>
15081
15082         getloadavg: don't define SVR4 on cygwin
15083         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
15084         only define SVR4 when -lkvm is required.
15085         Reported by Yaakov Selkowitz.
15086
15087 2010-08-24  Bruno Haible  <bruno@clisp.org>
15088
15089         priv-set: fix comment
15090         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
15091
15092 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15093
15094         priv-set: fix comments
15095         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
15096         to match code, as suggested by David Bartley in:
15097         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
15098
15099 2010-08-23  Eric Blake  <eblake@redhat.com>
15100
15101         stdbool: avoid rejecting clang
15102         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
15103         * tests/test-stdbool.c: Enable more tests if using the system
15104         <stdbool.h> instead of the gnulib replacement.
15105         (main): Move xlc bug test to a runtime test for all compilers.
15106         Reported by Anders Kaseorg.
15107
15108         argz: fix shell quoting issue
15109         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
15110         Reported by Charles Wilson.
15111
15112 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
15113             Erik Faye-Lund <kusmabite@gmail.com>
15114
15115         poll, select: handle ERROR_BROKEN_PIPE.
15116         * lib/poll.c (win32_compute_revents): Return POLLHUP when
15117         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15118         * lib/select.c (win32_compute_revents): Do not mark a pipe
15119         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
15120
15121 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
15122
15123         fts: allow compilation with C++
15124         * lib/fts_.h: Specify extern "C" linkage with C++.
15125
15126 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15127
15128         Fix gnulib-tool sed script de-commentation for AIX sed.
15129         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
15130         sed.
15131
15132 2010-08-17  Eric Blake  <eblake@redhat.com>
15133
15134         test-stddef: test for (some) offsetof bugs
15135         * tests/test-stddef.c: Enhance test to ensure correct type of
15136         offsetof.
15137         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
15138         that we are not fixing at this time.
15139
15140 2010-08-15  Bruno Haible  <bruno@clisp.org>
15141
15142         stpncpy: Allow stpncpy to be defined as a macro.
15143         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
15144         if it's already correctly declared.
15145         * lib/string.in.h (stpncpy): Undefine before redefining.
15146         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
15147
15148 2010-08-14  Bruno Haible  <bruno@clisp.org>
15149
15150         Rename module 'memxfrm' to 'amemxfrm'.
15151         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
15152         (amemxfrm): Renamed from memxfrm.
15153         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
15154         (amemxfrm): Renamed from memxfrm.
15155         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
15156         * NEWS: Mention the change.
15157         * MODULES.html.sh (String handling <string.h>): Update.
15158         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
15159         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
15160         * lib/unicase/u16-casexfrm.c: Likewise.
15161         * lib/unicase/u32-casexfrm.c: Likewise.
15162         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
15163         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
15164         * lib/uninorm/u16-normxfrm.c: Likewise.
15165         * lib/uninorm/u32-normxfrm.c: Likewise.
15166         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
15167         memxfrm.
15168         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
15169         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
15170         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
15171         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
15172         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
15173         Suggested by Paul Eggert.
15174
15175 2010-08-14  Bruno Haible  <bruno@clisp.org>
15176
15177         Tests for module 'astrxfrm'.
15178         * modules/astrxfrm-tests: New file.
15179         * tests/test-astrxfrm.c: New file.
15180
15181         New module 'astrxfrm'.
15182         * lib/astrxfrm.h: New file.
15183         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
15184         * modules/astrxfrm: New file.
15185
15186 2010-08-14  Reuben Thomas <rrt@sc3d.org>
15187
15188         regex: Tweak doc.
15189         * doc/regex.texi (Overview): Don't mention regex.c.
15190         (GNU Regular Expression Compiling): Likewise.
15191         (Match-end-of-line Operator): Mention 'not_eol'.
15192
15193 2010-08-14  Brian Gough  <bjg@gnu.org>
15194             Bruno Haible  <bruno@clisp.org>
15195
15196         git-merge-changelog: add doc relating to use with bzr and hg.
15197         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
15198
15199 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
15200
15201         pthread: fix pthread.h creation for srcdir != builddir
15202         * modules/pthread (Makefile.am): Fix the rule to work also in a
15203         non-srcdir build.
15204
15205 2010-08-13  Karl Berry  <karl@gnu.org>
15206
15207         * doc/regex.texi (Predefined Syntaxes): @smallexample.
15208         * doc/posix-*/*: force line break before @url of POSIX
15209         specifications.
15210         Suggested by Werner Lemberg.
15211
15212 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15213
15214         strtod: fix const diagnostic
15215         * lib/strtod.c (strtod): Don't assign const char * to char *,
15216         as this elicits a warning from GCC when warnings are enabled.
15217
15218 2010-08-10  Pádraig Brady <P@draigbrady.com>
15219         and Eric Blake  <eblake@redhat.com>
15220
15221         copy-acl: ignore ENOTSUP on HP-UX
15222         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
15223         so that it is available for HP-UX.
15224         * lib/copy-acl.c (qcopy_acl): Use it.
15225         Reported by Patrick M. Callahan.
15226
15227 2010-08-10  Eric Blake  <eblake@redhat.com>
15228
15229         open, chown: relax license
15230         * modules/open (License): Change to LGPLv2+, with consent by all
15231         authors, for use in augeas.
15232         * modules/chown (License): Likewise.
15233         * modules/lchown (Likewise): Likewise.
15234         Requested by Adam Stokes.
15235
15236 2010-08-09  Karl Berry  <karl@gnu.org>
15237
15238         * build-aux/ar-lib: new file, import from Automake.
15239         * config/srclist.txt: autocheck for updates.
15240
15241 2010-08-09  Eric Blake  <eblake@redhat.com>
15242
15243         readlinkat: adjust client modules
15244         * modules/areadlinkat (Depends-on): Use readlinkat, not
15245         symlinkat.
15246         * modules/areadlinkat-with-size (Depends-on): Likewise.
15247
15248         mknod: be more vocal about danger of running tests as root
15249         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
15250         root, since that is just asking for problems.
15251         Suggested by Bruno Haible, based on a report by Rainer Tammer.
15252
15253         readlinkat: split into its own module
15254         * modules/symlinkat: Split readlinkat...
15255         * modules/readlinkat: ...into separate module.
15256         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
15257         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
15258         * lib/symlinkat.c (readlinkat): Move...
15259         * lib/readlinkat.c: ...into new file.
15260         * modules/symlinkat-tests: Split readlinkat test...
15261         * modules/readlinkat-tests: ...into separate module.
15262         * tests/test-symlinkat.c: Split...
15263         * tests/test-readlinkat.c: ...into new file.
15264         * NEWS: Document the split.
15265         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15266         * lib/unistd.in.h (readlinkat): Likewise.
15267         Suggested by Bruno Haible.
15268
15269 2010-08-08  Bruno Haible  <bruno@clisp.org>
15270
15271         memxfrm: Speed up.
15272         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
15273         that usually only one call to strxfrm is necessary for each string
15274         part.
15275         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15276
15277 2010-08-07  Karl Berry  <karl@gnu.org>
15278
15279         * doc/posix-headers/limits.texi,
15280         * doc/posix-functions/malloc.texi,
15281         * doc/posix-functions/strsignal.texi: missing @item.
15282         * doc/ld-version-script.texi: spurious leading i.
15283         * doc/regex.texi (Interval Operators): no commas inside @var.
15284
15285 2010-08-01  Bruno Haible  <bruno@clisp.org>
15286
15287         Integrate the regex documentation.
15288         * doc/gnulib.texi: Define 'cn' index.
15289         (Regular expressions): New a chapter that includes regex.texi and
15290         regexprops-generic.texi.
15291         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15292         syntax.
15293
15294         Whitespace cleanup.
15295         * doc/regex.texi: Remove trailing spaces.
15296
15297         Add regex documentation.
15298         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
15299         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
15300         Written by Kathy A. Hargreaves and Karl Berry.
15301
15302 2010-08-01  Bruno Haible  <bruno@clisp.org>
15303
15304         link: Update documentation.
15305         * doc/posix-functions/link.texi: Update regarding Solaris.
15306
15307 2010-07-31  Bruno Haible  <bruno@clisp.org>
15308
15309         Update modules list.
15310         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
15311         (String handling <string.h>): Add memcmp2, memxfrm.
15312         (Container data structures): Add xlist, xsublist, xoset.
15313         (Core language properties): Add alignof, unused-parameter.
15314         (Process control, Numeric conversion functions <stdlib.h>): Renamed
15315         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
15316         (Unibyte characters <ctype.h>): New section.
15317         (String handling <string.h>): New section.
15318         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
15319         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
15320         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
15321         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
15322         tan, tanh, tanl, y0, y1, yn.
15323         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
15324         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
15325         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
15326         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
15327         unlockpt, vdprintf, vdprintf-posix.
15328         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
15329         (File system functions): Add concat-filename, sys_file, sys_ioctl,
15330         xconcat-filename.
15331         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
15332         getdtablesize, pipe2, pipe2-safer.
15333         (Security): New section.
15334         (Networking functions): Add accept4.
15335         (Signal handling): Add sigpipe.
15336         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
15337         mbmemcasecoll.
15338         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
15339         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
15340         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
15341         pipe-filter-ii.
15342         (Misc): Add argp-version-etc, login_tty, parse-duration.
15343
15344 2010-07-31  Bruno Haible  <bruno@clisp.org>
15345
15346         Improve doc in MODULES.html.
15347         * modules/linkat (Description): Add the word "function".
15348         * modules/mkfifo (Description): Likewise.
15349         * modules/mknod (Description): Likewise.
15350         * modules/remove (Description): Likewise.
15351         * modules/renameat (Description): Likewise.
15352         * modules/stat (Description): Likewise.
15353         * modules/symlink (Description): Likewise.
15354         * modules/unlink (Description): Likewise.
15355
15356 2010-07-31  Bruno Haible  <bruno@clisp.org>
15357
15358         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
15359         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
15360         option --enable/disable-c++ instead of --enable/disable-cxx.
15361         * NEWS: Mention the change.
15362
15363 2010-07-31  Bruno Haible  <bruno@clisp.org>
15364
15365         readlink, areadlink: Relax test a bit.
15366         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
15367         alternative to ENOTDIR.
15368         * tests/test-areadlink.h (test_areadlink): Likewise.
15369         Reported by Rainer Tammer.
15370
15371 2010-07-31  Bruno Haible  <bruno@clisp.org>
15372
15373         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
15374         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
15375         character, perform the search using U_STRCHR.
15376         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
15377         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
15378         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
15379         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
15380         Suggested by Paolo Bonzini.
15381
15382 2010-07-31  Bruno Haible  <bruno@clisp.org>
15383
15384         unistr/u*-strstr: Fix dependencies.
15385         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
15386         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
15387         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
15388
15389 2010-07-31  Bruno Haible  <bruno@clisp.org>
15390
15391         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
15392         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
15393         the beginning of the loop.
15394         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
15395         cases in 'switch' statement.
15396
15397         unistr/u8-strchr: Fix several bugs.
15398         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
15399         the string. When not found, return NULL, not a pointer near the end.
15400
15401         More tests for unistr/u8-strchr.
15402         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
15403         that the function does not read past the first occurrence of the byte
15404         being searched.
15405         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
15406         * tests/unistr/test-u16-strchr.c (main): New function.
15407         * tests/unistr/test-u32-strchr.c (main): New function.
15408
15409 2010-07-31  Bruno Haible  <bruno@clisp.org>
15410
15411         posix-modules: Ignore backup files of documentation files.
15412         * posix-modules: grep only through files named *.texi.
15413
15414 2010-07-31  Bruno Haible  <bruno@clisp.org>
15415
15416         symlinkat: Fix documentation.
15417         * doc/posix-functions/readlinkat.texi: Fix module name.
15418
15419 2010-07-31  Bruno Haible  <bruno@clisp.org>
15420
15421         fchownat: Replace also when chown has the trailing slash bug.
15422         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
15423         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
15424         introduced on 2010-04-10.
15425         Reported by Rainer Tammer.
15426
15427 2010-07-31  Bruno Haible  <bruno@clisp.org>
15428
15429         linkat: Work around AIX 7.1 bug.
15430         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
15431         whether linkat handles trailing slash correctly. If not, replace linkat
15432         and define LINKAT_TRAILING_SLASH_BUG.
15433         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
15434         check whether (fd1,file1) points to a directory if file1 or file2 ends
15435         in a slash. Code taken from lib/link.c.
15436         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
15437         Reported by Rainer Tammer.
15438
15439 2010-07-31  Bruno Haible  <bruno@clisp.org>
15440
15441         Correctly determine whether pow is available in libc on AIX 7 with xlc.
15442         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
15443         This disables an xlc optimization that was causing wrong test results.
15444         Reported by Rainer Tammer.
15445
15446 2010-07-31  Bruno Haible  <bruno@clisp.org>
15447
15448         iconv: Work around AIX 6.1..7.1 bug.
15449         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
15450         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
15451         cross-compiling, guess no on all versions of AIX.
15452         Reported by Rainer Tammer.
15453
15454 2010-07-31  Bruno Haible  <bruno@clisp.org>
15455
15456         readlink: Relax test a bit.
15457         * tests/test-readlink.h (test_readlink): Allow different errno value
15458         when readlink is called with a file name that ends in / and refers to
15459         a file.
15460         Suggested by Eric Blake.
15461         Reported by Rainer Tammer.
15462
15463 2010-07-31  Bruno Haible  <bruno@clisp.org>
15464
15465         copysign: Does not require -lm on glibc systems.
15466         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
15467         gl_COMMON_DOUBLE_MATHFUNC.
15468         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
15469
15470 2010-07-31  Bruno Haible  <bruno@clisp.org>
15471
15472         duplocale: Work around AIX 7.1 bug.
15473         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
15474         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
15475         * lib/duplocale.c (rpl_duplocale): Update comment.
15476         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
15477         Reported by Rainer Tammer.
15478
15479 2010-07-30  Bruno Haible  <bruno@clisp.org>
15480
15481         dirfd: Avoid link error on AIX 7.1.
15482         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
15483         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
15484         exist, set REPLACE_DIRFD.
15485         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
15486         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
15487         * doc/posix-functions/dirfd.texi: Update.
15488         Reported by Rainer Tammer.
15489
15490 2010-07-30  Eric Blake  <eblake@redhat.com>
15491
15492         strtod: next round of AIX fixes
15493         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
15494         exponent.
15495         * tests/test-strtod.c (main): Enhance tests.
15496         * doc/posix-functions/strtod.texi (strtod): Document next bug.
15497         Reported by Rainer Tammer.
15498
15499         futimens: fix configure check
15500         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
15501         Reported by Bruno Haible.
15502
15503 2010-07-30  Bruno Haible  <bruno@clisp.org>
15504
15505         getline: Update regarding AIX.
15506         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
15507         Reported by Rainer Tammer.
15508
15509 2010-07-30  Bruno Haible  <bruno@clisp.org>
15510
15511         wcwidth: Drop replacement on AIX 7.
15512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
15513         AIX 7.
15514         Reported by Rainer Tammer.
15515
15516 2010-07-30  Bruno Haible  <bruno@clisp.org>
15517
15518         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
15519         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
15520         a 'char *'.
15521         Reported by Rainer Tammer.
15522
15523 2010-07-30  Bruno Haible  <bruno@clisp.org>
15524
15525         unlink: Update regarding AIX.
15526         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
15527         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
15528         Reported by Rainer Tammer.
15529
15530 2010-07-30  Bruno Haible  <bruno@clisp.org>
15531
15532         symlink: Update regarding AIX.
15533         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
15534         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
15535         Reported by Rainer Tammer.
15536
15537 2010-07-30  Bruno Haible  <bruno@clisp.org>
15538
15539         strndup: Update regarding AIX.
15540         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
15541         AIX 7.
15542         Reported by Rainer Tammer.
15543
15544 2010-07-30  Bruno Haible  <bruno@clisp.org>
15545
15546         stat: Update regarding AIX.
15547         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
15548         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
15549         Reported by Rainer Tammer.
15550
15551 2010-07-30  Bruno Haible  <bruno@clisp.org>
15552
15553         truncl: Fix autoconf test.
15554         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
15555         whether truncl works.
15556         Reported by Rainer Tammer.
15557
15558 2010-07-30  Bruno Haible  <bruno@clisp.org>
15559
15560         round: Update regarding AIX.
15561         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
15562         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
15563         Reported by Rainer Tammer.
15564
15565 2010-07-30  Bruno Haible  <bruno@clisp.org>
15566
15567         rename: Update regarding AIX.
15568         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
15569         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
15570         Reported by Rainer Tammer.
15571
15572 2010-07-30  Bruno Haible  <bruno@clisp.org>
15573
15574         printf.m4: Update regarding AIX.
15575         * m4/printf.m4: Update comments regarding AIX.
15576         Reported by Rainer Tammer.
15577
15578 2010-07-30  Bruno Haible  <bruno@clisp.org>
15579
15580         iconv: Update regarding AIX.
15581         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
15582         AIX 7.
15583         Reported by Rainer Tammer.
15584
15585 2010-07-30  Bruno Haible  <bruno@clisp.org>
15586
15587         getopt: Update regarding AIX.
15588         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
15589         no on AIX.
15590         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
15591         Reported by Rainer Tammer.
15592
15593 2010-07-30  Bruno Haible  <bruno@clisp.org>
15594
15595         ldexpl; Update regarding AIX.
15596         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
15597         on AIX 7.
15598         Reported by Rainer Tammer.
15599
15600 2010-07-30  Bruno Haible  <bruno@clisp.org>
15601
15602         frexpl: Update regarding AIX.
15603         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
15604         on AIX 7.
15605         Reported by Rainer Tammer.
15606
15607 2010-07-30  Bruno Haible  <bruno@clisp.org>
15608
15609         open, fopen: Update regarding AIX.
15610         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
15611         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
15612         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
15613         * doc/posix-functions/fopen.texi: Likewise.
15614         Reported by Rainer Tammer.
15615
15616 2010-07-30  Bruno Haible  <bruno@clisp.org>
15617
15618         chown: Update doc regarding AIX.
15619         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
15620         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
15621         Reported by Rainer Tammer.
15622
15623 2010-07-30  Eric Blake  <eblake@redhat.com>
15624
15625         strtod: fix bug in replacement function on AIX
15626         * lib/strtod.c (strtod): Special case broken "0x" parse in
15627         underlying strtod.
15628         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
15629         * doc/posix-functions/strtod.texi (strtod): Likewise.
15630         Reported by Rainer Tammer.
15631
15632 2010-07-30  Bruno Haible  <bruno@clisp.org>
15633
15634         mbrlen: Fix cross-compilation guess for AIX.
15635         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
15636         guess. Leftover from 2008-12-22.
15637
15638 2010-07-30  Bruno Haible  <bruno@clisp.org>
15639
15640         mbrtowc: Fix cross-compilation guess for AIX.
15641         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
15642         guess. Leftover from 2008-12-21.
15643
15644 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
15645
15646         init.sh: work around trap limitation of some shells
15647         * tests/init.sh (setup_): Move exit trap outside of shell function.
15648
15649 2010-07-29  Eric Blake  <eblake@redhat.com>
15650
15651         strtod: aid debugging
15652         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
15653         understanding why strtod is rejected.
15654
15655 2010-07-28  Bruno Haible  <bruno@clisp.org>
15656
15657         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
15658         * lib/unistr/u8-chr.c: Include <string.h>.
15659         * tests/unistr/test-u8-chr.c: Likewise.
15660         * tests/unistr/test-u16-chr.c: Likewise.
15661         * tests/unistr/test-u32-chr.c: Likewise.
15662         * tests/unistr/test-u8-strchr.c: Likewise.
15663         * tests/unistr/test-u16-strchr.c: Likewise.
15664         * tests/unistr/test-u32-strchr.c: Likewise.
15665         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
15666         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
15667         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
15668         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
15669
15670 2010-07-28  Bruno Haible  <bruno@clisp.org>
15671
15672         Use spaces for indentation, not tabs.
15673         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15674
15675 2010-07-27  Bruno Haible  <bruno@clisp.org>
15676
15677         mbspcasecmp: Fix function specification.
15678         * lib/string.in.h (mbspcasecmp): Fix specification comment.
15679         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
15680         Reported by Eric Blake <eblake@redhat.com>.
15681
15682 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
15683
15684         timespec: use cast and not conditional, as truncation isn't possible
15685         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
15686         instead of a conditional.  Comment about the situation in more detail.
15687         This undoes most of the 2009-10-29 patch.
15688
15689 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
15690
15691         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
15692         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
15693         * lib/unistr/u8-strchr.c: Likewise.
15694         * modules/unistr/u8-chr: Depend on memchr.
15695
15696         unistr/u*-strchr: add tests
15697         * modules/unistr/u8-strchr-tests: New file.
15698         * modules/unistr/u16-strchr-tests: New file.
15699         * modules/unistr/u32-strchr-tests: New file.
15700         * tests/unistr/test-strchr.h: New file.
15701         * tests/unistr/test-u8-strchr.c: New file.
15702         * tests/unistr/test-u16-strchr.c: New file.
15703         * tests/unistr/test-u32-strchr.c: New file.
15704
15705         unistr/u*-chr: test multibyte sequences more
15706         * tests/unistr/test-chr.h: Do complete testing of the characters in the
15707         test vector.
15708         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
15709         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
15710         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
15711
15712         unistr/u*-chr: test multibyte sequences
15713         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
15714
15715         unistr/u*-chr: prepare for multibyte tests
15716         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
15717         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
15718         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
15719         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
15720         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
15721         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
15722
15723 2010-07-18  Bruno Haible  <bruno@clisp.org>
15724
15725         unistr/u8-strchr: Optimize non-ASCII argument case.
15726         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
15727         because the first byte often matches anyway.
15728         Reported by Pádraig Brady <P@draigbrady.com>.
15729
15730 2010-07-15  Karl Berry  <karl@gnu.org>
15731
15732         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
15733
15734 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
15735
15736         getcwd: on Solaris, work better if ancestors are inaccessible
15737         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
15738         buffer and size, try again with a large buffer.  This works better
15739         on Solaris, since its getcwd succeeds even if the path to the root
15740         is inaccessible, and this is helpful in common cases such as .zfs
15741         hidden directories.  Problem reported by J Chapman Flack in
15742         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
15743         Use system getcwd if it's declared, not merely if it's partly
15744         working; use the partly-working test only to avoid needless effort
15745         if the system getcwd fails.
15746         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
15747         comment that was already obsolete and is now even more obsolete.
15748         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
15749         now might call strdup.
15750
15751 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
15752
15753         pthread: Add enough so that coreutils/src/sort.c compiles.
15754         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
15755         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
15756         gnulib. Include <sched.h> and <time.h>, as per POSIX.
15757         Include <sys/types.h>, in case it defines pthread_t.
15758         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
15759         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
15760         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
15761         (pthread_rwlockattr_t, pthread_spinlock_t):
15762         New typedefs, if HAVE_PTHREAD_T is not defined.
15763         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
15764         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
15765         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
15766         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
15767         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
15768         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
15769         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
15770         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
15771         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
15772         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
15773         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
15774         New macros.
15775         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
15776         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
15777         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
15778         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
15779         (pthread_spin_unlock): New dummy functions.
15780         (pthread_create): Return EAGAIN; don't set errno.
15781         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
15782         require AC_C_INLINE.
15783         * modules/pthread (Depends-on): Add sched, time.
15784         (pthread.h): Use AM_V_GEN.
15785
15786 2010-07-13  Bruno Haible  <bruno@clisp.org>
15787
15788         striconveh: Don't malloc memory if the result buffer is sufficient.
15789         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
15790         buffer if its size is sufficient.
15791         Reported by Ludovic Courtès <ludo@gnu.org>.
15792
15793 2010-07-13  Bruno Haible  <bruno@clisp.org>
15794
15795         strtod: Add safety check.
15796         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
15797
15798 2010-07-12  Bruno Haible  <bruno@clisp.org>
15799
15800         Unify tests that set gl_cv_func_ldexpl_no_libm.
15801         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
15802         gl_FUNC_LDEXPL.
15803         (gl_FUNC_LDEXPL): Invoke it.
15804         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15805
15806 2010-07-12  Bruno Haible  <bruno@clisp.org>
15807
15808         Unify tests that set gl_cv_func_ldexp_no_libm.
15809         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
15810         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
15811         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
15812         (configure.ac): Simply invoke gl_FUNC_LDEXP.
15813         * modules/strtod (Files): Add m4/ldexp.m4.
15814
15815 2010-07-12  Bruno Haible  <bruno@clisp.org>
15816
15817         Unify tests that set gl_cv_func_frexpl_no_libm.
15818         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
15819         gl_FUNC_FREXPL_NO_LIBM.
15820         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
15821         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15822
15823 2010-07-12  Bruno Haible  <bruno@clisp.org>
15824
15825         Unify tests that set gl_cv_func_frexp_no_libm.
15826         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
15827         gl_FUNC_FREXP_NO_LIBM.
15828         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
15829         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15830
15831 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
15832
15833         memcoll: clarify sizes versus lengths, document better, and tweak perf
15834         * lib/memcoll.c (strcoll_loop, memcoll0):
15835         Improve quality of descriptive comments.  Name variables
15836         consistently as to whether they are lengths (which do not include
15837         terminating null) versus sizes (which do).
15838         * lib/xmemcoll.c (xmemcoll0): Likewise.
15839         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
15840         returned when s1size == 0; this is easier to compile and saves
15841         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
15842
15843 2010-07-12  Bruno Haible  <bruno@clisp.org>
15844
15845         Tests for module '_Exit'.
15846         * modules/_Exit-tests: New file.
15847         * tests/test-_Exit.sh: New file.
15848         * tests/test-_Exit.c: New file.
15849
15850         New module '_Exit'.
15851         * lib/stdlib.in.h (__attribute__): New macro.
15852         (_Exit): New declaration.
15853         * lib/_Exit.c: New file.
15854         * m4/_Exit.m4: New file.
15855         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
15856         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
15857         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
15858         * modules/_Exit: New file.
15859         * tests/test-stdlib-c++.cc (_Exit): Check signature.
15860         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
15861
15862 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
15863
15864         strtod: make it more-accurate typically, and don't require libm
15865         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
15866         Include limits.h.  Don't include string.h.
15867         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
15868         (locale_isspace): New function, so that no casts are needed to
15869         check whether *s is a space.
15870         (ldexp): Provide an unused dummy if not available.
15871         (scale_radix_exp, parse_number, underlying_strtod): New functions.
15872         (strtod): Use them.  This implementation prefers to use the
15873         underlying strtod if available, falling back on our own code
15874         only to fix known bugs.  This is more likely to produce an
15875         accurate result.  Also, it avoids the use of libm functions.
15876         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
15877         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
15878         was absent, but it caused a test failure with coreutils.
15879         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
15880         with libm.
15881         * modules/strtod (Makefile.am, Link): libm is no longer needed.
15882         * modules/strtod-tests (Makefile.am): Likewise.
15883
15884 2010-07-11  Pádraig Brady  <P@draigBrady.com>
15885             Bruno Haible  <bruno@clisp.org>
15886
15887         unistr/u8-strchr: Optimize ASCII argument case.
15888         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
15889
15890 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15891
15892         (x)memcoll: minor tweaks
15893         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
15894         is after the type that it qualifies.
15895         (memcoll0): Likewise.
15896         * lib/memcoll.h (memcoll0): Likewise.
15897         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
15898         * lib/xmemcoll.h (xmemcoll0): Likewise.
15899         * lib/memcoll.c (memcoll0): Correct the comment.  This function
15900         differs from memcoll in that the NUL byte is part of the argument.
15901         Omit the abort-checks, as performance is a real issue here.  Plus,
15902         the checks were wrong anyway (an off-by-one error).  Omit local
15903         variable 'diff', as it's a bit clearer that way.
15904         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
15905         no longer needed.
15906
15907 2010-07-08  Chen Guo <chenguo4@yahoo.com>
15908
15909         (x)memcoll: speedup when input is known to be NUL delimited
15910         * lib/memcoll.c: Include stdlib.
15911         (memcoll0): New function.
15912         (strcoll_loop): New function, refactored for use in both memcoll
15913         and memcoll0.
15914         * lib/memcoll.h (memcoll0): Add prototype.
15915         * lib/xmemcoll.c (xmemcoll0): New function.
15916         (collate_error): New function, refactored for use in both xmemcoll
15917         and xmemcoll0.
15918         * lib/xmemcoll.h (xmemcoll0): Add prototype.
15919         * m4/memcoll.m4: add inline invocation.
15920
15921 2010-07-06  Pádraig Brady  <P@draigBrady.com>
15922
15923         * build-aux/bootstrap: Remove any local translations
15924         from the translation project synchronization directory,
15925         so that local only translations are not distributed.
15926
15927 2010-07-04  Bruno Haible  <bruno@clisp.org>
15928
15929         fsusage: Clarify which code applies to which platforms.
15930         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
15931         platform.
15932         * lib/fsusage.c (get_fs_usage): Likewise.
15933
15934 2010-07-04  Bruno Haible  <bruno@clisp.org>
15935
15936         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
15937         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
15938         Reported by Martin Lambers <marlam@marlam.de>.
15939
15940 2010-07-04  Jim Meyering  <meyering@redhat.com>
15941
15942         hash: once again explicitly disallow insertion of NULL
15943         * lib/hash.c (hash_insert0): Reinstate just-removed test:
15944         inserting a NULL pointer cannot work with these functions.
15945         Add a comment with details.
15946         This reverts part of the 2010-07-01 commit, 5bef1a35
15947         "hash: extend module to deal with non-pointer keys".
15948
15949 2010-07-01  Bruno Haible  <bruno@clisp.org>
15950
15951         stdbool: Update doc.
15952         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
15953         Info from Christian Weisgerber <naddy@mips.inka.de>.
15954
15955 2010-07-01  Jim Meyering  <meyering@redhat.com>
15956
15957         hash: extend module to deal with non-pointer keys
15958         * lib/hash.c (hash_insert0): New interface, much like hash_insert
15959         but that allows insertion of non-pointer entries.
15960         Do not disallow an ENTRY value of NULL.
15961         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
15962         * lib/hash.h (hash_insert0): Declare.
15963
15964 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15965
15966         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
15967         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
15968         not present (i.e. with autoconf 2.59 and when using gettextize, not
15969         gnulib), require AC_GNU_SOURCE instead.
15970
15971 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
15972
15973         idpriv-drop: Fix tests.
15974         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
15975         not to the test-idpriv-droptemp program.
15976
15977 2010-06-29  Bruno Haible  <bruno@clisp.org>
15978
15979         string: Fix syntax error with g++ 2.96.
15980         * lib/string.in.h (__pure__): Remove definition.
15981         (_GL_ATTRIBUTE_PURE): New macro.
15982         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
15983         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
15984         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15985
15986 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
15987
15988         unitypes: Fix bug introduced on 2010-05-18.
15989         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
15990
15991 2010-06-22  Eric Blake  <eblake@redhat.com>
15992
15993         memmem: slight optimization
15994         * lib/str-two-way.h (critical_factorization): Update comments.
15995         Reduce work during factorization phase.
15996         Reported by Carlos Bueno <carlos@bueno.org>.
15997
15998 2010-06-21  Bruno Haible  <bruno@clisp.org>
15999
16000         Fix HAVE_CALLOC_POSIX misnomer.
16001         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
16002         !HAVE_CALLOC_POSIX.
16003         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
16004         HAVE_CALLOC_POSIX.
16005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
16006         instead of HAVE_CALLOC_POSIX.
16007         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
16008         HAVE_CALLOC_POSIX.
16009
16010         Use modern idiom for calloc() replacement.
16011         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
16012         AC_FUNC_CALLOC.
16013         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
16014         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
16015         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16016         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
16017         (gl_REPLACE_CALLOC): New macro.
16018
16019 2010-06-21  Bruno Haible  <bruno@clisp.org>
16020
16021         Fix HAVE_REALLOC_POSIX misnomer.
16022         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
16023         !HAVE_REALLOC_POSIX.
16024         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
16025         HAVE_REALLOC_POSIX.
16026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
16027         instead of HAVE_REALLOC_POSIX.
16028         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
16029         HAVE_REALLOC_POSIX.
16030
16031         Use modern idiom for realloc() replacement.
16032         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
16033         AC_FUNC_REALLOC.
16034         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
16035         Autoconf's AC_FUNC_REALLOC.
16036         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16037         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
16038         (gl_REPLACE_REALLOC): New macro.
16039         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16040
16041 2010-06-21  Bruno Haible  <bruno@clisp.org>
16042
16043         Fix HAVE_MALLOC_POSIX misnomer.
16044         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
16045         !HAVE_MALLOC_POSIX.
16046         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
16047         HAVE_MALLOC_POSIX.
16048         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
16049         instead of HAVE_MALLOC_POSIX.
16050         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
16051         HAVE_MALLOC_POSIX.
16052
16053         Use modern idiom for malloc() replacement.
16054         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
16055         AC_FUNC_MALLOC.
16056         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
16057         Autoconf's AC_FUNC_MALLOC.
16058         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
16059         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
16060         (gl_REPLACE_MALLOC): New macro.
16061         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
16062
16063 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
16064
16065         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
16066         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
16067         This macro takes 3 arguments, not 4.
16068
16069 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
16070
16071         ipv6: fix detection under mingw
16072         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
16073         in6_addr.
16074
16075 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
16076
16077         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
16078         that strtod() works when cross-compiling to a glibc version known
16079         to work.
16080
16081 2010-06-15  Bruno Haible  <bruno@clisp.org>
16082
16083         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
16084
16085 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
16086
16087         select: Correct timeout.
16088         * lib/select.c (rpl_select): Compute wait_timeout correctly.
16089
16090 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16091
16092         git-version-gen: init shell var to avoid env var influence
16093         * build-aux/git-version-gen (v): Init shell var to empty.
16094
16095 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16096
16097         priv-set: Don't assume that priv.h exists merely because getppriv does.
16098         See Jan Andersen's bug report about AIX 5L in
16099         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
16100         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
16101         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
16102         * lib/priv-set.h: Likewise.
16103         * tests/test-priv-set.c: Likewise.
16104
16105 2010-06-13  Bruno Haible  <bruno@clisp.org>
16106
16107         relocatable: Make it easier to test whether to install wrappers.
16108         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
16109         RELOCATABLE_VIA_WRAPPER.
16110
16111 2010-06-13  Bruno Haible  <bruno@clisp.org>
16112
16113         gnulib-tool: Display specified modules and dependencies differently.
16114         * gnulib-tool (func_show_module_list): New function.
16115         (func_import, func_create_testdir): Invoke it.
16116         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16117
16118 2010-06-13  Bruno Haible  <bruno@clisp.org>
16119
16120         gnulib-tool: Align code of func_import and func_create_testdir.
16121         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
16122         specified_modules.
16123
16124 2010-06-12  Jim Meyering  <meyering@redhat.com>
16125
16126         test-inttostr: avoid spurious failure on Solaris 9
16127         * tests/test-inttostr.c (main): Skip the test when snprintf fails
16128         to accept "%ju".  Reported by Bruno Haible.
16129
16130 2010-06-11  Jim Meyering  <meyering@redhat.com>
16131
16132         test-sys_socket: mark variables as used more readably
16133         * tests/test-sys_socket.c (main): Mark otherwise unused variables
16134         as "used" explicitly via (void) statement casts.  This is more
16135         readable than using them in an artificial return expression.
16136         Suggestion from Bruno Haible.
16137
16138 2010-06-11  Bruno Haible  <bruno@clisp.org>
16139
16140         Avoid some more warnings from "gcc -Wwrite-strings".
16141         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
16142         to 'const char *'.
16143         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
16144         * tests/test-c-strcasestr.c (main): Likewise.
16145         * tests/test-mbscasestr1.c (main): Likewise.
16146         * tests/test-mbscasestr2.c (main): Likewise.
16147         * tests/test-memmem.c (main): Likewise.
16148         * tests/test-strstr.c (main): Likewise.
16149         * tests/test-strcasestr.c (main): Likewise.
16150
16151 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16152
16153         init.sh: change framework_failure_ to fail with status 99, not 1
16154         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
16155         automake's parallel-tests rule that this is an unexpected failure,
16156         even if the test is listed in XFAIL_TESTS.
16157
16158 2010-06-11  Jim Meyering  <meyering@redhat.com>
16159
16160         test-inttostr: avoid warnings about 4-6KB literal strings
16161         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
16162         Include "macros.h", for its definition of ASSERT.
16163         (CK): s/assert/ASSERT/
16164         * modules/inttostr-tests (Files): Add macros.h.
16165
16166         init.sh: don't use $ME_ or skip_ before they are defined
16167         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
16168         their first uses.  Also hoist their companions: warn_, fail_,
16169         framework_failure_, $stderr_fileno.  Prompted by a patch from
16170         Stefano Lattarini.
16171
16172         test-sys_socket: avoid set-but-not-used warnings from gcc
16173         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
16174         avoid warning about set-but-not-used variables.
16175
16176         test-xvasprintf: avoid 'const' discard warnings
16177         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
16178         "const" when assigning from literal strings.
16179         (test_xasprintf): Add "void" in function argument list to placate
16180         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
16181
16182         tests: avoid compilation warnings in argmatch and exclude tests...
16183         in packages that define ARGMATCH_DIE_DECL, like coreutils.
16184         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
16185         Since it always exits, declare with the "noreturn" attribute.
16186         * tests/test-argmatch.c: Likewise.
16187
16188         tests: avoid 'const' discard warnings in mbsstr tests
16189         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
16190         * tests/test-mbsstr2.c (main): Likewise.
16191
16192         test-verify: avoid warning from gcc's -Wmissing-declarations
16193         * tests/test-verify.c (function): Declare to be static.
16194
16195         test-inttostr.c: include <string.h> for use of strcmp
16196         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
16197
16198         test-linkat: avoid failed assertion on "other" architectures
16199         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
16200         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
16201         sparc: https://bugs.launchpad.net/bugs/591968
16202
16203 2010-06-11  Jim Meyering  <meyering@redhat.com>
16204
16205         printf.m4: avoid autoconf's "Expanded Before Required" warning
16206         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
16207         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
16208         autoconf warning.
16209
16210 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
16211
16212         Replacement header templates are now named with ".in", not "_".
16213         * doc/gnulib-intro.texi: Correct.
16214
16215 2010-06-10  Jim Meyering  <meyering@redhat.com>
16216
16217         inttostr-tests: depend on snprintf, not snprintf-posix
16218         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
16219         snprintf-posix, to avoid this aclocal failure:
16220           missing file gnulib-tests/vasnprintf.c
16221           configure.ac:45: error: expected source file, required through \
16222           AC_LIBSOURCES, not found
16223
16224 2010-06-10  Jim Meyering  <meyering@redhat.com>
16225
16226         inttostr: add a new function, inttostr, and tests
16227         The namesake function was not available.  The existence of the
16228         template file, inttostr.c makes its addition nontrivial.
16229         * lib/anytostr.c: Rename from inttostr.c.
16230         (anytostr): Rename from inttostr.
16231         * lib/inttostr.c: New file.
16232         * modules/inttostr (Files): Add anytostr.c.
16233         (Makefile.am): Set lib_SOURCES instead of ...
16234         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
16235         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
16236         * lib/offtostr.c: Likewise.
16237         * lib/uinttostr.c: Likewise.
16238         * lib/umaxtostr.c: Likewise.
16239         * modules/inttostr-tests: New file.
16240         * tests/test-inttostr.c: New file.  Test these functions.
16241
16242 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
16243             Bruno Haible  <bruno@clisp.org>
16244
16245         Add "Extending Gnulib" chapter to manual.
16246         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
16247         chapter.
16248         (Extending Gnulib): New chapter.
16249         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
16250         chapter.
16251
16252 2010-06-09  Bruno Haible  <bruno@clisp.org>
16253
16254         Avoid relocwrapper link errors due to gnulib replacement functions.
16255         * lib/areadlink.c: Use the system's malloc, realloc functions.
16256         (areadlink): Set errno to ENOMEM explicitly.
16257         * modules/areadlink (Depends-on): Remove malloc-posix.
16258         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16259
16260 2010-06-09  Bruno Haible  <bruno@clisp.org>
16261
16262         Avoid relocwrapper link errors due to gnulib replacement functions.
16263         * lib/canonicalize-lgpl.c: Use the system's malloc function.
16264         * lib/malloca.c: Likewise.
16265         * lib/relocatable.c: Likewise.
16266         * lib/progreloc.c: Use the system's malloc, sprintf functions.
16267         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
16268         * lib/setenv.c: Use the system's malloc, realloc functions.
16269         * lib/strerror.c: Use the system's sprintf function.
16270         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16271
16272 2010-06-04  Bruno Haible  <bruno@clisp.org>
16273
16274         Prefer documented low-level autoconf macro names.
16275         * m4/lib-link.m4: Use m4_translit instead of translit.
16276         * m4/environ.m4: Likewise.
16277         * m4/mathfunc.m4: Likewise.
16278         * m4/onceonly.m4: Likewise.
16279         * m4/stdint.m4: Likewise.
16280         Suggested by Eric Blake.
16281
16282 2010-06-04  Martin Lambers  <marlam@marlam.de>
16283             Bruno Haible  <bruno@clisp.org>
16284
16285         havelib: Allow library names with '+' characters.
16286         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16287         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
16288
16289 2010-06-09  Bruno Haible  <bruno@clisp.org>
16290
16291         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
16292         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
16293         realloc failed.
16294
16295 2010-06-08  Peter Simons  <simons@cryp.to>
16296
16297         maint.mk: make the news-check rule more configurable
16298         * top/maint.mk (news-check-lines-spec): New variable.
16299         (news-check): Use "sed -n 1,10p" in place of "head".
16300
16301 2010-06-07  Jim Meyering  <meyering@redhat.com>
16302
16303         do-release-commit-and-tag: fix typo in --help
16304         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
16305
16306         regex: avoid new dead-code warning with gcc-4.6.0
16307         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
16308         if-block containing a while-loop.  It's been unused for at least
16309         5 years.
16310
16311 2010-06-05  Bruno Haible  <bruno@clisp.org>
16312
16313         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
16314         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
16315
16316 2010-06-04  Bruno Haible  <bruno@clisp.org>
16317
16318         Update to GNU gettext 0.18.1.
16319         * modules/gettext (configure.ac): Require gettext infrastructure from
16320         version 0.18.1.
16321
16322 2010-06-03  Bruno Haible  <bruno@clisp.org>
16323
16324         Don't use AC_LIBOBJ with file names in subdirectories.
16325         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
16326         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
16327         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
16328         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
16329         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
16330         gl_LIBUNISTRING_LIBSOURCE.
16331         (Makefile.am): Augment lib_SOURCES here, conditionally.
16332         * NEWS: Drop requirement for Automake option 'subdir-objects'.
16333
16334 2010-06-03  Bruno Haible  <bruno@clisp.org>
16335
16336         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
16337         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
16338         expansion does not end with a newline.
16339         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
16340         unnecessary newline.
16341
16342 2010-06-03  Bruno Haible  <bruno@clisp.org>
16343
16344         Reduce dependencies.
16345         * tests/test-quotearg.h: New file, extracted from
16346         tests/test-quotearg.c.
16347         * tests/test-quotearg-simple.c: New file, extracted from
16348         tests/test-quotearg.c.
16349         * tests/test-quotearg.c: Don't include <ctype.h>.
16350         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
16351         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
16352         use_quote_double_quotes, use_quotearg_colon): Moved to
16353         tests/test-quotearg.h.
16354         (results_g, flag_results, custom_quotes, custom_results): Moved
16355         to tests/test-quotearg-simple.c.
16356         (main): Moved the part that does not depend on gettext to
16357         tests/test-quotearg-simple.c. Return 77 if the test cannot be
16358         performed.
16359         * modules/quotearg-simple: New file.
16360         * modules/quotearg-simple-tests: New file.
16361         * modules/quotearg (Depends-on): Add quotearg-simple.
16362         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
16363         (Files): Add tests/test-quotearg.h.
16364         Reported by Paolo Bonzini.
16365
16366 2010-06-03  Bruno Haible  <bruno@clisp.org>
16367
16368         Reduce dependencies.
16369         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
16370
16371 2010-06-03  Bruno Haible  <bruno@clisp.org>
16372
16373         time: Undefine more broken macros.
16374         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
16375         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
16376         Reported by Eric Blake.
16377
16378 2010-06-03  Bruno Haible  <bruno@clisp.org>
16379
16380         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
16381         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
16382         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
16383         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
16384         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
16385         Reported by Ludovic Courtès <ludo@gnu.org>.
16386
16387 2010-06-02  Eric Blake  <eblake@redhat.com>
16388
16389         time: work with mingw + pthreads-win32 library
16390         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
16391         if timespec is defined only in pthread.h.
16392         * modules/time (Makefile.am): Substitute it.
16393         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
16394         <pthread.h>, when needed.
16395         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
16396         from the library.
16397
16398 2010-05-31  Bruno Haible  <bruno@clisp.org>
16399
16400         Avoid expanding two macros in the wrong order.
16401         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
16402         gl_LIBUNISTRING if it is defined.
16403         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
16404         autoconf >= 2.64.
16405         Reported by Ludovic Courtès <ludo@gnu.org>.
16406
16407 2010-05-27  Jim Meyering  <meyering@redhat.com>
16408
16409         maint.mk: also prohibit "#undef" of always-defined symbols
16410         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
16411         Allow more than one space before the symbol name.
16412         (sc_prohibit_always-defined_macros): Use grep's -E, now that
16413         the regexp uses alternation.
16414
16415 2010-05-26  Eric Blake  <eblake@redhat.com>
16416
16417         maint.mk: avoid echo -e
16418         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
16419         Convert all uses of echo -* to printf.
16420         Reported by Matthias Bolte.
16421
16422 2010-05-25  Bruno Haible  <bruno@clisp.org>
16423
16424         Update to GNU gettext 0.18, part 2.
16425         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
16426         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
16427
16428 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16429
16430         Add missing include in test-pwrite.c.
16431         * tests/test-pwrite.c: Include string.h, for strcmp.
16432
16433 2010-05-24  Bruno Haible  <bruno@clisp.org>
16434
16435         * NEWS: Mention requirement for Automake option 'subdir-objects'.
16436
16437 2010-05-24  Bruno Haible  <bruno@clisp.org>
16438
16439         Don't use conversion with transliteration in u{8,16,32}_strcoll.
16440         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
16441         iconveh_error argument.
16442         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
16443         U_STRCONV_TO_LOCALE.
16444         * lib/unistr/u16-strcoll.c: Likewise.
16445         * lib/unistr/u32-strcoll.c: Likewise.
16446         * modules/unistr/u8-strcoll (Depends-on): Add
16447         uniconv/u8-strconv-to-enc, localcharset. Remove
16448         uniconv/u8-strconv-to-locale.
16449         (configure.ac): Bump version number.
16450         * modules/unistr/u16-strcoll (Depends-on): Add
16451         uniconv/u16-strconv-to-enc, localcharset. Remove
16452         uniconv/u16-strconv-to-locale.
16453         (configure.ac): Bump version number.
16454         * modules/unistr/u32-strcoll (Depends-on): Add
16455         uniconv/u32-strconv-to-enc, localcharset. Remove
16456         uniconv/u32-strconv-to-locale.
16457         (configure.ac): Bump version number.
16458
16459 2010-05-24  Bruno Haible  <bruno@clisp.org>
16460
16461         Avoid a test failure on NetBSD 5.0.
16462         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
16463         an iconv() bug.
16464
16465 2010-05-24  Bruno Haible  <bruno@clisp.org>
16466
16467         Adjust #include directive style.
16468         * modules/regex (Includes): Recommend to write <regex.h>.
16469
16470 2010-05-24  Bruno Haible  <bruno@clisp.org>
16471
16472         regex: Don't require alloca.
16473         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
16474         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
16475         only inside if (0).
16476
16477 2010-05-23  Jim Meyering  <meyering@redhat.com>
16478
16479         test-renameat.c: include <sys/stat.h>
16480         * tests/test-renameat.c: Include <sys/stat.h>; required for
16481         definition of S_IS* macros.
16482
16483 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
16484
16485         Update maintainer documentation for 'relocatable-prog' module.
16486         * doc/relocatable-maint.texi: Update.
16487         Comments by Bruno Haible.
16488
16489 2010-05-23  Bruno Haible  <bruno@clisp.org>
16490
16491         git-merge-changelog: Enable --split-merged-entry by default.
16492         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
16493         (usage): Don't mention this option any more.
16494         Reported by Ralf Wildenhues.
16495
16496 2010-05-23  Jim Meyering  <meyering@redhat.com>
16497
16498         test-pwrite: do not leave behind a test file named "out"
16499         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
16500         The trivial-looking use of init.sh is really necessary.
16501         It ensures that the temporary file, "out", is created in
16502         a temporary directory, and removed upon termination.
16503         * tests/test-pwrite.sh: Re-add file.
16504         * modules/pwrite-tests: Reference it.
16505
16506 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16507
16508         Fix output redirection buglet in init.sh.
16509         * tests/init.sh: Fix redirection of stderr.
16510
16511 2010-05-20  Simon Josefsson  <simon@josefsson.org>
16512
16513         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
16514
16515 2010-05-17  Simon Josefsson  <simon@josefsson.org>
16516
16517         * modules/valgrind-tests: New file.
16518         * m4/valgrind-tests.m4: New file.
16519         * doc/valgrind-tests.texi: New file.
16520         * doc/gnulib.texi (Running self-tests under valgrind): New
16521         section.
16522
16523 2010-05-19  Bruno Haible  <bruno@clisp.org>
16524
16525         Clean up dead code in recent commit.
16526         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
16527         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
16528         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
16529         Suggested by Paolo Bonzini.
16530
16531 2010-05-19  Bruno Haible  <bruno@clisp.org>
16532
16533         Avoid valgrind error reports from libunistring.
16534         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
16535         * modules/libunistring (Files): Add it.
16536         * modules/libunistring-optional (Files): Likewise.
16537
16538 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
16539             Bruno Haible  <bruno@clisp.org>
16540
16541         New module 'libunistring-optional'.
16542         * modules/libunistring-optional: New file.
16543         * m4/libunistring-base.m4: New file.
16544         * m4/libunistring-optional.m4: New file.
16545         * lib/unicase.in.h: Renamed from lib/unicase.h.
16546         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
16547         * lib/unictype.in.h: Renamed from lib/unictype.h.
16548         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
16549         * lib/uniname.in.h: Renamed from lib/uniname.h.
16550         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
16551         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
16552         * lib/unistr.in.h: Renamed from lib/unistr.h.
16553         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
16554         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
16555         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
16556         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
16557         gl_LIBUNISTRING. If the library was found, determine the installed
16558         version and set LIBUNISTRING_VERSION.
16559         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
16560         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
16561         handle a configuration option --with-included-libunistring.
16562         * modules/libunistring (Files): Add m4/absolute-header.m4.
16563         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
16564         Add m4/libunistring-base.m4.
16565         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16566         (Makefile.am): Build unicase.h from unicase.in.h.
16567         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
16568         Add m4/libunistring-base.m4.
16569         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16570         (Makefile.am): Build uniconv.h from uniconv.in.h.
16571         * modules/unictype/base (Files): Use unictype.in.h instead of
16572         unictype.h. Add m4/libunistring-base.m4.
16573         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16574         (Makefile.am): Build unictype.h from unictype.in.h.
16575         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
16576         Add m4/libunistring-base.m4.
16577         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16578         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
16579         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
16580         Add m4/libunistring-base.m4.
16581         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16582         (Makefile.am): Build uniname.h from uniname.in.h.
16583         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
16584         Add m4/libunistring-base.m4.
16585         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16586         (Makefile.am): Build uninorm.h from uninorm.in.h.
16587         * modules/unistdio/base (Files): Use unistdio.in.h instead of
16588         unistdio.h. Add m4/libunistring-base.m4.
16589         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16590         (Makefile.am): Build unistdio.h from unistdio.in.h.
16591         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
16592         Add m4/libunistring-base.m4.
16593         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16594         (Makefile.am): Build unistr.h from unistr.in.h.
16595         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
16596         Add m4/libunistring-base.m4.
16597         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16598         (Makefile.am): Build unitypes.h from unitypes.in.h.
16599         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
16600         Add m4/libunistring-base.m4.
16601         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16602         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
16603         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
16604         uniwidth.h. Add m4/libunistring-base.m4.
16605         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
16606         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
16607         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
16608         instead of augmenting lib_SOURCES.
16609         * modules/unicase/empty-suffix-context: Likewise.
16610         * modules/unicase/locale-language: Likewise.
16611         * modules/unicase/tolower: Likewise.
16612         * modules/unicase/totitle: Likewise.
16613         * modules/unicase/toupper: Likewise.
16614         * modules/unicase/u8-casecmp: Likewise.
16615         * modules/unicase/u8-casecoll: Likewise.
16616         * modules/unicase/u8-casefold: Likewise.
16617         * modules/unicase/u8-casexfrm: Likewise.
16618         * modules/unicase/u8-ct-casefold: Likewise.
16619         * modules/unicase/u8-ct-tolower: Likewise.
16620         * modules/unicase/u8-ct-totitle: Likewise.
16621         * modules/unicase/u8-ct-toupper: Likewise.
16622         * modules/unicase/u8-is-cased: Likewise.
16623         * modules/unicase/u8-is-casefolded: Likewise.
16624         * modules/unicase/u8-is-lowercase: Likewise.
16625         * modules/unicase/u8-is-titlecase: Likewise.
16626         * modules/unicase/u8-is-uppercase: Likewise.
16627         * modules/unicase/u8-prefix-context: Likewise.
16628         * modules/unicase/u8-suffix-context: Likewise.
16629         * modules/unicase/u8-tolower: Likewise.
16630         * modules/unicase/u8-totitle: Likewise.
16631         * modules/unicase/u8-toupper: Likewise.
16632         * modules/unicase/u16-casecmp: Likewise.
16633         * modules/unicase/u16-casecoll: Likewise.
16634         * modules/unicase/u16-casefold: Likewise.
16635         * modules/unicase/u16-casexfrm: Likewise.
16636         * modules/unicase/u16-ct-casefold: Likewise.
16637         * modules/unicase/u16-ct-tolower: Likewise.
16638         * modules/unicase/u16-ct-totitle: Likewise.
16639         * modules/unicase/u16-ct-toupper: Likewise.
16640         * modules/unicase/u16-is-cased: Likewise.
16641         * modules/unicase/u16-is-casefolded: Likewise.
16642         * modules/unicase/u16-is-lowercase: Likewise.
16643         * modules/unicase/u16-is-titlecase: Likewise.
16644         * modules/unicase/u16-is-uppercase: Likewise.
16645         * modules/unicase/u16-prefix-context: Likewise.
16646         * modules/unicase/u16-suffix-context: Likewise.
16647         * modules/unicase/u16-tolower: Likewise.
16648         * modules/unicase/u16-totitle: Likewise.
16649         * modules/unicase/u16-toupper: Likewise.
16650         * modules/unicase/u32-casecmp: Likewise.
16651         * modules/unicase/u32-casecoll: Likewise.
16652         * modules/unicase/u32-casefold: Likewise.
16653         * modules/unicase/u32-casexfrm: Likewise.
16654         * modules/unicase/u32-ct-casefold: Likewise.
16655         * modules/unicase/u32-ct-tolower: Likewise.
16656         * modules/unicase/u32-ct-totitle: Likewise.
16657         * modules/unicase/u32-ct-toupper: Likewise.
16658         * modules/unicase/u32-is-cased: Likewise.
16659         * modules/unicase/u32-is-casefolded: Likewise.
16660         * modules/unicase/u32-is-lowercase: Likewise.
16661         * modules/unicase/u32-is-titlecase: Likewise.
16662         * modules/unicase/u32-is-uppercase: Likewise.
16663         * modules/unicase/u32-prefix-context: Likewise.
16664         * modules/unicase/u32-suffix-context: Likewise.
16665         * modules/unicase/u32-tolower: Likewise.
16666         * modules/unicase/u32-totitle: Likewise.
16667         * modules/unicase/u32-toupper: Likewise.
16668         * modules/unicase/ulc-casecmp: Likewise.
16669         * modules/unicase/ulc-casecoll: Likewise.
16670         * modules/unicase/ulc-casexfrm: Likewise.
16671         * modules/uniconv/u8-conv-from-enc: Likewise.
16672         * modules/uniconv/u8-conv-to-enc: Likewise.
16673         * modules/uniconv/u8-strconv-from-enc: Likewise.
16674         * modules/uniconv/u8-strconv-from-locale: Likewise.
16675         * modules/uniconv/u8-strconv-to-enc: Likewise.
16676         * modules/uniconv/u8-strconv-to-locale: Likewise.
16677         * modules/uniconv/u16-conv-from-enc: Likewise.
16678         * modules/uniconv/u16-conv-to-enc: Likewise.
16679         * modules/uniconv/u16-strconv-from-enc: Likewise.
16680         * modules/uniconv/u16-strconv-from-locale: Likewise.
16681         * modules/uniconv/u16-strconv-to-enc: Likewise.
16682         * modules/uniconv/u16-strconv-to-locale: Likewise.
16683         * modules/uniconv/u32-conv-from-enc: Likewise.
16684         * modules/uniconv/u32-conv-to-enc: Likewise.
16685         * modules/uniconv/u32-strconv-from-enc: Likewise.
16686         * modules/uniconv/u32-strconv-from-locale: Likewise.
16687         * modules/uniconv/u32-strconv-to-enc: Likewise.
16688         * modules/uniconv/u32-strconv-to-locale: Likewise.
16689         * modules/unictype/bidicategory-byname: Likewise.
16690         * modules/unictype/bidicategory-name: Likewise.
16691         * modules/unictype/bidicategory-of: Likewise.
16692         * modules/unictype/bidicategory-test: Likewise.
16693         * modules/unictype/block-list: Likewise.
16694         * modules/unictype/block-test: Likewise.
16695         * modules/unictype/category-C: Likewise.
16696         * modules/unictype/category-Cc: Likewise.
16697         * modules/unictype/category-Cf: Likewise.
16698         * modules/unictype/category-Cn: Likewise.
16699         * modules/unictype/category-Co: Likewise.
16700         * modules/unictype/category-Cs: Likewise.
16701         * modules/unictype/category-L: Likewise.
16702         * modules/unictype/category-Ll: Likewise.
16703         * modules/unictype/category-Lm: Likewise.
16704         * modules/unictype/category-Lo: Likewise.
16705         * modules/unictype/category-Lt: Likewise.
16706         * modules/unictype/category-Lu: Likewise.
16707         * modules/unictype/category-M: Likewise.
16708         * modules/unictype/category-Mc: Likewise.
16709         * modules/unictype/category-Me: Likewise.
16710         * modules/unictype/category-Mn: Likewise.
16711         * modules/unictype/category-N: Likewise.
16712         * modules/unictype/category-Nd: Likewise.
16713         * modules/unictype/category-Nl: Likewise.
16714         * modules/unictype/category-No: Likewise.
16715         * modules/unictype/category-P: Likewise.
16716         * modules/unictype/category-Pc: Likewise.
16717         * modules/unictype/category-Pd: Likewise.
16718         * modules/unictype/category-Pe: Likewise.
16719         * modules/unictype/category-Pf: Likewise.
16720         * modules/unictype/category-Pi: Likewise.
16721         * modules/unictype/category-Po: Likewise.
16722         * modules/unictype/category-Ps: Likewise.
16723         * modules/unictype/category-S: Likewise.
16724         * modules/unictype/category-Sc: Likewise.
16725         * modules/unictype/category-Sk: Likewise.
16726         * modules/unictype/category-Sm: Likewise.
16727         * modules/unictype/category-So: Likewise.
16728         * modules/unictype/category-Z: Likewise.
16729         * modules/unictype/category-Zl: Likewise.
16730         * modules/unictype/category-Zp: Likewise.
16731         * modules/unictype/category-Zs: Likewise.
16732         * modules/unictype/category-and: Likewise.
16733         * modules/unictype/category-and-not: Likewise.
16734         * modules/unictype/category-byname: Likewise.
16735         * modules/unictype/category-name: Likewise.
16736         * modules/unictype/category-none: Likewise.
16737         * modules/unictype/category-of: Likewise.
16738         * modules/unictype/category-or: Likewise.
16739         * modules/unictype/category-test: Likewise.
16740         * modules/unictype/combining-class: Likewise.
16741         * modules/unictype/ctype-alnum: Likewise.
16742         * modules/unictype/ctype-alpha: Likewise.
16743         * modules/unictype/ctype-blank: Likewise.
16744         * modules/unictype/ctype-cntrl: Likewise.
16745         * modules/unictype/ctype-digit: Likewise.
16746         * modules/unictype/ctype-graph: Likewise.
16747         * modules/unictype/ctype-lower: Likewise.
16748         * modules/unictype/ctype-print: Likewise.
16749         * modules/unictype/ctype-punct: Likewise.
16750         * modules/unictype/ctype-space: Likewise.
16751         * modules/unictype/ctype-upper: Likewise.
16752         * modules/unictype/ctype-xdigit: Likewise.
16753         * modules/unictype/decimal-digit: Likewise.
16754         * modules/unictype/digit: Likewise.
16755         * modules/unictype/mirror: Likewise.
16756         * modules/unictype/numeric: Likewise.
16757         * modules/unictype/property-alphabetic: Likewise.
16758         * modules/unictype/property-ascii-hex-digit: Likewise.
16759         * modules/unictype/property-bidi-arabic-digit: Likewise.
16760         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
16761         * modules/unictype/property-bidi-block-separator: Likewise.
16762         * modules/unictype/property-bidi-boundary-neutral: Likewise.
16763         * modules/unictype/property-bidi-common-separator: Likewise.
16764         * modules/unictype/property-bidi-control: Likewise.
16765         * modules/unictype/property-bidi-embedding-or-override: Likewise.
16766         * modules/unictype/property-bidi-eur-num-separator: Likewise.
16767         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
16768         * modules/unictype/property-bidi-european-digit: Likewise.
16769         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
16770         * modules/unictype/property-bidi-left-to-right: Likewise.
16771         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
16772         * modules/unictype/property-bidi-other-neutral: Likewise.
16773         * modules/unictype/property-bidi-pdf: Likewise.
16774         * modules/unictype/property-bidi-segment-separator: Likewise.
16775         * modules/unictype/property-bidi-whitespace: Likewise.
16776         * modules/unictype/property-byname: Likewise.
16777         * modules/unictype/property-combining: Likewise.
16778         * modules/unictype/property-composite: Likewise.
16779         * modules/unictype/property-currency-symbol: Likewise.
16780         * modules/unictype/property-dash: Likewise.
16781         * modules/unictype/property-decimal-digit: Likewise.
16782         * modules/unictype/property-default-ignorable-code-point: Likewise.
16783         * modules/unictype/property-deprecated: Likewise.
16784         * modules/unictype/property-diacritic: Likewise.
16785         * modules/unictype/property-extender: Likewise.
16786         * modules/unictype/property-format-control: Likewise.
16787         * modules/unictype/property-grapheme-base: Likewise.
16788         * modules/unictype/property-grapheme-extend: Likewise.
16789         * modules/unictype/property-grapheme-link: Likewise.
16790         * modules/unictype/property-hex-digit: Likewise.
16791         * modules/unictype/property-hyphen: Likewise.
16792         * modules/unictype/property-id-continue: Likewise.
16793         * modules/unictype/property-id-start: Likewise.
16794         * modules/unictype/property-ideographic: Likewise.
16795         * modules/unictype/property-ids-binary-operator: Likewise.
16796         * modules/unictype/property-ids-trinary-operator: Likewise.
16797         * modules/unictype/property-ignorable-control: Likewise.
16798         * modules/unictype/property-iso-control: Likewise.
16799         * modules/unictype/property-join-control: Likewise.
16800         * modules/unictype/property-left-of-pair: Likewise.
16801         * modules/unictype/property-line-separator: Likewise.
16802         * modules/unictype/property-logical-order-exception: Likewise.
16803         * modules/unictype/property-lowercase: Likewise.
16804         * modules/unictype/property-math: Likewise.
16805         * modules/unictype/property-non-break: Likewise.
16806         * modules/unictype/property-not-a-character: Likewise.
16807         * modules/unictype/property-numeric: Likewise.
16808         * modules/unictype/property-other-alphabetic: Likewise.
16809         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
16810         * modules/unictype/property-other-grapheme-extend: Likewise.
16811         * modules/unictype/property-other-id-continue: Likewise.
16812         * modules/unictype/property-other-id-start: Likewise.
16813         * modules/unictype/property-other-lowercase: Likewise.
16814         * modules/unictype/property-other-math: Likewise.
16815         * modules/unictype/property-other-uppercase: Likewise.
16816         * modules/unictype/property-paired-punctuation: Likewise.
16817         * modules/unictype/property-paragraph-separator: Likewise.
16818         * modules/unictype/property-pattern-syntax: Likewise.
16819         * modules/unictype/property-pattern-white-space: Likewise.
16820         * modules/unictype/property-private-use: Likewise.
16821         * modules/unictype/property-punctuation: Likewise.
16822         * modules/unictype/property-quotation-mark: Likewise.
16823         * modules/unictype/property-radical: Likewise.
16824         * modules/unictype/property-sentence-terminal: Likewise.
16825         * modules/unictype/property-soft-dotted: Likewise.
16826         * modules/unictype/property-space: Likewise.
16827         * modules/unictype/property-terminal-punctuation: Likewise.
16828         * modules/unictype/property-test: Likewise.
16829         * modules/unictype/property-titlecase: Likewise.
16830         * modules/unictype/property-unassigned-code-value: Likewise.
16831         * modules/unictype/property-unified-ideograph: Likewise.
16832         * modules/unictype/property-uppercase: Likewise.
16833         * modules/unictype/property-variation-selector: Likewise.
16834         * modules/unictype/property-white-space: Likewise.
16835         * modules/unictype/property-xid-continue: Likewise.
16836         * modules/unictype/property-xid-start: Likewise.
16837         * modules/unictype/property-zero-width: Likewise.
16838         * modules/unictype/scripts: Likewise.
16839         * modules/unictype/syntax-c-ident: Likewise.
16840         * modules/unictype/syntax-c-whitespace: Likewise.
16841         * modules/unictype/syntax-java-ident: Likewise.
16842         * modules/unictype/syntax-java-whitespace: Likewise.
16843         * modules/unilbrk/u8-possible-linebreaks: Likewise.
16844         * modules/unilbrk/u8-width-linebreaks: Likewise.
16845         * modules/unilbrk/u16-possible-linebreaks: Likewise.
16846         * modules/unilbrk/u16-width-linebreaks: Likewise.
16847         * modules/unilbrk/u32-possible-linebreaks: Likewise.
16848         * modules/unilbrk/u32-width-linebreaks: Likewise.
16849         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
16850         * modules/unilbrk/ulc-width-linebreaks: Likewise.
16851         * modules/uniname/uniname: Likewise.
16852         * modules/uninorm/canonical-decomposition: Likewise.
16853         * modules/uninorm/composition: Likewise.
16854         * modules/uninorm/decomposing-form: Likewise.
16855         * modules/uninorm/decomposition: Likewise.
16856         * modules/uninorm/filter: Likewise.
16857         * modules/uninorm/nfc: Likewise.
16858         * modules/uninorm/nfd: Likewise.
16859         * modules/uninorm/nfkc: Likewise.
16860         * modules/uninorm/nfkd: Likewise.
16861         * modules/uninorm/u8-normalize: Likewise.
16862         * modules/uninorm/u8-normcmp: Likewise.
16863         * modules/uninorm/u8-normcoll: Likewise.
16864         * modules/uninorm/u8-normxfrm: Likewise.
16865         * modules/uninorm/u16-normalize: Likewise.
16866         * modules/uninorm/u16-normcmp: Likewise.
16867         * modules/uninorm/u16-normcoll: Likewise.
16868         * modules/uninorm/u16-normxfrm: Likewise.
16869         * modules/uninorm/u32-normalize: Likewise.
16870         * modules/uninorm/u32-normcmp: Likewise.
16871         * modules/uninorm/u32-normcoll: Likewise.
16872         * modules/uninorm/u32-normxfrm: Likewise.
16873         * modules/unistdio/u8-asnprintf: Likewise.
16874         * modules/unistdio/u8-asprintf: Likewise.
16875         * modules/unistdio/u8-snprintf: Likewise.
16876         * modules/unistdio/u8-sprintf: Likewise.
16877         * modules/unistdio/u8-u8-asnprintf: Likewise.
16878         * modules/unistdio/u8-u8-asprintf: Likewise.
16879         * modules/unistdio/u8-u8-snprintf: Likewise.
16880         * modules/unistdio/u8-u8-sprintf: Likewise.
16881         * modules/unistdio/u8-u8-vasnprintf: Likewise.
16882         * modules/unistdio/u8-u8-vasprintf: Likewise.
16883         * modules/unistdio/u8-u8-vsnprintf: Likewise.
16884         * modules/unistdio/u8-u8-vsprintf: Likewise.
16885         * modules/unistdio/u8-vasnprintf: Likewise.
16886         * modules/unistdio/u8-vasprintf: Likewise.
16887         * modules/unistdio/u8-vsnprintf: Likewise.
16888         * modules/unistdio/u8-vsprintf: Likewise.
16889         * modules/unistdio/u16-asnprintf: Likewise.
16890         * modules/unistdio/u16-asprintf: Likewise.
16891         * modules/unistdio/u16-snprintf: Likewise.
16892         * modules/unistdio/u16-sprintf: Likewise.
16893         * modules/unistdio/u16-u16-asnprintf: Likewise.
16894         * modules/unistdio/u16-u16-asprintf: Likewise.
16895         * modules/unistdio/u16-u16-snprintf: Likewise.
16896         * modules/unistdio/u16-u16-sprintf: Likewise.
16897         * modules/unistdio/u16-u16-vasnprintf: Likewise.
16898         * modules/unistdio/u16-u16-vasprintf: Likewise.
16899         * modules/unistdio/u16-u16-vsnprintf: Likewise.
16900         * modules/unistdio/u16-u16-vsprintf: Likewise.
16901         * modules/unistdio/u16-vasnprintf: Likewise.
16902         * modules/unistdio/u16-vasprintf: Likewise.
16903         * modules/unistdio/u16-vsnprintf: Likewise.
16904         * modules/unistdio/u16-vsprintf: Likewise.
16905         * modules/unistdio/u32-asnprintf: Likewise.
16906         * modules/unistdio/u32-asprintf: Likewise.
16907         * modules/unistdio/u32-snprintf: Likewise.
16908         * modules/unistdio/u32-sprintf: Likewise.
16909         * modules/unistdio/u32-u32-asnprintf: Likewise.
16910         * modules/unistdio/u32-u32-asprintf: Likewise.
16911         * modules/unistdio/u32-u32-snprintf: Likewise.
16912         * modules/unistdio/u32-u32-sprintf: Likewise.
16913         * modules/unistdio/u32-u32-vasnprintf: Likewise.
16914         * modules/unistdio/u32-u32-vasprintf: Likewise.
16915         * modules/unistdio/u32-u32-vsnprintf: Likewise.
16916         * modules/unistdio/u32-u32-vsprintf: Likewise.
16917         * modules/unistdio/u32-vasnprintf: Likewise.
16918         * modules/unistdio/u32-vasprintf: Likewise.
16919         * modules/unistdio/u32-vsnprintf: Likewise.
16920         * modules/unistdio/u32-vsprintf: Likewise.
16921         * modules/unistdio/ulc-asnprintf: Likewise.
16922         * modules/unistdio/ulc-asprintf: Likewise.
16923         * modules/unistdio/ulc-fprintf: Likewise.
16924         * modules/unistdio/ulc-snprintf: Likewise.
16925         * modules/unistdio/ulc-sprintf: Likewise.
16926         * modules/unistdio/ulc-vasnprintf: Likewise.
16927         * modules/unistdio/ulc-vasprintf: Likewise.
16928         * modules/unistdio/ulc-vfprintf: Likewise.
16929         * modules/unistdio/ulc-vsnprintf: Likewise.
16930         * modules/unistdio/ulc-vsprintf: Likewise.
16931         * modules/unistr/u8-check: Likewise.
16932         * modules/unistr/u8-chr: Likewise.
16933         * modules/unistr/u8-cmp: Likewise.
16934         * modules/unistr/u8-cmp2: Likewise.
16935         * modules/unistr/u8-cpy: Likewise.
16936         * modules/unistr/u8-cpy-alloc: Likewise.
16937         * modules/unistr/u8-endswith: Likewise.
16938         * modules/unistr/u8-mblen: Likewise.
16939         * modules/unistr/u8-mbsnlen: Likewise.
16940         * modules/unistr/u8-mbtouc: Likewise.
16941         * modules/unistr/u8-mbtouc-unsafe: Likewise.
16942         * modules/unistr/u8-mbtoucr: Likewise.
16943         * modules/unistr/u8-move: Likewise.
16944         * modules/unistr/u8-next: Likewise.
16945         * modules/unistr/u8-prev: Likewise.
16946         * modules/unistr/u8-set: Likewise.
16947         * modules/unistr/u8-startswith: Likewise.
16948         * modules/unistr/u8-stpcpy: Likewise.
16949         * modules/unistr/u8-stpncpy: Likewise.
16950         * modules/unistr/u8-strcat: Likewise.
16951         * modules/unistr/u8-strchr: Likewise.
16952         * modules/unistr/u8-strcmp: Likewise.
16953         * modules/unistr/u8-strcoll: Likewise.
16954         * modules/unistr/u8-strcpy: Likewise.
16955         * modules/unistr/u8-strcspn: Likewise.
16956         * modules/unistr/u8-strdup: Likewise.
16957         * modules/unistr/u8-strlen: Likewise.
16958         * modules/unistr/u8-strmblen: Likewise.
16959         * modules/unistr/u8-strmbtouc: Likewise.
16960         * modules/unistr/u8-strncat: Likewise.
16961         * modules/unistr/u8-strncmp: Likewise.
16962         * modules/unistr/u8-strncpy: Likewise.
16963         * modules/unistr/u8-strnlen: Likewise.
16964         * modules/unistr/u8-strpbrk: Likewise.
16965         * modules/unistr/u8-strrchr: Likewise.
16966         * modules/unistr/u8-strspn: Likewise.
16967         * modules/unistr/u8-strstr: Likewise.
16968         * modules/unistr/u8-strtok: Likewise.
16969         * modules/unistr/u8-to-u16: Likewise.
16970         * modules/unistr/u8-to-u32: Likewise.
16971         * modules/unistr/u8-uctomb: Likewise.
16972         * modules/unistr/u16-check: Likewise.
16973         * modules/unistr/u16-chr: Likewise.
16974         * modules/unistr/u16-cmp: Likewise.
16975         * modules/unistr/u16-cmp2: Likewise.
16976         * modules/unistr/u16-cpy: Likewise.
16977         * modules/unistr/u16-cpy-alloc: Likewise.
16978         * modules/unistr/u16-endswith: Likewise.
16979         * modules/unistr/u16-mblen: Likewise.
16980         * modules/unistr/u16-mbsnlen: Likewise.
16981         * modules/unistr/u16-mbtouc: Likewise.
16982         * modules/unistr/u16-mbtouc-unsafe: Likewise.
16983         * modules/unistr/u16-mbtoucr: Likewise.
16984         * modules/unistr/u16-move: Likewise.
16985         * modules/unistr/u16-next: Likewise.
16986         * modules/unistr/u16-prev: Likewise.
16987         * modules/unistr/u16-set: Likewise.
16988         * modules/unistr/u16-startswith: Likewise.
16989         * modules/unistr/u16-stpcpy: Likewise.
16990         * modules/unistr/u16-stpncpy: Likewise.
16991         * modules/unistr/u16-strcat: Likewise.
16992         * modules/unistr/u16-strchr: Likewise.
16993         * modules/unistr/u16-strcmp: Likewise.
16994         * modules/unistr/u16-strcoll: Likewise.
16995         * modules/unistr/u16-strcpy: Likewise.
16996         * modules/unistr/u16-strcspn: Likewise.
16997         * modules/unistr/u16-strdup: Likewise.
16998         * modules/unistr/u16-strlen: Likewise.
16999         * modules/unistr/u16-strmblen: Likewise.
17000         * modules/unistr/u16-strmbtouc: Likewise.
17001         * modules/unistr/u16-strncat: Likewise.
17002         * modules/unistr/u16-strncmp: Likewise.
17003         * modules/unistr/u16-strncpy: Likewise.
17004         * modules/unistr/u16-strnlen: Likewise.
17005         * modules/unistr/u16-strpbrk: Likewise.
17006         * modules/unistr/u16-strrchr: Likewise.
17007         * modules/unistr/u16-strspn: Likewise.
17008         * modules/unistr/u16-strstr: Likewise.
17009         * modules/unistr/u16-strtok: Likewise.
17010         * modules/unistr/u16-to-u32: Likewise.
17011         * modules/unistr/u16-to-u8: Likewise.
17012         * modules/unistr/u16-uctomb: Likewise.
17013         * modules/unistr/u32-check: Likewise.
17014         * modules/unistr/u32-chr: Likewise.
17015         * modules/unistr/u32-cmp: Likewise.
17016         * modules/unistr/u32-cmp2: Likewise.
17017         * modules/unistr/u32-cpy: Likewise.
17018         * modules/unistr/u32-cpy-alloc: Likewise.
17019         * modules/unistr/u32-endswith: Likewise.
17020         * modules/unistr/u32-mblen: Likewise.
17021         * modules/unistr/u32-mbsnlen: Likewise.
17022         * modules/unistr/u32-mbtouc: Likewise.
17023         * modules/unistr/u32-mbtouc-unsafe: Likewise.
17024         * modules/unistr/u32-mbtoucr: Likewise.
17025         * modules/unistr/u32-move: Likewise.
17026         * modules/unistr/u32-next: Likewise.
17027         * modules/unistr/u32-prev: Likewise.
17028         * modules/unistr/u32-set: Likewise.
17029         * modules/unistr/u32-startswith: Likewise.
17030         * modules/unistr/u32-stpcpy: Likewise.
17031         * modules/unistr/u32-stpncpy: Likewise.
17032         * modules/unistr/u32-strcat: Likewise.
17033         * modules/unistr/u32-strchr: Likewise.
17034         * modules/unistr/u32-strcmp: Likewise.
17035         * modules/unistr/u32-strcoll: Likewise.
17036         * modules/unistr/u32-strcpy: Likewise.
17037         * modules/unistr/u32-strcspn: Likewise.
17038         * modules/unistr/u32-strdup: Likewise.
17039         * modules/unistr/u32-strlen: Likewise.
17040         * modules/unistr/u32-strmblen: Likewise.
17041         * modules/unistr/u32-strmbtouc: Likewise.
17042         * modules/unistr/u32-strncat: Likewise.
17043         * modules/unistr/u32-strncmp: Likewise.
17044         * modules/unistr/u32-strncpy: Likewise.
17045         * modules/unistr/u32-strnlen: Likewise.
17046         * modules/unistr/u32-strpbrk: Likewise.
17047         * modules/unistr/u32-strrchr: Likewise.
17048         * modules/unistr/u32-strspn: Likewise.
17049         * modules/unistr/u32-strstr: Likewise.
17050         * modules/unistr/u32-strtok: Likewise.
17051         * modules/unistr/u32-to-u16: Likewise.
17052         * modules/unistr/u32-to-u8: Likewise.
17053         * modules/unistr/u32-uctomb: Likewise.
17054         * modules/uniwbrk/u8-wordbreaks: Likewise.
17055         * modules/uniwbrk/u16-wordbreaks: Likewise.
17056         * modules/uniwbrk/u32-wordbreaks: Likewise.
17057         * modules/uniwbrk/ulc-wordbreaks: Likewise.
17058         * modules/uniwbrk/wordbreak-property: Likewise.
17059         * modules/uniwidth/u8-strwidth: Likewise.
17060         * modules/uniwidth/u8-width: Likewise.
17061         * modules/uniwidth/u16-strwidth: Likewise.
17062         * modules/uniwidth/u16-width: Likewise.
17063         * modules/uniwidth/u32-strwidth: Likewise.
17064         * modules/uniwidth/u32-width: Likewise.
17065         * modules/uniwidth/width: Likewise.
17066         * modules/unicase/cased-tests (Makefile.am): Link all test programs
17067         with $(LIBUNISTRING).
17068         * modules/unicase/ignorable-tests: Likewise.
17069         * modules/unicase/locale-language-tests: Likewise.
17070         * modules/unicase/tolower-tests: Likewise.
17071         * modules/unicase/totitle-tests: Likewise.
17072         * modules/unicase/toupper-tests: Likewise.
17073         * modules/unicase/u8-casecmp-tests: Likewise.
17074         * modules/unicase/u8-casecoll-tests: Likewise.
17075         * modules/unicase/u8-casefold-tests: Likewise.
17076         * modules/unicase/u8-is-cased-tests: Likewise.
17077         * modules/unicase/u8-is-casefolded-tests: Likewise.
17078         * modules/unicase/u8-is-lowercase-tests: Likewise.
17079         * modules/unicase/u8-is-titlecase-tests: Likewise.
17080         * modules/unicase/u8-is-uppercase-tests: Likewise.
17081         * modules/unicase/u8-tolower-tests: Likewise.
17082         * modules/unicase/u8-totitle-tests: Likewise.
17083         * modules/unicase/u8-toupper-tests: Likewise.
17084         * modules/unicase/u16-casecmp-tests: Likewise.
17085         * modules/unicase/u16-casecoll-tests: Likewise.
17086         * modules/unicase/u16-casefold-tests: Likewise.
17087         * modules/unicase/u16-is-cased-tests: Likewise.
17088         * modules/unicase/u16-is-casefolded-tests: Likewise.
17089         * modules/unicase/u16-is-lowercase-tests: Likewise.
17090         * modules/unicase/u16-is-titlecase-tests: Likewise.
17091         * modules/unicase/u16-is-uppercase-tests: Likewise.
17092         * modules/unicase/u16-tolower-tests: Likewise.
17093         * modules/unicase/u16-totitle-tests: Likewise.
17094         * modules/unicase/u16-toupper-tests: Likewise.
17095         * modules/unicase/u32-casecmp-tests: Likewise.
17096         * modules/unicase/u32-casecoll-tests: Likewise.
17097         * modules/unicase/u32-casefold-tests: Likewise.
17098         * modules/unicase/u32-is-cased-tests: Likewise.
17099         * modules/unicase/u32-is-casefolded-tests: Likewise.
17100         * modules/unicase/u32-is-lowercase-tests: Likewise.
17101         * modules/unicase/u32-is-titlecase-tests: Likewise.
17102         * modules/unicase/u32-is-uppercase-tests: Likewise.
17103         * modules/unicase/u32-tolower-tests: Likewise.
17104         * modules/unicase/u32-totitle-tests: Likewise.
17105         * modules/unicase/u32-toupper-tests: Likewise.
17106         * modules/unicase/ulc-casecmp-tests: Likewise.
17107         * modules/unicase/ulc-casecoll-tests: Likewise.
17108         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
17109         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
17110         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
17111         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
17112         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
17113         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
17114         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
17115         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
17116         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
17117         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
17118         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
17119         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
17120         * modules/unictype/bidicategory-byname-tests: Likewise.
17121         * modules/unictype/bidicategory-name-tests: Likewise.
17122         * modules/unictype/bidicategory-of-tests: Likewise.
17123         * modules/unictype/bidicategory-test-tests: Likewise.
17124         * modules/unictype/block-list-tests: Likewise.
17125         * modules/unictype/block-of-tests: Likewise.
17126         * modules/unictype/block-test-tests: Likewise.
17127         * modules/unictype/category-C-tests: Likewise.
17128         * modules/unictype/category-Cc-tests: Likewise.
17129         * modules/unictype/category-Cf-tests: Likewise.
17130         * modules/unictype/category-Cn-tests: Likewise.
17131         * modules/unictype/category-Co-tests: Likewise.
17132         * modules/unictype/category-Cs-tests: Likewise.
17133         * modules/unictype/category-L-tests: Likewise.
17134         * modules/unictype/category-Ll-tests: Likewise.
17135         * modules/unictype/category-Lm-tests: Likewise.
17136         * modules/unictype/category-Lo-tests: Likewise.
17137         * modules/unictype/category-Lt-tests: Likewise.
17138         * modules/unictype/category-Lu-tests: Likewise.
17139         * modules/unictype/category-M-tests: Likewise.
17140         * modules/unictype/category-Mc-tests: Likewise.
17141         * modules/unictype/category-Me-tests: Likewise.
17142         * modules/unictype/category-Mn-tests: Likewise.
17143         * modules/unictype/category-N-tests: Likewise.
17144         * modules/unictype/category-Nd-tests: Likewise.
17145         * modules/unictype/category-Nl-tests: Likewise.
17146         * modules/unictype/category-No-tests: Likewise.
17147         * modules/unictype/category-P-tests: Likewise.
17148         * modules/unictype/category-Pc-tests: Likewise.
17149         * modules/unictype/category-Pd-tests: Likewise.
17150         * modules/unictype/category-Pe-tests: Likewise.
17151         * modules/unictype/category-Pf-tests: Likewise.
17152         * modules/unictype/category-Pi-tests: Likewise.
17153         * modules/unictype/category-Po-tests: Likewise.
17154         * modules/unictype/category-Ps-tests: Likewise.
17155         * modules/unictype/category-S-tests: Likewise.
17156         * modules/unictype/category-Sc-tests: Likewise.
17157         * modules/unictype/category-Sk-tests: Likewise.
17158         * modules/unictype/category-Sm-tests: Likewise.
17159         * modules/unictype/category-So-tests: Likewise.
17160         * modules/unictype/category-Z-tests: Likewise.
17161         * modules/unictype/category-Zl-tests: Likewise.
17162         * modules/unictype/category-Zp-tests: Likewise.
17163         * modules/unictype/category-Zs-tests: Likewise.
17164         * modules/unictype/category-and-not-tests: Likewise.
17165         * modules/unictype/category-and-tests: Likewise.
17166         * modules/unictype/category-byname-tests: Likewise.
17167         * modules/unictype/category-name-tests: Likewise.
17168         * modules/unictype/category-none-tests: Likewise.
17169         * modules/unictype/category-of-tests: Likewise.
17170         * modules/unictype/category-or-tests: Likewise.
17171         * modules/unictype/category-test-withtable-tests: Likewise.
17172         * modules/unictype/combining-class-tests: Likewise.
17173         * modules/unictype/ctype-alnum-tests: Likewise.
17174         * modules/unictype/ctype-alpha-tests: Likewise.
17175         * modules/unictype/ctype-blank-tests: Likewise.
17176         * modules/unictype/ctype-cntrl-tests: Likewise.
17177         * modules/unictype/ctype-digit-tests: Likewise.
17178         * modules/unictype/ctype-graph-tests: Likewise.
17179         * modules/unictype/ctype-lower-tests: Likewise.
17180         * modules/unictype/ctype-print-tests: Likewise.
17181         * modules/unictype/ctype-punct-tests: Likewise.
17182         * modules/unictype/ctype-space-tests: Likewise.
17183         * modules/unictype/ctype-upper-tests: Likewise.
17184         * modules/unictype/ctype-xdigit-tests: Likewise.
17185         * modules/unictype/decimal-digit-tests: Likewise.
17186         * modules/unictype/digit-tests: Likewise.
17187         * modules/unictype/mirror-tests: Likewise.
17188         * modules/unictype/numeric-tests: Likewise.
17189         * modules/unictype/property-alphabetic-tests: Likewise.
17190         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
17191         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
17192         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
17193         * modules/unictype/property-bidi-block-separator-tests: Likewise.
17194         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
17195         * modules/unictype/property-bidi-common-separator-tests: Likewise.
17196         * modules/unictype/property-bidi-control-tests: Likewise.
17197         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
17198         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
17199         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
17200         * modules/unictype/property-bidi-european-digit-tests: Likewise.
17201         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
17202         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
17203         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
17204         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
17205         * modules/unictype/property-bidi-pdf-tests: Likewise.
17206         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
17207         * modules/unictype/property-bidi-whitespace-tests: Likewise.
17208         * modules/unictype/property-byname-tests: Likewise.
17209         * modules/unictype/property-combining-tests: Likewise.
17210         * modules/unictype/property-composite-tests: Likewise.
17211         * modules/unictype/property-currency-symbol-tests: Likewise.
17212         * modules/unictype/property-dash-tests: Likewise.
17213         * modules/unictype/property-decimal-digit-tests: Likewise.
17214         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
17215         * modules/unictype/property-deprecated-tests: Likewise.
17216         * modules/unictype/property-diacritic-tests: Likewise.
17217         * modules/unictype/property-extender-tests: Likewise.
17218         * modules/unictype/property-format-control-tests: Likewise.
17219         * modules/unictype/property-grapheme-base-tests: Likewise.
17220         * modules/unictype/property-grapheme-extend-tests: Likewise.
17221         * modules/unictype/property-grapheme-link-tests: Likewise.
17222         * modules/unictype/property-hex-digit-tests: Likewise.
17223         * modules/unictype/property-hyphen-tests: Likewise.
17224         * modules/unictype/property-id-continue-tests: Likewise.
17225         * modules/unictype/property-id-start-tests: Likewise.
17226         * modules/unictype/property-ideographic-tests: Likewise.
17227         * modules/unictype/property-ids-binary-operator-tests: Likewise.
17228         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
17229         * modules/unictype/property-ignorable-control-tests: Likewise.
17230         * modules/unictype/property-iso-control-tests: Likewise.
17231         * modules/unictype/property-join-control-tests: Likewise.
17232         * modules/unictype/property-left-of-pair-tests: Likewise.
17233         * modules/unictype/property-line-separator-tests: Likewise.
17234         * modules/unictype/property-logical-order-exception-tests: Likewise.
17235         * modules/unictype/property-lowercase-tests: Likewise.
17236         * modules/unictype/property-math-tests: Likewise.
17237         * modules/unictype/property-non-break-tests: Likewise.
17238         * modules/unictype/property-not-a-character-tests: Likewise.
17239         * modules/unictype/property-numeric-tests: Likewise.
17240         * modules/unictype/property-other-alphabetic-tests: Likewise.
17241         * modules/unictype/property-other-default-ignorable-code-point-tests:
17242         Likewise.
17243         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
17244         * modules/unictype/property-other-id-continue-tests: Likewise.
17245         * modules/unictype/property-other-id-start-tests: Likewise.
17246         * modules/unictype/property-other-lowercase-tests: Likewise.
17247         * modules/unictype/property-other-math-tests: Likewise.
17248         * modules/unictype/property-other-uppercase-tests: Likewise.
17249         * modules/unictype/property-paired-punctuation-tests: Likewise.
17250         * modules/unictype/property-paragraph-separator-tests: Likewise.
17251         * modules/unictype/property-pattern-syntax-tests: Likewise.
17252         * modules/unictype/property-pattern-white-space-tests: Likewise.
17253         * modules/unictype/property-private-use-tests: Likewise.
17254         * modules/unictype/property-punctuation-tests: Likewise.
17255         * modules/unictype/property-quotation-mark-tests: Likewise.
17256         * modules/unictype/property-radical-tests: Likewise.
17257         * modules/unictype/property-sentence-terminal-tests: Likewise.
17258         * modules/unictype/property-soft-dotted-tests: Likewise.
17259         * modules/unictype/property-space-tests: Likewise.
17260         * modules/unictype/property-terminal-punctuation-tests: Likewise.
17261         * modules/unictype/property-test-tests: Likewise.
17262         * modules/unictype/property-titlecase-tests: Likewise.
17263         * modules/unictype/property-unassigned-code-value-tests: Likewise.
17264         * modules/unictype/property-unified-ideograph-tests: Likewise.
17265         * modules/unictype/property-uppercase-tests: Likewise.
17266         * modules/unictype/property-variation-selector-tests: Likewise.
17267         * modules/unictype/property-white-space-tests: Likewise.
17268         * modules/unictype/property-xid-continue-tests: Likewise.
17269         * modules/unictype/property-xid-start-tests: Likewise.
17270         * modules/unictype/property-zero-width-tests: Likewise.
17271         * modules/unictype/scripts-tests: Likewise.
17272         * modules/unictype/syntax-c-ident-tests: Likewise.
17273         * modules/unictype/syntax-c-whitespace-tests: Likewise.
17274         * modules/unictype/syntax-java-ident-tests: Likewise.
17275         * modules/unictype/syntax-java-whitespace-tests: Likewise.
17276         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
17277         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
17278         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
17279         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
17280         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
17281         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
17282         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
17283         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
17284         * modules/uniname/uniname-tests: Likewise.
17285         * modules/uninorm/canonical-decomposition-tests: Likewise.
17286         * modules/uninorm/compat-decomposition-tests: Likewise.
17287         * modules/uninorm/composition-tests: Likewise.
17288         * modules/uninorm/decomposing-form-tests: Likewise.
17289         * modules/uninorm/decomposition-tests: Likewise.
17290         * modules/uninorm/filter-tests: Likewise.
17291         * modules/uninorm/nfc-tests: Likewise.
17292         * modules/uninorm/nfd-tests: Likewise.
17293         * modules/uninorm/nfkc-tests: Likewise.
17294         * modules/uninorm/nfkd-tests: Likewise.
17295         * modules/uninorm/u8-normcmp-tests: Likewise.
17296         * modules/uninorm/u8-normcoll-tests: Likewise.
17297         * modules/uninorm/u16-normcmp-tests: Likewise.
17298         * modules/uninorm/u16-normcoll-tests: Likewise.
17299         * modules/uninorm/u32-normcmp-tests: Likewise.
17300         * modules/uninorm/u32-normcoll-tests: Likewise.
17301         * modules/unistdio/u8-asnprintf-tests: Likewise.
17302         * modules/unistdio/u8-vasnprintf-tests: Likewise.
17303         * modules/unistdio/u8-vasprintf-tests: Likewise.
17304         * modules/unistdio/u8-vsnprintf-tests: Likewise.
17305         * modules/unistdio/u8-vsprintf-tests: Likewise.
17306         * modules/unistdio/u16-asnprintf-tests: Likewise.
17307         * modules/unistdio/u16-vasnprintf-tests: Likewise.
17308         * modules/unistdio/u16-vasprintf-tests: Likewise.
17309         * modules/unistdio/u16-vsnprintf-tests: Likewise.
17310         * modules/unistdio/u16-vsprintf-tests: Likewise.
17311         * modules/unistdio/u32-asnprintf-tests: Likewise.
17312         * modules/unistdio/u32-vasnprintf-tests: Likewise.
17313         * modules/unistdio/u32-vasprintf-tests: Likewise.
17314         * modules/unistdio/u32-vsnprintf-tests: Likewise.
17315         * modules/unistdio/u32-vsprintf-tests: Likewise.
17316         * modules/unistdio/ulc-asnprintf-tests: Likewise.
17317         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
17318         * modules/unistdio/ulc-vasprintf-tests: Likewise.
17319         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
17320         * modules/unistdio/ulc-vsprintf-tests: Likewise.
17321         * modules/unistr/u8-check-tests: Likewise.
17322         * modules/unistr/u8-chr-tests: Likewise.
17323         * modules/unistr/u8-cmp-tests: Likewise.
17324         * modules/unistr/u8-cmp2-tests: Likewise.
17325         * modules/unistr/u8-cpy-alloc-tests: Likewise.
17326         * modules/unistr/u8-cpy-tests: Likewise.
17327         * modules/unistr/u8-mblen-tests: Likewise.
17328         * modules/unistr/u8-mbsnlen-tests: Likewise.
17329         * modules/unistr/u8-mbtouc-tests: Likewise.
17330         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
17331         * modules/unistr/u8-mbtoucr-tests: Likewise.
17332         * modules/unistr/u8-move-tests: Likewise.
17333         * modules/unistr/u8-next-tests: Likewise.
17334         * modules/unistr/u8-prev-tests: Likewise.
17335         * modules/unistr/u8-set-tests: Likewise.
17336         * modules/unistr/u8-stpcpy-tests: Likewise.
17337         * modules/unistr/u8-stpncpy-tests: Likewise.
17338         * modules/unistr/u8-strcat-tests: Likewise.
17339         * modules/unistr/u8-strcmp-tests: Likewise.
17340         * modules/unistr/u8-strcoll-tests: Likewise.
17341         * modules/unistr/u8-strcpy-tests: Likewise.
17342         * modules/unistr/u8-strdup-tests: Likewise.
17343         * modules/unistr/u8-strlen-tests: Likewise.
17344         * modules/unistr/u8-strmblen-tests: Likewise.
17345         * modules/unistr/u8-strmbtouc-tests: Likewise.
17346         * modules/unistr/u8-strncat-tests: Likewise.
17347         * modules/unistr/u8-strncmp-tests: Likewise.
17348         * modules/unistr/u8-strncpy-tests: Likewise.
17349         * modules/unistr/u8-strnlen-tests: Likewise.
17350         * modules/unistr/u8-to-u16-tests: Likewise.
17351         * modules/unistr/u8-to-u32-tests: Likewise.
17352         * modules/unistr/u8-uctomb-tests: Likewise.
17353         * modules/unistr/u16-check-tests: Likewise.
17354         * modules/unistr/u16-chr-tests: Likewise.
17355         * modules/unistr/u16-cmp-tests: Likewise.
17356         * modules/unistr/u16-cmp2-tests: Likewise.
17357         * modules/unistr/u16-cpy-alloc-tests: Likewise.
17358         * modules/unistr/u16-cpy-tests: Likewise.
17359         * modules/unistr/u16-mblen-tests: Likewise.
17360         * modules/unistr/u16-mbsnlen-tests: Likewise.
17361         * modules/unistr/u16-mbtouc-tests: Likewise.
17362         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
17363         * modules/unistr/u16-mbtoucr-tests: Likewise.
17364         * modules/unistr/u16-move-tests: Likewise.
17365         * modules/unistr/u16-next-tests: Likewise.
17366         * modules/unistr/u16-prev-tests: Likewise.
17367         * modules/unistr/u16-set-tests: Likewise.
17368         * modules/unistr/u16-stpcpy-tests: Likewise.
17369         * modules/unistr/u16-stpncpy-tests: Likewise.
17370         * modules/unistr/u16-strcat-tests: Likewise.
17371         * modules/unistr/u16-strcmp-tests: Likewise.
17372         * modules/unistr/u16-strcoll-tests: Likewise.
17373         * modules/unistr/u16-strcpy-tests: Likewise.
17374         * modules/unistr/u16-strdup-tests: Likewise.
17375         * modules/unistr/u16-strlen-tests: Likewise.
17376         * modules/unistr/u16-strmblen-tests: Likewise.
17377         * modules/unistr/u16-strmbtouc-tests: Likewise.
17378         * modules/unistr/u16-strncat-tests: Likewise.
17379         * modules/unistr/u16-strncmp-tests: Likewise.
17380         * modules/unistr/u16-strncpy-tests: Likewise.
17381         * modules/unistr/u16-strnlen-tests: Likewise.
17382         * modules/unistr/u16-to-u32-tests: Likewise.
17383         * modules/unistr/u16-to-u8-tests: Likewise.
17384         * modules/unistr/u16-uctomb-tests: Likewise.
17385         * modules/unistr/u32-check-tests: Likewise.
17386         * modules/unistr/u32-chr-tests: Likewise.
17387         * modules/unistr/u32-cmp-tests: Likewise.
17388         * modules/unistr/u32-cmp2-tests: Likewise.
17389         * modules/unistr/u32-cpy-alloc-tests: Likewise.
17390         * modules/unistr/u32-cpy-tests: Likewise.
17391         * modules/unistr/u32-mblen-tests: Likewise.
17392         * modules/unistr/u32-mbsnlen-tests: Likewise.
17393         * modules/unistr/u32-mbtouc-tests: Likewise.
17394         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
17395         * modules/unistr/u32-mbtoucr-tests: Likewise.
17396         * modules/unistr/u32-move-tests: Likewise.
17397         * modules/unistr/u32-next-tests: Likewise.
17398         * modules/unistr/u32-prev-tests: Likewise.
17399         * modules/unistr/u32-set-tests: Likewise.
17400         * modules/unistr/u32-stpcpy-tests: Likewise.
17401         * modules/unistr/u32-stpncpy-tests: Likewise.
17402         * modules/unistr/u32-strcat-tests: Likewise.
17403         * modules/unistr/u32-strcmp-tests: Likewise.
17404         * modules/unistr/u32-strcoll-tests: Likewise.
17405         * modules/unistr/u32-strcpy-tests: Likewise.
17406         * modules/unistr/u32-strdup-tests: Likewise.
17407         * modules/unistr/u32-strlen-tests: Likewise.
17408         * modules/unistr/u32-strmblen-tests: Likewise.
17409         * modules/unistr/u32-strmbtouc-tests: Likewise.
17410         * modules/unistr/u32-strncat-tests: Likewise.
17411         * modules/unistr/u32-strncmp-tests: Likewise.
17412         * modules/unistr/u32-strncpy-tests: Likewise.
17413         * modules/unistr/u32-strnlen-tests: Likewise.
17414         * modules/unistr/u32-to-u16-tests: Likewise.
17415         * modules/unistr/u32-to-u8-tests: Likewise.
17416         * modules/unistr/u32-uctomb-tests: Likewise.
17417         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
17418         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
17419         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
17420         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
17421         * modules/uniwidth/u8-strwidth-tests: Likewise.
17422         * modules/uniwidth/u8-width-tests: Likewise.
17423         * modules/uniwidth/u16-strwidth-tests: Likewise.
17424         * modules/uniwidth/u16-width-tests: Likewise.
17425         * modules/uniwidth/u32-strwidth-tests: Likewise.
17426         * modules/uniwidth/u32-width-tests: Likewise.
17427         * modules/uniwidth/width-tests: Likewise.
17428
17429 2010-05-18  Richard Jones  <rjones@redhat.com>
17430
17431         doc: users.txt: list hivex
17432         * users.txt: Add hivex.
17433
17434 2010-05-18  Richard Jones  <rjones@redhat.com>
17435
17436         doc: users.txt: list febootstrap
17437         * users.txt: Add febootstrap.
17438
17439 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
17440
17441         bootstrap: fix an error when gnulib is not used as a git submodule
17442         * build-aux/bootstrap (gnulib_path): If its length is zero then
17443         assign "gnulib" to it.
17444         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
17445
17446 2010-05-16  Bruno Haible  <bruno@clisp.org>
17447
17448         Avoid autoconf warnings about AM_ICONV.
17449         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
17450         2.64.
17451
17452 2010-05-16  Bruno Haible  <bruno@clisp.org>
17453
17454         absolute-header: Make the macro usable in more situations.
17455         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
17456         from gl_ABSOLUTE_HEADER.
17457         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
17458
17459 2010-05-16  James Youngman  <jay@gnu.org>
17460
17461         doc: update users.txt
17462         * users.txt: Add CSSC.
17463
17464 2010-05-16  Jim Meyering  <meyering@redhat.com>
17465
17466         init.sh: fix an error in the previous change; add more comments
17467         * tests/init.sh: Compare exit code in loop against 9, not 2.
17468         Patch by Bruno Haible.
17469         Make the two tests more similar by adding an empty "then" clause.
17470         Add comments.
17471
17472         init.sh: avoid unnecessary shell re-exec
17473         * tests/init.sh: Improve the re-exec-required check to first test the
17474         current shell.  If it passes the test, do not search for a shell that
17475         does pass, and do not re-exec.  This test is particularly contorted to
17476         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
17477         of $(...) evokes a syntax error and causes immediate shell exit with
17478         status 2.  Bruno Haible reported that the re-exec made it impossible
17479         to single-step through any init.sh-using script.
17480
17481 2010-05-16  Bruno Haible  <bruno@clisp.org>
17482
17483         Fix collision between gnulib's and libintl's printf replacements.
17484         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
17485         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
17486         (printf): When using GNU C, map the __printf__ function to rpl_printf
17487         via __asm__. When not using GNU C, define rpl_printf instead of
17488         __printf__.
17489         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
17490         commit.
17491         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
17492         commit.
17493         * m4/asm-underscore.m4: New file.
17494         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
17495         * modules/stdio (Files): Add m4/asm-underscore.m4.
17496         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
17497         Reported by Ben Pfaff.
17498
17499 2010-05-16  Bruno Haible  <bruno@clisp.org>
17500
17501         verify: Avoid skipping the test on openSUSE 11.0.
17502         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
17503
17504 2010-05-13  Bruno Haible  <bruno@clisp.org>
17505
17506         Avoid useless warnings from G++.
17507         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
17508         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
17509         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17510
17511 2010-05-11  Jim Meyering  <meyering@redhat.com>
17512
17513         maint.mk: tweak preceding change
17514         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
17515         regexps tighter by anchoring at EOL, and make the new group "shy"
17516         for slightly decreased overhead.
17517
17518 2010-05-11  Eric Blake  <eblake@redhat.com>
17519
17520         maint.mk: gnulib doesn't guarantee NSIG
17521         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
17522
17523 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17524
17525         test-pwrite.c: Remove unused variable declaration.
17526         * tests/test-pwrite.c (main): Remove read_buf declaration.
17527
17528         Remove useless test-pwrite.sh file.
17529         * tests/test-pwrite.sh: Delete file.
17530         * modules/pwrite-tests: Remove references.
17531         Reported by Bruno Haible.
17532
17533 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
17534
17535         init.sh: fix a typo
17536         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
17537
17538 2010-05-10  Jim Meyering  <meyering@redhat.com>
17539
17540         maint.mk: avoid using a temporary file in the always-defined-macros check
17541         * top/maint.mk (.re-defmac): Remove rule.
17542         (gl_trap_): Remove definition.
17543         (sc_prohibit_always-defined_macros): Rewrite not to create and
17544         depend on a temporary file.  Instead, depend on GNU grep's ability
17545         to read a list of regular expressions from stdin when given "-f -".
17546
17547 2010-05-09  Bruno Haible  <bruno@clisp.org>
17548
17549         Update to GNU gettext 0.18, part 1.
17550         * m4/gettext.m4: Update to GNU gettext 0.18.
17551         * m4/intl.m4: Likewise.
17552         * m4/po.m4: Likewise.
17553         * modules/gettext (Files): Add m4/fcntl-o.m4.
17554         (configure.ac): Require gettext infrastructure from version 0.18.
17555
17556 2010-05-09  Jim Meyering  <meyering@redhat.com>
17557
17558         init.sh: enable MALLOC_PERTURB_
17559         * tests/init.sh: Enable glibc's malloc-perturbing option.
17560
17561         maint.mk: improve sc_cross_check_PATH_usage_in_tests
17562         With my recent change in init.sh from the two-line form:
17563             -#   : ${srcdir=.}
17564             -#   . "$srcdir/init.sh"; path_prepend_ .
17565             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
17566         I noticed that using the one-line form would cause this test
17567         to fail with a false-positive, or to stop working altogether,
17568         depending on whether help-version changed or all the tests did.
17569         * top/maint.mk (_hv_regex): Remove this definition.
17570         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
17571         (_hv_regex_strong): Use a stronger regex to check for conformance.
17572         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
17573         Give a separate diagnostic for lack of conforming use.
17574
17575         maint.mk: prohibit definition of symbols defined by gnulib
17576         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
17577         definition of symbols defined by gnulib.
17578
17579 2010-05-09  Bruno Haible  <bruno@clisp.org>
17580
17581         acl: Avoid test failure on Cygwin-hosted mingw.
17582         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
17583
17584 2010-05-09  Bruno Haible  <bruno@clisp.org>
17585
17586         error: Use system's fcntl function.
17587         * lib/error.c (fcntl): Undefine.
17588
17589 2010-05-09  Jim Meyering  <meyering@redhat.com>
17590
17591         verify: adjust formatting to be more consistent
17592         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
17593         argument-list '('s, and after one comma.
17594
17595 2010-05-09  Bruno Haible  <bruno@clisp.org>
17596
17597         error: More reliable output on mingw.
17598         * lib/error.c: Include <windows.h>.
17599         (is_open): New function.
17600         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
17601         defined.
17602
17603 2010-05-09  Bruno Haible  <bruno@clisp.org>
17604
17605         vasnprintf: Fix syntax errors in libintl build on mingw.
17606         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
17607         pad_ourselves and prec_ourselves after use.
17608
17609 2010-05-08  Bruno Haible  <bruno@clisp.org>
17610
17611         * lib/config.charset: Update comments for Cygwin 1.7.
17612         * lib/localcharset.c: Likewise.
17613
17614 2010-05-07  Jim Meyering  <meyering@redhat.com>
17615
17616         init.sh: improve comments
17617         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
17618         . "${srcdir=.}/init.sh"; path_prepend_ .
17619         Add a note about path_prepend_ and the alternative of using
17620         TESTS_ENVIRONMENT.
17621
17622 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17623
17624         exclude: Unescape hashed patterns in wildcard mode.
17625         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
17626         to the hash list.
17627         * tests/test-exclude8.sh: New test case.
17628         * modules/exclude-tests: Add new test.
17629
17630 2010-05-05  Eric Blake  <eblake@redhat.com>
17631
17632         verify: automate tests
17633         * modules/verify-tests: New module.
17634         * tests/test-verify.sh: New file.
17635         * tests/test-verify.c: Guard each negative test with a unique id.
17636         Also avoid warning about unused left hand of comma expressions.
17637
17638 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17639
17640         Further improvements to verify.h, suggested by Eric Blake.
17641         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
17642         the GL_* versions, to avoid collision with OpenGL.
17643         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
17644         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
17645         than testing merely whether it's defined.
17646
17647         Modify verify.h to pacify gcc -Wredundant_decls.
17648         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
17649         These use the prefix "GL_" since they're likely to be useful elsewhere.
17650         We may need to break them out into a different .h file.
17651         (__COUNTER__): Define to 0 if the compiler doesn't support it.
17652         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
17653         of verify_function__.
17654
17655 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17656
17657         Tests for module pwrite.
17658         * modules/pwrite-tests: New file.
17659         * tests/test-pwrite.sh: New file.
17660         * tests/test-pwrite.c: New file.
17661
17662         New module pwrite.
17663         * lib/unistd.in.h (pwrite): New declaration.
17664         * lib/pwrite.c: New file, from glibc with modifications.
17665         * m4/pwrite.m4: New file.
17666         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
17667         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
17668         REPLACE_PWRITE.
17669         * modules/pwrite: New file.
17670         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
17671         REPLACE_PWRITE.
17672         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
17673         * doc/posix-functions/pwrite.texi: Mention the new module.
17674
17675 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17676
17677         pread: Update documentation.
17678         * doc/posix-functions/pread.texi: Mention the 'pread' module.
17679
17680 2010-05-04  Eric Blake  <eblake@redhat.com>
17681
17682         docs: update cygwin progress
17683         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
17684         this bug.
17685         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
17686         Added in cygwin 1.7.2.
17687         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
17688         Likewise.
17689         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
17690         Likewise.
17691         * doc/glibc-functions/dup3.texi (dup3): Likewise.
17692         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17693         * doc/glibc-functions/accept4.texi (accept4): Likewise.
17694         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
17695         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
17696         Mention nproc module.
17697         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
17698         bug in cygwin 1.7.5 addition.
17699         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
17700         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
17701         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
17702         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
17703         1.7.5.
17704         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
17705         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
17706         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
17707         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
17708         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
17709         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
17710         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
17711         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
17712         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
17713         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
17714         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
17715         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
17716         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
17717         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
17718         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
17719         Likewise.
17720         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
17721         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
17722         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
17723         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
17724         Likewise.
17725         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
17726         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
17727         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
17728         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
17729         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
17730         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
17731         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
17732         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
17733         Likewise.
17734         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
17735         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
17736         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
17737         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
17738         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
17739         Likewise.
17740         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
17741         Likewise.
17742         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
17743         Likewise.
17744         * doc/glibc-functions/xdrrec_endofrecord.texi
17745         (xdrrec_endofrecord): Likewise.
17746         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
17747         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
17748         Likewise.
17749         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
17750         Likewise.
17751
17752 2010-05-04  Jim Meyering  <meyering@redhat.com>
17753
17754         gendocs.sh: make its "-s FILE" option more useful
17755         * build-aux/gendocs.sh: When honoring the -s FILE option, update
17756         $PACKAGE to reflect the probably-different basename of "FILE".
17757
17758 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17759
17760         bootstrap: don't ignore download_po_files failure
17761         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
17762         failure.
17763
17764 2010-05-03  Jim Meyering  <meyering@redhat.com>
17765
17766         maint.mk: allow to pass options to gendocs.sh
17767         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
17768         (gendocs_options_): New overridable variable.
17769
17770         gnu-web-doc-update: don't ignore configure or build failure
17771         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
17772
17773         announce-gen: backslash-escape '@'s in --help output
17774         * build-aux/announce-gen: Fix syntax errors.
17775
17776         maint.mk, announce-gen: allow project-specific announcement mail headers
17777         * top/maint.mk (translation_project_): Define default.
17778         (announcement_Cc_, announcement_mail_headers_): Likewise.
17779         (announcement): Invoke announce-gen with new --mail-headers option.
17780         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
17781
17782         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
17783         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
17784         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
17785         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
17786         line in the "err2" output file when running "make check" in verbose
17787         mode (i.e., with set -x enabled).
17788
17789 2010-05-03  Bruno Haible  <bruno@clisp.org>
17790
17791         wctob: Fix for weird platforms.
17792         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
17793         argument value.
17794
17795 2010-05-03  Jim Meyering  <meyering@redhat.com>
17796
17797         maint.mk: prohibit unwarranted use of <strings.h>
17798         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
17799         strings.h in a file that does not also use strcasecmp, strncasecmp,
17800         ffs or ffsll.
17801
17802         maint.mk: remove obsolete comments
17803         * top/maint.mk: Remove stale, commented-out rules.
17804
17805 2010-05-02  Bruno Haible  <bruno@clisp.org>
17806
17807         wcwidth: Declare also when it's aliased.
17808         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
17809         macro.
17810
17811 2010-05-02  Bruno Haible  <bruno@clisp.org>
17812
17813         Fix regression from 2010-04-25.
17814         * gnulib-tool (func_modules_transitive_closure): Check the status of
17815         all modules, not only of the tests that are of the form foo-tests where
17816         foo is a module.
17817
17818 2010-05-02  Bruno Haible  <bruno@clisp.org>
17819
17820         wctob: Work around nasty Cygwin 1.7.2 bug.
17821         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
17822         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
17823
17824 2010-05-01  Bruno Haible  <bruno@clisp.org>
17825
17826         fpurge: Sharper test.
17827         * tests/test-fpurge.c (main): Add one more ftell check.
17828         * modules/fpurge-tests (Depends-on): Add ftell.
17829         Suggested by Eric Blake.
17830
17831 2010-05-01  Bruno Haible  <bruno@clisp.org>
17832
17833         ftello: Another test.
17834         * tests/test-ftello3.c: New file.
17835         * modules/ftello-tests (Files): Add it.
17836         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
17837         MOSTLYCLEANFILES.
17838
17839         ftell: Another test.
17840         * tests/test-ftell3.c: New file.
17841         * modules/ftell-tests (Files): Add it.
17842         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
17843         MOSTLYCLEANFILES.
17844
17845 2010-05-01  Bruno Haible  <bruno@clisp.org>
17846
17847         ftell, ftello: Work around Solaris bug.
17848         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
17849         * lib/ftello.c: Include stdio-impl.h.
17850         (ftello): On Solaris, when _IOWRT is set, compute the result without
17851         looking at _IOREAD.
17852         * modules/ftello (Files): Add lib/stdio-impl.h.
17853         * doc/posix-functions/ftell.texi: Mention Solaris bug.
17854         * doc/posix-functions/ftello.texi: Likewise.
17855         Reported by Eric Blake.
17856
17857 2010-05-01  Bruno Haible  <bruno@clisp.org>
17858
17859         freading: Adapt to special meaning of _IOREAD flag on Solaris.
17860         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
17861         the _IOWRT flag is also set.
17862
17863 2010-05-01  Bruno Haible  <bruno@clisp.org>
17864
17865         Fix doc about a HP-UX stdio bug.
17866         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
17867         * doc/posix-functions/ftello.texi: Likewise.
17868
17869 2010-05-01  Bruno Haible  <bruno@clisp.org>
17870
17871         lseek test: Fix failure on Solaris.
17872         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
17873         output.
17874
17875 2010-04-30  Jim Meyering  <meyering@redhat.com>
17876
17877         bootstrap: don't ignore failure to generate po*/Makevars
17878         * build-aux/bootstrap (with_gettext): Don't ignore failure
17879         to create po/Makevars or runtime-po/Makevars.
17880
17881 2010-04-29  Eric Blake  <eblake@redhat.com>
17882
17883         headers: relax license to LGPLv2+
17884         * modules/fcntl-h (License): Relax license.
17885         * modules/getopt-posix (License): Likewise.
17886         * modules/locale (License): Likewise.
17887         * modules/math (License): Likewise.
17888         * modules/pty (License): Likewise.
17889         * modules/sched (License): Likewise.
17890         * modules/search (License): Likewise.
17891         * modules/spawn (License): Likewise.
17892         * modules/stdarg (License): Likewise.
17893         * modules/sysexits (License): Likewise.
17894
17895 2010-04-29  Jim Meyering  <meyering@redhat.com>
17896
17897         inttypes: relax license to LGPLv2+
17898         * modules/inttypes (License): Relax license.
17899
17900 2010-04-29  Simon Josefsson  <simon@josefsson.org>
17901
17902         * top/maint.mk (indent): Run twice to produce idempotent results.
17903
17904 2010-04-28  Bruno Haible  <bruno@clisp.org>
17905
17906         getdate: Generate getdate.c in the source directory.
17907         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
17908         MOSTLYCLEANFILES.
17909         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
17910
17911 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
17912
17913         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
17914         is not declared as a const *; avoid warnings in that case.
17915
17916 2010-04-28  Eric Blake  <eblake@redhat.com>
17917
17918         canonicalize-lgpl: avoid compiler warning
17919         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
17920         declaration' / 'extraneous semicolon' warning with some compilers.
17921         Reported by Andreas Gruenbacher.
17922
17923 2010-04-28  Jim Meyering  <meyering@redhat.com>
17924
17925         init.sh: ensure a more reliable exit status when exiting via trap
17926         * tests/init.sh (setup_): Don't rely on $? in signal handler.
17927         Inspired by patches from Dmitry V. Levin.
17928         Also trap on signal 3 (SIGQUIT).
17929
17930 2010-04-27  Bruno Haible  <bruno@clisp.org>
17931
17932         Update doc about utimes().
17933         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
17934         'utimens' module.
17935         Reported by Andreas Gruenbacher <agruen@suse.de>.
17936
17937 2010-04-27  Eric Blake  <eblake@redhat.com>
17938
17939         full-read, full-write: relax license
17940         * modules/full-read (License): Drop to LGPLv2+.
17941         * modules/full-write (License): Likewise.
17942         * modules/safe-read (License): Likewise.
17943         * modules/safe-write (License): Likewise.
17944
17945         pthread: mention library for linking
17946         * modules/pthread (Link): Mention $(LIB_PTHREAD).
17947
17948 2010-04-27  Jim Meyering  <meyering@redhat.com>
17949
17950         maint.mk: fix a bug introduced in last change
17951         * top/maint.mk (gl_assured_headers_): Now that all names are on
17952         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
17953         is not anchored to end of word, it should be adequate.
17954
17955         maint.mk: avoid side-effect in latest syntax-check
17956         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
17957         to run commands via $(shell...), and hence to incur cost only when
17958         the new rule is actually run.
17959
17960         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
17961         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
17962         and use that to create a regexp used to detect all #if HAVE_..._H uses.
17963         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
17964         (gl_assured_headers_, az_, AZ_): Define.
17965         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
17966
17967 2010-04-26  Jim Meyering  <jim@meyering.net>
17968             Bruno Haible  <bruno@clisp.org>
17969
17970         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
17971         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
17972         Prompted by an exchange with Gilles Espinasse.
17973
17974 2010-04-26  Jim Meyering  <meyering@redhat.com>
17975
17976         git-version-gen: aesthetic tweak
17977         * build-aux/git-version-gen: Use "$nl" rather than a literal,
17978         so that the command remains on a single line.
17979
17980 2010-04-26  Eric Blake  <eblake@redhat.com>
17981
17982         git-version-gen: allow use on EBCDIC hosts
17983         * build-aux/git-version-gen (dirty): Use literal rather than tying
17984         ourselves to ascii.
17985         Reported by Steve Goetze.
17986
17987 2010-04-25  Bruno Haible  <bruno@clisp.org>
17988
17989         netdb: Add support for GNULIB_POSIXCHECK.
17990         * lib/netdb.in.h: Include warn-on-use.h.
17991         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
17992         functions are used when GNULIB_POSIXCHECK is defined and the
17993         getaddrinfo module is not in use.
17994         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
17995         freeaddrinfo, gai_strerror, getnameinfo are declared.
17996         * modules/netdb (Depends-on): Add warn-on-use.
17997         (Makefile.am): Include warn-on-use.h in netdb.h.
17998
17999 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
18000
18001         build: avoid "make check" failure without .git/ directory
18002         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
18003         there is no .git/ directory.
18004
18005 2010-04-25  Bruno Haible  <bruno@clisp.org>
18006
18007         ptsname: Fix misuse of ttyname_r.
18008         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
18009         of errno.
18010
18011 2010-04-25  Bruno Haible  <bruno@clisp.org>
18012
18013         ttyname_r: Make it work on Solaris 10.
18014         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
18015         if the system function has the POSIX declaration. Test whether the
18016         function fails if the buffer is less than 128 bytes large.
18017         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
18018         system's ttyname_r function. Provide a reasonably large buffer.
18019         * modules/ttyname_r (Depends-on): Add extensions.
18020         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
18021
18022 2010-04-25  Bruno Haible  <bruno@clisp.org>
18023
18024         Use the 'extensions' module for some more functions on Solaris.
18025         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
18026         module.
18027         * doc/posix-functions/ctime_r.texi: Likewise.
18028         * doc/posix-functions/getgrgid_r.texi: Likewise.
18029         * doc/posix-functions/getgrnam_r.texi: Likewise.
18030         * doc/posix-functions/getpwnam_r.texi: Likewise.
18031         * doc/posix-functions/getpwuid_r.texi: Likewise.
18032         * doc/posix-functions/readdir_r.texi: Likewise.
18033         * doc/posix-functions/sigwait.texi: Likewise.
18034         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
18035         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
18036
18037 2010-04-25  Bruno Haible  <bruno@clisp.org>
18038
18039         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
18040         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
18041         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
18042         * lib/ttyname_r.c: Include <limits.h>.
18043         (ttyname_r): Define using the system's ttyname_r function, if it exists
18044         and not on Solaris.
18045         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
18046         set.
18047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
18048         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
18049         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
18050         Reported by Simon Josefsson.
18051
18052 2010-04-25  Bruno Haible  <bruno@clisp.org>
18053
18054         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
18055         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
18056         * doc/posix-functions/ctime_r.texi: Likewise.
18057         * doc/posix-functions/getgrgid_r.texi: Likewise.
18058         * doc/posix-functions/getgrnam_r.texi: Likewise.
18059         * doc/posix-functions/getlogin_r.texi: Likewise.
18060         * doc/posix-functions/getpwnam_r.texi: Likewise.
18061         * doc/posix-functions/getpwuid_r.texi: Likewise.
18062         * doc/posix-functions/readdir_r.texi: Likewise.
18063         * doc/posix-functions/sigwait.texi: Likewise.
18064         * doc/posix-functions/ttyname_r.texi: Likewise.
18065         Reported by Simon Josefsson.
18066
18067 2010-04-25  Bruno Haible  <bruno@clisp.org>
18068
18069         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
18070         * gnulib-tool (func_usage): Document that --with-*-tests options apply
18071         also to --create-testdir.
18072         (func_acceptable): Don't consider the status of *-tests modules here.
18073         (func_modules_transitive_closure): Consider it here, before including a
18074         test module.
18075         (func_import, func_create_testdir): Set inc_all_direct_tests,
18076         inc_all_indirect_tests.
18077         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
18078         --create-testdir and --create-megatestdir.
18079
18080 2010-04-25  Bruno Haible  <bruno@clisp.org>
18081
18082         gnulib-tool: Add --without-*-tests options.
18083         * gnulib-tool (func_usage): Document the --without-*-tests options.
18084         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
18085         excl_unportable_tests): New variables.
18086         Fail if they are specified with --import or --update.
18087         (func_acceptable): Respect the excl_*_tests variables.
18088         (func_import): Set the excl_*_tests variables to empty.
18089
18090 2010-04-25  Simon Josefsson  <simon@josefsson.org>
18091             Bruno Haible  <bruno@clisp.org>
18092
18093         Work around a MacOS X 10.4 bug with openpty.
18094         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
18095         * tests/test-openpty.c (main): Close the master side explicitly.
18096
18097 2010-04-25  Bruno Haible  <bruno@clisp.org>
18098
18099         strnlen: Fix a C++ test error on MacOS X and Solaris.
18100         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
18101         the function is not declared.
18102         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
18103         Simon Josefsson.
18104
18105 2010-04-24  Bruno Haible  <bruno@clisp.org>
18106
18107         Avoid a gcc warning.
18108         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
18109         of correct type for %08lx directive.
18110         Reported by Eric Blake.
18111
18112 2010-04-24  Bruno Haible  <bruno@clisp.org>
18113
18114         vasnprintf: Correct errno value in case of out-of-memory.
18115         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
18116         or sprintf. Use the errno value from SNPRINTF or sprintf.
18117         Reported by Ian Beckwith <ianb@erislabs.net>.
18118
18119 2010-04-24  Bruno Haible  <bruno@clisp.org>
18120
18121         ansi-c++-opt: Find correct compiler when cross-compiling.
18122         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
18123         AC_CHECK_PROGS.
18124         Reported by Simon Josefsson.
18125
18126 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
18127
18128         vc-list-files: Add support for subversion
18129         * build-aux/vc-list-files: Use "svn list" to generate the list of
18130         files controlled by subversion.
18131
18132 2010-04-23  Jim Meyering  <meyering@redhat.com>
18133
18134         vc-list-files tests: convert to use init.sh
18135         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
18136         path_prepend_.
18137         Use Exit, not exit.
18138         Use skip_ rather than open coding it.
18139         Remove trap set-up and compare definitions.
18140         * tests/test-vc-list-files-git.sh: Likewise.
18141         * modules/vc-list-files-tests (Files): Add tests/init.sh.
18142
18143 2010-04-22  Simon Josefsson  <simon@josefsson.org>
18144
18145         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
18146         backup files.
18147
18148 2010-04-21  Simon Josefsson  <simon@josefsson.org>
18149
18150         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
18151
18152 2010-04-20  Eric Blake  <eblake@redhat.com>
18153
18154         tests: be robust to ignored SIGPIPE
18155         * tests/test-select-in.sh: Consume all output.
18156         * tests/test-lseek.sh: Check correct exit status, while avoiding
18157         EPIPE.
18158
18159 2010-04-20  Simon Josefsson  <simon@josefsson.org>
18160             Bruno Haible  <bruno@clisp.org>
18161
18162         visibility: Don't use -fvisibility if it leads to a warning.
18163         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
18164         yes, don't pretend that visibility works if it leads to a warning.
18165         Reported by Mike Gran <spk121@yahoo.com>.
18166
18167 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
18168
18169         * build-aux/bootstrap: Use "git -h" for testing for supported options
18170         instead of "git --help".  The short-form option only shows a summary,
18171         and doesn't layout the full man page.  Grep for the full option name
18172         in the summary, too.
18173
18174 2010-04-19  Bruno Haible  <bruno@clisp.org>
18175
18176         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
18177         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
18178         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
18179         mention of RELOCATABLE_STRIP.
18180         Reported by Sylvain Beucler <beuc@beuc.net>.
18181
18182 2010-04-19  Bruno Haible  <bruno@clisp.org>
18183
18184         * lib/diffseq.h: Fix typo in comment.
18185         Reported by Eric Blake.
18186
18187 2010-04-19  Bruno Haible  <bruno@clisp.org>
18188
18189         ioctl: Move autoconf macro to a .m4 file.
18190         * m4/ioctl.m4: New file, extracted from modules/ioctl.
18191         * modules/ioctl (Files): Add it.
18192         (configure.ac): Simply invoke gl_FUNC_IOCTL.
18193         Reported by Ian Beckwith <ianb@erislabs.net>.
18194
18195 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
18196             Bruno Haible  <bruno@clisp.org>
18197
18198         diffseq: Accommodate use-case with abstract arrays.
18199         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
18200         is not defined.
18201         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
18202         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
18203
18204 2010-04-18  Bruno Haible  <bruno@clisp.org>
18205
18206         * doc/posix-headers/stdbool.texi: More precise wording.
18207
18208 2010-04-17  Jim Meyering  <meyering@redhat.com>
18209
18210         maint.mk: use gnu-style indentation in an embedded perl script
18211         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
18212         Rename variable: s/two/last_two_bytes/
18213
18214 2010-04-16  Eric Blake  <eblake@redhat.com>
18215
18216         test-stdbool: skip test that fails with Solaris CC
18217         * tests/test-stdbool.c (f): Skip test that causes compilation
18218         error under buggy C++ compiler.
18219         * lib/stdbool.in.h: Document the limitation.
18220         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
18221
18222         setenv: allow compilation with C++
18223         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
18224         register keyword.
18225
18226         stdint: allow test to pass with C++
18227         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
18228
18229         getopt: allow compilation with C++
18230         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18231         struct.
18232         * lib/getopt.c (_getopt_internal_r): Use correct type.
18233         Reported by Dagobert Michelson, via Joel E. Denny.
18234
18235 2010-04-16  Bruno Haible  <bruno@clisp.org>
18236
18237         Override netdb.h always.
18238         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
18239         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
18240         Reported by Ludovic Courtès <ludo@gnu.org>.
18241
18242 2010-04-15  Bruno Haible  <bruno@clisp.org>
18243
18244         openpty: Fix mistake from 2010-03-21.
18245         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
18246         Reported by Simon Josefsson.
18247
18248 2010-04-15  Eric Blake  <eblake@redhat.com>
18249
18250         test-forkpty: fix expected signature
18251         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18252         Reported by Simon Josefsson.
18253
18254 2010-04-15  Jim Meyering  <meyering@redhat.com>
18255
18256         maint.mk: texinfo_suffix_re_: correct the default regexp
18257         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
18258
18259         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
18260         make it configurable via texinfo_suffix_re_.
18261
18262 2010-04-14  Eric Blake  <eblake@redhat.com>
18263
18264         strtok_r: relax license to LGPLv2+
18265         * modules/strtok_r (License): Relax license.
18266         Reported by Matthias Bolte.
18267
18268 2010-04-14  Simon Josefsson  <simon@josefsson.org>
18269
18270         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
18271         version 1.4.4 by default instead of requiring the libgcrypt
18272         version used during build.  This makes it possible to use the
18273         application with older but still binary compatible libgcrypt
18274         versions.
18275
18276 2010-04-13  Eric Blake  <eblake@redhat.com>
18277
18278         getopt-gnu: match recent glibc fixes and posix ruling
18279         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
18280         '+' handling, when requesting extensions.
18281         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
18282         'W;' handling.
18283         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
18284         * doc/posix-functions/getopt.texi (getopt): Document this.
18285         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18286         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18287         Likewise.
18288
18289         getopt: merge bug fixes from glibc
18290         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
18291         diagnostics.  Honor '+:' correctly.  Reject ';'.
18292
18293         getopt-posix: detect MacOS bug
18294         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
18295         optind when missing a required argument.
18296         * doc/posix-functions/getopt.texi (getopt): Document the bug.
18297         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
18298         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
18299         Likewise.
18300
18301         getopt-posix: avoid spurious failure on Solaris
18302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
18303         an indicator that setting optind=1 is sufficient for reset.
18304
18305         getopt-posix: avoid spurious failure on FreeBSD
18306         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
18307         in POSIX mode, since the m4 test uses it.
18308
18309         gnulib-tool: silence warning on BSD sh
18310         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
18311
18312 2010-04-13  Jim Meyering  <meyering@redhat.com>
18313
18314         doc: users.txt: GNU patch now uses gnulib
18315         * users.txt: Add patch.
18316
18317 2010-04-12  Jim Meyering  <meyering@redhat.com>
18318
18319         maint.mk: generate more concise timing data for syntax-check rules
18320         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
18321         " done" from each line that reports a syntax-check test duration.
18322
18323 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
18324
18325         git-version-gen: use "git update-index..." rather than "git status"
18326         * build-aux/git-version-gen: Use git update-index --refresh, not
18327         "git status".  With some versions of git, "git status" would fail
18328         to update the index and result in an unwarranted "-dirty" suffix.
18329
18330 2010-04-11  Jim Meyering  <meyering@redhat.com>
18331
18332         openat: correct formatting (no semantic change)
18333         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
18334         Suggested by Bruno Haible.
18335
18336 2010-04-11  Bruno Haible  <bruno@clisp.org>
18337
18338         Stricter declaration checking in testdirs.
18339         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18340         If for_tests is true, augment AM_CPPFLAGS to define
18341         GNULIB_STRICT_CHECKING.
18342         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
18343         GNULIB_STRICT_CHECKING is defined, verify that the function is
18344         declared.
18345
18346 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
18347             Bruno Haible  <bruno@clisp.org>
18348
18349         libunistring: Improve configure output.
18350         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
18351         Don't say "consider installing GNU libunistring" when checking again
18352         with libiconv.
18353
18354 2010-04-11  Bruno Haible  <bruno@clisp.org>
18355
18356         libunistring: Correct value of $LTLIBUNISTRING.
18357         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
18358         correct the value of $LTLIBUNISTRING.
18359
18360 2010-04-11  Bruno Haible  <bruno@clisp.org>
18361
18362         havelib: Add static libraries to LIBS in the right order.
18363         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
18364         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
18365
18366 2010-04-11  Bruno Haible  <bruno@clisp.org>
18367
18368         libunistring: Detect libunistring also when it depends on libiconv.
18369         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
18370         the second AC_LIB_HAVE_LINKFLAGS invocation.
18371
18372 2010-04-11  James Youngman  <jay@gnu.org>
18373
18374         close-stream: declare local scalars to be "const"
18375         * lib/close-stream.c (close_stream): Make boolean variables const
18376         to document the fact that we set but do not change them.
18377
18378 2010-04-11  Bruno Haible  <bruno@clisp.org>
18379
18380         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
18381
18382 2010-04-11  Jim Meyering  <meyering@redhat.com>
18383
18384         maint.mk: don't include dist-check.mk
18385         * top/maint.mk: Remove bogus include directive.
18386
18387         maint.mk: improve empty-line-at-EOF check
18388         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
18389         solution, rather than tail+Perl-based one.  The latter would read
18390         a few kilobytes from the end of each file, and did not handle empty
18391         files properly.
18392
18393         maint.mk: print the elapsed time for each syntax-check rule
18394         * top/maint.mk (sc_m_rules_): Save start time in a file.
18395         (sc_z_rules_): New rules: remove temp file and print elapsed time.
18396         (local-check): Interpose the .z rules
18397
18398 2010-04-11  Jim Meyering  <meyering@redhat.com>
18399
18400         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
18401         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
18402         empty file with one that ends in an empty line.
18403
18404 2010-04-10  Bruno Haible  <bruno@clisp.org>
18405
18406         mkdir: Make it work on mingw64.
18407         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
18408         * lib/mkdir.c: Update comment.
18409         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
18410
18411 2010-04-10  Bruno Haible  <bruno@clisp.org>
18412
18413         Don't override improved macro from newer autoconf.
18414         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
18415         autoconf >= 2.62.
18416         Reported by Joel E. Denny <jdenny@clemson.edu>.
18417
18418 2010-04-10  Jim Meyering  <meyering@redhat.com>
18419
18420         maint.mk: new syntax-check rule: prohibit empty lines at end of file
18421         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
18422
18423         maint.mk: correct a diagnostic
18424         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
18425         in diagnostic; now use $prohibit.
18426
18427 2010-04-10  Bruno Haible  <address@hidden>
18428
18429         fchownat: Fix a C++ test error on Solaris 8.
18430         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
18431         the function does not exist.
18432
18433 2010-04-10  Bruno Haible  <bruno@clisp.org>
18434
18435         vasnprintf: Add more tests.
18436         * tests/test-vasnprintf-posix.c: Include <errno.h>.
18437         (test_function): Test converting an invalid wide string.
18438
18439         vasnprintf: Correct handling of unconvertible wide string arguments.
18440         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
18441         VASNPRINTF.
18442         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
18443         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
18444         smaller than the expected maximum need for the directive. Set errno to
18445         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
18446         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
18447         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
18448         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
18449         * modules/vasnprintf (Files): Add m4/printf.m4.
18450         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18451
18452 2010-04-10  Bruno Haible  <bruno@clisp.org>
18453
18454         vasnprintf: Fix crash in %ls directive.
18455         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
18456         string is passed as argument to %ls, with no precision and no width.
18457         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18458
18459 2010-04-10  Bruno Haible  <bruno@clisp.org>
18460
18461         vasnprintf: Fix multiple test failures on mingw.
18462         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
18463         _snprintf, or snwprintf, not _snwprintf.
18464
18465 2010-04-10  Bruno Haible  <bruno@clisp.org>
18466
18467         write: Fix a C++ test error on mingw.
18468         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
18469
18470 2010-04-10  Bruno Haible  <bruno@clisp.org>
18471
18472         vasnprintf test: Reduce code duplication.
18473         * tests/test-vasnprintf.c (test_function): New function, extracted from
18474         test_vasnprintf.
18475         (test_vasnprintf, test_asnprintf): Invoke it.
18476
18477 2010-04-10  Bruno Haible  <bruno@clisp.org>
18478
18479         strnlen: Fix warning in C++ mode on MacOS X.
18480         * lib/string.in.h (strnlen): Use the modern idiom.
18481         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
18482         defining strnlen as a macro already in <config.h>.
18483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18484         REPLACE_STRNLEN.
18485         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
18486         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18487
18488 2010-04-08  James Youngman  <jay@gnu.org>
18489
18490         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
18491         the example.
18492
18493 2010-04-09  Jim Meyering  <meyering@redhat.com>
18494
18495         maint.mk: print better diagnostic when there is no $(_hv_file)
18496         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
18497         announce that when $(_hv_file) (aka help-version) does not exist.
18498
18499         init.sh: run tr in the "C" locale to avoid multibyte interpretation
18500         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
18501         not try to interpret its random input bytes.  Jarno Rajahalme reported
18502         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
18503         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
18504         (mktempd_): Likewise, just in case.
18505
18506         ftruncate: add two years to projected module removal date: 2012
18507         * m4/ftruncate.m4: Adjust comments.
18508
18509         ftruncate: mark module as obsolete; even MinGW provides it, now
18510         * modules/ftruncate (Status): Obsolete.
18511         (Notice): Say that.
18512         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
18513         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
18514
18515 2010-04-08  Bruno Haible  <bruno@clisp.org>
18516
18517         Fix side effects from tests-related modules.
18518         * modules/dprintf-posix (Comment): New section.
18519         * modules/fprintf-posix (Comment): Likewise.
18520         * modules/obstack-printf-posix (Comment): Likewise.
18521         * modules/printf-posix (Comment): Likewise.
18522         * modules/snprintf-posix (Comment): Likewise.
18523         * modules/sprintf-posix (Comment): Likewise.
18524         * modules/vasnprintf-posix (Comment): Likewise.
18525         * modules/vasprintf-posix (Comment): Likewise.
18526         * modules/vdprintf-posix (Comment): Likewise.
18527         * modules/vfprintf-posix (Comment): Likewise.
18528         * modules/vprintf-posix (Comment): Likewise.
18529         * modules/vsnprintf-posix (Comment): Likewise.
18530         * modules/vsprintf-posix (Comment): Likewise.
18531         * modules/xprintf-posix (Comment): Likewise.
18532         * modules/xvasprintf-posix (Comment): Likewise.
18533         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
18534         * modules/floorf-tests (Depends-on): Likewise.
18535         * modules/round-tests (Depends-on): Likewise.
18536         * modules/roundf-tests (Depends-on): Likewise.
18537         * modules/trunc-tests (Depends-on): Likewise.
18538         * modules/truncf-tests (Depends-on): Likewise.
18539         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
18540         'fprintf-posix' module is not present.
18541         * tests/test-floorf2.c (check): Likewise.
18542         * tests/test-trunc2.c (check): Likewise.
18543         * tests/test-truncf2.c (check): Likewise.
18544         * tests/test-round2.c (equal): Likewise.
18545         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18546
18547 2010-04-07  Karl Berry  <karl@gnu.org>
18548
18549         * config/srclist.txt,
18550         * config/srclistvars.sh,
18551         * config/srclist-update: doc fixes.
18552
18553 2010-04-07  Jim Meyering  <meyering@redhat.com>
18554
18555         maint.mk: add a PATH crosschecking syntax-check rule
18556         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
18557         Useful if you use a test like the one in help-version (coreutils,
18558         diffutils, grep, gzip) that ensures $(VERSION) matches what is
18559         printed by prog --version.
18560
18561 2010-04-06  Bruno Haible  <bruno@clisp.org>
18562
18563         Fix link error on mingw.
18564         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
18565         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
18566
18567 2010-04-06  Bruno Haible  <bruno@clisp.org>
18568
18569         Assume rmdir exists.
18570         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
18571
18572 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
18573
18574         doc: update users.txt
18575         * users.txt: Add gcal.
18576
18577 2010-04-06  Jim Meyering  <meyering@redhat.com>
18578
18579         init.sh: simply unset TMPDIR rather than risking env -i
18580         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
18581         although it probably works fine on all Unix-based systems, some
18582         systems (Cygwin?) cannot tolerate a totally cleared environment.
18583         Suggestion from Eric Blake.
18584
18585 2010-04-06  Jim Meyering  <meyering@redhat.com>
18586
18587         init.sh: portability fix: use env's POSIX-specified -i option not -u
18588         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
18589         than unportable env -u.  Solaris 5.11's env lacks support for -u.
18590
18591 2010-04-05  Bruno Haible  <bruno@clisp.org>
18592
18593         btowc: Work around Cygwin 1.7.2 bug.
18594         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
18595         does not map NUL to 0.
18596         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
18597
18598 2010-04-05  Bruno Haible  <bruno@clisp.org>
18599
18600         Make the multithread modules work on Cygwin 1.7.2.
18601         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
18602         imported symbols can be declared weak, so that it returns "no" on
18603         Cygwin 1.7.2.
18604
18605 2010-04-05  Bruno Haible  <bruno@clisp.org>
18606
18607         Use the module 'strncat'.
18608         * modules/unistr/u8-strncat (Depends-on): Add strncat.
18609
18610         Tests for module 'strncat'.
18611         * modules/strncat-tests: New file.
18612         * tests/test-strncat.c: New file.
18613
18614         New module 'strncat'.
18615         * lib/string.in.h (strncat): New declaration.
18616         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
18617         * m4/strncat.m4: New file, based on m4/memchr.m4.
18618         * modules/strncat: New file.
18619         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
18620         is declared.
18621         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
18622         REPLACE_STRNCAT.
18623         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
18624         REPLACE_STRNCAT.
18625         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
18626         module.
18627         * tests/test-string-c++.cc: Check signature of strncat.
18628
18629 2010-04-05  Jim Meyering  <meyering@redhat.com>
18630
18631         xstrtoumax-tests: convert to use init.sh
18632         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
18633         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18634         Use Exit, not exit.
18635         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18636
18637         xstrtoimax-tests: convert to use init.sh
18638         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
18639         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18640         Use Exit, not exit.
18641         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18642
18643 2010-04-05  Bruno Haible  <bruno@clisp.org>
18644
18645         sys_socket: Avoid #define replacements in C++ mode.
18646         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
18647         warning to the function if possible, rather than #defining the symbol
18648         to a dysfunctional alias.
18649
18650 2010-04-05  Bruno Haible  <bruno@clisp.org>
18651
18652         fseeko: Fix C++ test error on mingw.
18653         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
18654         gl_FUNC_FSEEKO.
18655         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
18656         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
18657         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
18658         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
18659
18660 2010-04-05  Bruno Haible  <bruno@clisp.org>
18661
18662         duplocale: Improve test output.
18663         * tests/test-duplocale.c (main): Print reason for skipped test.
18664
18665 2010-04-05  Bruno Haible  <bruno@clisp.org>
18666
18667         Assume rmdir exists.
18668         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
18669         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
18670
18671 2010-04-05  Bruno Haible  <bruno@clisp.org>
18672
18673         Fix link error on Solaris 8 with cc.
18674         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
18675
18676 2010-04-05  Bruno Haible  <bruno@clisp.org>
18677
18678         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18679         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
18680
18681 2010-04-05  Bruno Haible  <bruno@clisp.org>
18682
18683         vasprintf: Update documentation.
18684         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
18685
18686 2010-04-05  Bruno Haible  <bruno@clisp.org>
18687
18688         ptsname: Improve test.
18689         * tests/test-ptsname.c (main): Also try the various master names of BSD
18690         systems.
18691
18692 2010-04-05  Bruno Haible  <bruno@clisp.org>
18693
18694         memchr: Avoid a possible C++ test error.
18695         * lib/string.in.h (memchr): Provide declaration if function is missing.
18696         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
18697         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
18698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
18699         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
18700
18701 2010-04-05  Bruno Haible  <bruno@clisp.org>
18702
18703         strtok_r: Improve idiom.
18704         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
18705         AC_LIBOBJ is used.
18706
18707 2010-04-05  Bruno Haible  <bruno@clisp.org>
18708
18709         strdup: Improve idiom.
18710         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
18711         AC_LIBOBJ is used.
18712         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
18713         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
18714         when AC_LIBOBJ is used.
18715
18716 2010-04-05  Bruno Haible  <bruno@clisp.org>
18717
18718         mbsinit, mbrtowc, wcrtomb: Improve idioms.
18719         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
18720         don't set REPLACE_MBSINIT to 1.
18721         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
18722         don't set REPLACE_MBRTOWC to 1.
18723         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
18724         exist, don't set REPLACE_MBSRTOWCS to 1.
18725         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
18726         exist, don't set REPLACE_MBSNRTOWCS to 1.
18727         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
18728         don't set REPLACE_WCRTOMB to 1.
18729         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
18730         exist, don't set REPLACE_WCSRTOMBS to 1.
18731         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
18732         exist, don't set REPLACE_WCSNRTOMBS to 1.
18733
18734 2010-04-05  Bruno Haible  <bruno@clisp.org>
18735
18736         ldexpl: Improve idiom.
18737         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
18738         make sure to set HAVE_DECL_LDEXPL to 0.
18739
18740 2010-04-05  Jim Meyering  <meyering@redhat.com>
18741
18742         xstrtol-tests: convert to use init.sh
18743         * modules/xstrtol-tests (Files): Add tests/init.sh.
18744         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18745         Use Exit, not exit.
18746         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18747
18748         atexit-tests: convert to use init.sh
18749         * modules/atexit-tests (Files): Add tests/init.sh.
18750         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18751         Use Exit, not exit.
18752         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18753
18754         init.sh: fix typo
18755         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
18756
18757         init.sh: make it easier for a test script to write to the tty, ...
18758         when using automake's parallel-tests mode.
18759         * tests/init.sh (stderr_fileno_): Define overridable variable.
18760         (warn_): New function, to use it.
18761         (fail_, skip_, framework_failure_): Use warn_.
18762
18763 2010-04-04  Bruno Haible  <bruno@clisp.org>
18764
18765         btowc: Avoid warning.
18766         * lib/btowc.c: Include <stdlib.h>.
18767         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
18768
18769 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18770             Bruno Haible  <bruno@clisp.org>
18771
18772         wchar: Port to NetBSD 1.5.
18773         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
18774         * lib/wctype.in.h (WEOF): Likewise.
18775
18776 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18777             Bruno Haible  <bruno@clisp.org>
18778
18779         Port extended stdio to NetBSD 1.5.
18780         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
18781         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
18782         older.
18783
18784 2010-04-04  Bruno Haible  <bruno@clisp.org>
18785
18786         string: Remove unused substitution.
18787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18788         HAVE_DECL_STRERROR.
18789         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
18790
18791 2010-04-04  Bruno Haible  <bruno@clisp.org>
18792
18793         strtod: Avoid a possible C++ test error.
18794         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
18795         set REPLACE_STRTOD.
18796
18797 2010-04-04  Bruno Haible  <bruno@clisp.org>
18798
18799         strerror: Update documentation.
18800         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
18801
18802 2010-04-04  Bruno Haible  <bruno@clisp.org>
18803
18804         stdio: Fix some C++ test errors on Solaris 8 with GCC.
18805         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
18806         _GL_CXXALIAS_SYS_CAST.
18807
18808 2010-04-04  Bruno Haible  <bruno@clisp.org>
18809
18810         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18811         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
18812         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
18813         REPLACE_FREXPL to 1.
18814         * doc/posix-functions/frexpl.texi: Update documentation.
18815
18816 2010-04-04  Bruno Haible  <bruno@clisp.org>
18817
18818         math: Fix some C++ test errors on Solaris 8 and Cygwin.
18819         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
18820
18821 2010-04-04  Bruno Haible  <bruno@clisp.org>
18822
18823         Implement nanosleep for native Windows.
18824         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
18825
18826 2010-04-04  Bruno Haible  <bruno@clisp.org>
18827
18828         math: Fix some C++ test errors on Solaris 8.
18829         * lib/math.in.h (truncf, trunc): Use simpler idiom.
18830
18831 2010-04-04  Bruno Haible  <bruno@clisp.org>
18832
18833         math: Fix some C++ test errors on Cygwin.
18834         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
18835         truncl): Provide declaration if the system does not have it.
18836         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
18837         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
18838         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
18839         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
18840         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
18841         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
18842         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
18843         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
18844         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
18845         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
18846         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
18847         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
18848         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
18849         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
18850         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
18851         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
18852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
18853         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
18854         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
18855         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
18856         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
18857         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
18858
18859 2010-04-04  Bruno Haible  <bruno@clisp.org>
18860
18861         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
18862         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
18863         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
18864         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
18865         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
18866         * m4/isinf.m4 (gl_ISINF): Likewise.
18867         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18868
18869 2010-04-04  Bruno Haible  <bruno@clisp.org>
18870
18871         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
18872         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18873
18874 2010-04-04  Bruno Haible  <bruno@clisp.org>
18875
18876         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
18877         * modules/tmpfile (configure.ac): Update.
18878
18879         tmpfile: Fix C++ test error on mingw.
18880         * lib/stdio.in.h (tmpfile): New declaration.
18881         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
18882         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
18883         * modules/tmpfile (Depends-on): Add stdio.
18884         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18885         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
18886         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
18887         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
18888         REPLACE_TMPFILE.
18889         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
18890
18891 2010-04-04  Bruno Haible  <bruno@clisp.org>
18892
18893         ioctl: Fix C++ test error on mingw.
18894         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
18895         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
18896         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
18897
18898 2010-04-03  Bruno Haible  <bruno@clisp.org>
18899
18900         wcwidth: Fix C++ test error on mingw.
18901         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
18902         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
18903         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
18904
18905 2010-04-03  Bruno Haible  <bruno@clisp.org>
18906
18907         nanosleep: Fix C++ test error on mingw.
18908         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
18909         * lib/time.in.h (nanosleep): Use modern idiom.
18910         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
18911         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
18912         REPLACE_NANOSLEEP to 1.
18913         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
18914         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
18915
18916 2010-04-03  Bruno Haible  <bruno@clisp.org>
18917
18918         strptime: Fix C++ test error on mingw.
18919         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
18920         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
18921         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
18922         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
18923         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
18924         not REPLACE_STRPTIME.
18925         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
18926         REPLACE_STRPTIME.
18927
18928 2010-04-03  Bruno Haible  <bruno@clisp.org>
18929
18930         timegm: Fix C++ test error on mingw.
18931         * lib/time.in.h (timegm): Use modern idiom.
18932         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
18933         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
18934         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
18935         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
18936
18937 2010-04-03  Bruno Haible  <bruno@clisp.org>
18938
18939         timegm: Assume declaration if function exists.
18940         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
18941         if it exists. Don't clobber ac_cv_func_timegm.
18942
18943 2010-04-03  Bruno Haible  <bruno@clisp.org>
18944
18945         time_r: Fix C++ test error on mingw.
18946         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
18947         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
18948         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
18949         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
18950         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
18951
18952 2010-04-03  Bruno Haible  <bruno@clisp.org>
18953
18954         time_r: Minor updates.
18955         * modules/time_r (Description): Mention the provided functions.
18956         * lib/time_r.c: Don't include <string.h>.
18957         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
18958         * doc/posix-functions/localtime_r.texi: Likewise.
18959
18960 2010-04-03  Bruno Haible  <bruno@clisp.org>
18961
18962         time: Fix regression introduced on 2010-03-08.
18963         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
18964         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
18965
18966 2010-04-03  Jim Meyering  <meyering@redhat.com>
18967
18968         maint.mk: don't silently disable project-specific syntax-check rules
18969         * top/maint.mk (_prohibit_regexp): Define, to help people realize
18970         that they need to convert their project-specific syntax-check rules
18971         to use the new _sc_search_regexp.
18972
18973 2010-04-03  Bruno Haible  <bruno@clisp.org>
18974
18975         fchdir: Fix regression introduced on 2010-03-08.
18976         * lib/unistd.in.h (fchdir): Fix declaration.
18977         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
18978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
18979         REPLACE_FCHDIR.
18980         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
18981         REPLACE_FCHDIR.
18982
18983 2010-04-03  Bruno Haible  <bruno@clisp.org>
18984
18985         getpagesize: Fix C++ test error on mingw.
18986         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
18987         system does not declare the function.
18988         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
18989         declared.
18990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18991         HAVE_DECL_GETPAGESIZE.
18992         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
18993
18994 2010-04-03  Bruno Haible  <bruno@clisp.org>
18995
18996         stdio: Make C++ tests work on mingw.
18997         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
18998         does not declare the function.
18999
19000 2010-04-03  Bruno Haible  <bruno@clisp.org>
19001
19002         ftello: Fix C++ test error on mingw.
19003         * lib/stdio.in.h (ftello): Use modern idiom.
19004         * lib/ftello.c (ftello): Renamed from rpl_ftello.
19005         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
19006         is missing and that it needs to be replaced.
19007         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
19008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
19009         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
19010
19011 2010-04-03  Bruno Haible  <bruno@clisp.org>
19012
19013         fseeko: Fix C++ test error on mingw.
19014         * lib/stdio.in.h (fseeko): Use modern idiom.
19015         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
19016         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
19017         is missing and that it needs to be replaced.
19018         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
19019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
19020         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
19021
19022 2010-04-03  Bruno Haible  <bruno@clisp.org>
19023
19024         mkstemp: Fix C++ test error on mingw.
19025         * lib/stdlib.in.h (mkstemp): Use modern idiom.
19026         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
19027         function is missing and that it needs to be replaced.
19028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19029         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
19030
19031 2010-04-03  Bruno Haible  <bruno@clisp.org>
19032
19033         stpncpy: Fix C++ test error on mingw.
19034         * lib/string.in.h (stpncpy): Use modern idiom.
19035         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
19036         function is missing and that it needs to be replaced.
19037         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19038         REPLACE_STPNCPY.
19039         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
19040
19041 2010-04-03  Bruno Haible  <bruno@clisp.org>
19042
19043         sys_stat: Fix C++ test error on mingw.
19044         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
19045         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
19046
19047 2010-04-03  Bruno Haible  <bruno@clisp.org>
19048
19049         pty: Update doc.
19050         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
19051
19052 2010-04-03  Bruno Haible  <bruno@clisp.org>
19053
19054         unistd: Fix C++ test error on mingw.
19055         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
19056
19057 2010-04-03  Bruno Haible  <bruno@clisp.org>
19058
19059         Update doc regarding mingw.
19060         * doc/glibc-functions/openpty.texi: Update regarding mingw.
19061         * doc/glibc-functions/login_tty.texi: Likewise.
19062         * doc/glibc-functions/forkpty.texi: Likewise.
19063
19064 2010-04-03  Bruno Haible  <bruno@clisp.org>
19065
19066         stdlib: Avoid compilation failure of c-strtold on mingw.
19067         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
19068
19069 2010-04-03  Bruno Haible  <bruno@clisp.org>
19070
19071         locale: Make C++ tests work on Cygwin and mingw.
19072         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
19073         cannot provide the function.
19074         Reported by Simon Josefsson.
19075
19076 2010-04-03  Bruno Haible  <bruno@clisp.org>
19077
19078         localename: Port to MacOS X 10.6.
19079         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
19080         memory layout of the locales in MacOS X 10.6 as well.
19081         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
19082
19083 2010-04-02  Bruno Haible  <bruno@clisp.org>
19084
19085         gnulib-tool: Ensure that long-running tests are executed last.
19086         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
19087         running tests after the one for the other tests.
19088
19089 2010-04-02  Bruno Haible  <bruno@clisp.org>
19090
19091         gnulib-tool: Ensure the tests in the main directory are executed first.
19092         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
19093         start with the current directory.
19094
19095 2010-04-02  Bruno Haible  <bruno@clisp.org>
19096
19097         Tests for module 'havelib', moved here from GNU gettext.
19098         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
19099         modifications.
19100         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
19101         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
19102         with modifications.
19103         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
19104         modifications.
19105         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
19106         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
19107         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
19108         with modifications.
19109         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
19110         with modifications.
19111         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
19112         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
19113         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
19114         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
19115         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
19116         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
19117         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
19118         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
19119         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
19120         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
19121         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
19122         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
19123         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
19124         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
19125         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
19126         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
19127         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
19128         with modifications.
19129         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
19130         with modifications.
19131         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
19132         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
19133         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
19134         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
19135         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
19136         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
19137         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
19138         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
19139         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
19140         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
19141         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
19142         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
19143         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
19144         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
19145         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
19146         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
19147         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
19148         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
19149         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
19150         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
19151         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
19152         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
19153         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
19154         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
19155         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
19156         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
19157         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
19158         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
19159         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
19160         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
19161         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
19162         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
19163         * tests/havelib/rpathx/rpathx.c: New file, from
19164         gettext/autoconf-lib-link.
19165         * tests/havelib/rpathx/Makefile.am: New file, from
19166         gettext/autoconf-lib-link.
19167         * tests/havelib/rpathx/configure.ac: New file, from
19168         gettext/autoconf-lib-link with modifications.
19169         * tests/havelib/rpathy/rpathy.c: New file, from
19170         gettext/autoconf-lib-link.
19171         * tests/havelib/rpathy/Makefile.am: New file, from
19172         gettext/autoconf-lib-link.
19173         * tests/havelib/rpathy/configure.ac: New file, from
19174         gettext/autoconf-lib-link with modifications.
19175         * tests/havelib/rpathz/rpathz.c: New file, from
19176         gettext/autoconf-lib-link.
19177         * tests/havelib/rpathz/Makefile.am: New file, from
19178         gettext/autoconf-lib-link.
19179         * tests/havelib/rpathz/configure.ac: New file, from
19180         gettext/autoconf-lib-link with modifications.
19181         * tests/havelib/rpathlx/usex.c: New file, from
19182         gettext/autoconf-lib-link.
19183         * tests/havelib/rpathlx/Makefile.am: New file, from
19184         gettext/autoconf-lib-link.
19185         * tests/havelib/rpathlx/configure.ac: New file, from
19186         gettext/autoconf-lib-link with modifications.
19187         * tests/havelib/rpathly/usey.c: New file, from
19188         gettext/autoconf-lib-link.
19189         * tests/havelib/rpathly/Makefile.am: New file, from
19190         gettext/autoconf-lib-link.
19191         * tests/havelib/rpathly/configure.ac: New file, from
19192         gettext/autoconf-lib-link with modifications.
19193         * tests/havelib/rpathlz/usez.c: New file, from
19194         gettext/autoconf-lib-link.
19195         * tests/havelib/rpathlz/Makefile.am: New file, from
19196         gettext/autoconf-lib-link.
19197         * tests/havelib/rpathlz/configure.ac: New file, from
19198         gettext/autoconf-lib-link with modifications.
19199         * tests/havelib/rpathlyx/usey.c: New file, from
19200         gettext/autoconf-lib-link.
19201         * tests/havelib/rpathlyx/Makefile.am: New file, from
19202         gettext/autoconf-lib-link.
19203         * tests/havelib/rpathlyx/configure.ac: New file, from
19204         gettext/autoconf-lib-link with modifications.
19205         * tests/havelib/rpathlzyx/usez.c: New file, from
19206         gettext/autoconf-lib-link.
19207         * tests/havelib/rpathlzyx/Makefile.am: New file, from
19208         gettext/autoconf-lib-link.
19209         * tests/havelib/rpathlzyx/configure.ac: New file, from
19210         gettext/autoconf-lib-link with modifications.
19211         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
19212         with modifications.
19213
19214 2010-04-02  Bruno Haible  <bruno@clisp.org>
19215
19216         gnulib-tool: Create distributed built sources also for the tests.
19217         * gnulib-tool (func_create_testdir): Also generate distributed built
19218         sources in the tests directory.
19219
19220 2010-04-02  Bruno Haible  <bruno@clisp.org>
19221
19222         gnulib-tool: Obey user's environment variables.
19223         * gnulib-tool (func_create_testdir): When creating built sources,
19224         respect the environment variables for autoconf, automake, etc. given by
19225         the user.
19226
19227 2010-04-02  Bruno Haible  <bruno@clisp.org>
19228
19229         gnulib-tool: Provide the value of --m4-base to modules.
19230         * gnulib-tool (func_import, func_create_testdir): Emit a definition
19231         of gl_m4_base.
19232
19233 2010-04-02  Eric Blake  <eblake@redhat.com>
19234
19235         maint.mk: fix some fallout
19236         * NEWS: Document the incompatible change, and its effect on cfg.mk.
19237         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
19238
19239 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19240
19241         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
19242         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
19243         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
19244         (sc_cast_of_x_alloc_return_value): Likewise.
19245         (sc_cast_of_alloca_return_value): Likewise.
19246         (sc_space_tab): Likewise.
19247         (sc_prohibit_atoi_atof): Likewise.
19248         (sc_prohibit_magic_number_exit): Likewise.
19249         (sc_error_exit_success): Likewise.
19250         (sc_file_system): Likewise.
19251         (sc_prohibit_have_config_h): Likewise.
19252         (sc_require_config_h): Likewise.
19253         (sc_prohibit_HAVE_MBRTOWC): Likewise.
19254         (sc_obsolete_symbols): Likewise.
19255         (sc_changelog): Likewise.
19256         (sc_program_name): Likewise.
19257         (sc_the_the): Likewise.
19258         (sc_trailing_blank): Likewise.
19259         (sc_two_space_separator_in_usage): Likewise.
19260         (sc_useless_cpp_parens): Likewise.
19261         (sc_GPL_version): Likewise.
19262         (sc_GFDL_version): Likewise.
19263         (sc_texinfo_acronym): Likewise.
19264         (sc_prohibit_cvs_keyword): Likewise.
19265         (sc_prohibit_stat_st_blocks): Likewise.
19266         (sc_prohibit_S_IS_definition): Likewise.
19267         (sc_redundant_const): Likewise.
19268         (sc_makefile_TAB_only_indentation): Likewise.
19269         (sc_m4_quote_check): Likewise.
19270         (sc_makefile_path_separator_check): Likewise.
19271         (sc_copyright_check): Likewise.
19272         (sc_Wundef_boolean): Likewise.
19273         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19274
19275         maint.mk: match 0 or more whitespace-before-function-call '('
19276         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
19277         that have zero or two-and-more spaces between the function name
19278         and the open parenthesis.
19279         (sc_error_message_warn_fatal): Likewise.
19280         (sc_error_message_uppercase): Likewise.
19281         (sc_error_message_period): Likewise.
19282
19283 2010-03-31  Eric Blake  <eblake@redhat.com>
19284
19285         maint.mk: check for [ as well as test
19286         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
19287         Based on a libvirt report by Matthias Bolte.
19288
19289         gnumakefile: don't squelch _version output
19290         * top/GNUmakefile (_version): Create one-shot dependency rather
19291         than using $(shell) when version must be regenerated.
19292         (_autoreconf): Run verbosely, by default.
19293
19294         sys_time: avoid compiler warnings
19295         * lib/sys_time.in.h (includes): Ensure gcc pragma is
19296         unconditional, fixing regression from 2010-03-29.
19297         Reported by Simon Josefsson.
19298
19299 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
19300
19301         maint.mk: s/_header_without_use/_sc_header_without_use/
19302         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
19303         (sc_prohibit_assert_without_use): Use the new name.
19304         (sc_prohibit_close_stream_without_use): Likewise.
19305         (sc_prohibit_getopt_without_use): Likewise.
19306         (sc_prohibit_quotearg_without_use): Likewise.
19307         (sc_prohibit_quote_without_use): Likewise.
19308         (sc_prohibit_long_options_without_use): Likewise.
19309         (sc_prohibit_inttostr_without_use): Likewise.
19310         (sc_prohibit_ignore_value_without_use): Likewise.
19311         (sc_prohibit_error_without_use): Likewise.
19312         (sc_prohibit_xalloc_without_use): Likewise.
19313         (sc_prohibit_hash_without_use): Likewise.
19314         (sc_prohibit_hash_pjw_without_use): Likewise.
19315         (sc_prohibit_safe_read_without_use): Likewise.
19316         (sc_prohibit_argmatch_without_use): Likewise.
19317         (sc_prohibit_canonicalize_without_use): Likewise.
19318         (sc_prohibit_root_dev_ino_without_use): Likewise.
19319         (sc_prohibit_openat_without_use): Likewise.
19320         (sc_prohibit_c_ctype_without_use): Likewise.
19321         (sc_prohibit_signal_without_use): Likewise.
19322         (sc_prohibit_intprops_without_use): Likewise.
19323
19324 2010-03-30  Eric Blake  <eblake@redhat.com>
19325
19326         maint: improve module indicators
19327         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
19328         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
19329         columns, and avoid extra macro expansion.
19330
19331         fdopendir: work around FreeBSD bug
19332         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
19333         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
19334         * modules/dirent (Makefile.am): Substitute it.
19335         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
19336         declaration.
19337         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
19338         fix.
19339         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19340
19341 2010-03-29  Bruno Haible  <bruno@clisp.org>
19342
19343         Emit #pragma system_header after the inclusion guard, not before.
19344         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
19345         guard that spans the entire file, not before. This enables an
19346         optimization in GCC's preprocessor.
19347         * lib/ctype.in.h: Likewise.
19348         * lib/dirent.in.h: Likewise.
19349         * lib/errno.in.h: Likewise.
19350         * lib/float.in.h: Likewise.
19351         * lib/getopt.in.h: Likewise.
19352         * lib/iconv.in.h: Likewise.
19353         * lib/langinfo.in.h: Likewise.
19354         * lib/locale.in.h: Likewise.
19355         * lib/math.in.h: Likewise.
19356         * lib/netdb.in.h: Likewise.
19357         * lib/netinet_in.in.h: Likewise.
19358         * lib/pty.in.h: Likewise.
19359         * lib/sched.in.h: Likewise.
19360         * lib/se-selinux.in.h: Likewise.
19361         * lib/search.in.h: Likewise.
19362         * lib/spawn.in.h: Likewise.
19363         * lib/stdarg.in.h: Likewise.
19364         * lib/stdint.in.h: Likewise.
19365         * lib/string.in.h: Likewise.
19366         * lib/strings.in.h: Likewise.
19367         * lib/sys_file.in.h: Likewise.
19368         * lib/sys_ioctl.in.h: Likewise.
19369         * lib/sys_time.in.h: Likewise.
19370         * lib/sys_times.in.h: Likewise.
19371         * lib/sys_utsname.in.h: Likewise.
19372         * lib/sys_wait.in.h: Likewise.
19373         * lib/sysexits.in.h: Likewise.
19374         * lib/wctype.in.h: Likewise.
19375
19376 2010-03-28  James Youngman  <jay@gnu.org>
19377
19378         save-cwd: don't leak a file descriptor when the caller execs.
19379         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
19380         saved file descriptor.
19381         * modules/save-cwd (Depends-on): Depend on cloexec.
19382
19383 2010-03-29  Bruno Haible  <bruno@clisp.org>
19384
19385         Remove vestiges of fts-lgpl module.
19386         * lib/fts_.h: Assume GNULIB_FTS is 1.
19387         * lib/fts.c: Likewise.
19388         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19389
19390 2010-03-28  Bruno Haible  <bruno@clisp.org>
19391
19392         Fix definition of tests witness macro.
19393         * gnulib-tool (func_import): Fix definition of witness macro.
19394
19395 2010-03-28  Bruno Haible  <bruno@clisp.org>
19396
19397         Fix ioctl's protoype on glibc systems.
19398         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
19399         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
19400         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
19401         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
19402         signature. If not, arrange to replace the ioctl function.
19403         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19404         REPLACE_IOCTL.
19405         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
19406         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
19407         Reported by Ludovic Courtès <ludo@gnu.org>.
19408
19409 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
19410
19411         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
19412         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
19413         made it so grep -r --include=GLOB* ... did not work.
19414
19415 2010-03-26  Jim Meyering  <meyering@redhat.com>
19416             Eric Blake  <eblake@redhat.com>
19417
19418         maint.mk: prohibit use of test's -o and -a operators
19419         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
19420
19421 2010-03-28  Bruno Haible  <bruno@clisp.org>
19422
19423         Remove unused GNULIB_XYZ macro definitions.
19424         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
19425         invocation.
19426
19427 2010-03-28  Bruno Haible  <bruno@clisp.org>
19428
19429         Mark privileged tests modules.
19430         * modules/idpriv-drop-tests (Status): New section.
19431         * modules/idpriv-droptemp-tests (Status): New section.
19432
19433 2010-03-28  Bruno Haible  <bruno@clisp.org>
19434
19435         Split C++ tests into separate tests modules.
19436         * modules/dirent-c++-tests: New file, extracted from
19437         modules/dirent-tests.
19438         * modules/dirent-tests: Depend on it.
19439         * modules/fcntl-h-c++-tests: New file, extracted from
19440         modules/fcntl-h-tests.
19441         * modules/fcntl-h-tests: Depend on it.
19442         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
19443         * modules/glob-tests: Depend on it.
19444         * modules/iconv-h-c++-tests: New file, extracted from
19445         modules/iconv-h-tests.
19446         * modules/iconv-h-tests: Depend on it.
19447         * modules/langinfo-c++-tests: New file, extracted from
19448         modules/langinfo-tests.
19449         * modules/langinfo-tests: Depend on it.
19450         * modules/locale-c++-tests: New file, extracted from
19451         modules/locale-tests.
19452         * modules/locale-tests: Depend on it.
19453         * modules/math-c++-tests: New file, extracted from modules/math-tests.
19454         * modules/math-tests: Depend on it.
19455         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
19456         * modules/pty-tests: Depend on it.
19457         * modules/search-c++-tests: New file, extracted from
19458         modules/search-tests.
19459         * modules/search-tests: Depend on it.
19460         * modules/signal-c++-tests: New file, extracted from
19461         modules/signal-tests.
19462         * modules/signal-tests: Depend on it.
19463         * modules/spawn-c++-tests: New file, extracted from
19464         modules/spawn-tests.
19465         * modules/spawn-tests: Depend on it.
19466         * modules/stdio-c++-tests: New file, extracted from
19467         modules/stdio-tests.
19468         * modules/stdio-tests: Depend on it.
19469         * modules/stdlib-c++-tests: New file, extracted from
19470         modules/stdlib-tests.
19471         * modules/stdlib-tests: Depend on it.
19472         * modules/string-c++-tests: New file, extracted from
19473         modules/string-tests.
19474         * modules/string-tests: Depend on it.
19475         * modules/sys_ioctl-c++-tests: New file, extracted from
19476         modules/sys_ioctl-tests.
19477         * modules/sys_ioctl-tests: Depend on it.
19478         * modules/sys_select-c++-tests: New file, extracted from
19479         modules/sys_select-tests.
19480         * modules/sys_select-tests: Depend on it.
19481         * modules/sys_socket-c++-tests: New file, extracted from
19482         modules/sys_socket-tests.
19483         * modules/sys_socket-tests: Depend on it.
19484         * modules/sys_stat-c++-tests: New file, extracted from
19485         modules/sys_stat-tests.
19486         * modules/sys_stat-tests: Depend on it.
19487         * modules/sys_time-c++-tests: New file, extracted from
19488         modules/sys_time-tests.
19489         * modules/sys_time-tests: Depend on it.
19490         * modules/time-c++-tests: New file, extracted from modules/time-tests.
19491         * modules/time-tests: Depend on it.
19492         * modules/unistd-c++-tests: New file, extracted from
19493         modules/unistd-tests.
19494         * modules/unistd-tests: Depend on it.
19495         * modules/wchar-c++-tests: New file, extracted from
19496         modules/wchar-tests.
19497         * modules/wchar-tests: Depend on it.
19498         * modules/wctype-c++-tests: New file, extracted from
19499         modules/wctype-tests.
19500         * modules/wctype-tests: Depend on it.
19501         Reported by Simon Josefsson.
19502
19503 2010-03-28  Bruno Haible  <bruno@clisp.org>
19504
19505         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
19506         * gnulib-tool (func_exists_module): New function, extracted from
19507         func_verify_module.
19508         (func_verify_module): Use it.
19509         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
19510         'foo' only if 'foo' exists.
19511         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
19512         module.
19513
19514 2010-03-28  Bruno Haible  <bruno@clisp.org>
19515
19516         gnulib-tool: Add support for special categories of tests.
19517         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
19518         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
19519         (func_usage): Document them.
19520         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
19521         inc_unportable_tests, inc_all_tests): New variables.
19522         (func_acceptable): Consider these variables.
19523         (func_modules_transitive_closure): Make it work when the 'Status' field
19524         consists of multiple words.
19525         (func_import): Store and restore the values of inc_cxx_tests,
19526         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
19527         inc_all_tests in gnulib-comp.m4.
19528         (func_create_testdir): Set inc_all_tests to true.
19529         * doc/gnulib.texi (Extra tests modules): New section.
19530         Suggested by Jim Meyering.
19531
19532 2010-03-28  Bruno Haible  <bruno@clisp.org>
19533
19534         ansi-c++-opt: Allow turning off the C++ build by default.
19535         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
19536         gl_CXX_CHOICE_DEFAULT_NO is defined.
19537         Requested by Eric Blake.
19538
19539 2010-03-28  Bruno Haible  <bruno@clisp.org>
19540
19541         unistd: Avoid #define replacements in C++ mode.
19542         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
19543         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
19544         setsockopt, shutdown, select): In C++, attach a warning to the function
19545         if possible, rather than #defining the symbol to a dysfunctional alias.
19546         Reported by John W. Eaton <jwe@gnu.org>.
19547
19548 2010-03-28  Bruno Haible  <bruno@clisp.org>
19549
19550         Fix link errors on mingw.
19551         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
19552         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
19553         $(LIBSOCKET).
19554         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
19555         $(LIBSOCKET).
19556
19557 2010-03-28  Bruno Haible  <bruno@clisp.org>
19558             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19559
19560         lib-ignore: Determine different options for different compilers.
19561         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
19562         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
19563         Add comments.
19564         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
19565         * NEWS: Mention the change.
19566
19567 2010-03-27  Bruno Haible  <bruno@clisp.org>
19568
19569         Remove unused GNULIB_XYZ macro definitions.
19570         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
19571         * modules/fseek (configure.ac): Likewise.
19572         * modules/ioctl (configure.ac): Likewise.
19573         * modules/open (configure.ac): Likewise.
19574         * modules/stdlib-safer (configure.ac): Likewise.
19575
19576 2010-03-27  Bruno Haible  <bruno@clisp.org>
19577
19578         Add a remark about certain modules.
19579         * modules/malloc (Comment): New section.
19580         * modules/realloc (Comment): Likewise.
19581         * modules/sigpipe (Comment): Likewise.
19582
19583 2010-03-27  Bruno Haible  <bruno@clisp.org>
19584
19585         Resolve conflict between the two kinds of module indicators.
19586         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
19587         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
19588         * modules/canonicalize (configure.ac): Invoke
19589         gl_MODULE_INDICATOR_FOR_TESTS.
19590         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
19591         GNULIB_XYZ.
19592         * tests/test-dirent-c++.cc: Likewise.
19593         * tests/test-dirent-safer.c: Likewise.
19594         * tests/test-dup2.c: Likewise.
19595         * tests/test-fchdir.c: Likewise.
19596         * tests/test-fcntl-h-c++.cc: Likewise.
19597         * tests/test-getopt.c: Likewise.
19598         * tests/test-getopt.h: Likewise.
19599         * tests/test-langinfo-c++.cc: Likewise.
19600         * tests/test-locale-c++.cc: Likewise.
19601         * tests/test-math-c++.cc: Likewise.
19602         * tests/test-pty-c++.cc: Likewise.
19603         * tests/test-search-c++.cc: Likewise.
19604         * tests/test-signal-c++.cc: Likewise.
19605         * tests/test-spawn-c++.cc: Likewise.
19606         * tests/test-stdio-c++.cc: Likewise.
19607         * tests/test-stdlib-c++.cc: Likewise.
19608         * tests/test-string-c++.cc: Likewise.
19609         * tests/test-sys_ioctl-c++.cc: Likewise.
19610         * tests/test-sys_select-c++.cc: Likewise.
19611         * tests/test-sys_socket-c++.cc: Likewise.
19612         * tests/test-sys_stat-c++.cc: Likewise.
19613         * tests/test-sys_time-c++.cc: Likewise.
19614         * tests/test-time-c++.cc: Likewise.
19615         * tests/test-unistd-c++.cc: Likewise.
19616         * tests/test-wchar-c++.cc: Likewise.
19617         * tests/uninorm/test-u8-nfc.c: Likewise.
19618         * tests/uninorm/test-u8-nfd.c: Likewise.
19619         * tests/uninorm/test-u8-nfkc.c: Likewise.
19620         * tests/uninorm/test-u8-nfkd.c: Likewise.
19621         * tests/uninorm/test-u16-nfc.c: Likewise.
19622         * tests/uninorm/test-u16-nfd.c: Likewise.
19623         * tests/uninorm/test-u16-nfkc.c: Likewise.
19624         * tests/uninorm/test-u16-nfkd.c: Likewise.
19625         * tests/uninorm/test-u32-nfc.c: Likewise.
19626         * tests/uninorm/test-u32-nfc-big.c: Likewise.
19627         * tests/uninorm/test-u32-nfd.c: Likewise.
19628         * tests/uninorm/test-u32-nfd-big.c: Likewise.
19629         * tests/uninorm/test-u32-nfkc.c: Likewise.
19630         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
19631         * tests/uninorm/test-u32-nfkd.c: Likewise.
19632         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
19633         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19634
19635 2010-03-27  Bruno Haible  <bruno@clisp.org>
19636
19637         Distinguish two kinds of module indicators.
19638         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
19639         gl_MODULE_INDICATOR.
19640         (gl_MODULE_INDICATOR): New macro.
19641         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19642         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
19643         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19644         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19645         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19646         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19647         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19648         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19649         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19650         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19651         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19652         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19653         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19654         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19655         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19656         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19657         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19658         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19659         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19660         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19661         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19662         * modules/cloexec (configure.ac): Likewise.
19663         * modules/getopt-gnu (configure.ac): Likewise.
19664         * modules/uninorm/u8-normalize (configure.ac): Likewise.
19665         * modules/uninorm/u16-normalize (configure.ac): Likewise.
19666         * modules/uninorm/u32-normalize (configure.ac): Likewise.
19667         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
19668
19669 2010-03-27  Bruno Haible  <bruno@clisp.org>
19670
19671         New module description field 'Comment'.
19672         * gnulib-tool: New option --extract-comment.
19673         (func_usage): Document it.
19674         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
19675         (func_get_comment): New function.
19676         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
19677
19678 2010-03-27  Bruno Haible  <bruno@clisp.org>
19679
19680         Addendum to 2010-02-07 commit.
19681         * gnulib-tool (func_usage): Document --extract-applicability option.
19682
19683 2010-03-27  Bruno Haible  <bruno@clisp.org>
19684
19685         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
19686         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
19687         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
19688         rather than link errors.
19689
19690 2010-03-27  Bruno Haible  <bruno@clisp.org>
19691
19692         Avoid side effects from tests-related modules on the compilation of lib.
19693         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
19694         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
19695         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
19696         parameter. Emit into AM_CPPFLAGS a definition of the designated C
19697         macro.
19698         (func_import): Define a witness macro. Assign it a value that depends
19699         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
19700         tests-related modules.
19701         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
19702         Reported by Jim Meyering.
19703
19704 2010-03-27  Bruno Haible  <bruno@clisp.org>
19705
19706         Factorize common .m4 code.
19707         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
19708         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
19709         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
19710         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
19711         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19712         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
19713         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
19714         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19715         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19716         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19717         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
19718         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19719         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19720         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19721         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19722         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
19723         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19724         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19725         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19726         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
19727         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
19728         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19729         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19730         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19731         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19732         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19733         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
19734         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
19735         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
19736         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19737         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19738         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19739
19740 2010-03-27  Bruno Haible  <bruno@clisp.org>
19741
19742         Fix a compilation error on Cygwin with g++ >= 4.3.
19743         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
19744         if it is undefined or if we alias it to chmod.
19745         (lstat): Don't warn about the use of this function if it is undefined
19746         or if we alias it to stat.
19747         Reported by Simon Josefsson.
19748
19749 2010-03-27  Bruno Haible  <bruno@clisp.org>
19750
19751         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
19752         * modules/getlogin (configure.ac): Update.
19753
19754         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
19755         * modules/getlogin_r (configure.ac): Update.
19756
19757         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
19758         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
19759         * modules/inet_ntop (configure.ac): Update.
19760
19761         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
19762         * modules/inet_pton (configure.ac): Update.
19763
19764         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
19765         * modules/mbslen (configure.ac): Update.
19766
19767         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
19768         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
19769         * modules/forkpty (configure.ac): Update.
19770         * modules/openpty (configure.ac): Update.
19771
19772 2010-03-26  Simon Josefsson  <simon@josefsson.org>
19773
19774         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
19775         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
19776
19777 2010-03-25  Eric Blake  <eblake@redhat.com>
19778
19779         maint: use pragma consistently across replacement headers
19780         * lib/ctype.in.h (system_header): Hoist for consistent placement.
19781         * lib/dirent.in.h (system_header): Likewise.
19782         * lib/errno.in.h (system_header): Likewise.
19783         * lib/float.in.h (system_header): Likewise.
19784         * lib/getopt.in.h (system_header): Likewise.
19785         * lib/iconv.in.h (system_header): Likewise.
19786         * lib/inttypes.in.h (system_header): Likewise.
19787         * lib/langinfo.in.h (system_header): Likewise.
19788         * lib/locale.in.h (system_header): Likewise.
19789         * lib/math.in.h (system_header): Likewise.
19790         * lib/netdb.in.h (system_header): Likewise.
19791         * lib/netinet_in.in.h (system_header): Likewise.
19792         * lib/pty.in.h (system_header): Likewise.
19793         * lib/sched.in.h (system_header): Likewise.
19794         * lib/se-selinux.in.h (system_header): Likewise.
19795         * lib/search.in.h (system_header): Likewise.
19796         * lib/spawn.in.h (system_header): Likewise.
19797         * lib/stdarg.in.h (system_header): Likewise.
19798         * lib/stdint.in.h (system_header): Likewise.
19799         * lib/string.in.h (system_header): Likewise.
19800         * lib/strings.in.h (system_header): Likewise.
19801         * lib/sys_file.in.h (system_header): Likewise.
19802         * lib/sys_ioctl.in.h (system_header): Likewise.
19803         * lib/sys_socket.in.h (system_header): Likewise.
19804         * lib/sys_times.in.h (system_header): Likewise.
19805         * lib/sys_utsname.in.h (system_header): Likewise.
19806         * lib/sys_wait.in.h (system_header): Likewise.
19807         * lib/sysexits.in.h (system_header): Likewise.
19808         * lib/unistd.in.h (system_header): Likewise.
19809         * lib/wctype.in.h (system_header): Likewise.
19810
19811         arpa/inet: fix mingw compilation warning
19812         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
19813         Reported by Matthew Bolte.
19814
19815 2010-03-25  Bruno Haible  <bruno@clisp.org>
19816
19817         Avoid collision between gnulib wrapper and libintl wrapper.
19818         * lib/printf.c (printf): Don't define if a printf wrapper is already
19819         defined in intl/printf.c.
19820         Reported by Michel Boaventura <michel@michelboaventura.com>.
19821
19822 2010-03-25  Bruno Haible  <bruno@clisp.org>
19823
19824         Use ANSI C.
19825         * lib/readutmp.h (getutent): Provide ANSI C prototype.
19826
19827 2010-03-25  Bruno Haible  <bruno@clisp.org>
19828
19829         Minor formatting changes.
19830         * lib/acosl.c: Insert space before function argument list.
19831         * lib/argz.c: Likewise.
19832         * lib/asinl.c: Likewise.
19833         * lib/expl.c: Likewise.
19834         * lib/gen-uni-tables.c: Likewise.
19835         * lib/gettext.h: Likewise.
19836         * lib/glthread/lock.h: Likewise.
19837         * lib/tanl.c: Likewise.
19838         * lib/uniname/uniname.c: Likewise.
19839         * tests/test-idpriv-drop.c: Likewise.
19840         * tests/test-idpriv-droptemp.c: Likewise.
19841         * tests/test-lock.c: Likewise.
19842         * tests/test-tls.c: Likewise.
19843         * lib/argp-help.c: Insert space before function-like macro argument
19844         list.
19845         * lib/memcmp.c: Likewise.
19846         * tests/test-base64.c: Likewise.
19847         * lib/localename.c: Insert space before sizeof's argument list.
19848         * lib/safe-alloc.h: Likewise.
19849         * lib/file-set.h: Insert space before macro argument list.
19850         * tests/test-argp.c: Likewise.
19851         * lib/argp-namefrob.h: Insert space before function parameter list.
19852         * lib/getaddrinfo.c: Likewise.
19853         * lib/netdb.in.h: Likewise.
19854         * lib/parse-duration.h: Likewise.
19855         * lib/parse-duration.c: Likewise.
19856         * lib/poll.c: Likewise.
19857         * lib/select.c: Likewise.
19858         * lib/trim.h: Likewise.
19859         * tests/test-usleep.c: Likewise.
19860         * lib/ldexpl.c: Insert space before function parameter list and before
19861         function argument list.
19862         * lib/logl.c: Likewise.
19863         * lib/sqrtl.c: Likewise.
19864         * lib/trim.c: Likewise.
19865         * lib/cosl.c: Use GNU style indentation. Insert space before function
19866         argument list.
19867         * lib/sinl.c: Likewise.
19868         * lib/tsearch.c: Insert space after 'for'.
19869         Reported by Jim Meyering.
19870
19871 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
19872
19873         * maint.mk (sc_Wundef_boolean): Check for the presence of the
19874         config header before grepping, as it's not present before
19875         autoreconf/configure are run.  Reported by Simon Josefsson.
19876
19877 2010-03-23  Bruno Haible  <bruno@clisp.org>
19878
19879         pt_chown: Make it work with automake < 1.11.
19880         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
19881         Reported by Simon Josefsson.
19882
19883 2010-03-23  Bruno Haible  <bruno@clisp.org>
19884
19885         pt_chown: Don't depend on GPLed modules.
19886         * lib/pt_chown.c: Don't include idpriv.h.
19887         (main): Don't drop privileges.
19888         * modules/pt_chown (Depends-on): Remove idpriv-drop.
19889         Reported by Simon Josefsson.
19890
19891 2010-03-24  Simon Josefsson  <simon@josefsson.org>
19892
19893         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
19894         suggestions from karl@freefriends.org (Karl Berry).
19895
19896 2010-03-22  Eric Blake  <eblake@redhat.com>
19897
19898         gethostname: further tweaks
19899         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
19900         are overriding gethostname.
19901         Suggested by Bruno Haible.
19902
19903 2010-03-21  Bruno Haible  <bruno@clisp.org>
19904
19905         Fix comments.
19906         * lib/forkpty.c (rpl_forkpty): Fix comment.
19907         * lib/openpty.c (rpl_openpty): Likewise.
19908         Reported by Eric Blake.
19909
19910 2010-03-22  Eric Blake  <eblake@redhat.com>
19911
19912         gethostname: fix build on mingw
19913         * lib/unistd.in.h (includes): Work around fact that mingw
19914         <winsock2.h> re-includes <unistd.h>, by avoiding any
19915         redeclarations if we are being included by <winsock2.h>.
19916         Reported by Matthias Bolte.
19917
19918 2010-03-21  Bruno Haible  <bruno@clisp.org>
19919
19920         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
19921         * lib/forkpty.c (forkpty): New replacement function, from glibc with
19922         modifications.
19923         * lib/pty.in.h (forkpty): Update declaration. Add comments.
19924         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
19925         provide the replacement.
19926         * modules/forkpty (Depends-on): Add openpty, login_tty.
19927         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
19928         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
19929         * doc/glibc-functions/forkpty.texi: More supported platforms.
19930         * config/srclist.txt: Add forkpty.c (commented).
19931
19932 2010-03-21  Bruno Haible  <bruno@clisp.org>
19933
19934         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
19935         (Makefile.am): Verify that PTY_LIB is defined.
19936
19937         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
19938
19939 2010-03-21  Bruno Haible  <bruno@clisp.org>
19940
19941         Tests for module 'login_tty'.
19942         * modules/login_tty-tests: New file.
19943         * tests/test-login_tty.c: New file.
19944
19945         New module 'login_tty'.
19946         * lib/login_tty.c: New file.
19947         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
19948         * modules/login_tty: New file.
19949         * doc/glibc-functions/login_tty.texi: Mention the new module.
19950
19951 2010-03-21  Bruno Haible  <bruno@clisp.org>
19952
19953         login_tty: Documentation.
19954         * doc/glibc-functions/login_tty.texi: New file.
19955         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
19956
19957 2010-03-21  Bruno Haible  <bruno@clisp.org>
19958
19959         pty: Consistent macro naming.
19960         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
19961         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
19962         * modules/pty (configure.ac): Update.
19963
19964 2010-03-21  Bruno Haible  <bruno@clisp.org>
19965
19966         Tests for openpty: Make stricter.
19967         * tests/test-openpty.c (main): Add test of canonical processing and
19968         erase.
19969         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
19970
19971         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
19972         * lib/openpty.c (openpty): New replacement function.
19973         * lib/pty.in.h: Include <termios.h>.
19974         (openpty): Update declaration. Add comments.
19975         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
19976         is not declared, arrange to provide the replacement. Check for _getpty
19977         and posix_openpt.
19978         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
19979         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
19980         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
19981         * modules/pty-tests (test_pty_c___LDADD): New variable.
19982         * doc/glibc-functions/openpty.texi: More supported platforms.
19983
19984 2010-03-21  Bruno Haible  <bruno@clisp.org>
19985
19986         setenv: Tweaks.
19987         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
19988         the test program.
19989         * doc/posix-functions/setenv.texi: Update platforms list.
19990
19991 2010-03-21  Bruno Haible  <bruno@clisp.org>
19992
19993         New module 'unlockpt'.
19994         * lib/unlockpt.c: New file, from glibc with modifications.
19995         * m4/unlockpt.m4: New file.
19996         * modules/unlockpt: New file.
19997         * lib/stdlib.in.h (unlockpt): New declaration.
19998         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
19999         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
20000         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
20001         HAVE_UNLOCKPT.
20002         * doc/posix-functions/unlockpt.texi: Mention the new module.
20003         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
20004         * config/srclist.txt: Add unlockpt.c (commented).
20005
20006 2010-03-21  Jim Meyering  <meyering@redhat.com>
20007
20008         maint.mk: prohibit inclusion of "intprops.h" without use
20009         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
20010
20011 2010-03-21  Bruno Haible  <bruno@clisp.org>
20012
20013         New module 'grantpt'.
20014         * lib/grantpt.c: New file, from glibc with modifications.
20015         * m4/grantpt.m4: New file.
20016         * modules/grantpt: New file.
20017         * lib/stdlib.in.h (grantpt): New declaration.
20018         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
20019         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
20020         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
20021         HAVE_GRANTPT.
20022         * doc/posix-functions/grantpt.texi: Mention the new module.
20023         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
20024         * config/srclist.txt: Add grantpt.c (commented).
20025
20026 2010-03-21  Bruno Haible  <bruno@clisp.org>
20027
20028         New module 'pt_chown'.
20029         * lib/pt_chown.c: New file, from glibc with modifications.
20030         * lib/pty-private.h: New file, from glibc with modifications.
20031         * modules/pt_chown: New file.
20032         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
20033
20034 2010-03-21  Bruno Haible  <bruno@clisp.org>
20035
20036         Tests for module 'ptsname'.
20037         * modules/ptsname-tests: New file.
20038         * tests/test-ptsname.c: New file.
20039
20040         New module 'ptsname'.
20041         * lib/ptsname.c: New file, from glibc with modifications.
20042         * m4/ptsname.m4: New file.
20043         * modules/ptsname: New file.
20044         * lib/stdlib.in.h (ptsname): New declaration.
20045         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
20046         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
20047         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
20048         HAVE_PTSNAME.
20049         * doc/posix-functions/ptsname.texi: Mention the new module.
20050         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
20051         * config/srclist.txt: Add ptsname.c (commented).
20052
20053 2010-03-21  Bruno Haible  <bruno@clisp.org>
20054
20055         Tests for module 'ttyname_r'.
20056         * modules/ttyname_r-tests: New file.
20057         * tests/test-ttyname_r.c: New file.
20058
20059         New module 'ttyname_r'.
20060         * lib/ttyname_r.c: New file.
20061         * m4/ttyname_r.m4: New file.
20062         * modules/ttyname_r: New file.
20063         * lib/unistd.in.h (ttyname_r): New declaration.
20064         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
20065         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
20066         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
20067         HAVE_TTYNAME_R.
20068         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
20069         * doc/posix-functions/ttyname_r.texi: Mention the new module.
20070
20071 2010-03-20  Bruno Haible  <bruno@clisp.org>
20072
20073         signal: Undefine macro definitions in C++ mode.
20074         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
20075         sigfillset): Undefine macro definitions from the system header in C++
20076         mode.
20077         Reported by John W. Eaton <jwe@gnu.org>.
20078
20079 2010-03-20  Bruno Haible  <bruno@clisp.org>
20080
20081         Ensure no #include statements inside extern "C" { ... }.
20082         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
20083         contain #include statements.
20084         * lib/time.in.h: Likewise.
20085
20086 2010-03-20  Bruno Haible  <bruno@clisp.org>
20087
20088         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
20089         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
20090         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
20091         Reported by John W. Eaton <jwe@gnu.org>.
20092
20093 2010-03-20  Bruno Haible  <bruno@clisp.org>
20094
20095         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
20096         Reported by Jim Meyering.
20097
20098 2010-03-20  Bruno Haible  <bruno@clisp.org>
20099
20100         pipe: Set errno upon failure.
20101         * lib/pipe.h: Specify that when -1 is returned, errno is set.
20102         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
20103         errno value in error message.
20104
20105 2010-03-20  Bruno Haible  <bruno@clisp.org>
20106             Jim Meyering  <meyering@redhat.com>
20107
20108         lchown: Avoid "unused variable" warning.
20109         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
20110
20111 2010-03-20  Bruno Haible  <bruno@clisp.org>
20112
20113         Work around unlink() bug on MacOS X 10.5.6.
20114         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
20115         attempting to unlink a parent directory.
20116         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
20117         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
20118         activate for the replacement function.
20119         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
20120
20121 2010-03-20  Bruno Haible  <bruno@clisp.org>
20122
20123         Fix link errors on Solaris 8.
20124         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
20125         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
20126
20127 2010-03-19  Jim Meyering  <meyering@redhat.com>
20128
20129         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
20130         The _LIBC implementation of build_range_exp correctly honors the
20131         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
20132         However, the non-_LIBC implementation would ignore that syntax-bit
20133         flag and return REG_ERANGE unconditionally.
20134         This change makes it honor that flag.
20135         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
20136         Make two pointer parameters "const".
20137         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
20138         (parse_bracket_exp): Update caller.
20139
20140         regex.m4: correct the reversed range endpoint ([b-a]) test
20141         * m4/regex.m4: When requiring that [b-a] evoke failure,
20142         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
20143         test pass once again for x86-based systems.
20144
20145 2010-03-19  Bruno Haible  <bruno@clisp.org>
20146
20147         scandir: Fix link error on Solaris 8.
20148         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
20149         macros.
20150
20151 2010-03-19  Bruno Haible  <bruno@clisp.org>
20152
20153         getusershell: Fix documentation.
20154         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
20155         module.
20156         * doc/glibc-functions/setusershell.texi: Likewise.
20157
20158         getusershell: Provide declaration, missing on Solaris 9.
20159         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
20160         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
20161         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
20162         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
20163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20164         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
20165         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
20166         HAVE_GETUSERSHELL.
20167         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
20168
20169 2010-03-19  Bruno Haible  <bruno@clisp.org>
20170
20171         wctype: Provide iswblank function.
20172         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
20173         exists and is fine.
20174         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
20175         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
20176         * tests/test-wctype.c (main): Re-enable the iswblank tests.
20177         * doc/posix-functions/iswblank.texi: Update.
20178
20179 2010-03-19  Bruno Haible  <bruno@clisp.org>
20180
20181         Tests of module 'pty' in C++ mode.
20182         * modules/pty-tests: New file.
20183         * tests/test-pty-c++.cc: New file.
20184         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20185
20186 2010-03-19  Eric Blake  <eblake@redhat.com>
20187
20188         logb: fix documentation
20189         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
20190         1.5 declaration bug.
20191
20192         forkpty, openpty: prefer glibc's const-safe prototype
20193         * lib/forkpty.c (rpl_forkpty): New file.
20194         * lib/openpty.c (rpl_openpty): Likewise.
20195         * modules/forkpty (Files): Distribute it.
20196         * modules/openpty (Files): Likewise.
20197         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
20198         check...
20199         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
20200         replacement for for non-const BSD signature.
20201         * modules/pty (Makefile.am): Substitute witnesses.
20202         * lib/pty.in.h (forkpty, openpty): Declare replacements.
20203         * tests/test-forkpty.c: Update signature check.
20204         * tests/test-openpty.c: Likewise.
20205         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
20206         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20207
20208         forkpty, openpty: split functions into new modules
20209         * modules/pty (Makefile.am): Substitute new witnesses.
20210         (Libraries): Move library detection...
20211         * modules/forkpty: ...into new module.
20212         * modules/openpty: Another new module.
20213         * modules/pty-tests: Rename and split...
20214         * modules/forkpty-tests: ...to this...
20215         * modules/openpty-tests: ...and this.
20216         * tests/test-pty.c: Rename and split...
20217         * tests/test-forkpty.c: ...to this...
20218         * tests/test-openpty.c: ...and this.
20219         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
20220         (gl_PTY): Split library searching...
20221         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
20222         (gl_FORKPTY, gl_OPENPTY): New macros.
20223         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
20224         * NEWS: Mention the split.
20225         * MODULES.html.sh (Misc): Document the modules.
20226         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
20227         * doc/glibc-functions/openpty.texi (openpty): Likewise.
20228
20229         pty: improve replacement header
20230         * lib/pty.in.h: New file.
20231         * modules/pty (Files): Ship it.
20232         (Makefile.am): Always build replacement.
20233         * m4/pty.m4: Rename...
20234         * m4/pty_h.m4: ...to this.
20235         (gl_PTY): Modernize setting of witness macros; update check of
20236         forkpty to take proper advantage of cache.
20237         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
20238
20239         getopt: avoid compiler warning
20240         * lib/getopt.c (attribute_hidden): Remove unused macro.
20241
20242 2010-03-18  Bruno Haible  <bruno@clisp.org>
20243
20244         Fix link errors on Solaris 8.
20245         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
20246         * modules/search-tests (test_search_c___LDADD): Likewise.
20247         * modules/signal-tests (test_signal_c___LDADD): Likewise.
20248         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
20249         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
20250         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
20251         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
20252         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
20253         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
20254
20255 2010-03-18  Bruno Haible  <bruno@clisp.org>
20256
20257         Fix bug introduced on 2010-03-14.
20258         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
20259         (gl_SPAWN_H): Require it.
20260         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
20261         Reported by Simon Josefsson.
20262
20263 2010-03-18  Bruno Haible  <bruno@clisp.org>
20264
20265         Fix typo introduced on 2009-12-31.
20266         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
20267         posix_spawn_file_actions_adddup2.
20268
20269 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
20270         and Eric Blake  <eblake@redhat.com>
20271
20272         test-vc-list-files-git: make more robust
20273         * tests/test-vc-list-files-git.sh: Unset problematic environment
20274         variables.  Chain commands together.
20275
20276 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
20277
20278         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
20279         `AC_CHECK_DECL' invocation.
20280
20281 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
20282
20283         * lib/inttostr.c (inttostr): Make sure the invocation of verify
20284         appears before executable statements. Suggested by Petr Sumbera
20285         <Petr.Sumbera@Sun.COM>.
20286
20287 2010-03-14  Bruno Haible  <bruno@clisp.org>
20288
20289         * tests/test-flock.c (test_exclusive): Comment out a test that causes
20290         portability problems. Instead use a simpler test.
20291         (main): Check that invalid arguments are rejected only on Linux.
20292
20293 2010-03-14  Bruno Haible  <bruno@clisp.org>
20294
20295         Fix bug introduced on 2009-12-31.
20296         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20297         gl_PREREQ_SYS_H_WINSOCK2 always.
20298         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
20299         SYS_SOCKET_H variable.
20300         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
20301         Update comments.
20302         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
20303         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20304         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20305         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20306         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
20307
20308 2010-03-14  Bruno Haible  <bruno@clisp.org>
20309
20310         Fix values returned by sinl, cosl.
20311         * lib/trigl.h: Add specification comments.
20312         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
20313         that combines the values from the precomputed table with the values of
20314         the Chebyshev polynomials.
20315
20316 2010-03-14  Bruno Haible  <bruno@clisp.org>
20317
20318         Fix compilation error when modules 'posix_spawn[p]' are not used.
20319         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
20320         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
20321
20322 2010-03-14  Bruno Haible  <bruno@clisp.org>
20323
20324         Fix compilation error on mingw when module 'time_r' is not used.
20325         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
20326         is 1.
20327         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
20328         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20329         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
20330         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
20331
20332 2010-03-14  Bruno Haible  <bruno@clisp.org>
20333
20334         Fix compilation error with Sun C.
20335         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
20336         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
20337         instead of GCC specific ULONG_LONG_MAX.
20338         * lib/xstrtoll.c: Likewise.
20339         * lib/xstrtoull.c: Likewise.
20340
20341 2010-03-13  Bruno Haible  <bruno@clisp.org>
20342
20343         Allow the user to disable C++ code and tests.
20344         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
20345         (gl_PROG_ANSI_CXX): Require it.
20346
20347 2010-03-13  Bruno Haible  <bruno@clisp.org>
20348
20349         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
20350         cases.
20351
20352 2010-03-13  Bruno Haible  <bruno@clisp.org>
20353
20354         Test that gnulib does not break the standard C++ headers.
20355         * tests/test-locale-c++2.cc: New file.
20356         * modules/locale-tests (Files): Add it.
20357         (Makefile.am): Compile it for test-locale-c++.
20358         * tests/test-math-c++2.cc: New file.
20359         * modules/math-tests (Files): Add it.
20360         (Makefile.am): Compile it for test-math-c++.
20361         * tests/test-signal-c++2.cc: New file.
20362         * modules/signal-tests (Files): Add it.
20363         (Makefile.am): Compile it for test-signal-c++.
20364         * tests/test-stdio-c++2.cc: New file.
20365         * modules/stdio-tests (Files): Add it.
20366         (Makefile.am): Compile it for test-stdio-c++.
20367         * tests/test-stdlib-c++2.cc: New file.
20368         * modules/stdlib-tests (Files): Add it.
20369         (Makefile.am): Compile it for test-stdlib-c++.
20370         * tests/test-string-c++2.cc: New file.
20371         * modules/string-tests (Files): Add it.
20372         (Makefile.am): Compile it for test-string-c++.
20373         * tests/test-time-c++2.cc: New file.
20374         * modules/time-tests (Files): Add it.
20375         (Makefile.am): Compile it for test-time-c++.
20376         Reported by John W. Eaton <jwe@gnu.org>.
20377
20378 2010-03-13  Bruno Haible  <bruno@clisp.org>
20379
20380         * gnulib-tool (func_usage): Clarify which options are available for
20381         --create-testdir and --create-megatestdir.
20382
20383 2010-03-13  Bruno Haible  <bruno@clisp.org>
20384
20385         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
20386         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
20387         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
20388         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20389         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
20390         when appropriate.
20391         Reported by Jim Meyering.
20392
20393 2010-03-12  Simon Josefsson  <simon@josefsson.org>
20394
20395         * gnulib-tool (func_import): Explain origin of code.
20396
20397 2010-03-12  Bruno Haible  <bruno@clisp.org>
20398
20399         Fix problem with automake's definition of CXXLINK.
20400         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
20401         Reported by Simon Josefsson and Ludovic Courtès.
20402
20403 2010-03-12  Bruno Haible  <bruno@clisp.org>
20404
20405         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
20406         stable releases.
20407
20408 2010-03-11  Bruno Haible  <bruno@clisp.org>
20409
20410         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
20411         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
20412         whether the system provides one variant or multiple variants of the
20413         function.
20414         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
20415         C++ compilers.
20416         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
20417         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
20418         Reported by Jim Meyering.
20419
20420 2010-03-09  Simon Josefsson  <simon@josefsson.org>
20421
20422         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
20423
20424 2010-03-08  Bruno Haible  <bruno@clisp.org>
20425
20426         gnulib-tool: Add support for --libtool in --create-testdir.
20427         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
20428         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
20429
20430 2010-03-08  Eric Blake  <eblake@redhat.com>
20431
20432         gnulib-tool.texi: mention possibility of git submodule
20433         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
20434         submodules.
20435         * doc/.gitignore: Ignore another generated file.
20436
20437 2010-03-08  Karl Berry  <karl@gnu.org>
20438
20439         * doc/gnulib-tool.texi (VCS Issues): Mention third option
20440         of committing gnulib files while skipping others.
20441
20442 2010-03-07  Bruno Haible  <bruno@clisp.org>
20443
20444         Tests of module 'wctype' in C++ mode.
20445         * tests/test-wctype-c++.cc: New file.
20446         * modules/wctype-tests (Files): Add it and tests/signature.h.
20447         (Depends-on): Add ansi-c++-opt.
20448         (Makefile.am): Arrange to compile and run test-wctype-c++.
20449
20450         Tests of module 'wchar' in C++ mode.
20451         * tests/test-wchar-c++.cc: New file.
20452         * modules/wchar-tests (Files): Add it and tests/signature.h.
20453         (Depends-on): Add ansi-c++-opt.
20454         (Makefile.am): Arrange to compile and run test-wchar-c++.
20455         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
20456         gl_MODULE_INDICATOR.
20457
20458         Tests of module 'unistd' in C++ mode.
20459         * tests/test-unistd-c++.cc: New file.
20460         * modules/unistd-tests (Files): Add it and tests/signature.h.
20461         (Depends-on): Add ansi-c++-opt.
20462         (Makefile.am): Arrange to compile and run test-unistd-c++.
20463         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
20464         gl_MODULE_INDICATOR.
20465
20466         Tests of module 'time' in C++ mode.
20467         * tests/test-time-c++.cc: New file.
20468         * modules/time-tests (Files): Add it and tests/signature.h.
20469         (Depends-on): Add ansi-c++-opt.
20470         (Makefile.am): Arrange to compile and run test-time-c++.
20471         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20472
20473         Tests of module 'sys_time' in C++ mode.
20474         * tests/test-sys_time-c++.cc: New file.
20475         * modules/sys_time-tests (Files): Add it and tests/signature.h.
20476         (Depends-on): Add ansi-c++-opt.
20477         (Makefile.am): Arrange to compile and run test-sys_time-c++.
20478         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
20479         gl_MODULE_INDICATOR.
20480
20481         Tests of module 'sys_stat' in C++ mode.
20482         * tests/test-sys_stat-c++.cc: New file.
20483         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
20484         (Depends-on): Add ansi-c++-opt.
20485         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
20486         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
20487         gl_MODULE_INDICATOR.
20488
20489         Tests of module 'sys_socket' in C++ mode.
20490         * tests/test-sys_socket-c++.cc: New file.
20491         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
20492         (Depends-on): Add ansi-c++-opt.
20493         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
20494         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
20495         gl_MODULE_INDICATOR.
20496
20497         Tests of module 'sys_select' in C++ mode.
20498         * tests/test-sys_select-c++.cc: New file.
20499         * modules/sys_select-tests (Files): Add it and tests/signature.h.
20500         (Depends-on): Add ansi-c++-opt.
20501         (Makefile.am): Arrange to compile and run test-sys_select-c++.
20502         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
20503         gl_MODULE_INDICATOR.
20504
20505         Tests of module 'sys_ioctl' in C++ mode.
20506         * tests/test-sys_ioctl-c++.cc: New file.
20507         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
20508         (Depends-on): Add ansi-c++-opt.
20509         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
20510         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
20511         gl_MODULE_INDICATOR.
20512
20513         Tests of module 'string' in C++ mode.
20514         * tests/test-string-c++.cc: New file.
20515         * modules/string-tests (Files): Add it and tests/signature.h.
20516         (Depends-on): Add ansi-c++-opt.
20517         (Makefile.am): Arrange to compile and run test-string-c++.
20518         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
20519         gl_MODULE_INDICATOR.
20520
20521         Tests of module 'stdlib' in C++ mode.
20522         * tests/test-stdlib-c++.cc: New file.
20523         * modules/stdlib-tests (Files): Add it and tests/signature.h.
20524         (Depends-on): Add ansi-c++-opt.
20525         (Makefile.am): Arrange to compile and run test-stdlib-c++.
20526         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
20527         gl_MODULE_INDICATOR.
20528
20529         Tests of module 'stdio' in C++ mode.
20530         * tests/test-stdio-c++.cc: New file.
20531         * modules/stdio-tests (Files): Add it and tests/signature.h.
20532         (Depends-on): Add ansi-c++-opt.
20533         (Makefile.am): Arrange to compile and run test-stdio-c++.
20534         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
20535         gl_MODULE_INDICATOR.
20536
20537         Tests of module 'spawn' in C++ mode.
20538         * tests/test-spawn-c++.cc: New file.
20539         * modules/spawn-tests (Files): Add it and tests/signature.h.
20540         (Depends-on): Add ansi-c++-opt.
20541         (Makefile.am): Arrange to compile and run test-spawn-c++.
20542         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
20543         gl_MODULE_INDICATOR.
20544
20545         Tests of module 'signal' in C++ mode.
20546         * tests/test-signal-c++.cc: New file.
20547         * modules/signal-tests (Files): Add it and tests/signature.h.
20548         (Depends-on): Add ansi-c++-opt.
20549         (Makefile.am): Arrange to compile and run test-signal-c++.
20550         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
20551         gl_MODULE_INDICATOR.
20552
20553         Tests of module 'search' in C++ mode.
20554         * tests/test-search-c++.cc: New file.
20555         * modules/search-tests (Files): Add it and tests/signature.h.
20556         (Depends-on): Add ansi-c++-opt.
20557         (Makefile.am): Arrange to compile and run test-search-c++.
20558         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
20559         gl_MODULE_INDICATOR.
20560
20561         Tests of module 'math' in C++ mode.
20562         * tests/test-math-c++.cc: New file.
20563         * modules/math-tests (Files): Add it and tests/signature.h.
20564         (Depends-on): Add ansi-c++-opt.
20565         (Makefile.am): Arrange to compile and run test-math-c++.
20566         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
20567
20568         Tests of module 'locale' in C++ mode.
20569         * tests/test-locale-c++.cc: New file.
20570         * modules/locale-tests (Files): Add it and tests/signature.h.
20571         (Depends-on): Add ansi-c++-opt.
20572         (Makefile.am): Arrange to compile and run test-locale-c++.
20573         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
20574         gl_MODULE_INDICATOR.
20575
20576         Tests of module 'langinfo' in C++ mode.
20577         * tests/test-langinfo-c++.cc: New file.
20578         * modules/langinfo-tests (Files): Add it and tests/signature.h.
20579         (Depends-on): Add ansi-c++-opt.
20580         (Makefile.am): Arrange to compile and run test-langinfo-c++.
20581         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
20582         gl_MODULE_INDICATOR.
20583
20584         Tests of module 'iconv-h' in C++ mode.
20585         * tests/test-iconv-h-c++.cc: New file.
20586         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
20587         (Depends-on): Add ansi-c++-opt.
20588         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
20589
20590         Tests of module 'glob' in C++ mode.
20591         * tests/test-glob-c++.cc: New file.
20592         * modules/glob-tests (Files): Add it.
20593         (Depends-on): Add ansi-c++-opt.
20594         (Makefile.am): Arrange to compile and run test-glob-c++.
20595
20596         Tests of module 'fcntl-h' in C++ mode.
20597         * tests/test-fcntl-h-c++.cc: New file.
20598         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
20599         (Depends-on): Add ansi-c++-opt.
20600         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
20601         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
20602         gl_MODULE_INDICATOR.
20603
20604         Tests of module 'dirent' in C++ mode.
20605         * tests/test-dirent-c++.cc: New file.
20606         * modules/dirent-tests (Files): Add it and tests/signature.h.
20607         (Depends-on): Add ansi-c++-opt.
20608         (Makefile.am): Arrange to compile and run test-dirent-c++.
20609         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
20610         gl_MODULE_INDICATOR.
20611
20612         New module 'ansi-c++-opt'.
20613         * modules/ansi-c++-opt: New file.
20614         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
20615
20616         Document C++ namespace mode.
20617         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
20618
20619         wctype: Avoid #define replacements in C++ mode.
20620         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
20621         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
20622         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
20623         In C++, define a namespaced alias symbol.
20624         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
20625         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
20626         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
20627         rule.
20628
20629         wchar: Avoid #define replacements in C++ mode.
20630         * lib/wchar.in.h: Include c++defs.h.
20631         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
20632         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
20633         symbol.
20634         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
20635         * modules/wchar (Depends-on): Add c++defs.
20636         (Makefile.am): Update wchar.h rule.
20637
20638         unistd: Avoid #define replacements in C++ mode.
20639         * lib/unistd.in.h: Include c++defs.h.
20640         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
20641         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
20642         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
20643         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
20644         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
20645         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
20646         symbol.
20647         (environ): Update.
20648         * modules/unistd (Depends-on): Add c++defs.
20649         (Makefile.am): Update unistd.h rule.
20650
20651         time: Avoid #define replacements in C++ mode.
20652         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
20653         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
20654         define a namespaced alias symbol.
20655         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
20656         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
20657         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
20658         * modules/time (Depends-on): Add c++defs, warn-on-use.
20659         (Makefile.am): Update time.h rule.
20660         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20661         * modules/nanosleep (configure.ac): Likewise.
20662         * modules/strptime (configure.ac): Likewise.
20663         * modules/timegm (configure.ac): Likewise.
20664
20665         sys_time: Avoid #define replacements in C++ mode.
20666         * lib/sys_time.in.h: Include c++defs.h.
20667         (gettimeofday): In C++, define a namespaced alias symbol.
20668         * modules/sys_time (Depends-on): Add c++defs.
20669         (Makefile.am): Update sys/time.h rule.
20670
20671         sys_stat: Avoid #define replacements in C++ mode.
20672         * lib/sys_stat.in.h: Include c++defs.h.
20673         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
20674         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
20675         namespaced alias symbol.
20676         In C++, define a namespaced alias symbol.
20677         * modules/sys_stat (Depends-on): Add c++defs.
20678         (Makefile.am): Update sys/stat.h rule.
20679
20680         sys_socket: Avoid #define replacements in C++ mode.
20681         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
20682         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
20683         definitions also when the system has a <sys/socket.h>.
20684         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20685         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
20686         In C++, define a namespaced alias symbol.
20687         * modules/sys_socket (Depends-on): Add c++defs.
20688         (Makefile.am): Update sys/socket.h rule.
20689
20690         sys_select: Avoid #define replacements in C++ mode.
20691         * lib/sys_select.in.h: Include c++defs.h. Enable the function
20692         definitions also when the system has a <sys/select.h>.
20693         (select): In C++, define a namespaced alias symbol.
20694         * modules/sys_select (Depends-on): Add c++defs.
20695         (Makefile.am): Update sys/select.h rule.
20696
20697         sys_ioctl: Avoid #define replacements in C++ mode.
20698         * lib/sys_ioctl.in.h: Include c++defs.h.
20699         (ioctl): In C++, define a namespaced alias symbol.
20700         * modules/sys_ioctl (Depends-on): Add c++defs.
20701         (Makefile.am): Update sys/ioctl.h rule.
20702
20703         string: Avoid #define replacements in C++ mode.
20704         * lib/string.in.h: Include c++defs.h.
20705         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
20706         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20707         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20708         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
20709         strsignal, strverscmp): In C++, define a namespaced alias symbol.
20710         * modules/string (Depends-on): Add c++defs.
20711         (Makefile.am): Update string.h rule.
20712
20713         stdlib: Avoid #define replacements in C++ mode.
20714         * lib/stdlib.in.h: Include c++defs.h.
20715         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
20716         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
20717         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
20718         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
20719         symbol.
20720         * modules/stdlib (Depends-on): Add c++defs.
20721         (Makefile.am): Update stdlib.h rule.
20722
20723         stdio: Avoid #define replacements in C++ mode.
20724         * lib/stdio.in.h: Include c++defs.h.
20725         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
20726         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
20727         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
20728         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
20729         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
20730         namespaced alias symbol.
20731         * modules/stdio (Depends-on): Add c++defs.
20732         (Makefile.am): Update stdio.h rule.
20733
20734         spawn: Avoid #define replacements in C++ mode.
20735         * lib/spawn.in.h: Include c++defs.h.
20736         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20737         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20738         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20739         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20740         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20741         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20742         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20743         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20744         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20745         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20746         In C++, define a namespaced alias symbol.
20747         * modules/spawn (Depends-on): Add c++defs.
20748         (Makefile.am): Update spawn.h rule.
20749
20750         signal: Avoid #define replacements in C++ mode.
20751         * lib/signal.in.h: Include c++defs.h.
20752         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20753         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
20754         namespaced alias symbol.
20755         * modules/signal (Depends-on): Add c++defs.
20756         (Makefile.am): Update signal.h rule.
20757
20758         search: Avoid #define replacements in C++ mode.
20759         * lib/search.in.h: Include c++defs.h.
20760         (_gl_search_compar_fn, _gl_search_action_fn): New types.
20761         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
20762         symbol.
20763         * modules/search (Depends-on): Add c++defs.
20764         (Makefile.am): Update search.h rule.
20765
20766         math: Avoid #define replacements in C++ mode.
20767         * lib/math.in.h: Include c++defs.h.
20768         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
20769         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
20770         trunc, truncl): In C++, define a namespaced alias symbol.
20771         * modules/math (Depends-on): Add c++defs.
20772         (Makefile.am): Update math.h rule.
20773
20774         locale: Avoid #define replacements in C++ mode.
20775         * lib/locale.in.h: Include c++defs.h.
20776         (duplocale): In C++, define a namespaced alias symbol.
20777         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
20778         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
20779         * modules/locale (Depends-on): Add c++defs.
20780         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
20781
20782         langinfo: Avoid #define replacements in C++ mode.
20783         * lib/langinfo.in.h: Include c++defs.h.
20784         (nl_langinfo): In C++, define a namespaced alias symbol.
20785         * modules/langinfo (Depends-on): Add c++defs.
20786         (Makefile.am): Update langinfo.h rule.
20787
20788         iconv-h: Avoid #define replacements in C++ mode.
20789         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
20790         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
20791         symbol.
20792         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20793         whenever iconv is present.
20794         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
20795         (Makefile.am): Update iconv.h rule.
20796
20797         glob: Avoid #define replacements in C++ mode.
20798         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
20799         (_gl_glob_errfunc_fn): New type.
20800         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
20801         symbol.
20802         * modules/glob (Depends-on): Add c++defs, warn-on-use.
20803         (Makefile.am): Update glob.h rule.
20804
20805         fcntl-h: Avoid #define replacements in C++ mode.
20806         * lib/fcntl.in.h: Include c++defs.h.
20807         (fcntl, open, openat): In C++, define a namespaced alias symbol.
20808         * modules/fcntl-h (Depends-on): Add c++defs.
20809         (Makefile.am): Update fcntl.h rule.
20810
20811         dirent: Avoid #define replacements in C++ mode.
20812         * lib/dirent.in.h: Include c++defs.h.
20813         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
20814         namespaced alias symbol.
20815         (dirfd): Update declaration.
20816         * modules/dirent (Depends-on): Add c++defs.
20817         (Makefile.am): Update dirent.h rule.
20818
20819         ctype: Make it usable in C++ code.
20820         * lib/ctype.in.h: Include c++defs.h.
20821         (isblank): Declare as extern "C".
20822         * modules/ctype (Depends-on): Add c++defs.
20823         (Makefile.am): Update ctype.h rule.
20824
20825         New module 'c++defs'.
20826         * modules/c++defs: New file.
20827         * build-aux/c++defs.h: New file.
20828         Reported by John W. Eaton <jwe@gnu.org>.
20829
20830 2010-03-07  Bruno Haible  <bruno@clisp.org>
20831
20832         logb: Provide missing declaration for Cygwin.
20833         * lib/math.in.h (logb): New declaration.
20834         * m4/logb.m4: New file.
20835         * modules/logb (Files): Add m4/logb.m4.
20836         (Depends-on): Add math.
20837         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
20838         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
20839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
20840         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
20841         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
20842
20843 2010-03-07  Bruno Haible  <bruno@clisp.org>
20844
20845         Fix test-cond link error.
20846         * tests/test-cond.c: Include <stdio.h>.
20847
20848 2010-03-07  Bruno Haible  <bruno@clisp.org>
20849
20850         Fix test-dirent-safer link error.
20851         * modules/dirent-safer-tests (Makefile.am): Define
20852         test_dirent_safer_LDADD.
20853
20854 2010-03-07  Bruno Haible  <bruno@clisp.org>
20855
20856         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
20857         among default module list.
20858
20859 2010-03-07  Bruno Haible  <bruno@clisp.org>
20860
20861         Fix link error on platforms with GNU libiconv.
20862         * modules/unistr/u8-strcoll-tests (Makefile): Define
20863         test_u8_strcoll_LDADD.
20864         * modules/unistr/u16-strcoll-tests (Makefile): Define
20865         test_u16_strcoll_LDADD.
20866         * modules/unistr/u32-strcoll-tests (Makefile): Define
20867         test_u32_strcoll_LDADD.
20868
20869 2010-03-07  Bruno Haible  <bruno@clisp.org>
20870
20871         Use POSIX declarations for socket functions.
20872         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
20873         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
20874         rpl_sendto): Change declaration to match POSIX.
20875         * lib/connect.c (rpl_connect): Likewise.
20876         * lib/accept.c (rpl_accept): Likewise.
20877         * lib/bind.c (rpl_bind): Likewise.
20878         * lib/getpeername.c (rpl_getpeername): Likewise.
20879         * lib/getsockname.c (rpl_getsockname): Likewise.
20880         * lib/recv.c (rpl_recv): Likewise.
20881         * lib/send.c (rpl_send): Likewise.
20882         * lib/recvfrom.c (rpl_recvfrom): Likewise.
20883         * lib/sendto.c (rpl_sendto): Likewise.
20884
20885 2010-03-06  Bruno Haible  <bruno@clisp.org>
20886
20887         Clarify access, euidaccess, faccessat.
20888         * doc/posix-functions/faccessat.texi: Mention security problem under
20889         "Other problems", not "Portability problems".
20890         * doc/posix-functions/access.texi: Likewise. Mention a related security
20891         problem.
20892         * doc/glibc-functions/euidaccess.texi: Mention security problems.
20893         * lib/euidaccess.c: Add comments about platforms.
20894         * lib/unistd.in.h (access, euidaccess): Add warnings.
20895
20896 2010-03-07  Bruno Haible  <bruno@clisp.org>
20897
20898         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
20899         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
20900         (POSIX_SPAWN_SETSCHEDULER): Likewise.
20901         (POSIX_SPAWN_USEVFORK): Define in a way that works when
20902         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
20903         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
20904         declare when POSIX_SPAWN_SETSCHEDULER is zero.
20905         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
20906         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
20907         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
20908         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
20909         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
20910         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
20911         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
20912         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
20913         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
20914         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
20915         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
20916         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
20917         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
20918         Likewise.
20919         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
20920         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
20921         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
20922         Likewise.
20923         * tests/test-spawn.c (main): Make it work when
20924         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
20925
20926 2010-03-07  Bruno Haible  <bruno@clisp.org>
20927
20928         Fix incorrect Makefile.am generation in German locale.
20929         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20930         Execute sed command with character range in C locale.
20931
20932 2010-03-06  Bruno Haible  <bruno@clisp.org>
20933
20934         Tests for module 'iconv-h'.
20935         * modules/iconv-h-tests: New file.
20936         * tests/test-iconv-h.c: New file.
20937
20938         New module 'iconv-h'.
20939         * modules/iconv-h: New file.
20940         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
20941         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
20942         (configure.ac): Remove gl_ICONV_H.
20943         (Makefile.am): Remove rule for iconv.h.
20944
20945 2010-03-06  Bruno Haible  <bruno@clisp.org>
20946
20947         More consistent naming of *.m4 files.
20948         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
20949         * modules/wctype (Files): Update.
20950
20951         More consistent naming of *.m4 files.
20952         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
20953         * modules/wchar (Files): Update.
20954
20955 2010-03-06  Jim Meyering  <meyering@redhat.com>
20956
20957         euidaccess: relax license to LGPLv2+
20958         * modules/euidaccess (License): Relax to LGPLv2+.
20959
20960 2010-03-06  Bruno Haible  <bruno@clisp.org>
20961
20962         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
20963         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
20964         (Makefile.am): Augment lib_SOURCES instead.
20965
20966 2010-03-04  Jim Meyering  <meyering@redhat.com>
20967
20968         utime: remove obsolete module
20969         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
20970         unnecessary for years, and has been marked as obsolete for 10 months.
20971         * modules/utime: Remove file.
20972         * lib/utime.c: Remove file.
20973         * m4/utime.m4: Remove file.
20974         * m4/utimes-null.m4: Remove file.
20975         * doc/posix-functions/utime.texi (utime): Remove reference to
20976         the module.  Move the sole "fixed by gnulib" item into the
20977         "problems not fixed by Gnulib" list.
20978         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
20979
20980 2010-03-05  Simon Josefsson  <simon@josefsson.org>
20981
20982         * modules/exit (License): Relax license to LGPLv2+.
20983         (Status): Mark as obsolete.
20984         * NEWS: Mention deprecated 'exit' module.
20985         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
20986         of now obsolete 'exit'.
20987
20988 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20989
20990         fts-lgpl: remove unused module
20991         * modules/fts-lgpl: Remove.
20992         * MODULES.html.sh (func_all_modules): Adjust.
20993         * check-module (find_included_lib_files): Adjust.
20994         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
20995
20996 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
20997
20998         copy-acl: enhance Solaris ACL error handling
20999         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
21000         * lib/set-mode-acl.c (qset_acl): Likewise.
21001
21002 2010-03-02  Bruno Haible  <bruno@clisp.org>
21003
21004         spawn: Don't override the system defined values on FreeBSD 8.
21005         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
21006         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
21007         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
21008         if HAVE_POSIX_SPAWN is 1.
21009         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
21010
21011 2010-03-01  Bruno Haible  <bruno@clisp.org>
21012
21013         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
21014         regarding Automake.
21015
21016 2010-02-25  Bruno Haible  <bruno@clisp.org>
21017
21018         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
21019         * gnulib-tool: Define 'echo' as a function only before the ksh alias
21020         setting, not afterwards.
21021         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
21022
21023 2010-02-24  Eric Blake  <eblake@redhat.com>
21024
21025         bootstrap, git-version-gen: use timestamp
21026         * build-aux/git-version-gen (scriptversion): Force UTC.
21027         * build-aux/bootstrap (scriptversion): New variable.
21028
21029         bootstrap: allow older git
21030         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
21031         older than 1.6.4.  Requested by the libvirt project.
21032
21033 2010-02-23  Eric Blake  <eblake@redhat.com>
21034
21035         warn-on-use: work with old autoconf
21036         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
21037         AS_VAR semantics of autoconf 2.60.
21038         Reported by Bruno Haible.
21039
21040         bootstrap: improve some comments
21041         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
21042         clarification comments.
21043
21044         gettimeofday: provide correct function
21045         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
21046         when replacement is declared, otherwise provide gettimeofday.
21047         Reported by Michael Goffioul.
21048
21049 2010-02-23  Jim Meyering  <meyering@redhat.com>
21050
21051         lib-ignore: relax license to "unlimited", not LGPLv2+
21052         * modules/lib-ignore (License): Relax to "unlimited".
21053
21054 2010-02-23  Jim Meyering  <meyering@redhat.com>
21055
21056         lib-ignore: relax license to LGPLv2+
21057         * modules/lib-ignore (License): Relax to LGPLv2+.
21058
21059 2010-02-22  Eric Blake  <eblake@redhat.com>
21060
21061         lseek: avoid bash 3.2 broken pipe bug
21062         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
21063         warning from bash 3.2.
21064         Reported by Ben Pfaff, with analysis from Bruno Haible.
21065
21066         bootstrap: support non-FSF copyright holder
21067         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
21068         bootstrap.conf override of COPYRIGHT_HOLDER.
21069         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
21070
21071         bootstrap: interoperate with gettext 0.14.1
21072         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
21073
21074         bootstrap: allow for alternate submodule location
21075         * build-aux/bootstrap (gnulib_path): New variable; use instead of
21076         hardcoding submodule location.
21077         (gnulib_mk): Allow direct use of Makefile.am.
21078
21079         bootstrap: use GNULIB_SRCDIR to reduce disk usage
21080         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
21081         rather than reconfiguring where the submodule points.
21082
21083         gettimeofday: restore support for platforms that lack function
21084         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
21085         replacement if function is missing.
21086         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
21087         * modules/sys_time (Makefile.am): Substitute it.
21088         * lib/sys_time.in.h (gettimeofday): Check it.
21089         Reported by Michael Goffioul.
21090
21091 2010-02-21  Bruno Haible  <bruno@clisp.org>
21092
21093         * lib/stdio.in.h (obstack_printf): Fix typo.
21094
21095 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
21096
21097         vc-list-files: use bzr ls's -R option
21098         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
21099         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
21100
21101 2010-02-21  Jim Meyering  <meyering@redhat.com>
21102
21103         init.sh: fix EXEEXT shims to work also for names like test-prog
21104         * tests/init.sh: Re-exec a better shell, when needed.
21105         If the current shell lacks support for posix $(...), an init.sh-using
21106         test will now try to find a shell that supports that.  If EXEEXT is
21107         nonempty, we also require support for hyphen-in-alias-name and shell
21108         substitutions like ${var#glob}.  Failure to find such a shell results
21109         in a skipped test.
21110
21111 2010-02-21  Bruno Haible  <bruno@clisp.org>
21112
21113         Really work around around "broken pipe" error message from bash 3.2.
21114         * gnulib-tool (func_reset_sigpipe): Remove function.
21115         (echo): In bash 3.2, define to a function that uses printf.
21116         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
21117
21118 2010-02-20  Bruno Haible  <bruno@clisp.org>
21119
21120         Restore support for automake 1.9.6 with autoconf 2.61.
21121         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
21122         Reported by James Youngman <jay@gnu.org>.
21123
21124 2010-02-20  Bruno Haible  <bruno@clisp.org>
21125
21126         Improve *printf warning condition.
21127         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
21128         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
21129         and the function is overridden due to SIGPIPE emulation.
21130
21131 2010-02-20  Bruno Haible  <bruno@clisp.org>
21132
21133         * lib/stdio.in.h: Tweak comments.
21134
21135 2010-02-19  Bruno Haible  <bruno@clisp.org>
21136
21137         Make it easier to find modules. New gnulib-tool option '--find'.
21138         * gnulib-tool: New option --find.
21139         (func_usage): Document it.
21140         (func_sanitize_modulelist): New function, extracted from
21141         func_all_modules.
21142         (func_all_modules): Invoke it.
21143         * doc/gnulib-tool.texi (Which modules?): New node.
21144
21145 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
21146
21147         * lib/sys_select.in.h: Provide select replacement even if
21148         sys/select.h exists on a system, for Interix.
21149
21150 2010-02-18  Jim Meyering  <meyering@redhat.com>
21151
21152         init.sh: don't use $(...) just yet
21153         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
21154         to accommodate e.g., Solaris' /bin/sh.
21155
21156 2010-02-17  Bruno Haible  <bruno@clisp.org>
21157
21158         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
21159         Reported by Ludovic Courtès <ludo@gnu.org>.
21160
21161 2010-02-16  Simon Josefsson  <simon@josefsson.org>
21162
21163         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
21164         linking with -lintl.
21165
21166 2010-02-17  Simon Josefsson  <simon@josefsson.org>
21167
21168         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
21169         if not provided by the system's netdb.h.  Reported by
21170         ludo@gnu.org (Ludovic Courtès).
21171
21172 2010-02-15  Jim Meyering  <meyering@redhat.com>
21173
21174         init.sh: improve portability and efficiency
21175         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
21176         "dummy" in a for loop.
21177         Use '!', not '^' to select the complement of a character set used
21178         in a "case" statement.
21179         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
21180         Suggestions from Eric Blake.
21181
21182         init.sh: automatically accommodate programs with the .exe suffix
21183         Automatically arrange for an invocation of "prog" to execute the
21184         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
21185         may use the simpler "prog", yet still work when built on a system
21186         that requires specifying the added suffix.
21187         Do this by constructing a function named "prog" that invokes
21188         "prog.exe" for each .exe file in selected directories.
21189         * tests/init.sh (find_exe_basenames_): New function.
21190         (create_exe_shim_functions_): New function.
21191         (path_prepend_): Use it.
21192
21193         maint.mk: mark syntax-check sc_*.m rules as .PHONY
21194         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21195         "make -t syntax-check" doesn't create a ton of sc_*.m files.
21196
21197 2010-02-14  Jim Meyering  <meyering@redhat.com>
21198
21199         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
21200         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
21201         (sc_prohibit_hash_pjw_without_use): New rule.
21202
21203         maint.mk: allow the default upload destination dir to be overridden
21204         * top/maint.mk (upload_dest_dir_): Define with a default that
21205         preserves the status quo.
21206         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
21207         Reported by Peter Simons.
21208
21209         maint.mk: prohibit inclusion of "hash.h" without_use
21210         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
21211
21212 2010-02-10  Jim Meyering  <meyering@redhat.com>
21213
21214         maint.mk: prohibit inclusion of "ignore-value.h" without_use
21215         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
21216
21217 2010-02-09  Eric Blake  <ebb9@byu.net>
21218         and Bruno Haible  <bruno@clisp.org>
21219
21220         obstack-printf-posix: ensure declaration
21221         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
21222         extracted from gl_FUNC_OBSTACK_PRINTF.
21223         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
21224         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21225         Likewise.
21226         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
21227         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
21228         0.
21229
21230 2010-02-08  Bruno Haible  <bruno@clisp.org>
21231
21232         gnulib-tool: Fix typo in 2010-02-07 commit.
21233         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
21234         Reported by Eric Blake.
21235
21236 2010-02-07  Bruno Haible  <bruno@clisp.org>
21237
21238         gnulib-tool: Fix up caching patches.
21239         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
21240         option --no-cache. Use associative arrays when supported by the shell.
21241         (sed_comments): New variable.
21242         (modcache): Renamed from do_cache.
21243         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
21244         abbreviate unnecessarily.
21245         (have_associative): New variable.
21246         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
21247         way also for ksh and zsh.
21248         (func_init_sed_convert_to_cache_statements): New function, extracted
21249         from func_cache_lookup_module. Add support for associative arrays.
21250         Don't set the c_MODULE_cached variable here. Ignore all lines before
21251         the first field header. Remove only the final newline, not all trailing
21252         newlines. Support empty fields correctly. Limit the use of 'eval' to
21253         assignments.
21254         (func_get_description, func_get_status, func_get_notice,
21255         func_get_applicability, func_get_filelist, func_get_dependencies,
21256         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
21257         func_get_automake_snippet, func_get_include_directive,
21258         func_get_link_directive, func_get_license, func_get_maintainer):
21259         Update documentation. List the unoptimized code first. Add support for
21260         associative arrays. Limit the use of 'eval' to assignments.
21261         (func_get_applicability): Undo stylistic pessimisations.
21262         (func_get_automake_snippet, func_get_include_directive): Reduce code
21263         duplication.
21264         (func_modules_transitive_closure, func_modules_add_dummy,
21265         func_modules_notice, func_modules_to_filelist, func_add_file,
21266         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
21267         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
21268         func_create_testdir, func_create_megatestdir): Update documentation.
21269
21270 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21271
21272         * gnulib-tool (func_cache_lookup_module): Store the module name
21273         belonging to the cache variable; error out if two different
21274         module names map to the same cache variable name.
21275
21276 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21277
21278         gnulib-tool: Make caching optional.
21279         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
21280         Update matching short versions of --no-changelog.
21281         (func_usage): Update.
21282         (sed_extract_cache_prog): Renamed from ...
21283         (sed_extract_prog): ... this; revert to old extraction script.
21284         (func_get_description, func_get_status)
21285         (func_get_notice, func_get_applicability, func_get_filelist)
21286         (func_get_dependencies, func_get_autoconf_early_snippet)
21287         (func_get_autoconf_snippet, func_get_automake_snippet)
21288         (func_get_include_directive, func_get_link_directive)
21289         (func_get_license, func_get_maintainer): If $do_cache is false,
21290         use old, non-caching extraction scripts.
21291         Suggestion by Bruno Haible.
21292
21293 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21294
21295         gnulib-tool: cache module metainformation.
21296         * gnulib-tool (sed_extract_prog): Match newline before each
21297         header, and rewrite header to a shell variable suffix.
21298         (func_cache_var, func_cache_lookup_module): New functions,
21299         to turn a module name into a cache variable prefix, and to
21300         look up and cache module metainformation.
21301         (func_get_description, func_get_status)
21302         (func_get_notice, func_get_applicability, func_get_filelist)
21303         (func_get_dependencies, func_get_autoconf_early_snippet)
21304         (func_get_autoconf_snippet, func_get_automake_snippet)
21305         (func_get_include_directive, func_get_link_directive)
21306         (func_get_license, func_get_maintainer): Use
21307         func_cache_lookup_module.
21308
21309 2010-02-07  Bruno Haible  <bruno@clisp.org>
21310
21311         fnctl: Fix missing dependency.
21312         * modules/fcntl (Depends-on): Add getdtablesize.
21313         Reported by John W. Eaton <jwe@gnu.org>.
21314
21315 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21316
21317         Argp: fix recognition of short alias options.
21318
21319         * lib/argp-parse.c (convert_options): Fix improper use of
21320         `|' between character values.
21321         * tests/test-argp.c (group1_option): New alias option
21322         --read (-r).
21323         (group1_parser): Special handling for 'r'.
21324         (test15): New test case.
21325         (test_fun): Add test15.
21326         * tests/test-argp-2.sh: Update expected --help and --usage
21327         outputs.
21328
21329 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21330
21331         * tests/test-argp.c: Fix indentation.
21332
21333 2010-02-04  Eric Blake  <ebb9@byu.net>
21334
21335         gettimeofday: expose type of second argument
21336         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
21337         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
21338         * tests/test-gettimeofday.c: Use it to silence warning.
21339         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
21340         the issue.
21341
21342 2010-02-03  Jim Meyering  <meyering@redhat.com>
21343
21344         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
21345         * lib/regcomp.c (TYPE_SIGNED): Define.
21346         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
21347
21348         regcomp.c: avoid a new -Wshadow warning
21349         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
21350
21351 2010-02-01  Jim Meyering  <meyering@redhat.com>
21352
21353         removing useless parentheses in cpp #define directives
21354         For motivation, see commit c0221df4, "define STREQ(a,b)
21355         consistently, removing useless parentheses"
21356         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
21357         * lib/mountlist.c (MNT_IGNORE): Likewise.
21358         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
21359
21360 2010-02-01  Eric Blake  <ebb9@byu.net>
21361
21362         sys_time: use link-warning
21363         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
21364         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
21365         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
21366         * modules/sys_time (Depends-on): Add warn-on-use.
21367         (Makefile.am): Always build replacement.
21368         (configure.ac): Update substitutions.
21369         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
21370         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
21371         bother with SYS_TIME_H.
21372         * modules/gettimeofday (configure.ac): Declare indicator.
21373         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
21374         in use.
21375
21376         closein-tests: silence compiler warning
21377         * tests/test-closein.c (main): Ignore fread result.
21378         * modules/closein-tests (Depends-on): Add ignore-value.
21379
21380         tests: silence warning about system return
21381         * tests/test-areadlink-with-size.c (main): Ignore system result.
21382         * tests/test-areadlink.c (main): Likewise.
21383         * tests/test-areadlinkat-with-size.c (main): Likewise.
21384         * tests/test-areadlinkat.c (main): Likewise.
21385         * tests/test-canonicalize-lgpl.c (main): Likewise.
21386         * tests/test-canonicalize.c (main): Likewise.
21387         * tests/test-chown.c (main): Likewise.
21388         * tests/test-fchownat.c (main): Likewise.
21389         * tests/test-fdutimensat.c (main): Likewise.
21390         * tests/test-fstatat.c (main): Likewise.
21391         * tests/test-futimens.c (main): Likewise.
21392         * tests/test-lchown.c (main): Likewise.
21393         * tests/test-link.c (main): Likewise.
21394         * tests/test-linkat.c (main): Likewise.
21395         * tests/test-lstat.c (main): Likewise.
21396         * tests/test-mkdir.c (main): Likewise.
21397         * tests/test-mkdirat.c (main): Likewise.
21398         * tests/test-mkfifo.c (main): Likewise.
21399         * tests/test-mkfifoat.c (main): Likewise.
21400         * tests/test-mknod.c (main): Likewise.
21401         * tests/test-readlink.c (main): Likewise.
21402         * tests/test-remove.c (main): Likewise.
21403         * tests/test-rename.c (main): Likewise.
21404         * tests/test-renameat.c (main): Likewise.
21405         * tests/test-rmdir.c (main): Likewise.
21406         * tests/test-symlink.c (main): Likewise.
21407         * tests/test-symlinkat.c (main): Likewise.
21408         * tests/test-unlink.c (main): Likewise.
21409         * tests/test-unlinkat.c (main): Likewise.
21410         * tests/test-utimens.c (main): Likewise.
21411         * tests/test-utimensat.c (main): Likewise.
21412         * modules/areadlink-tests (Depends-on): Add ignore-value.
21413         * modules/areadlink-with-size-tests (Depends-on): Likewise.
21414         * modules/areadlinkat-tests (Depends-on): Likewise.
21415         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
21416         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
21417         * modules/canonicalize-tests (Depends-on): Likewise.
21418         * modules/chown-tests (Depends-on): Likewise.
21419         * modules/fdutimensat-tests (Depends-on): Likewise.
21420         * modules/futimens-tests (Depends-on): Likewise.
21421         * modules/lchown-tests (Depends-on): Likewise.
21422         * modules/link-tests (Depends-on): Likewise.
21423         * modules/linkat-tests (Depends-on): Likewise.
21424         * modules/lstat-tests (Depends-on): Likewise.
21425         * modules/mkdir-tests (Depends-on): Likewise.
21426         * modules/mkfifo-tests (Depends-on): Likewise.
21427         * modules/mkfifoat-tests (Depends-on): Likewise.
21428         * modules/mknod-tests (Depends-on): Likewise.
21429         * modules/openat-tests (Depends-on): Likewise.
21430         * modules/readlink-tests (Depends-on): Likewise.
21431         * modules/remove-tests (Depends-on): Likewise.
21432         * modules/rename-tests (Depends-on): Likewise.
21433         * modules/renameat-tests (Depends-on): Likewise.
21434         * modules/rmdir-tests (Depends-on): Likewise.
21435         * modules/symlink-tests (Depends-on): Likewise.
21436         * modules/symlinkat-tests (Depends-on): Likewise.
21437         * modules/unlink-tests (Depends-on): Likewise.
21438         * modules/utimens-tests (Depends-on): Likewise.
21439         * modules/utimensat-tests (Depends-on): Likewise.
21440
21441 2010-01-31  Bruno Haible  <bruno@clisp.org>
21442
21443         Perform the same test for many <math.h> functions.
21444         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
21445         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
21446         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
21447         of gl_MATHFUNC.
21448         * modules/acos (configure.ac): Likewise.
21449         * modules/asin (configure.ac): Likewise.
21450         * modules/atan (configure.ac): Likewise.
21451         * modules/atan2 (configure.ac): Likewise.
21452         * modules/cbrt (configure.ac): Likewise.
21453         * modules/copysign (configure.ac): Likewise.
21454         * modules/cos (configure.ac): Likewise.
21455         * modules/cosh (configure.ac): Likewise.
21456         * modules/erf (configure.ac): Likewise.
21457         * modules/erfc (configure.ac): Likewise.
21458         * modules/exp (configure.ac): Likewise.
21459         * modules/fmod (configure.ac): Likewise.
21460         * modules/hypot (configure.ac): Likewise.
21461         * modules/j0 (configure.ac): Likewise.
21462         * modules/j1 (configure.ac): Likewise.
21463         * modules/jn (configure.ac): Likewise.
21464         * modules/lgamma (configure.ac): Likewise.
21465         * modules/log (configure.ac): Likewise.
21466         * modules/log10 (configure.ac): Likewise.
21467         * modules/log1p (configure.ac): Likewise.
21468         * modules/pow (configure.ac): Likewise.
21469         * modules/remainder (configure.ac): Likewise.
21470         * modules/sin (configure.ac): Likewise.
21471         * modules/sinh (configure.ac): Likewise.
21472         * modules/tan (configure.ac): Likewise.
21473         * modules/tanh (configure.ac): Likewise.
21474         * modules/y0 (configure.ac): Likewise.
21475         * modules/y1 (configure.ac): Likewise.
21476         * modules/yn (configure.ac): Likewise.
21477         Suggested by Paolo Bonzini.
21478
21479 2010-01-31  Bruno Haible  <bruno@clisp.org>
21480
21481         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
21482
21483 2010-01-31  Bruno Haible  <bruno@clisp.org>
21484
21485         Work around getdelim() bug on FreeBSD 8.0.
21486         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
21487         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
21488         not work.
21489         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
21490         is 1.
21491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
21492         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
21493         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
21494         a non-zero size.
21495         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
21496
21497 2010-01-31  Bruno Haible  <bruno@clisp.org>
21498
21499         Work around getline() bug on FreeBSD 8.0.
21500         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
21501         and a non-zero size.
21502         * tests/test-getline.c (main): Likewise.
21503         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
21504         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
21505
21506 2010-01-28  Eric Blake  <ebb9@byu.net>
21507
21508         regex: fix build failure
21509         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
21510         platforms.
21511
21512 2010-01-28  Jim Meyering  <meyering@redhat.com>
21513
21514         regex: do not ignore memory allocation failure
21515         * lib/regex_internal.c (create_cd_newstate): Detect
21516         re_node_set_init_copy failure.   Extracted from glibc commit
21517         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21518
21519         regex: sync more white-space changes from libc
21520         * lib/regex_internal.c: White-space only changes.
21521         * lib/regexec.c: Likewise.
21522
21523         regex: add many uses of __attribute_warn_unused_result__
21524         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
21525         * lib/regexec.c: Likewise.
21526         Extracted from a messy glibc commit.
21527
21528         regcomp.c: spelling and merge-artifact from glibc
21529         * lib/regcomp.c: Merge remainder of glibc's
21530         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21531
21532         regcomp.c: sync white-space changes from glibc
21533         * lib/regcomp.c: Merge to accommodate white space
21534         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
21535
21536         regcomp.c: do not ignore internal return values
21537         * lib/regcomp.c: Do not ignore internal return values.
21538         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
21539         but without its white-space changes and spelling fixes.
21540
21541         regex_internal.h: define __attribute_warn_unused_result__
21542         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
21543
21544         maint: add a syntax-check rule to check for vulnerable Makefile.in
21545         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
21546
21547 2010-01-27  Jim Meyering  <meyering@redhat.com>
21548
21549         ncftpput-ftp: clean up spaces
21550         * build-aux/ncftpput-ftp: Make Copyright line consistent.
21551         Remove trailing blanks.
21552
21553 2010-01-27  Simon Josefsson  <simon@josefsson.org>
21554
21555         * build-aux/git-version-gen: Fix copyright statement.
21556         * build-aux/gnupload: Likewise.
21557         * tests/test-arcfour.c: Likewise.
21558         * tests/test-arctwo.c: Likewise.
21559         * tests/test-count-one-bits.c: Likewise.
21560         * tests/test-crc.c: Likewise.
21561         * tests/test-des.c: Likewise.
21562         * tests/test-gc-arcfour.c: Likewise.
21563         * tests/test-gc-arctwo.c: Likewise.
21564         * tests/test-gc-des.c: Likewise.
21565         * tests/test-gc-hmac-md5.c: Likewise.
21566         * tests/test-gc-hmac-sha1.c: Likewise.
21567         * tests/test-gc-md2.c: Likewise.
21568         * tests/test-gc-md4.c: Likewise.
21569         * tests/test-gc-md5.c: Likewise.
21570         * tests/test-gc-pbkdf2-sha1.c: Likewise.
21571         * tests/test-gc-rijndael.c: Likewise.
21572         * tests/test-gc-sha1.c: Likewise.
21573         * tests/test-gc.c: Likewise.
21574         * tests/test-gethostname.c: Likewise.
21575         * tests/test-gettimeofday.c: Likewise.
21576         * tests/test-hash.c: Likewise.
21577         * tests/test-hmac-md5.c: Likewise.
21578         * tests/test-hmac-sha1.c: Likewise.
21579         * tests/test-md2.c: Likewise.
21580         * tests/test-md4.c: Likewise.
21581         * tests/test-md5.c: Likewise.
21582         * tests/test-memchr.c: Likewise.
21583         * tests/test-memchr2.c: Likewise.
21584         * tests/test-memcmp.c: Likewise.
21585         * tests/test-memmem.c: Likewise.
21586         * tests/test-memrchr.c: Likewise.
21587         * tests/test-rawmemchr.c: Likewise.
21588         * tests/test-read-file.c: Likewise.
21589         * tests/test-rijndael.c: Likewise.
21590         * tests/test-sockets.c: Likewise.
21591         * tests/test-strchrnul.c: Likewise.
21592         * tests/test-strstr.c: Likewise.
21593         * tests/test-strtod.c: Likewise.
21594         * build-aux/ncftpput-ftp: Likewise.
21595
21596 2010-01-26  Eric Blake  <ebb9@byu.net>
21597
21598         ignore-value: update recommended header name
21599         * modules/ignore-value (Include): Only use <> for headers that
21600         exist in glibc.
21601
21602 2010-01-26  Jim Meyering  <meyering@redhat.com>
21603
21604         test-userspec.c: avoid compiler warnings
21605         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
21606         and "initialization discards qualifiers..." warnings.
21607         Put the first "uid" in its own scope, and make char* members "const".
21608
21609 2010-01-25  Bruno Haible  <bruno@clisp.org>
21610
21611         gnulib-tool: Make warning diagnostics consistent.
21612         * gnulib-tool (func_warning): New function.
21613         Use it everywhere where gnulib-tool produces output to stderr and it is
21614         not a fatal error.
21615
21616 2010-01-25  Bruno Haible  <bruno@clisp.org>
21617
21618         Fix test dependencies.
21619         * modules/xstrtol-tests (Depends-on): Add inttypes.
21620         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
21621
21622 2010-01-25 Pádraig Brady <P@draigBrady.com>
21623
21624         syntax-check: detect incorrect boolean macro values in config.h
21625         * modules/maintainer-makefile (configure.ac): Parameterize the location
21626         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
21627         The logic is from Eric Blake and the location indicated by Jim Meyering.
21628         Note the more natural CONFIG_HEADER name is prohibited by automake
21629         for backwards compatibility reasons.
21630         * top/maint.mk (sc_Wundef_boolean): New rule.
21631
21632 2010-01-25  Jim Meyering  <meyering@redhat.com>
21633
21634         bootstrap: detect MacOS 10.6's shasum, too
21635         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
21636         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
21637
21638 2010-01-23  Jim Meyering  <meyering@redhat.com>
21639
21640         xstrtoll: new module
21641         * modules/xstrtoll: New file.
21642         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
21643         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
21644         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
21645         ./configure fails if you use this module and lack "long long".
21646         * modules/xstrtoll-tests: New module.
21647         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
21648         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
21649         new init.sh-based test framework.
21650
21651 2010-01-24  Bruno Haible  <bruno@clisp.org>
21652
21653         Tests for module 'yn'.
21654         * modules/yn-tests: New file.
21655         * tests/test-yn.c: New file.
21656
21657         Tests for module 'y1'.
21658         * modules/y1-tests: New file.
21659         * tests/test-y1.c: New file.
21660
21661         Tests for module 'y0'.
21662         * modules/y0-tests: New file.
21663         * tests/test-y0.c: New file.
21664
21665         Tests for module 'tanh'.
21666         * modules/tanh-tests: New file.
21667         * tests/test-tanh.c: New file.
21668
21669         Tests for module 'tan'.
21670         * modules/tan-tests: New file.
21671         * tests/test-tan.c: New file.
21672
21673         Tests for module 'sqrt'.
21674         * modules/sqrt-tests: New file.
21675         * tests/test-sqrt.c: New file.
21676
21677         Tests for module 'sinh'.
21678         * modules/sinh-tests: New file.
21679         * tests/test-sinh.c: New file.
21680
21681         Tests for module 'sin'.
21682         * modules/sin-tests: New file.
21683         * tests/test-sin.c: New file.
21684
21685         Tests for module 'rint'.
21686         * modules/rint-tests: New file.
21687         * tests/test-rint.c: New file.
21688
21689         Tests for module 'remainder'.
21690         * modules/remainder-tests: New file.
21691         * tests/test-remainder.c: New file.
21692
21693         Tests for module 'pow'.
21694         * modules/pow-tests: New file.
21695         * tests/test-pow.c: New file.
21696
21697         Tests for module 'nextafter'.
21698         * modules/nextafter-tests: New file.
21699         * tests/test-nextafter.c: New file.
21700
21701         Tests for module 'modf'.
21702         * modules/modf-tests: New file.
21703         * tests/test-modf.c: New file.
21704
21705         Tests for module 'logb'.
21706         * modules/logb-tests: New file.
21707         * tests/test-logb.c: New file.
21708
21709         Tests for module 'log1p'.
21710         * modules/log1p-tests: New file.
21711         * tests/test-log1p.c: New file.
21712
21713         Tests for module 'log10'.
21714         * modules/log10-tests: New file.
21715         * tests/test-log10.c: New file.
21716
21717         Tests for module 'log'.
21718         * modules/log-tests: New file.
21719         * tests/test-log.c: New file.
21720
21721         Tests for module 'lgamma'.
21722         * modules/lgamma-tests: New file.
21723         * tests/test-lgamma.c: New file.
21724
21725         Tests for module 'ldexp'.
21726         * modules/ldexp-tests: New file.
21727         * tests/test-ldexp.c: New file.
21728
21729         Tests for module 'jn'.
21730         * modules/jn-tests: New file.
21731         * tests/test-jn.c: New file.
21732
21733         Tests for module 'j1'.
21734         * modules/j1-tests: New file.
21735         * tests/test-j1.c: New file.
21736
21737         Tests for module 'j0'.
21738         * modules/j0-tests: New file.
21739         * tests/test-j0.c: New file.
21740
21741         Tests for module 'hypot'.
21742         * modules/hypot-tests: New file.
21743         * tests/test-hypot.c: New file.
21744
21745         Tests for module 'fmod'.
21746         * modules/fmod-tests: New file.
21747         * tests/test-fmod.c: New file.
21748
21749         Tests for module 'fabs'.
21750         * modules/fabs-tests: New file.
21751         * tests/test-fabs.c: New file.
21752
21753         Tests for module 'exp'.
21754         * modules/exp-tests: New file.
21755         * tests/test-exp.c: New file.
21756
21757         Tests for module 'erfc'.
21758         * modules/erfc-tests: New file.
21759         * tests/test-erfc.c: New file.
21760
21761         Tests for module 'erf'.
21762         * modules/erf-tests: New file.
21763         * tests/test-erf.c: New file.
21764
21765         Tests for module 'cosh'.
21766         * modules/cosh-tests: New file.
21767         * tests/test-cosh.c: New file.
21768
21769         Tests for module 'cos'.
21770         * modules/cos-tests: New file.
21771         * tests/test-cos.c: New file.
21772
21773         Tests for module 'copysign'.
21774         * modules/copysign-tests: New file.
21775         * tests/test-copysign.c: New file.
21776
21777         Tests for module 'cbrt'.
21778         * modules/cbrt-tests: New file.
21779         * tests/test-cbrt.c: New file.
21780
21781         Tests for module 'atan2'.
21782         * modules/atan2-tests: New file.
21783         * tests/test-atan2.c: New file.
21784
21785         Tests for module 'atan'.
21786         * modules/atan-tests: New file.
21787         * tests/test-atan.c: New file.
21788
21789         Tests for module 'asin'.
21790         * modules/asin-tests: New file.
21791         * tests/test-asin.c: New file.
21792
21793         Tests for module 'acos'.
21794         * modules/acos-tests: New file.
21795         * tests/test-acos.c: New file.
21796
21797 2010-01-24  Bruno Haible  <bruno@clisp.org>
21798
21799         Fix tests for common <math.h> functions.
21800         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
21801         code snippet that references the function pointer, rather than merely
21802         calling the function. Substitute the FUNC_LIBM variable.
21803         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
21804         * modules/acos (configure.ac): Likewise.
21805         * modules/asin (configure.ac): Likewise.
21806         * modules/atan (configure.ac): Likewise.
21807         * modules/atan2 (configure.ac): Likewise.
21808         * modules/cbrt (configure.ac): Likewise.
21809         * modules/copysign (configure.ac): Likewise.
21810         * modules/cos (configure.ac): Likewise.
21811         * modules/cosh (configure.ac): Likewise.
21812         * modules/erf (configure.ac): Likewise.
21813         * modules/erfc (configure.ac): Likewise.
21814         * modules/exp (configure.ac): Likewise.
21815         * modules/fabs (configure.ac): Likewise.
21816         * modules/fmod (configure.ac): Likewise.
21817         * modules/hypot (configure.ac): Likewise.
21818         * modules/j0 (configure.ac): Likewise.
21819         * modules/j1 (configure.ac): Likewise.
21820         * modules/jn (configure.ac): Likewise.
21821         * modules/ldexp (configure.ac): Likewise.
21822         * modules/lgamma (configure.ac): Likewise.
21823         * modules/log (configure.ac): Likewise.
21824         * modules/log10 (configure.ac): Likewise.
21825         * modules/log1p (configure.ac): Likewise.
21826         * modules/logb (configure.ac): Likewise.
21827         * modules/modf (configure.ac): Likewise.
21828         * modules/nextafter (configure.ac): Likewise.
21829         * modules/pow (configure.ac): Likewise.
21830         * modules/remainder (configure.ac): Likewise.
21831         * modules/rint (configure.ac): Likewise.
21832         * modules/sin (configure.ac): Likewise.
21833         * modules/sinh (configure.ac): Likewise.
21834         * modules/tan (configure.ac): Likewise.
21835         * modules/tanh (configure.ac): Likewise.
21836         * modules/y0 (configure.ac): Likewise.
21837         * modules/y1 (configure.ac): Likewise.
21838         * modules/yn (configure.ac): Likewise.
21839
21840 2010-01-24  Bruno Haible  <bruno@clisp.org>
21841
21842         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
21843         * tests/test-acosl.c (x): New variable.
21844         (main): Store argument in x and fetch it from x.
21845         * tests/test-asinl.c (x): New variable.
21846         (main): Store argument in x and fetch it from x.
21847         * tests/test-atanl.c (x): New variable.
21848         (main): Store argument in x and fetch it from x.
21849         * tests/test-cosl.c (x): New variable.
21850         (main): Store argument in x and fetch it from x.
21851         * tests/test-expl.c (x): New variable.
21852         (main): Store argument in x and fetch it from x.
21853         * tests/test-logl.c (x): New variable.
21854         (main): Store argument in x and fetch it from x.
21855         * tests/test-sinl.c (x): New variable.
21856         (main): Store argument in x and fetch it from x.
21857         * tests/test-sqrtl.c (x): New variable.
21858         (main): Store argument in x and fetch it from x.
21859         * tests/test-tanl.c (x): New variable.
21860         (main): Store argument in x and fetch it from x.
21861
21862 2010-01-24  Bruno Haible  <bruno@clisp.org>
21863
21864         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
21865         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
21866         assignments to the initial TESTS_ENVIRONMENT.
21867         * doc/gnulib.texi (Unit test modules): Document it.
21868         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
21869         TESTS_ENVIRONMENT.
21870         * modules/btowc-tests (Makefile.am): Likewise.
21871         * modules/c-stack-tests (Makefile.am): Likewise.
21872         * modules/c-strcase-tests (Makefile.am): Likewise.
21873         * modules/copy-file-tests (Makefile.am): Likewise.
21874         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
21875         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
21876         * modules/mbrtowc-tests (Makefile.am): Likewise.
21877         * modules/mbscasecmp-tests (Makefile.am): Likewise.
21878         * modules/mbscasestr-tests (Makefile.am): Likewise.
21879         * modules/mbschr-tests (Makefile.am): Likewise.
21880         * modules/mbscspn-tests (Makefile.am): Likewise.
21881         * modules/mbsinit-tests (Makefile.am): Likewise.
21882         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
21883         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
21884         * modules/mbspbrk-tests (Makefile.am): Likewise.
21885         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
21886         * modules/mbsrchr-tests (Makefile.am): Likewise.
21887         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
21888         * modules/mbsspn-tests (Makefile.am): Likewise.
21889         * modules/mbsstr-tests (Makefile.am): Likewise.
21890         * modules/nl_langinfo-tests (Makefile.am): Likewise.
21891         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
21892         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
21893         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
21894         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
21895         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
21896         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
21897         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
21898         * modules/wcrtomb-tests (Makefile.am): Likewise.
21899         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
21900         * modules/wcsrtombs-tests (Makefile.am): Likewise.
21901         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
21902         assignments from TESTS_ENVIRONMENT.
21903         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
21904         augmentation.
21905         * modules/argp-version-etc-tests (Makefile.am): Likewise.
21906         * modules/atexit-tests (Makefile.am): Likewise.
21907         * modules/binary-io-tests (Makefile.am): Likewise.
21908         * modules/closein-tests (Makefile.am): Likewise.
21909         * modules/dprintf-posix-tests (Makefile.am): Likewise.
21910         * modules/exclude-tests (Makefile.am): Likewise.
21911         * modules/fflush-tests (Makefile.am): Likewise.
21912         * modules/fpending-tests (Makefile.am): Likewise.
21913         * modules/fprintf-posix-tests (Makefile.am): Likewise.
21914         * modules/freadahead-tests (Makefile.am): Likewise.
21915         * modules/freadptr-tests (Makefile.am): Likewise.
21916         * modules/freadseek-tests (Makefile.am): Likewise.
21917         * modules/fseek-tests (Makefile.am): Likewise.
21918         * modules/fseeko-tests (Makefile.am): Likewise.
21919         * modules/ftell-tests (Makefile.am): Likewise.
21920         * modules/ftello-tests (Makefile.am): Likewise.
21921         * modules/idpriv-drop-tests (Makefile.am): Likewise.
21922         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
21923         * modules/lseek-tests (Makefile.am): Likewise.
21924         * modules/parse-duration-tests (Makefile.am): Likewise.
21925         * modules/perror-tests (Makefile.am): Likewise.
21926         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
21927         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
21928         * modules/pipe-tests (Makefile.am): Likewise.
21929         * modules/pread-tests (Makefile.am): Likewise.
21930         * modules/printf-posix-tests (Makefile.am): Likewise.
21931         * modules/select-tests (Makefile.am): Likewise.
21932         * modules/sigpipe-tests (Makefile.am): Likewise.
21933         * modules/tsearch-tests (Makefile.am): Likewise.
21934         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
21935         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
21936         * modules/uniname/uniname-tests (Makefile.am): Likewise.
21937         * modules/uniwidth/width-tests (Makefile.am): Likewise.
21938         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
21939         * modules/version-etc-tests (Makefile.am): Likewise.
21940         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
21941         * modules/vprintf-posix-tests (Makefile.am): Likewise.
21942         * modules/xalloc-die-tests (Makefile.am): Likewise.
21943         * modules/xprintf-posix-tests (Makefile.am): Likewise.
21944         * modules/xstrtoimax-tests (Makefile.am): Likewise.
21945         * modules/xstrtol-tests (Makefile.am): Likewise.
21946         * modules/xstrtoumax-tests (Makefile.am): Likewise.
21947         * modules/yesno-tests (Makefile.am): Likewise.
21948         Suggested by Jim Meyering.
21949
21950 2010-01-24  Bruno Haible  <bruno@clisp.org>
21951
21952         More documentation.
21953         * doc/gnulib.texi (Writing modules): New chapter.
21954         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
21955         the new chapter.
21956
21957 2010-01-24  Jim Meyering  <meyering@redhat.com>
21958
21959         maint.mk: do not prepend "./" after filtering
21960         * top/maint.mk (_prepend_srcdir_prefix): New variable
21961         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
21962         "./" when $(srcdir) is ".".
21963
21964         define STREQ(a,b) consistently, removing useless parentheses
21965         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
21966         since the only risk is that "a" or "b" contains an unparenthesized
21967         comma, but if either did that, STREQ would have 3 or more arguments.
21968         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
21969         * lib/fts.c (STREQ): Remove unnecessary parentheses.
21970         * lib/hash-triple.c (STREQ): Likewise.
21971         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
21972         * lib/getugroups.c (STREQ): Likewise.
21973
21974 2010-01-23  Jim Meyering  <meyering@redhat.com>
21975
21976         maint.mk: fix syntax-check in a non-srcdir build directory
21977         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
21978         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
21979
21980 2010-01-22  Jim Meyering  <meyering@redhat.com>
21981
21982         userspec: add unit tests
21983         * tests/test-userspec.c: New file.
21984         * modules/userspec-tests: Likewise.
21985
21986 2010-01-21  Jim Meyering  <meyering@redhat.com>
21987
21988         maint.mk: handle source file names containing "." robustly
21989         * top/maint.mk (_dot_escaped_srcdir): Define.
21990         (VC_LIST): Use it in LHS of sed substitution.
21991
21992 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
21993
21994         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
21995         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
21996         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
21997         from a non-srcdir build.
21998
21999 2010-01-20  Eric Blake  <ebb9@byu.net>
22000
22001         warn-on-use: use instead of link-warning
22002         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
22003         * modules/unistd (Depends-on, Makefile.am): Likewise.
22004         * modules/arpa_inet (Depends-on): Replace link-warning with
22005         warn-on-use.
22006         (Makefile.am): Update rules accordingly.
22007         * modules/ctype (Depends-on, Makefile.am): Likewise.
22008         * modules/dirent (Depends-on, Makefile.am): Likewise.
22009         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
22010         * modules/inttypes (Depends-on, Makefile.am): Likewise.
22011         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22012         * modules/locale (Depends-on, Makefile.am): Likewise.
22013         * modules/math (Depends-on, Makefile.am): Likewise.
22014         * modules/search (Depends-on, Makefile.am): Likewise.
22015         * modules/signal (Depends-on, Makefile.am): Likewise.
22016         * modules/spawn (Depends-on, Makefile.am): Likewise.
22017         * modules/stdlib (Depends-on, Makefile.am): Likewise.
22018         * modules/string (Depends-on, Makefile.am): Likewise.
22019         * modules/strings (Depends-on, Makefile.am): Likewise.
22020         * modules/sys_file (Depends-on, Makefile.am): Likewise.
22021         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
22022         * modules/sys_select (Depends-on, Makefile.am): Likewise.
22023         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
22024         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
22025         * modules/sys_times (Depends-on, Makefile.am): Likewise.
22026         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22027         * modules/wchar (Depends-on, Makefile.am): Likewise.
22028         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
22029         should be poisoned.
22030         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
22031         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
22032         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
22033         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22034         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22035         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22036         * m4/math_h.m4 (gl_MATH_H): Likewise.
22037         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22038         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22039         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22040         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22041         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22042         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22043         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
22044         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
22045         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22046         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22047         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22048         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22049         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22050         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22051         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22052         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22053         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
22054         GL_LINK_WARNING.
22055         * lib/ctype.in.h: Likewise.
22056         * lib/dirent.in.h: Likewise.
22057         * lib/fcntl.in.h: Likewise.
22058         * lib/inttypes.in.h: Likewise.
22059         * lib/langinfo.in.h: Likewise.
22060         * lib/locale.in.h: Likewise.
22061         * lib/math.in.h: Likewise.
22062         * lib/search.in.h: Likewise.
22063         * lib/signal.in.h: Likewise.
22064         * lib/spawn.in.h: Likewise.
22065         * lib/stdio.in.h: Likewise.
22066         * lib/stdlib.in.h: Likewise.
22067         * lib/string.in.h: Likewise.
22068         * lib/strings.in.h: Likewise.
22069         * lib/sys_file.in.h: Likewise.
22070         * lib/sys_ioctl.in.h: Likewise.
22071         * lib/sys_select.in.h: Likewise.
22072         * lib/sys_socket.in.h: Likewise.
22073         * lib/sys_stat.in.h: Likewise.
22074         * lib/sys_times.in.h: Likewise.
22075         * lib/sys_utsname.in.h: Likewise.
22076         * lib/unistd.in.h: Likewise.
22077         * lib/wchar.in.h: Likewise.
22078
22079 2010-01-20  Bruno Haible  <bruno@clisp.org>
22080
22081         Avoid duplicate -lm.
22082         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
22083         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
22084         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
22085         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
22086         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
22087         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
22088         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
22089         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
22090         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
22091         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
22092         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
22093         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22094         Reported by Paolo Bonzini.
22095
22096 2010-01-19  Bruno Haible  <bruno@clisp.org>
22097
22098         langinfo, nl_langinfo: Relicense under LGPLv2+.
22099         * modules/langinfo (License): Change to LGPLv2+.
22100         * modules/nl_langinfo (License): Likewise.
22101         Patch by David Lutterkort <lutter@redhat.com>.
22102
22103 2010-01-19  Bruno Haible  <bruno@clisp.org>
22104
22105         Avoid compilation error with cc on OSF/1 5.1.
22106         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
22107         statement, not before.
22108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22109
22110 2010-01-18  Bruno Haible  <bruno@clisp.org>
22111
22112         Avoid a link error due to the __printf__ symbol.
22113         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
22114         and 2.6.x.
22115         (__format__, __printf__): Remove definitions.
22116         * lib/argp-fmtstream.h: Likewise.
22117         * lib/argp.h: Likewise.
22118         * lib/error.h: Likewise.
22119         * lib/vasnprintf.h: Likewise.
22120         * lib/xprintf.h: Likewise.
22121         * lib/xvasprintf.h: Likewise.
22122         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22123
22124 2010-01-18  Bruno Haible  <bruno@clisp.org>
22125
22126         Tests for module 'tanl'.
22127         * modules/tanl-tests: New file.
22128         * tests/test-tanl.c: New file.
22129
22130         Tests for module 'sqrtl'.
22131         * modules/sqrtl-tests: New file.
22132         * tests/test-sqrtl.c: New file.
22133
22134         Tests for module 'sinl'.
22135         * modules/sinl-tests: New file.
22136         * tests/test-sinl.c: New file.
22137
22138         Tests for module 'logl'.
22139         * modules/logl-tests: New file.
22140         * tests/test-logl.c: New file.
22141
22142         Tests for module 'expl'.
22143         * modules/expl-tests: New file.
22144         * tests/test-expl.c: New file.
22145
22146         Tests for module 'cosl'.
22147         * modules/cosl-tests: New file.
22148         * tests/test-cosl.c: New file.
22149
22150         Tests for module 'atanl'.
22151         * modules/atanl-tests: New file.
22152         * tests/test-atanl.c: New file.
22153
22154         Tests for module 'asinl'.
22155         * modules/asinl-tests: New file.
22156         * tests/test-asinl.c: New file.
22157
22158         Tests for module 'acosl'.
22159         * modules/acosl-tests: New file.
22160         * tests/test-acosl.c: New file.
22161
22162         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22163         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
22164         tanl): Use the standard gnulib idiom.
22165         * lib/cosl.c: Don't include trigl.c and sincosl.c.
22166         * lib/sinl.c: Likewise.
22167         * lib/tanl.c: Don't include trigl.c.
22168         (kernel_tanl): Make static.
22169         * lib/sincosl.c: Include trigl.h first.
22170         * lib/trigl.c: Likewise.
22171         * m4/acosl.m4: New file.
22172         * m4/asinl.m4: New file.
22173         * m4/atanl.m4: New file.
22174         * m4/cosl.m4: New file.
22175         * m4/expl.m4: New file.
22176         * m4/logl.m4: New file.
22177         * m4/sinl.m4: New file.
22178         * m4/sqrtl.m4: New file.
22179         * m4/tanl.m4: New file.
22180         * m4/mathl.m4: Remove file.
22181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
22182         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
22183         Don't initialize GNULIB_MATHL.
22184         * modules/acosl: New file.
22185         * modules/asinl: New file.
22186         * modules/atanl: New file.
22187         * modules/cosl: New file.
22188         * modules/expl: New file.
22189         * modules/logl: New file.
22190         * modules/sinl: New file.
22191         * modules/sqrtl: New file.
22192         * modules/tanl: New file.
22193         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
22194         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
22195         substitute GNULIB_MATHL.
22196         * modules/mathl: Rewritten.
22197         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
22198         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
22199         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
22200         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
22201         * doc/posix-functions/expl.texi: Mention the 'expl' module.
22202         * doc/posix-functions/logl.texi: Mention the 'logl' module.
22203         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
22204         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
22205         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
22206
22207 2010-01-18  Bruno Haible  <bruno@clisp.org>
22208
22209         sqrt: Make gl_FUNC_SQRT requirable.
22210         * m4/sqrt.m4: New file.
22211         * modules/sqrt (Files): Add it.
22212         (configure.ac): Invoke gl_FUNC_SQRT.
22213
22214 2010-01-18  Bruno Haible  <bruno@clisp.org>
22215
22216         New modules for common <math.h> functions.
22217         * m4/mathfunc.m4: New file.
22218         * modules/acos: New file.
22219         * modules/asin: New file.
22220         * modules/atan: New file.
22221         * modules/atan2: New file.
22222         * modules/cbrt: New file.
22223         * modules/copysign: New file.
22224         * modules/cos: New file.
22225         * modules/cosh: New file.
22226         * modules/erf: New file.
22227         * modules/erfc: New file.
22228         * modules/exp: New file.
22229         * modules/fabs: New file.
22230         * modules/fmod: New file.
22231         * modules/hypot: New file.
22232         * modules/j0: New file.
22233         * modules/j1: New file.
22234         * modules/jn: New file.
22235         * modules/ldexp: New file.
22236         * modules/lgamma: New file.
22237         * modules/log: New file.
22238         * modules/log10: New file.
22239         * modules/log1p: New file.
22240         * modules/logb: New file.
22241         * modules/modf: New file.
22242         * modules/nextafter: New file.
22243         * modules/pow: New file.
22244         * modules/remainder: New file.
22245         * modules/rint: New file.
22246         * modules/sin: New file.
22247         * modules/sinh: New file.
22248         * modules/sqrt: New file.
22249         * modules/tan: New file.
22250         * modules/tanh: New file.
22251         * modules/y0: New file.
22252         * modules/y1: New file.
22253         * modules/yn: New file.
22254         * doc/posix-functions/acos.texi: Mention the 'acos' module.
22255         * doc/posix-functions/asin.texi: Mention the 'asin' module.
22256         * doc/posix-functions/atan.texi: Mention the 'atan' module.
22257         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
22258         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
22259         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
22260         * doc/posix-functions/cos.texi: Mention the 'cos' module.
22261         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
22262         * doc/posix-functions/erf.texi: Mention the 'erf' module.
22263         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
22264         * doc/posix-functions/exp.texi: Mention the 'exp' module.
22265         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
22266         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
22267         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
22268         * doc/posix-functions/j0.texi: Mention the 'j0' module.
22269         * doc/posix-functions/j1.texi: Mention the 'j1' module.
22270         * doc/posix-functions/jn.texi: Mention the 'jn' module.
22271         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
22272         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
22273         * doc/posix-functions/log.texi: Mention the 'log' module.
22274         * doc/posix-functions/log10.texi: Mention the 'log10' module.
22275         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
22276         * doc/posix-functions/logb.texi: Mention the 'logb' module.
22277         * doc/posix-functions/modf.texi: Mention the 'modf' module.
22278         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
22279         * doc/posix-functions/pow.texi: Mention the 'pow' module.
22280         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
22281         * doc/posix-functions/rint.texi: Mention the 'rint' module.
22282         * doc/posix-functions/sin.texi: Mention the 'sin' module.
22283         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
22284         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
22285         * doc/posix-functions/tan.texi: Mention the 'tan' module.
22286         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
22287         * doc/posix-functions/y0.texi: Mention the 'y0' module.
22288         * doc/posix-functions/y1.texi: Mention the 'y1' module.
22289         * doc/posix-functions/yn.texi: Mention the 'yn' module.
22290
22291 2010-01-18  Jim Meyering  <meyering@redhat.com>
22292
22293         ignore-value: relax license to LGPLv2+
22294         * modules/ignore-value (License): Relax to LGPLv2+.
22295
22296         getdate: don't leak when TZ contains two or more '"'s
22297         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
22298         double quote in TZ after the first one.
22299
22300         readtokens: do not leak internal token_lengths buffer
22301         * lib/readtokens.c (readtokens): Free the local, lengths,
22302         when the supplied "token_lengths" parameter is NULL.
22303
22304 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22305
22306         Fix a couple of missing LIBTHREAD link failures on AIX.
22307         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
22308         $(LIBTHREAD).
22309         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
22310
22311         Link test-poll against INET_PTON_LIB.
22312         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
22313         for inet_pton on Solaris 10.
22314
22315 2010-01-17  Bruno Haible  <bruno@clisp.org>
22316
22317         unistdio/*-sprintf: Fix typo in module description.
22318         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
22319         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
22320         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
22321         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
22322         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
22323         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
22324         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
22325         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22326
22327 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22328
22329         gnulib-tool: fix filelist for AIX, HP-UX ksh.
22330         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
22331         variables in shell case patterns, for AIX and HP-UX ksh.
22332
22333         Split large sed scripts, for HP-UX sed.
22334         * modules/stdio: Split sed scripts around 50 sed commands,
22335         to avoid HP-UX limit of 99 commands, in the near future.
22336         * modules/string: Likewise.
22337         * modules/unistd: Likewise.
22338
22339         gnulib-tool: avoid writing in the current directory.
22340         * gnulib-tool (func_emit_lib_Makefile_am)
22341         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
22342         not in the current directory, so concurrent gnulib-tool
22343         instances do not interfere.
22344
22345 2010-01-16  Jim Meyering  <meyering@redhat.com>
22346
22347         doc: update users.txt
22348         * users.txt: Add grep.
22349         (diffutils, gzip): Update URLs.
22350
22351 2010-01-12  Bruno Haible  <bruno@clisp.org>
22352
22353         posix_spawn: Avoid test failure on Cygwin.
22354         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
22355         characters.
22356         Reported by Simon Josefsson.
22357
22358 2010-01-12  Bruno Haible  <bruno@clisp.org>
22359
22360         * tests/test-cond.c (main): When skipping the test, show the reason.
22361
22362 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22363
22364         * lib/striconv.c (str_cd_iconv): Avoid if before free.
22365
22366 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22367
22368         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
22369         VC_LIST_ALWAYS_EXCLUDE_REGEX.
22370
22371 2010-01-12  Eric Blake  <ebb9@byu.net>
22372
22373         build: guarantee AS_VAR_IF
22374         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
22375         (gl_AS_VAR_IF): Move...
22376         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
22377         Reported by Simon Josefsson.
22378
22379 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22380
22381         * lib/stdio.in.h: Fix typo.
22382
22383 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22384
22385         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
22386         libgpg-error.
22387
22388 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22389
22390         * tests/test-xalloc-die.sh: Use $EXEEXT.
22391
22392 2010-01-12  Simon Josefsson  <simon@josefsson.org>
22393             Bruno Haible  <bruno@clisp.org>
22394
22395         getlogin, getlogin_r: Avoid test failure.
22396         * tests/test-getlogin.c: Include <stdio.h>.
22397         (main): Skip the test when the function fails because stdin is not a
22398         tty.
22399         * tests/test-getlogin_r.c: Include <stdio.h>.
22400         (main): Skip the test when the function fails because stdin is not a
22401         tty.
22402
22403 2010-01-11  Eric Blake  <ebb9@byu.net>
22404
22405         tests: avoid more large file warnings
22406         * tests/test-fflush.c: Avoid warning about ftell use.
22407         * tests/test-fseek.c: Avoid warning about fseek use.
22408
22409 2010-01-10  Bruno Haible  <bruno@clisp.org>
22410
22411         nproc: Work better on Linux when /proc and /sys are not mounted.
22412         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
22413         as lower bound when, on glibc/Linux systems,
22414         sysconf (_SC_NPROCESSORS_CONF) returns 1.
22415         Suggested by Pádraig Brady <P@draigbrady.com>.
22416         Reported by Dmitry V. Levin <ldv@altlinux.org>.
22417
22418         nproc: Refactor.
22419         * lib/nproc.c (num_processors_via_affinity_mask): New function,
22420         extracted from num_processors.
22421         (num_processors): Call it.
22422
22423 2010-01-11  Jim Meyering  <meyering@redhat.com>
22424
22425         utimecmp: avoid new warning from upcoming gcc-4.5.0
22426         * lib/utimecmp.c (BILLION): Define using #define rather than an
22427         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
22428
22429 2010-01-11  Eric Blake  <ebb9@byu.net>
22430
22431         math: add portability warnings for classification macros
22432         * modules/math (Depends-on): Add warn-on-use.
22433         (Makefile.am): Provide new substitutions.
22434         * m4/math_h.m4 (gl_MATH_H): Require inline.
22435         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
22436         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
22437         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
22438         implement warnings.
22439
22440         unistd: warn on use of environ without module
22441         * modules/unistd (Depends-on): Add warn-on-use.
22442         (Makefile.am): Provide new substitutions.
22443         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
22444         * lib/unistd.in.h (environ): Wrap with a warning helper function.
22445
22446         stdio: warn on suspicious uses
22447         * modules/stdio (Depends-on): Add warn-on-use.
22448         (Makefile.am): Provide new substitutions.
22449         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
22450         fseeko.
22451         * lib/stdio.in.h (gets): Always warn on use.
22452         (fseek, ftell): Adjust when warnings are issued, and honor
22453         _GL_NO_LARGE_FILES as a way to silence the warning.
22454         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
22455         any warning about large file offsets.
22456         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
22457         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
22458         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
22459         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
22460         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
22461         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
22462         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
22463         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
22464
22465         warn-on-use: new module
22466         * modules/warn-on-use: New file.
22467         * build-aux/warn-on-use.h: Likewise.
22468         * m4/warn-on-use.m4: Likewise.
22469         * MODULES.html.sh (Support for building): Mention it.
22470
22471 2010-01-10  Bruno Haible  <bruno@clisp.org>
22472
22473         Tests for module 'unistr/u32-strdup'.
22474         * modules/unistr/u32-strdup-tests: New file.
22475         * tests/unistr/test-u32-strdup.c: New file.
22476
22477         Tests for module 'unistr/u16-strdup'.
22478         * modules/unistr/u16-strdup-tests: New file.
22479         * tests/unistr/test-u16-strdup.c: New file.
22480
22481         Tests for module 'unistr/u8-strdup'.
22482         * modules/unistr/u8-strdup-tests: New file.
22483         * tests/unistr/test-u8-strdup.c: New file.
22484         * tests/unistr/test-strdup.h: New file.
22485
22486         Tests for module 'unistr/u32-strncmp'.
22487         * modules/unistr/u32-strncmp-tests: New file.
22488         * tests/unistr/test-u32-strncmp.c: New file.
22489
22490         Tests for module 'unistr/u16-strncmp'.
22491         * modules/unistr/u16-strncmp-tests: New file.
22492         * tests/unistr/test-u16-strncmp.c: New file.
22493
22494         Tests for module 'unistr/u8-strncmp'.
22495         * modules/unistr/u8-strncmp-tests: New file.
22496         * tests/unistr/test-u8-strncmp.c: New file.
22497         * tests/unistr/test-strncmp.h: New file.
22498
22499         Tests for module 'unistr/u32-strcoll'.
22500         * modules/unistr/u32-strcoll-tests: New file.
22501         * tests/unistr/test-u32-strcoll.c: New file.
22502
22503         Tests for module 'unistr/u16-strcoll'.
22504         * modules/unistr/u16-strcoll-tests: New file.
22505         * tests/unistr/test-u16-strcoll.c: New file.
22506
22507         Tests for module 'unistr/u8-strcoll'.
22508         * modules/unistr/u8-strcoll-tests: New file.
22509         * tests/unistr/test-u8-strcoll.c: New file.
22510
22511         Tests for module 'unistr/u32-strcmp'.
22512         * modules/unistr/u32-strcmp-tests: New file.
22513         * tests/unistr/test-u32-strcmp.c: New file.
22514         * tests/unistr/test-u32-strcmp.h: New file.
22515
22516         Tests for module 'unistr/u16-strcmp'.
22517         * modules/unistr/u16-strcmp-tests: New file.
22518         * tests/unistr/test-u16-strcmp.c: New file.
22519         * tests/unistr/test-u16-strcmp.h: New file.
22520
22521         Tests for module 'unistr/u8-strcmp'.
22522         * modules/unistr/u8-strcmp-tests: New file.
22523         * tests/unistr/test-u8-strcmp.c: New file.
22524         * tests/unistr/test-u8-strcmp.h: New file.
22525         * tests/unistr/test-strcmp.h: New file.
22526
22527         Tests for module 'unistr/u32-strncat'.
22528         * modules/unistr/u32-strncat-tests: New file.
22529         * tests/unistr/test-u32-strncat.c: New file.
22530
22531         Tests for module 'unistr/u16-strncat'.
22532         * modules/unistr/u16-strncat-tests: New file.
22533         * tests/unistr/test-u16-strncat.c: New file.
22534
22535         Tests for module 'unistr/u8-strncat'.
22536         * modules/unistr/u8-strncat-tests: New file.
22537         * tests/unistr/test-u8-strncat.c: New file.
22538         * tests/unistr/test-strncat.h: New file.
22539
22540         Tests for module 'unistr/u32-strcat'.
22541         * modules/unistr/u32-strcat-tests: New file.
22542         * tests/unistr/test-u32-strcat.c: New file.
22543
22544         Tests for module 'unistr/u16-strcat'.
22545         * modules/unistr/u16-strcat-tests: New file.
22546         * tests/unistr/test-u16-strcat.c: New file.
22547
22548         Tests for module 'unistr/u8-strcat'.
22549         * modules/unistr/u8-strcat-tests: New file.
22550         * tests/unistr/test-u8-strcat.c: New file.
22551         * tests/unistr/test-strcat.h: New file.
22552
22553         Tests for module 'unistr/u32-stpncpy'.
22554         * modules/unistr/u32-stpncpy-tests: New file.
22555         * tests/unistr/test-u32-stpncpy.c: New file.
22556
22557         Tests for module 'unistr/u16-stpncpy'.
22558         * modules/unistr/u16-stpncpy-tests: New file.
22559         * tests/unistr/test-u16-stpncpy.c: New file.
22560
22561         Tests for module 'unistr/u8-stpncpy'.
22562         * modules/unistr/u8-stpncpy-tests: New file.
22563         * tests/unistr/test-u8-stpncpy.c: New file.
22564         * tests/unistr/test-stpncpy.h: New file.
22565
22566         Tests for module 'unistr/u32-strncpy'.
22567         * modules/unistr/u32-strncpy-tests: New file.
22568         * tests/unistr/test-u32-strncpy.c: New file.
22569
22570         Tests for module 'unistr/u16-strncpy'.
22571         * modules/unistr/u16-strncpy-tests: New file.
22572         * tests/unistr/test-u16-strncpy.c: New file.
22573
22574         Tests for module 'unistr/u8-strncpy'.
22575         * modules/unistr/u8-strncpy-tests: New file.
22576         * tests/unistr/test-u8-strncpy.c: New file.
22577         * tests/unistr/test-strncpy.h: New file.
22578
22579         Tests for module 'unistr/u32-stpcpy'.
22580         * modules/unistr/u32-stpcpy-tests: New file.
22581         * tests/unistr/test-u32-stpcpy.c: New file.
22582
22583         Tests for module 'unistr/u16-stpcpy'.
22584         * modules/unistr/u16-stpcpy-tests: New file.
22585         * tests/unistr/test-u16-stpcpy.c: New file.
22586
22587         Tests for module 'unistr/u8-stpcpy'.
22588         * modules/unistr/u8-stpcpy-tests: New file.
22589         * tests/unistr/test-u8-stpcpy.c: New file.
22590         * tests/unistr/test-stpcpy.h: New file.
22591
22592         Tests for module 'unistr/u32-strcpy'.
22593         * modules/unistr/u32-strcpy-tests: New file.
22594         * tests/unistr/test-u32-strcpy.c: New file.
22595
22596         Tests for module 'unistr/u16-strcpy'.
22597         * modules/unistr/u16-strcpy-tests: New file.
22598         * tests/unistr/test-u16-strcpy.c: New file.
22599
22600         Tests for module 'unistr/u8-strcpy'.
22601         * modules/unistr/u8-strcpy-tests: New file.
22602         * tests/unistr/test-u8-strcpy.c: New file.
22603         * tests/unistr/test-strcpy.h: New file.
22604
22605         Tests for module 'unistr/u32-strnlen'.
22606         * modules/unistr/u32-strnlen-tests: New file.
22607         * tests/unistr/test-u32-strnlen.c: New file.
22608
22609         Tests for module 'unistr/u16-strnlen'.
22610         * modules/unistr/u16-strnlen-tests: New file.
22611         * tests/unistr/test-u16-strnlen.c: New file.
22612
22613         Tests for module 'unistr/u8-strnlen'.
22614         * modules/unistr/u8-strnlen-tests: New file.
22615         * tests/unistr/test-u8-strnlen.c: New file.
22616         * tests/unistr/test-strnlen.h: New file.
22617
22618         Tests for module 'unistr/u32-strlen'.
22619         * modules/unistr/u32-strlen-tests: New file.
22620         * tests/unistr/test-u32-strlen.c: New file.
22621
22622         Tests for module 'unistr/u16-strlen'.
22623         * modules/unistr/u16-strlen-tests: New file.
22624         * tests/unistr/test-u16-strlen.c: New file.
22625
22626         Tests for module 'unistr/u8-strlen'.
22627         * modules/unistr/u8-strlen-tests: New file.
22628         * tests/unistr/test-u8-strlen.c: New file.
22629
22630         Tests for module 'unistr/u32-prev'.
22631         * modules/unistr/u32-prev-tests: New file.
22632         * tests/unistr/test-u32-prev.c: New file.
22633
22634         Tests for module 'unistr/u16-prev'.
22635         * modules/unistr/u16-prev-tests: New file.
22636         * tests/unistr/test-u16-prev.c: New file.
22637
22638         Tests for module 'unistr/u8-prev'.
22639         * modules/unistr/u8-prev-tests: New file.
22640         * tests/unistr/test-u8-prev.c: New file.
22641
22642         Tests for module 'unistr/u32-next'.
22643         * modules/unistr/u32-next-tests: New file.
22644         * tests/unistr/test-u32-next.c: New file.
22645
22646         Tests for module 'unistr/u16-next'.
22647         * modules/unistr/u16-next-tests: New file.
22648         * tests/unistr/test-u16-next.c: New file.
22649
22650         Tests for module 'unistr/u8-next'.
22651         * modules/unistr/u8-next-tests: New file.
22652         * tests/unistr/test-u8-next.c: New file.
22653
22654         Tests for module 'unistr/u32-strmbtouc'.
22655         * modules/unistr/u32-strmbtouc-tests: New file.
22656         * tests/unistr/test-u32-strmbtouc.c: New file.
22657
22658         Tests for module 'unistr/u16-strmbtouc'.
22659         * modules/unistr/u16-strmbtouc-tests: New file.
22660         * tests/unistr/test-u16-strmbtouc.c: New file.
22661
22662         Tests for module 'unistr/u8-strmbtouc'.
22663         * modules/unistr/u8-strmbtouc-tests: New file.
22664         * tests/unistr/test-u8-strmbtouc.c: New file.
22665
22666         Tests for module 'unistr/u32-strmblen'.
22667         * modules/unistr/u32-strmblen-tests: New file.
22668         * tests/unistr/test-u32-strmblen.c: New file.
22669
22670         Tests for module 'unistr/u16-strmblen'.
22671         * modules/unistr/u16-strmblen-tests: New file.
22672         * tests/unistr/test-u16-strmblen.c: New file.
22673
22674         Tests for module 'unistr/u8-strmblen'.
22675         * modules/unistr/u8-strmblen-tests: New file.
22676         * tests/unistr/test-u8-strmblen.c: New file.
22677
22678         Tests for module 'unistr/u32-cpy-alloc'.
22679         * modules/unistr/u32-cpy-alloc-tests: New file.
22680         * tests/unistr/test-u32-cpy-alloc.c: New file.
22681
22682         Tests for module 'unistr/u16-cpy-alloc'.
22683         * modules/unistr/u16-cpy-alloc-tests: New file.
22684         * tests/unistr/test-u16-cpy-alloc.c: New file.
22685
22686         Tests for module 'unistr/u8-cpy-alloc'.
22687         * modules/unistr/u8-cpy-alloc-tests: New file.
22688         * tests/unistr/test-u8-cpy-alloc.c: New file.
22689         * tests/unistr/test-cpy-alloc.h: New file.
22690
22691         Tests for module 'unistr/u32-mbsnlen'.
22692         * modules/unistr/u32-mbsnlen-tests: New file.
22693         * tests/unistr/test-u32-mbsnlen.c: New file.
22694
22695         Tests for module 'unistr/u16-mbsnlen'.
22696         * modules/unistr/u16-mbsnlen-tests: New file.
22697         * tests/unistr/test-u16-mbsnlen.c: New file.
22698
22699         Tests for module 'unistr/u8-mbsnlen'.
22700         * modules/unistr/u8-mbsnlen-tests: New file.
22701         * tests/unistr/test-u8-mbsnlen.c: New file.
22702
22703         Tests for module 'unistr/u32-chr'.
22704         * modules/unistr/u32-chr-tests: New file.
22705         * tests/unistr/test-u32-chr.c: New file.
22706
22707         Tests for module 'unistr/u16-chr'.
22708         * modules/unistr/u16-chr-tests: New file.
22709         * tests/unistr/test-u16-chr.c: New file.
22710
22711         Tests for module 'unistr/u8-chr'.
22712         * modules/unistr/u8-chr-tests: New file.
22713         * tests/unistr/test-u8-chr.c: New file.
22714         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
22715
22716         Tests for module 'unistr/u32-cmp2'.
22717         * modules/unistr/u32-cmp2-tests: New file.
22718         * tests/unistr/test-u32-cmp2.c: New file.
22719
22720         Tests for module 'unistr/u16-cmp2'.
22721         * modules/unistr/u16-cmp2-tests: New file.
22722         * tests/unistr/test-u16-cmp2.c: New file.
22723
22724         Tests for module 'unistr/u8-cmp2'.
22725         * modules/unistr/u8-cmp2-tests: New file.
22726         * tests/unistr/test-u8-cmp2.c: New file.
22727         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
22728
22729         Tests for module 'unistr/u32-cmp'.
22730         * modules/unistr/u32-cmp-tests: New file.
22731         * tests/unistr/test-u32-cmp.c: New file.
22732
22733         Tests for module 'unistr/u16-cmp'.
22734         * modules/unistr/u16-cmp-tests: New file.
22735         * tests/unistr/test-u16-cmp.c: New file.
22736
22737         Tests for module 'unistr/u8-cmp'.
22738         * modules/unistr/u8-cmp-tests: New file.
22739         * tests/unistr/test-u8-cmp.c: New file.
22740         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
22741
22742         Tests for module 'unistr/u32-set'.
22743         * modules/unistr/u32-set-tests: New file.
22744         * tests/unistr/test-u32-set.c: New file.
22745
22746         Tests for module 'unistr/u16-set'.
22747         * modules/unistr/u16-set-tests: New file.
22748         * tests/unistr/test-u16-set.c: New file.
22749
22750         Tests for module 'unistr/u8-set'.
22751         * modules/unistr/u8-set-tests: New file.
22752         * tests/unistr/test-u8-set.c: New file.
22753         * tests/unistr/test-set.h: New file.
22754
22755         Tests for module 'unistr/u32-move'.
22756         * modules/unistr/u32-move-tests: New file.
22757         * tests/unistr/test-u32-move.c: New file.
22758
22759         Tests for module 'unistr/u16-move'.
22760         * modules/unistr/u16-move-tests: New file.
22761         * tests/unistr/test-u16-move.c: New file.
22762
22763         Tests for module 'unistr/u8-move'.
22764         * modules/unistr/u8-move-tests: New file.
22765         * tests/unistr/test-u8-move.c: New file.
22766         * tests/unistr/test-move.h: New file.
22767
22768         Tests for module 'unistr/u32-cpy'.
22769         * modules/unistr/u32-cpy-tests: New file.
22770         * tests/unistr/test-u32-cpy.c: New file.
22771
22772         Tests for module 'unistr/u16-cpy'.
22773         * modules/unistr/u16-cpy-tests: New file.
22774         * tests/unistr/test-u16-cpy.c: New file.
22775
22776         Tests for module 'unistr/u8-cpy'.
22777         * modules/unistr/u8-cpy-tests: New file.
22778         * tests/unistr/test-u8-cpy.c: New file.
22779         * tests/unistr/test-cpy.h: New file.
22780
22781 2010-01-09  Bruno Haible  <bruno@clisp.org>
22782
22783         Tests for module 'unistr/u32-uctomb'.
22784         * modules/unistr/u32-uctomb-tests: New file.
22785         * tests/unistr/test-u32-uctomb.c: New file.
22786
22787         Tests for module 'unistr/u16-uctomb'.
22788         * modules/unistr/u16-uctomb-tests: New file.
22789         * tests/unistr/test-u16-uctomb.c: New file.
22790
22791         Tests for module 'unistr/u8-uctomb'.
22792         * modules/unistr/u8-uctomb-tests: New file.
22793         * tests/unistr/test-u8-uctomb.c: New file.
22794
22795         Tests for module 'unistr/u32-mbtoucr'.
22796         * modules/unistr/u32-mbtoucr-tests: New file.
22797         * tests/unistr/test-u32-mbtoucr.c: New file.
22798
22799         Tests for module 'unistr/u16-mbtoucr'.
22800         * modules/unistr/u16-mbtoucr-tests: New file.
22801         * tests/unistr/test-u16-mbtoucr.c: New file.
22802
22803         Tests for module 'unistr/u8-mbtoucr'.
22804         * modules/unistr/u8-mbtoucr-tests: New file.
22805         * tests/unistr/test-u8-mbtoucr.c: New file.
22806
22807         Tests for module 'unistr/u32-mbtouc'.
22808         * modules/unistr/u32-mbtouc-tests: New file.
22809         * tests/unistr/test-u32-mbtouc.c: New file.
22810
22811         Tests for module 'unistr/u16-mbtouc'.
22812         * modules/unistr/u16-mbtouc-tests: New file.
22813         * tests/unistr/test-u16-mbtouc.c: New file.
22814
22815         Tests for module 'unistr/u8-mbtouc'.
22816         * modules/unistr/u8-mbtouc-tests: New file.
22817         * tests/unistr/test-u8-mbtouc.c: New file.
22818
22819         Tests for module 'unistr/u32-mbtouc-unsafe'.
22820         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
22821         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
22822         * tests/unistr/test-u32-mbtouc.h: New file.
22823
22824         Tests for module 'unistr/u16-mbtouc-unsafe'.
22825         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
22826         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
22827         * tests/unistr/test-u16-mbtouc.h: New file.
22828
22829         Tests for module 'unistr/u8-mbtouc-unsafe'.
22830         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
22831         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
22832         * tests/unistr/test-u8-mbtouc.h: New file.
22833
22834         Tests for module 'unistr/u32-mblen'.
22835         * modules/unistr/u32-mblen-tests: New file.
22836         * tests/unistr/test-u32-mblen.c: New file.
22837
22838         Tests for module 'unistr/u16-mblen'.
22839         * modules/unistr/u16-mblen-tests: New file.
22840         * tests/unistr/test-u16-mblen.c: New file.
22841
22842         Tests for module 'unistr/u8-mblen'.
22843         * modules/unistr/u8-mblen-tests: New file.
22844         * tests/unistr/test-u8-mblen.c: New file.
22845
22846         Tests for module 'unistr/u32-to-u16'.
22847         * modules/unistr/u32-to-u16-tests: New file.
22848         * tests/unistr/test-u32-to-u16.c: New file.
22849
22850         Tests for module 'unistr/u32-to-u8'.
22851         * modules/unistr/u32-to-u8-tests: New file.
22852         * tests/unistr/test-u32-to-u8.c: New file.
22853
22854         Tests for module 'unistr/u16-to-u32'.
22855         * modules/unistr/u16-to-u32-tests: New file.
22856         * tests/unistr/test-u16-to-u32.c: New file.
22857
22858         Tests for module 'unistr/u16-to-u8'.
22859         * modules/unistr/u16-to-u8-tests: New file.
22860         * tests/unistr/test-u16-to-u8.c: New file.
22861
22862         Tests for module 'unistr/u8-to-u32'.
22863         * modules/unistr/u8-to-u32-tests: New file.
22864         * tests/unistr/test-u8-to-u32.c: New file.
22865
22866         Tests for module 'unistr/u8-to-u16'.
22867         * modules/unistr/u8-to-u16-tests: New file.
22868         * tests/unistr/test-u8-to-u16.c: New file.
22869
22870         Tests for module 'unistr/u32-check'.
22871         * modules/unistr/u32-check-tests: New file.
22872         * tests/unistr/test-u32-check.c: New file.
22873
22874         Tests for module 'unistr/u16-check'.
22875         * modules/unistr/u16-check-tests: New file.
22876         * tests/unistr/test-u16-check.c: New file.
22877
22878         Tests for module 'unistr/u8-check'.
22879         * modules/unistr/u8-check-tests: New file.
22880         * tests/unistr/test-u8-check.c: New file.
22881
22882         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
22883         (category_equals): New function.
22884         (main): Add more tests.
22885         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
22886
22887         * tests/unictype/test-bidi_byname.c (main): Add more tests.
22888
22889 2010-01-10  Bruno Haible  <bruno@clisp.org>
22890
22891         unistr/u*-strcoll: Try harder to distinguish different strings.
22892         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
22893         compare s1 and s2 to see if they are different.
22894
22895 2010-01-10  Bruno Haible  <bruno@clisp.org>
22896
22897         unistr/u*-stpncpy: Fix the return value.
22898         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
22899         description of the return value consistent with stpncpy in glibc.
22900         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
22901         written non-NUL unit.
22902
22903 2010-01-10  Bruno Haible  <bruno@clisp.org>
22904
22905         unistr/u*-next: Add missing dependencies.
22906         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
22907         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
22908         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
22909
22910 2010-01-10  Bruno Haible  <bruno@clisp.org>
22911
22912         unistr/u8-mbsnlen: Fix return value for incomplete character.
22913         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
22914         u8_mblen.
22915         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
22916         Remove unistr/u8-mblen.
22917         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
22918         u16_mblen.
22919         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
22920         Remove unistr/u16-mblen.
22921
22922 2010-01-10  Bruno Haible  <bruno@clisp.org>
22923
22924         wchar: Fix compilation error when <wchar.h> is used from coreutils.
22925         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
22926         Reported by Brian Gough <bjg@gnu.org> and
22927         Chris Clayton <chris2553@googlemail.com> via
22928         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
22929
22930 2010-01-09  Bruno Haible  <bruno@clisp.org>
22931
22932         unistr/u16-to-u32: Reject invalid input.
22933         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
22934         u16_mbtouc.
22935         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
22936         Remove unistr/u16-mbtouc.
22937
22938         unistr/u16-to-u8: Reject invalid input.
22939         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
22940         u16_mbtouc.
22941         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
22942         Remove unistr/u16-mbtouc.
22943
22944         unistr/u8-to-u32: Reject invalid input.
22945         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
22946         u8_mbtouc.
22947         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
22948         Remove unistr/u8-mbtouc.
22949
22950         unistr/u8-to-u16: Reject invalid input.
22951         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
22952         u8_mbtouc.
22953         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
22954         Remove unistr/u8-mbtouc.
22955
22956 2010-01-09  Bruno Haible  <bruno@clisp.org>
22957
22958         Tests for module 'getlogin'.
22959         * modules/getlogin-tests: New file.
22960         * tests/test-getlogin.c: New file.
22961
22962         New module 'getlogin'.
22963         * lib/unistd.in.h (getlogin): New declaration.
22964         * lib/getlogin.c: New file.
22965         * m4/getlogin.m4: New file.
22966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
22967         HAVE_GETLOGIN.
22968         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
22969         HAVE_GETLOGIN.
22970         * modules/getlogin: New file.
22971         * doc/posix-functions/getlogin.texi: Mention the new module.
22972         Reported by John W. Eaton <jwe@gnu.org>.
22973
22974 2010-01-09  Bruno Haible  <bruno@clisp.org>
22975
22976         getlogin_r: Support for native Windows.
22977         * lib/getlogin_r.c: Include <windows.h>
22978         (getlogin_r): Implement for native Windows.
22979         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
22980         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
22981         via John W. Eaton <jwe@gnu.org>.
22982
22983 2010-01-09  Bruno Haible  <bruno@clisp.org>
22984
22985         getlogin_r: Small fixes.
22986         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
22987         succeeds.
22988         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
22989         before testing whether getlogin_r is declared. No need to set
22990         HAVE_DECL_GETLOGIN_R to 1.
22991         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
22992
22993 2010-01-09  Bruno Haible  <bruno@clisp.org>
22994
22995         * lib/unistd.in.h (getlogin_r): Add comment.
22996
22997 2010-01-09  Bruno Haible  <bruno@clisp.org>
22998
22999         Tests for module 'getlogin_r'.
23000         * modules/getlogin_r-tests: New file.
23001         * tests/test-getlogin_r.c: New file.
23002
23003 2010-01-09  Jim Meyering  <meyering@redhat.com>
23004
23005         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
23006         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
23007         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
23008
23009 2010-01-08  Simon Josefsson  <simon@josefsson.org>
23010
23011         * lib/dup2.c (rpl_dup2): Improve comment.
23012
23013 2010-01-08  Eric Blake  <ebb9@byu.net>
23014
23015         maint.mk: allow packages to add makefile @@ exceptions
23016         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
23017         (sc_makefile_check): Rename...
23018         (sc_makefile_at_at_check): ...to this, and use hook.
23019
23020         dup2: work around mingw bug
23021         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
23022         Reported by Simon Josefsson.
23023
23024 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
23025
23026         glob: Fix C++ compilation.
23027         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
23028         C++.
23029
23030 2010-01-07  Bruno Haible  <bruno@clisp.org>
23031
23032         Fix indentation of wctype.in.h, broken since 2007-01-06.
23033         * lib/wctype.in.h: Fix indentation of preprocessor directives.
23034
23035 2010-01-07  Bruno Haible  <bruno@clisp.org>
23036
23037         mbslen: Avoid collision with system function.
23038         * lib/string.in.h [MirBSD]: Include <wchar.h>.
23039         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
23040         * m4/mbslen.m4: New file.
23041         * modules/mbslen (Files): Add it.
23042         (configure.ac): Invoke gl_MBSLEN.
23043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
23044         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
23045         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
23046         via Ian Beckwith <ianb@erislabs.net>.
23047
23048 2010-01-07  Bruno Haible  <bruno@clisp.org>
23049
23050         dirent: Document the last fix.
23051         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
23052
23053 2010-01-07  Bruno Haible  <bruno@clisp.org>
23054
23055         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
23056         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
23057         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
23058         va_list are defined.
23059         * doc/posix-headers/stdio.texi: Document the bug of missing types.
23060         Reported by Eric Blake.
23061
23062 2010-01-07  Bruno Haible  <bruno@clisp.org>
23063
23064         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
23065         * modules/xlist (Depends-on): Add 'list',
23066         * modules/xoset (Depends-on): Add 'oset'.
23067         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23068
23069 2010-01-07  Bruno Haible  <bruno@clisp.org>
23070
23071         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
23072         * doc/posix-functions/strncasecmp.texi: Likewise.
23073
23074 2010-01-07  Bruno Haible  <bruno@clisp.org>
23075
23076         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
23077
23078 2010-01-07  John W. Eaton  <jwe@octave.org>
23079
23080         wctype: allow C++ use
23081         * lib/wctype.in.h: Add extern "C" block for C++.
23082
23083 2010-01-06  Eric Blake  <ebb9@byu.net>
23084
23085         maint.mk: detect incorrect GFDL usage
23086         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
23087
23088 2010-01-06  Jim Meyering  <meyering@redhat.com>
23089         and Eric Blake  <ebb9@byu.net>
23090
23091         maint.mk: ignore multi-line copyright in NEWS
23092         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
23093
23094 2010-01-06  Eric Blake  <ebb9@byu.net>
23095
23096         select: add missing dependency
23097         * modules/select-tests (Depends-on): Move sockets dependency...
23098         * modules/select (Depends-on): ...here.
23099         Reported by Ian Beckwith.
23100
23101         doc: regenerate INSTALL
23102         * doc/INSTALL: Reflect recent autoconf update.
23103         * doc/INSTALL.ISO: Likewise.
23104         * doc/INSTALL.UTF-8: Likewise.
23105
23106         pread: fix compilation on glibc
23107         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
23108         Reported by Ralf Wildenhues.
23109
23110         dirent: fix test failure
23111         * lib/dirent.in.h (includes): Guarantee ino_t.
23112         Reported by Ralf Wildenhues.
23113
23114 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
23115
23116         linkat, renameat: avoid bad free
23117         * lib/at-func2.c (at_func2): Fix typo.
23118         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
23119
23120 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23121
23122         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
23123         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
23124         to avoid failure of symlink test later.
23125
23126 2010-01-06  Eric Blake  <ebb9@byu.net>
23127
23128         stdio, unistd: guarantee ssize_t
23129         * lib/unistd.in.h (includes): Ensure that types required by POSIX
23130         2008 are exposed when needed.
23131         * lib/stdio.in.h (includes): Likewise.
23132         Reported by Ralf Wildenhues.
23133
23134 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
23135
23136         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
23137         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
23138         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
23139
23140 2010-01-06  Jim Meyering  <meyering@redhat.com>
23141
23142         readtokens: this module *does* require xalloc.h
23143         It uses only functions that were omitted by the old syntax-check rule.
23144         * lib/readtokens.c: Include "xalloc.h" once again.
23145         * modules/readtokens (Depends-on): Add xalloc.
23146         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
23147
23148 2010-01-05  Eric Blake  <ebb9@byu.net>
23149
23150         maint: support 'make announcement' from a VPATH build
23151         * top/maint.mk (announcement): Look for correct NEWS file.
23152
23153 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
23154
23155         utimens (fdutimens): ignore a negative FD, per contract
23156         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
23157         when we have a valid file descriptor.  Otherwise, using a brand
23158         new glibc (with just-patched futimens that now fails with EBADF)
23159         would cause this function to fail with ENOSYS.
23160         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
23161         See also http://bugzilla.redhat.com/552320.
23162
23163 2010-01-05  Eric Blake  <ebb9@byu.net>
23164
23165         strcase: document what it provides
23166         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
23167         gnulib module.
23168         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
23169         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
23170
23171 2010-01-05  Jim Meyering  <meyering@redhat.com>
23172
23173         maint: remove useless inclusions of "xalloc.h"
23174         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
23175         * lib/readtokens.c: Likewise.
23176         * lib/same.c: Likewise.
23177         * modules/getloadavg (Depends-on): Remove xalloc.
23178         * modules/readtokens: Likewise.
23179         * modules/same: Likewise.
23180
23181         maint.mk: include 4 more function names in alloca.h-checking regexp
23182         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
23183         regexp.  Before, we would give a false-positive (saying alloca.h
23184         is included unnecessarily) when the only uses involved omitted symbols.
23185
23186         xalloc.h: use consistent formatting
23187         * lib/xalloc.h: Move declarations to start in the first column.
23188
23189 2010-01-05  Eric Blake  <ebb9@byu.net>
23190
23191         mkdir: avoid xalloc
23192         * lib/mkdir.c (includes): Drop unused header.
23193         Reported by John W. Eaton.
23194
23195 2010-01-04  Jim Meyering  <meyering@redhat.com>
23196
23197         nl_langinfo: avoid configure-time syntax error
23198         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
23199         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
23200         the empty string.  Don't let that provoke a shell syntax error.
23201
23202         regcomp, regexec, fnmatch: avoid array bounds read error
23203         * lib/regcomp.c (build_equiv_class): From glibc:
23204         Use only the low 24 bits of a findidx return value as an index
23205         into the weights array.  Patch by Ulrich Drepper:
23206         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
23207         * lib/regexec.c (check_node_accept_bytes): Likewise.
23208         * lib/fnmatch_loop.c (FCT): Likewise.
23209
23210         regcomp: skip collseq lookup when there are no rules
23211         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
23212         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
23213
23214         regcomp: recognize ill-formed { } expressions
23215         * lib/regcomp.c (parse_dup_op): From glibc:
23216         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
23217
23218         regcomp: fix typo in comment
23219         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
23220         s/satisfy/satisfies/.
23221
23222         regcomp: sync from glibc: remove dead store
23223         * lib/regcomp.c (duplicate_node_closure): Remove useless
23224         search_duplicated_node call and dead store.
23225
23226         regcomp: sync from glibc; always use nl_langinfo
23227         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
23228         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
23229         * modules/regex (Depends-on): Add nl_langinfo.
23230
23231 2010-01-04  Eric Blake  <ebb9@byu.net>
23232
23233         fdopendir: fix configure test
23234         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
23235
23236 2010-01-01  Bruno Haible  <bruno@clisp.org>
23237
23238         wchar: Remove unused configure check.
23239         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
23240
23241 2010-01-01  Eric Blake  <ebb9@byu.net>
23242
23243         headers: make check of system header explicit
23244         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
23245         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
23246         ourselves.
23247         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23248         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23249         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23250         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
23251         internals.
23252         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
23253         missing.
23254         Suggested by Bruno Haible.
23255
23256 2010-01-01  Jim Meyering  <meyering@redhat.com>
23257
23258         ChangeLog: tweak to eliminate unnecessary copyright line
23259         * ChangeLog: Remove a copyright line that was mistakenly updated
23260         by today's update-copyright run.  Reported by Eric Blake.
23261
23262         test-update-copyright: don't let envvar setting cause test failure
23263         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23264
23265 2010-01-01  Bruno Haible  <bruno@clisp.org>
23266
23267         localename: Avoid gcc warning.
23268         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
23269         function if it is not used.
23270
23271 2010-01-01  Jim Meyering  <meyering@redhat.com>
23272
23273         update nearly all FSF copyright year lists to include 2010
23274         Use the same procedure as for 2009, outlined in
23275         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
23276
23277         version-etc: set COPYRIGHT_YEAR to 2010
23278         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
23279
23280 2009-12-31  Eric Blake  <ebb9@byu.net>
23281
23282         doc: correct availability of cygwin 1.5.x getopt
23283         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
23284         variables.
23285         * doc/posix-functions/opterr.texi (opterr): Likewise.
23286         * doc/posix-functions/optind.texi (optind): Likewise.
23287         * doc/posix-functions/optopt.texi (optopt): Likewise.
23288         * doc/posix-functions/tzname.texi (tzname): Likewise.
23289
23290         openat: update maintainer
23291         * modules/openat (Maintainer): Add myself.
23292
23293         utimens: avoid shadowing warning
23294         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
23295         buffers into one, to avoid shadowing, as well as avoiding a
23296         redundant stat.
23297         Reported by Jim Meyering.
23298
23299         test-dup2: avoid compiler warning
23300         * tests/test-dup2.c (is_inheritable): Only define if used.
23301
23302 2010-01-01  Bruno Haible  <bruno@clisp.org>
23303
23304         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
23305         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
23306         defined, use wctomb instead of wcrtomb.
23307
23308 2010-01-01  Bruno Haible  <bruno@clisp.org>
23309
23310         iconv: Reject native Solaris iconv.
23311         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
23312         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
23313
23314 2009-12-31  Bruno Haible  <bruno@clisp.org>
23315
23316         * tests/test-signal.c (main): Remove test of 'SIG'.
23317
23318 2009-12-31  Bruno Haible  <bruno@clisp.org>
23319
23320         spawn: Fix incomplete fix.
23321         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23322         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23323         warnings for GNULIB_POSIXCHECK again.
23324         Reported by Eric Blake.
23325
23326 2009-12-31  Bruno Haible  <bruno@clisp.org>
23327
23328         Avoid namespace pollution on glibc systems.
23329         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23330         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
23331         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
23332         glibc systems.
23333
23334 2009-12-31  Bruno Haible  <bruno@clisp.org>
23335
23336         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
23337         (gl_REPLACE_WCHAR_H): Turn into a no-op.
23338         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
23339         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
23340         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
23341         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
23342         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
23343
23344 2009-12-31  Bruno Haible  <bruno@clisp.org>
23345
23346         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23347         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
23348         afterwards.
23349
23350 2009-12-31  Bruno Haible  <bruno@clisp.org>
23351
23352         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
23353         SYS_UTSNAME_H.
23354
23355 2009-12-31  Bruno Haible  <bruno@clisp.org>
23356
23357         spawn: Fix misapplied patch.
23358         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
23359         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
23360         warnings for GNULIB_POSIXCHECK.
23361
23362 2009-12-31  Bruno Haible  <bruno@clisp.org>
23363
23364         times: Update after sys_times changed.
23365         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
23366         * modules/times (Files): Add it.
23367         (configure.ac): Invoke gl_FUNC_TIMES.
23368
23369 2009-12-31  Bruno Haible  <bruno@clisp.org>
23370
23371         Use AC_C_INLINE where necessary.
23372         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
23373         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23374         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
23375         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23376         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23377         * m4/mbiter.m4 (gl_MBITER): Likewise.
23378         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23379         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23380         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
23381         * modules/u64 (configure.ac): Likewise.
23382
23383 2009-12-31  Bruno Haible  <bruno@clisp.org>
23384
23385         Use AC_C_INLINE instead of module 'inline' where possible.
23386         * modules/inline (Description): Clarify purpose.
23387         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
23388         * modules/count-one-bits (Depends-on): Remove inline.
23389         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
23390         * modules/openat (Depends-on): Remove inline.
23391         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
23392         instead of depending on module 'inline'.
23393         * modules/filevercmp (Depends-on, configure.ac): Likewise.
23394         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
23395         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
23396         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
23397         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
23398         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
23399         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
23400         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
23401         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
23402         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
23403         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
23404         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
23405         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
23406         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
23407         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
23408         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
23409         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
23410         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
23411         Likewise.
23412         * modules/unictype/property-ascii-hex-digit (Depends-on,
23413         configure.ac): Likewise.
23414         * modules/unictype/property-bidi-arabic-digit (Depends-on,
23415         configure.ac): Likewise.
23416         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
23417         configure.ac): Likewise.
23418         * modules/unictype/property-bidi-block-separator (Depends-on,
23419         configure.ac): Likewise.
23420         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
23421         configure.ac): Likewise.
23422         * modules/unictype/property-bidi-common-separator (Depends-on,
23423         configure.ac): Likewise.
23424         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
23425         Likewise.
23426         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
23427         configure.ac): Likewise.
23428         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
23429         configure.ac): Likewise.
23430         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
23431         configure.ac): Likewise.
23432         * modules/unictype/property-bidi-european-digit (Depends-on,
23433         configure.ac): Likewise.
23434         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
23435         configure.ac): Likewise.
23436         * modules/unictype/property-bidi-left-to-right (Depends-on,
23437         configure.ac): Likewise.
23438         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
23439         configure.ac): Likewise.
23440         * modules/unictype/property-bidi-other-neutral (Depends-on,
23441         configure.ac): Likewise.
23442         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
23443         Likewise.
23444         * modules/unictype/property-bidi-segment-separator (Depends-on,
23445         configure.ac): Likewise.
23446         * modules/unictype/property-bidi-whitespace (Depends-on,
23447         configure.ac): Likewise.
23448         * modules/unictype/property-combining (Depends-on, configure.ac):
23449         Likewise.
23450         * modules/unictype/property-composite (Depends-on, configure.ac):
23451         Likewise.
23452         * modules/unictype/property-currency-symbol (Depends-on,
23453         configure.ac): Likewise.
23454         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
23455         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
23456         Likewise.
23457         * modules/unictype/property-default-ignorable-code-point (Depends-on,
23458         configure.ac): Likewise.
23459         * modules/unictype/property-deprecated (Depends-on, configure.ac):
23460         Likewise.
23461         * modules/unictype/property-diacritic (Depends-on, configure.ac):
23462         Likewise.
23463         * modules/unictype/property-extender (Depends-on, configure.ac):
23464         Likewise.
23465         * modules/unictype/property-format-control (Depends-on, configure.ac):
23466         Likewise.
23467         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
23468         Likewise.
23469         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
23470         Likewise.
23471         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
23472         Likewise.
23473         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
23474         Likewise.
23475         * modules/unictype/property-hyphen (Depends-on, configure.ac):
23476         Likewise.
23477         * modules/unictype/property-id-continue (Depends-on, configure.ac):
23478         Likewise.
23479         * modules/unictype/property-id-start (Depends-on, configure.ac):
23480         Likewise.
23481         * modules/unictype/property-ideographic (Depends-on, configure.ac):
23482         Likewise.
23483         * modules/unictype/property-ids-binary-operator (Depends-on,
23484         configure.ac): Likewise.
23485         * modules/unictype/property-ids-trinary-operator (Depends-on,
23486         configure.ac): Likewise.
23487         * modules/unictype/property-ignorable-control (Depends-on,
23488         configure.ac): Likewise.
23489         * modules/unictype/property-iso-control (Depends-on, configure.ac):
23490         Likewise.
23491         * modules/unictype/property-join-control (Depends-on, configure.ac):
23492         Likewise.
23493         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
23494         Likewise.
23495         * modules/unictype/property-line-separator (Depends-on, configure.ac):
23496         Likewise.
23497         * modules/unictype/property-logical-order-exception (Depends-on,
23498         configure.ac): Likewise.
23499         * modules/unictype/property-lowercase (Depends-on, configure.ac):
23500         Likewise.
23501         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
23502         * modules/unictype/property-non-break (Depends-on, configure.ac):
23503         Likewise.
23504         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
23505         Likewise.
23506         * modules/unictype/property-numeric (Depends-on, configure.ac):
23507         Likewise.
23508         * modules/unictype/property-other-alphabetic (Depends-on,
23509         configure.ac): Likewise.
23510         * modules/unictype/property-other-default-ignorable-code-point
23511         (Depends-on, configure.ac): Likewise.
23512         * modules/unictype/property-other-grapheme-extend (Depends-on,
23513         configure.ac): Likewise.
23514         * modules/unictype/property-other-id-continue (Depends-on,
23515         configure.ac): Likewise.
23516         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
23517         Likewise.
23518         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
23519         Likewise.
23520         * modules/unictype/property-other-math (Depends-on, configure.ac):
23521         Likewise.
23522         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
23523         Likewise.
23524         * modules/unictype/property-paired-punctuation (Depends-on,
23525         configure.ac): Likewise.
23526         * modules/unictype/property-paragraph-separator (Depends-on,
23527         configure.ac): Likewise.
23528         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
23529         Likewise.
23530         * modules/unictype/property-pattern-white-space (Depends-on,
23531         configure.ac): Likewise.
23532         * modules/unictype/property-private-use (Depends-on, configure.ac):
23533         Likewise.
23534         * modules/unictype/property-punctuation (Depends-on, configure.ac):
23535         Likewise.
23536         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
23537         Likewise.
23538         * modules/unictype/property-radical (Depends-on, configure.ac):
23539         Likewise.
23540         * modules/unictype/property-sentence-terminal (Depends-on,
23541         configure.ac): Likewise.
23542         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
23543         Likewise.
23544         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
23545         * modules/unictype/property-terminal-punctuation (Depends-on,
23546         configure.ac): Likewise.
23547         * modules/unictype/property-titlecase (Depends-on, configure.ac):
23548         Likewise.
23549         * modules/unictype/property-unassigned-code-value (Depends-on,
23550         configure.ac): Likewise.
23551         * modules/unictype/property-unified-ideograph (Depends-on,
23552         configure.ac): Likewise.
23553         * modules/unictype/property-uppercase (Depends-on, configure.ac):
23554         Likewise.
23555         * modules/unictype/property-variation-selector (Depends-on,
23556         configure.ac): Likewise.
23557         * modules/unictype/property-white-space (Depends-on, configure.ac):
23558         Likewise.
23559         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
23560         Likewise.
23561         * modules/unictype/property-xid-start (Depends-on, configure.ac):
23562         Likewise.
23563         * modules/unictype/property-zero-width (Depends-on, configure.ac):
23564         Likewise.
23565         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
23566         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
23567         Likewise.
23568
23569 2009-12-31  Bruno Haible  <bruno@clisp.org>
23570
23571         Remove unnecessary AC_C_INLINE invocation.
23572         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
23573         since 2009-08-21.
23574
23575 2009-12-31  Jim Meyering  <meyering@redhat.com>
23576
23577         maint.mk: don't require explicit gpg_key_ID in cfg.mk
23578         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
23579         With this change, we can all remove the gpg_key_ID = ... definition
23580         from our respective cfg.mk files.
23581
23582         maint.mk: create announcement template in ~/, not in /tmp
23583         * top/maint.mk (emit_upload_commands): Adjust.
23584         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
23585         Remove temporary file, .ci-msg.
23586
23587 2009-12-31  Eric Blake  <ebb9@byu.net>
23588
23589         link-warning: always build headers with link warnings
23590         * modules/arpa_inet (Makefile.am): Always build replacement
23591         header.
23592         * modules/ctype (Makefile.am): Likewise.
23593         * modules/dirent (Makefile.am): Likewise.
23594         * modules/inttypes (Makefile.am): Likewise.
23595         * modules/langinfo (Makefile.am): Likewise.
23596         * modules/locale (Makefile.am): Likewise.
23597         * modules/spawn (Makefile.am): Likewise.
23598         * modules/sys_file (Makefile.am): Likewise.
23599         * modules/sys_ioctl (Makefile.am): Likewise.
23600         * modules/sys_select (Makefile.am): Likewise.
23601         * modules/sys_socket (Makefile.am): Likewise.
23602         * modules/sys_times (Makefile.am): Likewise.
23603         * modules/sys_utsname (Makefile.am): Likewise.
23604         * modules/sys_wait (Makefile.am): Likewise.
23605         * modules/wchar (Makefile.am): Likewise.
23606         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
23607         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
23608         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
23609         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
23610         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
23611         Likewise.
23612         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23613         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23614         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
23615         Likewise.
23616         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
23617         Likewise.
23618         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23619         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
23620         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
23621         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23622         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23623         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23624         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23625         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
23626         (gl_WCHAR_H_DEFAULTS): Likewise.
23627
23628 2009-12-31  Eric Blake  <ebb9@byu.net>
23629
23630         signal, spawn: use link warnings
23631         * lib/signal.in.h (sigset_t): Make unconditional.
23632         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
23633         (sigpending, sigprocmask, sigaction): Add link warnings.
23634         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
23635         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
23636         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
23637         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
23638         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
23639         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
23640         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
23641         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
23642         (posix_spawn_file_actions_destroy)
23643         (posix_spawn_file_actions_addopen)
23644         (posix_spawn_file_actions_addclose)
23645         (posix_spawn_file_actions_adddup2): Likewise.
23646         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
23647         * tests/test-signal.c (main): Enhance test.
23648
23649         spawn: improve wrapper support
23650         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
23651         (gl_SPAWN_H_DEFAULTS): New defaults.
23652         * modules/spawn (Makefile.am): Substitute them.
23653         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
23654         Only declare if missing or broken.
23655
23656         sys_times, sys_utsname: use include_next
23657         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
23658         header.
23659         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
23660         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23661         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23662         * modules/sys_times (Depends-on): Add include_next.
23663         (Makefile.am): Substitute additional values.
23664         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23665         * lib/sys_times.in.h (includes): Include native header, if
23666         available.
23667         * lib/sys_utsname.in.h (includes): Likewise.
23668         * tests/test-sys_times.c (main): Enhance test.
23669
23670         fdutimensat: revert prior patch
23671         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
23672         utimens.h.
23673         Reported by Bruno Haible.
23674
23675 2009-12-30  Eric Blake  <ebb9@byu.net>
23676
23677         sys_wait: drop link-warning dependency
23678         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
23679         link-warning efforts.
23680         * lib/sys_wait.in.h: Likewise.
23681
23682         fdutimensat: remove bogus dependency
23683         * modules/fdutimensat (Depends-on): Drop inline.
23684
23685         unistd: fix typo
23686         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
23687
23688 2009-12-30  Bruno Haible  <bruno@clisp.org>
23689
23690         Fix compilation error with Solaris cc.
23691         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
23692         * lib/unicase/u16-is-invariant.c: Likewise.
23693         * lib/unicase/u32-is-invariant.c: Likewise.
23694         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23695
23696 2009-12-30  Bruno Haible  <bruno@clisp.org>
23697
23698         Fix test crash.
23699         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
23700         locales.
23701         Reported by Simon Josefsson <simon@josefsson.org>.
23702
23703 2009-12-30  Bruno Haible  <bruno@clisp.org>
23704
23705         Fix compilation error on most platforms.
23706         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
23707         Reported by Simon Josefsson <simon@josefsson.org>
23708         and Nelson H. F. Beebe <beebe@math.utah.edu>.
23709
23710 2009-12-30  Eric Blake  <ebb9@byu.net>
23711
23712         futimens, utimensat: work around ntfs-3g bug
23713         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
23714         a ctime bug is present, and expand workaround to cover ntfs-3g.
23715         * lib/utimens.c (fdutimens, lutimens): Likewise.
23716         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
23717         (validate_timespec): Adjust return value.
23718         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
23719         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23720         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
23721
23722 2009-12-29  Eric Blake  <ebb9@byu.net>
23723
23724         link-warning: make usage consistent
23725         * modules/ctype (Depends-on): Add link-warning.
23726         (Makefile.am): Update rules accordingly.
23727         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23728         * modules/locale (Depends-on, Makefile.am): Likewise.
23729         * modules/sys_file (Makefile.am): Likewise.
23730         * modules/getopt-posix (Makefile.am): Delete unused link warning
23731         efforts.
23732         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
23733         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
23734         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
23735         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
23736
23737         stdio: remove unused variables
23738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
23739         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
23740         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23741
23742         tests: test more substitute headers
23743         * modules/ctype-tests: New file.
23744         * modules/dirent-tests: Likewise.
23745         * modules/spawn-tests: Likewise.
23746         * modules/sys_file-tests: Likewise.
23747         * modules/sys_ioctl-tests: Likewise.
23748         * modules/sys_wait-tests: Likewise.
23749         * tests/test-ctype.c: Likewise.
23750         * tests/test-dirent.c: Likewise.
23751         * tests/test-spawn.c: Likewise.
23752         * tests/test-sys_file.c: Likewise.
23753         * tests/test-sys_ioctl.c: Likewise.
23754         * tests/test-sys_wait.c: Likewise.
23755         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
23756         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
23757         whether or not flock is in use.
23758
23759         tests: remove License section from module
23760         * modules/arpa_inet-tests: Remove unneeded section.
23761         * modules/byteswap-tests: Likewise.
23762         * modules/ceilf-tests: Likewise.
23763         * modules/ceill-tests: Likewise.
23764         * modules/crypto/des-tests: Likewise.
23765         * modules/crypto/gc-arcfour-tests: Likewise.
23766         * modules/crypto/gc-arctwo-tests: Likewise.
23767         * modules/crypto/gc-des-tests: Likewise.
23768         * modules/crypto/gc-hmac-md5-tests: Likewise.
23769         * modules/crypto/gc-hmac-sha1-tests: Likewise.
23770         * modules/crypto/gc-md2-tests: Likewise.
23771         * modules/crypto/gc-md4-tests: Likewise.
23772         * modules/crypto/gc-md5-tests: Likewise.
23773         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
23774         * modules/crypto/gc-rijndael-tests: Likewise.
23775         * modules/crypto/gc-sha1-tests: Likewise.
23776         * modules/crypto/gc-tests: Likewise.
23777         * modules/crypto/md2-tests: Likewise.
23778         * modules/crypto/md4-tests: Likewise.
23779         * modules/fcntl-h-tests: Likewise.
23780         * modules/floorf-tests: Likewise.
23781         * modules/floorl-tests: Likewise.
23782         * modules/frexp-nolibm-tests: Likewise.
23783         * modules/frexp-tests: Likewise.
23784         * modules/frexpl-nolibm-tests: Likewise.
23785         * modules/frexpl-tests: Likewise.
23786         * modules/getaddrinfo-tests: Likewise.
23787         * modules/inttypes-tests: Likewise.
23788         * modules/isfinite-tests: Likewise.
23789         * modules/isinf-tests: Likewise.
23790         * modules/ldexpl-tests: Likewise.
23791         * modules/locale-tests: Likewise.
23792         * modules/math-tests: Likewise.
23793         * modules/netdb-tests: Likewise.
23794         * modules/netinet_in-tests: Likewise.
23795         * modules/printf-frexp-tests: Likewise.
23796         * modules/printf-frexpl-tests: Likewise.
23797         * modules/priv-set-tests: Likewise.
23798         * modules/random_r-tests: Likewise.
23799         * modules/round-tests: Likewise.
23800         * modules/roundf-tests: Likewise.
23801         * modules/roundl-tests: Likewise.
23802         * modules/search-tests: Likewise.
23803         * modules/select-tests: Likewise.
23804         * modules/signal-tests: Likewise.
23805         * modules/stdbool-tests: Likewise.
23806         * modules/stddef-tests: Likewise.
23807         * modules/stdint-tests: Likewise.
23808         * modules/stdio-tests: Likewise.
23809         * modules/stdlib-tests: Likewise.
23810         * modules/string-tests: Likewise.
23811         * modules/strings-tests: Likewise.
23812         * modules/sys_select-tests: Likewise.
23813         * modules/sys_socket-tests: Likewise.
23814         * modules/sys_stat-tests: Likewise.
23815         * modules/sys_time-tests: Likewise.
23816         * modules/sys_utsname-tests: Likewise.
23817         * modules/sysexits-tests: Likewise.
23818         * modules/time-tests: Likewise.
23819         * modules/trunc-tests: Likewise.
23820         * modules/truncf-tests: Likewise.
23821         * modules/truncl-tests: Likewise.
23822         * modules/tsearch-tests: Likewise.
23823         * modules/unistd-tests: Likewise.
23824         * modules/wchar-tests: Likewise.
23825         * modules/wctype-tests: Likewise.
23826
23827         tests: fix license on several tests
23828         * tests/test-des.c: Update to GPLv3+.
23829         * tests/test-flock.c: Likewise.
23830         * tests/test-fsync.c: Likewise.
23831         * tests/test-futimens.h: Likewise.
23832         * tests/test-gc-arcfour.c: Likewise.
23833         * tests/test-gc-arctwo.c: Likewise.
23834         * tests/test-gc-des.c: Likewise.
23835         * tests/test-gc-hmac-md5.c: Likewise.
23836         * tests/test-gc-hmac-sha1.c: Likewise.
23837         * tests/test-gc-md2.c: Likewise.
23838         * tests/test-gc-md4.c: Likewise.
23839         * tests/test-gc-md5.c: Likewise.
23840         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23841         * tests/test-gc-rijndael.c: Likewise.
23842         * tests/test-gc-sha1.c: Likewise.
23843         * tests/test-gc.c: Likewise.
23844         * tests/test-getcwd.c: Likewise.
23845         * tests/test-link.c: Likewise.
23846         * tests/test-link.h: Likewise.
23847         * tests/test-lutimens.h: Likewise.
23848         * tests/test-md2.c: Likewise.
23849         * tests/test-md4.c: Likewise.
23850         * tests/test-mkdir.h: Likewise.
23851         * tests/test-rename.c: Likewise.
23852         * tests/test-rename.h: Likewise.
23853         * tests/test-safe-alloc.c: Likewise.
23854         * tests/test-utimens-common.h: Likewise.
23855         * tests/test-utimens.h: Likewise.
23856
23857         maint: sync license texts
23858         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
23859         * doc/gpl-3.0.texi: Revert copyright year update.
23860         * doc/lgpl-3.0.texi: Likewise.
23861
23862 2009-12-29  Jim Meyering  <meyering@redhat.com>
23863
23864         update nearly all FSF copyright year lists to include 2009
23865         The files named by the following are exempted:
23866             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
23867               test -f "$dst" && { echo "$dst"; continue; }
23868               test -d "$dst" || continue
23869               echo "$dst"/$(basename "$src")
23870             done > exempt
23871             git ls-files tests/unictype >> exempt
23872         In the remaining files, convert to all-interval notation if
23873         - there is already at least one year interval like 2000-2003
23874         - the file is maintained by me
23875         - the file is in lib/uni*/, where that style already prevails
23876         Otherwise, use update-copyright's default.
23877
23878 2009-12-29  Simon Josefsson  <simon@josefsson.org>
23879         and Eric Blake  <ebb9@byu.net>
23880
23881         tests: don't require debug system() to pass
23882         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
23883         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23884         * tests/test-unlink.h (test_unlink_func): Likewise.
23885         * tests/test-fstatat.c (main): ...into callers.
23886         * tests/test-lstat.c (main): Likewise.
23887         * tests/test-rmdir.c (main): Likewise.
23888         * tests/test-unlink.c (main): Likewise.
23889         * tests/test-unlinkat.c (main): Likewise.
23890         * tests/test-areadlink-with-size.c (main): Don't require a
23891         debug-only system call to pass, aiding cross-testing to mingw.
23892         * tests/test-areadlink.c (main): Likewise.
23893         * tests/test-areadlinkat-with-size.c (main): Likewise.
23894         * tests/test-areadlinkat.c (main): Likewise.
23895         * tests/test-canonicalize-lgpl.c (main): Likewise.
23896         * tests/test-canonicalize.c (main): Likewise.
23897         * tests/test-chown.c (main): Likewise.
23898         * tests/test-fchownat.c (main): Likewise.
23899         * tests/test-lchown.c (main): Likewise.
23900         * tests/test-fdutimensat.c (main): Likewise.
23901         * tests/test-futimens.c (main): Likewise.
23902         * tests/test-link.c (main): Likewise.
23903         * tests/test-linkat.c (main): Likewise.
23904         * tests/test-mkdir.c (main): Likewise.
23905         * tests/test-mkdirat.c (main): Likewise.
23906         * tests/test-mkfifo.c (main): Likewise.
23907         * tests/test-mkfifoat.c (main): Likewise.
23908         * tests/test-mknod.c (main): Likewise.
23909         * tests/test-readlink.c (main): Likewise.
23910         * tests/test-remove.c (main): Likewise.
23911         * tests/test-rename.c (main): Likewise.
23912         * tests/test-renameat.c (main): Likewise.
23913         * tests/test-symlink.c (main): Likewise.
23914         * tests/test-symlinkat.c (main): Likewise.
23915         * tests/test-utimens.c (main): Likewise.
23916         * tests/test-utimensat.c (main): Likewise.
23917
23918 2009-12-29  Simon Josefsson  <simon@josefsson.org>
23919
23920         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
23921         on $(UNUSED_PARAMETER_H) to avoid build failure.
23922
23923 2009-12-28  Jim Meyering  <meyering@redhat.com>
23924
23925         update-copyright: you may specify a max. line length other than 72
23926         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23927
23928         maint: use consistent FSF copyright line syntax
23929         * lib/posixtm.c: Add missing comma in FSF copyright line.
23930         * lib/posixtm.h: Likewise.
23931         * lib/getugroups.c: Add missing ", Inc.".
23932
23933         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
23934         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
23935         FSF copyright line.  Remove trailing blanks.
23936
23937 2009-12-28  Eric Blake  <ebb9@byu.net>
23938
23939         test-dup2: reduce dependencies
23940         * modules/cloexec (Configure.ac): Set witness.
23941         * modules/dup2-tests (Depends-on): Drop cloexec.
23942         * tests/test-dup2.c (main): Skip portion of test if cloexec module
23943         not present.
23944         Suggested by Bruno Haible.
23945
23946 2009-12-26  Bruno Haible  <bruno@clisp.org>
23947
23948         Remove an unneeded dependency.
23949         * modules/fseterr (Depends-on): Remove dup2.
23950
23951 2009-12-26  Eric Blake  <ebb9@byu.net>
23952
23953         tests: use macros.h in more places
23954         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
23955         (ASSERT_STREAM): Provide default of stderr.
23956         * tests/test-dirent-safer.c: Include macros.h, using alternate
23957         stream for assertions.
23958         * tests/test-dup-safer.c: Likewise.
23959         * tests/test-freopen-safer.c: Likewise.
23960         * tests/test-getopt.c: Likewise.
23961         * tests/test-openat-safer.c: Likewise.
23962         * tests/test-pipe.c: Likewise.
23963         * tests/test-popen-safer.c: Likewise.
23964         * modules/dirent-safer-tests (Files): Include macros.h.
23965         * modules/unistd-safer-tests (Files): Likewise.
23966         * modules/freopen-safer-tests (Files): Likewise.
23967         * modules/getopt-posix-tests (Files): Likewise.
23968         * modules/openat-safer-tests (Files): Likewise.
23969         * modules/pipe-tests (Files): Likewise.
23970
23971 2009-12-26  Bruno Haible  <bruno@clisp.org>
23972
23973         javacomp: Portability fix.
23974         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
23975         that it also works on Solaris.
23976
23977 2009-12-26  Bruno Haible  <bruno@clisp.org>
23978
23979         localename: Fix storage allocation of gl_locale_name_thread's result.
23980         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
23981         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
23982         all platforms that have 'uselocale'.
23983         (gl_locale_name_thread_unsafe): New function, extracted from
23984         gl_locale_name_thread.
23985         (gl_locale_name_thread): Call struniq on all platforms that have
23986         'uselocale'.
23987         * tests/test-localename.c (test_locale_name_thread): Check that the
23988         resulting strings are permanently allocated.
23989         * modules/localename-tests (Depends-on): Add strdup.
23990
23991 2009-12-26  Bruno Haible  <bruno@clisp.org>
23992
23993         * tests/test-localename.c (categories): Fill in the strings.
23994
23995 2009-12-26  Jim Meyering  <meyering@redhat.com>
23996
23997         isdir: complete the removal of m4/isdir.m4
23998         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
23999
24000         isdir: clean up, since at least grep still uses it
24001         * lib/isdir.c: Include "isdir.h".
24002         (S_ISDIR): Remove now-unneeded definition.
24003         * modules/isdir (Files): Add lib/isdir.h.
24004         * lib/isdir.h: New file, with declaration.
24005         * m4/isdir.m4: Remove file -- unneeded.
24006
24007 2009-12-25  Bruno Haible  <bruno@clisp.org>
24008
24009         selinux-h: Make generated .h files standalone.
24010         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
24011         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
24012         * lib/se-selinux.in.h: Likewise.
24013         * modules/selinux-h (Depends-on): Add unused-parameter.
24014         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
24015         selinux/selinux.h and selinux/context.h.
24016         Suggested by Eric Blake.
24017
24018 2009-12-25  Bruno Haible  <bruno@clisp.org>
24019
24020         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
24021         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
24022         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
24023         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
24024         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
24025
24026 2009-12-24  Bruno Haible  <bruno@clisp.org>
24027
24028         openat: Fix warning.
24029         * lib/openat-proc.c: Include <unistd.h>.
24030
24031 2009-12-24  Bruno Haible  <bruno@clisp.org>
24032
24033         New module 'unused-parameter'.
24034         * build-aux/unused-parameter.h: New file, extracted from earlier
24035         gnulib-common.m4.
24036         * modules/unused-parameter: New file.
24037         * lib/unistr.h: Include unused-parameter.h.
24038         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
24039         _GL_UNUSED.
24040         * modules/unistr/base (Depends-on): Add unused-parameter.
24041
24042 2009-12-24  Bruno Haible  <bruno@clisp.org>
24043
24044         Add missing dependencies to 'extensions' module.
24045         * m4/extensions.m4: Add comment.
24046         * modules/accept4 (Depends-on): Add extensions.
24047         * modules/dup3 (Depends-on): Likewise.
24048         * modules/fcntl (Depends-on): Likewise.
24049         * modules/futimens (Depends-on): Likewise.
24050         * modules/mknod (Depends-on): Likewise.
24051         * modules/pipe2 (Depends-on): Likewise.
24052         * modules/stat-time (Depends-on): Likewise.
24053         * modules/strcasestr-simple (Depends-on): Likewise.
24054         * modules/strsignal (Depends-on): Likewise.
24055         * modules/utimensat (Depends-on): Likewise.
24056         * modules/localcharset (Depends-on): Likewise. Needed because of
24057         gl_FCNTL_O_FLAGS.
24058         * modules/wcrtomb (Depends-on): Likewise. Needed because of
24059         AC_TYPE_MBSTATE_T.
24060         * modules/wcsnrtombs (Depends-on): Likewise.
24061         * modules/wcsrtombs (Depends-on): Likewise.
24062
24063 2009-12-24  Bruno Haible  <bruno@clisp.org>
24064
24065         binary-io: Avoid gcc warning due to SET_BINARY.
24066         * lib/binary-io.h (SET_BINARY): Cast the result to void.
24067         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
24068
24069 2009-12-24  Bruno Haible  <bruno@clisp.org>
24070
24071         Avoid future namespace pollution on glibc systems.
24072         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
24073         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
24074         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
24075         glibc systems.
24076
24077 2009-12-24  Bruno Haible  <bruno@clisp.org>
24078
24079         Refactor common macros used in tests.
24080         * tests/macros.h: New file.
24081         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
24082         and/or <stdlib.h>, if appropriate.
24083         (ASSERT, SIZEOF): Remove macros.
24084         * tests/test-areadlink-with-size.c: Likewise.
24085         * tests/test-areadlinkat.c: Likewise.
24086         * tests/test-areadlinkat-with-size.c: Likewise.
24087         * tests/test-argmatch.c: Likewise.
24088         * tests/test-argv-iter.c: Likewise.
24089         * tests/test-array-mergesort.c: Likewise.
24090         * tests/test-array_list.c: Likewise.
24091         * tests/test-array_oset.c: Likewise.
24092         * tests/test-avltree_list.c: Likewise.
24093         * tests/test-avltree_oset.c: Likewise.
24094         * tests/test-avltreehash_list.c: Likewise.
24095         * tests/test-base64.c: Likewise.
24096         * tests/test-binary-io.c: Likewise.
24097         * tests/test-bitrotate.c: Likewise.
24098         * tests/test-btowc.c: Likewise.
24099         * tests/test-byteswap.c: Likewise.
24100         * tests/test-c-ctype.c: Likewise.
24101         * tests/test-c-stack.c: Likewise.
24102         * tests/test-c-strcasecmp.c: Likewise.
24103         * tests/test-c-strcasestr.c: Likewise.
24104         * tests/test-c-strncasecmp.c: Likewise.
24105         * tests/test-c-strstr.c: Likewise.
24106         * tests/test-canonicalize-lgpl.c: Likewise.
24107         * tests/test-canonicalize.c: Likewise.
24108         * tests/test-carray_list.c: Likewise.
24109         * tests/test-ceilf1.c: Likewise.
24110         * tests/test-ceilf2.c: Likewise.
24111         * tests/test-ceill.c: Likewise.
24112         * tests/test-chown.c: Likewise.
24113         * tests/test-cloexec.c: Likewise.
24114         * tests/test-copy-acl.c: Likewise.
24115         * tests/test-copy-file.c: Likewise.
24116         * tests/test-count-one-bits.c: Likewise.
24117         * tests/test-dprintf-posix.c: Likewise.
24118         * tests/test-dup2.c: Likewise.
24119         * tests/test-dup3.c: Likewise.
24120         * tests/test-duplocale.c: Likewise.
24121         * tests/test-fbufmode.c: Likewise.
24122         * tests/test-fchdir.c: Likewise.
24123         * tests/test-fchownat.c: Likewise.
24124         * tests/test-fcntl-safer.c: Likewise.
24125         * tests/test-fcntl.c: Likewise.
24126         * tests/test-fdopendir.c: Likewise.
24127         * tests/test-fdutimensat.c: Likewise.
24128         * tests/test-fflush2.c: Likewise.
24129         * tests/test-file-has-acl.c: Likewise.
24130         * tests/test-filevercmp.c: Likewise.
24131         * tests/test-flock.c: Likewise.
24132         * tests/test-floorf1.c: Likewise.
24133         * tests/test-floorf2.c: Likewise.
24134         * tests/test-floorl.c: Likewise.
24135         * tests/test-fnmatch.c: Likewise.
24136         * tests/test-fopen.h: Likewise.
24137         * tests/test-fpending.c: Likewise.
24138         * tests/test-fprintf-posix.c: Likewise.
24139         * tests/test-fpurge.c: Likewise.
24140         * tests/test-freadable.c: Likewise.
24141         * tests/test-freadahead.c: Likewise.
24142         * tests/test-freading.c: Likewise.
24143         * tests/test-freadptr.c: Likewise.
24144         * tests/test-freadptr2.c: Likewise.
24145         * tests/test-freadseek.c: Likewise.
24146         * tests/test-freopen.c: Likewise.
24147         * tests/test-frexp.c: Likewise.
24148         * tests/test-frexpl.c: Likewise.
24149         * tests/test-fseek.c: Likewise.
24150         * tests/test-fseeko.c: Likewise.
24151         * tests/test-fstatat.c: Likewise.
24152         * tests/test-fstrcmp.c: Likewise.
24153         * tests/test-fsync.c: Likewise.
24154         * tests/test-ftell.c: Likewise.
24155         * tests/test-ftello.c: Likewise.
24156         * tests/test-func.c: Likewise.
24157         * tests/test-futimens.c: Likewise.
24158         * tests/test-fwritable.c: Likewise.
24159         * tests/test-fwriting.c: Likewise.
24160         * tests/test-getcwd.c: Likewise.
24161         * tests/test-getdate.c: Likewise.
24162         * tests/test-getdelim.c: Likewise.
24163         * tests/test-getdtablesize.c: Likewise.
24164         * tests/test-getgroups.c: Likewise.
24165         * tests/test-getline.c: Likewise.
24166         * tests/test-getndelim2.c: Likewise.
24167         * tests/test-glob.c: Likewise.
24168         * tests/test-hash.c: Likewise.
24169         * tests/test-i-ring.c: Likewise.
24170         * tests/test-iconv-utf.c: Likewise.
24171         * tests/test-iconv.c: Likewise.
24172         * tests/test-idpriv-drop.c: Likewise.
24173         * tests/test-idpriv-droptemp.c: Likewise.
24174         * tests/test-inet_ntop.c: Likewise.
24175         * tests/test-inet_pton.c: Likewise.
24176         * tests/test-isblank.c: Likewise.
24177         * tests/test-isfinite.c: Likewise.
24178         * tests/test-isinf.c: Likewise.
24179         * tests/test-isnan.c: Likewise.
24180         * tests/test-isnand.h: Likewise.
24181         * tests/test-isnanf.h: Likewise.
24182         * tests/test-isnanl.h: Likewise.
24183         * tests/test-lchown.c: Likewise.
24184         * tests/test-ldexpl.c: Likewise.
24185         * tests/test-link.c: Likewise.
24186         * tests/test-linkat.c: Likewise.
24187         * tests/test-linked_list.c: Likewise.
24188         * tests/test-linkedhash_list.c: Likewise.
24189         * tests/test-localename.c: Likewise.
24190         * tests/test-lseek.c: Likewise.
24191         * tests/test-lstat.c: Likewise.
24192         * tests/test-mbmemcasecmp.c: Likewise.
24193         * tests/test-mbmemcasecoll.c: Likewise.
24194         * tests/test-mbrtowc.c: Likewise.
24195         * tests/test-mbscasecmp.c: Likewise.
24196         * tests/test-mbscasestr1.c: Likewise.
24197         * tests/test-mbscasestr2.c: Likewise.
24198         * tests/test-mbscasestr3.c: Likewise.
24199         * tests/test-mbscasestr4.c: Likewise.
24200         * tests/test-mbschr.c: Likewise.
24201         * tests/test-mbscspn.c: Likewise.
24202         * tests/test-mbsinit.c: Likewise.
24203         * tests/test-mbsncasecmp.c: Likewise.
24204         * tests/test-mbsnrtowcs.c: Likewise.
24205         * tests/test-mbspbrk.c: Likewise.
24206         * tests/test-mbspcasecmp.c: Likewise.
24207         * tests/test-mbsrchr.c: Likewise.
24208         * tests/test-mbsrtowcs.c: Likewise.
24209         * tests/test-mbsspn.c: Likewise.
24210         * tests/test-mbsstr1.c: Likewise.
24211         * tests/test-mbsstr2.c: Likewise.
24212         * tests/test-mbsstr3.c: Likewise.
24213         * tests/test-memchr.c: Likewise.
24214         * tests/test-memchr2.c: Likewise.
24215         * tests/test-memcmp.c: Likewise.
24216         * tests/test-memmem.c: Likewise.
24217         * tests/test-memrchr.c: Likewise.
24218         * tests/test-mkdir.c: Likewise.
24219         * tests/test-mkdirat.c: Likewise.
24220         * tests/test-mkfifo.c: Likewise.
24221         * tests/test-mkfifoat.c: Likewise.
24222         * tests/test-mknod.c: Likewise.
24223         * tests/test-nanosleep.c: Likewise.
24224         * tests/test-nl_langinfo.c: Likewise.
24225         * tests/test-obstack-printf.c: Likewise.
24226         * tests/test-open.c: Likewise.
24227         * tests/test-openat.c: Likewise.
24228         * tests/test-pipe-filter-gi1.c: Likewise.
24229         * tests/test-pipe-filter-gi2-main.c: Likewise.
24230         * tests/test-pipe-filter-ii1.c: Likewise.
24231         * tests/test-pipe-filter-ii2-main.c: Likewise.
24232         * tests/test-pipe2.c: Likewise.
24233         * tests/test-popen.h: Likewise.
24234         * tests/test-posixtm.c: Likewise.
24235         * tests/test-pread.c: Likewise.
24236         * tests/test-printf-frexp.c: Likewise.
24237         * tests/test-printf-frexpl.c: Likewise.
24238         * tests/test-printf-posix.c: Likewise.
24239         * tests/test-priv-set.c: Likewise.
24240         * tests/test-quotearg.c: Likewise.
24241         * tests/test-random_r.c: Likewise.
24242         * tests/test-rawmemchr.c: Likewise.
24243         * tests/test-rbtree_list.c: Likewise.
24244         * tests/test-rbtree_oset.c: Likewise.
24245         * tests/test-rbtreehash_list.c: Likewise.
24246         * tests/test-readlink.c: Likewise.
24247         * tests/test-remove.c: Likewise.
24248         * tests/test-rename.c: Likewise.
24249         * tests/test-renameat.c: Likewise.
24250         * tests/test-rmdir.c: Likewise.
24251         * tests/test-round1.c: Likewise.
24252         * tests/test-roundf1.c: Likewise.
24253         * tests/test-roundl.c: Likewise.
24254         * tests/test-safe-alloc.c: Likewise.
24255         * tests/test-sameacls.c: Likewise.
24256         * tests/test-set-mode-acl.c: Likewise.
24257         * tests/test-setenv.c: Likewise.
24258         * tests/test-sigaction.c: Likewise.
24259         * tests/test-signbit.c: Likewise.
24260         * tests/test-sleep.c: Likewise.
24261         * tests/test-snprintf-posix.c: Likewise.
24262         * tests/test-snprintf.c: Likewise.
24263         * tests/test-sprintf-posix.c: Likewise.
24264         * tests/test-stat-time.c: Likewise.
24265         * tests/test-stat.c: Likewise.
24266         * tests/test-strcasestr.c: Likewise.
24267         * tests/test-strchrnul.c: Likewise.
24268         * tests/test-strerror.c: Likewise.
24269         * tests/test-striconv.c: Likewise.
24270         * tests/test-striconveh.c: Likewise.
24271         * tests/test-striconveha.c: Likewise.
24272         * tests/test-strsignal.c: Likewise.
24273         * tests/test-strstr.c: Likewise.
24274         * tests/test-strtod.c: Likewise.
24275         * tests/test-strverscmp.c: Likewise.
24276         * tests/test-symlink.c: Likewise.
24277         * tests/test-symlinkat.c: Likewise.
24278         * tests/test-trunc1.c: Likewise.
24279         * tests/test-trunc2.c: Likewise.
24280         * tests/test-truncf1.c: Likewise.
24281         * tests/test-truncf2.c: Likewise.
24282         * tests/test-truncl.c: Likewise.
24283         * tests/test-uname.c: Likewise.
24284         * tests/test-unlink.c: Likewise.
24285         * tests/test-unlinkat.c: Likewise.
24286         * tests/test-unsetenv.c: Likewise.
24287         * tests/test-usleep.c: Likewise.
24288         * tests/test-utimens.c: Likewise.
24289         * tests/test-utimensat.c: Likewise.
24290         * tests/test-vasnprintf-posix.c: Likewise.
24291         * tests/test-vasnprintf-posix2.c: Likewise.
24292         * tests/test-vasnprintf.c: Likewise.
24293         * tests/test-vasprintf-posix.c: Likewise.
24294         * tests/test-vasprintf.c: Likewise.
24295         * tests/test-vdprintf-posix.c: Likewise.
24296         * tests/test-vfprintf-posix.c: Likewise.
24297         * tests/test-vprintf-posix.c: Likewise.
24298         * tests/test-vsnprintf-posix.c: Likewise.
24299         * tests/test-vsnprintf.c: Likewise.
24300         * tests/test-vsprintf-posix.c: Likewise.
24301         * tests/test-wcrtomb.c: Likewise.
24302         * tests/test-wcsnrtombs.c: Likewise.
24303         * tests/test-wcsrtombs.c: Likewise.
24304         * tests/test-wctype.c: Likewise.
24305         * tests/test-wcwidth.c: Likewise.
24306         * tests/test-xfprintf-posix.c: Likewise.
24307         * tests/test-xmemdup0.c: Likewise.
24308         * tests/test-xprintf-posix.c: Likewise.
24309         * tests/test-xvasprintf.c: Likewise.
24310         * tests/unicase/test-locale-language.c: Likewise.
24311         * tests/unicase/test-mapping-part1.h: Likewise.
24312         * tests/unicase/test-predicate-part1.h: Likewise.
24313         * tests/unicase/test-u8-casecmp.c: Likewise.
24314         * tests/unicase/test-u8-casecoll.c: Likewise.
24315         * tests/unicase/test-u8-casefold.c: Likewise.
24316         * tests/unicase/test-u8-is-cased.c: Likewise.
24317         * tests/unicase/test-u8-is-casefolded.c: Likewise.
24318         * tests/unicase/test-u8-is-lowercase.c: Likewise.
24319         * tests/unicase/test-u8-is-titlecase.c: Likewise.
24320         * tests/unicase/test-u8-is-uppercase.c: Likewise.
24321         * tests/unicase/test-u8-tolower.c: Likewise.
24322         * tests/unicase/test-u8-totitle.c: Likewise.
24323         * tests/unicase/test-u8-toupper.c: Likewise.
24324         * tests/unicase/test-u16-casecmp.c: Likewise.
24325         * tests/unicase/test-u16-casecoll.c: Likewise.
24326         * tests/unicase/test-u16-casefold.c: Likewise.
24327         * tests/unicase/test-u16-is-cased.c: Likewise.
24328         * tests/unicase/test-u16-is-casefolded.c: Likewise.
24329         * tests/unicase/test-u16-is-lowercase.c: Likewise.
24330         * tests/unicase/test-u16-is-titlecase.c: Likewise.
24331         * tests/unicase/test-u16-is-uppercase.c: Likewise.
24332         * tests/unicase/test-u16-tolower.c: Likewise.
24333         * tests/unicase/test-u16-totitle.c: Likewise.
24334         * tests/unicase/test-u16-toupper.c: Likewise.
24335         * tests/unicase/test-u32-casecmp.c: Likewise.
24336         * tests/unicase/test-u32-casecoll.c: Likewise.
24337         * tests/unicase/test-u32-casefold.c: Likewise.
24338         * tests/unicase/test-u32-is-cased.c: Likewise.
24339         * tests/unicase/test-u32-is-casefolded.c: Likewise.
24340         * tests/unicase/test-u32-is-lowercase.c: Likewise.
24341         * tests/unicase/test-u32-is-titlecase.c: Likewise.
24342         * tests/unicase/test-u32-is-uppercase.c: Likewise.
24343         * tests/unicase/test-u32-tolower.c: Likewise.
24344         * tests/unicase/test-u32-totitle.c: Likewise.
24345         * tests/unicase/test-u32-toupper.c: Likewise.
24346         * tests/unicase/test-ulc-casecmp.c: Likewise.
24347         * tests/unicase/test-ulc-casecoll.c: Likewise.
24348         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24349         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
24350         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24351         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24352         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
24353         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
24354         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24355         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24356         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24357         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
24358         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24359         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24360         * tests/unictype/test-bidi_byname.c: Likewise.
24361         * tests/unictype/test-bidi_name.c: Likewise.
24362         * tests/unictype/test-bidi_of.c: Likewise.
24363         * tests/unictype/test-bidi_test.c: Likewise.
24364         * tests/unictype/test-block_list.c: Likewise.
24365         * tests/unictype/test-block_of.c: Likewise.
24366         * tests/unictype/test-block_test.c: Likewise.
24367         * tests/unictype/test-categ_and.c: Likewise.
24368         * tests/unictype/test-categ_and_not.c: Likewise.
24369         * tests/unictype/test-categ_byname.c: Likewise.
24370         * tests/unictype/test-categ_name.c: Likewise.
24371         * tests/unictype/test-categ_none.c: Likewise.
24372         * tests/unictype/test-categ_of.c: Likewise.
24373         * tests/unictype/test-categ_or.c: Likewise.
24374         * tests/unictype/test-categ_test_withtable.c: Likewise.
24375         * tests/unictype/test-combining.c: Likewise.
24376         * tests/unictype/test-decdigit.c: Likewise.
24377         * tests/unictype/test-digit.c: Likewise.
24378         * tests/unictype/test-mirror.c: Likewise.
24379         * tests/unictype/test-numeric.c: Likewise.
24380         * tests/unictype/test-pr_byname.c: Likewise.
24381         * tests/unictype/test-pr_test.c: Likewise.
24382         * tests/unictype/test-predicate-part1.h: Likewise.
24383         * tests/unictype/test-scripts.c: Likewise.
24384         * tests/unictype/test-sy_c_ident.c: Likewise.
24385         * tests/unictype/test-sy_java_ident.c: Likewise.
24386         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
24387         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
24388         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
24389         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
24390         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
24391         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
24392         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
24393         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
24394         * tests/uninorm/test-canonical-decomposition.c: Likewise.
24395         * tests/uninorm/test-compat-decomposition.c: Likewise.
24396         * tests/uninorm/test-composition.c: Likewise.
24397         * tests/uninorm/test-decomposing-form.c: Likewise.
24398         * tests/uninorm/test-decomposition.c: Likewise.
24399         * tests/uninorm/test-u8-nfc.c: Likewise.
24400         * tests/uninorm/test-u8-nfd.c: Likewise.
24401         * tests/uninorm/test-u8-nfkc.c: Likewise.
24402         * tests/uninorm/test-u8-nfkd.c: Likewise.
24403         * tests/uninorm/test-u8-normcmp.c: Likewise.
24404         * tests/uninorm/test-u8-normcoll.c: Likewise.
24405         * tests/uninorm/test-u16-nfc.c: Likewise.
24406         * tests/uninorm/test-u16-nfd.c: Likewise.
24407         * tests/uninorm/test-u16-nfkc.c: Likewise.
24408         * tests/uninorm/test-u16-nfkd.c: Likewise.
24409         * tests/uninorm/test-u16-normcmp.c: Likewise.
24410         * tests/uninorm/test-u16-normcoll.c: Likewise.
24411         * tests/uninorm/test-u32-nfc.c: Likewise.
24412         * tests/uninorm/test-u32-nfd.c: Likewise.
24413         * tests/uninorm/test-u32-nfkc.c: Likewise.
24414         * tests/uninorm/test-u32-nfkd.c: Likewise.
24415         * tests/uninorm/test-u32-normalize-big.c: Likewise.
24416         * tests/uninorm/test-u32-normcmp.c: Likewise.
24417         * tests/uninorm/test-u32-normcoll.c: Likewise.
24418         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
24419         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
24420         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
24421         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
24422         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
24423         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
24424         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24425         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24426         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
24427         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
24428         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
24429         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
24430         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
24431         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24432         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24433         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
24434         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
24435         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
24436         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
24437         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
24438         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24439         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24440         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
24441         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
24442         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
24443         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
24444         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
24445         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24446         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24447         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
24448         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
24449         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
24450         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
24451         * tests/uniwidth/test-u8-strwidth.c: Likewise.
24452         * tests/uniwidth/test-u8-width.c: Likewise.
24453         * tests/uniwidth/test-u16-strwidth.c: Likewise.
24454         * tests/uniwidth/test-u16-width.c: Likewise.
24455         * tests/uniwidth/test-u32-strwidth.c: Likewise.
24456         * tests/uniwidth/test-u32-width.c: Likewise.
24457         * tests/uniwidth/test-uc_width.c: Likewise.
24458         * tests/uniwidth/test-uc_width2.c: Likewise.
24459         * modules/acl-tests (Files): Add tests/macros.h.
24460         * modules/areadlink-tests (Files): Likewise.
24461         * modules/areadlink-with-size-tests (Files): Likewise.
24462         * modules/areadlinkat-tests (Files): Likewise.
24463         * modules/areadlinkat-with-size-tests (Files): Likewise.
24464         * modules/argmatch-tests (Files): Likewise.
24465         * modules/argv-iter-tests (Files): Likewise.
24466         * modules/array-list-tests (Files): Likewise.
24467         * modules/array-mergesort-tests (Files): Likewise.
24468         * modules/array-oset-tests (Files): Likewise.
24469         * modules/avltree-list-tests (Files): Likewise.
24470         * modules/avltree-oset-tests (Files): Likewise.
24471         * modules/avltreehash-list-tests (Files): Likewise.
24472         * modules/base64-tests (Files): Likewise.
24473         * modules/binary-io-tests (Files): Likewise.
24474         * modules/bitrotate-tests (Files): Likewise.
24475         * modules/btowc-tests (Files): Likewise.
24476         * modules/byteswap-tests (Files): Likewise.
24477         * modules/c-ctype-tests (Files): Likewise.
24478         * modules/c-stack-tests (Files): Likewise.
24479         * modules/c-strcase-tests (Files): Likewise.
24480         * modules/c-strcasestr-tests (Files): Likewise.
24481         * modules/c-strstr-tests (Files): Likewise.
24482         * modules/canonicalize-lgpl-tests (Files): Likewise.
24483         * modules/canonicalize-tests (Files): Likewise.
24484         * modules/carray-list-tests (Files): Likewise.
24485         * modules/ceilf-tests (Files): Likewise.
24486         * modules/ceill-tests (Files): Likewise.
24487         * modules/chown-tests (Files): Likewise.
24488         * modules/cloexec-tests (Files): Likewise.
24489         * modules/copy-file-tests (Files): Likewise.
24490         * modules/count-one-bits-tests (Files): Likewise.
24491         * modules/dprintf-posix-tests (Files): Likewise.
24492         * modules/dup2-tests (Files): Likewise.
24493         * modules/dup3-tests (Files): Likewise.
24494         * modules/duplocale-tests (Files): Likewise.
24495         * modules/fbufmode-tests (Files): Likewise.
24496         * modules/fchdir-tests (Files): Likewise.
24497         * modules/fcntl-safer-tests (Files): Likewise.
24498         * modules/fcntl-tests (Files): Likewise.
24499         * modules/fdopendir-tests (Files): Likewise.
24500         * modules/fdutimensat-tests (Files): Likewise.
24501         * modules/fflush-tests (Files): Likewise.
24502         * modules/filevercmp-tests (Files): Likewise.
24503         * modules/flock-tests (Files): Likewise.
24504         * modules/floorf-tests (Files): Likewise.
24505         * modules/floorl-tests (Files): Likewise.
24506         * modules/fnmatch-tests (Files): Likewise.
24507         * modules/fopen-safer-tests (Files): Likewise.
24508         * modules/fopen-tests (Files): Likewise.
24509         * modules/fpending-tests (Files): Likewise.
24510         * modules/fprintf-posix-tests (Files): Likewise.
24511         * modules/fpurge-tests (Files): Likewise.
24512         * modules/freadable-tests (Files): Likewise.
24513         * modules/freadahead-tests (Files): Likewise.
24514         * modules/freading-tests (Files): Likewise.
24515         * modules/freadptr-tests (Files): Likewise.
24516         * modules/freadseek-tests (Files): Likewise.
24517         * modules/freopen-tests (Files): Likewise.
24518         * modules/frexp-nolibm-tests (Files): Likewise.
24519         * modules/frexp-tests (Files): Likewise.
24520         * modules/frexpl-nolibm-tests (Files): Likewise.
24521         * modules/frexpl-tests (Files): Likewise.
24522         * modules/fseek-tests (Files): Likewise.
24523         * modules/fseeko-tests (Files): Likewise.
24524         * modules/fstrcmp-tests (Files): Likewise.
24525         * modules/fsync-tests (Files): Likewise.
24526         * modules/ftell-tests (Files): Likewise.
24527         * modules/ftello-tests (Files): Likewise.
24528         * modules/func-tests (Files): Likewise.
24529         * modules/futimens-tests (Files): Likewise.
24530         * modules/fwritable-tests (Files): Likewise.
24531         * modules/fwriting-tests (Files): Likewise.
24532         * modules/getcwd-tests (Files): Likewise.
24533         * modules/getdate-tests (Files): Likewise.
24534         * modules/getdelim-tests (Files): Likewise.
24535         * modules/getdtablesize-tests (Files): Likewise.
24536         * modules/getgroups-tests (Files): Likewise.
24537         * modules/getline-tests (Files): Likewise.
24538         * modules/getndelim2-tests (Files): Likewise.
24539         * modules/glob-tests (Files): Likewise.
24540         * modules/hash-tests (Files): Likewise.
24541         * modules/i-ring-tests (Files): Likewise.
24542         * modules/iconv-tests (Files): Likewise.
24543         * modules/iconv_open-utf-tests (Files): Likewise.
24544         * modules/idpriv-drop-tests (Files): Likewise.
24545         * modules/idpriv-droptemp-tests (Files): Likewise.
24546         * modules/inet_ntop-tests (Files): Likewise.
24547         * modules/inet_pton-tests (Files): Likewise.
24548         * modules/isblank-tests (Files): Likewise.
24549         * modules/isfinite-tests (Files): Likewise.
24550         * modules/isinf-tests (Files): Likewise.
24551         * modules/isnan-tests (Files): Likewise.
24552         * modules/isnand-nolibm-tests (Files): Likewise.
24553         * modules/isnand-tests (Files): Likewise.
24554         * modules/isnanf-nolibm-tests (Files): Likewise.
24555         * modules/isnanf-tests (Files): Likewise.
24556         * modules/isnanl-nolibm-tests (Files): Likewise.
24557         * modules/isnanl-tests (Files): Likewise.
24558         * modules/lchown-tests (Files): Likewise.
24559         * modules/ldexpl-tests (Files): Likewise.
24560         * modules/link-tests (Files): Likewise.
24561         * modules/linkat-tests (Files): Likewise.
24562         * modules/linked-list-tests (Files): Likewise.
24563         * modules/linkedhash-list-tests (Files): Likewise.
24564         * modules/localename-tests (Files): Likewise.
24565         * modules/lseek-tests (Files): Likewise.
24566         * modules/lstat-tests (Files): Likewise.
24567         * modules/mbmemcasecmp-tests (Files): Likewise.
24568         * modules/mbmemcasecoll-tests (Files): Likewise.
24569         * modules/mbrtowc-tests (Files): Likewise.
24570         * modules/mbscasecmp-tests (Files): Likewise.
24571         * modules/mbscasestr-tests (Files): Likewise.
24572         * modules/mbschr-tests (Files): Likewise.
24573         * modules/mbscspn-tests (Files): Likewise.
24574         * modules/mbsinit-tests (Files): Likewise.
24575         * modules/mbsncasecmp-tests (Files): Likewise.
24576         * modules/mbsnrtowcs-tests (Files): Likewise.
24577         * modules/mbspbrk-tests (Files): Likewise.
24578         * modules/mbspcasecmp-tests (Files): Likewise.
24579         * modules/mbsrchr-tests (Files): Likewise.
24580         * modules/mbsrtowcs-tests (Files): Likewise.
24581         * modules/mbsspn-tests (Files): Likewise.
24582         * modules/mbsstr-tests (Files): Likewise.
24583         * modules/memchr-tests (Files): Likewise.
24584         * modules/memchr2-tests (Files): Likewise.
24585         * modules/memcmp-tests (Files): Likewise.
24586         * modules/memmem-tests (Files): Likewise.
24587         * modules/memrchr-tests (Files): Likewise.
24588         * modules/mkdir-tests (Files): Likewise.
24589         * modules/mkfifo-tests (Files): Likewise.
24590         * modules/mkfifoat-tests (Files): Likewise.
24591         * modules/mknod-tests (Files): Likewise.
24592         * modules/nanosleep-tests (Files): Likewise.
24593         * modules/nl_langinfo-tests (Files): Likewise.
24594         * modules/obstack-printf-tests (Files): Likewise.
24595         * modules/open-tests (Files): Likewise.
24596         * modules/openat-tests (Files): Likewise.
24597         * modules/pipe-filter-gi-tests (Files): Likewise.
24598         * modules/pipe-filter-ii-tests (Files): Likewise.
24599         * modules/pipe2-tests (Files): Likewise.
24600         * modules/popen-safer-tests (Files): Likewise.
24601         * modules/popen-tests (Files): Likewise.
24602         * modules/posixtm-tests (Files): Likewise.
24603         * modules/pread-tests (Files): Likewise.
24604         * modules/printf-frexp-tests (Files): Likewise.
24605         * modules/printf-frexpl-tests (Files): Likewise.
24606         * modules/printf-posix-tests (Files): Likewise.
24607         * modules/priv-set-tests (Files): Likewise.
24608         * modules/quotearg-tests (Files): Likewise.
24609         * modules/random_r-tests (Files): Likewise.
24610         * modules/rawmemchr-tests (Files): Likewise.
24611         * modules/rbtree-list-tests (Files): Likewise.
24612         * modules/rbtree-oset-tests (Files): Likewise.
24613         * modules/rbtreehash-list-tests (Files): Likewise.
24614         * modules/readlink-tests (Files): Likewise.
24615         * modules/remove-tests (Files): Likewise.
24616         * modules/rename-tests (Files): Likewise.
24617         * modules/renameat-tests (Files): Likewise.
24618         * modules/rmdir-tests (Files): Likewise.
24619         * modules/round-tests (Files): Likewise.
24620         * modules/roundf-tests (Files): Likewise.
24621         * modules/roundl-tests (Files): Likewise.
24622         * modules/safe-alloc-tests (Files): Likewise.
24623         * modules/setenv-tests (Files): Likewise.
24624         * modules/sigaction-tests (Files): Likewise.
24625         * modules/signbit-tests (Files): Likewise.
24626         * modules/sleep-tests (Files): Likewise.
24627         * modules/snprintf-posix-tests (Files): Likewise.
24628         * modules/snprintf-tests (Files): Likewise.
24629         * modules/sprintf-posix-tests (Files): Likewise.
24630         * modules/stat-tests (Files): Likewise.
24631         * modules/stat-time-tests (Files): Likewise.
24632         * modules/strcasestr-tests (Files): Likewise.
24633         * modules/strchrnul-tests (Files): Likewise.
24634         * modules/strerror-tests (Files): Likewise.
24635         * modules/striconv-tests (Files): Likewise.
24636         * modules/striconveh-tests (Files): Likewise.
24637         * modules/striconveha-tests (Files): Likewise.
24638         * modules/strsignal-tests (Files): Likewise.
24639         * modules/strstr-tests (Files): Likewise.
24640         * modules/strtod-tests (Files): Likewise.
24641         * modules/strverscmp-tests (Files): Likewise.
24642         * modules/symlink-tests (Files): Likewise.
24643         * modules/symlinkat-tests (Files): Likewise.
24644         * modules/trunc-tests (Files): Likewise.
24645         * modules/truncf-tests (Files): Likewise.
24646         * modules/truncl-tests (Files): Likewise.
24647         * modules/uname-tests (Files): Likewise.
24648         * modules/unicase/cased-tests (Files): Likewise.
24649         * modules/unicase/ignorable-tests (Files): Likewise.
24650         * modules/unicase/locale-language-tests (Files): Likewise.
24651         * modules/unicase/tolower-tests (Files): Likewise.
24652         * modules/unicase/totitle-tests (Files): Likewise.
24653         * modules/unicase/toupper-tests (Files): Likewise.
24654         * modules/unicase/u8-casecmp-tests (Files): Likewise.
24655         * modules/unicase/u8-casecoll-tests (Files): Likewise.
24656         * modules/unicase/u8-casefold-tests (Files): Likewise.
24657         * modules/unicase/u8-is-cased-tests (Files): Likewise.
24658         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
24659         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
24660         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
24661         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
24662         * modules/unicase/u8-tolower-tests (Files): Likewise.
24663         * modules/unicase/u8-totitle-tests (Files): Likewise.
24664         * modules/unicase/u8-toupper-tests (Files): Likewise.
24665         * modules/unicase/u16-casecmp-tests (Files): Likewise.
24666         * modules/unicase/u16-casecoll-tests (Files): Likewise.
24667         * modules/unicase/u16-casefold-tests (Files): Likewise.
24668         * modules/unicase/u16-is-cased-tests (Files): Likewise.
24669         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
24670         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
24671         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
24672         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
24673         * modules/unicase/u16-tolower-tests (Files): Likewise.
24674         * modules/unicase/u16-totitle-tests (Files): Likewise.
24675         * modules/unicase/u16-toupper-tests (Files): Likewise.
24676         * modules/unicase/u32-casecmp-tests (Files): Likewise.
24677         * modules/unicase/u32-casecoll-tests (Files): Likewise.
24678         * modules/unicase/u32-casefold-tests (Files): Likewise.
24679         * modules/unicase/u32-is-cased-tests (Files): Likewise.
24680         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
24681         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
24682         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
24683         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
24684         * modules/unicase/u32-tolower-tests (Files): Likewise.
24685         * modules/unicase/u32-totitle-tests (Files): Likewise.
24686         * modules/unicase/u32-toupper-tests (Files): Likewise.
24687         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
24688         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
24689         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
24690         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
24691         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
24692         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
24693         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
24694         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
24695         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
24696         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
24697         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
24698         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
24699         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
24700         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
24701         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
24702         * modules/unictype/bidicategory-name-tests (Files): Likewise.
24703         * modules/unictype/bidicategory-of-tests (Files): Likewise.
24704         * modules/unictype/bidicategory-test-tests (Files): Likewise.
24705         * modules/unictype/block-list-tests (Files): Likewise.
24706         * modules/unictype/block-of-tests (Files): Likewise.
24707         * modules/unictype/block-test-tests (Files): Likewise.
24708         * modules/unictype/category-C-tests (Files): Likewise.
24709         * modules/unictype/category-Cc-tests (Files): Likewise.
24710         * modules/unictype/category-Cf-tests (Files): Likewise.
24711         * modules/unictype/category-Cn-tests (Files): Likewise.
24712         * modules/unictype/category-Co-tests (Files): Likewise.
24713         * modules/unictype/category-Cs-tests (Files): Likewise.
24714         * modules/unictype/category-L-tests (Files): Likewise.
24715         * modules/unictype/category-Ll-tests (Files): Likewise.
24716         * modules/unictype/category-Lm-tests (Files): Likewise.
24717         * modules/unictype/category-Lo-tests (Files): Likewise.
24718         * modules/unictype/category-Lt-tests (Files): Likewise.
24719         * modules/unictype/category-Lu-tests (Files): Likewise.
24720         * modules/unictype/category-M-tests (Files): Likewise.
24721         * modules/unictype/category-Mc-tests (Files): Likewise.
24722         * modules/unictype/category-Me-tests (Files): Likewise.
24723         * modules/unictype/category-Mn-tests (Files): Likewise.
24724         * modules/unictype/category-N-tests (Files): Likewise.
24725         * modules/unictype/category-Nd-tests (Files): Likewise.
24726         * modules/unictype/category-Nl-tests (Files): Likewise.
24727         * modules/unictype/category-No-tests (Files): Likewise.
24728         * modules/unictype/category-P-tests (Files): Likewise.
24729         * modules/unictype/category-Pc-tests (Files): Likewise.
24730         * modules/unictype/category-Pd-tests (Files): Likewise.
24731         * modules/unictype/category-Pe-tests (Files): Likewise.
24732         * modules/unictype/category-Pf-tests (Files): Likewise.
24733         * modules/unictype/category-Pi-tests (Files): Likewise.
24734         * modules/unictype/category-Po-tests (Files): Likewise.
24735         * modules/unictype/category-Ps-tests (Files): Likewise.
24736         * modules/unictype/category-S-tests (Files): Likewise.
24737         * modules/unictype/category-Sc-tests (Files): Likewise.
24738         * modules/unictype/category-Sk-tests (Files): Likewise.
24739         * modules/unictype/category-Sm-tests (Files): Likewise.
24740         * modules/unictype/category-So-tests (Files): Likewise.
24741         * modules/unictype/category-Z-tests (Files): Likewise.
24742         * modules/unictype/category-Zl-tests (Files): Likewise.
24743         * modules/unictype/category-Zp-tests (Files): Likewise.
24744         * modules/unictype/category-Zs-tests (Files): Likewise.
24745         * modules/unictype/category-and-not-tests (Files): Likewise.
24746         * modules/unictype/category-and-tests (Files): Likewise.
24747         * modules/unictype/category-byname-tests (Files): Likewise.
24748         * modules/unictype/category-name-tests (Files): Likewise.
24749         * modules/unictype/category-none-tests (Files): Likewise.
24750         * modules/unictype/category-of-tests (Files): Likewise.
24751         * modules/unictype/category-or-tests (Files): Likewise.
24752         * modules/unictype/category-test-withtable-tests (Files): Likewise.
24753         * modules/unictype/combining-class-tests (Files): Likewise.
24754         * modules/unictype/ctype-alnum-tests (Files): Likewise.
24755         * modules/unictype/ctype-alpha-tests (Files): Likewise.
24756         * modules/unictype/ctype-blank-tests (Files): Likewise.
24757         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
24758         * modules/unictype/ctype-digit-tests (Files): Likewise.
24759         * modules/unictype/ctype-graph-tests (Files): Likewise.
24760         * modules/unictype/ctype-lower-tests (Files): Likewise.
24761         * modules/unictype/ctype-print-tests (Files): Likewise.
24762         * modules/unictype/ctype-punct-tests (Files): Likewise.
24763         * modules/unictype/ctype-space-tests (Files): Likewise.
24764         * modules/unictype/ctype-upper-tests (Files): Likewise.
24765         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
24766         * modules/unictype/decimal-digit-tests (Files): Likewise.
24767         * modules/unictype/digit-tests (Files): Likewise.
24768         * modules/unictype/mirror-tests (Files): Likewise.
24769         * modules/unictype/numeric-tests (Files): Likewise.
24770         * modules/unictype/property-alphabetic-tests (Files): Likewise.
24771         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
24772         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
24773         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
24774         Likewise.
24775         * modules/unictype/property-bidi-block-separator-tests (Files):
24776         Likewise.
24777         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
24778         Likewise.
24779         * modules/unictype/property-bidi-common-separator-tests (Files):
24780         Likewise.
24781         * modules/unictype/property-bidi-control-tests (Files): Likewise.
24782         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
24783         Likewise.
24784         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
24785         Likewise.
24786         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
24787         Likewise.
24788         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
24789         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
24790         Likewise.
24791         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
24792         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
24793         Likewise.
24794         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
24795         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
24796         * modules/unictype/property-bidi-segment-separator-tests (Files):
24797         Likewise.
24798         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
24799         * modules/unictype/property-byname-tests (Files): Likewise.
24800         * modules/unictype/property-combining-tests (Files): Likewise.
24801         * modules/unictype/property-composite-tests (Files): Likewise.
24802         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
24803         * modules/unictype/property-dash-tests (Files): Likewise.
24804         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
24805         * modules/unictype/property-default-ignorable-code-point-tests (Files):
24806         Likewise.
24807         * modules/unictype/property-deprecated-tests (Files): Likewise.
24808         * modules/unictype/property-diacritic-tests (Files): Likewise.
24809         * modules/unictype/property-extender-tests (Files): Likewise.
24810         * modules/unictype/property-format-control-tests (Files): Likewise.
24811         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
24812         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
24813         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
24814         * modules/unictype/property-hex-digit-tests (Files): Likewise.
24815         * modules/unictype/property-hyphen-tests (Files): Likewise.
24816         * modules/unictype/property-id-continue-tests (Files): Likewise.
24817         * modules/unictype/property-id-start-tests (Files): Likewise.
24818         * modules/unictype/property-ideographic-tests (Files): Likewise.
24819         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
24820         * modules/unictype/property-ids-trinary-operator-tests (Files):
24821         Likewise.
24822         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
24823         * modules/unictype/property-iso-control-tests (Files): Likewise.
24824         * modules/unictype/property-join-control-tests (Files): Likewise.
24825         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
24826         * modules/unictype/property-line-separator-tests (Files): Likewise.
24827         * modules/unictype/property-logical-order-exception-tests (Files):
24828         Likewise.
24829         * modules/unictype/property-lowercase-tests (Files): Likewise.
24830         * modules/unictype/property-math-tests (Files): Likewise.
24831         * modules/unictype/property-non-break-tests (Files): Likewise.
24832         * modules/unictype/property-not-a-character-tests (Files): Likewise.
24833         * modules/unictype/property-numeric-tests (Files): Likewise.
24834         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
24835         * modules/unictype/property-other-default-ignorable-code-point-tests
24836         (Files): Likewise.
24837         * modules/unictype/property-other-grapheme-extend-tests (Files):
24838         Likewise.
24839         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
24840         * modules/unictype/property-other-id-start-tests (Files): Likewise.
24841         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
24842         * modules/unictype/property-other-math-tests (Files): Likewise.
24843         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
24844         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
24845         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
24846         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
24847         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
24848         * modules/unictype/property-private-use-tests (Files): Likewise.
24849         * modules/unictype/property-punctuation-tests (Files): Likewise.
24850         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
24851         * modules/unictype/property-radical-tests (Files): Likewise.
24852         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
24853         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
24854         * modules/unictype/property-space-tests (Files): Likewise.
24855         * modules/unictype/property-terminal-punctuation-tests (Files):
24856         Likewise.
24857         * modules/unictype/property-test-tests (Files): Likewise.
24858         * modules/unictype/property-titlecase-tests (Files): Likewise.
24859         * modules/unictype/property-unassigned-code-value-tests (Files):
24860         Likewise.
24861         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
24862         * modules/unictype/property-uppercase-tests (Files): Likewise.
24863         * modules/unictype/property-variation-selector-tests (Files): Likewise.
24864         * modules/unictype/property-white-space-tests (Files): Likewise.
24865         * modules/unictype/property-xid-continue-tests (Files): Likewise.
24866         * modules/unictype/property-xid-start-tests (Files): Likewise.
24867         * modules/unictype/property-zero-width-tests (Files): Likewise.
24868         * modules/unictype/scripts-tests (Files): Likewise.
24869         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
24870         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
24871         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
24872         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
24873         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
24874         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
24875         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
24876         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
24877         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
24878         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
24879         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
24880         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
24881         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
24882         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
24883         * modules/uninorm/composition-tests (Files): Likewise.
24884         * modules/uninorm/decomposing-form-tests (Files): Likewise.
24885         * modules/uninorm/decomposition-tests (Files): Likewise.
24886         * modules/uninorm/filter-tests (Files): Likewise.
24887         * modules/uninorm/nfc-tests (Files): Likewise.
24888         * modules/uninorm/nfd-tests (Files): Likewise.
24889         * modules/uninorm/nfkc-tests (Files): Likewise.
24890         * modules/uninorm/nfkd-tests (Files): Likewise.
24891         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
24892         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
24893         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
24894         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
24895         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
24896         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
24897         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
24898         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24899         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
24900         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
24901         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
24902         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
24903         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24904         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
24905         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
24906         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
24907         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
24908         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24909         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
24910         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
24911         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
24912         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
24913         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24914         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
24915         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
24916         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
24917         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
24918         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
24919         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
24920         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
24921         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
24922         * modules/uniwidth/u8-width-tests (Files): Likewise.
24923         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
24924         * modules/uniwidth/u16-width-tests (Files): Likewise.
24925         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
24926         * modules/uniwidth/u32-width-tests (Files): Likewise.
24927         * modules/uniwidth/width-tests (Files): Likewise.
24928         * modules/unlink-tests (Files): Likewise.
24929         * modules/unsetenv-tests (Files): Likewise.
24930         * modules/usleep-tests (Files): Likewise.
24931         * modules/utimens-tests (Files): Likewise.
24932         * modules/utimensat-tests (Files): Likewise.
24933         * modules/vasnprintf-posix-tests (Files): Likewise.
24934         * modules/vasnprintf-tests (Files): Likewise.
24935         * modules/vasprintf-posix-tests (Files): Likewise.
24936         * modules/vasprintf-tests (Files): Likewise.
24937         * modules/vdprintf-posix-tests (Files): Likewise.
24938         * modules/vfprintf-posix-tests (Files): Likewise.
24939         * modules/vprintf-posix-tests (Files): Likewise.
24940         * modules/vsnprintf-posix-tests (Files): Likewise.
24941         * modules/vsnprintf-tests (Files): Likewise.
24942         * modules/vsprintf-posix-tests (Files): Likewise.
24943         * modules/wcrtomb-tests (Files): Likewise.
24944         * modules/wcsnrtombs-tests (Files): Likewise.
24945         * modules/wcsrtombs-tests (Files): Likewise.
24946         * modules/wctype-tests (Files): Likewise.
24947         * modules/wcwidth-tests (Files): Likewise.
24948         * modules/xmemdup0-tests (Files): Likewise.
24949         * modules/xprintf-posix-tests (Files): Likewise.
24950         * modules/xvasprintf-tests (Files): Likewise.
24951
24952 2009-12-24  Eric Blake  <ebb9@byu.net>
24953
24954         test-nanosleep: fix typo
24955         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
24956         patch.
24957         Reported by Bruno Haible.
24958
24959 2009-12-24  Bruno Haible  <bruno@clisp.org>
24960
24961         Reduce namespace pollution on glibc systems.
24962         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
24963         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
24964         systems.
24965         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
24966         <getopt.h> on glibc systems.
24967         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
24968         systems.
24969         * lib/fcntl.c: Include <unistd.h> here instead.
24970
24971 2009-12-24  Bruno Haible  <bruno@clisp.org>
24972
24973         * lib/stdlib.in.h (includes): Fix typo in today's commit.
24974
24975 2009-12-24  Eric Blake  <ebb9@byu.net>
24976
24977         tests: add signature checks
24978         * tests/signature.h (SIGNATURE_CHECK): New file.
24979         * modules/atexit-tests (Files): Use it.
24980         * modules/btowc-tests (Files): Likewise.
24981         * modules/canonicalize-lgpl-tests (Files): Likewise.
24982         * modules/ceilf-tests (Files): Likewise.
24983         * modules/ceill-tests (Files): Likewise.
24984         * modules/chown-tests (Files): Likewise.
24985         * modules/dprintf-posix-tests (Files): Likewise.
24986         * modules/dup2-tests (Files): Likewise.
24987         * modules/dup3-tests (Files): Likewise.
24988         * modules/duplocale-tests (Files): Likewise.
24989         * modules/fchdir-tests (Files): Likewise.
24990         * modules/fcntl-tests (Files): Likewise.
24991         * modules/fdopendir-tests (Files): Likewise.
24992         * modules/fflush-tests (Files): Likewise.
24993         * modules/flock-tests (Files): Likewise.
24994         * modules/floorf-tests (Files): Likewise.
24995         * modules/floorl-tests (Files): Likewise.
24996         * modules/fnmatch-tests (Files): Likewise.
24997         * modules/fopen-tests (Files): Likewise.
24998         * modules/fprintf-posix-tests (Files): Likewise.
24999         * modules/freopen-tests (Files): Likewise.
25000         * modules/frexp-nolibm-tests (Files): Likewise.
25001         * modules/frexp-tests (Files): Likewise.
25002         * modules/frexpl-nolibm-tests (Files): Likewise.
25003         * modules/frexpl-tests (Files): Likewise.
25004         * modules/fseek-tests (Files): Likewise.
25005         * modules/fseeko-tests (Files): Likewise.
25006         * modules/fsync-tests (Files): Likewise.
25007         * modules/ftell-tests (Files): Likewise.
25008         * modules/ftello-tests (Files): Likewise.
25009         * modules/futimens-tests (Files): Likewise.
25010         * modules/getaddrinfo-tests (Files): Likewise.
25011         * modules/getcwd-tests (Files): Likewise.
25012         * modules/getdelim-tests (Files): Likewise.
25013         * modules/getdtablesize-tests (Files): Likewise.
25014         * modules/getgroups-tests (Files): Likewise.
25015         * modules/gethostname-tests (Files): Likewise.
25016         * modules/getline-tests (Files): Likewise.
25017         * modules/getopt-posix-tests (Files): Likewise.
25018         * modules/gettimeofday-tests (Files): Likewise.
25019         * modules/glob-tests (Files): Likewise.
25020         * modules/iconv-tests (Files): Likewise.
25021         * modules/inet_ntop-tests (Files): Likewise.
25022         * modules/inet_pton-tests (Files): Likewise.
25023         * modules/isblank-tests (Files): Likewise.
25024         * modules/lchown-tests (Files): Likewise.
25025         * modules/ldexpl-tests (Files): Likewise.
25026         * modules/link-tests (Files): Likewise.
25027         * modules/linkat-tests (Files): Likewise.
25028         * modules/lseek-tests (Files): Likewise.
25029         * modules/lstat-tests (Files): Likewise.
25030         * modules/mbrtowc-tests (Files): Likewise.
25031         * modules/mbsinit-tests (Files): Likewise.
25032         * modules/mbsnrtowcs-tests (Files): Likewise.
25033         * modules/mbsrtowcs-tests (Files): Likewise.
25034         * modules/memchr-tests (Files): Likewise.
25035         * modules/memcmp-tests (Files): Likewise.
25036         * modules/memmem-tests (Files): Likewise.
25037         * modules/memrchr-tests (Files): Likewise.
25038         * modules/mkdir-tests (Files): Likewise.
25039         * modules/mkfifo-tests (Files): Likewise.
25040         * modules/mkfifoat-tests (Files): Likewise.
25041         * modules/mknod-tests (Files): Likewise.
25042         * modules/nanosleep-tests (Files): Likewise.
25043         * modules/nl_langinfo-tests (Files): Likewise.
25044         * modules/obstack-printf-tests (Files): Likewise.
25045         * modules/open-tests (Files): Likewise.
25046         * modules/openat-tests (Files): Likewise.
25047         * modules/perror-tests (Files): Likewise.
25048         * modules/pipe2-tests (Files): Likewise.
25049         * modules/poll-tests (Files): Likewise.
25050         * modules/popen-tests (Files): Likewise.
25051         * modules/posix_spawn-tests (Files): Likewise.
25052         * modules/posix_spawnp-tests (Files): Likewise.
25053         * modules/pread-tests (Files): Likewise.
25054         * modules/printf-posix-tests (Files): Likewise.
25055         * modules/pty-tests (Files): Likewise.
25056         * modules/random_r-tests (Files): Likewise.
25057         * modules/rawmemchr-tests (Files): Likewise.
25058         * modules/readlink-tests (Files): Likewise.
25059         * modules/remove-tests (Files): Likewise.
25060         * modules/rename-tests (Files): Likewise.
25061         * modules/renameat-tests (Files): Likewise.
25062         * modules/rmdir-tests (Files): Likewise.
25063         * modules/round-tests (Files): Likewise.
25064         * modules/roundf-tests (Files): Likewise.
25065         * modules/roundl-tests (Files): Likewise.
25066         * modules/select-tests (Files): Likewise.
25067         * modules/setenv-tests (Files): Likewise.
25068         * modules/sigaction-tests (Files): Likewise.
25069         * modules/sleep-tests (Files): Likewise.
25070         * modules/snprintf-posix-tests (Files): Likewise.
25071         * modules/snprintf-tests (Files): Likewise.
25072         * modules/sprintf-posix-tests (Files): Likewise.
25073         * modules/stat-tests (Files): Likewise.
25074         * modules/strcasestr-tests (Files): Likewise.
25075         * modules/strchrnul-tests (Files): Likewise.
25076         * modules/strerror-tests (Files): Likewise.
25077         * modules/strsignal-tests (Files): Likewise.
25078         * modules/strstr-tests (Files): Likewise.
25079         * modules/strtod-tests (Files): Likewise.
25080         * modules/strverscmp-tests (Files): Likewise.
25081         * modules/symlink-tests (Files): Likewise.
25082         * modules/symlinkat-tests (Files): Likewise.
25083         * modules/times-tests (Files): Likewise.
25084         * modules/trunc-tests (Files): Likewise.
25085         * modules/truncf-tests (Files): Likewise.
25086         * modules/truncl-tests (Files): Likewise.
25087         * modules/tsearch-tests (Files): Likewise.
25088         * modules/uname-tests (Files): Likewise.
25089         * modules/unlink-tests (Files): Likewise.
25090         * modules/unsetenv-tests (Files): Likewise.
25091         * modules/usleep-tests (Files): Likewise.
25092         * modules/utimensat-tests (Files): Likewise.
25093         * modules/vasprintf-tests (Files): Likewise.
25094         * modules/vdprintf-posix-tests (Files): Likewise.
25095         * modules/vfprintf-posix-tests (Files): Likewise.
25096         * modules/vprintf-posix-tests (Files): Likewise.
25097         * modules/vsnprintf-posix-tests (Files): Likewise.
25098         * modules/vsnprintf-tests (Files): Likewise.
25099         * modules/vsprintf-posix-tests (Files): Likewise.
25100         * modules/wcrtomb-tests (Files): Likewise.
25101         * modules/wcsnrtombs-tests (Files): Likewise.
25102         * modules/wcsrtombs-tests (Files): Likewise.
25103         * modules/wcwidth-tests (Files): Likewise.
25104         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
25105         * tests/test-isinf.c (isinf): Likewise.
25106         * tests/test-isnan.c (isnan): Likewise.
25107         * tests/test-signbit.c (signbit): Likewise.
25108         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
25109         declaration, either as macro or with correct signature.
25110         (select): Ensure function under test is declared with correct
25111         signature in correct header.
25112         * tests/test-atexit.c (atexit): Likewise.
25113         * tests/test-btowc.c (btowc): Likewise.
25114         * tests/test-canonicalize-lgpl.c (realpath)
25115         (canonicalize_file_name): Likewise.
25116         * tests/test-ceilf1.c (ceilf): Likewise.
25117         * tests/test-ceill.c (ceill): Likewise.
25118         * tests/test-chown.c (chown): Likewise.
25119         * tests/test-dprintf-posix.c (dprintf): Likewise.
25120         * tests/test-dup2.c (dup2): Likewise.
25121         * tests/test-dup3.c (dup3): Likewise.
25122         * tests/test-duplocale.c (duplocale): Likewise.
25123         * tests/test-fchdir.c (fchdir): Likewise.
25124         * tests/test-fchownat.c (fchownat): Likewise.
25125         * tests/test-fcntl.c (fcntl): Likewise.
25126         * tests/test-fdopendir.c (fdopendir): Likewise.
25127         * tests/test-fflush.c (fflush): Likewise.
25128         * tests/test-flock.c (flock): Likewise.
25129         * tests/test-floorf1.c (floorf): Likewise.
25130         * tests/test-floorl.c (floorl): Likewise.
25131         * tests/test-fnmatch.c (fnmatch): Likewise.
25132         * tests/test-fopen.c (fopen): Likewise.
25133         * tests/test-fprintf-posix.c (fprintf): Likewise.
25134         * tests/test-freopen.c (freopen): Likewise.
25135         * tests/test-frexp.c (frexp): Likewise.
25136         * tests/test-frexpl.c (frexpl): Likewise.
25137         * tests/test-fseek.c (fseek): Likewise.
25138         * tests/test-fseeko.c (fseeko): Likewise.
25139         * tests/test-fstatat.c (fstatat): Likewise.
25140         * tests/test-fsync.c (fsync): Likewise.
25141         * tests/test-ftell.c (ftell): Likewise.
25142         * tests/test-ftello.c (ftello): Likewise.
25143         * tests/test-futimens.c (futimens): Likewise.
25144         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
25145         (gai_strerror): Likewise.
25146         * tests/test-getcwd.c (getcwd): Likewise.
25147         * tests/test-getdelim.c (getdelim): Likewise.
25148         * tests/test-getdtablesize.c (getdtablesize): Likewise.
25149         * tests/test-getgroups.c (getgroups): Likewise.
25150         * tests/test-gethostname.c (gethostname): Likewise.
25151         * tests/test-getline.c (getline): Likewise.
25152         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
25153         Likewise.
25154         * tests/test-gettimeofday.c (gettimeofday): Likewise.
25155         * tests/test-glob.c (glob, globfree): Likewise.
25156         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
25157         * tests/test-inet_ntop.c (inet_ntop): Likewise.
25158         * tests/test-inet_pton.c (inet_pton): Likewise.
25159         * tests/test-isblank.c (isblank): Likewise.
25160         * tests/test-lchown.c (lchown): Likewise.
25161         * tests/test-ldexpl.c (ldexpl): Likewise.
25162         * tests/test-link.c (link): Likewise.
25163         * tests/test-linkat.c (linkat): Likewise.
25164         * tests/test-lseek.c (lseek): Likewise.
25165         * tests/test-lstat.c (lstat): Likewise.
25166         * tests/test-mbrtowc.c (mbrtowc): Likewise.
25167         * tests/test-mbsinit.c (mbsinit): Likewise.
25168         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
25169         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
25170         * tests/test-memchr.c (memchr): Likewise.
25171         * tests/test-memcmp.c (memcmp): Likewise.
25172         * tests/test-memmem.c (memmem): Likewise.
25173         * tests/test-memrchr.c (memrchr): Likewise.
25174         * tests/test-mkdir.c (mkdir): Likewise.
25175         * tests/test-mkdirat.c (mkdirat): Likewise.
25176         * tests/test-mkfifo.c (mkfifo): Likewise.
25177         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
25178         * tests/test-mknod.c (mknod): Likewise.
25179         * tests/test-nanosleep.c (nanosleep): Likewise.
25180         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
25181         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
25182         Likewise.
25183         * tests/test-open.c (open): Likewise.
25184         * tests/test-openat.c (openat): Likewise.
25185         * tests/test-perror.c (perror): Likewise.
25186         * tests/test-pipe2.c (pipe2): Likewise.
25187         * tests/test-poll.c (poll): Likewise.
25188         * tests/test-popen.c (popen, pclose): Likewise.
25189         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
25190         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
25191         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
25192         (posix_spawn_file_actions_destroy)
25193         (posix_spawn_file_actions_addclose)
25194         (posix_spawn_file_actions_addopen)
25195         (posix_spawn_file_actions_adddup2): Likewise.
25196         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
25197         * tests/test-pread.c (pread): Likewise.
25198         * tests/test-printf-posix.c (printf): Likewise.
25199         * tests/test-pty.c (openpty, forkpty): Likewise.
25200         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
25201         (random_r): Likewise.
25202         * tests/test-rawmemchr.c (rawmemchr): Likewise.
25203         * tests/test-readlink.c (readlink): Likewise.
25204         * tests/test-remove.c (remove): Likewise.
25205         * tests/test-rename.c (rename): Likewise.
25206         * tests/test-renameat.c (renameat): Likewise.
25207         * tests/test-rmdir.c (rmdir): Likewise.
25208         * tests/test-round1.c (round): Likewise.
25209         * tests/test-roundf1.c (roundf): Likewise.
25210         * tests/test-roundl.c (roundl): Likewise.
25211         * tests/test-setenv.c (setenv): Likewise.
25212         * tests/test-sigaction.c (sigaction): Likewise.
25213         * tests/test-sleep.c (sleep): Likewise.
25214         * tests/test-snprintf.c (snprintf): Likewise.
25215         * tests/test-sprintf-posix.c (sprintf): Likewise.
25216         * tests/test-stat.c (stat): Likewise.
25217         * tests/test-stpncpy.c (stpncpy): Likewise.
25218         * tests/test-strcasestr.c (strcasestr): Likewise.
25219         * tests/test-strchrnul.c (strchrnul): Likewise.
25220         * tests/test-strerror.c (strerror): Likewise.
25221         * tests/test-strsignal.c (strsignal): Likewise.
25222         * tests/test-strstr.c (strstr): Likewise.
25223         * tests/test-strtod.c (strtod): Likewise.
25224         * tests/test-strverscmp.c (strverscmp): Likewise.
25225         * tests/test-symlink.c (symlink): Likewise.
25226         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
25227         * tests/test-times.c (times): Likewise.
25228         * tests/test-trunc1.c (trunc): Likewise.
25229         * tests/test-truncf1.c (truncf): Likewise.
25230         * tests/test-truncl.c (truncl): Likewise.
25231         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
25232         Likewise.
25233         * tests/test-uname.c (uname): Likewise.
25234         * tests/test-unlink.c (unlink): Likewise.
25235         * tests/test-unlinkat.c (unlinkat): Likewise.
25236         * tests/test-unsetenv.c (unsetenv): Likewise.
25237         * tests/test-usleep.c (usleep): Likewise.
25238         * tests/test-utimensat.c (utimensat): Likewise.
25239         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
25240         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
25241         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
25242         * tests/test-vprintf-posix.c (vprintf): Likewise.
25243         * tests/test-vsnprintf.c (vsnprintf): Likewise.
25244         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
25245         * tests/test-wcrtomb.c (wcrtomb): Likewise.
25246         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
25247         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
25248         * tests/test-wcwidth.c (wcwidth): Likewise.
25249
25250         build: pull in conditional headers during GNULIB_POSIXCHECK
25251         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
25252         definitions from any conditionally-included headers.
25253         * lib/stdlib.in.h (includes): Likewise.
25254         * lib/unistd.in.h (includes): Likewise.
25255
25256 2009-12-24  Bruno Haible  <bruno@clisp.org>
25257
25258         * tests/test-argv-iter.c: Include header file being tested immediately
25259         after config.h.
25260         * tests/test-base64.c: Likewise.
25261         * tests/test-flock.c: Likewise.
25262         * tests/test-fsync.c: Likewise.
25263         * tests/test-getdate.c: Likewise.
25264         * tests/test-getndelim2.c: Likewise.
25265         * tests/test-isfinite.c: Likewise.
25266         * tests/test-isinf.c: Likewise.
25267         * tests/test-strerror.c: Likewise.
25268         * tests/test-strsignal.c: Likewise.
25269
25270 2009-12-23  Eric Blake  <ebb9@byu.net>
25271
25272         unistd: work around cygwin bug
25273         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
25274         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
25275         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25276
25277 2009-12-23  Bruno Haible  <bruno@clisp.org>
25278
25279         localename: More tests.
25280         * tests/test-localename.c (SIZEOF): New macro.
25281         (categories): New variable.
25282         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
25283         test_locale_name_default): Add test w.r.t. thread locale.
25284         (test_locale_name_thread): New function.
25285         (main): Invoke it.
25286
25287         localename: Make aware of thread locale.
25288         * lib/localename.h (gl_locale_name_thread): New declaration.
25289         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
25290         behaviour with respect to thread locale.
25291         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
25292         <langinfo.h>, glthread/lock.h.
25293         (SIZE_BITS): New macro.
25294         (string_hash): New function.
25295         (struct hash_node): New type.
25296         (HASH_TABLE_SIZE): New macro.
25297         (struniq_hash_table, struniq_lock): New variables.
25298         (struniq): New function.
25299         (gl_locale_name_thread): New function.
25300         (gl_locale_name): Invoke it.
25301         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
25302         * modules/localename (Depends-on): Add lock.
25303         Reported by Mike Gran <spk121@yahoo.com>.
25304
25305 2009-12-23  Eric Blake  <ebb9@byu.net>
25306
25307         va-args: new module
25308         * modules/va-args: New file.
25309         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
25310         * MODULES.html.sh (Core language properties): Mention it.
25311
25312         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
25313         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
25314         named alias for __attribute__((__unused__)).
25315         * lib/chown.c: Update client.
25316         * lib/fchmodat.c: Likewise.
25317         * lib/fts.c: Likewise.
25318         * lib/getdate.y: Likewise.
25319         * lib/getgroups.c: Likewise.
25320         * lib/getopt.c: Likewise.
25321         * lib/getugroups.c: Likewise.
25322         * lib/mkdir.c: Likewise.
25323         * lib/mkfifo.c: Likewise.
25324         * lib/mkfifoat.c: Likewise.
25325         * lib/mknod.c: Likewise.
25326         * lib/mknodat.c: Likewise.
25327         * lib/readlink.c: Likewise.
25328         * lib/se-context.in.h: Likewise.
25329         * lib/se-selinux.in.h: Likewise.
25330         * lib/sockets.c: Likewise.
25331         * lib/symlink.c: Likewise.
25332         * lib/symlinkat.c: Likewise.
25333         * lib/unicodeio.c: Likewise.
25334         * lib/unistr.h: Likewise.
25335         * tests/test-areadlink.c: Likewise.
25336         * tests/test-areadlinkat.c: Likewise.
25337         * tests/test-filenamecat.c: Likewise.
25338         * tests/test-fseeko.c: Likewise.
25339         * tests/test-ftello.c: Likewise.
25340         * tests/test-getdate.c: Likewise.
25341         * tests/test-getgroups.c: Likewise.
25342         * tests/test-gethostname.c: Likewise.
25343         * tests/test-quotearg.c: Likewise.
25344         * tests/test-version-etc.c: Likewise.
25345         * tests/test-xalloc-die.c: Likewise.
25346         * tests/test-xfprintf-posix.c: Likewise.
25347         * tests/test-xprintf-posix.c: Likewise.
25348         * tests/test-xvasprintf.c: Likewise.
25349
25350         tests: avoid compiler warnings
25351         * tests/test-fcntl.c (main): Delete unused parameters.
25352         * tests/test-freopen-safer.c (main): Likewise.
25353         * tests/test-xalloc-die.c (main): Mark unused parameters.
25354         * tests/test-fseeko.c (main): Likewise.
25355         * tests/test-ftello.c (main): Likewise.
25356         * tests/test-nanosleep.c (main): Avoid declaration warning.
25357         * tests/test-sleep.c (main): Likewise.
25358         * tests/test-unsetenv.c (main): Silence warning about string
25359         literal.
25360         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25361
25362 2009-12-23  Bruno Haible  <bruno@clisp.org>
25363
25364         * tests/test-localename.c (test_locale_name): New function, extracted
25365         from main. Also test mixed situations.
25366         (test_locale_name_posix, test_locale_name_environ,
25367         test_locale_name_default): New functions.
25368         (main): Invoke them all.
25369         * modules/localename-tests (configure.ac): Test for newlocale.
25370
25371 2009-12-23  Bruno Haible  <bruno@clisp.org>
25372
25373         unistd: Ensure getcwd gets declared before being overridden.
25374         * lib/unistd.in.h: Conditionally include <io.h>.
25375
25376 2009-12-22  Bruno Haible  <bruno@clisp.org>
25377
25378         wchar: Diagnose broken combination of glibc and gcc versions and flags.
25379         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
25380         (gl_WCHAR_H): Invoke it.
25381         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
25382         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
25383         Reported by Karl Berry <karl@freefriends.org>.
25384
25385 2009-12-22  Eric Blake  <ebb9@byu.net>
25386
25387         math, unistd: avoid redundant includes
25388         * lib/math.in.h (isnan): No need to re-include <math.h>.
25389         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
25390
25391         getsubopt: work around cygwin bug
25392         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
25393         avoid conflicting with system getsubopt.
25394         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
25395         bug.
25396
25397         getopt: synchronize from glibc
25398         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
25399         parameter order.  Adjust all callers.
25400         (_getopt_internal_r, main): Adjust quoting in error messages.
25401         Drop considerations for outdated POSIX 1003.2 error message.
25402         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
25403         callers.
25404         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
25405
25406         test-getopt: test stderr behavior
25407         * modules/getopt-posix-tests (Depends-on): Add dup2.
25408         * tests/test-getopt.c (ASSERT): Avoid stderr.
25409         (main): Move stderr to a temporary file.
25410         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
25411         Instead, add parameter to inform caller if output occurred.
25412         (test_getopt): Adjust all existing tests to expect silence, and
25413         add new tests of leading ":".
25414         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25415         glibc shortcomings with leading "-:" or "+:" in optstring.
25416         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25417         Likewise.
25418         * doc/posix-functions/getopt.texi (getopt): Likewise.
25419
25420         test-getopt: enhance test
25421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
25422         supports optind=0.
25423         * tests/test-getopt.c (OPTIND_MIN): Move...
25424         * tests/test-getopt.h (OPTIND_MIN): ...here.
25425         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
25426         Require that optind=0 works, since modern BSD supports it in
25427         addition to optreset, and since coreutils expects it.
25428         (test_getopt_long_only): New test.
25429         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
25430         glibc shortcomings with 'W;', and enforcement of optind=0.
25431         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25432         Likewise.
25433
25434 2009-12-21  Bruno Haible  <bruno@clisp.org>
25435
25436         localename: Improvements for MacOS X and Cygwin.
25437         * lib/localename.h (gl_locale_name_environ): New declaration.
25438         * lib/localename.c (gl_locale_name_environ): New function, extracted from
25439         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
25440         (gl_locale_name_posix): Invoke it.
25441         (gl_locale_name_default): Add comments. Use Windows native API also on
25442         Cygwin.
25443
25444 2009-12-21  Bruno Haible  <bruno@clisp.org>
25445
25446         Update list of Win32 locale ids.
25447         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
25448         (LANG_SAMI): Renamed from LANG_SAAMI.
25449         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
25450         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
25451         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
25452         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
25453         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
25454         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
25455         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
25456         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
25457         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
25458         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
25459         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
25460         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
25461         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
25462         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
25463         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
25464         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
25465         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
25466         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
25467         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
25468         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
25469         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
25470         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
25471         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
25472         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
25473         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
25474         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
25475         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
25476         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
25477         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
25478         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
25479         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
25480         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
25481         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
25482         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
25483         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
25484         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
25485         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
25486         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
25487         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
25488         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
25489         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
25490         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
25491         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
25492         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
25493         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
25494         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
25495         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
25496         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
25497         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
25498         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
25499         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
25500         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
25501         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
25502         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
25503         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
25504         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
25505         Add more languages and countries for Sami, Sorbian. Add more countries
25506         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
25507         for Pashto. Change country for Syriac, Tswana.
25508
25509 2009-12-21  Eric Blake  <ebb9@byu.net>
25510
25511         test-utimens: avoid spurious failure
25512         * tests/test-chown.h (nap): Factor...
25513         * tests/nap.h: ...into new file.
25514         * tests/test-lchown.h (nap): Avoid duplication.
25515         * tests/test-utimens-common.h (nap): Use shared implementation,
25516         necessary on file systems with 1-second resolution.
25517         * modules/chown-tests (Files): Include new file.
25518         * modules/fdutimensat-tests (Files): Likewise.
25519         * modules/futimens-tests (Files): Likewise.
25520         * modules/lchown-tests (Files): Likewise.
25521         * modules/openat-tests (Files): Likewise.
25522         * modules/utimens-tests (Files): Likewise.
25523         * modules/utimensat-tests (Files): Likewise.
25524
25525 2009-12-19  Eric Blake  <ebb9@byu.net>
25526
25527         futimens, utimensat: work around Linux bug
25528         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
25529         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25530         * lib/utimensat.c (rpl_utimensat): Work around it.
25531         * lib/futimens.c (rpl_futimens): Adjust comment.
25532
25533         utimens: work around Linux ctime bug
25534         * lib/utimens.c (detect_ctime_bug): New helper function.
25535         (update_timespec): Differentiate between workaround needed for
25536         this bug vs. what is needed for systems that lack utimensat.
25537         (fdutimens, lutimens): Work around bug.
25538
25539         utimens: check for ctime update
25540         * tests/test-utimens-common.h (check_ctime): Define.
25541         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
25542         * tests/test-futimens.h (test_futimens): Likewise.
25543         * tests/test-lutimens.h (test_lutimens): Likewise.
25544         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25545         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25546
25547 2009-12-19  Bruno Haible  <bruno@clisp.org>
25548
25549         dprintf-posix: Check against memory leak fixed on 2009-12-15.
25550         * tests/test-dprintf-posix2.sh: New file.
25551         * tests/test-dprintf-posix2.c: New file.
25552         * modules/dprintf-posix-tests (Files): Add them.
25553         (configure.ac): Check for getrlimit and setrlimit.
25554         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25555
25556 2009-12-19  Bruno Haible  <bruno@clisp.org>
25557
25558         fprintf-posix: Check against memory leak fixed on 2009-12-15.
25559         * tests/test-fprintf-posix3.sh: New file.
25560         * tests/test-fprintf-posix3.c: New file.
25561         * modules/fprintf-posix-tests (Files): Add them.
25562         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
25563
25564 2009-12-19  Eric Blake  <ebb9@byu.net>
25565
25566         dirfd: fix prototype
25567         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
25568         * lib/dirfd.c (dirfd): Likewise.
25569
25570         canonicalize: reduce memory usage
25571         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
25572         allocation to size.
25573         Reported by Solar Designer <solar@openwall.com>.
25574
25575 2009-12-19  Bruno Haible  <bruno@clisp.org>
25576
25577         New module attribute 'Applicability'.
25578         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
25579         * gnulib-tool: New option --extract-applicability.
25580         (func_usage): Document it.
25581         (sed_extract_prog): Recognize it.
25582         (func_get_applicability): New function.
25583         (func_import): Generalize handling of 'link-warning' module.
25584         * modules/link-warning (Applicability): New section.
25585         * modules/arg-nonnull (Applicability): New section.
25586         Repoted by Simon Josefsson <simon@josefsson.org>.
25587
25588 2009-12-19  Bruno Haible  <bruno@clisp.org>
25589
25590         fflush: tweak
25591         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
25592         * lib/fseeko.c (rpl_fseeko): Likewise.
25593
25594 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
25595
25596         * lib/gl_list.h: Fix typo in comment.
25597
25598 2009-12-16  Eric Blake  <ebb9@byu.net>
25599
25600         fcntl: use to simplify other modules
25601         * modules/cloexec (Depends-on): Add fcntl.
25602         * modules/fchdir (Depends-on): Likewise.
25603         * modules/fd-safer-flag (Depends-on): Likewise.
25604         * modules/unistd-safer (Depends-on): Likewise.
25605         * modules/dup3 (configure.ac): Set module indicator.
25606         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
25607         missing.
25608         * lib/fchdir.c (_gl_register_dup): Fix comment.
25609         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
25610         * lib/dup-safer.c (dup_safer): Likewise.
25611         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
25612         * lib/dup3.c (dup3): Likewise.
25613         * tests/test-fchdir.c (main): Enhance test.
25614         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
25615
25616         fcntl: port portions of fcntl to mingw
25617         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
25618         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
25619         replacement for mingw.
25620         * modules/fcntl (Description): Update.
25621         (Depends-on): Add dup2.
25622         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
25623         * modules/fcntl-h (Makefile.am): Substitute it.
25624         * lib/fcntl.in.h (fcntl): Update declaration.
25625         (F_DUPFD, F_GETFD): New macros, when needed.
25626         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25627         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
25628         * tests/test-fcntl.c (check_flags, main): Enhance test for items
25629         we now guarantee.
25630
25631         fcntl: work around cygwin bug in F_DUPFD
25632         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
25633         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
25634         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
25635         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
25636         * doc/posix-functions/fcntl.texi (fcntl): Document it.
25637
25638         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
25639         * modules/fcntl (Files): List new files.
25640         (configure.ac): Run a test.
25641         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
25642         * lib/fcntl.c (rpl_fcntl): Likewise.
25643         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
25644         (gl_FCNTL_H): Always replace fcntl.h.
25645         * modules/fcntl-h (Makefile.am): Substitute witnesses.
25646         * lib/fcntl.in.h (fcntl): Declare replacement.
25647         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
25648         needed, plus a witness.
25649         * doc/posix-functions/fcntl.texi (fcntl): Document this.
25650         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25651         * tests/test-fcntl.c: New file.
25652         * modules/fcntl-tests: Likewise.
25653
25654         binary-io: avoid potential compilation warning
25655         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
25656         directives.
25657
25658         fflush: avoid compilation error on NetBSD
25659         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
25660         between off_t and fpos_t, since the latter is sometimes a struct.
25661         * lib/fseeko.c (rpl_fseeko): Likewise.
25662         Reported by Alexander Nasonov <alnsn@yandex.ru>.
25663
25664 2009-12-15  Eric Blake  <ebb9@byu.net>
25665
25666         fcntl-h, stdio, sys_ioctl: fix declarations
25667         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
25668         function must not take arguments.
25669         * lib/sys_ioctl.in.h (ioctl): Likewise.
25670         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
25671         (open): Add a link warning.
25672
25673 2009-12-15  Jim Meyering  <meyering@redhat.com>
25674
25675         areadlink, areadlink-with-size: relax license to LGPLv2+
25676         * modules/areadlink (License): Relax to LGPLv2+.
25677         * modules/areadlink-with-size (License): Likewise.
25678
25679 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
25680             Bruno Haible  <bruno@clisp.org>
25681
25682         *printf: Fix memory leak.
25683         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
25684         * lib/vfprintf.c (vfprintf): Likewise.
25685         * lib/dprintf.c (dprintf): Likewise.
25686         * lib/vdprintf.c (vdprintf): Likewise.
25687
25688 2009-12-14  Eric Blake  <ebb9@byu.net>
25689
25690         accept4: adjust module dependencies
25691         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
25692
25693         utimens: one more try at avoiding compiler warning
25694         * lib/utimens.c (lutimens): Lower scope of result.
25695
25696 2009-12-13  Bruno Haible  <bruno@clisp.org>
25697
25698         Move the malloc checking from module 'list' to new module 'xlist'.
25699         * modules/xlist: New file.
25700         * lib/gl_xlist.h: New file.
25701         * lib/gl_xlist.c: New file.
25702         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
25703         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
25704         gl_list_add_last, gl_list_add_before, gl_list_add_after,
25705         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
25706         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
25707         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
25708         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
25709         gl_sortedlist_nx_add): New declarations.
25710         (struct gl_list_implementation): Rename and change methods accordingly.
25711         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
25712         (gl_list_nx_create): Renamed from gl_list_create.
25713         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25714         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25715         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25716         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25717         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25718         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25719         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25720         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25721         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
25722         gl_list_create_empty.
25723         (gl_list_nx_create): Renamed from gl_list_create.
25724         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25725         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25726         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25727         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25728         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25729         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25730         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25731         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25732         * lib/gl_array_list.c: Don't include xalloc.h.
25733         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
25734         NULL upon out-of-memory.
25735         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
25736         out-of-memory.
25737         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
25738         Change return type to 'int'.
25739         (gl_array_nx_set_at): Renamed from gl_array_set_at.
25740         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25741         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
25742         upon out-of-memory.
25743         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
25744         upon out-of-memory.
25745         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
25746         upon out-of-memory.
25747         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
25748         upon out-of-memory.
25749         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
25750         out-of-memory.
25751         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
25752         Update.
25753         (gl_array_list_implementation): Update.
25754         * lib/gl_carray_list.c: Don't include xalloc.h.
25755         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
25756         Return NULL upon out-of-memory.
25757         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
25758         out-of-memory.
25759         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
25760         Change return type to 'int'.
25761         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
25762         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25763         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
25764         upon out-of-memory.
25765         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
25766         upon out-of-memory.
25767         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
25768         out-of-memory.
25769         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
25770         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
25771         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
25772         Update.
25773         (gl_carray_list_implementation): Update.
25774         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
25775         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
25776         gl_linked_create_empty. Return NULL upon out-of-memory.
25777         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
25778         out-of-memory.
25779         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
25780         Change return type to 'int'. Return -1 upon out-of-memory.
25781         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
25782         out-of-memory.
25783         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
25784         upon out-of-memory.
25785         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
25786         upon out-of-memory.
25787         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
25788         NULL upon out-of-memory.
25789         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
25790         upon out-of-memory.
25791         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
25792         out-of-memory.
25793         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
25794         Update.
25795         * lib/gl_linked_list.c: Don't include xalloc.h.
25796         (gl_linked_list_implementation): Update.
25797         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
25798         (add_to_bucket): Change return type to 'int'.
25799         (gl_linkedhash_list_implementation): Update.
25800         * lib/gl_anytree_list1.h (free_subtree): New function.
25801         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
25802         gl_tree_create_empty. Return NULL upon out-of-memory.
25803         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
25804         Change return type to 'int'. Return -1 upon out-of-memory.
25805         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
25806         out-of-memory.
25807         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
25808         (gl_tree_remove_node): New function, moved here from
25809         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
25810         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
25811         Update.
25812         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
25813         malloc, not xmalloc. Return NULL upon out-of-memory.
25814         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
25815         out-of-memory.
25816         (gl_tree_remove_node_from_tree): New function, extracted from
25817         gl_tree_remove_node.
25818         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
25819         upon out-of-memory.
25820         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
25821         out-of-memory.
25822         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
25823         upon out-of-memory.
25824         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
25825         upon out-of-memory.
25826         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
25827         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
25828         not xmalloc. Return NULL upon out-of-memory.
25829         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
25830         out-of-memory.
25831         (gl_tree_remove_node_from_tree): New function, extracted from
25832         gl_tree_remove_node.
25833         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
25834         upon out-of-memory.
25835         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
25836         out-of-memory.
25837         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
25838         upon out-of-memory.
25839         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
25840         upon out-of-memory.
25841         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
25842         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
25843         gl_anytree_list1.h before gl_anyavltree_list2.h.
25844         (gl_avltree_list_implementation): Update.
25845         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
25846         gl_anytree_list1.h before gl_anyavltree_list2.h.
25847         (gl_rbtree_list_implementation): Update.
25848         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
25849         Change return type to 'int'. Return -1 upon out-of-memory. Use
25850         __builtin_expect.
25851         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
25852         (gl_avltreehash_list_implementation): Update.
25853         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
25854         (gl_rbtreehash_list_implementation): Update.
25855         * modules/array-list (Depends-on): Remove xalloc.
25856         * modules/carray-list (Depends-on): Likewise.
25857         * modules/linked-list (Depends-on): Likewise.
25858         * modules/linkedhash-list (Depends-on): Likewise.
25859         * modules/avltree-list (Depends-on): Likewise.
25860         * modules/rbtree-list (Depends-on): Likewise.
25861         * modules/avltreehash-list (Depends-on): Likewise.
25862         * modules/rbtreehash-list (Depends-on): Likewise.
25863
25864         * modules/xsublist: New file.
25865         * lib/gl_xsublist.h: New file.
25866         * lib/gl_xsublist.c: New file.
25867         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
25868         (gl_sublist_nx_create): New declaration.
25869         * lib/gl_sublist.c: Don't include xalloc.h.
25870         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
25871         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
25872         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
25873         Change return type to 'int'. Return -1 upon out-of-memory.
25874         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
25875         upon out-of-memory.
25876         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
25877         NULL upon out-of-memory.
25878         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
25879         upon out-of-memory.
25880         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
25881         NULL upon out-of-memory.
25882         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
25883         NULL upon out-of-memory.
25884         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
25885         upon out-of-memory.
25886         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
25887         (gl_sublist_list_implementation): Update.
25888         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
25889         upon out-of-memory.
25890         * modules/sublist (Depends-on): Remove xalloc.
25891
25892         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
25893         * tests/test-carray_list.c: Likewise.
25894         * tests/test-linked_list.c: Likewise.
25895         * tests/test-linkedhash_list.c: Likewise.
25896         * tests/test-avltree_list.c: Likewise.
25897         * tests/test-rbtree_list.c: Likewise.
25898         * tests/test-avltreehash_list.c: Likewise.
25899         * tests/test-rbtreehash_list.c: Likewise.
25900         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
25901         * modules/carray-list-tests (Makefile.am): Likewise.
25902         * modules/linked-list-tests (Makefile.am): Likewise.
25903         * modules/linkedhash-list-tests (Makefile.am): Likewise.
25904         * modules/avltree-list-tests (Makefile.am): Likewise.
25905         * modules/rbtree-list-tests (Makefile.am): Likewise.
25906         * modules/avltreehash-list-tests (Makefile.am): Likewise.
25907         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
25908
25909         * NEWS: Mention the changes.
25910
25911         * lib/clean-temp.c: Include gl_xlist.h.
25912         * modules/clean-temp (Depends-on): Add xlist.
25913
25914         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
25915         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
25916
25917         * tests/test-array_oset.c: Include gl_xlist.h.
25918         * modules/array-oset-tests (Depends-on): Add xlist.
25919
25920         Reported by José E. Marchesi <jemarch@gnu.org>.
25921
25922 2009-12-13  Bruno Haible  <bruno@clisp.org>
25923
25924         Move the malloc checking from module 'oset' to new module 'xoset'.
25925         * modules/xoset: New file.
25926         * lib/gl_xoset.h: New file.
25927         * lib/gl_xoset.c: New file.
25928         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
25929         declarations.
25930         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
25931         (struct gl_oset_implementation): Rename and change methods accordingly.
25932         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
25933         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
25934         'int'. Mark as __warn_unused_result__.
25935         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
25936         gl_oset_create_empty.
25937         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
25938         'int'.
25939         * lib/gl_array_oset.c: Don't include xalloc.h.
25940         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
25941         malloc, not xmalloc.
25942         (grow): Change return type to 'int'. Don't call xalloc_die.
25943         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
25944         to 'int'.
25945         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
25946         'int'.
25947         (gl_array_oset_implementation): Update.
25948         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
25949         gl_tree_create_empty.
25950         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
25951         'int'.
25952         * lib/gl_avltree_oset.c: Don't include xalloc.h.
25953         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
25954         xmalloc.
25955         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
25956         not xmalloc.
25957         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
25958         xmalloc.
25959         (gl_avltree_oset_implementation): Update.
25960         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
25961         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
25962         xmalloc.
25963         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
25964         not xmalloc.
25965         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
25966         xmalloc.
25967         (gl_rbtree_oset_implementation): Update.
25968         * modules/array-oset (Depends-on): Remove xalloc.
25969         * modules/avltree-oset (Depends-on): Likewise.
25970         * modules/rbtree-oset (Depends-on): Likewise.
25971         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
25972         * tests/test-avltree_oset.c: Likewise.
25973         * tests/test-rbtree_oset.c: Likewise.
25974         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
25975         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
25976         * modules/rbtree-oset-tests (Makefile.am): Likewise.
25977         * NEWS: Mention the change.
25978
25979 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
25980
25981         maint.mk: allow a project to override release-prep commands
25982         * top/maint.mk (alpha, beta, stable): Move release-preparatory
25983         commands into a new rule.
25984         (release-prep): New rule.
25985         (release-prep-hook): New overridable variable.
25986
25987 2009-12-13  Bruno Haible  <bruno@clisp.org>
25988
25989         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
25990
25991 2009-12-13  Jim Meyering  <meyering@redhat.com>
25992
25993         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
25994         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
25995
25996 2009-12-12  Bruno Haible  <bruno@clisp.org>
25997
25998         duplocale: Tweak.
25999         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
26000
26001 2009-12-12  Karl Berry  <karl@gnu.org>
26002
26003         * config/srclist.txt (strtoll.c): tab changes, no more sync.
26004
26005 2009-12-12  Bruno Haible  <bruno@clisp.org>
26006
26007         * m4/po.m4: Undo incorrect untabification.
26008
26009 2009-12-12  Bruno Haible  <bruno@clisp.org>
26010
26011         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
26012         * modules/c-strtod (Depends-on): Add locale.
26013         * modules/c-strtold (Depends-on): Likewise.
26014
26015 2009-12-12  Bruno Haible  <bruno@clisp.org>
26016
26017         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
26018
26019 2009-12-11  Eric Blake  <ebb9@byu.net>
26020
26021         setenv: relax requirement in light of POSIX ruling
26022         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
26023         not NULL.
26024         * tests/test-setenv.c (main): Relax test.
26025         * tests/test-unsetenv.c (main): Likewise.
26026         * doc/posix-functions/setenv.texi (setenv): Document this.
26027         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26028
26029 2009-12-11  Bruno Haible  <bruno@clisp.org>
26030
26031         New module 'fd-safer-flag'.
26032         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
26033         * lib/dup-safer.c (dup_safer_flag): Remove function.
26034         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
26035         * lib/fd-safer.c (fd_safer_flag): Remove function.
26036         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
26037         * modules/cloexec (configure.ac): Drop indicator macro.
26038         * modules/fd-safer-flag: New file.
26039         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
26040         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
26041         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
26042
26043 2009-12-11  Bruno Haible  <bruno@clisp.org>
26044
26045         Tests for module 'nl_langinfo'.
26046         * modules/nl_langinfo-tests: New file.
26047         * tests/test-nl_langinfo.sh: New file.
26048         * tests/test-nl_langinfo.c: New file.
26049
26050         New module 'nl_langinfo'.
26051         * lib/nl_langinfo.c: New file.
26052         * m4/nl_langinfo.m4: New file.
26053         * modules/nl_langinfo: New file.
26054         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
26055
26056 2009-12-11  Bruno Haible  <bruno@clisp.org>
26057
26058         Tests for module 'langinfo'.
26059         * modules/langinfo-tests: New file.
26060         * tests/test-langinfo.c: New file.
26061
26062         New module 'langinfo'.
26063         * lib/langinfo.in.h: New file.
26064         * m4/langinfo_h.m4: New file.
26065         * modules/langinfo: New file.
26066         * doc/posix-headers/langinfo.texi: Mention the new module.
26067
26068 2009-12-11  Bruno Haible  <bruno@clisp.org>
26069
26070         * lib/config.charset: Untabify.
26071
26072 2009-12-11  Bruno Haible  <bruno@clisp.org>
26073
26074         * modules/unistd-safer (configure.ac): Drop indicator macro.
26075
26076 2009-12-11  Bruno Haible  <bruno@clisp.org>
26077
26078         Move pipe2-safer code to its own file.
26079         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
26080         * lib/pipe-safer.c (pipe2_safer): Remove function.
26081         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
26082         (Makefile.am): Add it to lib_SOURCES.
26083
26084 2009-12-10  Bruno Haible  <bruno@clisp.org>
26085
26086         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
26087
26088 2009-12-10  Bruno Haible  <bruno@clisp.org>
26089
26090         Declare which arguments expect non-NULL values, for GCC and clang.
26091         * build-aux/arg-nonnull.h: New file.
26092         * modules/arg-nonnull: New file.
26093         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
26094         (inet_ntop, inet_pton): Use it.
26095         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
26096         (closedir, dirfd, opendir, scandir, alphasort): Use it.
26097         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
26098         (open, openat): Use it.
26099         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
26100         (fnmatch): Use it.
26101         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
26102         (getopt, getopt_long, getopt_long_only): Use it.
26103         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
26104         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
26105         Use it.
26106         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
26107         (iconv_open): Use it.
26108         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
26109         (strtoimax, strtoumax): Use it.
26110         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
26111         (duplocale): Use it.
26112         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
26113         (frexp, frexpl): Use it.
26114         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
26115         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
26116         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
26117         (tsearch, tfind, tdelete, twalk): Use it.
26118         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
26119         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26120         sigpending): Use it.
26121         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
26122         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26123         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26124         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26125         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26126         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26127         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26128         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26129         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26130         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26131         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26132         Use it.
26133         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
26134         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
26135         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
26136         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
26137         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
26138         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
26139         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
26140         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
26141         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
26142         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
26143         strtoull, unsetenv): Use it.
26144         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
26145         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26146         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26147         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
26148         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
26149         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
26150         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
26151         (strcasecmp, strncasecmp): Use it.
26152         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
26153         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
26154         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
26155         rpl_setsockopt): Use it.
26156         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
26157         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
26158         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
26159         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
26160         (gettimeofday): Use it.
26161         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
26162         (times): Use it.
26163         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
26164         (uname): Use it.
26165         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
26166         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
26167         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
26168         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
26169         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
26170         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
26171         unlinkat, write): Use it.
26172         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
26173         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
26174         * lib/argv-iter.h: Include arg-nonnull.h.
26175         (_ATTRIBUTE_NONNULL_): Remove macro.
26176         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
26177         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
26178         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
26179         optimization.
26180         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
26181         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
26182         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
26183         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
26184         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
26185         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
26186         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
26187         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
26188         * modules/arpa_inet (Depends-on): Add arg-nonnull.
26189         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
26190         * modules/dirent (Depends-on): Add arg-nonnull.
26191         (Makefile.am): Insert arg-nonnull.h into dirent.h.
26192         * modules/fcntl-h (Depends-on): Add arg-nonnull.
26193         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
26194         * modules/fnmatch (Depends-on): Add arg-nonnull.
26195         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
26196         * modules/getopt-posix (Depends-on): Add arg-nonnull.
26197         (Makefile.am): Insert arg-nonnull.h into getopt.h.
26198         * modules/glob (Depends-on): Add arg-nonnull.
26199         (Makefile.am): Insert arg-nonnull.h into glob.h.
26200         * modules/iconv_open (Depends-on): Add arg-nonnull.
26201         (Makefile.am): Insert arg-nonnull.h into iconv.h.
26202         * modules/inttypes (Depends-on): Add arg-nonnull.
26203         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
26204         * modules/locale (Depends-on): Add arg-nonnull.
26205         (Makefile.am): Insert arg-nonnull.h into locale.h.
26206         * modules/math (Depends-on): Add arg-nonnull.
26207         (Makefile.am): Insert arg-nonnull.h into math.h.
26208         * modules/netdb (Depends-on): Add arg-nonnull.
26209         (Makefile.am): Insert arg-nonnull.h into netdb.h.
26210         * modules/search (Depends-on): Add arg-nonnull.
26211         (Makefile.am): Insert arg-nonnull.h into search.h.
26212         * modules/signal (Depends-on): Add arg-nonnull.
26213         (Makefile.am): Insert arg-nonnull.h into signal.h.
26214         * modules/spawn (Depends-on): Add arg-nonnull.
26215         (Makefile.am): Insert arg-nonnull.h into spawn.h.
26216         * modules/stdio (Depends-on): Add arg-nonnull.
26217         (Makefile.am): Insert arg-nonnull.h into stdio.h.
26218         * modules/stdlib (Depends-on): Add arg-nonnull.
26219         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
26220         * modules/string (Depends-on): Add arg-nonnull.
26221         (Makefile.am): Insert arg-nonnull.h into string.h.
26222         * modules/strings (Depends-on): Add arg-nonnull.
26223         (Makefile.am): Insert arg-nonnull.h into strings.h.
26224         * modules/sys_socket (Depends-on): Add arg-nonnull.
26225         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
26226         * modules/sys_stat (Depends-on): Add arg-nonnull.
26227         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
26228         * modules/sys_time (Depends-on): Add arg-nonnull.
26229         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
26230         * modules/sys_times (Depends-on): Add arg-nonnull.
26231         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
26232         * modules/sys_utsname (Depends-on): Add arg-nonnull.
26233         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
26234         * modules/time (Depends-on): Add arg-nonnull.
26235         (Makefile.am): Insert arg-nonnull.h into time.h.
26236         * modules/unistd (Depends-on): Add arg-nonnull.
26237         (Makefile.am): Insert arg-nonnull.h into unistd.h.
26238         * modules/wchar (Depends-on): Add arg-nonnull.
26239         (Makefile.am): Insert arg-nonnull.h into wchar.h.
26240         * modules/argv-iter (Depends-on): Add arg-nonnull.
26241         * tests/test-canonicalize.c (null_ptr): New function.
26242         (main): Use it.
26243         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
26244         (main): Use it.
26245         * tests/test-memmem.c (null_ptr): New function.
26246         (main): Use it.
26247         Reported by Jim Meyering.
26248
26249 2009-12-10  Bruno Haible  <bruno@clisp.org>
26250
26251         Use spaces for indentation, not tabs.
26252         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26253         * m4/*.m4: Untabify.
26254         * build-aux/*.h: Untabify.
26255         * tests/**/*.[hc]: Untabify.
26256         * README: New section "Indent with spaces, not TABs", based on
26257         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
26258         * NEWS: Mention the change.
26259
26260 2009-12-10  Bruno Haible  <bruno@clisp.org>
26261
26262         pty test: Fix link error.
26263         * modules/pty-tests (Makefile.am): Add the default LDADD value to
26264         test_pty_LDADD.
26265
26266 2009-12-07  Simon Josefsson  <simon@josefsson.org>
26267
26268         * modules/pty: New file.
26269         * modules/pty-tests: New file.
26270         * m4/pty.m4: New file.
26271         * tests/test-pty.c: New file.
26272         * doc/glibc-headers/pty.texi: Modified.
26273         * doc/glibc-functions/forkpty.texi: Modified.
26274         * doc/glibc-functions/openpty.texi: Modified.
26275
26276 2009-12-10  Bruno Haible  <bruno@clisp.org>
26277
26278         Avoid syntax error in C++ mode.
26279         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
26280
26281 2009-12-10  Bruno Haible  <bruno@clisp.org>
26282
26283         Use sed with option -e.
26284         * gnulib-tool (func_version, func_emit_copyright_notice,
26285         func_emit_initmacro_end, func_import, func_create_testdir): Pass
26286         option -e to sed.
26287         * modules/link-warning (Makefile.am): Likewise.
26288
26289 2009-12-10  Jim Meyering  <meyering@redhat.com>
26290
26291         mgetgroups: do not write bytes beyond end of malloc'd buffer
26292         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
26293         username, we call getgroups with a one-element-shorter buffer,
26294         but still told it the length was original, max_n_groups.
26295
26296 2009-12-09  Eric Blake  <ebb9@byu.net>
26297
26298         cloexec: relax license
26299         * modules/cloexec (Maintainer): Add myself.
26300         (License): Use LGPL, not GPL.
26301
26302         link-warning: optimize generation
26303         * modules/link-warning (Makefile.am): Reduce process usage.
26304
26305 2009-12-09  Bruno Haible  <bruno@clisp.org>
26306
26307         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
26308         workaround was added on 2009-11-17.
26309
26310 2009-12-09  Jim Meyering  <meyering@redhat.com>
26311             Bruno Haible  <bruno@clisp.org>
26312
26313         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
26314         * modules/link-warning (Makefile.am): Make the comment-removing sed
26315         command more robust in the face of bootstrap-prepended comment lines.
26316
26317 2009-12-09  Bruno Haible  <bruno@clisp.org>
26318
26319         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
26320         most one group.
26321
26322 2009-12-09  Simon Josefsson <simon@josefsson.org>
26323             Bruno Haible  <bruno@clisp.org>
26324
26325         * build-aux/link-warning.h: Add copyright notice.
26326         * modules/link-warning (Makefile.am): Generate link-warning.h from
26327         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
26328         * NEWS: Mention change in link-warning module.
26329         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
26330         * modules/dirent (Makefile.am): Add dependency to dirent.h.
26331         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
26332         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
26333         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
26334         * modules/math (Makefile.am): Add dependency to math.h.
26335         * modules/search (Makefile.am): Add dependency to search.h.
26336         * modules/signal (Makefile.am): Add dependency to signal.h.
26337         * modules/spawn (Makefile.am): Add dependency to spawn.h.
26338         * modules/stdio (Makefile.am): Add dependency to stdio.h.
26339         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
26340         * modules/string (Makefile.am): Add dependency to string.h.
26341         * modules/strings (Makefile.am): Add dependency to strings.h.
26342         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
26343         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
26344         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
26345         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
26346         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
26347         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
26348         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
26349         * modules/unistd (Makefile.am): Add dependency to unistd.h.
26350         * modules/wchar (Makefile.am): Add dependency to wchar.h.
26351
26352 2009-12-09  Bruno Haible  <bruno@clisp.org>
26353
26354         fchdir: Optimize away rpl_fstat when possible.
26355         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
26356         REPLACE_OPEN_DIRECTORY.
26357         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
26358
26359 2009-12-09  Bruno Haible  <bruno@clisp.org>
26360
26361         * lib/fchdir.c: Update comment.
26362
26363 2009-12-09  Bruno Haible  <bruno@clisp.org>
26364
26365         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
26366
26367 2009-12-08  Eric Blake  <ebb9@byu.net>
26368
26369         fchdir: avoid memory leak on re-registration.
26370         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
26371
26372 2009-12-08  Jim Meyering  <meyering@redhat.com>
26373
26374         init.sh: avoid Solaris 10 /bin/sh portability problem
26375         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
26376         sourced script:
26377           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
26378           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
26379           bar
26380         tests/init.sh relied on that, accepting a --set-path=DIR argument,
26381         and two tests used that idiom.
26382         * tests/init.sh: Update suggested usage comments.
26383         (path_prepend_): New function, to be used in place
26384         of the --src-path=DIR option.
26385         (setup_): Move PATH-prepending code into path_prepend_.
26386         * tests/test-pread.sh: Adapt to new usage.
26387         * tests/test-xalloc-die.sh: Likewise.
26388
26389 2009-12-08  Simon Josefsson  <simon@josefsson.org>
26390
26391         * doc/gnulib.texi (Glibc pty.h): Add.
26392         * doc/glibc-functions/forkpty.texi: Add.
26393         * doc/glibc-functions/openpty.texi: Add.
26394         Suggested by Bruno Haible.
26395
26396 2009-12-08  Eric Blake  <ebb9@byu.net>
26397
26398         fchdir: fix logic bugs
26399         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
26400         * tests/test-fchdir.c (main): Enhance test.
26401         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
26402         is in use.
26403
26404         dup2: fix logic bugs
26405         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
26406         REPLACE_DUP2 to decide when rpl_dup2 is needed.
26407         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
26408         exists.
26409         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
26410
26411 2009-12-07  Eric Blake  <ebb9@byu.net>
26412
26413         unlink: fix m4 detection
26414         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
26415
26416         unistd-safer: add unit test
26417         * modules/unistd-safer-tests: New file.
26418         * tests/test-dup-safer.c: Likewise.
26419         * tests/test-cloexec.c (setmode): Avoid compiler warning.
26420         * tests/test-dup2.c (setmode): Likewise.
26421         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
26422
26423         cloexec: preserve text vs. binary across dup_cloexec
26424         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
26425         mode.
26426         * modules/dup2-tests (Depends-on): Add binary-io.
26427         * modules/cloexec-tests (Depends-on): Likewise.
26428         * tests/test-dup2.c (setmode, is_mode): New helpers.
26429         (main): Add tests that translation mode is preserved.
26430         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
26431         Reported by Bruno Haible.
26432
26433         mgetgroups: reduce duplicate listings
26434         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
26435         resulting array.
26436         * tests/test-chown.h (test_chown): Simplify client.
26437         * tests/test-lchown.h (test_lchown): Likewise.
26438
26439 2009-12-06  Bruno Haible  <bruno@clisp.org>
26440
26441         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
26442         value.
26443
26444 2009-12-06  Bruno Haible  <bruno@clisp.org>
26445
26446         * lib/progname.c: Include stdio.h, stdlib.h.
26447         (set_program_name): Reject a NULL argument.
26448
26449 2009-12-05  Eric Blake  <ebb9@byu.net>
26450
26451         pipe2-safer: new module
26452         * modules/pipe2-safer: New file.
26453         * lib/unistd-safer.h (pipe2_safer): New prototype.
26454         * lib/unistd--.h (pipe2): New wrapper.
26455         * lib/pipe-safer.c (pipe2_safer): New function.
26456         * modules/pipe (Depends-on): Add pipe2-safer.
26457         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
26458
26459         stdlib-safer: preserve cloexec flag for mkostemp[s]
26460         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
26461         fd_safer_flag.
26462
26463         unistd-safer: allow preservation of cloexec status via flag
26464         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
26465         prototypes.
26466         * lib/dup-safer.c (dup_safer_flag): New function.
26467         * lib/fd-safer.c (fd_safer_flag): Likewise.
26468         * modules/cloexec (configure.ac): Set witness.
26469
26470         test-dup2: enhance test
26471         * modules/dup2-tests (Depends-on): Add cloexec.
26472         * tests/test-dup2.c (main): Enhance test.
26473
26474         cloexec: add dup_cloexec
26475         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
26476         header and comments.
26477         * lib/cloexec.c (set_cloexec_flag): Add comments.
26478         (dup_cloexec): New function, with mingw implementation borrowed
26479         from...
26480         * lib/w32spawn.h (dup_noinherit): ...here.
26481         * modules/execute (Depends-on): Add cloexec.
26482         * modules/pipe (Depends-on): Likewise.
26483         * modules/cloexec (Depends-on): Add dup2.
26484         * modules/cloexec-tests (Files): New file.
26485         * tests/test-cloexec.c: Likewise.
26486
26487         test-xalloc-die: fix test for mingw
26488         * modules/xalloc-die-tests (Files): Add tests/init.sh.
26489         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
26490         directory and .exe suffix off argv[0] output.
26491
26492         test-fseeko: fix test for mingw
26493         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
26494         than undefining fseek, so test will pass on mingw.
26495
26496 2009-12-05  Bruno Haible  <bruno@clisp.org>
26497
26498         * lib/progname.h (set_program_name): Clarify specification.
26499         * lib/progname.c (set_program_name): Likewise.
26500         Reported by Jim Meyering.
26501
26502 2009-12-05  Jim Meyering  <meyering@redhat.com>
26503
26504         maint.mk: backslash-escape parens in default regexp
26505         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
26506         backslash-escape the literal parentheses.
26507
26508         maint.mk: news-date-check: use grep -E
26509         * top/maint.mk (today): Define a Make variable, not a...
26510         (news-date-check): ...shell variable.
26511         (news-date-regexp): Use the Make variable.
26512         Use grep's -E option.  Change the failing diagnostic to mention
26513         the variable, $(news-date-regexp).
26514
26515 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
26516
26517         maintainer-makefile: allow customization of NEWS entry format
26518         * top/maint.mk (news-date-regexp): New overridable variable.
26519         (news-date-check): Use it.
26520
26521 2009-12-04  Eric Blake  <ebb9@byu.net>
26522
26523         mgetgroups: add xgetgroups, and avoid ENOSYS failures
26524         * lib/mgetgroups.h (xgetgroups): New prototype.
26525         * lib/mgetgroups.c (xgetgroups): New wrapper.
26526         (mgetgroups): Handle ENOSYS.
26527         * modules/mgetgroups (Depends-on): Add realloc.
26528         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
26529
26530         mgetgroups: avoid argument promotion issues with -1
26531         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
26532         for invalid gid_t.
26533         * tests/test-chown.h (getegid, test_chown): Likewise.
26534         * tests/test-lchown.h (getegid, test_lchown): Likewise.
26535
26536 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
26537
26538         exclude: Fix header file problems.
26539         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
26540
26541 2009-12-01  Jim Meyering  <meyering@redhat.com>
26542
26543         fts: fts_open: do not let an empty string cause immediate failure
26544         This is required in support of GNU rm, for which the command
26545         "rm A '' B" must process and remove both A and B, in spite of
26546         the empty string argument.
26547         * lib/fts.c (fts_open): Do not let the presence of an empty string
26548         cause fts_open to fail immediately.  Most fts-using tools must be
26549         able to process all arguments, in order, and can be expected to
26550         diagnose such arguments themselves.
26551
26552 2009-11-30  Eric Blake  <ebb9@byu.net>
26553
26554         utimens: fix compilation error
26555         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
26556         Declare variable at right scope.
26557
26558 2009-11-29  Jim Meyering  <meyering@redhat.com>
26559
26560         bootstrap: handle perl-5.11's changed --version output
26561         * build-aux/bootstrap (get_version): Handle perl separately,
26562         since perl-5.11's --version output is different.
26563
26564 2009-11-28  Jim Meyering  <meyering@redhat.com>
26565
26566         userspec: depend on the inttostr module, too
26567         * modules/userspec (Depends-on): Add inttostr.
26568
26569         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
26570         * lib/userspec.c (parse_with_separator): Do not accept a user ID
26571         number of MAXUID when it evaluates to (uid_t) -1.
26572         Likewise for group ID.  Reported by Matt McCutchen in
26573         <http://savannah.gnu.org/bugs/?28113>
26574
26575         userspec: reformat to use spaces, not TABs
26576         * lib/userspec.c: Expand TABs to spaces.
26577         Add Emacs' "indent-tabs-mode: nil" hint.
26578
26579 2009-11-27  Eric Blake  <ebb9@byu.net>
26580
26581         getopt-gnu: flush out another BSD bug
26582         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
26583         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
26584         flush out BSD bug.
26585         * tests/test-getopt.h (test_getopt): End lists with NULL.
26586         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26587         (test_getopt_long_posix): Enhance test.
26588         * modules/getopt-posix-tests (Depends-on): Add stdbool.
26589         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
26590         getopt-gnu.
26591         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26592         Likewise.
26593
26594 2009-11-27  Simon Josefsson  <simon@josefsson.org>
26595
26596         * modules/idpriv-droptemp-tests (Notice): Fix text.
26597
26598 2009-11-27  Jim Meyering  <meyering@redhat.com>
26599
26600         test-xalloc-die: avoid spurious failure due to libtool argv difference
26601         In a libtool-enabled project, this test would fail due to a difference
26602         in the emitted program name, e.g.,
26603         -test-xalloc-die: memory exhausted
26604         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
26605         Use program to avoid that.
26606         * modules/xalloc-die-tests (Depends-on): Add progname.
26607         * tests/test-xalloc-die.c: Include progname.h".
26608         (program_name): Remove decl.
26609         (main): Call set_program_name.
26610         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
26611
26612 2009-11-26  Richard Jones  <rjones@redhat.com>
26613
26614         w32sock: leave win32 error in place.
26615         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
26616
26617 2009-11-26  Eric Blake  <ebb9@byu.net>
26618
26619         init.sh: suggest to use skip_ and fail_ functions in comments
26620         * tests/init.sh: Add a sentence.
26621
26622 2009-11-25  Bruno Haible  <bruno@clisp.org>
26623
26624         init.sh: add documentation in comments
26625         * tests/init.sh: Add some developer and user documentation.
26626
26627 2009-11-26  Jim Meyering  <meyering@redhat.com>
26628
26629         init.sh: accommodate even those who specify bogus srcdir manually
26630         * tests/init.sh: Normally, srcdir is guaranteed by automake and
26631         configure-time tests to be sanitized, so that there is no need to
26632         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
26633         (with no double quotes) suffices.  However, since tests may be
26634         invoked manually, and since you may explicitly set srcdir to the
26635         name of a directory containing spaces, do quote its uses here.
26636         * tests/test-pread.sh: Likewise.
26637         Suggested by Bruno Haible.
26638
26639         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
26640         * tests/test-pread.sh: Write no data into the pipe, because
26641         test-pread actually reads none.  This avoids a diagnostic,
26642         "bash: echo: write error: Broken pipe", that arises in the unusual
26643         event something is ignoring SIGPIPE, and might be interpreted
26644         as some sort of failure.  Reported by Bruno Haible.
26645
26646 2009-11-25  Jim Meyering  <meyering@redhat.com>
26647
26648         test-pread: cover failure with ESPIPE and EINVAL
26649         * tests/test-pread.c (main): Test for failure, too.
26650         * tests/test-pread.sh: Invoke with stdin on a pipe.
26651         Suggested by Eric Blake.
26652
26653         pread: improvement and fix
26654         * modules/pread (Depends-on): Depend on lseek, for portability to
26655         e.g., mingw.  Suggested by Eric Blake.
26656         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
26657
26658         unistd.in.h: correct declaration of pread
26659         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
26660         Reported by Richard W.M. Jones.
26661
26662         test-pread.sh: distribute the test script
26663         * modules/pread-tests (Files): Include test-pread.sh.
26664
26665         test-pread.sh: clean up
26666         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
26667         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
26668         That is unnecessary, since it's always ".".
26669         Suggestion from Eric Blake.
26670
26671         test-pread.sh: make executable
26672         * tests/test-pread.sh: Set executable bit.
26673         Reported by Eric Blake.
26674
26675         correct typo in test-pread.sh
26676         * tests/test-pread.sh: Add #! line.
26677
26678         test pread
26679         * tests/test-pread.c: New file.
26680         * tests/test-pread.sh: Likewise.
26681         * modules/pread-tests: Likewise.
26682
26683         pread: new module
26684         * modules/pread: New file.
26685         * lib/unistd.in.h (pread): Define/declare.
26686         * lib/pread.c (pread): New file.
26687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
26688         * modules/unistd (Makefile.am): Substitute witnesses.
26689         * doc/posix-functions/pread.texi (pread): Update.
26690         * MODULES.html.sh: Add pread.
26691
26692 2009-11-25  Jim Meyering  <meyering@redhat.com>
26693
26694         tests/init.sh: new file to be used via most *.sh tests
26695         * tests/init.sh: New file.
26696
26697 2009-11-25  Eric Blake  <ebb9@byu.net>
26698
26699         utimens: work around older Linux failure with symlinks
26700         * lib/utimens.c (lutimensat_works_really): New variable.
26701         (fdutimens, lutimens): Use it to manage kernels that support
26702         nanosecond times on files, but not on symlinks.
26703         Reported by OndÅ™ej Vašík.
26704
26705         utimes: fix configure grammar
26706         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
26707
26708 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
26709
26710         regex: Fix fastmap for multibyte character ranges.
26711         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
26712         characters when a multibyte character range is included.
26713
26714 2009-11-22  Andy Wingo  <wingo@pobox.com>
26715
26716         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
26717         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
26718
26719 2009-11-24  Bruno Haible  <bruno@clisp.org>
26720
26721         doc: Most *_l functions exist in MacOS X 10.5.
26722         * doc/posix-functions/duplocale.texi: Update platforms list.
26723         * doc/posix-functions/freelocale.texi: Likewise.
26724         * doc/posix-functions/newlocale.texi: Likewise.
26725         * doc/posix-functions/uselocale.texi: Likewise.
26726         * doc/posix-functions/isalnum_l.texi: Likewise.
26727         * doc/posix-functions/isalpha_l.texi: Likewise.
26728         * doc/posix-functions/isblank_l.texi: Likewise.
26729         * doc/posix-functions/iscntrl_l.texi: Likewise.
26730         * doc/posix-functions/isdigit_l.texi: Likewise.
26731         * doc/posix-functions/isgraph_l.texi: Likewise.
26732         * doc/posix-functions/islower_l.texi: Likewise.
26733         * doc/posix-functions/isprint_l.texi: Likewise.
26734         * doc/posix-functions/ispunct_l.texi: Likewise.
26735         * doc/posix-functions/isspace_l.texi: Likewise.
26736         * doc/posix-functions/isupper_l.texi: Likewise.
26737         * doc/posix-functions/iswalnum_l.texi: Likewise.
26738         * doc/posix-functions/iswalpha_l.texi: Likewise.
26739         * doc/posix-functions/iswblank_l.texi: Likewise.
26740         * doc/posix-functions/iswcntrl_l.texi: Likewise.
26741         * doc/posix-functions/iswctype_l.texi: Likewise.
26742         * doc/posix-functions/iswdigit_l.texi: Likewise.
26743         * doc/posix-functions/iswgraph_l.texi: Likewise.
26744         * doc/posix-functions/iswlower_l.texi: Likewise.
26745         * doc/posix-functions/iswprint_l.texi: Likewise.
26746         * doc/posix-functions/iswpunct_l.texi: Likewise.
26747         * doc/posix-functions/iswspace_l.texi: Likewise.
26748         * doc/posix-functions/iswupper_l.texi: Likewise.
26749         * doc/posix-functions/iswxdigit_l.texi: Likewise.
26750         * doc/posix-functions/isxdigit_l.texi: Likewise.
26751         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
26752         * doc/posix-functions/strcasecmp_l.texi: Likewise.
26753         * doc/posix-functions/strcoll_l.texi: Likewise.
26754         * doc/posix-functions/strfmon_l.texi: Likewise.
26755         * doc/posix-functions/strftime_l.texi: Likewise.
26756         * doc/posix-functions/strncasecmp_l.texi: Likewise.
26757         * doc/posix-functions/strxfrm_l.texi: Likewise.
26758         * doc/posix-functions/tolower_l.texi: Likewise.
26759         * doc/posix-functions/toupper_l.texi: Likewise.
26760         * doc/posix-functions/towctrans_l.texi: Likewise.
26761         * doc/posix-functions/towlower_l.texi: Likewise.
26762         * doc/posix-functions/towupper_l.texi: Likewise.
26763         * doc/posix-functions/wcscoll_l.texi: Likewise.
26764         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
26765         * doc/posix-functions/wctrans_l.texi: Likewise.
26766         * doc/posix-functions/wctype_l.texi: Likewise.
26767         * doc/glibc-functions/strptime_l.texi: Likewise.
26768         * doc/glibc-functions/strtod_l.texi: Likewise.
26769         * doc/glibc-functions/strtof_l.texi: Likewise.
26770         * doc/glibc-functions/strtol_l.texi: Likewise.
26771         * doc/glibc-functions/strtold_l.texi: Likewise.
26772         * doc/glibc-functions/strtoll_l.texi: Likewise.
26773         * doc/glibc-functions/strtoul_l.texi: Likewise.
26774         * doc/glibc-functions/strtoull_l.texi: Likewise.
26775         * doc/glibc-functions/wcsftime_l.texi: Likewise.
26776         * doc/glibc-functions/wcstod_l.texi: Likewise.
26777         * doc/glibc-functions/wcstof_l.texi: Likewise.
26778         * doc/glibc-functions/wcstol_l.texi: Likewise.
26779         * doc/glibc-functions/wcstold_l.texi: Likewise.
26780         * doc/glibc-functions/wcstoll_l.texi: Likewise.
26781         * doc/glibc-functions/wcstoul_l.texi: Likewise.
26782         * doc/glibc-functions/wcstoull_l.texi: Likewise.
26783
26784 2009-11-24  Bruno Haible  <bruno@clisp.org>
26785
26786         duplocale: Fix logic bug.
26787         * lib/duplocale.c: Don't include <langinfo.h>.
26788         (_NL_LOCALE_NAME): Remove macro.
26789         (rpl_duplocale): Use setlocale instead of nl_langinfo.
26790         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
26791
26792 2009-11-23  Jim Meyering  <meyering@redhat.com>
26793
26794         test-update-copyright: don't hard-code /usr/bin/perl
26795         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
26796         perl to print the current year.  Gilles Espinasse reported that
26797         the replaced use of perl was hard-coded as /usr/bin/perl.
26798
26799 2009-11-23  Bruno Haible  <bruno@clisp.org>
26800
26801         duplocale: Add support for glibc 2.3.x.
26802         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
26803
26804 2009-11-22  Bruno Haible  <bruno@clisp.org>
26805
26806         vasnprintf: Tiny optimization.
26807         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
26808         MacOS X.
26809
26810 2009-11-22  Bruno Haible  <bruno@clisp.org>
26811
26812         Tests for module 'duplocale'.
26813         * modules/duplocale-tests: New file.
26814         * tests/test-duplocale.c: New file.
26815
26816         New module 'duplocale'.
26817         * m4/duplocale.m4: New file.
26818         * lib/locale.in.h (duplocale): New declaration.
26819         * lib/duplocale.c: New file.
26820         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
26821         gl_LOCALE_H_DEFAULTS): New macros.
26822         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
26823         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
26824         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
26825         REPLACE_DUPLOCALE.
26826         * modules/duplocale: New file.
26827         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
26828
26829 2009-11-22  Bruno Haible  <bruno@clisp.org>
26830
26831         * modules/locale-tests (configure.ac): Test for newlocale function.
26832         * tests/test-locale.c: When the system has extended locale functions,
26833         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
26834
26835         locale: Make locale_t available when possible.
26836         * lib/locale.in.h: Include <xlocale.h> when it exists.
26837         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
26838         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
26839         * modules/locale (Depends-on): Add extensions.
26840         (Makefile.am): Also substitute HAVE_XLOCALE_H.
26841         * doc/posix-headers/locale.texi: Document the problem with locale_t.
26842
26843 2009-11-22  Bruno Haible  <bruno@clisp.org>
26844
26845         Add comments.
26846         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
26847         invocation.
26848         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
26849         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26850         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26851
26852 2009-11-22  Bruno Haible  <bruno@clisp.org>
26853
26854         error: account for the possibility of freopen (stdout).
26855         * lib/error.c: Include <unistd.h>.
26856         (flush_stdout): New function, extracted from error and error_at_line.
26857         Determine stdout's fd dynamically.
26858         (error, error_at_line): Invoke flush_stdout.
26859         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
26860         * modules/error (Depends-on): Add unistd.
26861
26862 2009-11-22  Bruno Haible  <bruno@clisp.org>
26863
26864         diffseq: Add comment.
26865         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
26866
26867 2009-11-22  Jim Meyering  <meyering@redhat.com>
26868
26869         c-stack: avoid defining an unused static function
26870         * lib/c-stack.c (find_stack_direction): Do not define this function
26871         when it will not be used.
26872
26873         diffseq: avoid spurious gcc warnings
26874         * lib/diffseq.h (IF_LINT2): Define.
26875         (compareseq): Use it to initialize two members of "part".
26876         This avoids two used-uninitialized warnings.
26877
26878 2009-11-21  Jim Meyering  <meyering@redhat.com>
26879
26880         c-stack: avoid "ignoring return value of `write'" warning
26881         * lib/c-stack.c: Include "ignore-value.h".
26882         (die): Explicitly ignore each write return value.
26883         * modules/c-stack (Depends-on): Add ignore-value.
26884
26885 2009-11-21  Bruno Haible  <bruno@clisp.org>
26886
26887         diffseq: reduce scope of variable 'best'.
26888         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
26889         variable, earlier used for two different purposes.
26890
26891 2009-11-21  Jim Meyering  <meyering@redhat.com>
26892
26893         diffseq: remove useless assignment to "best"
26894         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
26895         assignment.  At that point "best" is already guaranteed to be zero.
26896
26897 2009-11-20  Eric Blake  <ebb9@byu.net>
26898
26899         build: mention ftp redirector in release announcements
26900         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
26901         values that used to come from cfg.mk; mention FTP redirect URL.
26902         * build-aux/announce-gen: Mention the mirror list.
26903         Suggested by Karl Berry.
26904
26905         nanosleep: improve port to mingw
26906         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
26907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
26908         LIB_NANOSLEEP, but only when needed.
26909         * modules/select (Link): Document LIBSOCKET.
26910         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
26911         enough.
26912
26913         nanosleep: work around cygwin bug
26914         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
26915         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
26916         bug.
26917         (getnow): Delete, not needed.
26918         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
26919         LIB_CLOCK_GETTIME.
26920         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
26921         clock-time, gettime.
26922         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
26923         bug.
26924         * modules/nanosleep-tests: New test.
26925         * tests/test-nanosleep.c: New file.
26926
26927         sleep: work around cygwin bug
26928         * lib/sleep.c (rpl_sleep): Work around the bug.
26929         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
26930         (gl_PREREQ_SLEEP): Delete unused macro.
26931         * modules/sleep (Depends-on): Add verify.
26932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26933         * modules/unistd (Makefile.am): Substitute witness.
26934         * lib/unistd.in.h (sleep): Update prototype.
26935         * doc/posix-functions/sleep.texi (sleep): Document the bug.
26936         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
26937         * modules/sleep-tests (Depends-on): Check for alarm.
26938
26939 2009-11-20  Jim Meyering  <meyering@redhat.com>
26940
26941         maint.mk: improve sc_prohibit_magic_number_exit
26942         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
26943         so it does not match uses like System.exit(1).
26944         Add comments showing how to correct all offenders.
26945
26946 2009-11-19  Eric Blake  <ebb9@byu.net>
26947
26948         xalloc-die-tests: add missing library
26949         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
26950
26951         test-xvasprintf: silence compiler warnings
26952         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
26953         empty string from gcc.
26954
26955 2009-11-19  Jim Meyering  <meyering@redhat.com>
26956
26957         xfreopen: new module, from coreutils
26958         * modules/xfreopen: New module.
26959         * lib/xfreopen.c: New file.
26960         * lib/xfreopen.h: New file.
26961         * MODULES.html.sh (File stream based Input/Output"): Add it.
26962
26963 2009-11-19  Eric Blake  <ebb9@byu.net>
26964
26965         manywarnings: depend on warnings
26966         * modules/manywarnings (Depends-on): Add warnings.
26967
26968         build: avoid compiler warnings
26969         * lib/select.c (rpl_select): Delete unused variable.
26970         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
26971
26972 2009-11-18  Eric Blake  <ebb9@byu.net>
26973
26974         tests: avoid false negative with --with-packager
26975         * tests/test-version-etc.sh: Discard packager information.
26976         * tests/test-argp-version-etc-1.sh: Likewise.
26977         Reported by Mike Frysinger.
26978
26979         utimens: fix regression on Solaris
26980         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
26981         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
26982         can only change fd timestamps via futimesat.  Instead, use an
26983         additional witness macro to avoid BSD bug.
26984         Reported by Jim Meyering.
26985
26986 2009-11-17  Eric Blake  <ebb9@byu.net>
26987
26988         usleep: use it to simplify tests
26989         * modules/stat-time-tests (Depends-on): Add usleep.
26990         (configure.ac): Drop usleep check.
26991         * modules/chown-tests (Depends-on, configure.ac): Likewise.
26992         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
26993         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
26994         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
26995         * modules/openat-tests (Depends-on, configure.ac): Likewise.
26996         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
26997         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
26998         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
26999         Likewise.
27000         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
27001         * tests/test-lchown.h (nap): Likewise.
27002         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
27003         * tests/test-stat-time.c (nap): Likewise.
27004         * tests/test-utimens-common.h (nap): Update comments.
27005
27006         usleep: new module
27007         * modules/usleep: New file.
27008         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
27009         * lib/usleep.c (usleep): Likewise.
27010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27011         * modules/unistd (Makefile.am): Substitute witnesses.
27012         * lib/unistd.in.h (usleep): Add declaration.
27013         * doc/pastposix-functions/usleep.texi (usleep): Document this.
27014         * MODULES.html.sh (Date and time): Likewise.
27015         * modules/usleep-tests (Depends-on): New test.
27016         * tests/test-usleep.c: New file.
27017
27018         chown: work around OpenBSD bug
27019         * lib/chown.c (rpl_chown): Work around the bug.
27020         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
27021         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
27022         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
27023         * modules/chown (Depends-on): Add stdbool.
27024         * modules/lchown (Depends-on): Likewise.
27025         * doc/posix-functions/chown.texi (chown): Document the bug.
27026         * doc/posix-functions/lchown.texi (lchown): Likewise.
27027         * tests/test-lchown.h (test_chown): Relax test.
27028
27029         mkstemp: avoid conflict with C++ keyword template
27030         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
27031         * lib/mkostemp.c (mkostemp): Likewise.
27032         * lib/mkostemps.c (mkostemps): Likewise.
27033         * lib/mkstemp.c (mkstemp): Likewise.
27034         * lib/mkstemps.c (mkstemps): Likewise.
27035
27036         xalloc-die-tests: optimize
27037         * tests/test-xalloc-die.sh: Reduce number of processes.
27038
27039 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27040
27041         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
27042         patch from ludo@gnu.org (Ludovic Courtès).
27043
27044 2009-11-17  Jim Meyering  <meyering@redhat.com>
27045
27046         version-etc: use proper license string
27047         * modules/version-etc (License): Use LGPL, not LGPLv3+.
27048         * modules/version-etc-fsf: Likewise.
27049
27050 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27051
27052         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
27053         printed to stdout.  Deal with EOL differences.
27054
27055 2009-11-17  Eric Blake  <ebb9@byu.net>
27056
27057         unsetenv: work around Solaris bug
27058         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
27059         * lib/unsetenv.c (rpl_unsetenv): Work around it.
27060         Reported by Jim Meyering.
27061
27062         vasnprintf: avoid compiler warnings
27063         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
27064         variables.
27065         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
27066
27067 2009-11-17  Simon Josefsson  <simon@josefsson.org>
27068
27069         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
27070         settings since xalloc-die is no longer the self test,
27071         xalloc-die.sh is.
27072
27073 2009-11-17  Jim Meyering  <meyering@redhat.com>
27074
27075         test-xalloc-die.sh: make the code agree with the commit log
27076         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
27077         at the end, just in case you happen to have a test-xalloc-die
27078         program in some other PATH directory.
27079
27080         test-xalloc-die.sh: fix a portability bug
27081         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
27082         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
27083         Otherwise, argv[0] (as often seen in diagnostics) would be too
27084         system-dependent, sometimes with, and sometimes without the leading "./".
27085
27086         version-etc-fsf: relax license to LGPLv3+
27087         * modules/version-etc-fsf (License): Relax license.
27088
27089 2009-11-16  Eric Blake  <ebb9@byu.net>
27090
27091         xalloc-die-tests: avoid printing null pointer
27092         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
27093         shell script.
27094         * tests/test-xalloc-die.c (program_name): Declare.
27095         * tests/test-xalloc-die.sh (tmpfiles): New file.
27096
27097         setenv, unsetenv: work around various bugs
27098         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
27099         (setenv) [HAVE_SETENV]: Work around bugs.
27100         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
27101         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
27102         for bugs.
27103         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
27104         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
27105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
27106         * modules/stdlib (Makefile.am): Update substitutions.
27107         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
27108         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
27109         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27110         * modules/setenv-tests: New test.
27111         * modules/unsetenv-tests: Likewise.
27112         * tests/test-setenv.c: New file.
27113         * tests/test-unsetenv.c: Likewise.
27114
27115 2009-11-16  Jim Meyering  <meyering@redhat.com>
27116
27117         version-etc: relax license to LGPLv3+
27118         * modules/version-etc (License): Relax license.
27119
27120         better AC_REQUIRE expanded-before-required-warning avoidance
27121         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
27122         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
27123         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
27124         which is no longer needed.
27125
27126 2009-11-16  Eric Blake  <ebb9@byu.net>
27127
27128         test-freading: clean up temporary file
27129         * tests/test-freading.c (main): Remove file on success, and use
27130         ASSERT more liberally.
27131         Reported by Jim Meyering.
27132
27133 2009-11-16  Jim Meyering  <meyering@redhat.com>
27134
27135         avoid new AC_REQUIRE expanded-before-required warnings
27136         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
27137         merely using it.
27138         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
27139         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
27140
27141 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27142
27143         * tests/test-xalloc-die.c: New file.
27144         * modules/xalloc-die-tests: New file.
27145         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
27146         XFAIL_TESTS so it can be appended by modules.
27147
27148 2009-11-15  Simon Josefsson  <simon@josefsson.org>
27149
27150         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
27151         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
27152
27153 2009-11-14  Eric Blake  <ebb9@byu.net>
27154
27155         fnmatch: avoid compiler warning
27156         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
27157         to silence compiler warning about mismatch signedness in ?:.
27158         Reported by Robert Millan.
27159
27160         intprops: add double-inclusion guard
27161         * lib/intprops.h: Allow idempotent includes.
27162         Suggested by Bruce Korb.
27163
27164         openat: detect Solaris fchownat bug
27165         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
27166         penalizing glibc chownat when only lchownat is broken.
27167         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
27168         trailing slash bugs.
27169         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
27170         * modules/openat-tests (Files): Include more files.
27171         (Depends-on): Add mgetgroups, sleep, stat-time.
27172         (configure.ac): Add additional checks.
27173         (Makefile.am): Build new test.
27174         * tests/test-fchownat.c: New file.
27175
27176         lchown: detect Solaris and FreeBSD bug
27177         * lib/lchown.c (rpl_lchown): Work around bug.
27178         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
27179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27180         * modules/unistd (Makefile.am): Populate it.
27181         * lib/unistd.in.h (lchown): Update declaration.
27182         * doc/posix-functions/lchown.texi (lchown): Document the bug.
27183         * modules/lchown-tests: New file.
27184         * tests/test-lchown.h (test_lchown): Likewise.
27185         * tests/test-lchown.c (main): Likewise.
27186
27187         chown: detect Solaris and FreeBSD bug
27188         * lib/chown.c (rpl_chown): Work around bug.
27189         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
27190         (gl_PREREQ_CHOWN): Delete.
27191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27192         * modules/unistd (Makefile.am): Populate it.
27193         * lib/unistd.in.h (chown): Update declaration.
27194         * lib/lchown.c (chown): Update client.
27195         * modules/lchown (Depends-on): Add lstat.
27196         * doc/posix-functions/chown.texi (chown): Document the bug.
27197         * doc/posix-functions/getgroups.texi (getgroups): Document
27198         getgroups pitfall.
27199         * modules/chown-tests: New file.
27200         * tests/test-chown.h (test_chown): Likewise.
27201         * tests/test-chown.c (main): Likewise.
27202
27203 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
27204
27205         gnulib-tool: correctly detect absence of m4 directories
27206         * gnulib-tool: Avoid extra newline on data passed to wc -l.
27207
27208 2009-11-14  Jim Meyering  <meyering@redhat.com>
27209
27210         maint.mk: Prohibit inclusion of "xalloc.h" without use.
27211         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27212
27213 2009-11-14  John W. Eaton  <jwe@gnu.org>
27214
27215         strftime.h: wrap funtion declaration in extern "C" block
27216         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
27217
27218 2009-11-13  Eric Blake  <ebb9@byu.net>
27219
27220         getgroups: avoid compiler warning
27221         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
27222
27223         getgroups: work around FreeBSD bug
27224         * lib/getgroups.c (rpl_getgroups): Work around the bug.
27225         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
27226         * doc/posix-functions/getgroups.texi (getgroups): Document it.
27227         * tests/test-getgroups.c (main): Fix buffer overrun.
27228
27229         getgroups: avoid compilation failure
27230         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
27231         * modules/getgroups (Depends-on): Add stdint.
27232
27233 2009-11-13  Jim Meyering  <meyering@redhat.com>
27234
27235         test-getgroups: avoid compilation failure
27236         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
27237
27238 2009-11-13  Eric Blake  <ebb9@byu.net>
27239
27240         mgetgroups: new module, taken from coreutils
27241         * modules/mgetgroups: New file.
27242         * lib/mgetgroups.h: Likewise.
27243         * lib/mgetgroups.c (mgetgroups): Likewise.
27244         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
27245         * MODULES.html.sh (Users and groups): Mention it.
27246
27247         getgroups: don't expose GETGROUPS_T to user
27248         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
27249         an element at a time if GETGROUPS_T is wrong size.
27250         * lib/getugroups.h (getugroups): Change signature.
27251         * lib/unistd.in.h (getgroups): Likewise.
27252         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
27253         signature needs fixing.
27254         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
27255         AC_TYPE_GETGROUPS.
27256         * modules/group-member (Depends-on): Add getgroups.
27257         * lib/group-member.c (group_info, get_group_info): Use gid_t.
27258         (group_member): Rely on getgroups replacement.
27259         * lib/getugroups.c (getugroups): Use gid_t.
27260         * tests/test-getgroups.c (main): Likewise.
27261         * NEWS: Mention the signature change.
27262         * doc/posix-functions/getgroups.texi (getgroups): Mention the
27263         problem with signature.
27264         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
27265         GETGROUPS_T is still useful for setgroups.
27266
27267         getgroups, getugroups: provide stubs for mingw
27268         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
27269         * lib/getugroups.c (getugroups): Likewise.
27270         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
27271         function.  Modernize replacement scheme.
27272         (gl_PREREQ_GETGROUPS): Delete.
27273         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
27274         * modules/getgroups (configure.ac): Declare witness.
27275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
27276         * modules/unistd (Depends-on): Substitute witness.
27277         * lib/unistd.in.h (getgroups): Declare replacement.
27278
27279         getgroups: avoid calling exit
27280         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
27281         drop xalloc.
27282         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
27283         dependencies.
27284         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
27285         exiting, in the rare case of malloc failure.
27286
27287         getgroups: fix logic error
27288         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
27289         has more than 20 groups.
27290         * modules/getgroups-tests: New test.
27291         * tests/test-getgroups.c: New file.
27292
27293 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27294
27295         * tests/test-base64.c: Improve.
27296
27297 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27298
27299         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
27300         Blake <ebb9@byu.net>.
27301
27302 2009-11-13  Simon Josefsson  <simon@josefsson.org>
27303
27304         * tests/test-xvasprintf.c: Add %s%s related checks.
27305
27306 2009-11-12  Eric Blake  <ebb9@byu.net>
27307
27308         version-etc: match standards.texi style
27309         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
27310         and use <> only for URLs.
27311
27312 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
27313
27314         fts: do not fail on a submount during traversal
27315         * lib/fts.c (fts_build): Read the stat info again after opening
27316         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
27317         Original report at http://bugzilla.redhat.com/501848.
27318
27319 2009-11-12  Jim Meyering  <meyering@redhat.com>
27320
27321         bootstrap: sync from coreutils
27322         * build-aux/bootstrap (bootstrap_epilogue): New function.
27323         Use git_modules_config in one more place.  This make bootstrap's
27324         --gnulib-srcdir option more useful for testing.
27325
27326         bootstrap: generalize autoheader check
27327         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
27328         AC_CONFIG_HEADERS.
27329
27330 2009-11-11  Eric Blake  <ebb9@byu.net>
27331
27332         mkfifoat: use new modules for Solaris and BSD bugs
27333         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
27334         * lib/mkfifoat.c (mknodat): Split...
27335         * lib/mknodat.c (mknodat): ...into new file.
27336         * modules/mkfifoat (Files): Ship new file.
27337         (Depends-on): Add mkfifo, mknod.
27338         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
27339         (Depends-on): Add symlink.
27340         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
27341         redundant with test_mkfifo.h.
27342         (do_mkfifoat, do_mknodat): New helpers.
27343
27344         mknod: new module
27345         * modules/mknod: New file.
27346         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
27347         * lib/mknod.c (mknod): Likewise.
27348         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27349         defaults.
27350         * modules/sys_stat (Makefile.am): Substitute them.
27351         * lib/sys_stat.in.h (mknod): Declare replacement.
27352         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27353         Document it.
27354         * doc/posix-functions/mknod.texi (mknod): Likewise.
27355         * modules/mknod-tests: New test.
27356         * tests/test-mknod.c: Likewise.
27357
27358         mkfifo: new module
27359         * modules/mkfifo: New file.
27360         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27361         * lib/mkfifo.c (mkfifo): Likewise.
27362         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
27363         defaults.
27364         * modules/sys_stat (Makefile.am): Substitute them.
27365         * lib/sys_stat.in.h (mkfifo): Declare replacement.
27366         * MODULES.html.sh (Support for systems lacking POSIX:2008):
27367         Document it.
27368         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
27369         * modules/mkfifo-tests: New test.
27370         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
27371         from test-mkfifoat.c.
27372         * tests/test-mkfifo.c: New file.
27373
27374         readlink: detect FreeBSD bug
27375         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
27376         slash on symlink.
27377         * doc/posix-functions/readlink.texi (readlink): Document the bug.
27378         * tests/test-readlink.h (test_readlink): Enhance test.
27379
27380         symlink: detect FreeBSD bug
27381         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
27382         slash on symlink.
27383         * doc/posix-functions/symlink.texi (symlink): Document the bug.
27384         * tests/test-symlink.h (test_symlink): Enhance test.
27385
27386 2009-11-10  Eric Blake  <ebb9@byu.net>
27387
27388         link: detect FreeBSD bug
27389         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
27390         symlink.
27391         * doc/posix-functions/link.texi (link): Document the bug.
27392         * tests/test-link.h (test_link): Enhance test.
27393         * tests/test-linkat.c (main): Update caller.
27394
27395         unlink, remove: detect FreeBSD bug
27396         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
27397         slash on symlink.
27398         * doc/posix-functions/unlink.texi (unlink): Document the bug.
27399         * doc/posix-functions/remove.texi (remove): Likewise.
27400         * tests/test-unlink.h (test_unlink): Enhance test.
27401         * tests/test-remove.c (main): Likewise.
27402
27403 2009-11-09  Eric Blake  <ebb9@byu.net>
27404
27405         rename: detect FreeBSD bug
27406         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
27407         slash on symlink.
27408         * modules/renameat-tests (Depends-on): Add filenamecat.
27409         * tests/test-rename.h (test_rename): Allow one more errno.
27410         * tests/test-renameat.c (main): Likewise.
27411         * doc/posix-functions/rename.texi (rename): Document the bug.
27412
27413         open: detect FreeBSD bug
27414         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
27415         symlink.
27416         * doc/posix-functions/open.texi (open): Document the bug.
27417         * doc/posix-functions/utimes.texi (utimes): Likewise.
27418         * tests/test-open.h (test_open): Add parameters, and test symlink
27419         handling.
27420         * tests/test-open.c (main): Adjust caller.
27421         * tests/test-fcntl-safer.c (main): Likewise.
27422         * modules/open-tests (Depends-on): Add stdbool, symlink.
27423         * modules/fcntl-safer-tests (Depends-on): Likewise.
27424         * tests/test-openat.c (main): Add test-open tests.
27425
27426         stat: detect FreeBSD bug
27427         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
27428         symlink.
27429         * doc/posix-functions/stat.texi (stat): Document the bug.
27430         * tests/test-stat.h (test_stat_func): Add argument.
27431         * tests/test-stat.c (main): Adjust caller.
27432         * tests/test-fstatat.c (main): Likewise.
27433         * modules/stat-tests (Depends-on): Add stdbool, symlink.
27434         Reported by Jim Meyering.
27435
27436 2009-11-09  James Youngman  <jay@gnu.org>
27437
27438         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
27439         * lib/strftime.c: Correct placement of #include "ignore-value.h".
27440
27441 2009-11-08  Jim Meyering  <meyering@redhat.com>
27442
27443         utimens: remove invalid futimesat call
27444         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
27445         It used the file descriptor of the target file as the DIR_FD
27446         parameter and NULL as the file name.  That caused failure with
27447         errno == EFAULT on FreeBSD-8.0-rc2
27448
27449 2009-11-07  Eric Blake  <ebb9@byu.net>
27450
27451         fflush, freadseek: use fseeko, not fseek
27452         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
27453         (clear_ungetc_buffer): Avoid potential problems on large files.
27454         * lib/freadseek.c (freadseek): Likewise.
27455         * modules/freadseek (Depends-on): Add fseeko.
27456         * modules/fseek (configure.ac): Set a witness.
27457         * tests/test-fflush.c (main): Use fseeko.
27458         * tests/test-fpurge.c (fseek): Disable link warning.
27459         * tests/test-freadable.c (fseek): Likewise.
27460         * tests/test-freading.c (fseek): Likewise.
27461         * tests/test-fseeko.c (fseek): Likewise.
27462         * tests/test-ftell.c (fseek): Likewise.
27463         * tests/test-ftello.c (fseek): Likewise.
27464         * tests/test-fwritable.c (fseek): Likewise.
27465         * tests/test-fwriting.c (fseek): Likewise.
27466
27467 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27468
27469         * modules/memchr (Depends-on): Drop getpagesize dependency.
27470
27471 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27472
27473         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
27474         Reported by Ludovic Courtès.
27475         * build-aux/pmccabe2html: Improve example usage.
27476         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
27477
27478 2009-11-06  Jim Meyering  <meyering@redhat.com>
27479
27480         do-release-commit-and-tag: New module.
27481         Automate the release-commit and tag process.
27482         * build-aux/do-release-commit-and-tag: New script, from coreutils.
27483         * modules/do-release-commit-and-tag: New file.
27484         * MODULES.html.sh (Support for maintaining and releasing): Add it.
27485
27486 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27487
27488         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
27489         because test-select.c uses inet_pton.
27490
27491 2009-11-06  Simon Josefsson  <simon@josefsson.org>
27492
27493         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
27494         GETADDRINFO_LIB.  Bump serial number.
27495         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
27496         Suggested by Eric Blake <ebb9@byu.net>.
27497
27498 2009-11-05  Eric Blake  <ebb9@byu.net>
27499
27500         strtod: detect darwin bug
27501         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
27502         Reported by Leo Davis.
27503
27504         freopen-safer: new module
27505         * modules/freopen-safer: New module.
27506         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
27507         * lib/freopen-safer.c (freopen_safer): New file.
27508         * lib/stdio-safer.h (freopen_safer): New declaration.
27509         * lib/stdio--.h (freopen): New override.
27510         * MODULES.html.sh (File stream based Input/Output): Mention it.
27511         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
27512         freopen-safer module.
27513         * doc/posix-functions/stderr.texi (stderr): Likewise.
27514         * doc/posix-functions/stdin.texi (stdin): Likewise.
27515         * doc/posix-functions/stdout.texi (stdout): Likewise.
27516         * modules/freopen-safer-tests: New test.
27517         * tests/test-reopen-safer.c: New file.
27518
27519 2009-11-05  Jim Meyering  <meyering@redhat.com>
27520
27521         maint.mk: Prohibit inclusion of "close-stream.h" without use.
27522         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
27523
27524 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27525
27526         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
27527
27528 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27529
27530         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
27531
27532 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27533
27534         Fix link error.
27535         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27536         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27537
27538 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27539
27540         * tests/test-func.c: Also test value of __func__.
27541
27542 2009-11-05  Simon Josefsson  <simon@josefsson.org>
27543
27544         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
27545         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
27546
27547 2009-11-05  Bruno Haible  <bruno@clisp.org>
27548
27549         Fix link error.
27550         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
27551         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27552         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
27553
27554 2009-11-05  Bruno Haible  <bruno@clisp.org>
27555
27556         Tests for module 'inet_pton'.
27557         * modules/inet_pton-tests: New file.
27558         * tests/test-inet_pton.c: New file.
27559
27560 2009-11-05  Bruno Haible  <bruno@clisp.org>
27561
27562         Tests for module 'inet_ntop'.
27563         * modules/inet_ntop-tests: New file.
27564         * tests/test-inet_ntop.c: New file.
27565
27566 2009-11-04  Eric Blake  <ebb9@byu.net>
27567
27568         stdlib-safer: wrap all mkstemp variants
27569         * modules/mkostemp (configure.ac): Set witness.
27570         * modules/mkostemps (configure.ac): Likewise.
27571         * modules/mkstemps (configure.ac): Likewise.
27572         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
27573         (mkstemps_safer): Wrap more functions.
27574         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
27575         wrapping.
27576         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
27577         (mkstemps_safer): Implement the wrappers.
27578
27579         mkstemps, mkostemps: new modules
27580         * modules/mkostemps: New module.
27581         * modules/mkstemps: Likewise.
27582         * lib/mkostemps.c (mkostemps): New file.
27583         * lib/mkstemps.c (mkstemps): Likewise.
27584         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
27585         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
27586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
27587         * modules/stdlib (Makefile.am): Substitute them.
27588         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
27589         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
27590         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27591         * doc/gnulib.texi (Glibc stdlib.h): Include them.
27592         * MODULES.html.sh (File system functions): Mention them.
27593
27594         tempname: resync from glibc
27595         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
27596         same values for __GT_FILE as glibc.  Abort even when assertions
27597         are disabled.
27598         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
27599         match its value otherwise.  Allow idempotent inclusion.
27600         * lib/mkdtemp.c (mkdtemp): Adjust caller.
27601         * lib/mkostemp.c (mkostemp): Likewise.
27602         * lib/mkstemp.c (mkstemp): Likewise.
27603         * lib/tmpfile.c (tmpfile): Likewise.
27604         * NEWS: Document this.
27605
27606         utimens: fix use of futimens on older Linux
27607         * lib/utimens.c (fdutimens): Use updated, rather than original,
27608         timespec to avoid bug in older Linux kernel.
27609         Reported by Simon Josefsson.
27610
27611 2009-11-04  Bruno Haible  <bruno@clisp.org>
27612
27613         Make num_processors more flexible and consistent.
27614         * lib/nproc.h (enum nproc_query): New type.
27615         (num_processors): Add a 'query' argument.
27616         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
27617         (num_processors): Add a 'query' argument. Test the value of the
27618         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
27619         mingw, count the number of CPUs available for the current process.
27620         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
27621         Check for sched_getaffinity and sched_getaffinity_np.
27622         * modules/nproc (Depends-on): Add c-ctype, extensions.
27623         * NEWS: Mention the change.
27624
27625 2009-11-03  Bruno Haible  <bruno@clisp.org>
27626
27627         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
27628
27629 2009-11-03  Jim Meyering  <meyering@redhat.com>
27630
27631         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
27632         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
27633         if it is defined.
27634
27635 2009-11-02  Eric Blake  <ebb9@byu.net>
27636
27637         mktime, timegm: share common declaration
27638         * lib/mktime-internal.h: New file.
27639         * lib/mktime.c: Use it rather than open-coding a declaration.
27640         * lib/timegm.c: Likewise.
27641         * modules/mktime (Files): Ship it.
27642         * modules/timegm (Files): Likewise.
27643         Suggested by Bruno Haible.
27644
27645         test-update-copyright: update test to match script changes
27646         * tests/test-update-copyright.sh: Avoid hard-coding perl
27647         location.  Don't update *.bak created by earlier runs.
27648
27649 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27650             Simon Josefsson  <simon@josefsson.org>
27651             Bruno Haible  <bruno@clisp.org>
27652
27653         Fix link error on Solaris 8.
27654         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
27655         also in libnsl. Define also INET_PTON_LIB.
27656         * modules/inet_pton (Link): New section.
27657
27658 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27659             Bruno Haible  <bruno@clisp.org>
27660
27661         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
27662         * modules/inet_ntop (Link): New section.
27663         Reported by Boyan Kasarov <bkasarov@gmail.com>.
27664
27665 2009-11-02  Eric Blake  <ebb9@byu.net>
27666
27667         maint: avoid compiler warnings in m4 macros
27668         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
27669         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
27670
27671 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27672
27673         * m4/pmccabe2html.m4: Remove file.
27674         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
27675         function.  Change maintainer.
27676         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
27677         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
27678         Courtès).
27679
27680 2009-10-31  Eric Blake  <ebb9@byu.net>
27681
27682         fseeko: fix m4 regression
27683         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
27684         regression from 2009-10-27.
27685         Reported by Ralf Wildenhues.
27686
27687 2009-10-31  Jim Meyering  <meyering@redhat.com>
27688
27689         inttostr: aesthetics and improved (compile-time) safety
27690         Define inttype_is_signed rather than inttype_is_unsigned,
27691         since the sole use is via "#if inttype_is_signed".
27692         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
27693         inttype_is_unsigned.
27694         * lib/offtostr.c (inttype_is_signed): Likewise.
27695         * lib/uinttostr.c (inttype_is_signed): Likewise.
27696         * lib/umaxtostr.c (inttype_is_signed): Likewise.
27697         * lib/inttostr.c (inttostr): Use verify to cross-check the
27698         inttype_is_signed value and the signedness of the actual type.
27699         * modules/inttostr (Depends-on): Add verify.
27700
27701 2009-10-30  Eric Blake  <ebb9@byu.net>
27702
27703         build: avoid compiler warnings
27704         * lib/fchmodat.c (lchmod): Mark unused variables.
27705         * lib/getopt.c (_getopt_initialize): Likewise.
27706         * lib/mktime.c (__mktime_internal): Provide prototype.
27707         * lib/inttostr.c (inttostr): Avoid compiler warning even with
27708         older gcc that do not understand #pragma GCC diagnostic.
27709         * lib/uinttostr.c (inttype_is_unsigned): Define.
27710         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
27711
27712 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27713
27714         stat: fix compilation on AIX
27715         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
27716         only see struct stat64.
27717
27718 2009-10-30  Eric Blake  <ebb9@byu.net>
27719
27720         exclude: make more robust
27721         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
27722         rather than masking a coding bug.
27723         Suggested by Bruno Haible.
27724
27725 2009-10-30  Jim Meyering  <meyering@redhat.com>
27726
27727         perl scripts: remove #!/usr/bin/perl in favor of more portable...
27728         Rather than putting #!/usr/bin/perl on the first line,
27729         start with a variant of what's recommended by "man perlrun" that
27730         invokes the first "perl" program from your shell's search path.
27731         * build-aux/gitlog-to-changelog: Replace #!... as above.
27732         Add a "Local Variables" perl mode setting.
27733         Prompted by a patch from Ludovic Courtès.
27734         Improved by Eric Blake.
27735         * build-aux/useless-if-before-free: Likewise.
27736         * build-aux/announce-gen: Likewise.
27737         * build-aux/update-copyright: Likewise.
27738
27739 2009-10-29  Eric Blake  <ebb9@byu.net>
27740
27741         filenamecat-lgpl: adjust clients
27742         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
27743         filenamecat.
27744         * modules/renameat (Depends-on): Likewise.
27745
27746         filenamecat: split into filenamecat-lgpl
27747         * modules/filenamecat-lgpl: New module.
27748         * modules/filenamecat (Files): Move library-safe files into
27749         filenamecat-lgpl.
27750         (Depends-on): Add filenamecat-lgpl.
27751         (configure.ac): Declare witness.
27752         * lib/filenamecat.h (file_name_concat): Only declare when using
27753         GPL module.
27754         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
27755         Move...
27756         * lib/filenamecat-lgpl.c: ...into new file.
27757         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
27758         (gl_FILE_NAME_CONCAT): Use it.
27759         * MODULES.html.sh (File system functions): Mention new module.
27760
27761         argp: avoid memory leak
27762         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
27763         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
27764         base_name, since the latter malloc()s and can call exit().
27765         Leak introduced 2006-07-03.
27766
27767         dirname-lgpl: adjust clients that don't need full dirname
27768         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
27769         * modules/filenamecat (Depends-on): Likewise.
27770         * modules/linkat (Depends-on): Likewise.
27771         * modules/mkancesdirs (Depends-on): Likewise.
27772         * modules/mkdir (Depends-on): Likewise.
27773         * modules/openat (Depends-on): Likewise.
27774         * modules/savewd (Depends-on): Likewise.
27775         * modules/rename (Depends-on): Likewise.
27776         (License): Relax license.
27777         * modules/mkdir-tests (Depends-on): Drop progname.
27778         (Makefile.am): Delete unneeded LDADD.
27779         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
27780
27781         dirname: split into dirname-lgpl
27782         * modules/dirname-lgpl: New module.
27783         * modules/dirname (Files): Move library-safe files into
27784         dirname-lgpl.
27785         (Depends-on): Add dirname-lgpl.
27786         (configure.ac): Declare witness.
27787         * modules/double-slash-root (License): Relax license.
27788         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
27789         module.
27790         * lib/dirname.c (dir_len, mdir_name): Move...
27791         * lib/dirname-lgpl.c: ...into new file.
27792         * lib/basename.c (last_component, base_len): Move...
27793         * lib/basename-lgpl.c: ...into new file.
27794         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
27795         (gl_DIRNAME): Use it.
27796         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
27797         Mention new module.
27798         * modules/dirname-tests (Depends-on): Add progname.
27799         * tests/test-dirname.c (program_name): Delete.
27800
27801         mkdir: make safe for libraries
27802         * modules/mkdir (Depends-on): Drop xalloc.
27803         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
27804         exit.
27805
27806         tests: avoid some compiler warnings
27807         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
27808         literals.
27809         * tests/test-memchr.c (main): Avoid type mismatch.
27810         * tests/test-arpa_inet.c (main): Avoid unused parameters.
27811         * tests/test-base64.c (main): Likewise.
27812         * tests/test-getdelim.c (main): Likewise.
27813         * tests/test-gethostname.c (main): Likewise.
27814         * tests/test-getline.c (main): Likewise.
27815         * tests/test-netinet_in.c (main): Likewise.
27816         * tests/test-select.c (open_server_socket, main): Likewise.
27817         * tests/test-select-stdin.c (main): Likewise.
27818         * tests/test-sockets.c (main): Likewise.
27819         * tests/test-strsignal.c (main): Likewise.
27820         * tests/test-sys_select.c (main): Likewise.
27821         * tests/test-sys_socket.c (main): Likewise.
27822         * tests/test-u64.c (main): Likewise.
27823         * tests/test-xfprintf-posix.c (main): Likewise.
27824         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
27825
27826         sockets: avoid compiler warning
27827         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
27828
27829         maint: detect usage(1) and other suspicious exits
27830         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
27831
27832 2009-10-29  Jim Meyering  <meyering@redhat.com>
27833
27834         timespec: long-to-int truncation could make timespec_cmp malfunction
27835         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
27836         a multiple of 2^32 nanoseconds as no difference.
27837
27838 2009-10-28  Jim Meyering  <meyering@redhat.com>
27839
27840         fprintftime: wrap macro code argument in "do {...} while(0)"
27841         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
27842         cpy macro must be a statement that can be followed by a semicolon.
27843         Now that the else clause contains a comment and is hence longer
27844         than one line, I require curly braces.  That in turn requires
27845         that we wrap this code block in the standard do...while(0).
27846
27847         fprintftime: remove stray semicolon from previous change
27848         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
27849
27850         fprintftime: avoid a warning about ignored fwrite return value
27851         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
27852         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
27853         that is unsafe.
27854         * modules/fprintftime (Depends-on): Add ignore-value.
27855
27856         exclude: avoid an unwarranted warning
27857         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
27858
27859 2009-10-27  Eric Blake  <ebb9@byu.net>
27860
27861         fseek: avoid compilation failure when fflush is replaced
27862         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
27863         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
27864         module is in use.
27865         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
27866         module is not in use; since REPLACE_FSEEK worked otherwise.
27867         (GNULIB_FTELLO): Likewise for ftell.
27868         Reported by Ian Beckwith and others.
27869
27870 2009-10-27  Bruno Haible  <bruno@clisp.org>
27871
27872         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
27873         Reported by Jim Meyering.
27874
27875 2009-10-27  Jim Meyering  <jim@meyering.net>
27876             Bruno Haible  <bruno@clisp.org>
27877
27878         Avoid warning despite dropping the return value of fwrite.
27879         * lib/unicodeio.c: Include ignore-value.h.
27880         (fwrite_success_callback): Explicitly ignore fwrite's return value.
27881         * modules/unicodeio (Depends-on): Add ignore-value.
27882
27883 2009-10-26  Eric Blake  <ebb9@byu.net>
27884
27885         areadlinkat: fix fallback path
27886         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
27887         pointer and zero.
27888
27889 2009-10-22  Pádraig Brady  <P@draigBrady.com>
27890
27891         Use a better IO block size for modern systems
27892         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
27893         * lib/md2.c: Likewise.
27894         * lib/md4.c: Likewise.
27895         * lib/md5.c: Likewise.
27896         * lib/sha1.c: Likewise.
27897         * lib/sha256.c: Likewise.
27898         * lib/sha512.c: Likewise.
27899
27900 2009-10-22  Eric Blake  <ebb9@byu.net>
27901
27902         tests: avoid several compiler warnings
27903         * tests/test-getcwd.c (main): Avoid buffer underflow.
27904         * tests/test-getdate.c (main): String literals are not safe with
27905         putenv, so use setenv.  Declare unused argument.
27906         * modules/getdate-tests (Depends-on): Add setenv.
27907         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
27908         problems with string literals in char *.
27909         * tests/test-hash.c (main): Avoid shadowing declaration.
27910         (insert_new): Treat string literals as char const *.
27911         * tests/test-getopt.h (test_getopt): Likewise.
27912         (getopt_loop): Alter types to minimize casting elsewhere.
27913         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
27914         (test_getopt_long_posix): Likewise.
27915         (do_getopt_long): Add wrapper to minimize casting.
27916         * tests/test-atexit.c (clear_temp_file): Use void.
27917         * tests/test-areadlink-with-size.c (main): Declare unused
27918         arguments.
27919         * tests/test-areadlink.c (main): Likewise.
27920         * tests/test-areadlinkat-with-size.c (main): Likewise.
27921         * tests/test-areadlinkat.c (main): Likewise.
27922         * tests/test-canonicalize-lgpl.c (main): Likewise.
27923         * tests/test-canonicalize.c (main): Likewise.
27924         * tests/test-dirent-safer.c (main): Likewise.
27925         * tests/test-dirname.c (main): Likewise.
27926         * tests/test-dup2.c (main): Likewise.
27927         * tests/test-fchdir.c (main): Likewise.
27928         * tests/test-fcntl-h.c (main): Likewise.
27929         * tests/test-fcntl-safer.c (main): Likewise.
27930         * tests/test-fdopendir.c (main): Likewise.
27931         * tests/test-fdutimensat.c (main): Likewise.
27932         * tests/test-fflush.c (main): Likewise.
27933         * tests/test-filenamecat.c (main): Likewise.
27934         * tests/test-filevercmp.c (main): Likewise.
27935         * tests/test-fopen-safer.c (main): Likewise.
27936         * tests/test-fopen.c (main): Likewise.
27937         * tests/test-fpending.c (main): Likewise.
27938         * tests/test-fpurge.c (main): Likewise.
27939         * tests/test-freading.c (main): Likewise.
27940         * tests/test-fstatat.c (main): Likewise.
27941         * tests/test-fsync.c (main): Likewise.
27942         * tests/test-futimens.c (main): Likewise.
27943         * tests/test-getndelim2.c (main): Likewise.
27944         * tests/test-gettimeofday.c (main): Likewise.
27945         * tests/test-getopt.c (main): Likewise.
27946         * tests/test-i-ring.c (main): Likewise.
27947         * tests/test-inttypes.c (main): Likewise.
27948         * tests/test-link.c (main): Likewise.
27949         * tests/test-lstat.c (main): Likewise.
27950         * tests/test-math.c (main): Likewise.
27951         * tests/test-md5.c (main): Likewise.
27952         * tests/test-memchr2.c (main): Likewise.
27953         * tests/test-memrchr.c (main): Likewise.
27954         * tests/test-mkdir.c (main): Likewise.
27955         * tests/test-mkdirat.c (main): Likewise.
27956         * tests/test-mkfifoat.c (main): Likewise.
27957         * tests/test-open.c (main): Likewise.
27958         * tests/test-openat-safer.c (main): Likewise.
27959         * tests/test-openat.c (main): Likewise.
27960         * tests/test-quotearg.c (main): Likewise.
27961         * tests/test-rawmemchr.c (main): Likewise.
27962         * tests/test-readlink.c (main): Likewise.
27963         * tests/test-remove.c (main): Likewise.
27964         * tests/test-rename.c (main): Likewise.
27965         * tests/test-renameat.c (main): Likewise.
27966         * tests/test-rmdir.c (main): Likewise.
27967         * tests/test-sha1.c (main): Likewise.
27968         * tests/test-signal.c (main): Likewise.
27969         * tests/test-sigaction.c (main): Likewise.
27970         * tests/test-stat.c (main): Likewise.
27971         * tests/test-stat-time.c (main): Likewise.
27972         * tests/test-stddef.c (main): Likewise.
27973         * tests/test-stdint.c (main): Likewise.
27974         * tests/test-stdio.c (main): Likewise.
27975         * tests/test-stdlib.c (main): Likewise.
27976         * tests/test-strchrnul.c (main): Likewise.
27977         * tests/test-strerror.c (main): Likewise.
27978         * tests/test-string.c (main): Likewise.
27979         * tests/test-strtod.c (main): Likewise.
27980         * tests/test-strverscmp.c (main): Likewise.
27981         * tests/test-symlink.c (main): Likewise.
27982         * tests/test-symlinkat.c (main): Likewise.
27983         * tests/test-sys_stat.c (main): Likewise.
27984         * tests/test-sys_time.c (main): Likewise.
27985         * tests/test-time.c (main): Likewise.
27986         * tests/test-unistd.c (main): Likewise.
27987         * tests/test-unlink.c (main): Likewise.
27988         * tests/test-unlinkat.c (main): Likewise.
27989         * tests/test-utimens.c (main): Likewise.
27990         * tests/test-utimensat.c (main): Likewise.
27991         * tests/test-version-etc.c (main): Likewise.
27992         * tests/test-wchar.c (main): Likewise.
27993         * tests/test-wctype.c (main): Likewise.
27994         * tests/test-xprintf-posix.c (main): Likewise.
27995         * tests/test-posixtm.c (main): Likewise.
27996         (STREQ): Delete unused macro.
27997         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
27998         shadowed variables.
27999         * tests/test-memchr.c (main): Likewise.
28000
28001 2009-10-21  Eric Blake  <ebb9@byu.net>
28002
28003         areadlinkat: avoid failure on older glibc
28004         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
28005         rather than mis-comparing 0 against FUNC_RESULT of char*.
28006
28007 2009-10-21  Bruno Haible  <bruno@clisp.org>
28008
28009         * modules/stpncpy (License): Relicense under LGPLv2+.
28010         Reported by David Lutterkort <lutter@redhat.com>.
28011
28012 2009-10-20  Eric Blake  <ebb9@byu.net>
28013
28014         utimensat: work around Solaris 9 bug
28015         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
28016         has trailing slash bugs.
28017         * tests/test-lutimens.h (test_lutimens): Enhance test.
28018         * tests/test-utimens.h (test_utimens): Likewise.
28019         * doc/posix-functions/utime.texi (utime): Enhance documentation.
28020         * doc/posix-functions/utimes.texi (utimes): Likewise.
28021         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28022         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
28023         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
28024         * doc/posix-functions/futimens.texi (futimens): Likewise.
28025
28026         fdutimensat: new module
28027         * modules/fdutimensat: New file.
28028         * lib/fdutimensat.c (fdutimensat): Likewise.
28029         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
28030         * MODULES.html.sh (File system functions): Mention module.
28031         * modules/fdutimensat-tests: New test.
28032         * tests/test-fdutimensat.c: Likewise.
28033
28034         doc: regenerate INSTALL
28035         * doc/INSTALL: Reflect recent autoconf update.
28036         * doc/INSTALL.ISO: Likewise.
28037         * doc/INSTALL.UTF-8: Likewise.
28038
28039 2009-10-20  Pádraig Brady  <P@draigBrady.com>
28040
28041         acl: warn if ACL support is not detected
28042         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
28043
28044 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
28045
28046         * lib/nproc.h: Add extern "C" block for C++.
28047
28048 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
28049             Bruno Haible  <bruno@clisp.org>
28050
28051         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
28052         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
28053         * doc/posix-functions/isalpha.texi: Likewise.
28054         * doc/posix-functions/isblank.texi: Likewise.
28055         * doc/posix-functions/iscntrl.texi: Likewise.
28056         * doc/posix-functions/isdigit.texi: Likewise.
28057         * doc/posix-functions/isgraph.texi: Likewise.
28058         * doc/posix-functions/islower.texi: Likewise.
28059         * doc/posix-functions/isprint.texi: Likewise.
28060         * doc/posix-functions/ispunct.texi: Likewise.
28061         * doc/posix-functions/isspace.texi: Likewise.
28062         * doc/posix-functions/isupper.texi: Likewise.
28063         * doc/posix-functions/isxdigit.texi: Likewise.
28064
28065 2009-10-18  Bruno Haible  <bruno@clisp.org>
28066
28067         Tests for module 'isblank'.
28068         * modules/isblank-tests: New file.
28069         * tests/test-isblank.c: New file.
28070
28071         New module 'isblank'.
28072         * lib/isblank.c: New file.
28073         * m4/isblank.m4: New file.
28074         * modules/isblank: New file.
28075         * doc/posix-functions/isblank.texi: Mention the new module.
28076
28077 2009-10-18  Bruno Haible  <bruno@clisp.org>
28078
28079         New module 'ctype'.
28080         * lib/ctype.in.h: New file.
28081         * m4/ctype.m4: New file.
28082         * modules/ctype: New file.
28083         * doc/posix-headers/ctype.texi: Mention the new module.
28084
28085 2009-10-18  Jim Meyering  <meyering@redhat.com>
28086
28087         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
28088         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
28089         right after its initialization, rather than farther down.
28090         Keeping these in close proximity makes it easier to ensure
28091         that each such variable is initialized.  E.g.,
28092
28093             LIB_CLOCK_GETTIME=
28094             AC_SUBST([LIB_CLOCK_GETTIME])
28095
28096         This change also increments these serial numbers.
28097         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
28098         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28100
28101 2009-10-18  Bruno Haible  <bruno@clisp.org>
28102
28103         Don't let environment variables perturb build.
28104         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
28105         (gl_PREREQ_GETHRXTIME): ... not here.
28106
28107 2009-10-18  Bruno Haible  <bruno@clisp.org>
28108
28109         Avoid symlink attack in localcharset module.
28110         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
28111         (O_NOFOLLOW): Define fallback.
28112         (get_charset_aliases): Don't open the file if it is a symbolic link.
28113         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
28114         gl_FCNTL_H.
28115         (gl_FCNTL_H): Require it.
28116         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
28117         * modules/localcharset (Files): Add m4/fcntl_h.m4.
28118         Reported by Fergal Glynn <fglynn@veracode.com>.
28119
28120 2009-10-18  Bruno Haible  <bruno@clisp.org>
28121
28122         Implement nproc for mingw.
28123         * lib/nproc.c: Include <windows.h>
28124         (num_processors): On native Windows platforms, try GetSystemInfo.
28125
28126 2009-10-18  Bruno Haible  <bruno@clisp.org>
28127
28128         Implement nproc for IRIX.
28129         * lib/nproc.c: Include <sys/sysmp.h>.
28130         (num_processors): On IRIX systems, try sysmp.
28131         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
28132
28133 2009-10-18  Bruno Haible  <bruno@clisp.org>
28134
28135         Implement nproc for HP-UX.
28136         * lib/nproc.c: Include <sys/pstat.h>
28137         (num_processors): On HP-UX systems, try pstat_getdynamic.
28138         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
28139         pstat_getdynamic.
28140
28141 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
28142             Bruno Haible  <bruno@clisp.org>
28143
28144         Implement nproc for NetBSD, OpenBSD.
28145         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
28146         (ARRAY_SIZE): New macro.
28147         (num_processors): On BSD systems, try sysctl of HW_NCPU.
28148         * m4/nproc.m4: New file.
28149         * modules/nproc (Files): Add m4/nproc.m4.
28150         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
28151         (Makefile.am): Instead, augment lib_SOURCES.
28152
28153 2009-10-18  Bruno Haible  <bruno@clisp.org>
28154
28155         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
28156         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
28157         sys/param.h.
28158
28159 2009-10-16  Eric Blake  <ebb9@byu.net>
28160
28161         utimensat: new module
28162         * modules/utimensat: New file.
28163         * lib/utimensat.c (utimensat): Likewise.
28164         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28165         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
28166         so we can work around Linux bugs.
28167         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28168         * modules/sys_stat (Makefile.am): Substitute them.
28169         * lib/sys_stat.in.h (utimensat): Declare it.
28170         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28171         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28172         * modules/utimensat-tests: New test.
28173         * tests/test-utimensat.c: Likewise.
28174
28175         utimens: let lutimens work on non-symlinks
28176         * lib/utimens.c (lutimens): Fall back to utimens rather than
28177         failing with ENOSYS, when file is not a symlink.
28178         (utimens): Reduce redirection.
28179         * tests/test-lutimens.h (test_lutimens): Update test to cover
28180         non-symlinks.
28181         * tests/test-utimens.h (test_utimens): Update test to cover
28182         symlinks.
28183         * tests/test-utimens.c (main): Update caller.
28184
28185         utimens: cache whether utimensat syscall works
28186         * lib/utimens.c (utimensat_works_really): New cache variable.
28187         (fdutimens, lutimens): Use it to avoid failing syscall.
28188
28189         test-stat-time, test-utimens: improve portability
28190         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
28191         ext4 on alpha, and for cygwin.
28192         * tests/test-utimens-common.h: New file.
28193         (nap): Factor delays into single function.
28194         * tests/test-lutimens.h (test_lutimens): Use new header.
28195         * tests/test-futimens.h (test_futimens): Likewise.
28196         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
28197         timestamps to occur from same machine, as was done previously for
28198         test_utimens.
28199         * modules/utimens-tests (Files): Ship new file.
28200         * modules/futimens-tests (Files): Likewise.
28201         Reported in part by Jim Meyering.
28202
28203         sys_stat: sort replacement declarations
28204         * lib/sys_stat.in.h: Sort declarations.
28205         * lib/futimens.c (futimens): Fix typo.
28206
28207 2009-10-15  Jim Meyering  <meyering@redhat.com>
28208
28209         don't let environment settings perturb build
28210         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
28211         could cause a configure-time and/or build-time malfunction.
28212         Typically, a configure-time function-in-library test is performed
28213         via code like this:
28214
28215           LIB_VAR=
28216           AC_SUBST([LIB_VAR])
28217           prefix_saved_LIBS=$LIBS
28218             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
28219                        [test "$ac_cv_search_FUNC" = "none required" ||
28220                         LIB_VAR=$ac_cv_search_FUNC])
28221           LIBS=$prefix_saved_LIBS
28222
28223         However, in each of the files affected by this change, the LIB_VAR=
28224         initialization was omitted.  Thus, when set in the environment, its
28225         value would propagate into generated Makefiles when FUNC is not found
28226         in LIB_NAME.
28227         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
28228         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
28229         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28230
28231 2009-10-14  Eric Blake  <ebb9@byu.net>
28232
28233         fchdir: avoid infinite recursion in mingw
28234         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
28235         recursing.
28236
28237         test-stat-time: port to mingw
28238         * tests/test-stat-time.c (force_unlink): Return a value.
28239         (test_ctime) [W32]: Fix compilation error.
28240         (nap): Don't call usleep with too large an argument.  Use
28241         force_unlink.
28242         * doc/pastposix-functions/usleep.texi (usleep): Document the
28243         portability issue.
28244
28245 2009-10-13  Jim Meyering  <meyering@redhat.com>
28246
28247         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
28248         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
28249         * modules/pipe-filter-ii: Likewise.
28250         * modules/sys_socket-tests: Likewise.
28251         * modules/tsearch-tests: Likewise.
28252         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
28253         (check): Depend on it.
28254
28255 2009-10-12  Eric Blake  <ebb9@byu.net>
28256
28257         utimens-tests: port to NFS file systems
28258         * tests/test-utimens.h (test_utimens): Refactor utimecmp
28259         comparisons to avoid spurious failures from timestamp drift
28260         between NFS machines.
28261
28262 2009-10-12  Eric Blake  <ebb9@byu.net>
28263
28264         stat-time-tests: minor cleanups
28265         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
28266         * tests/test-stat-time.c (nap): Separate assignment from call.
28267         Suggested by Paolo Bonzini and Bruno Haible.
28268
28269         sys_stat: guarantee struct timespec
28270         * lib/sys_stat.in.h (includes): Always include <time.h>
28271         * modules/sys_stat (Depends-on): Add time.
28272         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
28273         mode_t permission values.
28274         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
28275         get at subsecond timestamps.
28276
28277 2009-10-10  Eric Blake  <ebb9@byu.net>
28278
28279         futimens: new module
28280         * modules/futimens: New file.
28281         * lib/futimens.c (futimens): Likewise.
28282         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
28283         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
28284         we can work around Linux bugs.
28285         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28286         * modules/sys_stat (Makefile.am): Substitute them.
28287         * lib/sys_stat.in.h (futimens): Declare it.
28288         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28289         * doc/posix-functions/futimens.texi (futimens): Likewise.
28290         * modules/futimens-tests: New test.
28291         * tests/test-futimens.c: Likewise.
28292
28293         utimens: introduce fdutimens
28294         * lib/utimens.h (fdutimens): New prototype.
28295         * lib/utimens.c (gl_futimens): Move guts...
28296         (fdutimens): ...to new interface.
28297         * tests/test-utimens.c (do_fdutimens): Use it.
28298
28299         utimens: add UTIME_NOW and UTIME_OMIT support
28300         * lib/utimens.c (validate_timespec, update_timespec): New helper
28301         functions.
28302         (gl_futimens, lutimens): Use them.
28303         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
28304         stdbool, sys_stat.
28305         (Link): Mention resulting library dependency.
28306         * modules/utimecmp (Link): Likewise.
28307         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
28308         (Makefile.am): Pick up library dependency.
28309         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
28310         definition.
28311         * tests/test-sys_stat.c: Test the definitions.
28312         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
28313         * NEWS: Document library dependency.
28314
28315         utimecmp: support symlink timestamps
28316         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
28317         hashing when possible.  Use pathconf when available.
28318         (SYSCALL_RESOLUTION): Recognize tighter resolution.
28319         * modules/utimecmp (Depends-on): Add lstat.
28320
28321         utimens: add lutimens interface
28322         * lib/utimens.c (lutimens): New function.
28323         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
28324         * lib/utimens.h (lutimens): Declare new interface.
28325         * tests/test-utimens.c (main): Enhance test.
28326         * tests/test-lutimens.h (test_lutimens): New file.
28327         * modules/utimens-tests (Files): Distribute it.
28328         (Depends-on): Add symlink.
28329         (configure.ac): Check for usleep.
28330
28331         utimens: validate futimens usage
28332         * lib/utimens.c (gl_futimens): Require valid fd up front, using
28333         fewer syscalls on failure later on.  Avoid compiler warning on
28334         mingw.
28335         * modules/utimens (Depends-on): Add dup2.
28336
28337         utimens: add test
28338         * modules/utimens-tests: New test.
28339         * tests/test-utimens.h: New file.
28340         * tests/test-futimens.h: Likewise.
28341         * tests/test-utimens.c: Likewise.
28342
28343         doc: mention timestamp portability issues
28344         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
28345         instead.
28346         * doc/posix-functions/utime.texi (utime): Likewise.
28347         * doc/posix-functions/utimes.texi (utimes): Likewise.
28348         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
28349         instead.
28350         * doc/posix-functions/futimens.texi (futimens): Mention utimens
28351         module.
28352         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28353         Mention weakness with symlink timestamps.
28354         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
28355         to utimensat/futimens instead.
28356         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
28357
28358         test-dup2: enhance test
28359         * tests/test-dup2.c (main): Also check AT_FDCWD.
28360
28361         test-stat-time: avoid more spurious failures
28362         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
28363         xfs; and avoid race if the two timestamps cross quantization edge.
28364
28365         relocatable: prefer 'file system' over 'filesystem'
28366         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
28367         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
28368         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
28369         * doc/relocatable.texi (Enabling Relocatability): Likewise.
28370         * lib/relocatable.c (compute_curr_prefix): Likewise.
28371
28372 2009-10-10  Jim Meyering  <meyering@redhat.com>
28373
28374         stat-time-tests: check for the usleep function
28375         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
28376
28377 2009-10-10  Bruno Haible  <bruno@clisp.org>
28378
28379         * modules/xnanosleep: Put the Link section after the Include section.
28380
28381 2009-10-09  Eric Blake  <ebb9@byu.net>
28382
28383         dup2: work around FreeBSD 6.1 bug
28384         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
28385         * doc/posix-functions/dup2.texi (dup2): Document it.
28386         Reported by Nelson H. F. Beebe and Jim Meyering.
28387
28388         test-stat-time: port to buggy NFS clients
28389         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
28390         (test_ctime): Also skip test if mtime and ctime are skewed.
28391
28392         maint: prefer 'file system' over 'filesystem'
28393         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28394         * doc/posix-functions/lstat.texi (lstat): Likewise.
28395         * lib/file-has-acl.c (file_has_acl): Likewise.
28396         * lib/fwriteerror.c [TEST]: Likewise.
28397         * tests/test-areadlink.h (test_areadlink): Likewise.
28398         * tests/test-areadlinkat-with-size.c (main): Likewise.
28399         * tests/test-areadlinkat.c (main): Likewise.
28400         * tests/test-canonicalize-lgpl.c (main): Likewise.
28401         * tests/test-canonicalize.c (main): Likewise.
28402         * tests/test-fstatat.c (main): Likewise.
28403         * tests/test-linkat.c (main): Likewise.
28404         * tests/test-lstat.h (test_lstat_func): Likewise.
28405         * tests/test-mkdir.h (test_mkdir): Likewise.
28406         * tests/test-readlink.h (test_readlink): Likewise.
28407         * tests/test-remove.c (main): Likewise.
28408         * tests/test-rename.h (test_rename): Likewise.
28409         * tests/test-renameat.c (main): Likewise.
28410         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28411         * tests/test-symlink.h (test_symlink): Likewise.
28412         * tests/test-symlinkat.c (main): Likewise.
28413         * tests/test-unlink.h (test_unlink_func): Likewise.
28414         * tests/test-unlinkat.c (main): Likewise.
28415
28416         maint: make realtime library usage explicit
28417         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
28418         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
28419         * modules/settime (Link): Likewise.
28420         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
28421
28422         test-stat-time: speed up execution
28423         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
28424         warning on mingw.
28425         (nap): New helper function.
28426         (prepare_test): Use it to reduce sleep time.
28427         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
28428         execution.
28429         * modules/stat-time-tests (configure.ac): Check for usleep.
28430
28431 2009-10-09  Jim Meyering  <meyering@redhat.com>
28432
28433         selinux-h: always use getfilecon wrappers
28434         * lib/getfilecon.c: New file.
28435         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
28436         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
28437         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
28438         (fgetfilecon): Provide a stub.
28439         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
28440         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
28441         file unconditionally.
28442         When <selinux/selinux.h> is found, arrange to use wrappers.
28443         * modules/selinux-h (Files): Add getfilecon.c.
28444         (Makefile.am): Substitute include-next-related bits
28445         into the now-always-generated selinux/selinux.h file.
28446         * doc/glibc-functions/lgetfilecon.texi: New file.
28447         * doc/glibc-functions/fgetfilecon.texi: New file.
28448         * doc/glibc-functions/getfilecon.texi: New file.
28449         * doc/glibc-functions/getfilecon-desc.texi: New file.
28450         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
28451         which to pull in the new files.
28452         * MODULES.html.sh (Misc): Add selinux-h.
28453
28454 2009-10-08  Jim Meyering  <meyering@redhat.com>
28455
28456         unistd: fix comment typo
28457         * lib/unistd.in.h (euidaccess): Fix a comment typo.
28458
28459 2009-10-08  Eric Blake  <ebb9@byu.net>
28460
28461         areadlink: use SIZE_MAX consistently
28462         * modules/areadlink (Depends-on): Add stdint.
28463         * modules/areadlink-with-size (Depends-on): Likewise.
28464         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
28465         gives NULL; drop sys/types, since unistd gives size_t; and add
28466         stdint for SIZE_MAX.
28467         (SIZE_MAX): Rely on headers.
28468         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
28469         and add stdint.
28470         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
28471         (SIZE_MAX): Likewise.
28472         (INITIAL_BUF_SIZE): Turn into enum.
28473         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
28474
28475 2009-10-08  Jim Meyering  <meyering@redhat.com>
28476
28477         areadlinkat: avoid compilation failure
28478         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
28479         Fix typo in comment.
28480
28481 2009-10-07  Eric Blake  <ebb9@byu.net>
28482
28483         areadlinkat-with-size: new module
28484         * modules/areadlinkat-with-size: New module.
28485         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
28486         * lib/areadlink.h (areadlinkat): Declare it.
28487         * MODULES.html.sh (File system functions): Mention it.
28488         * modules/areadlinkat-with-size-tests: New test.
28489         * tests/test-areadlinkat-with-size.c: New file.
28490
28491         xreadlinkat: new module
28492         * modules/xreadlinkat: New module.
28493         * lib/xreadlinkat.c (xreadlinkat): New file.
28494         * lib/xreadlink.h (xreadlinkat): Declare it.
28495         * MODULES.html.sh (File system functions): Mention it.
28496
28497         areadlinkat: new module
28498         * lib/at-func.c (FUNC_FAIL): New define.
28499         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
28500         * modules/areadlinkat: New module.
28501         * lib/linkat.c (areadlinkat): Move...
28502         * lib/areadlinkat.c (areadlinkat): ...to new file.
28503         * lib/areadlink.h (areadlinkat): Declare it.
28504         * modules/linkat (Depends-on): Add areadlinkat.
28505         * MODULES.html.sh (File system functions): Mention it.
28506         * modules/areadlinkat-tests: New test.
28507         * tests/test-areadlinkat.c: New file.
28508
28509         areadlink, areadlink-with-size: add tests
28510         * modules/areadlink-tests: New test.
28511         * modules/areadlink-with-size-tests: Likewise.
28512         * tests/test-areadlink.h: New file.
28513         * tests/test-areadlink.c: Likewise.
28514         * tests/test-areadlink-with-size.c: Likewise.
28515
28516         maint: minor cleanups
28517         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
28518         _UNUSED_PARAMETER_ instead.
28519         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
28520         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
28521         * modules/linkat-tests (Files): Distribute test-link.h.
28522
28523         openat, utimens: whitespace cleanup
28524         * lib/openat.c: Prefer space throughout, rather than mix of 8
28525         spaces vs. tabs.
28526         * lib/at-func.c: Likewise.
28527         * lib/utimens.c: Likewise.
28528
28529         openat: avoid using wrong fd
28530         * lib/openat.c (openat_permissive): Reject user's fd if saving the
28531         working directory chooses same fd.
28532         * lib/at-func.c (AT_FUNC_NAME): Likewise.
28533
28534         mkdir, mkdirat: fix cygwin 1.5.x bug
28535         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
28536         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
28537         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
28538         bug.
28539         (gl_PREREQ_MKDIR): Delete unused macro.
28540         * modules/mkdir (Files): Track file rename.
28541         (configure.ac): Update macro name.
28542         * modules/openat (Depends-on): Add mkdir.
28543         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
28544
28545         mkdir, mkdirat: add tests
28546         * modules/mkdir-tests: New test.
28547         * tests/test-mkdir.h: New file.
28548         * tests/test-mkdir.c: Likewise.
28549         * tests/test-mkdirat.c: Likewise.
28550         * modules/openat-tests (Files): Add new files.
28551         (Makefile.am): Run new test.
28552
28553 2009-10-06  Eric Blake  <ebb9@byu.net>
28554
28555         doc: tweak *at function documentation
28556         * doc/posix-functions/faccessat.texi (faccessat): Mention
28557         known issue with replacement.
28558         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
28559         * doc/posix-functions/linkat.texi (linkat): Likewise.
28560         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28561         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28562         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28563         * doc/posix-functions/renameat.texi (renameat): Likewise.
28564         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28565
28566         openat: fix GNU/Hurd bug in unlinkat
28567         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
28568         broken.
28569         * doc/posix-functions/unlink.texi (unlink): Document this.
28570         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
28571
28572         fdopendir: fix GNU/Hurd bug
28573         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
28574         allowing non-directory fds.
28575         * lib/fdopendir.c (rpl_fdopendir): Work around it.
28576         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
28577         * modules/dirent (Makefile.am): Substitute it.
28578         * lib/dirent.in.h (fdopendir): Declare replacement.
28579         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
28580         * tests/test-fdopendir.c (main): Test something other than
28581         /dev/null, since on Hurd that behaves like a directory.
28582
28583         test-symlink: port to GNU/Hurd
28584         * tests/test-symlink.h (test_symlink): Relax expected errno.
28585
28586         doc: tweak more cygwin information
28587         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
28588         now compatible with glibc.
28589         * doc/posix-functions/getopt.texi (getopt): Likewise.
28590
28591         getopt-gnu: add another test
28592         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
28593         guarantee behavior relied on by m4.
28594         * tests/test-getopt.c (main): Use it.
28595         * modules/getopt-posix-tests (Depends-on): Add setenv.
28596         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
28597
28598         getopt: fix compilation on darwin
28599         * lib/getopt.in.h (includes): Leave breadcrumbs during system
28600         include.
28601         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
28602         Reported by Ludovic Courtès.
28603
28604 2009-10-06  Bruno Haible  <bruno@clisp.org>
28605
28606         * modules/size_max (Description): Discourage its use.
28607         Reported by Simon Josefsson.
28608
28609 2009-10-06  Jim Meyering  <meyering@redhat.com>
28610
28611         linkat: avoid compilation failure
28612         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
28613
28614 2009-10-05  Eric Blake  <ebb9@byu.net>
28615
28616         linkat: support Linux 2.6.17
28617         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
28618         linkat on Linux, but allow cache variable override.
28619         * lib/linkat.c (rpl_linkat): Define override.
28620         * modules/linkat (Depends-on): Add symlinkat.
28621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
28622         * modules/unistd (Makefile.am): Substitute it.
28623         * lib/unistd.in.h (linkat): Declare replacement.
28624         Reported by Pádraig Brady.
28625
28626         quotearg: port test to systems with C.UTF-8 locale
28627         * tests/test-quotearg.c (struct result_strings): Add another
28628         member, differentiating between C.ASCII and C.UTF-8 handling.
28629         (compare_strings): Add parameter.
28630         (main): Adjust all callers.
28631
28632         getopt: avoid clash with FreeBSD _getopt_internal
28633         * lib/getopt.in.h (_getopt_internal): Override the name.
28634         * lib/getopt_int.h (includes): Pick up any overrides.
28635         Reported by Reuben Thomas.
28636
28637         hash: allow C89 compilation
28638         * lib/hash.c (check_tuning): Move declaration before statement.
28639         Reported by Reuben Thomas.
28640
28641 2009-10-05  Karl Berry  <karl@gnu.org>
28642
28643         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
28644
28645 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
28646             Bruno Haible  <bruno@clisp.org>
28647
28648         * lib/uname.c (uname): Use a table-driven algorithm to compute
28649         Windows NT versions.
28650
28651 2009-10-04  Bruno Haible  <bruno@clisp.org>
28652
28653         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
28654         program_invocation_short_name.
28655         * modules/progname (configure.ac): Test for presence of
28656         program_invocation_short_name.
28657         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28658
28659 2009-10-04  Bruno Haible  <bruno@clisp.org>
28660
28661         * lib/progname.c (set_program_name): Fix comment.
28662         Reported by Jim Meyering.
28663
28664 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28665             Bruno Haible  <bruno@clisp.org>
28666
28667         * lib/uname.c: Include <string.h>.
28668         (uname): Do only one call to GetVersionEx in the common case.
28669
28670 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28671             Bruno Haible  <bruno@clisp.org>
28672
28673         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
28674         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
28675         (uname): Add support for Windows CE and various non-x86 CPU types.
28676
28677 2009-10-03  Bruno Haible  <bruno@clisp.org>
28678
28679         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
28680         invocation to tests/configure.ac.
28681         Reported by Ian Beckwith <ianb@erislabs.net>.
28682
28683 2009-10-02  Eric Blake  <ebb9@byu.net>
28684
28685         fchdir: avoid compiler warning
28686         * lib/fchdir.c (canonicalize_file_name)
28687         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
28688
28689         test-open: support mingw errno values
28690         * tests/test-open.h (test_open): Relax test.
28691         * tests/test-fopen.h (test_fopen): Likewise.
28692         * tests/test-openat-safer.c (main): Likewise.
28693
28694         open: fix opening directory on mingw
28695         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
28696
28697         test-open: on GNU/Hurd, /dev/null is a directory
28698         * tests/test-fopen.h (main): Rename...
28699         (test_fopen): ...to this.  Use a guaranteed non-directory when
28700         confirming open behavior on trailing slash.
28701         * tests/test-openat-safer.c (main): Likewise.
28702         * tests/test-open.h (main): Likewise....
28703         (test_open): ...to this.
28704         * tests/test-fopen.c (main): Adjust caller.
28705         * tests/test-fopen-safer.c (main): Likewise.
28706         * tests/test-open.c (main): Likewise.
28707         * tests/test-fcntl-safer.c (main): Likewise.
28708         Reported by Samuel Thibault.
28709
28710         rename, fchdir: don't ignore chdir failure
28711         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
28712         * lib/rename.c (rpl_rename) [W32]: Likewise.
28713         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
28714         an empty destination directory if source cannot be renamed,
28715         although there is still possibility for failure.
28716         * doc/posix-functions/rename.texi (rename): Document the race.
28717         Reported by Jim Meyering.
28718
28719         maint: cleanup whitespace in recent commits
28720         * lib/rename.c (rpl_rename): Remove tabs.
28721         * tests/test-link.h (test_link): Likewise.
28722         * lib/fchdir.c (get_name): Likewise.
28723         Reported by Jim Meyering.
28724
28725 2009-10-02  Ben Pfaff  <blp@gnu.org>
28726
28727         relocatable-prog-wrapper: Add missing dependency on
28728         double-slash-root.
28729         * modules/relocatable-prog-wrapper: Add dependency.
28730         Reported by Ian Beckwith <ianb@erislabs.net>.
28731
28732 2009-10-02  Eric Blake  <ebb9@byu.net>
28733
28734         renameat: fix Solaris bugs
28735         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
28736         needed fixing.
28737         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
28738         * modules/stdio (Makefile.am): Substitute it.
28739         * lib/stdio.in.h (renameat): Declare replacement.
28740         * lib/renameat.c (rpl_renameat): Implement fix.
28741
28742         renameat: new module
28743         * modules/renameat: New file.
28744         * lib/renameat.c (renameat): Likewise.
28745         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
28746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28747         * modules/stdio (Makefile.am): Substitute them.
28748         * lib/stdio.in.h (renameat): Declare it.
28749         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28750         * doc/posix-functions/renameat.texi (renameat): Likewise.
28751         * modules/renameat-tests: New test.
28752         * tests/test-renameat.c: Likewise.
28753
28754         rename: fix mingw bugs
28755         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
28756         directory overwrite bugs.
28757
28758         rename: fix another cygwin 1.5 bug
28759         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
28760         checks.
28761         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
28762         unnecessary cygwin workarounds.  Also work around bug with moving
28763         full directory onto an empty one.
28764         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
28765
28766         rename-dest-slash: merge into rename module
28767         * modules/rename-dest-slash (Status): Mark obsolete.
28768         (Depends-on): Add rename.
28769         (Files): Let rename do it all.
28770         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
28771         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
28772         * m4/rename-dest-slash.m4: ...so this file can be deleted.
28773         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
28774         * lib/rename.c (rpl_rename): Update comments.
28775
28776         rename: fix cygwin 1.5.x bugs
28777         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
28778         * lib/rename.c (rpl_rename): Work around them.
28779         * modules/rename (Depends-on): Add same-inode.
28780
28781         rename: fix Solaris 10 bug
28782         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28783         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
28784         was the only bug.
28785
28786         rename: fix Solaris 9 bug
28787         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
28788         on non-directory.  Avoid calling exit.
28789         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
28790         strdup.
28791         * modules/rename-tests (Depends-on): Drop lstat.
28792         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28793         (gl_PREREQ_RENAME): Delete unused macro.
28794
28795         rename-dest-slash: fix NetBSD bug
28796         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
28797         links.
28798         * modules/rename-dest-slash (Depends-on): Add same-inode.
28799
28800         rename-tests: new test, exposes several platform bugs
28801         * modules/rename-tests: New file.
28802         * tests/test-rename.h: Likewise.
28803         * tests/test-rename.c: Likewise.
28804         * doc/posix-functions/rename.texi (rename): Improve documentation,
28805         including bugs that will eventually be fixed in gnulib.
28806
28807 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
28808
28809         * lib/uname.c: Include <stdlib.h>
28810         (uname): Assume version info is available.
28811
28812 2009-10-02  Jim Meyering  <meyering@redhat.com>
28813
28814         gnu-web-doc-update: correct --help output
28815         * build-aux/gnu-web-doc-update: Make --help output relevant.
28816
28817         gnu-web-doc-update: add standard options
28818         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
28819
28820         gnu-web-doc-update: New module.
28821         Use this script to automatically update the on-line web documentation
28822         for your GNU project at http://www.gnu.org/software/$pkg/manual/
28823         * modules/gnu-web-doc-update: New file, from coreutils.
28824         * build-aux/gnu-web-doc-update: New script.
28825
28826 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
28827
28828         link: LoadLibrary is not needed.
28829         * lib/link.c: Use GetModuleHandle.
28830
28831 2009-10-01  Eric Blake  <ebb9@byu.net>
28832
28833         getopt: bump serial number
28834         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
28835         change.
28836
28837         tests: tighten link, rmdir, and remove tests
28838         * tests/test-link.h (includes): No need to use <config.h> here.
28839         Clean up if directory hard link was created, otherwise test for
28840         trailing '.'.
28841         * tests/test-linkat.c (main): Simplify.
28842         * tests/test-remove.c (main): Enhance test for trailing '.'.
28843         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28844
28845 2009-10-01  Jim Meyering  <meyering@redhat.com>
28846
28847         maint.mk: requiring "make major" was annoying, for a "minor" release.
28848         What is intended is "stable", to contrast with alpha and beta,
28849         so require "make stable", not "make major".
28850         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
28851         (get_tool_versions): Likewise.
28852         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
28853
28854 2009-09-30  Ben Pfaff  <blp@gnu.org>
28855
28856         Fix broken build of replacement for Windows tmpfile().
28857         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
28858         flags argument added along with the 'mkostemp' module.
28859
28860 2009-09-28  Bruno Haible  <bruno@clisp.org>
28861
28862         Avoid identifier clash with POSIX function 'remove' defined as a macro.
28863         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
28864         to 'remove_elt'.
28865         (gl_list_remove): Update.
28866         * lib/gl_list.c (gl_list_remove): Update.
28867         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
28868         to 'remove_elt'.
28869         (gl_oset_remove): Update.
28870         * lib/gl_list.c (gl_oset_remove): Update.
28871         Reported by Eric Blake.
28872
28873 2009-09-28  Eric Blake  <ebb9@byu.net>
28874
28875         doc: mention yet more cygwin 1.7 status
28876         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
28877         cygwin.
28878         * doc/glibc-functions/execvpe.texi (execvpe): New file.
28879         * doc/gnulib.texi (Glibc unistd.h): Mention it.
28880
28881         argp: fix test failure
28882         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
28883         that are not upper-case.  Pass correct range to tolower.
28884
28885 2009-09-27  Jim Meyering  <meyering@redhat.com>
28886
28887         test-yesno: work around sparc-dash here-document infelicity
28888         Without this change, the literal \177 byte in a here document
28889         would make dash 0.5.5.1-3 access uninitialized memory.
28890         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
28891         Instead, use a marker, "@", and filter through tr to create the desired
28892         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
28893
28894 2009-09-27  Bruno Haible  <bruno@clisp.org>
28895
28896         Disable untested support for new flavours of ACLs on AIX.
28897         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
28898         progress.
28899         * lib/set-mode-acl.c (qset_acl): Likewise.
28900
28901 2008-12-07  Bruno Haible  <bruno@clisp.org>
28902
28903         Add support for new flavours of ACLs on AIX. (Untested.)
28904         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
28905         (file_has_acl): Add support for newer AIX.
28906         * lib/set-mode-acl.c (qset_acl): Likewise.
28907         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
28908         Rainer Tammer <tammer@tammer.net>.
28909
28910 2009-09-26  Eric Blake  <ebb9@byu.net>
28911
28912         argp: fix compilation of getopt
28913         * lib/getopt.in.h (includes): Use different guard than glibc.
28914         Reported by Sergey Poznyakoff.
28915
28916         doc: mention more cygwin 1.7 status
28917         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
28918         bug.
28919         * doc/posix-functions/execl.texi (execl): Likewise.
28920         * doc/posix-functions/execle.texi (execle): Likewise.
28921         * doc/posix-functions/execlp.texi (execlp): Likewise.
28922         * doc/posix-functions/execv.texi (execv): Likewise.
28923         * doc/posix-functions/execve.texi (execve): Likewise.
28924         * doc/posix-functions/execvp.texi (execvp): Likewise.
28925         * doc/glibc-functions/canonicalize_file_name.texi
28926         (canonicalize_file_name): Cygwin 1.7 now provides this.
28927         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
28928         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
28929         on AT_SYMLINK_NOFOLLOW.
28930
28931 2009-09-24  Eric Blake  <ebb9@byu.net>
28932
28933         test-linkat: make test more robust
28934         * tests/test-linkat.c (main): Avoid collision with EEXIST.
28935
28936         getopt: fix inclusion guards for cygwin
28937         * modules/getopt-posix (Depends-on): Add include-next.
28938         (Makefile.am): Substitute more items in replacement header.
28939         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
28940         <getopt.h>.
28941         * lib/getopt.in.h (includes): Use split inclusion guard, and
28942         prefer <getopt.h> over include <unistd.h> when one is present.
28943         (option): Also override name of 'struct option'.
28944
28945         same-inode: revert prior change; it is not yet ready
28946         * NEWS: Undo mention of this change.
28947         * lib/same-inode.h (same-inode.h): Undo tri-state change.
28948         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
28949         * lib/cycle-check.c (cycle_check): Likewise.
28950         * lib/same.c (same_name): Likewise.
28951         * lib/at-func2.c (at_func2): Likewise.
28952
28953 2009-09-23  Eric Blake  <ebb9@byu.net>
28954
28955         linkat: new module
28956         * modules/linkat: New file.
28957         * lib/at-func2.c (at_func2): Likewise.
28958         * lib/linkat.c (linkat): Likewise.
28959         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28960         * lib/openat-priv.h (at_func2): Add declaration.
28961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28962         * modules/unistd (Makefile.am): Substitute them.
28963         * lib/unistd.in.h (linkat): Declare it.
28964         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28965         * doc/posix-functions/linkat.texi (linkat): Likewise.
28966         * doc/posix-functions/link.texi (link): Tweak wording.
28967         * tests/test-link.c (main): Move guts...
28968         * tests/test-link.h (test_link): ...into new file.
28969         * modules/linkat-tests: New test.
28970         * tests/test-linkat.c: Likewise.
28971         * modules/link-tests (Files): Ship new file.
28972         (Depends-on): Add stdbool.
28973
28974         dirname: add library-safe mdir_name
28975         * lib/dirname.h (mdir_name): New prototype.
28976         * lib/dirname.c (dir_name): Move guts...
28977         (mdir_name): ...to new function that avoids xalloc_die.
28978
28979         fchdir: another mingw fix
28980         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
28981         * lib/fchdir.c (get_name): New helper method; skips canonicalize
28982         on mingw (where it has not yet been ported), and make it optional
28983         elsewhere.
28984         (_gl_register_fd): Use it.
28985
28986         same-inode: make SAME_INODE tri-state, to port to mingw
28987         * NEWS: Mention this change.
28988         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
28989         st_ino always being 0.
28990         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
28991         * lib/cycle-check.c (cycle_check): Likewise.
28992         * lib/same.c (same_name): Likewise.
28993
28994         lstat: avoid mingw compilation error
28995         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
28996         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
28997         lstat ourselves.
28998         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
28999         was adequate.
29000         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
29001         the checks for lstat.
29002         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
29003
29004         link: fix test failure on Solaris 9
29005         * lib/link.c (rpl_link): Don't assume link will catch bogus
29006         trailing slash on source.
29007
29008         test-symlinkat: enhance test
29009         * tests/test-readlink.c (main): Move guts...
29010         * tests/test-readlink.h (test_readlink): ...into new file.
29011         * tests/test-symlink.c (main): Move guts...
29012         * tests/test-symlink.h (test_symlink): ...into new file.
29013         * tests/test-symlinkat.c (main): Use new files for further
29014         coverage.
29015         (do_symlink, do_readlink): New helper functions.
29016         * modules/symlink-tests (Files): Ship new file.
29017         (Depends-on): Add stdbool.
29018         * modules/readlink-tests (Files): Ship new file.
29019         (Depends-on): Add stdbool.
29020         * modules/symlinkat-tests (Files): Use new files.
29021
29022 2009-09-23  Eric Blake  <ebb9@byu.net>
29023
29024         readlink: document portability issue with symlink length
29025         * doc/posix-functions/lstat.texi (lstat): Mention that some file
29026         systems have bogus st_size on symlinks, and mention the
29027         areadlink-with-size module.
29028         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
29029         * doc/posix-functions/readlink.texi (readlink): Mention the
29030         areadlink module, and ERANGE failure.
29031         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29032         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
29033
29034         readlink: fix Solaris 9 bug with trailing slash
29035         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
29036         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
29037         * doc/posix-functions/readlink.texi (readlink): Document this.
29038         * modules/readlink-tests: New test.
29039         * tests/test-readlink.c: Likewise.
29040
29041         readlink: fix cygwin 1.5.x bug with return type
29042         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
29043         * lib/unistd.in.h (readlink): Use ssize_t.
29044         * lib/readlink.c (readlink): Likewise.
29045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29046         * modules/unistd (Makefile.am): Substitute it.
29047         * lib/unistd.in.h (readlink): Declare replacement.
29048         * doc/posix-functions/readlink.texi (readlink): Document this.
29049
29050         symlink: use throughout gnulib
29051         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
29052         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
29053         symlink is not used.
29054         * modules/symlinkat (Depends-on): Add symlink.
29055         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29056         * modules/canonicalize-tests (Depends-on): Likewise.
29057         * modules/lstat-tests (Depends-on): Likewise.
29058         * modules/openat-tests (Depends-on): Likewise.
29059         * modules/remove-tests (Depends-on): Likewise.
29060         * modules/rmdir-tests (Depends-on): Likewise.
29061         * modules/unlink-tests (Depends-on): Likewise.
29062         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
29063         * tests/test-canonicalize.c (symlink): Likewise.
29064         * tests/test-fstatat.c (symlink): Likewise.
29065         * tests/test-lstat.c (symlink): Likewise.
29066         * tests/test-remove.c (symlink): Likewise.
29067         * tests/test-rmdir.c (symlink): Likewise.
29068         * tests/test-unlink.c (symlink): Likewise.
29069         * tests/test-unlinkat.c (symlink): Likewise.
29070
29071         symlink: new module, for Solaris 9 bug
29072         * modules/symlink: New file.
29073         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29074         * lib/symlink.c: Likewise.
29075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29076         * modules/unistd (Makefile.am): Substitute them.
29077         * lib/unistd.in.h (symlink): Declare replacement.
29078         * MODULES.html.sh (File system functions): Mention it.
29079         * doc/posix-functions/symlink.texi (symlink): Likewise.
29080         * modules/symlink-tests: New test.
29081         * tests/test-symlink.c: Likewise.
29082
29083 2009-09-23  Bruno Haible  <bruno@clisp.org>
29084
29085         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
29086         when needed.
29087         Test case: gnulib-tool --import --with-tests atexit inttypes.
29088         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
29089
29090 2009-09-23  Bruno Haible  <bruno@clisp.org>
29091
29092         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
29093         subcommand, not in a subshell.
29094
29095 2009-09-22  Eric Blake  <ebb9@byu.net>
29096
29097         unistd: sort replacement declarations
29098         * lib/unistd.in.h: Sort declarations.
29099
29100         open, openat: minor optimization
29101         * lib/open.c (open): If open succeeded, len is non-zero.
29102         * lib/openat.c (rpl_openat): Likewise.
29103
29104         link-follow: ensure correct result
29105         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
29106         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
29107         distinguish between possible failures.
29108
29109 2009-09-21  Eric Blake  <ebb9@byu.net>
29110
29111         fts: avoid compiler warning
29112         * lib/fts.c (dirent_inode_sort_may_be_useful)
29113         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
29114
29115 2009-09-19  Bruno Haible  <bruno@clisp.org>
29116
29117         * lib/progreloc.c (canonicalize_file_name): New declaration.
29118
29119 2009-09-19  Eric Blake  <ebb9@byu.net>
29120
29121         link: fix quoting
29122         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
29123
29124         openat: fix openat bugs on Solaris 9
29125         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
29126         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
29127         * modules/openat (Depends-on): Add open.
29128         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
29129         * modules/fcntl-h (Makefile.am): Substitute it.
29130         * lib/fcntl.in.h (openat): Declare replacement.
29131         * doc/posix-functions/openat.texi (openat): Document this.
29132
29133         openat: move fstatat and unlinkat into correct files
29134         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
29135         compiled.
29136         * lib/openat.c (fstatat, unlinkat): Move...
29137         * lib/fstatat.c (fstatat): ...into correct files.
29138         * lib/unlinkat.c (unlinkat): Likewise.
29139
29140         openat: fix unlinkat bugs on Solaris 9
29141         * lib/unlinkat.c (unlinkat): New file.
29142         * modules/openat (Depends-on): Add unlink.
29143         (Files): Distribute it.
29144         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
29145         trailing slash behavior is broken.
29146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29147         * modules/unistd (Makefile.am): Substitute it.
29148         * lib/unistd.in.h (unlinkat): Declare replacement.
29149         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
29150
29151         openat: fix fstatat bugs on Solaris 9
29152         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
29153         stat.
29154         * doc/posix-functions/fstatat.texi (fstatat): Document this.
29155
29156         test-unlinkat: enhance test, to expose Solaris 9 bug
29157         * tests/test-unlink.c (main): Factor guts...
29158         * tests/test-unlink.h (test_rmdir_func): ...into new file.
29159         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
29160         * tests/test-rmdir.c (main): Adjust caller.
29161         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
29162         (unlinker): New helper function.
29163         (rmdirat): Enhance check.
29164         * modules/rmdir-tests (Depends-on): Add stdbool.
29165         * modules/unlink-tests (Depends-on): Likewise.
29166         (Files): Add test-unlink.h.
29167         * modules/openat-tests (Files): Likewise.
29168         (Depends-on): Add unlinkdir.
29169
29170         test-fstatat: new test, to expose Solaris 9 bugs
29171         * tests/test-stat.c (main): Factor guts...
29172         * tests/test-stat.h (test_stat_func): ...into new file.
29173         * tests/test-lstat.c (main): Factor guts...
29174         * tests/test-lstat.h (test_lstat_func): ...into new file.
29175         * tests/test-fstatat.c: New file.
29176         * modules/stat-tests (Files): Add test-stat.h.
29177         * modules/lstat-tests (Files): Add test-lstat.h.
29178         (Depends-on): Add stdbool.
29179         * modules/openat-tests (Depends-on): Add pathmax.
29180         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
29181         (Makefile.am): Run new test.
29182
29183         remove: new module, for mingw and Solaris 9 bugs
29184         * modules/remove: New file.
29185         * lib/remove.c: Likewise.
29186         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
29187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
29188         * modules/stdio (Makefile.am): Use them.
29189         * lib/stdio.in.h (remove): Declare replacement.
29190         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29191         * doc/posix-functions/remove.texi (remove): Likewise.
29192         * modules/remove-tests: New test.
29193         * tests/test-remove.c: Likewise.
29194
29195         unlink: new module, for Solaris 9 bug
29196         * modules/unlink: New file.
29197         * lib/unlink.c: Likewise.
29198         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29200         * modules/unistd (Makefile.am): Use them.
29201         * lib/unistd.in.h (stat): Declare replacement.
29202         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29203         * doc/posix-functions/unlink.texi (unlink): Likewise.
29204         * modules/unlink-tests: New test.
29205         * tests/test-unlink.c: Likewise.
29206
29207         lstat: fix Solaris 9 bug
29208         * lib/lstat.c (lstat): Also check for trailing slash on
29209         non-symlink, non-directories.  Use stat module to simplify logic.
29210         * doc/posix-functions/lstat.texi (lstat): Document it.
29211         * modules/lstat-tests (Depends-on): Add errno, same-inode.
29212         (configure.ac): Check for symlink.
29213         * tests/test-lstat.c (main): Add more tests.
29214
29215         stat: add as dependency to other modules
29216         * modules/chown (Depends-on): Add stat.
29217         * modules/euidaccess (Depends-on): Likewise.
29218         * modules/fchdir (Depends-on): Likewise.
29219         * modules/isdir (Depends-on): Likewise.
29220         * modules/link (Depends-on): Likewise.
29221         * modules/lstat (Depends-on): Likewise.
29222         * modules/mkdir-p (Depends-on): Likewise.
29223         * modules/modechange (Depends-on): Likewise.
29224         * modules/open (Depends-on): Likewise.
29225         * modules/readlink (Depends-on): Likewise.
29226         * modules/same (Depends-on): Likewise.
29227
29228         stat: fix Solaris 9 bug
29229         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
29230         slash.
29231         * lib/stat.c (rpl_stat): Work around it.
29232         * doc/posix-functions/stat.texi (stat): Update documentation.
29233
29234         stat: new module, for mingw bug
29235         * modules/stat: New file.
29236         * lib/stat.c: Likewise.
29237         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29238         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29239         * modules/sys_stat (Makefile.am): Use them.
29240         * lib/sys_stat.in.h (stat): Declare replacement.
29241         * lib/openat.c (fstatat): Deal with lstat and stat being function
29242         macros.
29243         * modules/openat (Depends-on): Add inline.
29244         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29245         * doc/posix-functions/stat.texi (stat): Likewise.
29246         * modules/stat-tests: New test.
29247         * tests/test-stat.c: Likewise.
29248
29249 2009-09-19  Jim Meyering  <meyering@redhat.com>
29250
29251         syntax-check: detect unnecessary inclusion of canonicalize.h
29252         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
29253
29254 2009-09-19  Eric Blake  <ebb9@byu.net>
29255
29256         canonicalize-lgpl: adjust clients to use correct header
29257         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29258         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
29259         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
29260         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
29261         * lib/progreloc.c (includes): Likewise.
29262
29263 2009-09-19  Jim Meyering  <meyering@redhat.com>
29264
29265         test-posixtm.c: correct a comment
29266         * tests/test-posixtm.c: Correct first-line comment.
29267         Spotted by Eric Blake.
29268
29269 2009-09-16  Jim Meyering  <meyering@redhat.com>
29270
29271         posixtm-tests: make T const-correct; add a test case
29272         * tests/test-posixtm.c (T): Declare const.
29273         Add a test for -(2^31+1).
29274         Remove useless can-succeed-only-in-2002 test.
29275
29276         posixtm-tests: adjust the sole failing test
29277         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
29278         expected output matches what mktime now produces.  Cross-checked via
29279         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
29280
29281         posixtm: move #ifdef'd tests into a new module
29282         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
29283         * tests/test-posixtm.c: ... this new file.
29284         * modules/posixtm-tests: New module.
29285
29286 2009-09-19  Eric Blake  <ebb9@byu.net>
29287
29288         openat: simplify use of at-func.c
29289         * lib/at-func.c (includes): Include prerequisites here, to
29290         simplify requirements on client files.
29291         * lib/openat-priv.h: Add double-inclusion guard.
29292         * lib/faccessat.c (includes): Simplify.
29293         * lib/fchmodat.c (includes): Likewise.
29294         * lib/fchownat.c (includes): Likewise.
29295         * lib/mkdirat.c (includes): Likewise.
29296         * lib/mkfifoat.c (includes): Likewise.
29297         * lib/symlinkat.c (includes): Likewise.
29298
29299         openat: allow return of fd 0
29300         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
29301         * modules/save-cwd (Depends-on): Replace fcntl-safer with
29302         unistd-safer.
29303         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
29304         <fcntl.h>; this module does not leak fds.
29305         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
29306         must be allowed to return 0, leaving openat_safer to add the
29307         safety.
29308         (openat_permissive): Avoid writing to just-opened fd 2 if
29309         restoring the current directory fails.
29310         * lib/openat-die.c (openat_restore_fail): Add comment.
29311         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
29312         (save_cwd): Guarantee safe fd, but without use of open_safer.
29313         * tests/test-openat.c: New test.
29314         * modules/openat-tests (Files, Makefile.am): Distribute and build
29315         new file.
29316
29317         relocatable-prog-wrapper: fix build
29318         * modules/relocatable-prog-wrapper (Files): Update name of
29319         canonicalize m4 file, broken on 2009-09-17.
29320         Reported by emad hajjar <aleppos@hotmail.com>.
29321
29322 2009-09-19  Bruno Haible  <bruno@clisp.org>
29323
29324         * lib/safe-alloc.h: Use the standard header with GPL copyright.
29325         * lib/safe-alloc.c: Likewise.
29326         Reported by Ian Beckwith <ianb@erislabs.net>.
29327
29328 2009-09-18  Bruno Haible  <bruno@clisp.org>
29329
29330         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
29331         Reported by <erobles@sensacd.com.mx>.
29332
29333 2009-09-17  Eric Blake  <ebb9@byu.net>
29334
29335         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
29336         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
29337         slashes when checking if last component is missing.
29338         * tests/test-canonicalize.c (main): Test this.
29339
29340         canonicalize, canonicalize-lgpl: honor // if distinct from /
29341         * modules/canonicalize (Files): Add double-slash-root.m4.
29342         * modules/canonicalize-lgpl (Files): Likewise.
29343         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
29344         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
29345         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
29346         fallback definition.
29347         (canonicalize_filename_mode): Use it to protect //.
29348         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
29349         (__realpath): Likewise.
29350         * tests/test-canonicalize.c (main): Test this.
29351         * tests/test-canonicalize-lgpl.c (main): Likewise.
29352         * modules/canonicalize-tests (Depends-on): Add same-inode.
29353         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29354
29355         canonicalize-lgpl: fix glibc bug with trailing slash
29356         * m4/canonicalize-lgpl.m4: Move contents...
29357         * m4/canonicalize.m4: ...here.
29358         (gl_CANONICALIZE_LGPL): Factor realpath check...
29359         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
29360         glibc 2.3.5 bug, fixed 2005-04-27.
29361         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
29362         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
29363         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
29364         * modules/canonicalize-lgpl (Files): Manage file rename.
29365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29366         * modules/stdlib (Makefile.am): Substitute witness.
29367         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
29368         is needed.
29369         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
29370         replacement is required.
29371         * lib/canonicalize.c (canonicalize_file_name): Likewise.
29372         * doc/glibc-functions/canonicalize_file_name.texi
29373         (canonicalize_file_name): Document this.
29374         * doc/posix-functions/realpath.texi (realpath): Likewise.
29375
29376         canonicalize-lgpl: reject non-directory with trailing slash
29377         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
29378         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
29379         catches failures in glibc 2.3.5.
29380         * tests/test-canonicalize.c (main): Likewise.
29381
29382         canonicalize-lgpl: use native realpath if it works
29383         * lib/canonicalize-lgpl.c (realpath): Guard with
29384         FUNC_REALPATH_WORKS.
29385         * lib/stdlib.in.h (realpath): Make declaration optional based on
29386         HAVE_REALPATH.
29387         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
29388         native realpath works.
29389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
29390         * modules/stdlib (Makefile.am): Substitute witness.
29391
29392         canonicalize, canonicalize-lgpl: use <stdlib.h>
29393         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
29394         (Include): Mention <stdlib.h>.
29395         (configure.ac): Mention functions we provide.
29396         * modules/canonicalize (configure.ac): Likewise.
29397         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
29398         realpath if canonicalize_file_name is missing.
29399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
29400         * modules/stdlib (Makefile.am): Substitute witnesses.
29401         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
29402         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
29403         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
29404         * NEWS: Document this.
29405         * doc/glibc-functions/canonicalize_file_name.texi
29406         (canonicalize_file_name): Likewise.
29407         * doc/posix-functions/realpath.texi (realpath): Likewise.
29408         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
29409
29410         test-canonicalize: consolidate into single C program
29411         * tests/test-canonicalize.sh: Delete; move setup into...
29412         * tests/test-canonicalize.c (main): ...the program, making it
29413         easier to run in debugger.  Add some tests.
29414         * modules/canonicalize-tests (Files): Remove unused file.
29415         (Depends-on): Add progname.
29416         (configure.ac, Makefile.am): Simplify.
29417
29418         test-canonicalize-lgpl: consolidate into single C program
29419         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
29420         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
29421         easier to run in debugger.  Add some tests.
29422         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
29423         (configure.ac, Makefile.am): Simplify.
29424
29425         canonicalize: avoid resolvepath
29426         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
29427         unnecessary checks.
29428         * lib/canonicalize.c (includes): Simplify.
29429         (canonicalize_file_name): Drop resolvepath implementation.
29430         * modules/canonicalize (Depends-on): Drop filenamecat.
29431
29432         canonicalize: don't lose errno
29433         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
29434         over calls to free.
29435
29436         canonicalize: simplify errno handling
29437         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
29438         assignment.
29439
29440         canonicalize, canonicalize-lgpl: update module dependencies
29441         * modules/canonicalize (Depends-on): Add extensions, lstat,
29442         pathmax, stdlib.
29443         (Files): Drop pathmax.h.
29444         (configure.ac): Adjust macro name.
29445         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
29446         lstat, stdlib, sys_stat.
29447         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
29448         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
29449         extensions.
29450         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
29451         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
29452         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
29453         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
29454         declaration, if available.
29455         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
29456         we can rely on the readlink module.
29457         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
29458         (includes): Use <unistd.h> unconditionally.
29459
29460 2009-09-17  Eric Blake  <ebb9@byu.net>
29461
29462         maint: make Include sections of modules consistent
29463         * modules/alloca: Use only header name; no need to list #include.
29464         * modules/alloca-opt: Likewise.
29465         * modules/arpa_inet: Likewise.
29466         * modules/canon-host: Likewise.
29467         * modules/configmake: Likewise.
29468         * modules/dirent: Likewise.
29469         * modules/eealloc: Likewise.
29470         * modules/environ: Likewise.
29471         * modules/fchdir: Likewise.
29472         * modules/fcntl: Likewise.
29473         * modules/fcntl-h: Likewise.
29474         * modules/gethrxtime: Likewise.
29475         * modules/gettime: Likewise.
29476         * modules/ignore-value: Likewise.
29477         * modules/inet_ntop: Likewise.
29478         * modules/inet_pton: Likewise.
29479         * modules/inttypes: Likewise.
29480         * modules/isnand-nolibm: Likewise.
29481         * modules/isnanf-nolibm: Likewise.
29482         * modules/mbchar: Likewise.
29483         * modules/mbfile: Likewise.
29484         * modules/mbiter: Likewise.
29485         * modules/mbuiter: Likewise.
29486         * modules/netdb: Likewise.
29487         * modules/netinet_in: Likewise.
29488         * modules/nproc: Likewise.
29489         * modules/pagealign_alloc: Likewise.
29490         * modules/poll: Likewise.
29491         * modules/printf-frexp: Likewise.
29492         * modules/pthread: Likewise.
29493         * modules/putenv: Likewise.
29494         * modules/random_r: Likewise.
29495         * modules/relocatable-prog: Likewise.
29496         * modules/search: Likewise.
29497         * modules/select: Likewise.
29498         * modules/selinux-h: Likewise.
29499         * modules/settime: Likewise.
29500         * modules/signal: Likewise.
29501         * modules/size_max: Likewise.
29502         * modules/socklen: Likewise.
29503         * modules/ssize_t: Likewise.
29504         * modules/stdarg: Likewise.
29505         * modules/stdbool: Likewise.
29506         * modules/stddef: Likewise.
29507         * modules/stdint: Likewise.
29508         * modules/stdio: Likewise.
29509         * modules/stdlib: Likewise.
29510         * modules/string: Likewise.
29511         * modules/strings: Likewise.
29512         * modules/sys_file: Likewise.
29513         * modules/sys_ioctl: Likewise.
29514         * modules/sys_select: Likewise.
29515         * modules/sys_socket: Likewise.
29516         * modules/sys_stat: Likewise.
29517         * modules/sys_time: Likewise.
29518         * modules/sys_times: Likewise.
29519         * modules/sys_utsname: Likewise.
29520         * modules/sys_wait: Likewise.
29521         * modules/sysexits: Likewise.
29522         * modules/time: Likewise.
29523         * modules/times: Likewise.
29524         * modules/tmpfile: Likewise.
29525         * modules/trim: Likewise.
29526         * modules/unistd: Likewise.
29527         * modules/wchar: Likewise.
29528         * modules/wctype: Likewise.
29529
29530 2009-09-17  Bruno Haible  <bruno@clisp.org>
29531
29532         Make getdate.y compile on QNX and NetBSD 5 / i386.
29533         * m4/getdate.m4 (gl_GETDATE): Conditionally define
29534         TIME_T_FITS_IN_LONG_INT.
29535         * lib/getdate.y (long_time_t): New type.
29536         (relative_time): Change type of 'seconds' field to long_time_t.
29537         (get_date): Update types of local variables. Check against overflow
29538         during conversion from long_time_t to time_t.
29539         Reported by Matt Kraai <kraai@ftbfs.org>
29540         and Hasso Tepper <hasso@netbsd.org>.
29541
29542 2009-09-17  Bruno Haible  <bruno@clisp.org>
29543
29544         * modules/COPYING: Update copyright years.
29545         * modules/README: Likeiwse.
29546         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
29547         Reported by Ian Beckwith <ianb@erislabs.net>.
29548
29549 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29550
29551         * users.txt: Update references for gnuit package.
29552
29553 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
29554
29555         * m4/getdelim.m4: Fix typo in copyright line.
29556
29557 2009-09-17  Bruno Haible  <bruno@clisp.org>
29558
29559         * lib/atoll.c: Use the standard header with GPL copyright.
29560         * lib/argz.in.h: Likewise.
29561         * lib/glob.c: Likewise.
29562         * lib/glob-libc.h: Likewise.
29563         * lib/random_r.c: Likewise.
29564         * lib/siglist.h: Likewise.
29565         * lib/strsignal.c: Likewise.
29566         Reported by Ian Beckwith <ianb@erislabs.net>.
29567
29568 2009-09-17  Eric Blake  <ebb9@byu.net>
29569
29570         rmdir: ensure correct dependency order
29571         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
29572
29573 2009-09-17  Bruno Haible  <bruno@clisp.org>
29574
29575         Disable assertion that fails on NetBSD 5 / i386.
29576         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
29577         Reported by Sam Steingold <sds@gnu.org>
29578         and Hasso Tepper <hasso@netbsd.org>.
29579
29580 2009-09-16  Eric Blake  <ebb9@byu.net>
29581
29582         unlinkdir: port to mingw
29583         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
29584         on which no one can unlink a directory.
29585
29586         stdlib: sort witness names
29587         * modules/stdlib (Makefile.am): Sort replacements.
29588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
29589         * lib/stdlib.in.h: Likewise.
29590
29591         parse-duration-tests: avoid link failure
29592         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
29593         LIBINTL.
29594         Reported by Tom G. Christensen.
29595
29596         openat-tests: ensure unlinkat behaves like rmdir
29597         * tests/test-rmdir.c (main): Factor guts...
29598         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
29599         * modules/rmdir-tests (Files): Ship new file.
29600         * modules/openat-tests: New test.
29601         * tests/test-unlinkat.c: Likewise.
29602
29603         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
29604         * modules/rmdir-errno (Status, Notice): Now obsolete.
29605
29606         rmdir: work around cygwin 1.5.x and mingw bugs
29607         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
29608         * lib/rmdir.c (rmdir): Work around it.
29609         * modules/rmdir (Status, Notice): No longer obsolete.
29610         (Files): Add dos.m4.
29611         (Depends-on): Add unistd.
29612         (configure.ac): Set witnesses.
29613         (License): Relax to LGPLv2+.
29614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
29615         * modules/unistd (Makefile.am): Substitute witnesses.
29616         * lib/unistd.in.h (rmdir): Declare replacement.
29617         * doc/posix-functions/rmdir.texi (rmdir): Document this.
29618         * modules/rmdir-tests: New tests.
29619         * tests/test-rmdir.c: Likewise.
29620
29621 2009-09-15  Eric Blake  <ebb9@byu.net>
29622
29623         fchdir: improve use of replacement functions
29624         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
29625         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
29626         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
29627         REPLACE_CLOSEDIR.
29628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
29629         * modules/sys_stat (Makefile.am): Substitute correct witness.
29630         * modules/dirent (Makefile.am): Likewise.
29631         * modules/unistd (Makefile.am): Likewise.
29632         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
29633         * lib/unistd.in.h (dup): Likewise.
29634         * lib/sys_stat.in.h (fstat): Likewise.
29635
29636         maint: ignore gnulib-tool temp files
29637         * .gitignore: Ignore files created during gnulib-tool --test.
29638
29639 2009-09-13  Jim Meyering  <meyering@redhat.com>
29640
29641         posixtm: don't reject a time that specify "60" as the number of seconds
29642         * lib/posixtm.c (posixtime): The code to reject invalid dates
29643         would also reject a time specified with the .60 suffix.
29644         But POSIX allows that, in order to accommodate leap seconds.
29645         So don't reject it.
29646         (main): Adjust tests accordingly.
29647         * modules/posixtm (Depends-on): Add stpcpy.
29648
29649 2009-09-11  Jim Meyering  <meyering@redhat.com>
29650
29651         announce-gen: include [$release_type] in emitted Subject:
29652         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
29653         e.g., [stable] in the emitted Subject: line.
29654
29655 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29656
29657         Remove obsolete macros from several modules.
29658         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
29659         obsolete Autoconf macros with their modern counterparts.
29660         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
29661         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
29662         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
29663         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
29664         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
29665         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29667         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29668         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29669         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
29670         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29671         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29672         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
29673         * m4/sockets.m4 (gl_SOCKETS): Likewise.
29674         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
29675         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
29676         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29677         * m4/time_r.m4 (gl_TIME_R): Likewise.
29678         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29679         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
29680         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29681
29682         Fix copyright header in build-aux scripts.
29683         * build-aux/git-version-gen: Fix copyright header to match GPLv3
29684         recommendation.
29685         * build-aux/ncftpput-ftp: Likewise.
29686         * build-aux/update-copyright: Likewise.
29687
29688 2009-09-09  Eric Blake  <ebb9@byu.net>
29689
29690         test-link: allow Linux choice of errno
29691         * tests/test-link.c (main): Relax test for alternate error.
29692
29693         strndup: fix improper m4 caching
29694         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
29695         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
29696         (gl_PREREQ_STRNDUP): Delete.
29697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
29698         * modules/string (Makefile.am): Substitute it.
29699         * lib/string.in.h (strndup): Modernize prototype.
29700
29701         getcwd: port to mingw
29702         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
29703         different from the POSIX assumptions made throughout the getcwd
29704         module; fortunately, the mingw getcwd does not need replacement.
29705         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
29706         * modules/getcwd-tests: New test.
29707         * tests/test-getcwd.c: Likewise.
29708
29709         link: fix platform bugs
29710         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
29711         * lib/link.c (link): Work around them.  Fix related mingw bug.
29712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
29713         * modules/unistd (Makefile.am): Substitute it.
29714         * lib/unistd.in.h (link): Declare replacement.
29715         * doc/posix-functions/link.texi (link): Document this.
29716         * modules/link (Depends-on): Add strdup-posix, sys_stat.
29717
29718         test-link: consolidate into single C program, test more cases
29719         * tests/test-link.sh: Delete.
29720         * tests/test-link.c: Test more error conditions.  Exposes bugs on
29721         at least Cygwin and Solaris.
29722         * modules/link-tests (Files): Remove unused file.
29723         (Depends-on): Add errno, sys_stat.
29724         (Makefile.am): Simplify.
29725
29726 2009-09-08  Bruno Haible  <bruno@clisp.org>
29727
29728         Work around towlower, towupper bug on mingw.
29729         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
29730         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
29731         * doc/posix-functions/towlower.texi: Mention the mingw bug.
29732         * doc/posix-functions/towupper.texi: Likewise.
29733         Reported by Eric Blake.
29734
29735 2009-09-08  Jim Meyering  <meyering@redhat.com>
29736
29737         build: don't try to run autoheader if we don't use it
29738         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
29739         is not used in configure.ac.
29740
29741 2009-09-08  Eric Blake  <ebb9@byu.net>
29742
29743         euidaccess: fix compilation error
29744         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
29745
29746         rawmemchr: relax license
29747         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
29748         okay.
29749         Reported by Jim Meyering.
29750
29751         mkfifoat: new module
29752         * modules/mkfifoat: New file.
29753         * lib/mkfifoat.c: Likewise.
29754         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
29755         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29756         * modules/sys_stat (Makefile.am): Use them.
29757         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
29758         * MODULES.html.sh (File system functions): Mention module.
29759         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29760         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29761         * modules/mkfifoat-tests: New test.
29762         * tests/test-mkfifoat.c: Likewise.
29763
29764         strchrnul: relax license
29765         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
29766         okay.
29767         Reported by Jim Meyering.
29768
29769 2009-09-08  Eric Blake  <ebb9@byu.net>
29770
29771         fstatat: fix compilation on Solaris
29772         * lib/fstatat.c (includes): Add fcntl.h.
29773         Reported by Pádraig Brady.
29774
29775 2009-09-07  Eric Blake  <ebb9@byu.net>
29776
29777         rename: modernize replacement
29778         * modules/rename (Depends-on): Add stdio.
29779         (configure.ac): Declare witness.
29780         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
29781         stdio take care of replacement.
29782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
29783         * modules/stdio (Makefile.am): Substitute them.
29784         * lib/stdio.in.h (rename): Declare replacement.
29785         * lib/rename.c (includes): Allow cross-compilation to non-windows
29786         machines.
29787         * doc/posix-functions/rename.texi (rename): Improve
29788         documentation.
29789
29790         stdio: sort witness names
29791         * modules/stdio (Makefile.am): Sort replacements.
29792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29793         * lib/stdio.in.h: Likewise.
29794
29795         getcwd: minor cleanups
29796         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
29797         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
29798
29799         openat: provide more convenience names
29800         * modules/faccessat (configure.ac): Add C witness.
29801         * lib/unistd.in.h (readlinkat): Fix typo.
29802         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
29803         convenience wrappers.
29804         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
29805         wrappers in syntax checks.
29806
29807 2009-09-06  Eric Blake  <ebb9@byu.net>
29808
29809         doc: fix comments in recent patches
29810         * lib/faccessat.c: Mention correct function.
29811         * lib/fchmodat.c: Likewise.
29812         * lib/fchownat.c: Likewise.
29813         * lib/symlinkat.c: Likewise.
29814         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
29815         constants.
29816
29817         faccessat, symlinkat: continue cleanup of previous patch
29818         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
29819         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
29820         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
29821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
29822         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
29823         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
29824         set.
29825
29826 2009-09-06  Bruno Haible  <bruno@clisp.org>
29827
29828         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
29829         (fstatat): Declare if GNULIB_FSTATAT is set.
29830         (mkdirat): Declare if GNULIB_MKDIRAT is set.
29831         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
29832         (unlinkat): Declare if GNULIB_UNLINKAT is set.
29833         * modules/fcntl-h (Files): Remove m4/openat.m4.
29834         * modules/sys_stat (Files): Remove m4/openat.m4.
29835         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
29836         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
29837         * modules/unistd (Files): Remove m4/openat.m4.
29838         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
29839         GNULIB_OPENAT.
29840         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
29841         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
29842         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
29843         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
29844         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
29845         gl_OPENAT_DEFAULTS.
29846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
29847         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
29848         Don't require gl_OPENAT_DEFAULTS.
29849         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
29850         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
29851         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
29852         (gl_OPENAT_DEFAULTS): Remove macro.
29853
29854 2009-09-06  Bruno Haible  <bruno@clisp.org>
29855
29856         * modules/openat (configure.ac): Remove unneeded witness.
29857
29858 2009-09-06  Bruno Haible  <bruno@clisp.org>
29859
29860         Set errno to ENOSYS when a function is entirely unsupported.
29861         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
29862         EOPNOTSUPP.
29863         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29864         * modules/chown (Depends-on): Remove errno.
29865
29866 2009-09-06  Bruno Haible  <bruno@clisp.org>
29867
29868         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
29869
29870 2009-09-06  Bruno Haible  <bruno@clisp.org>
29871
29872         * lib/sys_stat.in.h: Fix preprocessor command indentation.
29873
29874 2009-09-06  Ben Pfaff  <blp@gnu.org>
29875             Bruno Haible  <bruno@clisp.org>
29876
29877         Work around a glibc bug in strtok_r.
29878         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
29879         Undefine if UNDEFINE_STRTOK_R is set.
29880         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
29881         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29882         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
29883         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
29884         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
29885         UNDEFINE_STRTOK_R.
29886         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
29887
29888 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29889
29890         exclude: minor fix
29891         * lib/exclude.c: Include wctype.h
29892
29893 2009-09-06  Akim Demaille  <demaille@gostai.com>
29894
29895         bootstrap: improve error message
29896         * build-aux/bootstrap (find_tool): Upon failure, report the list
29897         of candidates.
29898         Honor the initial value of the envvar.
29899
29900 2009-09-05  Eric Blake  <ebb9@byu.net>
29901
29902         symlinkat: new module
29903         * modules/symlinkat: New file.
29904         * lib/symlinkat.c: Likewise.
29905         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
29906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29907         * modules/unistd (Makefile.am): Use them.
29908         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
29909         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
29910         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
29911         * MODULES.html.sh (File system functions): Mention module.
29912         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29913         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29914         * modules/symlinkat-tests: New test.
29915         * tests/test-symlinkat.c: Likewise.
29916
29917         test-openat-safer: add more checks
29918         * tests/test-openat-safer.c (main): Check more code paths.
29919
29920 2009-09-05  Jim Meyering  <meyering@redhat.com>
29921
29922         syntax-check: detect unnecessary inclusion of openat.h
29923         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
29924
29925 2009-09-05  Bruno Haible  <bruno@clisp.org>
29926
29927         Support towlower, towupper.
29928         * doc/posix-functions/towlower.texi: Mention module wctype.
29929         * doc/posix-functions/towupper.texi: Likewise.
29930         * lib/wctype.in.h (towlower, towupper): New functions.
29931         * tests/test-wctype.c: Include stdio.h, stdlib.h.
29932         (ASSERT): New macro.
29933         (e): New variable.
29934         (main): Test also towlower, towupper. Test WEOF argument.
29935         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29936
29937 2009-09-05  Bruno Haible  <bruno@clisp.org>
29938
29939         Fix conversion behaviour when the input is invalid.
29940         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
29941         mark occurring in first pass of indirect conversion.
29942         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
29943         input.
29944         Found by clang's static analyzer.
29945
29946 2009-09-05  Bruno Haible  <bruno@clisp.org>
29947
29948         * tests/test-striconveh.c (main): Test indirect conversion on platforms
29949         where direct conversion is possible.
29950
29951 2009-09-04  Eric Blake  <ebb9@byu.net>
29952
29953         openat: fail with ENOENT on empty name
29954         * lib/openat-proc.c (openat_proc_name): Special-case the empty
29955         buffer.
29956
29957         link-follow: fix logic bug in prior patch
29958         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
29959         reversed sense of yes and no in prior patch.  Avoid confusing
29960         compilation failure with desired semantics.
29961
29962         link-follow: accomodate mingw and cross-compilation
29963         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
29964         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
29965         cross-compilation results to -1, to make linkat easier to
29966         implement when cross-compiling.  Trivially support mingw.
29967         * modules/link-follow (configure.ac): Call new name.
29968         * NEWS: Mention this.
29969
29970 2009-09-03  Eric Blake  <ebb9@byu.net>
29971
29972         faccessat: compile replacement
29973         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
29974         needed.
29975
29976         fts: fix compilation error
29977         * lib/fts.c (includes): Re-add "openat.h", for
29978         openat_needs_fchdir.
29979
29980         faccessat: new module
29981         * modules/faccessat: New file.
29982         * lib/faccessat.c: Likewise.
29983         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
29984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29985         * modules/unistd (Makefile.am): Use it.
29986         * lib/unistd.in.h (faccessat): Declare it.
29987         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
29988         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
29989         * MODULES.html.sh (File system functions): Mention it.
29990         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
29991         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
29992
29993         euidaccess: prefer POSIX over non-standard implementation
29994         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
29995         * lib/euidaccess.c (euidaccess): Use it if available.
29996
29997         openat: make template easier to use
29998         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
29999         AT_FUNC_F2 to be undefined.
30000         (VALIDATE_FLAG): New macro; use it to reject bad flags.
30001         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
30002         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
30003         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
30004         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
30005         Likewise.
30006         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
30007         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
30008         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
30009         Likewise.
30010
30011         openat: declare in POSIX headers
30012         * NEWS: Mention this.
30013         * modules/openat (configure.ac): Declare witnesses.
30014         (Depends-on): Add fcntl-h, sys_stat, unistd.
30015         (Include): Mention correct headers.
30016         * modules/fcntl-h (Depends-on): Add link-warning.
30017         (Files): Add openat.m4.
30018         (Makefile.am): Substitute witnesses.
30019         * modules/sys_stat (Files, Makefile.am): Likewise.
30020         * modules/unistd (Files, Makefile.am): Likewise.
30021         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
30022         (gl_OPENAT_DEFAULTS): New macro.
30023         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
30024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
30025         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
30026         (SYS_STAT_H): Remove unused variable.
30027         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
30028         * lib/fcntl--.h (includes): Remove unneeded header.
30029         * lib/openat-safer.c (includes): Likewise.
30030         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
30031         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
30032         appropriate headers.
30033         (__OPENAT_PREFIX): Delete.
30034         * lib/fcntl.in.h (openat): Provide declaration.
30035         (AT_FDCWD): Fix Solaris bug.
30036         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
30037         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
30038         * lib/fchmodat.c (includes):  Adjust to find declaration.
30039         * lib/fchownat.c (includes): Likewise.
30040         * lib/mkdirat.c (includes): Likewise.
30041         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
30042         still visible.
30043
30044 2009-09-02  Eric Blake  <ebb9@byu.net>
30045
30046         errno: use consistently
30047         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
30048         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
30049         * lib/canonicalize.c (ELOOP): Likewise.
30050         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
30051         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
30052         * lib/lchown.c (EOPNOTSUPP): Likewise.
30053         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
30054         * lib/savewd.c (ESTALE): Likewise.
30055         * lib/settime.c (ENOSYS): Likewise.
30056         * lib/utimens.c (ENOSYS): Likewise.
30057         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
30058         * lib/chdir-safer.c (ELOOP): Likewise.
30059         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
30060         * modules/c-stack (Depends-on): Add errno.
30061         * modules/canonicalize (Depends-on): Likewise.
30062         * modules/chdir-safer (Depends-on): Likewise.
30063         * modules/fdopendir (Depends-on): Likewise.
30064         * modules/inet_ntop (Depends-on): Likewise.
30065         * modules/inet_pton (Depends-on): Likewise.
30066         * modules/lchown (Depends-on): Likewise.
30067         * modules/openat (Depends-on): Likewise.
30068         * modules/savewd (Depends-on): Likewise.
30069         * modules/settime (Depends-on): Likewise.
30070         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
30071
30072         fts: avoid leaking fds
30073         * modules/fts (Depends-on): Add cloexec.
30074         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
30075         flag.
30076
30077         fts: make directory fds more robust
30078         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
30079         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
30080
30081         backupfile, chdir-long, fts, savedir: make safer
30082         * lib/backupfile.c (includes): Use "dirent--.h", since
30083         numbered_backup can write to stderr during readdir.
30084         * lib/savedir.c (includes): Likewise.
30085         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
30086         emulation can write to stderr on failure.
30087         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
30088         * lib/getcwd.c: Document why opendir_safer is unused.
30089         * lib/glob.c: Likewise.
30090         * lib/scandir.c: Likewise.
30091         * lib/openat-proc.c: Likewise, for open_safer.
30092         * modules/backupfile (Depends-on): Add dirent-safer.
30093         * modules/savedir (Depends-on): Likewise.
30094         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
30095         * modules/chdir-long (Depends-on): Add openat-safer.
30096
30097         openat-safer: new module
30098         * modules/openat-safer: New file.
30099         * lib/openat-safer.c: Likewise.
30100         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
30101         * lib/fcntl-safer.h (openat_safer): Declare.
30102         * lib/fcntl--.h (openat): Override.
30103         * MODULES.html.sh (File descriptor based I/O): Mention it.
30104         * lib/openat.h: Add double-inclusion guards.
30105         * lib/openat.c (includes): Only include "fcntl-safer.h", not
30106         "fcntl--.h", so we can implement openat.
30107         * modules/openat-safer-tests: New test.
30108         * tests/test-openat-safer.c: New file.
30109
30110         dirent-safer: new module
30111         * modules/dirent-safer: New file.
30112         * lib/dirent--.h: Likewise.
30113         * lib/dirent-safer.h: Likewise.
30114         * lib/opendir-safer.c: Likewise.
30115         * m4/dirent-safer.m4: Likewise.
30116         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
30117         * modules/dirent-safer-tests: New test.
30118         * tests/test-dirent-safer.c: New file.
30119         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
30120
30121         fdopendir: optimize on mingw
30122         * lib/unistd.in.h (_gl_directory_name): New prototype.
30123         * lib/fchdir.c (_gl_directory_name): Implement it.
30124         (fchdir): Use it to simplify implementation.
30125         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
30126         fchdir, when available, to avoid calling [f]chdir().
30127
30128         fdopendir: split into its own module
30129         * lib/openat.c (fdopendir): Move...
30130         * lib/fdopendir.c: ...into new file.
30131         * modules/fdopendir: New module.
30132         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
30133         * modules/openat (Depends-on): Add fdopendir.
30134         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
30135         fdopendir here.
30136         * modules/savedir (Depends-on): Only need fdopendir, not full
30137         openat.
30138         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
30139         * lib/openat.h (fdopendir): Drop prototype.
30140         * lib/dirent.in.h (fdopendir): Provide prototype.
30141         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
30142         * modules/dirent (Makefile.am): Substitute them.
30143         * MODULES.html.sh (File system functions): Mention it.
30144         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
30145         * modules/fdopendir-tests: New file.
30146         * tests/test-fdopendir.c: Likewise.
30147
30148         fchdir: use more consistent macro convention
30149         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
30150         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
30151         REPLACE_FCHDIR, rather than relying on config.h macros.
30152         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
30153         inside a single make-time REPLACE_FCHDIR block, rather than using
30154         the config.h FCHDIR_REPLACEMENT.
30155         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
30156         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
30157         Manage fstat replacement.
30158         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
30159         REPLACE_FCHDIR.
30160         * modules/sys_stat (Files): Add m4/unistd_h.m4.
30161         (Makefile.am): Substitute REPLACE_FCHDIR.
30162         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
30163         FCHDIR_REPLACEMENT.
30164         * lib/dup-safer.c (dup_safer): Likewise.
30165         * lib/dup2.c (rpl_dup2): Likewise.
30166         * lib/dup3.c (rpl_dup3): Likewise.
30167         * lib/open.c (rpl_open): Likewise.
30168
30169         fchdir: simplify error handling, and support dup3
30170         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
30171         stdbool, malloc-posix, realloc-posix.
30172         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
30173         (ensure_dirs_slot): Return false on allocation failure.
30174         (rpl_dup2): Delete.
30175         (_gl_register_dup): New function.
30176         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
30177         (_gl_register_fd): Close fd on allocation failure.
30178         * lib/fcntl.in.h (_gl_register_fd): Update signature.
30179         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
30180         prototype.
30181         (rpl_dup2_fchdir): Delete prototype.
30182         * lib/open.c (open): Update caller.
30183         * lib/dup2.c (dup2): Track fchdir metadata.
30184         * lib/dup3.c (dup3): Likewise.
30185         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
30186         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
30187
30188 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30189
30190         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
30191         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
30192         don't pass arguments to AC_OUTPUT.
30193
30194 2009-09-02  Bruno Haible  <bruno@clisp.org>
30195
30196         * modules/mkdtemp (License): Relicense under LGPLv2+.
30197         Reported by Paolo Bonzini.
30198
30199 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30200
30201         Replace uses of obsolete autoconf macros in Jim's modules.
30202         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
30203         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
30204         can evoke a warning from autoconf when run with -Wobsolete
30205         enabled.  They were declared obsolete for good reasons (see
30206         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
30207         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
30208         should not continue using the deprecated macros.
30209         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
30210         obsolete Autoconf macros with modern counterparts.
30211         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30212         * m4/dos.m4 (gl_AC_DOS): Likewise.
30213         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
30214         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
30215         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
30216         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30217         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
30218         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
30219         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
30220         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
30221         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30222         Likewise.
30223         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
30224         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
30225         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
30226         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
30227         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30228         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
30229
30230 2009-09-01  Eric Blake  <ebb9@byu.net>
30231
30232         fchdir: fix off-by-one bug in previous patch
30233         * lib/fchdir.c (rpl_fstat): Use correct bounds.
30234         (_gl_unregister_fd): Delete useless if.
30235
30236 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
30237
30238         maint.mk: sort the list of syntax-check rules
30239         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
30240         easier to get a sense of progress when the rules are run sequentially
30241         and take a long time.
30242
30243 2009-09-01  Simon Josefsson  <simon@josefsson.org>
30244
30245         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
30246         * modules/netinet_in: Likewise.
30247         * modules/sys_file: Likewise.
30248         * modules/sys_ioctl: Likewise.
30249         * modules/sys_select: Likewise.
30250         * modules/sys_socket: Likewise.
30251         * modules/sys_stat: Likewise.
30252         * modules/sys_time: Likewise.
30253         * modules/sys_times: Likewise.
30254         * modules/sys_utsname: Likewise.
30255         * modules/sys_wait: Likewise.
30256
30257 2009-09-01  Jim Meyering  <meyering@redhat.com>
30258
30259         fts: help ensure that return values are not ignored
30260         * lib/fts_.h (__GNUC_PREREQ): Define.
30261         (__attribute_warn_unused_result__): Define.
30262         (fts_children, fts_close, fts_open, fts_read): Declare with
30263         __attribute_warn_unused_result__.
30264
30265         fts: fts_close now fails also when closing a dir file descriptor fails
30266         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
30267         and propagate to caller, along with errno.
30268
30269         announce-gen: correct formatting in --help output
30270         * build-aux/announce-gen (usage): Move the one-line description in
30271         --help output "up", to where it belongs, just after Usage:.
30272
30273 2009-08-31  Eric Blake  <ebb9@byu.net>
30274
30275         fchdir: port to mingw
30276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
30277         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
30278         opened, then use a substitute.
30279         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
30280         replacement.
30281         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
30282         (_gl_register_fd): No need to check stat if open already filters
30283         all directories.
30284         (fchdir): Fix error condition to match POSIX.
30285         * modules/fchdir (Depends-on): Add sys_stat.
30286         * doc/posix-functions/open.texi (open): Document the limitation.
30287         * modules/fchdir-tests: New file.
30288         * tests/test-fchdir.c: Likewise.
30289
30290         canonicalize: allow cross-testing from cygwin to mingw
30291         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
30292         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
30293         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
30294         Likewise.
30295         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
30296         target does not support symlinks.
30297         * tests/test-canonicalize-lgpl.sh: Likewise.
30298
30299         chown: avoid compilation warning on mingw
30300         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
30301         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
30302         mingw.
30303         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
30304         * modules/chown (Depends-on): Add errno.
30305
30306 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30307
30308         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
30309         command.
30310
30311 2009-08-31  Jim Meyering  <meyering@redhat.com>
30312
30313         canonicalize: remove useless initialization
30314         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
30315         initialization of local, "end".
30316
30317 2009-08-30  Bruno Haible  <bruno@clisp.org>
30318
30319         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
30320         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
30321         ENOSYS.
30322
30323 2009-08-30  Bruno Haible  <bruno@clisp.org>
30324
30325         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
30326         /usr/xpg4/bin/tr when it exists.
30327         * tests/test-pipe-filter-gi1.sh: Likewise.
30328
30329 2009-08-30  Bruno Haible  <bruno@clisp.org>
30330
30331         Work around deficient /usr/bin/id program on Solaris.
30332         * tests/test-file-has-acl.sh (ID): New variable.
30333         * tests/test-set-mode-acl.sh (ID): Likewise.
30334         * tests/test-copy-acl.sh (ID): Likewise.
30335         * tests/test-copy-file.sh (ID): Likewise.
30336
30337 2009-08-30  Bruno Haible  <bruno@clisp.org>
30338
30339         New module 'xstriconveh'.
30340         * lib/xstriconveh.h: New file.
30341         * lib/xstriconveh.c: New file.
30342         * modules/xstriconveh: New file.
30343
30344 2009-08-30  Bruno Haible  <bruno@clisp.org>
30345
30346         Make it easier to use mem_cd_iconveh.
30347         * lib/striconveh.h (iconveh_t): New type.
30348         (iconveh_open, iconveh_close): New declarations.
30349         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30350         with a single 'const iconveh_t *' argument.
30351         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
30352         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
30353         with a single 'const iconveh_t *' argument.
30354         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
30355         * tests/test-striconveh.c (main): Update.
30356         * NEWS: Mention the change.
30357
30358 2009-08-30  Bruno Haible  <bruno@clisp.org>
30359
30360         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
30361         problem.
30362
30363 2009-08-30  Bruno Haible  <bruno@clisp.org>
30364
30365         Work around iconv_open problem on Solaris.
30366         * lib/iconv_open-solaris.gperf: New file.
30367         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
30368         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
30369         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
30370         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
30371         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
30372         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
30373
30374 2009-08-29  Jim Meyering  <meyering@redhat.com>
30375
30376         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
30377         * top/maint.mk (cvs-check): Remove target; it was just an alias
30378         to the better-named vc-diff-check.
30379         (maintainer-distcheck): Remove rule.  It was used only from
30380         the (alpha/beta/major) target, and all of its commands but one
30381         were coreutils-specific.
30382         (vc-dist): Remove rule.
30383         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
30384         Run vc-diff-check, not vc-dist.
30385         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
30386
30387 2009-08-27  Bruno Haible  <bruno@clisp.org>
30388
30389         * tests/test-bitrotate.c (main): Remove test that uses a shift count
30390         of 0.
30391
30392 2009-08-27  Bruno Haible  <bruno@clisp.org>
30393
30394         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
30395         compilers.
30396         * doc/func.texi: Document the SunPRO C bug.
30397
30398 2009-08-27  Bruno Haible  <bruno@clisp.org>
30399
30400         Fix link error on Solaris.
30401         * tests/test-parse-duration.c (xstrdup): Remove function.
30402
30403 2009-08-26  Pádraig Brady  <P@draigbrady.com>
30404
30405         ignore-value: handle pointer types, too
30406         * lib/ignore-value.h (__attribute__): Remove definition.
30407         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
30408         of a more concise and more-often effective "(void) i" statement.
30409         (ignore_ptr): New function to suppress warnings from functions that
30410         return pointers, and to make it explicit that one function doesn't
30411         handle all cases.
30412
30413 2009-08-25  Bruno Haible  <bruno@clisp.org>
30414
30415         dup2: work around a Linux bug.
30416         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
30417         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
30418         * doc/posix-functions/dup2.texi: Mention the Linux bug.
30419         Reported by Simon Josefsson.
30420
30421 2009-08-25  Jim Meyering  <meyering@redhat.com>
30422
30423         libguestfs uses gnulib
30424         * users.txt: Add libguestfs.
30425
30426 2009-08-24  Eric Blake  <ebb9@byu.net>
30427
30428         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
30429         * lib/pipe2.c (includes): Add binary-io.h.
30430         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
30431
30432 2009-08-24  Bruno Haible  <bruno@clisp.org>
30433
30434         Tolerate declared but missing accept4 syscall.
30435         * lib/accept4.c (accept4): Invoke original accept4 function first, if
30436         available.
30437         * lib/sys_socket.in.h (accept4): If the function is already present,
30438         override it.
30439         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
30440         * modules/accept4 (Makefile.am): Compile accept4.c always.
30441         Reported by Paolo Bonzini and Eric Blake.
30442
30443 2009-08-23  Bruno Haible  <bruno@clisp.org>
30444
30445         New module 'accept4'.
30446         * lib/sys_socket.in.h (accept4): New declaration.
30447         * lib/accept4.c: New file.
30448         * m4/accept4.m4: New file.
30449         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
30450         GNULIB_ACCEPT4, HAVE_ACCEPT4.
30451         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
30452         HAVE_ACCEPT4.
30453         * modules/accept4: New file.
30454         * doc/glibc-functions/accept4.texi: Mention the new module.
30455
30456 2009-08-24  Jim Meyering  <meyering@redhat.com>
30457
30458         progname: also set global program_invocation_name, when possible
30459         Before this change, a libtool-enabled program that calls glibc's
30460         error function would report the program name as
30461         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
30462         * modules/progname (configure.ac): Check for a declaration of
30463         program_invocation_name.
30464         * lib/progname.c:  Include <errno.h>.
30465         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
30466         Set program_invocation_name.
30467
30468 2009-08-23  Bruno Haible  <bruno@clisp.org>
30469
30470         * lib/dup3.c: Include <string.h>.
30471
30472 2009-08-23  Bruno Haible  <bruno@clisp.org>
30473
30474         * lib/dup3.c (dup3): Test only once whether the system actually exists.
30475         * lib/pipe2.c (pipe2): Likewise.
30476         Suggested by Eric Blake.
30477
30478 2009-08-23  Bruno Haible  <bruno@clisp.org>
30479
30480         Tolerate declared but missing dup3 syscall.
30481         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
30482         * lib/unistd.in.h (dup3): If the function is already present,
30483         override it.
30484         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
30485         * modules/dup3 (Makefile.am): Compile dup3.c always.
30486         Reported by Paolo Bonzini.
30487
30488 2009-08-23  Bruno Haible  <bruno@clisp.org>
30489
30490         Tolerate declared but missing pipe2 syscall.
30491         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
30492         available.
30493         * lib/unistd.in.h (pipe2): If the function is already present,
30494         override it.
30495         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
30496         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
30497         Reported by Paolo Bonzini.
30498
30499 2009-08-23  Bruno Haible  <bruno@clisp.org>
30500
30501         * lib/pipe2.c (pipe2): Move #ifs inside function.
30502
30503 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30504
30505         quotearg: document limitations of quote_these_too
30506         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
30507         those limitations are created.
30508         * lib/quotearg.h (set_char_quoting): Document that digits and
30509         letters that are special after backslash are not permitted.
30510         (quotearg_char): Cross-reference set_char_quoting documentation.
30511
30512 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
30513
30514         quotearg: implement custom_quoting_style
30515         * lib/quotearg.c: (struct quoting_options): Add left_quote and
30516         right_quote fields.
30517         (set_custom_quoting): New public function.
30518         (quotearg_buffer_restyled): Add left_quote and right_quote
30519         arguments, handle them very much like locale quoting, and update
30520         all uses.
30521         (quotearg_n_custom): New public function.
30522         (quotearg_n_custom_mem): New public function.
30523         (quotearg_custom): New public function.
30524         (quotearg_custom_mem): New public function.
30525         * lib/quotearg.h: Prototype and document new public functions.
30526         (enum quoting_style): For escape_quoting_style and
30527         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
30528         ignored even though they're otherwise like c_quoting_style.
30529         Add custom_quoting_style member and document with comparison to
30530         clocale_quoting_style.
30531         * tests/test-quotearg.c (custom_quotes): New array.
30532         (custom_results): New array.
30533         (main): Extend to test custom quoting.
30534
30535 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30536
30537         quotearg: fix right quote escaping when it's in quote_these_too
30538         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
30539         quote, be sure to prepend only one backslash.
30540         * tests/test-quotearg.c (use_quote_double_quotes): New function.
30541         (main): Test it.
30542
30543 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
30544
30545         quotearg-tests: test escaping of embedded locale quotes
30546         * tests/test-quotearg.c (struct result_strings): Add member for
30547         new input.
30548         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
30549         (inputs): Add new input.
30550         (results_g): Add expected results.
30551         (flag_results): Likewise.
30552         (locale_results): Likewise.
30553         (compare_strings): Check those.
30554
30555 2009-08-23  Bruno Haible  <bruno@clisp.org>
30556
30557         Tests for module 'dup3'.
30558         * modules/dup3-tests: New file.
30559         * tests/test-dup3.c: New file.
30560
30561         New module 'dup3'.
30562         * lib/unistd.in.h (dup3): New declaration.
30563         * lib/dup3.c: New file.
30564         * m4/dup3.m4: New file.
30565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
30566         HAVE_DUP3.
30567         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
30568         * modules/dup3: New file.
30569         * doc/glibc-functions/dup3.texi: Mention the new module.
30570
30571 2009-08-23  Bruno Haible  <bruno@clisp.org>
30572
30573         Tweak the dup2 test.
30574         * tests/test-dup2.c (main): Create the test file empty. Verify that an
30575         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
30576         the test file is still empty. Fix argument order of lseek.
30577
30578 2009-08-23  Bruno Haible  <bruno@clisp.org>
30579
30580         Avoid test link errors when the modules getopt-gnu, gettext are used.
30581         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
30582         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30583
30584 2009-08-23  Bruno Haible  <bruno@clisp.org>
30585
30586         Fix getdtablesize() on mingw.
30587         * lib/getdtablesize.c (getdtablesize): Implement differently.
30588         * lib/unistd.in.h (getdtablesize): Improve comment.
30589
30590 2009-08-23  Bruno Haible  <bruno@clisp.org>
30591
30592         New module 'mkostemp'.
30593         Based on Ulrich Drepper's 2007-08-10 change in glibc.
30594         * lib/stdlib.in.h (mksotemp): New declaration.
30595         * lib/mkostemp.c: New file, from glibc with modifications.
30596         * lib/tempname.h (GT_FILE): Remove outdated comment.
30597         (gen_tempname): Add flags argument.
30598         * lib/tempname.c (__GT_BIGFILE): Remove macro.
30599         (__GT_FILE): Map to 1.
30600         (small_open, large_open): Remove macros.
30601         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
30602         * lib/mkstemp.c (mkstemp): Update.
30603         * lib/mkdtemp.c (mkdtemp): Likewise.
30604         * m4/mkostemp.m4: New file.
30605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
30606         HAVE_MKOSTEMP.
30607         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
30608         HAVE_MKOSTEMP.
30609         * modules/mkostemp: New file, based on modules/mkstemp.
30610         * doc/glibc-functions/mkostemp.texi: Mention the new module.
30611         * NEWS: Mention the change.
30612
30613 2009-08-23  Bruno Haible  <bruno@clisp.org>
30614
30615         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
30616         Reported by Eric Blake.
30617
30618 2009-08-23  Bruno Haible  <bruno@clisp.org>
30619
30620         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
30621         Reported by Eric Blake.
30622
30623 2009-08-23  Bruno Haible  <bruno@clisp.org>
30624
30625         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
30626         * modules/pipe2 (Depends-on): Likewise.
30627
30628 2009-08-23  Eric Blake  <ebb9@byu.net>
30629
30630         fcntl-h: add O_TTY_INIT support
30631         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
30632         * tests/test-fcntl-h.c (o): Test it.
30633         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30634
30635         fcntl-h: rename from fcntl, in preparation for fcntl(2)
30636         * modules/fcntl: Move <fcntl.h> header replacement...
30637         * modules/fcntl-h: ...to new name, so as not to collide with
30638         like-named function.
30639         * tests/test-fcntl.c: Rename...
30640         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
30641         * modules/fcntl-tests: Rename...
30642         * modules/fcntl-h-tests: ...to this.  Update test file name.
30643         * modules/chdir-long (Depends-on): Update clients.
30644         * modules/chdir-safer (Depends-on): Likewise.
30645         * modules/fcntl-safer (Depends-on): Likewise.
30646         * modules/fts (Depends-on): Likewise.
30647         * modules/mkancesdirs (Depends-on): Likewise.
30648         * modules/mkdir-p (Depends-on): Likewise.
30649         * modules/open (Depends-on): Likewise.
30650         * modules/savewd (Depends-on): Likewise.
30651         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
30652         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30653
30654 2009-08-22  Bruno Haible  <bruno@clisp.org>
30655
30656         * modules/binary-io (License): Relicense under LGPL.
30657         * modules/pipe2 (License): Likewise.
30658
30659 2009-08-22  Bruno Haible  <bruno@clisp.org>
30660
30661         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
30662         return value.
30663         * lib/pipe-filter-gi.c (filter_init): Likewise.
30664         Reported by Eric Blake.
30665
30666 2009-08-22  Bruno Haible  <bruno@clisp.org>
30667
30668         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
30669         * modules/pipe (Depends-on): Add pipe2.
30670
30671 2009-08-22  Bruno Haible  <bruno@clisp.org>
30672
30673         Tests for module 'pipe2'.
30674         * modules/pipe2-tests: New file.
30675         * tests/test-pipe2.c: New file.
30676
30677         New module 'pipe2'.
30678         * lib/unistd.in.h (pipe2): New declaration.
30679         * lib/pipe2.c: New file.
30680         * m4/pipe2.m4: New file.
30681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
30682         HAVE_PIPE2.
30683         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
30684         * modules/pipe2: New file.
30685         * doc/glibc-functions/pipe2.texi: Mention the new module.
30686
30687 2009-08-22  Bruno Haible  <bruno@clisp.org>
30688
30689         Reference some new glibc functions.
30690         * doc/glibc-functions/accept4.texi: New file.
30691         * doc/glibc-functions/dup3.texi: New file.
30692         * doc/glibc-functions/mkostemp.texi: New file.
30693         * doc/glibc-functions/pipe2.texi: New file.
30694         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
30695         (Glibc sys/socket.h): Refer to accept4.
30696         (Glibc unistd.h): Refer to dup3, pipe2.
30697         Reported by Eric Blake.
30698
30699 2009-08-22  Jim Meyering  <meyering@redhat.com>
30700             Bruno Haible  <bruno@clisp.org>
30701
30702         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
30703         This makes it so packages using automake-1.11's silent-rules option
30704         can print e.g., a single "GEN    configmake.h" line, rather than
30705         the 30+ statements that perform the job.  If you want to see the
30706         actual commands, you can still run "make V=1".
30707         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
30708         so that make output is abbreviated when those variables are defined
30709         appropriately.
30710         * modules/argz: Likewise.
30711         * modules/arpa_inet: Likewise.
30712         * modules/byteswap: Likewise.
30713         * modules/configmake: Likewise.
30714         * modules/dirent: Likewise.
30715         * modules/errno: Likewise.
30716         * modules/fcntl: Likewise.
30717         * modules/float: Likewise.
30718         * modules/fnmatch: Likewise.
30719         * modules/getopt-posix: Likewise.
30720         * modules/glob: Likewise.
30721         * modules/iconv_open: Likewise.
30722         * modules/inttypes: Likewise.
30723         * modules/localcharset: Likewise.
30724         * modules/locale: Likewise.
30725         * modules/math: Likewise.
30726         * modules/netdb: Likewise.
30727         * modules/netinet_in: Likewise.
30728         * modules/poll: Likewise.
30729         * modules/posix_spawnp-tests: Likewise.
30730         * modules/sched: Likewise.
30731         * modules/search: Likewise.
30732         * modules/selinux-h: Likewise.
30733         * modules/signal: Likewise.
30734         * modules/spawn: Likewise.
30735         * modules/stdarg: Likewise.
30736         * modules/stdbool: Likewise.
30737         * modules/stddef: Likewise.
30738         * modules/stdint: Likewise.
30739         * modules/stdio: Likewise.
30740         * modules/stdlib: Likewise.
30741         * modules/string: Likewise.
30742         * modules/strings: Likewise.
30743         * modules/sys_file: Likewise.
30744         * modules/sys_ioctl: Likewise.
30745         * modules/sys_select: Likewise.
30746         * modules/sys_socket: Likewise.
30747         * modules/sys_stat: Likewise.
30748         * modules/sys_time: Likewise.
30749         * modules/sys_times: Likewise.
30750         * modules/sys_utsname: Likewise.
30751         * modules/sys_wait: Likewise.
30752         * modules/sysexits: Likewise.
30753         * modules/time: Likewise.
30754         * modules/unistd: Likewise.
30755         * modules/wchar: Likewise.
30756         * modules/wctype: Likewise.
30757
30758 2009-08-22  Jim Meyering  <meyering@redhat.com>
30759
30760         announce-gen: detect write failure
30761         * build-aux/announce-gen: Add Coda at end.
30762         Remove equivalent-but-more-verbose block at top.
30763
30764 2009-08-19  Akim Demaille  <demaille@gostai.com>
30765
30766         bootstrap: --help to stdout.
30767         * bootstrap (usage): Don't send --help to stderr.
30768         Use a here doc instead of a long string.
30769
30770 2009-08-21  Eric Blake  <ebb9@byu.net>
30771
30772         test-popen-safer: split from test-popen
30773         * tests/test-popen.c (main): Move...
30774         * tests/test-popen.h: ...into new file.
30775         * tests/test-popen-safer2.c: New file.
30776         * modules/popen-tests (Files): Add test-popen.h.
30777         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
30778         Suggested by Bruno Haible.
30779
30780         test-fcntl-safer: split from test-open
30781         * tests/test-open.c (main): Move...
30782         * tests/test-open.h: ...into new file.
30783         * tests/test-fcntl-safer.c: New file.
30784         * modules/open-tests (Files): Add test-open.h.
30785         * modules/fcntl-safer-tests: New file.
30786         Suggested by Bruno Haible.
30787
30788         test-fopen-safer: split from test-fopen
30789         * tests/test-fopen.c (main): Move...
30790         * tests/test-fopen.h: ...into new file.
30791         * tests/test-fopen-safer.c: New file.
30792         * modules/fopen-tests (Files): Add test-fopen.h.
30793         * modules/fopen-safer-tests: New file.
30794         Suggested by Bruno Haible.
30795
30796 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30797
30798         popen-safer: test O_CLOEXEC at run-time.
30799         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
30800
30801 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30802
30803         fcntl: move more flags to the header
30804         * lib/cloexec.c: Do not define FD_CLOEXEC here.
30805         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
30806         * lib/fcntl.in.h: Do both things here.
30807
30808 2009-08-21  Jim Meyering  <meyering@redhat.com>
30809
30810         consistently remove $@-t before redirecting to it
30811         * modules/argz: Remove $@-t and $@ before redirecting to the former.
30812         * modules/alloca-opt: Likewise.
30813         * modules/byteswap: Likewise.
30814         * modules/fnmatch: Likewise.
30815         * modules/getopt-posix: Likewise.
30816         * modules/glob: Likewise.
30817         * modules/poll: Likewise.
30818         * modules/posix_spawnp-tests: Likewise.
30819         * modules/sys_socket: Likewise.
30820         * modules/sysexits: Likewise.
30821
30822 2009-08-21  Eric Blake  <ebb9@byu.net>
30823
30824         popen: simplify access to original popen
30825         * lib/popen.c (rpl_popen): No need to worry about popen being a
30826         macro.
30827         Reported by Bruno Haible.
30828
30829 2009-08-20  Eric Blake  <ebb9@byu.net>
30830
30831         build: avoid some compiler warnings
30832         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
30833         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
30834         type.
30835         (new_exclude_segment, excluded_file_pattern_p)
30836         (excluded_file_name_p): Reduce scope.
30837         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
30838         old-style declaration.
30839
30840 2009-08-20  Simon Josefsson  <simon@josefsson.org>
30841
30842         * tests/test-exclude1.sh: Handle Windows EOL.
30843         * tests/test-exclude2.sh: Likewise.
30844         * tests/test-exclude3.sh: Likewise.
30845         * tests/test-exclude4.sh: Likewise.
30846         * tests/test-exclude5.sh: Likewise.
30847         * tests/test-exclude6.sh: Likewise.
30848         * tests/test-exclude7.sh: Likewise.
30849
30850 2009-08-19  Akim Demaille  <demaille@gostai.com>
30851
30852         bootstrap: find sha1sum when named gsha1sum.
30853         * bootstrap (find_tool): New.
30854         ($SHA1SUM): New.
30855         Use it.
30856
30857 2009-08-20  Jim Meyering  <meyering@redhat.com>
30858
30859         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
30860         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
30861         expression that converts "." in a file name to "\." in the resulting
30862         regexp.  Start with a dummy statement, so that prior shell variable
30863         definitions are expanded portably.  Reported by Simon Josefsson.
30864
30865 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
30866
30867         Fix polling for writeability of a screen buffer.
30868         * lib/poll.c: Distinguish input and screen buffers for the
30869         Win32 implementation.
30870         * lib/select.c: Likewise.
30871
30872 2009-08-19  Eric Blake  <ebb9@byu.net>
30873
30874         popen-safer: prevent popen from clobbering std descriptors
30875         * modules/popen-safer: New file.
30876         * lib/popen-safer.c: Likewise.
30877         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
30878         * lib/stdio--.h (popen): Provide override.
30879         * lib/stdio-safer.h (popen_safer): Provide declaration.
30880         * tests/test-popen.c (includes): Partially test this.
30881         * modules/popen-safer-tests: New file, for more tests.
30882         * tests/test-popen-safer.c: Likewise.
30883         * MODULES.html.sh (file stream based Input/Output): Mention it.
30884
30885         tests: test some of the *-safer modules
30886         * modules/fopen-safer (Depends-on): Add fopen.
30887         * modules/fcntl-safer (Depends-on): Add fcntl.
30888         * modules/stdlib-safer (Depends-on): Add stdlib.
30889         (configure.ac): Set indicator.
30890         * modules/unistd-safer (configure.ac): Likewise.
30891         * modules/tmpfile-safer (configure.ac): Likewise.
30892         (Depends-on): Add tmpfile.
30893         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
30894         active.
30895         * tests/test-fopen.c (includes): Test safer versions when they are
30896         in use.
30897         * tests/test-open.c (includes): Likewise.
30898
30899         popen: fix cygwin 1.5 bug when stdin closed
30900         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
30901         * modules/popen: New file.
30902         * modules/popen-tests: Likewise.
30903         * tests/test-popen.c: Likewise.
30904         * m4/popen.m4: Likewise.
30905         * lib/popen.c: Likewise.
30906         * lib/stdio.in.h (popen): New declaration.
30907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
30908         * modules/stdio (Makefile.am): Likewise.
30909         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
30910
30911 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
30912
30913         maint.mk: give full control over update-copyright exclusions
30914         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
30915         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
30916         (update-copyright): Don't force inclusion of top-level
30917         ChangeLog.  Don't force exclusion of all COPYING files, but make
30918         them the default exclusion instead.
30919
30920 2009-08-16  Bruno Haible  <bruno@clisp.org>
30921
30922         Fix test failures on Solaris 10.
30923         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
30924         tests when Solaris iconv() is used.
30925         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
30926         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
30927         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
30928         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
30929         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
30930
30931 2009-08-16  Bruno Haible  <bruno@clisp.org>
30932
30933         Fix test failures on Solaris 10.
30934         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
30935         'tr' program and pass it as first argument.
30936         * tests/test-pipe-filter-gi1.sh: Likewise.
30937         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
30938         program as first argument.
30939         * tests/test-pipe-filter-gi1.c (main): Likewise.
30940
30941 2009-08-16  Eric Blake  <ebb9@byu.net>
30942
30943         fpurge: fix previous commits
30944         * modules/fpurge (Makefile.am): Make replacement conditional,
30945         partially reverting 2007-04-29 change; missed in previous
30946         attempt.
30947         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
30948         is missing.
30949
30950 2009-08-16  Bruno Haible  <bruno@clisp.org>
30951
30952         Clarify fpurge's effect on the file position.
30953         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
30954         * tests/test-fpurge.c (main): Make a second pass for checking the file
30955         position.
30956
30957 2009-08-16  Bruno Haible  <bruno@clisp.org>
30958
30959         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
30960         declaration of fpurge is missing.
30961         * tests/test-fpurge.c (main): Check that the file has not more contents
30962         than expected. Close the file before removing it.
30963
30964 2009-08-15  Eric Blake  <ebb9@byu.net>
30965
30966         fpurge: don't wrap working cygwin implementation
30967         * lib/fpurge.c (fpurge): Fix comment typo.
30968         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
30969         1.7 to avoid replacement.
30970         * tests/test-fpurge.c (main): Enhance test.
30971
30972 2009-08-15  Eric Blake  <ebb9@byu.net>
30973         and Jim Meyering  <meyering@redhat.com>
30974
30975         test-update-copyright: skip if perl is insufficient
30976         * tests/test-update-copyright.sh: Failure to run maintainer tool
30977         should not cause testsuite failure on cygwin 1.5.
30978
30979 2009-08-14  Eric Blake  <ebb9@byu.net>
30980
30981         doc: mention more functions added in cygwin 1.7.0
30982         * doc/posix-headers/limits.texi (limits.h): Update for recent
30983         cygwin additions.
30984         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
30985         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
30986         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
30987         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
30988         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
30989
30990 2009-08-14  Eric Blake  <ebb9@byu.net>
30991
30992         maint.mk: simplify update-copyright rule
30993         * top/maint.mk (update-copyright-local): Delete, and document how
30994         to do it in cfg.mk instead.
30995         (update-copyright-exclude-regexp): Delete, and document how to do
30996         it in .x-update-copyright instead.
30997         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
30998         exclude ChangeLog.
30999
31000 2009-08-14  Bruno Haible  <bruno@clisp.org>
31001
31002         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
31003
31004 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31005
31006         maint.mk: support update-copyright-env
31007         * top/maint.mk (update-copyright-env): Define place-holder.
31008         (update-copyright): Expand $(update-copyright-env) before
31009         invoking update-copyright.
31010
31011 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31012
31013         update-copyright: implement forced reformatting
31014         * build-aux/update-copyright: Implement and document
31015         UPDATE_COPYRIGHT_FORCE.
31016         * tests/test-update-copyright.sh: Test it.
31017
31018 2009-08-14  Eric Blake  <ebb9@byu.net>
31019         and Bruno Haible  <bruno@clisp.org>
31020
31021         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
31022         * tests/test-locale.c: Revert previous patch related to NULL.
31023         * tests/test-stdio.c: Likewise.
31024         * tests/test-stdlib.c: Likewise.
31025         * tests/test-string.c: Likewise.
31026         * tests/test-unistd.c: Likewise.
31027         * modules/time-tests (Depends-on): Add verify.
31028         * modules/wchar-tests (Depends-on): Likewise.
31029         * tests/test-time.c: Test for NULL compliance.
31030         * tests/test-wchar.c: Likewise.
31031         * modules/locale (Depends-on): Add stddef.
31032         * modules/stdio (Depends-on): Likewise.
31033         * modules/stdlib (Depends-on): Likewise.
31034         * modules/string (Depends-on): Likewise.
31035         * modules/time (Depends-on): Likewise.
31036         * modules/unistd (Depends-on): Likewise.
31037         * modules/wchar (Depends-on): Likewise.
31038         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
31039         * lib/stdlib.in.h (includes): Likewise.
31040         * lib/string.in.h (includes): Likewise.
31041         * lib/time.in.h (includes): Likewise.
31042         * lib/unistd.in.h (includes): Likewise.
31043         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
31044         replaced.
31045         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31046         * m4/stddef_h.m4: New file.
31047         * modules/stddef: Likewise.
31048         * lib/stddef.in.h: Likewise.
31049         * modules/stddef-tests: Likewise.
31050         * tests/test-stddef.c: Likewise.
31051         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
31052         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
31053         * doc/posix-headers/locale.texi (locale.h): Likewise.
31054         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
31055         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31056         * doc/posix-headers/string.texi (string.h): Likewise.
31057         * doc/posix-headers/time.texi (time.h): Likewise.
31058         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
31059         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
31060
31061 2009-08-14  Eric Blake  <ebb9@byu.net>
31062
31063         doc: improve git diff of texinfo files
31064         * .gitattributes: Add rule for *.texi files, with hint on how to
31065         use it.
31066         Copied from m4, and based on a report by Bruno Haible.
31067
31068 2009-08-14  Bruno Haible  <bruno@clisp.org>
31069
31070         Disable multithread support by default on Cygwin 1.5.x for real.
31071         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
31072
31073 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
31074
31075         update-copyright: much ado about intervals
31076         * build-aux/update-copyright: Implement and document
31077         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
31078         of copyright year intervals.
31079         Also, document UPDATE_COPYRIGHT_YEAR.
31080         * tests/test-update-copyright.sh: Test it.
31081
31082         update-copyright: convert 2-digit to 4-digit years
31083         * build-aux/update-copyright: Implement and document.
31084         * tests/test-update-copyright.sh: Update.
31085
31086 2009-08-14  Jim Meyering  <meyering@redhat.com>
31087
31088         test-exclude: avoid coreutils "make check" failure
31089         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
31090         just as in test-argmatch.c.
31091
31092 2009-08-13  Eric Blake  <ebb9@byu.net>
31093
31094         test-dup2: fix bad assumption
31095         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
31096         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
31097
31098         test-version-etc: fix CRLF portability issue
31099         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
31100         recognize \r.
31101         * tests/test-argp-version-etc-1.sh: Likewise.
31102
31103         getopt: update client modules
31104         * modules/argp (Depends-on): Use getopt-gnu.
31105         * modules/git-merge-changelog (Depends-on): Likewise.
31106         * modules/long-options (Depends-on): Likewise.
31107         * modules/xstrtol (Depends-on): Likewise.
31108
31109 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31110
31111         * tests/test-version-etc.sh: Don't fail on different
31112         project/version.  Don't fail on CRLF differences.  Rewrite to use
31113         multiple -e instead of multiple sed forks, suggested by Eric Blake
31114         <ebb9@byu.net>.
31115         * tests/test-argp-version-etc-1.sh: Likewise.
31116
31117 2009-08-13  Simon Josefsson  <simon@josefsson.org>
31118
31119         * tests/test-version-etc.sh: Don't fail on different
31120         project/version.
31121
31122 2009-08-12  Bruno Haible  <bruno@clisp.org>
31123
31124         Tests for modules 'getopt-posix', 'getopt-gnu'.
31125         * modules/getopt-posix-tests: New file.
31126         * tests/test-getopt.c: New file.
31127         * tests/test-getopt.h: New file.
31128         * tests/test-getopt_long.h: New file.
31129
31130         New modules 'getopt-posix', 'getopt-gnu'.
31131         * modules/getopt-gnu: New file, renamed from modules/getopt.
31132         * modules/getopt-posix: New file.
31133         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
31134         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
31135         (gl_GETOPT): Remove macro.
31136         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
31137         Disable the test against BSD systems that declare optreset. Test
31138         against mingw bug. Test against lack of support of optional arguments
31139         on many platforms.
31140         * doc/glibc-headers/getopt.texi: Update module name and list of
31141         relevant platforms.
31142         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
31143         'getopt-gnu' and more portability problems.
31144         * NEWS: Mention the changes.
31145
31146 2009-08-12  Bruno Haible  <bruno@clisp.org>
31147
31148         Ensure that optarg etc. get declared by <unistd.h>.
31149         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
31150         AC_USE_SYSTEM_EXTENSIONS.
31151         * modules/getopt (Depends-on): Add 'extensions'.
31152
31153 2009-08-12  Bruno Haible  <bruno@clisp.org>
31154
31155         Avoid test link errors.
31156         * modules/pipe-filter-ii-tests (Makefile.am): Define
31157         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
31158         * modules/pipe-filter-gi-tests (Makefile.am): Define
31159         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
31160         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31161
31162 2009-08-12  Bruno Haible  <bruno@clisp.org>
31163
31164         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
31165         gl_GETOPT_SUBSTITUTE before.
31166         (gl_GETOPT): Use it.
31167         * m4/argp.m4 (gl_ARGP): Update.
31168         Reported by Sergey Poznyakoff.
31169
31170         * m4/getopt.m4: Reorder macros.
31171         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
31172         (gl_GETOPT_SUBSTITUTE): Remove macro.
31173
31174 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31175
31176         Minor improvement in gitlog-to-changelog
31177
31178         * build-aux/gitlog-to-changelog: New option `--format' makes
31179         output format string configurable.
31180
31181 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31182
31183         Optimize exclude: use hash tables for non-wildcard patterns.
31184
31185         * lib/exclude.c: Include hash.h and mbuiter.h
31186         (struct exclude_pattern, exclude_segment): New data types.
31187         (struct exclude): Rewrite.
31188         (fnmatch_pattern_has_wildcards): New function.
31189         (new_exclude_segment, free_exclude_segment): New functions.
31190         (excluded_file_pattern_p, excluded_file_name_p): New functions.
31191         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
31192         * lib/exclude.h (is_fnmatch_pattern): New prototype.
31193         * modules/exclude: Depend on hash and mbuiter.
31194
31195         * modules/exclude-tests: New file.
31196         * tests/test-exclude.c: New file.
31197         * tests/test-exclude1.sh: New file.
31198         * tests/test-exclude2.sh: New file.
31199         * tests/test-exclude3.sh: New file.
31200         * tests/test-exclude4.sh: New file.
31201         * tests/test-exclude5.sh: New file.
31202         * tests/test-exclude6.sh: New file.
31203         * tests/test-exclude7.sh: New file.
31204
31205 2009-08-12  Bruno Haible  <bruno@clisp.org>
31206
31207         Ensure that getopt() gets declared by <unistd.h>.
31208         * lib/unistd.in.h: Conditionally include getopt.h.
31209         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
31210         Set GNULIB_UNISTD_H_GETOPT.
31211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31212         GNULIB_UNISTD_H_GETOPT.
31213         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
31214
31215 2009-08-12  Bruno Haible  <bruno@clisp.org>
31216
31217         Clarify logic.
31218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
31219         gl_replace_getopt instead of GETOPT_H.
31220
31221 2009-08-12  Bruno Haible  <bruno@clisp.org>
31222
31223         * m4/getopt.m4: Add comments.
31224
31225 2009-08-12  Bruno Haible  <bruno@clisp.org>
31226
31227         Disable multithread support by default on Cygwin 1.5.x.
31228         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
31229         set gl_use_threads=no if not specified otherwise.
31230
31231 2009-08-11  Bruno Haible  <bruno@clisp.org>
31232
31233         Avoid compilation error on NetBSD 5.0.
31234         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
31235         * tests/test-stdio.c: Likewise.
31236         * tests/test-stdlib.c: Likewise.
31237         * tests/test-string.c: Likewise.
31238         * tests/test-unistd.c: Likewise.
31239         Reported by Greg Troxel <gdt@ir.bbn.com>
31240         at <https://savannah.gnu.org/support/?106973>.
31241
31242 2009-08-11  Bruno Haible  <bruno@clisp.org>
31243
31244         * modules/dup2-tests (Depends-on): Remove close.
31245
31246         Undo 2009-07-19 commit.
31247         * modules/acl-tests (Depends-on): Remove close.
31248         * modules/binary-io-tests (Depends-on): Likewise.
31249         * modules/closein-tests (Depends-on): Likewise.
31250         * modules/flock-tests (Depends-on): Likewise.
31251         * modules/fsync-tests (Depends-on): Likewise.
31252         * modules/lseek-tests (Depends-on): Likewise.
31253         * modules/pipe-tests (Depends-on): Likewise.
31254         * modules/posix_spawn-tests (Depends-on): Likewise.
31255         * modules/posix_spawnp-tests (Depends-on): Likewise.
31256         * modules/stat-time-tests (Depends-on): Likewise.
31257         * modules/yesno-tests (Depends-on): Likewise.
31258
31259 2009-08-10  Bruno Haible  <bruno@clisp.org>
31260
31261         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
31262
31263 2009-08-10  Bruno Haible  <bruno@clisp.org>
31264
31265         Fix a gcc warning.
31266         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
31267
31268 2009-08-10  Bruno Haible  <bruno@clisp.org>
31269
31270         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
31271         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
31272         not only the first time.
31273         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
31274         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
31275         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
31276         is 1, not only the the first time.
31277
31278 2009-08-10  Bruno Haible  <bruno@clisp.org>
31279
31280         Make it possible to use module 'gethostname' without module 'close'.
31281         * lib/unistd.in.h (close): Evoke a link error only if
31282         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31284         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31285         * modules/unistd (Makefile.am): Substitute
31286         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31287         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
31288         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
31289         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31290         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31291         * modules/sys_ioctl (Makefile.am): Substitute
31292         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31293         * modules/socket (configure.ac): On native Windows, set
31294         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
31295         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
31296         Reported by Sam Steingold <sds@gnu.org>.
31297
31298 2009-08-10  Bruno Haible  <bruno@clisp.org>
31299
31300         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
31301         * modules/ioctl (configure.ac): Likewise.
31302
31303 2009-08-10  Bruno Haible  <bruno@clisp.org>
31304
31305         Avoid collision between gnulib wrapper and libintl wrapper.
31306         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
31307         already defined in intl/printf.c.
31308         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
31309         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
31310
31311 2009-08-09  Bruno Haible  <bruno@clisp.org>
31312
31313         Make <sys/select.h> really self-contained, also on Solaris 10.
31314         * lib/sys_select.in.h: Include <string.h>.
31315         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
31316         Solaris 10 problem.
31317         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
31318         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
31319         Reported by Jim Meyering.
31320
31321 2009-08-09  Bruno Haible  <bruno@clisp.org>
31322
31323         Avoid warnings from 'aclocal' that are due to a use of macro name
31324         AM_XGETTEXT_OPTION that is not defined in automake.
31325         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
31326         automake.
31327         * modules/error (configure.ac): Likewise.
31328         * modules/propername (configure.ac): Likewise.
31329         * modules/vasprintf (configure.ac): Likewise.
31330         * modules/verror (configure.ac): Likewise.
31331         * modules/xprintf (configure.ac): Likewise.
31332         * modules/xvasprintf (configure.ac): Likewise.
31333
31334 2009-08-08  Bruno Haible  <bruno@clisp.org>
31335
31336         Avoid compilation error in C++ mode.
31337         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
31338         Reported by Sam Steingold <sds@gnu.org>.
31339
31340 2009-08-08  Bruno Haible  <bruno@clisp.org>
31341
31342         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
31343         for the various Unix platforms.
31344         * doc/posix-headers/limits.texi: Update platforms list regarding
31345         HOST_NAME_MAX.
31346         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31347
31348 2009-08-07  Jim Meyering  <meyering@redhat.com>
31349
31350         selinux-at: fix typo in a comment
31351         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
31352         Spotted by Paolo Bonzini.
31353
31354         selinux-at: remove redundant m4 code, add documentation
31355         * modules/selinux-at (configure.ac): Remove redundant code.
31356         LIB_SELINUX is already set via the dependent module, selinux-h.
31357         (Include): Add quotes around selinux-at.h.
31358         * lib/selinux-at.h: Add documentation.
31359         Reported by Bruno Haible in
31360         http://marc.info/?l=gnulib-bug&m=124958988300749
31361
31362 2009-08-07  Bruno Haible  <bruno@clisp.org>
31363
31364         Avoid link error on MacOS X 10.3 and 10.4.
31365         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
31366         on non-ELF systems.
31367         * lib/argp-pv.c (argp_program_version): Likewise.
31368         Reported by Simon Josefsson.
31369
31370 2009-08-07  Simon Josefsson  <simon@josefsson.org>
31371
31372         * tests/test-version-etc.sh: Use $EXEEXT.
31373
31374 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
31375
31376         update-copyright: update documentation to point to maint.mk
31377         * build-aux/update-copyright: Here.
31378
31379 2009-08-06  Jim Meyering  <meyering@redhat.com>
31380
31381         maint.mk: support update-copyright-local
31382         * top/maint.mk (update-copyright-local): Define place-holder.
31383         (update-copyright): Depend on $(update-copyright-local).
31384
31385 2009-08-06  Jim Meyering  <meyering@redhat.com>
31386
31387         selinux-at: new module
31388         Initially written for coreutils, this module will soon be
31389         used by findutils, too.
31390         * MODULES.html.sh [Misc]: Add selinux-at.
31391         * lib/selinux-at.h: New file, from coreutils.
31392         * lib/selinux-at.c: Likewise.
31393         * modules/selinux-at: Likewise.
31394         (License): Change from LGPL to GPL, since it depends
31395         on the GPL'd openat module.
31396
31397         doc: update README
31398         * README: Remove references to cogito.
31399         Remove cvs-repo-updating instructions from 2007.
31400         Don't imply that CVS is better if you have limited disk space.
31401
31402 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31403
31404         update-copyright: support C-style comments
31405         * build-aux/update-copyright: Implement and document.
31406         * tests/test-update-copyright.sh: Test.
31407
31408 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31409
31410         update-copyright: support omitted "(C)"
31411         * build-aux/update-copyright: Implement and document.  Also,
31412         allow variable whitespace before "(C)".
31413         * tests/test-update-copyright.sh: Test.
31414
31415 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31416
31417         update-copyright: don't trip on non-FSF copyright statements
31418         * build-aux/update-copyright: Fix so that the first correctly
31419         formatted FSF copyright statement is recognized no matter what
31420         appears before it.  Update documentation.
31421         * tests/test-update-copyright.sh: Test that.
31422
31423 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31424
31425         update-copyright: clean up code a little
31426         * build-aux/update-copyright: Append "_re" to the name of any
31427         variable holding a regular expression.
31428         Replace "old" and "new" with "stmt" in variable names.
31429         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
31430         handled correctly.
31431         Format code more consistently.
31432
31433 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
31434
31435         update-copyright-tests: improve portability
31436         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
31437         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
31438
31439 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31440
31441         update-copyright: support @copyright{} and &copy;
31442         * build-aux/update-copyright: Implement and document.
31443         * tests/test-update-copyright.sh: Test.
31444
31445 2009-08-04  Jim Meyering  <meyering@redhat.com>
31446
31447         update-copyright-tests: correctly test EOL=\r\n handling
31448         * tests/test-update-copyright.sh: Put \r at the end of some lines
31449         for the dos-eol tests.  Based on a patch by Joel E. Denny.
31450
31451         maint.mk: make update-copyright exclusion list more configurable
31452         * top/maint.mk (update-copyright): Default to excluding COPYING,
31453         but allow an override, in case someone does want to update that file.
31454
31455         maint.mk: don't update copyright date in COPYING
31456         * top/maint.mk (update-copyright): Exclude COPYING.
31457
31458         maint.mk: add a copyright-updating rule
31459         * top/maint.mk (update-copyright): New rule.
31460         Derived from coreutils/Makefile.am.
31461
31462         update-copyright: rename some variables
31463         * build-aux/update-copyright: Rename a few variables for clarity.
31464         Tweak syntax.  List Joel E. Denny as coauthor.
31465
31466 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
31467
31468         update-copyright: fix bug for 2-digit last year and add tests
31469         * build-aux/update-copyright: Fix bug.
31470         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
31471         specified.
31472         * modules/update-copyright-tests: New
31473         * tests/test-update-copyright.sh: New.
31474
31475 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31476
31477         update-copyright: handle leading tabs in line prefix
31478         * build-aux/update-copyright: Count leading tabs as 8 spaces
31479         when computing margin.  This helps with the formatting of
31480         ChangeLogs, for example.
31481         Fix documentation a little.
31482
31483 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31484
31485         update-copyright: support EOL=\r\n
31486         * build-aux/update-copyright: Implement that.
31487
31488 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
31489
31490         update-copyright: automatically format copyright statements
31491         * build-aux/update-copyright: Implement that.
31492         Also, be a little more predictable and safer by always failing
31493         when the full copyright format is not perfectly recognized as an
31494         unbroken whole.  Discussed at
31495         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
31496         Rewrite documentation.
31497
31498 2009-08-03  Bruno Haible  <bruno@clisp.org>
31499
31500         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
31501
31502 2009-08-02  Bruno Haible  <bruno@clisp.org>
31503
31504         Tests for module 'uname'.
31505         * modules/uname-tests: New file.
31506         * tests/test-uname.c: New file.
31507
31508         New module 'uname'.
31509         * lib/uname.c: New file.
31510         * m4/uname.m4: New file.
31511         * modules/uname: New file.
31512         * doc/posix-functions/uname.texi: Mention the new module.
31513
31514 2009-08-02  Bruno Haible  <bruno@clisp.org>
31515
31516         Tests for module 'sys_utsname'.
31517         * modules/sys_utsname-tests: New file.
31518         * tests/test-sys_utsname.c: New file.
31519
31520         New module 'sys_utsname'.
31521         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
31522         * m4/sys_utsname_h.m4: New file.
31523         * modules/sys_utsname: New file.
31524         * doc/posix-headers/sys_utsname.texi: Mention the new module.
31525
31526 2009-08-02  Bruno Haible  <bruno@clisp.org>
31527
31528         Implicitly initialize the sockets library.
31529         * lib/gethostname.c: Include sockets.h.
31530         (rpl_gethostname): Invoke gl_sockets_startup.
31531         * lib/socket.c: Include sockets.h.
31532         (rpl_socket): Invoke gl_sockets_startup.
31533         * modules/gethostname (Depends-on): Add sockets.
31534         * modules/socket (Depends-on): Likewise.
31535         * tests/test-poll.c: Don't include sockets.h.
31536         (main): Don't invoke gl_sockets_startup.
31537         * tests/test-select.c: Don't include sockets.h.
31538         (main): Don't invoke gl_sockets_startup.
31539
31540 2009-08-02  Bruno Haible  <bruno@clisp.org>
31541
31542         Allow multiple calls to gl_sockets_startup.
31543         * lib/sockets.c (initialized_sockets_version): New variable.
31544         (gl_sockets_startup): Do nothing if already called for this or a higher
31545         version.
31546         (gl_sockets_cleanup): Reset initialized_sockets_version.
31547
31548 2009-08-03  Simon Josefsson  <simon@josefsson.org>
31549
31550         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
31551         different project/version.
31552
31553 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
31554             Bruno Haible  <bruno@clisp.org>
31555
31556         Tests for module 'pipe-filter-gi'.
31557         * modules/pipe-filter-gi-tests: New file.
31558         * tests/test-pipe-filter-gi1.sh: New file.
31559         * tests/test-pipe-filter-gi1.c: New file.
31560         * tests/test-pipe-filter-gi2.sh: New file.
31561         * tests/test-pipe-filter-gi2-main.c: New file.
31562         * tests/test-pipe-filter-gi2-child.c: New file.
31563
31564         New module 'pipe-filter-gi'.
31565         * lib/pipe-filter-gi.c: New file.
31566         * modules/pipe-filter-gi: New file.
31567
31568 2009-08-02  Bruno Haible  <bruno@clisp.org>
31569             Paolo Bonzini  <bonzini@gnu.org>
31570
31571         Tests for module 'pipe-filter-ii'.
31572         * modules/pipe-filter-ii-tests: New file.
31573         * tests/test-pipe-filter-ii1.sh: New file.
31574         * tests/test-pipe-filter-ii1.c: New file.
31575         * tests/test-pipe-filter-ii2.sh: New file.
31576         * tests/test-pipe-filter-ii2-main.c: New file.
31577         * tests/test-pipe-filter-ii2-child.c: New file.
31578
31579         New module 'pipe-filter-ii'.
31580         * lib/pipe-filter.h: New file.
31581         * lib/pipe-filter-ii.c: New file.
31582         * lib/pipe-filter-aux.h: New file.
31583         * modules/pipe-filter-ii: New file.
31584
31585 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31586
31587         * lib/gc-libgcrypt.c: Change copyright to FSF.
31588         * lib/gc-gnulib.c: Likewise.
31589
31590 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
31591
31592         * lib/gethostname.c: Include limits.h.
31593
31594 2009-08-02  Simon Josefsson  <simon@josefsson.org>
31595             Bruno Haible  <bruno@clisp.org>
31596
31597         Ensure HOST_NAME_MAX as part of the gethostname module.
31598         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
31599         define also HOST_NAME_MAX.
31600         * tests/test-gethostname.c: Include <limits.h>.
31601         (main): Check also HOST_NAME_MAX.
31602         * doc/posix-headers/limits.texi: Document the mingw problem.
31603
31604 2009-08-02  Bruno Haible  <bruno@clisp.org>
31605
31606         * lib/gethostname.c (gethostname): Fix handling of large len argument.
31607         Add comments.
31608
31609 2009-03-31  Simon Josefsson  <simon@josefsson.org>
31610
31611         * lib/gethostname.c: Add Windows wrapper.
31612         * m4/gethostname.m4: Look for gethostname in -lws2_32.
31613         * modules/gethostname: Depend on sys_socket & errno, for also
31614         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
31615         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
31616
31617 2009-07-31  Jim Meyering  <meyering@redhat.com>
31618
31619         getloadavg: fix symbol name in comment
31620         * lib/getloadavg.c: Correct a typo I introduced when adding
31621         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
31622         Matt Kraai spotted the problem.
31623
31624 2009-07-29  Matt Kraai  <mkraai@beckman.com>
31625
31626         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
31627         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
31628         code also if ! defined N_NAME_POINTER.
31629         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
31630         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
31631         but the n_name member is a 12-byte array.
31632
31633 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
31634
31635         update-copyright: generalize comment handling
31636         * build-aux/update-copyright: Handle copyright statements
31637         within more comment styles.
31638         Document usage.
31639         Report any file with an external copyright holder or parse failure.
31640
31641 2009-07-29  Jim Meyering  <meyering@redhat.com>
31642
31643         mktime: correct setting of REPLACE_MKTIME
31644         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
31645
31646         update-copyright: new module
31647         * modules/update-copyright: New file.
31648         * build-aux/update-copyright: New file.
31649         * MODULES.html.sh (maint+release support): Add update-copyright.
31650
31651 2009-07-27  Bruno Haible  <bruno@clisp.org>
31652
31653         Fix compilation error when <ctime> is used and mktime is replaced.
31654         * lib/time.in.h (mktime): New declaration.
31655         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
31656         REPLACE_MKTIME instead of defining mktime in config.h.
31657         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
31658         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
31659         Reported by Ross McFarland <rwmcfa1@neces.com>.
31660
31661 2009-07-27  Bruno Haible  <bruno@clisp.org>
31662
31663         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
31664         Reported by Matt Kraai <mkraai@beckman.com>.
31665
31666 2009-07-25  Jim Meyering  <meyering@redhat.com>
31667
31668         maint.mk: avoid warnings about missing files
31669         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
31670         diagnostic when .prev-version does not exist.
31671         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
31672         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
31673         nonexistent cfg.mk.
31674         Suggestions from Simon Josefsson.
31675
31676 2009-07-25  Bruno Haible  <bruno@clisp.org>
31677
31678         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
31679         defined as macros. Needed on QNX 6.4.1.
31680         Reported by Matt Kraai <mkraai@beckman.com>.
31681
31682 2009-07-23  Jim Meyering  <meyering@redhat.com>
31683
31684         maint.mk: invoke "make dist" with a working value of XZ_OPT
31685         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
31686
31687 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
31688
31689         Make fseeko.c compile on QNX.
31690         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
31691
31692 2009-07-22  Peter Simons  <simons@cryp.to>
31693
31694         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
31695         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
31696         * lib/md4.h: Likewise.
31697         * lib/md5.h: Likewise.
31698         * lib/sha1.h: Likewise.
31699         * lib/sha256.h: Likewise.
31700         * lib/sha512.h: Likewise.
31701
31702         tests-sha1: don't assign literal string to 'char *' variable
31703         * tests/test-sha1.c (main): Declare locals with "const" to match
31704         attributes of the right hand side.
31705
31706 2009-07-21  Eric Blake  <ebb9@byu.net>
31707
31708         dup2: fix more mingw problems
31709         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
31710         fd to itself.
31711         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31712         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
31713         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
31714         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
31715         care of mingw bugs.
31716
31717 2009-07-21  Jim Meyering  <meyering@redhat.com>
31718
31719         vc-list-files: avoid failure when /bin/sh is dash
31720         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
31721         On some Debian based systems, /bin/sh is a symlink to dash, and running
31722         this command would omit the "/" following each 'tests' prefix:
31723           dash -x build-aux/vc-list-files -C . tests
31724         That is because bash and dash work differently:
31725           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
31726           bash ok
31727           dash odd
31728
31729 2009-07-21  Eric Blake  <ebb9@byu.net>
31730
31731         dup2-tests: test previous patch
31732         * modules/dup2-tests: New file.
31733         * tests/test-dup2.c: Likewise.
31734         * tests/test-open.c (main): Avoid unspecified behavior.
31735         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
31736         test.
31737
31738         dup2: work around mingw and cygwin 1.5 bug
31739         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
31740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31741         * modules/unistd (Makefile.am): Substitute it.
31742         * lib/unistd.in.h (dup2): Declare the replacement.
31743         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
31744         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
31745         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
31746         * modules/execute (Depends-on): Add dup2.
31747         * modules/fseterr (Depends-on): Likewise.
31748         * modules/pipe (Depends-on): Likewise.
31749         * modules/posix_spawn-internal (Depends-on): Likewise.
31750
31751 2009-07-21  Bruno Haible  <bruno@clisp.org>
31752
31753         * modules/.gitattributes: New file.
31754
31755 2009-07-20  Bruno Haible  <bruno@clisp.org>
31756
31757         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
31758         (main): Use it.
31759
31760 2009-07-20  Eric Blake  <ebb9@byu.net>
31761
31762         test-pipe: make a bit more robust.
31763         * tests/test-pipe.c (myerr): Allow error messages regardless of
31764         what we do to stderr.
31765         (test_pipe): Rearrange to avoid deadlock.
31766         (child_main): Try a larger read, to ensure we avoided deadlock.
31767         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
31768         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
31769         if misused.
31770
31771 2009-07-19  Jim Meyering  <meyering@redhat.com>
31772
31773         fts: avoid false-positive cycle-detection
31774         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
31775         for each new command line argument.
31776
31777 2009-07-19  Bruno Haible  <bruno@clisp.org>
31778
31779         Fix build error on mingw with the modules sys_select and unistd.
31780         * modules/acl-tests (Depends-on): Add close.
31781         * modules/binary-io-tests (Depends-on): Likewise.
31782         * modules/closein-tests (Depends-on): Likewise.
31783         * modules/flock-tests (Depends-on): Likewise.
31784         * modules/fsync-tests (Depends-on): Likewise.
31785         * modules/lseek-tests (Depends-on): Likewise.
31786         * modules/pipe-tests (Depends-on): Likewise.
31787         * modules/posix_spawn-tests (Depends-on): Likewise.
31788         * modules/posix_spawnp-tests (Depends-on): Likewise.
31789         * modules/stat-time-tests (Depends-on): Likewise.
31790         * modules/yesno-tests (Depends-on): Likewise.
31791
31792 2009-07-19  Bruno Haible  <bruno@clisp.org>
31793
31794         Unify conditionals.
31795         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
31796         macros, not at the compiler macros.
31797         * lib/pipe.c: Likewise.
31798         * lib/execute.c: Likewise.
31799         * lib/spawni.c: Likewise.
31800
31801 2009-07-19  Bruno Haible  <bruno@clisp.org>
31802
31803         Fix handling of closed stdin/stdout/stderr on mingw.
31804         * lib/w32spawn.h: Include unistd.h.
31805         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
31806         file descriptor with O_NOINHERIT flag.
31807         (fd_safer_noinherit): New function, based on fd-safer.c.
31808         (dup_safer_noinherit): New function, based on dup-safer.c.
31809         (undup_safer_noinherit): New function.
31810         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
31811         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
31812         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
31813         instead of fd_safer.
31814         * tests/test-pipe.c: Include <windows.h>.
31815         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
31816         result.
31817
31818         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
31819         from main.
31820         (test_pipe): Pass an extra argument for disambiguation.
31821         (main): Invoke parent_main or child_main.
31822
31823         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
31824         consistently.
31825
31826 2009-07-18  Eric Blake  <ebb9@byu.net>
31827
31828         test-pipe: fix mingw build
31829         * tests/test-pipe.c (main): Avoid fcntl on mingw.
31830
31831 2009-07-18  Bruno Haible  <bruno@clisp.org>
31832
31833         * modules/pipe-tests (Makefile.am): Fix typo.
31834
31835 2009-07-18  Eric Blake  <ebb9@byu.net>
31836
31837         error: fix mingw build
31838         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
31839         Reported by Bruno Haible.
31840
31841         error: avoid undefined use of stdout
31842         * lib/error.c (error, error_at_line): Check that fd 1 is open
31843         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
31844         is handling faults and the close_stdout module wants to report the
31845         detection of closed stdout as an error.
31846
31847 2009-07-17  Eric Blake  <ebb9@byu.net>
31848
31849         pipe: be robust in face of closed fds
31850         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
31851         should cause child to misbehave.
31852         * modules/pipe-tests: New module.
31853         * tests/test-pipe.c: New file.
31854         * tests/test-pipe.sh: New file.
31855         Reported by Akim Demaille.
31856
31857 2009-07-14  Bruno Haible  <bruno@clisp.org>
31858
31859         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
31860         Reported by anonymous kc.
31861
31862 2009-07-07  Jim Meyering  <meyering@redhat.com>
31863
31864         maint.mk: don't look for translatable strings in *.m4 or *.mk
31865         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
31866         when searching for translatable strings.
31867
31868 2009-07-05  Jim Meyering  <meyering@redhat.com>
31869
31870         remove superfluous parentheses in STREQ definition
31871         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
31872         * lib/getugroups.c (STREQ): Likewise.
31873         * lib/fnmatch.c (STREQ): Likewise.
31874         Spotted by Bruno Haible.
31875
31876 2009-07-04  Jim Meyering  <meyering@redhat.com>
31877
31878         argv-iter: new module
31879         * MODULES.html.sh: Add argv-iter.
31880         * lib/argv-iter.c, lib/argv-iter.h: New files.
31881         * modules/argv-iter: New file.
31882         * modules/argv-iter-tests: New file.
31883         * tests/test-argv-iter.c: Test it.
31884
31885 2009-07-04  Bruno Haible  <bruno@clisp.org>
31886
31887         Fix assertion.
31888         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
31889         contains more exact copies of a given entry than file2, leave the extra
31890         copies unpaired rather than aborting.
31891         Reported by Eric Blake.
31892
31893 2009-07-02  Bruno Haible  <bruno@clisp.org>
31894
31895         Speedup git-merge-changelog for git cherry-pick.
31896         * lib/git-merge-changelog.c (struct entries_mapping): New type.
31897         (entries_mapping_get): New function, extracted from compute_mapping.
31898         (entries_mapping_reverse_get): New function.
31899         (compute_mapping): Add a 'full' argument. Return the result in a
31900         'struct entries_mapping'.
31901         (main): Update. Access the mappings through entries_mapping_get.
31902         Reported by Eric Blake.
31903
31904 2009-07-02  Bruno Haible  <bruno@clisp.org>
31905
31906         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
31907         best_i.
31908
31909 2009-07-02  Bruno Haible  <bruno@clisp.org>
31910
31911         Speed up approximate search for matching ChangeLog entries.
31912         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
31913         argument. Call fstrcmp_bounded instead of fstrcmp.
31914         (compute_mapping, try_split_merged_entry, main): Update callers.
31915
31916 2009-07-02  Bruno Haible  <bruno@clisp.org>
31917
31918         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
31919
31920 2009-06-30  Bruno Haible  <bruno@clisp.org>
31921
31922         Reduce the number of uc_is_cased calls.
31923         * lib/unicase.h (casing_suffix_context_t): Add
31924         'first_char_except_ignorable' field.
31925         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
31926         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
31927         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
31928         Update initializer.
31929         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
31930         case-ignorable characters.
31931         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
31932         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
31933         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
31934         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
31935         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
31936
31937 2009-06-30  Bruno Haible  <bruno@clisp.org>
31938
31939         Tests for module 'unicase/ignorable'.
31940         * modules/unicase/ignorable-tests: New file.
31941         * tests/unicase/test-ignorable.c: New file, generated by
31942         gen-uni-tables.
31943
31944         Tests for module 'unicase/cased'.
31945         * modules/unicase/cased-tests: New file.
31946         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
31947         * tests/unicase/test-predicate-part1.h: New file, derived from
31948         tests/unictype/test-predicate-part1.h.
31949         * tests/unicase/test-predicate-part2.h: New file, same as
31950         tests/unictype/test-predicate-part2.h.
31951
31952         Fix evaluation of "Before C" condition of FINAL_SIGMA.
31953         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
31954         (output_casing_properties): New function.
31955         (main): Call it.
31956         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
31957         * lib/unicase/cased.c: Include unictype/bitmap.h.
31958         (uc_is_cased): Define through a bitmap lookup.
31959         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
31960         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
31961         (uc_is_case_ignorable): Define through a bitmap lookup.
31962         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
31963         lib/unictype/bitmap.h.
31964         (Depends-on): Add inline. Clean up.
31965         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
31966         lib/unictype/bitmap.h.
31967         (Depends-on): Add inline. Clean up.
31968         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
31969         recognition.
31970         * tests/unicase/test-u16-tolower.c (main): Likewise.
31971         * tests/unicase/test-u32-tolower.c (main): Likewise.
31972
31973 2009-06-30  Bruno Haible  <bruno@clisp.org>
31974
31975         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
31976         * lib/unicase/u16-casemap.c: Likewise.
31977         * lib/unicase/u32-casemap.c: Likewise.
31978
31979 2009-06-29  Bruno Haible  <bruno@clisp.org>
31980
31981         Define u32_casefold as a wrapper around u32_ct_casefold.
31982         * lib/unicase/u32-casefold.c: Update.
31983         * modules/unicase/u32-casefold (Depends-on): Add
31984         unicase/u32-ct-casefold, unicase/empty-prefix-context,
31985         unicase/empty-suffix-context. Clean up.
31986
31987         Define u16_casefold as a wrapper around u16_ct_casefold.
31988         * lib/unicase/u16-casefold.c: Update.
31989         * modules/unicase/u16-casefold (Depends-on): Add
31990         unicase/u16-ct-casefold, unicase/empty-prefix-context,
31991         unicase/empty-suffix-context. Clean up.
31992
31993         Define u8_casefold as a wrapper around u8_ct_casefold.
31994         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
31995         * lib/unicase/u8-casefold.c: Update.
31996         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
31997         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31998
31999         Define u32_totitle as a wrapper around u32_ct_totitle.
32000         * lib/unicase/u32-totitle.c: Update.
32001         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
32002         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32003
32004         Define u16_totitle as a wrapper around u16_ct_totitle.
32005         * lib/unicase/u16-totitle.c: Update.
32006         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
32007         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32008
32009         Define u8_totitle as a wrapper around u8_ct_totitle.
32010         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
32011         functions.
32012         (FUNC): Delegate to U_CT_TOTITLE.
32013         * lib/unicase/u8-totitle.c: Update.
32014         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
32015         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
32016
32017         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
32018         invocation.
32019         * modules/unicase/u32-tolower (Depends-on): Add
32020         unicase/empty-prefix-context, unicase/empty-suffix-context.
32021
32022         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
32023         invocation.
32024         * modules/unicase/u16-tolower (Depends-on): Add
32025         unicase/empty-prefix-context, unicase/empty-suffix-context.
32026
32027         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
32028         * modules/unicase/u8-tolower (Depends-on): Add
32029         unicase/empty-prefix-context, unicase/empty-suffix-context.
32030
32031         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
32032         invocation.
32033         * modules/unicase/u32-toupper (Depends-on): Add
32034         unicase/empty-prefix-context, unicase/empty-suffix-context.
32035
32036         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
32037         invocation.
32038         * modules/unicase/u16-toupper (Depends-on): Add
32039         unicase/empty-prefix-context, unicase/empty-suffix-context.
32040
32041         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
32042         * modules/unicase/u8-toupper (Depends-on): Add
32043         unicase/empty-prefix-context, unicase/empty-suffix-context.
32044
32045         New module 'unicase/u32-ct-casefold'.
32046         * lib/unicase/u32-ct-casefold.c: New file.
32047         * modules/unicase/u32-ct-casefold: New file.
32048
32049         New module 'unicase/u16-ct-casefold'.
32050         * lib/unicase/u16-ct-casefold.c: New file.
32051         * modules/unicase/u16-ct-casefold: New file.
32052
32053         New module 'unicase/u8-ct-casefold'.
32054         * lib/unicase/u8-ct-casefold.c: New file.
32055         * lib/unicase/u-ct-casefold.h: New file, derived from
32056         lib/unicase/u-casefold.h.
32057         * modules/unicase/u8-ct-casefold: New file.
32058
32059         New module 'unicase/u32-ct-totitle'.
32060         * lib/unicase/u32-ct-totitle.c: New file.
32061         * modules/unicase/u32-ct-totitle: New file.
32062
32063         New module 'unicase/u16-ct-totitle'.
32064         * lib/unicase/u16-ct-totitle.c: New file.
32065         * modules/unicase/u16-ct-totitle: New file.
32066
32067         New module 'unicase/u8-ct-totitle'.
32068         * lib/unicase/u8-ct-totitle.c: New file.
32069         * lib/unicase/u-ct-totitle.h: New file, derived from
32070         lib/unicase/u-totitle.h.
32071         * modules/unicase/u8-ct-totitle: New file.
32072
32073         New module 'unicase/u32-ct-tolower'.
32074         * lib/unicase/u32-ct-tolower.c: New file.
32075         * modules/unicase/u32-ct-tolower: New file.
32076
32077         New module 'unicase/u16-ct-tolower'.
32078         * lib/unicase/u16-ct-tolower.c: New file.
32079         * modules/unicase/u16-ct-tolower: New file.
32080
32081         New module 'unicase/u8-ct-tolower'.
32082         * lib/unicase/u8-ct-tolower.c: New file.
32083         * modules/unicase/u8-ct-tolower: New file.
32084
32085         New module 'unicase/u32-ct-toupper'.
32086         * lib/unicase/u32-ct-toupper.c: New file.
32087         * modules/unicase/u32-ct-toupper: New file.
32088
32089         New module 'unicase/u16-ct-toupper'.
32090         * lib/unicase/u16-ct-toupper.c: New file.
32091         * modules/unicase/u16-ct-toupper: New file.
32092
32093         New module 'unicase/u8-ct-toupper'.
32094         * lib/unicase/u8-ct-toupper.c: New file.
32095         * modules/unicase/u8-ct-toupper: New file.
32096
32097         Add context arguments to u*_casemap functions.
32098         * lib/unicase/unicasemap.h: Include unicase.h.
32099         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
32100         suffix_context arguments.
32101         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
32102         functions.
32103         (FUNC): Add prefix_context and suffix_context arguments. Use
32104         uc_is_cased and uc_is_case_ignorable.
32105         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
32106         * lib/unicase/u16-casemap.c: Likewise.
32107         * lib/unicase/u32-casemap.c: Likewise.
32108         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
32109         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32110         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
32111         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32112         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
32113         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
32114
32115         New module 'unicase/u32-suffix-context'.
32116         * lib/unicase/u32-suffix-context.c: New file.
32117         * modules/unicase/u32-suffix-context: New file.
32118
32119         New module 'unicase/u16-suffix-context'.
32120         * lib/unicase/u16-suffix-context.c: New file.
32121         * modules/unicase/u16-suffix-context: New file.
32122
32123         New module 'unicase/u8-suffix-context'.
32124         * lib/unicase/u8-suffix-context.c: New file.
32125         * lib/unicase/u-suffix-context.h: New file.
32126         * modules/unicase/u8-suffix-context: New file.
32127
32128         New module 'unicase/empty-suffix-context'.
32129         * lib/unicase/empty-suffix-context.c: New file.
32130         * modules/unicase/empty-suffix-context: New file.
32131
32132         New module 'unicase/u32-prefix-context'.
32133         * lib/unicase/u32-prefix-context.c: New file.
32134         * modules/unicase/u32-prefix-context: New file.
32135
32136         New module 'unicase/u16-prefix-context'.
32137         * lib/unicase/u16-prefix-context.c: New file.
32138         * modules/unicase/u16-prefix-context: New file.
32139
32140         New module 'unicase/u8-prefix-context'.
32141         * lib/unicase/u8-prefix-context.c: New file.
32142         * lib/unicase/u-prefix-context.h: New file.
32143         * lib/unicase/context.h: New file.
32144         * modules/unicase/u8-prefix-context: New file.
32145
32146         New module 'unicase/empty-prefix-context'.
32147         * lib/unicase/empty-prefix-context.c: New file.
32148         * modules/unicase/empty-prefix-context: New file.
32149
32150         New module 'unicase/ignorable'.
32151         * lib/unicase/ignorable.c: New file.
32152         * modules/unicase/ignorable: New file.
32153
32154         New module 'unicase/cased'.
32155         * lib/unicase/caseprop.h: New file.
32156         * lib/unicase/cased.c: New file.
32157         * modules/unicase/cased: New file.
32158
32159         New functions for case mapping of substrings.
32160         * lib/unicase.h (casing_prefix_context_t): New type.
32161         (unicase_empty_prefix_context): New variable.
32162         (u8_casing_prefix_context, u16_casing_prefix_context,
32163         u32_casing_prefix_context, u8_casing_prefixes_context,
32164         u16_casing_prefixes_context, u32_casing_prefixes_context): New
32165         declarations.
32166         (casing_suffix_context_t): New type.
32167         (unicase_empty_suffix_context): New variable.
32168         (u8_casing_suffix_context, u16_casing_suffix_context,
32169         u32_casing_suffix_context, u8_casing_suffixes_context,
32170         u16_casing_suffixes_context, u32_casing_suffixes_context,
32171         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
32172         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
32173         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
32174         declarations.
32175
32176 2009-06-28  Jim Meyering  <meyering@redhat.com>
32177
32178         boostrap: indent only with spaces
32179         * build-aux/bootstrap: Indent only with spaces, never TABs.
32180
32181         bootstrap: split long lines
32182         * build-aux/bootstrap: Keep line length < 80.
32183
32184         bootstrap: sync from coreutils
32185         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
32186         just as autoreconf does.  Verify a list of prerequisite
32187         package-name,version-number pairs if defined in bootstrap.conf.
32188         Refer to README-prereq, if prerequisites are not satisfied.
32189
32190 2009-06-27  Eric Blake  <ebb9@byu.net>
32191
32192         tests: add test for bogus NULL definition
32193         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
32194         * tests/test-stdlib.c: Likewise.
32195         * tests/test-string.c: Likewise.
32196         * tests/test-locale.c: Likewise.
32197         * tests/test-unistd.c: Likewise.
32198         * modules/stdio-tests (Depends-on): Add verify.
32199         * modules/stdlib-tests (Depends-on): Likewise.
32200         * modules/string-tests (Depends-on): Likewise.
32201         * modules/locale-tests (Depends-on): Likewise.
32202         * modules/unistd-tests (Depends-on): Likewise.
32203
32204 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
32205
32206         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
32207         self-explaining comment.
32208         * m4/selinux-selinux-h: Update serial.
32209         (gl_LIBSELINUX): New macro, adding a warning for missing development
32210         packages to code extracted from...
32211         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
32212         Add warning for missing development packages here, too.
32213
32214 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
32215
32216         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
32217
32218 2009-06-25  Eric Blake  <ebb9@byu.net>
32219
32220         version-etc: fix regression
32221         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
32222         gcc.
32223         (version_etc): Use it, to catch bugs with trailing NULL.
32224         * lib/version-etc.c (version_etc_arn): Delete unused argument.
32225         (version_etc_va): Fix logic bug.
32226         * modules/version-etc-tests: Add test.
32227         * tests/test-version-etc.c: New file.
32228         * tests/test-version-etc.sh: Likewise.
32229
32230 2009-06-25  Sam Steingold  <sds@gnu.org>
32231
32232         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
32233         mbtowc declaration.
32234
32235 2009-06-25  Eric Blake  <ebb9@byu.net>
32236
32237         fpurge: migrate into <stdio.h>
32238         * lib/fpurge.h: Delete...
32239         * lib/stdio.in.h (fpurge): ...and declare here, instead.
32240         * lib/fpurge.c (fpurge): Change declaring header.
32241         * modules/fpurge (Files): Drop deleted file.
32242         (Depends-on): Add stdio.
32243         (configure.ac): Set witness.
32244         * modules/stdio (Makefile.am): Support fpurge macros.
32245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32246         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
32247         * lib/fflush.c: Update client.
32248         * tests/test-fpurge.c: Likewise.
32249         * NEWS: Mention the change.
32250
32251 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32252
32253         * lib/argp-version-etc.c (program_authors): Add const
32254         qualifier.
32255         * lib/version-etc.c: Fix typos in the comments.
32256         * modules/argp-version-etc: Depends on version-etc.
32257
32258 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32259
32260         argp-version-etc: new module.
32261
32262         * lib/argp-version-etc.c: New file.
32263         * lib/argp-version-etc.h: New file.
32264         * modules/argp-version-etc: New file.
32265         * modules/argp-version-etc-tests: New file.
32266         * tests/test-argp-version-etc.c: New test.
32267         * tests/test-argp-version-etc-1.sh: New test.
32268
32269 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32270
32271         Provide additional interfaces and documentation for version-etc
32272         module.
32273
32274         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
32275         interfaces.
32276         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
32277         prototypes.
32278
32279 2009-06-24  Bruno Haible  <bruno@clisp.org>
32280
32281         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
32282         HAVE_LIB${NAME} macro.
32283         Reported by Sam Steingold <sds@gnu.org>.
32284
32285 2009-06-23  Simon Josefsson  <simon@josefsson.org>
32286
32287         * modules/hash-tests (test_hash_LDADD): Link to libintl when
32288         needed.
32289
32290 2009-06-21  Bruno Haible  <bruno@clisp.org>
32291
32292         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
32293         work.
32294         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
32295         together with LIB${NAME}, LTLIB${NAME}.
32296         Reported by Sam Steingold <sds@gnu.org>.
32297
32298 2009-06-20  Jim Meyering  <meyering@redhat.com>
32299
32300         tests: make sc_require_test_exit_idiom more generic
32301         * top/maint.mk (Exit_witness_file): New overridable variable.
32302         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
32303         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
32304
32305 2009-06-19  Jim Meyering  <meyering@redhat.com>
32306
32307         hash: reverse order of src/dst parameters in an internal interface
32308         * lib/hash.c (transfer_entries): Reverse order of parameters to
32309         put DST before SRC.  Adjust callers.
32310
32311         tests: test-hash: avoid wholesale duplication
32312         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
32313         Instead, use a loop and add a single conditional.
32314
32315         tests: test-hash: allow seed selection via a command line argument
32316         * tests/test-hash.c (get_seed): New function.
32317         (main): Use it.
32318
32319 2009-06-19  Eric Blake  <ebb9@byu.net>
32320
32321         hash: avoid memory leak on allocation failure
32322         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
32323         failure.  Factor repeated algorithm...
32324         (transfer_entries): ...into new helper routine.
32325         (hash_delete): React to hash_rehash return value.
32326
32327         hash: reduce memory pressure in hash_rehash no-op case
32328         * lib/hash.c (next_prime): Avoid overflow.
32329         (hash_initialize): Factor bucket size computation...
32330         (compute_bucket_size): ...into new helper function.
32331         (hash_rehash): Use new function and open coding to reduce memory
32332         pressure, and avoid a memory leak in USE_OBSTACK code.
32333         Reported by Jim Meyering.
32334
32335 2009-06-18  Eric Blake  <ebb9@byu.net>
32336
32337         hash: make rotation more obvious
32338         * modules/hash (Depends-on): Add bitrotate and stdint.
32339         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
32340         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
32341         (SIZE_MAX): Rely on headers for definition.
32342         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
32343         (raw_hasher): Use rotr_sz.
32344         Suggested by Jim Meyering.
32345
32346         hash: fix memory leak in last patch
32347         * lib/hash.c (hash_rehash): Avoid memory leak.
32348
32349         hash: avoid no-op rehashing
32350         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
32351
32352         hash: provide default callback functions
32353         * lib/hash.c (raw_hasher, raw_comparator): New functions.
32354         (hash_initialize): Use them as defaults.
32355         * tests/test-hash.c (main): Test this.
32356
32357         hash: minor optimization
32358         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
32359         when possible.
32360         (hash_initialize): Document this promise.
32361         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
32362         * tests/test-hash.c (hash_compare_strings): Test this.
32363
32364 2009-06-18  Bruno Haible  <bruno@clisp.org>
32365
32366         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
32367         going to be replaced anyway.
32368
32369 2009-06-18  Bruno Haible  <bruno@clisp.org>
32370
32371         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
32372         in one place.
32373         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
32374         be replaced anyway.
32375
32376 2009-06-18  Eric Blake  <ebb9@byu.net>
32377
32378         hash: check for resize before insertion
32379         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
32380         threshold before insertion, so that a pathological hash_rehash
32381         that fills every bucket can still trigger another rehash.
32382
32383 2009-06-18  Jim Meyering  <meyering@redhat.com>
32384
32385         hash-tests: add a loop around the small tests
32386         * tests/test-hash.c (main): Repeat small tests with selected
32387         small initial table sizes.
32388
32389 2009-06-17  Eric Blake  <ebb9@byu.net>
32390
32391         hash: minor cleanups
32392         * lib/hash.h (hash_entry): Make opaque, by moving...
32393         * lib/hash.c (hash_entry): ...here.
32394         (hash_insert): Clarify restrictions on what can be inserted.
32395         (hash_get_next): Clarify when it is safe to remove an element
32396         during traversal.
32397         (check_tuning): Skip verification when tuning is known safe.
32398         (hash_initialize): Clarify restrictions on tuning.
32399
32400 2009-06-17  Jim Meyering  <jim@meyering.net>
32401         and Eric Blake  <ebb9@byu.net>
32402
32403         hash-tests: new module
32404         * modules/hash-tests: New file.
32405         * tests/test-hash.c: New file.
32406
32407 2009-06-17  Eric Blake  <ebb9@byu.net>
32408
32409         strstr-simple: document new module
32410         * MODULES.html.sh: Document new module.
32411
32412         strstr, strcasestr: replace on platforms with broken memchr
32413         * modules/strstr: Split into...
32414         * modules/strstr-simple: ...new module that does not care about
32415         performance, but does care about glibc bug.
32416         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
32417         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
32418         if platform memchr is broken, per Debian bug 521737.
32419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
32420         memchr.
32421         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
32422         * doc/posix-functions/strstr.texi (strstr): Document the fix.
32423         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32424         * modules/mountlist (Depends-on): Add strstr-simple.
32425         * modules/gen-uni-tables (Depends-on): Likewise.
32426         * modules/argz (Depends-on): Add strstr.
32427
32428 2009-06-17  Bruno Haible  <bruno@clisp.org>
32429
32430         * modules/posix_spawn-internal (Depends-on): Add errno.
32431
32432 2009-06-17  Bruno Haible  <bruno@clisp.org>
32433
32434         Define missing ESTALE on Interix 3.5.
32435         * lib/errno.in.h (ESTALE): Assign a value if missing.
32436         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
32437         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
32438         missing.
32439         * doc/posix-headers/errno.texi: Mention the Interix bug.
32440         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
32441
32442 2009-06-15  Eric Blake  <ebb9@byu.net>
32443
32444         memchr, memchr2: add valgrind exception
32445         * lib/memchr.valgrind: New file.
32446         * lib/memchr2.valgrind: New file.
32447         * modules/memchr (Files): Distribute valgrind file.
32448         * modules/memchr2 (Files): Likewise.
32449
32450         docs: memchr is no longer obsolete
32451         * MODULES.html.sh: Move memchr from obsolete to string.h section.
32452         * lib/string.in.h (memchr): Simplify logic.
32453
32454 2009-06-14  Jim Meyering  <meyering@redhat.com>
32455
32456         link-follow: fix the "checking..." message to not mention trailing slash
32457         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
32458         never considered trailing slashes.
32459
32460 2009-06-14  Bruno Haible  <bruno@clisp.org>
32461
32462         * m4/memchr.m4: Mention also the bug on IA-64.
32463         * doc/posix-functions/memchr.texi: Likewise.
32464
32465 2009-06-12  Eric Blake  <ebb9@byu.net>
32466
32467         memchr: detect broken x86_64 and alpha implementations
32468         * modules/memchr-tests (Depends-on): Move mmap detection...
32469         * modules/memchr (Depends-on): ...here.
32470         (configure.ac): Set indicator.
32471         * lib/string.in.h (memchr): Declare replacement.
32472         * modules/string (Makefile.am): Trigger replacement.
32473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32474         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
32475         bugs.
32476         * doc/posix-functions/memchr.texi (memchr): Document the bug.
32477         * modules/getpagesize (License): Relax license.
32478
32479 2009-06-11  Bruno Haible  <bruno@clisp.org>
32480
32481         * lib/idpriv.h: Add more references.
32482
32483 2009-06-08  Bruno Haible  <bruno@clisp.org>
32484
32485         Tests for module 'idpriv-droptemp'.
32486         * modules/idpriv-droptemp-tests: New file.
32487         * tests/test-idpriv-droptemp.sh: New file.
32488         * tests/test-idpriv-droptemp.su.sh: New file.
32489         * tests/test-idpriv-droptemp.c: New file.
32490
32491         New module 'idpriv-droptemp'.
32492         * lib/idpriv-droptemp.c: New file.
32493         * modules/idpriv-droptemp: New file.
32494
32495 2009-06-08  Bruno Haible  <bruno@clisp.org>
32496
32497         Tests for module 'idpriv-drop'.
32498         * modules/idpriv-drop-tests: New file.
32499         * tests/test-idpriv-drop.sh: New file.
32500         * tests/test-idpriv-drop.su.sh: New file.
32501         * tests/test-idpriv-drop.c: New file.
32502
32503         New module 'idpriv-drop'.
32504         * lib/idpriv.h: New file.
32505         * lib-idpriv-drop.c: New file.
32506         * m4/idpriv.m4: New file.
32507         * modules/idpriv-drop: New file.
32508
32509 2009-06-08  Bruno Haible  <bruno@clisp.org>
32510
32511         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
32512         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32513         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32514         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32515         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32516         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32517         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32518
32519 2009-06-08  Eric Blake  <ebb9@byu.net>
32520
32521         test-strstr: use memory fence, when possible
32522         * tests/test-strstr.c (main): Use memory fence, in order to be
32523         more likely to trigger Debian bug 521737.
32524         * modules/strstr-tests (Files): Pull in additional files.
32525
32526         memchr: no longer obsolete, for wider field testing
32527         * modules/memchr (Status, Notice): Delete, this module is no
32528         longer obsolete.
32529         * modules/vasnprintf (Depends-on): Add memchr.
32530
32531 2009-06-07  Jim Meyering  <meyering@redhat.com>
32532
32533         hash: declare some functions with the warn_unused_result attribute
32534         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
32535
32536 2009-06-07  Bruno Haible  <bruno@clisp.org>
32537
32538         * tests/test-alignof.c: Don't test int64_t if it does not exist.
32539         Reported by Eric Blake.
32540
32541 2009-06-06  Eric Blake  <ebb9@byu.net>
32542
32543         test-alignof: fix typo with long double
32544         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
32545         compiler error.
32546
32547 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
32548
32549         Escape non-texinfo { and }s.
32550         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
32551         markup error.
32552
32553 2009-06-04  Jim Meyering  <meyering@redhat.com>
32554
32555         gitlog-to-changelog: don't infloop on an empty commit log
32556         * build-aux/gitlog-to-changelog: Warn about an empty log message.
32557         Reported by Boris Petersen <transacid@centerim.org>.
32558
32559 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
32560
32561         version-etc: extend for packagers
32562         Add three new configure options, intended for packagers:
32563           --with-packager="packager name"
32564           --with-packager-version="packager-specific version"
32565           --with-packager-bug-reports="packager bug reporting"
32566         An example with coreutils:
32567           $ ./configure \
32568             --with-packager=Gentoo \
32569             --with-packager-bug-report=http://bugs.gentoo.org/ \
32570             --with-packager-version="patchset 1.6"
32571           $ ./src/ls --version | head -n2
32572           ls (GNU coreutils) 7.1-dirty
32573           Packaged by Gentoo (patchset 1.6)
32574         Note that the bug reporting info via --help doesn't show up because
32575         coreutils uses its own custom emit_bug_reporting_address() implementation
32576         in src/system.h.  If it didn't, it'd look like:
32577           $ ./src/ls --help | tail -n4
32578           Report bugs to <bug-coreutils@gnu.org>.
32579           Report Gentoo bugs to <http://bugs.gentoo.org/>.
32580           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
32581           General help using GNU software: <http://www.gnu.org/gethelp/>.
32582         * lib/version-etc.c: Print new information, if provided.
32583         * m4/version-etc.m4: New file.
32584         * modules/version-etc (Files): Add m4/version-etc.m4.
32585         (configure.ac): Add gl_VERSION_ETC.
32586
32587 2009-05-31  Bruno Haible  <bruno@clisp.org>
32588
32589         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
32590         and 'int64_t'.
32591         * modules/alignof-tests (Dependencies): Add stdint.
32592         Reported by Eric Blake.
32593
32594 2009-05-31  Bruno Haible  <bruno@clisp.org>
32595
32596         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
32597         restriction due to compiler bugs.
32598         Reported by Eric Blake.
32599
32600 2009-05-31  Simon Josefsson  <simon@josefsson.org>
32601             Bruno Haible  <bruno@clisp.org>
32602
32603         Fix test-alignof failure.
32604         * lib/alignof.h (alignof_slot): New macro.
32605         (alignof_type): New macro, with the same semantics as the previous
32606         'alignof'.
32607         (alignof): Alias to alignof_slot.
32608         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
32609         check that the results are usable as constant expressions.
32610
32611 2009-05-31  Bruno Haible  <bruno@clisp.org>
32612
32613         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
32614         * tests/test-memchr.c (main): Check that memchr does not read past the
32615         first occurrence of the byte.
32616         * tests/test-strstr.c (main): Update comment.
32617         Suggested by Eric Blake.
32618
32619 2009-05-30  Bruno Haible  <bruno@clisp.org>
32620
32621         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
32622         detail how to use dumpbin.
32623         Reported by David Byron <dbyron@dbyron.com>.
32624
32625 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32626
32627         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
32628
32629 2009-06-02  Simon Josefsson  <simon@josefsson.org>
32630
32631         * m4/manywarnings.m4: Add GCC 4.4 warnings.
32632
32633 2009-05-28  Bruno Haible  <bruno@clisp.org>
32634
32635         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
32636         build-aux/ files.
32637
32638 2009-05-28  Simon Josefsson  <simon@josefsson.org>
32639
32640         * gnulib-tool (func_import): Transform license on build-aux/ files too.
32641
32642 2009-05-27  Simon Josefsson  <simon@josefsson.org>
32643
32644         * gnulib-tool (sed_transform_main_lib_file)
32645         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
32646         regexps.
32647
32648 2009-05-26  Simon Josefsson  <simon@josefsson.org>
32649
32650         * tests/test-strstr.c: Add another self-test.
32651         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
32652         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
32653
32654 2009-05-23  Bruno Haible  <bruno@clisp.org>
32655
32656         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
32657         change.
32658
32659 2009-05-21  Bruno Haible  <bruno@clisp.org>
32660
32661         Simplify use of mode_t varargs.
32662         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
32663         uses 'mode_t' or 'int'.
32664         * lib/openat.c (openat): Likewise.
32665         * lib/open-safer.c (open_safer): Likewise.
32666         * m4/mode_t.m4: New file.
32667         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
32668         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
32669         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
32670         * modules/open (Files): Add m4/mode_t.m4.
32671         * modules/openat (Files): Likewise.
32672         * modules/fcntl-safer (Files): Likewise.
32673         Suggested by Eric Blake.
32674
32675 2009-05-21  Pádraig Brady  <P@draigbrady.com>
32676
32677         * doc/glibc-functions/fallocate.texi: New file.
32678         * doc/gnulib.texi: Include it.
32679
32680 2009-05-21  Eric Blake  <ebb9@byu.net>
32681             Bruno Haible  <bruno@clisp.org>
32682
32683         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
32684         invocations.
32685         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32686
32687 2009-05-21  Eric Blake  <ebb9@byu.net>
32688             Bruno Haible  <bruno@clisp.org>
32689
32690         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
32691         include_next. Fix of 2008-11-20 commit.
32692         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
32693         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
32694         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
32695         NEXT_MATH_H.
32696         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
32697         instead of NEXT_MATH_H.
32698
32699 2009-05-21  Bruno Haible  <bruno@clisp.org>
32700
32701         Avoid redefinition warnings for SIZE_MAX.
32702         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
32703         Reported by Simon Josefsson.
32704
32705 2009-05-21  Bruno Haible  <bruno@clisp.org>
32706
32707         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
32708         AC_CACHE_VAL.
32709
32710 2009-05-20  Bruno Haible  <bruno@clisp.org>
32711
32712         Make zeroptr.h work on mingw.
32713         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
32714         mprotect.
32715         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
32716         * modules/memchr2-tests (configure.ac): Likewise.
32717         * modules/memcmp-tests (configure.ac): Likewise.
32718         * modules/memmem-tests (configure.ac): Likewise.
32719         * modules/memrchr-tests (configure.ac): Likewise.
32720         Reported by Simon Josefsson.
32721
32722 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32723
32724         * tests/test-glob.c: Include string.h for strcmp prototype.
32725
32726 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32727
32728         * modules/getdelim (Depends-on): Add explicit stdint, although it
32729         was implicitly already pulled in via realloc-posix.
32730         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
32731
32732 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32733
32734         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
32735         G. Christensen" <tgc@jupiterrise.com>.
32736         * m4/sys_socket_h.m4: Check for sa_family_t.
32737         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
32738         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
32739         * tests/test-sys_socket.c: Check that sa_family_t works.
32740
32741 2009-05-18  Eric Blake  <ebb9@byu.net>
32742
32743         maint.mk: allow gnulib_dir in VPATH build
32744         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
32745
32746 2009-05-15  Jim Meyering  <meyering@redhat.com>
32747
32748         maint.mk: Give gnulib_dir a default definition.
32749         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
32750         Thus, most packages no longer need to specify this variable in cfg.mk
32751
32752 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
32753
32754         rename.m4: fix typos that would make non-mingw cross-configure fail
32755         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
32756
32757 2009-05-13  Eric Blake  <ebb9@byu.net>
32758
32759         mmap-anon: avoid out-of-order autoconf expansion
32760         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
32761         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
32762         * modules/memchr-tests (Depends-on): Add extensions.
32763         * modules/memchr2-tests (Depends-on): Add extensions.
32764         * modules/memcmp-tests (Depends-on): Add extensions.
32765         * modules/memmem-tests (Depends-on): Add extensions.
32766         * modules/memrchr-tests (Depends-on): Add extensions.
32767
32768 2009-05-13  Bruno Haible  <bruno@clisp.org>
32769
32770         Make some tests ISO C 99 compliant.
32771         * tests/zerosize-ptr.h: New file.
32772         * tests/test-memchr.c: Include zerosize-ptr.h.
32773         (main): Use a zero-size object pointer instead of NULL.
32774         * tests/test-memchr2.c: Include zerosize-ptr.h.
32775         (main): Use a zero-size object pointer instead of NULL.
32776         * tests/test-memcmp.c: Include zerosize-ptr.h.
32777         (main): Use a zero-size object pointer instead of NULL.
32778         * tests/test-memmem.c: Include zerosize-ptr.h.
32779         (main): Use a zero-size object pointer instead of NULL.
32780         * tests/test-memrchr.c: Include zerosize-ptr.h.
32781         (main): Use a zero-size object pointer instead of NULL.
32782         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
32783         m4/mmap-anon.m4.
32784         (Depends-on): Add getpagesize.
32785         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32786         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
32787         m4/mmap-anon.m4.
32788         (Depends-on): Add getpagesize.
32789         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32790         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
32791         m4/mmap-anon.m4.
32792         (Depends-on): Add getpagesize.
32793         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32794         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
32795         m4/mmap-anon.m4.
32796         (Depends-on): Add getpagesize.
32797         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32798         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
32799         m4/mmap-anon.m4.
32800         (Depends-on): Add getpagesize.
32801         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32802
32803 2009-05-12  Bruno Haible  <bruno@clisp.org>
32804
32805         Tests for module 'alignof'.
32806         * modules/alignof-tests: New file.
32807         * tests/test-alignof.c: New file.
32808
32809 2009-05-12  Bruno Haible  <bruno@clisp.org>
32810
32811         Fix alignof macro.
32812         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
32813         vendor compilers that are always correct.
32814
32815 2009-05-12  Bruno Haible  <bruno@clisp.org>
32816
32817         Make the MAP_ANONYMOUS detection work on HP-UX 11.
32818         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
32819         not whether its fully works.
32820
32821 2009-05-12  Bruno Haible  <bruno@clisp.org>
32822
32823         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
32824
32825 2009-05-12  Jim Meyering  <meyering@redhat.com>
32826
32827         * top/maint.mk: Adjust backslash alignment.
32828
32829 2009-05-11  Simon Josefsson  <simon@josefsson.org>
32830
32831         * top/maint.mk: Make $(srcdir)/build-aux configurable.
32832
32833 2009-05-11  Eric Blake  <ebb9@byu.net>
32834
32835         argp: avoid undefined behavior
32836         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
32837         macros.
32838
32839 2009-05-08  Simon Josefsson  <simon@josefsson.org>
32840
32841         * tests/test-vc-list-files-git.sh: Do git config of user.email and
32842         user.name to prevent git commit from complaining.
32843
32844 2009-05-10  Bruno Haible  <bruno@clisp.org>
32845
32846         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
32847         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
32848         it rewrites every file name only once.
32849         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
32850
32851 2009-05-08  Bruno Haible  <bruno@clisp.org>
32852
32853         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
32854         instead of 'max'.
32855
32856 2009-05-08  Simon Josefsson  <simon@josefsson.org>
32857
32858         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
32859         sockaddr_storage test.
32860
32861 2009-05-07  Simon Josefsson  <simon@josefsson.org>
32862
32863         * modules/sys_socket (Makefile.am): Substitute
32864         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
32865         * m4/sys_socket_h.m4: Check for sockaddr_storage.
32866         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
32867         * tests/test-sys_socket.c: Check sockaddr_storage.
32868
32869 2009-05-08  Bruno Haible  <bruno@clisp.org>
32870
32871         New module 'alignof'.
32872         * lib/alignof.h: New file.
32873         * modules/alignof: New file.
32874
32875 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32876             Bruno Haible  <bruno@clisp.org>
32877
32878         Fix test-file-has-acl on FreeBSD.
32879         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
32880         mask is implicitly added.
32881         * tests/test-file-has-acl.c: Include <signal.h>.
32882         (main): Terminate the test after 5 seconds.
32883         * modules/acl-tests (configure.ac): Check for alarm function.
32884
32885 2009-05-04  Bruno Haible  <bruno@clisp.org>
32886
32887         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
32888         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
32889         * modules/errno (configure.ac): Drop AC_REQUIRE.
32890         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
32891         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
32892
32893 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32894
32895         * modules/glob-tests: New module.
32896         * tests/test-glob.c: Add.
32897
32898 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32899
32900         * modules/fnmatch-tests: New module.
32901         * tests/test-fnmatch.c: Add.
32902
32903 2009-05-04  Eric Blake  <ebb9@byu.net>
32904
32905         maint: make the new no-submodule-changes rule VPATH-safe
32906         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
32907
32908 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32909             Bruno Haible  <bruno@clisp.org>
32910
32911         acl: Fix infinite loop on FreeBSD.
32912         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
32913         of return value from acl_get_entry.
32914         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
32915         Likewise.
32916
32917 2009-05-03  Bruno Haible  <bruno@clisp.org>
32918
32919         * lib/acl-internal.h (acl_entries): Clarify return value.
32920         * lib/acl_entries.c (acl_entries): Likewise.
32921
32922 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32923
32924         Bug fix in acl module.
32925         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
32926
32927 2009-05-03  Bruno Haible  <bruno@clisp.org>
32928
32929         Create gperf-generated file in the source dir, not in the build dir.
32930         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
32931         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
32932         * modules/unicase/locale-language (unicase/locale-languages.h):
32933         Likewise.
32934         * modules/unicase/special-casing (unicase/special-casing-table.h):
32935         Likewise.
32936         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
32937         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
32938         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
32939         Reported by Ralf Wildenhues.
32940
32941 2009-05-03  Bruno Haible  <bruno@clisp.org>
32942
32943         * modules/fnmatch (Description, configure.ac): Taken from
32944         fnmatch-posix.
32945         * modules/fnmatch-posix: Turn into a symbolic reference to the
32946         'fnmatch' module, and deprecate.
32947         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
32948
32949 2009-05-03  Bruno Haible  <bruno@clisp.org>
32950
32951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
32952         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
32953         Reported by Ralf Wildenhues.
32954
32955 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32956
32957         * m4/fnmatch.m4: Fix fnmatch re-define.
32958
32959 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32960
32961         priv-set: new module and tests; adapt write-any-file
32962         * lib/priv-set.c: New file.
32963         * lib/priv-set.h: New file.
32964         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
32965         * lib/write-any-file.c: Simplify by using priv-set module.
32966         * m4/priv-set.m4: New file.
32967         * modules/priv-set: New file.
32968         * modules/unlinkdir: Add dependency on priv-set module.
32969         * modules/write-any-file: Likewise.
32970
32971         Tests for module 'priv-set'.
32972         * modules/priv-set-tests: New file.
32973         * tests/test-priv-set.c: New file.
32974
32975 2009-05-03  Jim Meyering  <meyering@redhat.com>
32976             Bruno Haible  <bruno@clisp.org>
32977
32978         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
32979         use the converted UTF-8 variant of the name instead.
32980
32981 2009-05-03  Jim Meyering  <meyering@redhat.com>
32982
32983         tests: tighten some getdate tests
32984         * tests/test-getdate.c (main): Tighten tests: require equality,
32985         not just greater than.  Set TZ envvar to UTC0.
32986
32987 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32988
32989         getdate: correctly interpret "next monday" when run on a Monday
32990         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
32991         that e.g., "next tues" (when run on a tuesday) results in a date
32992         that is one week in the future, and not today's date.
32993         I.e., add a week when the wday is the same as the current one.
32994         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
32995         and earlier by Martin Bernreuther and Jan Minář.
32996         * tests/test-getdate.c (main): Check that "next DAY" is always in
32997         the future and that "last DAY" is always in the past.
32998
32999 2009-05-02  Jim Meyering  <meyering@redhat.com>
33000
33001         build: ensure that a release build fails when a submodule is unclean
33002         * top/maint.mk (no-submodule-changes): New rule.
33003         (alpha beta major): Depend on it.
33004
33005 2009-05-02  Bruno Haible  <bruno@clisp.org>
33006
33007         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
33008         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
33009         shell variable gl_fnmatch_required to detect which variant is
33010         requested.
33011         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
33012         gl_FUNC_FNMATCH_POSIX.
33013         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
33014         exclude fnmatch-posix.
33015
33016 2009-05-02  Bruno Haible  <bruno@clisp.org>
33017
33018         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
33019         * modules/mbsrtowcs (License): Change to LGPLv2+.
33020         * modules/strnlen1 (License): Likewise.
33021         Reported by Simon Josefsson.
33022
33023 2009-05-02  Bruno Haible  <bruno@clisp.org>
33024
33025         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
33026         "cross".
33027         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
33028         gnulib-tool was called with option --source-base=lib.
33029
33030 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33031
33032         Use automake *-local hooks without commands, for extensibility.
33033         * modules/localcharset (Makefile.am): Rename install-exec-local
33034         rule to install-exec-localcharset, and make it a prerequisite of
33035         install-exec-local.  Likewise, rename the uninstall-local rule to
33036         uninstall-localcharset, and make it a prerequisite of the former.
33037
33038 2009-05-01  Bruno Haible  <bruno@clisp.org>
33039
33040         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
33041         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33042         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
33043         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
33044         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
33045         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33046         m4/locale-zh.m4, m4/codeset.m4.
33047
33048         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
33049         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
33050         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
33051         m4/locale-zh.m4.
33052
33053         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
33054         REPLACE_WCRTOMB if mbstate_t must be replaced.
33055         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
33056         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
33057
33058 2009-05-01  Bruno Haible  <bruno@clisp.org>
33059
33060         Avoid compiler warnings when redefining macros defined by <libintl.h>.
33061         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
33062         dngettext, dcngettext, textdomain, bindtextdomain,
33063         bind_textdomain_codeset): Undefine before redefining.
33064
33065 2009-04-30  Bruno Haible  <bruno@clisp.org>
33066
33067         Fix bug introduced on 2009-04-25.
33068         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
33069         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
33070         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
33071         is defined.
33072         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
33073         is defined.
33074         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
33075         is defined.
33076         Reported by Elbert_Pol <elbert.pol@gmail.com>.
33077
33078 2009-04-28  Bruno Haible  <bruno@clisp.org>
33079
33080         Comment tweaks.
33081         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
33082         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
33083         * lib/unicase.h (u*_casexfrm): Likewise.
33084         Reported by Paolo Bonzini.
33085
33086 2009-04-28  Bruno Haible  <bruno@clisp.org>
33087
33088         Fix a compilation error.
33089         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
33090         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
33091         Reported by Jim Meyering.
33092
33093 2009-04-27  Bruno Haible  <bruno@clisp.org>
33094
33095         New module 'libunistring'.
33096         * modules/libunistring: New file.
33097         * m4/libunistring.m4: New file.
33098         * MODULES.html.sh (Unicode string functions): Add it.
33099
33100 2009-04-27  Eric Blake  <ebb9@byu.net>
33101
33102         maint.mk: allow package-specific header to provide <config.h>
33103         * top/maint.mk (sc_require_config_h): New variable.
33104         (sc_require_config_h, sc_require_config_h_first): Use it.
33105
33106 2009-04-27  Simon Josefsson  <simon@josefsson.org>
33107
33108         * top/maint.mk (sc_avoid_if_before_free): Except
33109         useless-if-before-free script.
33110
33111 2009-04-27  Eric Blake  <ebb9@byu.net>
33112
33113         maintainer-makefile: depend on all required helper scripts
33114         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
33115         useless-if-before-free.
33116         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
33117         version, rather than assuming gnulib checkout is available.
33118         Reported by Simen Josefsson.
33119
33120 2009-04-26  Bruno Haible  <bruno@clisp.org>
33121
33122         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
33123         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
33124         "../" or "..".
33125
33126 2009-04-26  Bruno Haible  <bruno@clisp.org>
33127
33128         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
33129         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
33130         AC_LIB_HAVE_LINKFLAGS.
33131
33132 2009-04-26  Bruno Haible  <bruno@clisp.org>
33133
33134         Simplify calling convention of u*_conv_from_encoding.
33135         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
33136         u32_conv_from_encoding): Expect a resultbuf argument and return the
33137         result directly as a pointer.
33138         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
33139         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
33140         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
33141         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
33142         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
33143         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33144         Update.
33145         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
33146         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
33147         * lib/vasnprintf.c (VASNPRINTF): Update.
33148         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
33149         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
33150         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
33151         * NEWS: Mention the change.
33152
33153 2009-04-26  Bruno Haible  <bruno@clisp.org>
33154
33155         Simplify calling convention of u*_conv_to_encoding.
33156         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33157         u32_conv_to_encoding): Expect a resultbuf argument and return the
33158         result directly as a pointer.
33159         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33160         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
33161         freeing scaled_offsets if mem_iconveha failed.
33162         * lib/unicase/u-casexfrm.h (FUNC): Update.
33163         * lib/uninorm/u-normxfrm.h (FUNC): Update.
33164         * lib/vasnprintf.c (VASNPRINTF): Update.
33165         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
33166         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
33167         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
33168         * NEWS: Mention the change.
33169
33170 2009-04-26  Bruno Haible  <bruno@clisp.org>
33171
33172         Avoid test failures on AIX and OSF/1.
33173         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
33174         malloc(0).
33175         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
33176         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
33177         Likewise.
33178         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
33179         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
33180         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
33181         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
33182         * doc/posix-functions/malloc.texi: Document the portability problem
33183         related to malloc(0).
33184
33185 2009-04-26  Bruno Haible  <bruno@clisp.org>
33186
33187         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
33188         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
33189         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
33190
33191 2009-04-25  Bruno Haible  <bruno@clisp.org>
33192
33193         Avoid link error when creating a namespace clean library.
33194         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
33195         as macro with arguments if already defined as an alias.
33196         * lib/signbitf.c (gl_signbitf): Don't undefine.
33197         * lib/signbitd.c (gl_signbitd): Don't undefine.
33198         * lib/signbitl.c (gl_signbitl): Don't undefine.
33199
33200 2009-04-25  Jim Meyering  <meyering@redhat.com>
33201
33202         vc-list-files: fix another quoting bug
33203         * build-aux/vc-list-files: Avoid sed backslash expansion
33204         of pathological directory names.
33205
33206 2009-04-25  Eric Blake  <ebb9@byu.net>
33207
33208         vc-list-files: fix shell quoting error
33209         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
33210         timestamp.
33211
33212 2009-04-25  Jim Meyering  <meyering@redhat.com>
33213
33214         vc-list-files: restore lost functionality with subdir argument
33215         * build-aux/vc-list-files: When given a non-"." sub-directory
33216         argument, substitute the $dir/ prefix back onto each resulting name.
33217         Otherwise, coreutils' root_tests check would fail.
33218
33219 2009-04-24  Eric Blake  <ebb9@byu.net>
33220
33221         vc-list-files: ignore git symlinks
33222         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
33223         than ls-files, to ignore git symlinks.
33224
33225         maint.mk: import improvements from m4
33226         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
33227         (move_if_change): Delete unused macro.
33228         (news-date-check, vc-diff-check): Support VPATH builds.
33229         (announcement): Likewise.  Split --bootstrap-tools list...
33230         (boostrap-tools): ...into separate list, which can be overridden
33231         in cfg.mk.
33232         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
33233         requiring dependency on useless-if-before-free module.
33234         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
33235         Support VPATH builds.
33236
33237 2009-04-24  Jim Meyering  <meyering@redhat.com>
33238
33239         maint.mk: remove coreutils-specific rules and variables
33240         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
33241         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
33242         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
33243
33244         maint.mk: remove obsolete rule
33245         * top/maint.mk (rel-check): Remove rule.
33246         (WGET, WGETFLAGS): Remove now-unused variables.
33247
33248 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33249
33250         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
33251         consistency.
33252
33253         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
33254         '$(PATH_SEPARATOR)' instead of ':'.
33255
33256 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33257
33258         * lib/getopt1.c (main): Use 'const' for static array.
33259
33260 2009-04-24  Simon Josefsson  <simon@josefsson.org>
33261
33262         * top/maint.mk: Sync with coreutils.
33263         * NEWS: Explain incompatibilities.
33264
33265 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33266             Bruno Haible  <bruno@clisp.org>
33267
33268         Fix cross-compilation results.
33269         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
33270         statement, as third argument of AC_TRY_RUN.
33271         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
33272         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
33273         Likewise.
33274         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
33275         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
33276         Likewise.
33277         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33278         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
33279         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
33280
33281 2009-04-20  Bruno Haible  <bruno@clisp.org>
33282
33283         Avoid test failure on mingw.
33284         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
33285
33286 2009-04-20  Bruno Haible  <bruno@clisp.org>
33287
33288         Avoid compilation error on mingw.
33289         * modules/localename-tests (Depends-on): Add locale.
33290
33291 2009-04-19  Bruno Haible  <bruno@clisp.org>
33292
33293         Support for building a shared library on Windows platforms.
33294         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
33295         (main): Test the presence of UNINORM_NFC here.
33296         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
33297         (main): Test the presence of UNINORM_NFD here.
33298         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
33299         (main): Test the presence of UNINORM_NFKC here.
33300         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
33301         (main): Test the presence of UNINORM_NFKD here.
33302
33303 2009-04-19  Bruno Haible  <bruno@clisp.org>
33304
33305         Avoid a compiler warning.
33306         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
33307         Change type of variable 'sequence'.
33308
33309 2009-04-19  Bruno Haible  <bruno@clisp.org>
33310
33311         * modules/configmake (Makefile.am): When the contents of configmake.h
33312         does not change, arrange to preserve its modification time.
33313
33314 2009-04-17  Simon Josefsson  <simon@josefsson.org>
33315
33316         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
33317         gettext domain.
33318
33319 2009-04-16  Jim Meyering  <meyering@redhat.com>
33320
33321         useless-if-before-free: improve conversion code
33322         * build-aux/useless-if-before-free: Adjust code-in-comment to match
33323         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
33324
33325 2009-04-14  Bruno Haible  <bruno@clisp.org>
33326
33327         * modules/fcntl (Depends-on): Add extensions.
33328         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
33329
33330 2009-04-12  Ben Pfaff  <blp@gnu.org>
33331
33332         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
33333         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
33334
33335 2009-03-20  Ben Pfaff  <blp@gnu.org>
33336
33337         Make rename replace existing destinations on Windows.
33338         * m4/rename.m4: Add test for Mingw.
33339         * lib/rename.c: Add rename replacement that uses MoveFileEx with
33340         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
33341         * doc/posix-functions/rename.texi: Document.
33342
33343 2009-04-10  Bruno Haible  <bruno@clisp.org>
33344
33345         New include file "iconveh.h".
33346         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
33347         * lib/striconveh.h: Include it.
33348         (enum iconv_ilseq_handler): Remove definition.
33349         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
33350         striconveh.h.
33351         * lib/striconveha.c: Include striconveh.h.
33352         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
33353         * modules/striconveh (Files): Add lib/iconveh.h.
33354         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
33355         lib/striconveh.h.
33356
33357 2009-04-10  Bruno Haible  <bruno@clisp.org>
33358
33359         * lib/uniconv.h: Update comment.
33360
33361 2009-04-10  Bruno Haible  <bruno@clisp.org>
33362
33363         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
33364         always.
33365         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
33366         * lib/unistr/u16-mbtouc-aux.c: Likewise.
33367         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
33368         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
33369         "unistring-notinline.h", so that the function gets defined always.
33370         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
33371         * lib/unistr/u8-uctomb.c: Likewise.
33372         * lib/unistr/u16-mbtouc.c: Likewise.
33373         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
33374         * lib/unistr/u16-uctomb.c: Likewise.
33375         * lib/unistr/u32-mbtouc.c: Likewise.
33376         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
33377         * lib/unistr/u32-uctomb.c: Likewise.
33378
33379 2009-04-10  Bruno Haible  <bruno@clisp.org>
33380
33381         Mark 'utime' obsolete.
33382         * modules/utime (Status, Notice): New sections.
33383         Suggested by Jim Meyering.
33384
33385         Fix cross-compile guess for utime test.
33386         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
33387         autoconf.
33388         * doc/posix-functions/utime.texi: Give more precisions.
33389         Reported by Jan <ipif@ymail.com>.
33390
33391 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
33392
33393         filevercmp: correct today's change
33394         * lib/filevercmp.c: Also handle coreutils' test inputs.
33395         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
33396
33397         Fix regression in 'filevercmp' module. Thanks Sven Joachim
33398         for reporting it.
33399         * lib/filevercmp.c: Special handle for "", "." and "..".
33400         * tests/test-filevercmp.c: Enlarge the set suite.
33401
33402 2009-04-07  Jim Meyering  <meyering@redhat.com>
33403
33404         useless-if-before-free: show how to remove braced useless free, too
33405         * build-aux/useless-if-before-free: still only in a comment, though.
33406
33407 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
33408
33409         maint.mk: import changes to syntax-check macros from coreutils
33410         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
33411         Use them in the relevant macros.
33412
33413 2009-04-06  Bruno Haible  <bruno@clisp.org>
33414
33415         Fix unportable use of bit-fields.
33416         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
33417         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
33418         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
33419
33420 2009-04-06  Bruno Haible  <bruno@clisp.org>
33421
33422         Avoid test failures on AIX and OSF/1.
33423         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
33424         that malloc(0) = NULL.
33425         * tests/unicase/test-u8-tolower.c (check): Likewise.
33426         * tests/unicase/test-u8-totitle.c (check): Likewise.
33427         * tests/unicase/test-u8-toupper.c (check): Likewise.
33428         * tests/unicase/test-u16-casefold.c (check): Likewise.
33429         * tests/unicase/test-u16-tolower.c (check): Likewise.
33430         * tests/unicase/test-u16-totitle.c (check): Likewise.
33431         * tests/unicase/test-u16-toupper.c (check): Likewise.
33432         * tests/unicase/test-u32-casefold.c (check): Likewise.
33433         * tests/unicase/test-u32-tolower.c (check): Likewise.
33434         * tests/unicase/test-u32-totitle.c (check): Likewise.
33435         * tests/unicase/test-u32-toupper.c (check): Likewise.
33436         * tests/uninorm/test-u8-nfc.c (check): Likewise.
33437         * tests/uninorm/test-u8-nfd.c (check): Likewise.
33438         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
33439         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
33440         * tests/uninorm/test-u16-nfc.c (check): Likewise.
33441         * tests/uninorm/test-u16-nfd.c (check): Likewise.
33442         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
33443         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
33444         * tests/uninorm/test-u32-nfc.c (check): Likewise.
33445         * tests/uninorm/test-u32-nfd.c (check): Likewise.
33446         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
33447         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
33448
33449 2009-04-05  Bruno Haible  <bruno@clisp.org>
33450
33451         Work around an autoconf limitation.
33452         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
33453         comment line if it would be longer than 3 KB.
33454
33455 2009-04-05  Bruno Haible  <bruno@clisp.org>
33456
33457         Avoid test failure with libiconv-1.13.
33458         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
33459         of the expected test results.
33460
33461 2009-04-05  Bruno Haible  <bruno@clisp.org>
33462
33463         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
33464         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
33465         that it should be installed.
33466
33467 2009-04-05  Bruno Haible  <bruno@clisp.org>
33468
33469         * gnulib-tool: New option --copy-file.
33470         (func_usage): Document it.
33471         (func_dest_tmpfilename): Moved out of func_import.
33472         (func_add_file, func_update_file): New functions, extracted from
33473         func_import.
33474         (func_import): Update.
33475
33476 2009-04-05  Karl Berry  <karl@gnu.org>
33477
33478         * README: prominently mention gnulib-tool.
33479         Rearrange sections so getting the code is near the top.
33480
33481 2009-04-05  Bruno Haible  <bruno@clisp.org>
33482
33483         * lib/unicase.h: Mention u*_cmp2.
33484         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33485         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
33486         * lib/unicase/ulc-casecmp.c: Likewise.
33487         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
33488         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
33489         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
33490         unistr/u8-cmp.
33491         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
33492         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
33493         unistr/u16-cmp.
33494         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
33495         unistr/u32-cmp.
33496
33497         * lib/uninorm.h: Mention u*_cmp2.
33498         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
33499         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
33500         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
33501         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
33502         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
33503         unistr/u8-cmp.
33504         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
33505         unistr/u16-cmp.
33506         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
33507         unistr/u32-cmp.
33508
33509         New module 'unistr/u32-cmp2'.
33510         * lib/unistr/u32-cmp2.c: New file.
33511         * modules/unistr/u32-cmp2: New file.
33512
33513         New module 'unistr/u16-cmp2'.
33514         * lib/unistr/u16-cmp2.c: New file.
33515         * modules/unistr/u16-cmp2: New file.
33516
33517         New module 'unistr/u8-cmp2'.
33518         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
33519         * lib/unistr/u8-cmp2.c: New file.
33520         * lib/unistr/u-cmp2.h: New file.
33521         * modules/unistr/u8-cmp2: New file.
33522
33523 2009-04-05  Bruno Haible  <bruno@clisp.org>
33524
33525         * lib/unictype.h (uc_property_is_valid): New macro.
33526         * tests/unictype/test-pr_byname.c (main): Use it.
33527
33528         * lib/unistr.h: Doc fixes.
33529         * lib/uniconv.h: Doc fixes.
33530         * lib/unictype.h: Doc fixes.
33531
33532 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
33533
33534         Port coreutils 7.2 to Solaris 8.
33535
33536         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
33537         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
33538         for Solaris 8.  This is a bit of a hack, as it means it's the
33539         caller's responsibility to add -lnsl if needed, but most likely it
33540         won't be needed since only getaddrinfo uses this and getaddrinfo
33541         isn't needed on Solaris 8.
33542
33543         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
33544         problem to Solaris 8 encountered with coreutils 7.2, which
33545         resulted in a message "fnmatch.c:292: warning: passing argument 4
33546         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
33547         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
33548
33549 2009-04-03  Simon Josefsson  <simon@josefsson.org>
33550
33551         * m4/ld-version-script.m4: Add FIXME comment.
33552
33553 2009-04-02  Simon Josefsson  <simon@josefsson.org>
33554
33555         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
33556         SOVERSION variable.
33557
33558 2009-04-02  Bruno Haible  <bruno@clisp.org>
33559
33560         * Makefile (info, html, dvi, pdf): Combine the rules.
33561         Suggested by Jim Meyering.
33562
33563 2009-04-01  Bruno Haible  <bruno@clisp.org>
33564
33565         * Makefile (info, html, dvi, pdf): New targets.
33566         Reported by Reuben Thomas <rrt@sc3d.org>.
33567
33568 2009-04-01  Bruno Haible  <bruno@clisp.org>
33569
33570         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
33571         can be put into PATH.
33572         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
33573
33574 2009-04-01  Bruno Haible  <bruno@clisp.org>
33575
33576         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
33577
33578 2009-04-01  Bruno Haible  <bruno@clisp.org>
33579
33580         Rename module 'visibility'.
33581         * modules/lib-symbol-visibility: Renamed from modules/visibility.
33582         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
33583         * doc/gnulib.texi: Update.
33584         * MODULES.html.sh (Misc): Update.
33585         * NEWS: Mention the change.
33586
33587 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33588
33589         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
33590         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
33591         Eric Blake <ebb9@byu.net> for review.
33592         * MODULES.html.sh: Add lib-msvc-compat.
33593         * doc/gnulib.texi: Link to new section.
33594         * m4/ld-output-def.m4: New file.
33595         * doc/ld-output-def.texi: New file.
33596
33597 2009-04-01  Simon Josefsson  <simon@josefsson.org>
33598
33599         Rename ld-version-script to lib-symbol-versions.  Suggested by
33600         Bruno Haible <bruno@clisp.org>.
33601         * modules/ld-version-script: Renamed to lib-symbol-versions.
33602         * doc/ld-version-script.texi: Fix module name.
33603         * MODULES.html.sh: Add lib-symbol-versions.
33604
33605 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33606
33607         * modules/u64-tests: New file.
33608         * tests/test-u64.c: New file.
33609
33610 2009-03-04  Simon Josefsson  <simon@josefsson.org>
33611
33612         * MODULES.html.sh: Mention u64.
33613         * modules/u64: New module.
33614         * modules/crypto/sha512: Depend on u64 module instead of providing
33615         u64.h.
33616
33617 2009-03-27  Eric Blake  <ebb9@byu.net>
33618
33619         test-strerror: make debugging EAI_SYSTEM easier
33620         * modules/getaddrinfo-tests (Depends-on): Add strerror.
33621         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
33622         failure was EAI_SYSTEM.
33623
33624 2009-03-25  Bruno Haible  <bruno@clisp.org>
33625
33626         Fix a problem with --enable-relocatable on Solaris 7.
33627         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
33628         since 2008-02-24.
33629
33630 2009-03-25  Eric Blake  <ebb9@byu.net>
33631
33632         test-sockets: avoid gcc warning
33633         * tests/test-sockets.c (main): Silence compiler warning.
33634
33635 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33636
33637         New modules nproc, pthread, contributed by Glen Lenker.
33638
33639         * MODULES.html.sh: Add pthread, nproc.
33640         * lib/nproc.c: New file.
33641         * lib/nproc.h: New file.
33642         * lib/pthread.in.h: New file.
33643         * m4/pthread.m4: New file.
33644         * modules/nproc: New file.
33645         * modules/pthread: New file.
33646
33647 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33648
33649         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
33650         New variable.
33651
33652 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
33653
33654         filevercmp: handle simple~ and numbered.~3~ backup suffixes
33655         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
33656         * tests/test-filevercmp.c: Add tests for backup suffixes.
33657
33658 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33659
33660         * modules/stdlib (Depends-on): Add stdint, needed when defining
33661         struct random_data on, for example, HP-UX 10.20.  Reported by
33662         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33663
33664 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33665
33666         * lib/readline.c (readline): Call fflush on stdout after printing
33667         prompt.
33668
33669 2009-03-20  Bruno Haible  <bruno@clisp.org>
33670
33671         Remove dependency from 'close' module to -lws2_32 on native Windows.
33672         * lib/close-hook.h: New file.
33673         * lib/close-hook.c: New file.
33674         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
33675         w32sock.h.
33676         (_gl_close_fd_maybe_socket): Remove function.
33677         (rpl_close): Invoke execute_all_close_hooks instead of
33678         _gl_close_fd_maybe_socket.
33679         * lib/sockets.c: Include close-hook.h, w32sock.h.
33680         (close_fd_maybe_socket): New function, essentially from lib/close.c.
33681         (close_sockets_hook): New variable.
33682         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
33683         (gl_sockets_cleanup): Unregister it.
33684         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
33685         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
33686         * modules/close-hook: New file.
33687         * modules/close (Files): Remove lib/w32sock.h.
33688         (Depends-on): Add close-hook.
33689         (Link): Remove section.
33690         * modules/sockets (Files): Add lib/w32sock.h.
33691         (Depends-on): Add close-hook.
33692         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
33693         invocation.
33694         * NEWS: Mention that LIB_CLOSE is gone.
33695
33696 2009-03-23  Eric Blake  <ebb9@byu.net>
33697
33698         signal-tests: test previous patch
33699         * tests/test-signal.c: New file.
33700         * modules/signal-tests: Likewise.
33701
33702         signal.h: always support 'volatile sig_atomic_t'
33703         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
33704         (gl_SIGNAL_H_DEFAULTS): Add a default.
33705         * modules/signal (Makefile.am): Substitute if needed.
33706         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
33707         users can blindly add volatile.
33708         * doc/posix-headers/signal.texi (signal.h): Document it.
33709         Reported by Matthew Woehlke.
33710
33711 2009-03-23  Jim Meyering  <meyering@redhat.com>
33712
33713         pathmax: PATH_MAX: use pathconf only when available
33714         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
33715         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
33716         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
33717         This avoids a link failure in a PSP cross-compilation environment
33718         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
33719
33720         * lib/vasnprintf.c (divide): Fix typo in comment.
33721
33722 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33723
33724         * gnulib-tool (func_filter_filelist): Fix comment.
33725
33726 2009-03-20  Bruno Haible  <bruno@clisp.org>
33727
33728         Make sockets.h self-contained.
33729         * lib/sockets.c: Include sockets.h first.
33730         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
33731
33732 2009-03-19  Eric Blake  <ebb9@byu.net>
33733
33734         doc: mention more functions added in cygwin 1.7.0
33735         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
33736         addition.
33737         * doc/posix-functions/log2f.texi: Likewise.
33738
33739 2009-03-19  Jim Meyering  <meyering@redhat.com>
33740
33741         fsusage: avoid syntax error due to statement-before-declaration
33742         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
33743         after all declarations.  Reported by Matthew Woehlke in
33744         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
33745
33746 2009-03-18  Eric Blake  <ebb9@byu.net>
33747
33748         build-aux/compile: sync from automake
33749         * build-aux/compile: New file, from automake.
33750         * config/srclist.txt: Mention build-aux/compile.
33751
33752 2009-03-17  Bruno Haible  <bruno@clisp.org>
33753
33754         * lib/git-merge-changelog.c: Fix typo in comment.
33755         Reported by Reuben Thomas <rrt@sc3d.org>.
33756
33757 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
33758
33759         * m4/regex.m4: update and improve help for
33760         --without-included-regex.
33761
33762 2009-03-17  Simon Josefsson  <simon@josefsson.org>
33763
33764         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
33765         failure on missing include files.
33766
33767 2009-03-17  Eric Blake  <ebb9@byu.net>
33768
33769         doc: mention more functions added in cygwin 1.7.0
33770         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
33771         addition.
33772         * doc/posix-functions/fwscanf.texi: Likewise.
33773         * doc/posix-functions/swprintf.texi: Likewise.
33774         * doc/posix-functions/swscanf.texi: Likewise.
33775         * doc/posix-functions/vfwprintf.texi: Likewise.
33776         * doc/posix-functions/vfwscanf.texi: Likewise.
33777         * doc/posix-functions/vswprintf.texi: Likewise.
33778         * doc/posix-functions/vswscanf.texi: Likewise.
33779         * doc/posix-functions/vwprintf.texi: Likewise.
33780         * doc/posix-functions/vwscanf.texi: Likewise.
33781         * doc/posix-functions/wcscasecmp.texi: Likewise.
33782         * doc/posix-functions/wcsdup.texi: Likewise.
33783         * doc/posix-functions/wcsftime.texi: Likewise.
33784         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33785         * doc/posix-functions/wprintf.texi: Likewise.
33786         * doc/posix-functions/wscanf.texi: Likewise.
33787         * doc/glibc-functions/gethostbyname2.texi: Likewise.
33788
33789 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33790
33791         maint.mk: really add $(AM_MAKEFLAGS)
33792         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
33793         was inadvertently omitted in the last commit.
33794         Spotted by Bruno Haible.
33795
33796         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
33797         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
33798         $(AM_MAKEFLAGS)' rather than plain `make'.
33799
33800         gnulib-tool: execute $MAKE not make
33801         * gnulib-tool: Default $MAKE to 'make'.
33802         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
33803         than make.  Initialize $MAKE in the do-autobuild script.
33804
33805         gnulib-tool: use $MAKE not make in generated files
33806         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
33807         make, in generated files.  Initialize $MAKE in the do-autobuild
33808         script.
33809
33810         * top/GNUmakefile (_have-git-version-gen): Fix typo.
33811
33812         GNUmakefile: disable parallelism only for multiple, recursive targets
33813         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
33814         additions in the Makefile.
33815         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
33816         by Automake.
33817         (.NOTPARALLEL): Only disable parallel builds if multiple targets
33818         are listed on the command line and at least one of them is
33819         listed in $(ALL_RECURSIVE_TARGETS).
33820
33821 2009-03-14  Bruno Haible  <bruno@clisp.org>
33822
33823         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
33824         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
33825         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
33826         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
33827         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
33828         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
33829         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
33830         unistr/u8-uctomb.
33831         * modules/unistr/u8-strchr (Depends-on): Likewise.
33832         * modules/unistr/u8-strrchr (Depends-on): Likewise.
33833         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
33834         unistr/u16-uctomb.
33835         * modules/unistr/u16-strchr (Depends-on): Likewise.
33836         * modules/unistr/u16-strrchr (Depends-on): Likewise.
33837
33838 2009-03-12  Bruno Haible  <bruno@clisp.org>
33839
33840         Work around select() bug on Interix 3.5.
33841         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
33842         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
33843         * m4/select.m4: New file.
33844         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
33845         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
33846         * modules/select (Files): Add m4/select.m4.
33847         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
33848         * modules/nanosleep (Depends-on): Add select.
33849         * modules/poll (Depends-on): Likewise.
33850         * doc/posix-functions/select.texi: Mention the Interix bug.
33851         Reported by Markus Duft <mduft@gentoo.org>.
33852
33853         * lib/select.c: Renamed from lib/winsock-select.c.
33854         * modules/select (Files): Add lib/select.c, remove
33855         lib/winsock-select.c.
33856         (configure.ac): Update.
33857
33858 2009-03-12  Jim Meyering  <meyering@redhat.com>
33859
33860         avoid gcc warnings about unused macro definitions
33861         * lib/readtokens.c (STREQ): Remove unused definition.
33862         * lib/xmalloc.c (SIZE_MAX): Likewise.
33863         * lib/openat-die.c (N_): Likewise.
33864         * lib/mountlist.c (SIZE_MAX): Remove definition.
33865         Instead, include <stdint.h>.
33866         * lib/readutmp.c: Likewise.
33867         * modules/readutmp (Depends-on): Add stdint.
33868         * modules/mountlist (Depends-on): Add stdint.
33869         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
33870
33871 2009-03-10  Bruno Haible  <bruno@clisp.org>
33872
33873         Tests for module 'mbmemcasecoll'.
33874         * modules/mbmemcasecoll-tests: New file.
33875         * tests/test-mbmemcasecoll1.sh: New file.
33876         * tests/test-mbmemcasecoll2.sh: New file.
33877         * tests/test-mbmemcasecoll3.sh: New file.
33878         * tests/test-mbmemcasecoll.c: New file.
33879
33880         New module 'mbmemcasecoll'.
33881         * lib/mbmemcasecoll.h: New file.
33882         * lib/mbmemcasecoll.c: New file.
33883         * modules/mbmemcasecoll: New file.
33884
33885         * tests/test-mbmemcasecmp.h: New file, extracted from
33886         tests/test-mbmemcasecmp.c.
33887         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
33888         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
33889         (main): Update.
33890         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
33891
33892 2009-03-09  Bruno Haible  <bruno@clisp.org>
33893
33894         Tests for module 'mbmemcasecmp'.
33895         * modules/mbmemcasecmp-tests: New file.
33896         * tests/test-mbmemcasecmp1.sh: New file.
33897         * tests/test-mbmemcasecmp2.sh: New file.
33898         * tests/test-mbmemcasecmp3.sh: New file.
33899         * tests/test-mbmemcasecmp.c: New file.
33900
33901         New module 'mbmemcasecmp'.
33902         * lib/mbmemcasecmp.h: New file.
33903         * lib/mbmemcasecmp.c: New file.
33904         * modules/mbmemcasecmp: New file.
33905
33906 2009-03-09  Bruno Haible  <bruno@clisp.org>
33907
33908         Tests for module 'unicase/ulc-casecoll'.
33909         * modules/unicase/ulc-casecoll-tests: New file.
33910         * tests/unicase/test-ulc-casecoll1.sh: New file.
33911         * tests/unicase/test-ulc-casecoll2.sh: New file.
33912         * tests/unicase/test-ulc-casecoll.c: New file.
33913
33914         New module 'unicase/ulc-casecoll'.
33915         * lib/unicase.h (ulc_casecoll): New declaration.
33916         * lib/unicase/ulc-casecoll.c: New file.
33917         * modules/unicase/ulc-casecoll: New file.
33918
33919         New module 'unicase/ulc-casexfrm'.
33920         * lib/unicase.h (ulc_casexfrm): New declaration.
33921         * lib/unicase/ulc-casexfrm.c: New file.
33922         * modules/unicase/ulc-casexfrm: New file.
33923
33924 2009-03-09  Bruno Haible  <bruno@clisp.org>
33925
33926         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
33927         invocations.
33928
33929         * m4/mbscasecmp.m4: Remove file.
33930         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
33931         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
33932
33933         * m4/mbscasestr.m4: Remove file.
33934         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
33935         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
33936
33937         * m4/mbschr.m4: Remove file.
33938         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
33939         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
33940
33941         * m4/mbscspn.m4: Remove file.
33942         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
33943         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
33944
33945         * m4/mbslen.m4: Remove file.
33946         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
33947         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
33948
33949         * m4/mbsncasecmp.m4: Remove file.
33950         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
33951         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
33952
33953         * m4/mbsnlen.m4: Remove file.
33954         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
33955         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
33956
33957         * m4/mbspbrk.m4: Remove file.
33958         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
33959         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
33960
33961         * m4/mbspcasecmp.m4: Remove file.
33962         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
33963         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
33964
33965         * m4/mbsrchr.m4: Remove file.
33966         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
33967         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
33968
33969         * m4/mbssep.m4: Remove file.
33970         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
33971         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
33972
33973         * m4/mbsspn.m4: Remove file.
33974         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
33975         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
33976
33977         * m4/mbsstr.m4: Remove file.
33978         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
33979         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
33980
33981         * m4/mbstok_r.m4: Remove file.
33982         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
33983         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
33984
33985         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
33986
33987         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
33988         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
33989
33990         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
33991
33992 2009-03-08  Bruno Haible  <bruno@clisp.org>
33993
33994         Tests for module 'unicase/ulc-casecmp'.
33995         * modules/unicase/ulc-casecmp-tests: New file.
33996         * tests/unicase/test-ulc-casecmp1.sh: New file.
33997         * tests/unicase/test-ulc-casecmp2.sh: New file.
33998         * tests/unicase/test-ulc-casecmp.c: New file.
33999
34000         New module 'unicase/ulc-casecmp'.
34001         * lib/unicase.h (ulc_casecmp): New declaration.
34002         * lib/unicase/ulc-casecmp.c: New file.
34003         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
34004         'const SRC_UNIT *'.
34005         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
34006         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
34007         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
34008         * modules/unicase/ulc-casecmp: New file.
34009
34010         Tests for module 'unicase/u32-is-cased'.
34011         * modules/unicase/u32-is-cased-tests: New file.
34012         * tests/unicase/test-u32-is-cased.c: New file.
34013
34014         Tests for module 'unicase/u16-is-cased'.
34015         * modules/unicase/u16-is-cased-tests: New file.
34016         * tests/unicase/test-u16-is-cased.c: New file.
34017
34018         Tests for module 'unicase/u8-is-cased'.
34019         * modules/unicase/u8-is-cased-tests: New file.
34020         * tests/unicase/test-u8-is-cased.c: New file.
34021         * tests/unicase/test-is-cased.h: New file.
34022
34023         New module 'unicase/u32-is-cased'.
34024         * lib/unicase/u32-is-cased.c: New file.
34025         * modules/unicase/u32-is-cased: New file.
34026
34027         New module 'unicase/u16-is-cased'.
34028         * lib/unicase/u16-is-cased.c: New file.
34029         * modules/unicase/u16-is-cased: New file.
34030
34031         New module 'unicase/u8-is-cased'.
34032         * lib/unicase/u8-is-cased.c: New file.
34033         * lib/unicase/u-is-cased.h: New file.
34034         * modules/unicase/u8-is-cased: New file.
34035
34036         Tests for module 'unicase/u32-is-casefolded'.
34037         * modules/unicase/u32-is-casefolded-tests: New file.
34038         * tests/unicase/test-u32-is-casefolded.c: New file.
34039
34040         Tests for module 'unicase/u16-is-casefolded'.
34041         * modules/unicase/u16-is-casefolded-tests: New file.
34042         * tests/unicase/test-u16-is-casefolded.c: New file.
34043
34044         Tests for module 'unicase/u8-is-casefolded'.
34045         * modules/unicase/u8-is-casefolded-tests: New file.
34046         * tests/unicase/test-u8-is-casefolded.c: New file.
34047         * tests/unicase/test-is-casefolded.h: New file.
34048
34049         New module 'unicase/u32-is-casefolded'.
34050         * lib/unicase/u32-is-casefolded.c: New file.
34051         * modules/unicase/u32-is-casefolded: New file.
34052
34053         New module 'unicase/u16-is-casefolded'.
34054         * lib/unicase/u16-is-casefolded.c: New file.
34055         * modules/unicase/u16-is-casefolded: New file.
34056
34057         New module 'unicase/u8-is-casefolded'.
34058         * lib/unicase/u8-is-casefolded.c: New file.
34059         * modules/unicase/u8-is-casefolded: New file.
34060
34061         Tests for module 'unicase/u32-is-titlecase'.
34062         * modules/unicase/u32-is-titlecase-tests: New file.
34063         * tests/unicase/test-u32-is-titlecase.c: New file.
34064
34065         Tests for module 'unicase/u16-is-titlecase'.
34066         * modules/unicase/u16-is-titlecase-tests: New file.
34067         * tests/unicase/test-u16-is-titlecase.c: New file.
34068
34069         Tests for module 'unicase/u8-is-titlecase'.
34070         * modules/unicase/u8-is-titlecase-tests: New file.
34071         * tests/unicase/test-u8-is-titlecase.c: New file.
34072         * tests/unicase/test-is-titlecase.h: New file.
34073
34074         New module 'unicase/u32-is-titlecase'.
34075         * lib/unicase/u32-is-titlecase.c: New file.
34076         * modules/unicase/u32-is-titlecase: New file.
34077
34078         New module 'unicase/u16-is-titlecase'.
34079         * lib/unicase/u16-is-titlecase.c: New file.
34080         * modules/unicase/u16-is-titlecase: New file.
34081
34082         New module 'unicase/u8-is-titlecase'.
34083         * lib/unicase/u8-is-titlecase.c: New file.
34084         * modules/unicase/u8-is-titlecase: New file.
34085
34086         Tests for module 'unicase/u32-is-lowercase'.
34087         * modules/unicase/u32-is-lowercase-tests: New file.
34088         * tests/unicase/test-u32-is-lowercase.c: New file.
34089
34090         Tests for module 'unicase/u16-is-lowercase'.
34091         * modules/unicase/u16-is-lowercase-tests: New file.
34092         * tests/unicase/test-u16-is-lowercase.c: New file.
34093
34094         Tests for module 'unicase/u8-is-lowercase'.
34095         * modules/unicase/u8-is-lowercase-tests: New file.
34096         * tests/unicase/test-u8-is-lowercase.c: New file.
34097         * tests/unicase/test-is-lowercase.h: New file.
34098
34099         New module 'unicase/u32-is-lowercase'.
34100         * lib/unicase/u32-is-lowercase.c: New file.
34101         * modules/unicase/u32-is-lowercase: New file.
34102
34103         New module 'unicase/u16-is-lowercase'.
34104         * lib/unicase/u16-is-lowercase.c: New file.
34105         * modules/unicase/u16-is-lowercase: New file.
34106
34107         New module 'unicase/u8-is-lowercase'.
34108         * lib/unicase/u8-is-lowercase.c: New file.
34109         * modules/unicase/u8-is-lowercase: New file.
34110
34111         Tests for module 'unicase/u32-is-uppercase'.
34112         * modules/unicase/u32-is-uppercase-tests: New file.
34113         * tests/unicase/test-u32-is-uppercase.c: New file.
34114
34115         Tests for module 'unicase/u16-is-uppercase'.
34116         * modules/unicase/u16-is-uppercase-tests: New file.
34117         * tests/unicase/test-u16-is-uppercase.c: New file.
34118
34119         Tests for module 'unicase/u8-is-uppercase'.
34120         * modules/unicase/u8-is-uppercase-tests: New file.
34121         * tests/unicase/test-u8-is-uppercase.c: New file.
34122         * tests/unicase/test-is-uppercase.h: New file.
34123
34124         New module 'unicase/u32-is-uppercase'.
34125         * lib/unicase/u32-is-uppercase.c: New file.
34126         * modules/unicase/u32-is-uppercase: New file.
34127
34128         New module 'unicase/u16-is-uppercase'.
34129         * lib/unicase/u16-is-uppercase.c: New file.
34130         * modules/unicase/u16-is-uppercase: New file.
34131
34132         New module 'unicase/u8-is-uppercase'.
34133         * lib/unicase/u8-is-uppercase.c: New file.
34134         * modules/unicase/u8-is-uppercase: New file.
34135
34136         New module 'unicase/u32-is-invariant'.
34137         * lib/unicase/u32-is-invariant.c: New file.
34138         * modules/unicase/u32-is-invariant: New file.
34139
34140         New module 'unicase/u16-is-invariant'.
34141         * lib/unicase/u16-is-invariant.c: New file.
34142         * modules/unicase/u16-is-invariant: New file.
34143
34144         New module 'unicase/u8-is-invariant'.
34145         * lib/unicase/u8-is-invariant.c: New file.
34146         * lib/unicase/invariant.h: New file.
34147         * lib/unicase/u-is-invariant.h: New file.
34148         * modules/unicase/u8-is-invariant: New file.
34149
34150         Tests for module 'unicase/u32-casecoll'.
34151         * modules/unicase/u32-casecoll-tests: New file.
34152         * tests/unicase/test-u32-casecoll.c: New file.
34153
34154         Tests for module 'unicase/u16-casecoll'.
34155         * modules/unicase/u16-casecoll-tests: New file.
34156         * tests/unicase/test-u16-casecoll.c: New file.
34157
34158         Tests for module 'unicase/u8-casecoll'.
34159         * modules/unicase/u8-casecoll-tests: New file.
34160         * tests/unicase/test-u8-casecoll.c: New file.
34161
34162         New module 'unicase/u32-casecoll'.
34163         * lib/unicase/u32-casecoll.c: New file.
34164         * modules/unicase/u32-casecoll: New file.
34165
34166         New module 'unicase/u16-casecoll'.
34167         * lib/unicase/u16-casecoll.c: New file.
34168         * modules/unicase/u16-casecoll: New file.
34169
34170         New module 'unicase/u8-casecoll'.
34171         * lib/unicase/u8-casecoll.c: New file.
34172         * lib/unicase/u-casecoll.h: New file.
34173         * modules/unicase/u8-casecoll: New file.
34174
34175         New module 'unicase/u32-casexfrm'.
34176         * lib/unicase/u32-casexfrm.c: New file.
34177         * modules/unicase/u32-casexfrm: New file.
34178
34179         New module 'unicase/u16-casexfrm'.
34180         * lib/unicase/u16-casexfrm.c: New file.
34181         * modules/unicase/u16-casexfrm: New file.
34182
34183         New module 'unicase/u8-casexfrm'.
34184         * lib/unicase/u8-casexfrm.c: New file.
34185         * lib/unicase/u-casexfrm.h: New file.
34186         * modules/unicase/u8-casexfrm: New file.
34187
34188         Tests for module 'unicase/u32-casecmp'.
34189         * modules/unicase/u32-casecmp-tests: New file.
34190         * tests/unicase/test-u32-casecmp.c: New file.
34191
34192         Tests for module 'unicase/u16-casecmp'.
34193         * modules/unicase/u16-casecmp-tests: New file.
34194         * tests/unicase/test-u16-casecmp.c: New file.
34195
34196         Tests for module 'unicase/u8-casecmp'.
34197         * modules/unicase/u8-casecmp-tests: New file.
34198         * tests/unicase/test-u8-casecmp.c: New file.
34199         * tests/unicase/test-casecmp.h: New file.
34200
34201         New module 'unicase/u32-casecmp'.
34202         * lib/unicase/u32-casecmp.c: New file.
34203         * modules/unicase/u32-casecmp: New file.
34204
34205         New module 'unicase/u16-casecmp'.
34206         * lib/unicase/u16-casecmp.c: New file.
34207         * modules/unicase/u16-casecmp: New file.
34208
34209         New module 'unicase/u8-casecmp'.
34210         * lib/unicase/u8-casecmp.c: New file.
34211         * lib/unicase/u-casecmp.h: New file.
34212         * modules/unicase/u8-casecmp: New file.
34213
34214         Tests for module 'unicase/u32-casefold'.
34215         * modules/unicase/u32-casefold-tests: New file.
34216         * tests/unicase/test-u32-casefold.c: New file.
34217
34218         Tests for module 'unicase/u16-casefold'.
34219         * modules/unicase/u16-casefold-tests: New file.
34220         * tests/unicase/test-u16-casefold.c: New file.
34221
34222         Tests for module 'unicase/u8-casefold'.
34223         * modules/unicase/u8-casefold-tests: New file.
34224         * tests/unicase/test-u8-casefold.c: New file.
34225
34226         New module 'unicase/u32-casefold'.
34227         * lib/unicase/u32-casefold.c: New file.
34228         * modules/unicase/u32-casefold: New file.
34229
34230         New module 'unicase/u16-casefold'.
34231         * lib/unicase/u16-casefold.c: New file.
34232         * modules/unicase/u16-casefold: New file.
34233
34234         New module 'unicase/u8-casefold'.
34235         * lib/unicase/u8-casefold.c: New file.
34236         * lib/unicase/u-casefold.h: New file.
34237         * modules/unicase/u8-casefold: New file.
34238
34239         New module 'unicase/tocasefold'.
34240         * lib/unicase/casefold.h: New file.
34241         * lib/unicase/tocasefold.c: New file.
34242         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
34243         * modules/unicase/tocasefold: New file.
34244
34245         Tests for module 'unicase/u32-totitle'.
34246         * modules/unicase/u32-totitle-tests: New file.
34247         * tests/unicase/test-u32-totitle.c: New file.
34248
34249         Tests for module 'unicase/u16-totitle'.
34250         * modules/unicase/u16-totitle-tests: New file.
34251         * tests/unicase/test-u16-totitle.c: New file.
34252
34253         Tests for module 'unicase/u8-totitle'.
34254         * modules/unicase/u8-totitle-tests: New file.
34255         * tests/unicase/test-u8-totitle.c: New file.
34256
34257         New module 'unicase/u32-totitle'.
34258         * lib/unicase/u32-totitle.c: New file.
34259         * modules/unicase/u32-totitle: New file.
34260
34261         New module 'unicase/u16-totitle'.
34262         * lib/unicase/u16-totitle.c: New file.
34263         * modules/unicase/u16-totitle: New file.
34264
34265         New module 'unicase/u8-totitle'.
34266         * lib/unicase/u8-totitle.c: New file.
34267         * lib/unicase/u-totitle.h: New file.
34268         * modules/unicase/u8-totitle: New file.
34269
34270         Tests for module 'unicase/u32-tolower'.
34271         * modules/unicase/u32-tolower-tests: New file.
34272         * tests/unicase/test-u32-tolower.c: New file.
34273
34274         Tests for module 'unicase/u16-tolower'.
34275         * modules/unicase/u16-tolower-tests: New file.
34276         * tests/unicase/test-u16-tolower.c: New file.
34277
34278         Tests for module 'unicase/u8-tolower'.
34279         * modules/unicase/u8-tolower-tests: New file.
34280         * tests/unicase/test-u8-tolower.c: New file.
34281
34282         New module 'unicase/u32-tolower'.
34283         * lib/unicase/u32-tolower.c: New file.
34284         * modules/unicase/u32-tolower: New file.
34285
34286         New module 'unicase/u16-tolower'.
34287         * lib/unicase/u16-tolower.c: New file.
34288         * modules/unicase/u16-tolower: New file.
34289
34290         New module 'unicase/u8-tolower'.
34291         * lib/unicase/u8-tolower.c: New file.
34292         * modules/unicase/u8-tolower: New file.
34293
34294         Tests for module 'unicase/u32-toupper'.
34295         * modules/unicase/u32-toupper-tests: New file.
34296         * tests/unicase/test-u32-toupper.c: New file.
34297
34298         Tests for module 'unicase/u16-toupper'.
34299         * modules/unicase/u16-toupper-tests: New file.
34300         * tests/unicase/test-u16-toupper.c: New file.
34301
34302         Tests for module 'unicase/u8-toupper'.
34303         * modules/unicase/u8-toupper-tests: New file.
34304         * tests/unicase/test-u8-toupper.c: New file.
34305
34306         New module 'unicase/u32-toupper'.
34307         * lib/unicase/u32-toupper.c: New file.
34308         * modules/unicase/u32-toupper: New file.
34309
34310         New module 'unicase/u16-toupper'.
34311         * lib/unicase/u16-toupper.c: New file.
34312         * modules/unicase/u16-toupper: New file.
34313
34314         New module 'unicase/u8-toupper'.
34315         * lib/unicase/u8-toupper.c: New file.
34316         * modules/unicase/u8-toupper: New file.
34317
34318         New module 'unicase/u32-casemap'.
34319         * lib/unicase/u32-casemap.c: New file.
34320         * modules/unicase/u32-casemap: New file.
34321
34322         New module 'unicase/u16-casemap'.
34323         * lib/unicase/u16-casemap.c: New file.
34324         * modules/unicase/u16-casemap: New file.
34325
34326         New module 'unicase/u8-casemap'.
34327         * lib/unicase/unicasemap.h: New file.
34328         * lib/unicase/u8-casemap.c: New file.
34329         * lib/unicase/u-casemap.h: New file.
34330         * modules/unicase/u8-casemap: New file.
34331
34332         New module 'unicase/special-casing'.
34333         * lib/unicase/special-casing.h: New file.
34334         * lib/unicase/special-casing.c: New file.
34335         * lib/unicase/special-casing-table.gperf: New file, generated by
34336         gen-uni-tables.c.
34337         * modules/unicase/special-casing: New file.
34338
34339         Tests for module 'unicase/locale-language'.
34340         * modules/unicase/locale-language-tests: New file.
34341         * tests/unicase/test-locale-language.sh: New file.
34342         * tests/unicase/test-locale-language.c: New file.
34343
34344         New module 'unicase/locale-language'.
34345         * lib/unicase/locale-language.c: New file.
34346         * lib/unicase/locale-languages.gperf: New file.
34347         * modules/unicase/locale-language: New file.
34348
34349         Generate more tables for case conversion and case folding.
34350         * lib/gen-uni-tables.c (SCC_*): New enum items.
34351         (struct special_casing_rule): New type.
34352         (casing_rules, num_casing_rules, allocated_casing_rules): New
34353         variables.
34354         (add_casing_rule, fill_casing_rules): New functions.
34355         (struct casefold_rule): New type.
34356         (casefolding_rules, num_casefolding_rules,
34357         allocated_casefolding_rules): New variables.
34358         (fill_casefolding_rules): New function.
34359         (unicode_casefold): New variable.
34360         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
34361         sort_casing_rules, output_casing_rules): New functions.
34362         (main): Accept to more arguments: SpecialCasing.txt and
34363         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
34364         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
34365         Output mapping for casefolding.
34366
34367         * lib/unicase.h: Include stdbool.h, uninorm.h.
34368         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
34369         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
34370         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
34371         arguments.
34372         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
34373         resultp arguments.
34374         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
34375         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
34376         resultp arguments.
34377         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
34378         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
34379         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
34380         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
34381         declarations.
34382         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
34383
34384 2009-03-08  Bruno Haible  <bruno@clisp.org>
34385
34386         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34387         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
34388         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
34389         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34390
34391 2009-03-07  Bruno Haible  <bruno@clisp.org>
34392
34393         Adjust u*_normcmp, u*_normcoll API.
34394         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
34395         u16_normcoll, u32_normcoll): Change failure conventions.
34396         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
34397         errno and return -1.
34398         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
34399
34400 2009-03-07  Bruno Haible  <bruno@clisp.org>
34401
34402         Tests for module 'uninorm/u32-normcoll'.
34403         * modules/uninorm/u32-normcoll-tests: New file.
34404         * tests/uninorm/test-u32-normcoll.c: New file.
34405
34406         Tests for module 'uninorm/u16-normcoll'.
34407         * modules/uninorm/u16-normcoll-tests: New file.
34408         * tests/uninorm/test-u16-normcoll.c: New file.
34409
34410         Tests for module 'uninorm/u8-normcoll'.
34411         * modules/uninorm/u8-normcoll-tests: New file.
34412         * tests/uninorm/test-u8-normcoll.c: New file.
34413
34414 2009-03-07  Bruno Haible  <bruno@clisp.org>
34415
34416         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
34417         tests/uninorm/test-u32-normcmp.c.
34418         * tests/uninorm/test-u32-normcmp.c: Include it.
34419         (test_nonascii): New function, extracted from main. Add some more
34420         tests.
34421         (main): Invoke test_ascii and test_nonascii.
34422         * modules/uninorm/u32-normcmp-tests (Files): Add
34423         tests/uninorm/test-u32-normcmp.h.
34424         (Depends-on): Remove uninorm/u32-normcmp.
34425
34426         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
34427         tests/uninorm/test-u16-normcmp.c.
34428         * tests/uninorm/test-u16-normcmp.c: Include it.
34429         (test_nonascii): New function, extracted from main. Add some more
34430         tests.
34431         (main): Invoke test_ascii and test_nonascii.
34432         * modules/uninorm/u16-normcmp-tests (Files): Add
34433         tests/uninorm/test-u16-normcmp.h.
34434         (Depends-on): Remove uninorm/u16-normcmp.
34435
34436         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
34437         tests/uninorm/test-u8-normcmp.c.
34438         * tests/uninorm/test-u8-normcmp.c: Include it.
34439         (test_nonascii): New function, extracted from main. Add some more
34440         tests.
34441         (main): Invoke test_ascii and test_nonascii.
34442         * modules/uninorm/u8-normcmp-tests (Files): Add
34443         tests/uninorm/test-u8-normcmp.h.
34444         (Depends-on): Remove uninorm/u8-normcmp.
34445
34446 2009-03-07  Bruno Haible  <bruno@clisp.org>
34447
34448         New module 'uninorm/u32-normcoll'.
34449         * lib/uninorm/u32-normcoll.c: New file.
34450         * modules/uninorm/u32-normcoll: New file.
34451
34452         New module 'uninorm/u16-normcoll'.
34453         * lib/uninorm/u16-normcoll.c: New file.
34454         * modules/uninorm/u16-normcoll: New file.
34455
34456         New module 'uninorm/u8-normcoll'.
34457         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
34458         declarations.
34459         * lib/uninorm/u8-normcoll.c: New file.
34460         * lib/uninorm/u-normcoll.h: New file.
34461         * modules/uninorm/u8-normcoll: New file.
34462
34463         New module 'uninorm/u32-normxfrm'.
34464         * lib/uninorm/u32-normxfrm.c: New file.
34465         * modules/uninorm/u32-normxfrm: New file.
34466
34467         New module 'uninorm/u16-normxfrm'.
34468         * lib/uninorm/u16-normxfrm.c: New file.
34469         * modules/uninorm/u16-normxfrm: New file.
34470
34471         New module 'uninorm/u8-normxfrm'.
34472         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
34473         declarations.
34474         * lib/uninorm/u8-normxfrm.c: New file.
34475         * lib/uninorm/u-normxfrm.h: New file.
34476         * modules/uninorm/u8-normxfrm: New file.
34477
34478 2009-03-07  Bruno Haible  <bruno@clisp.org>
34479
34480         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
34481         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
34482         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
34483
34484 2009-03-07  Bruno Haible  <bruno@clisp.org>
34485
34486         New module 'memxfrm'.
34487         * lib/memxfrm.h: New file.
34488         * lib/memxfrm.c: New file.
34489         * modules/memxfrm: New file.
34490
34491 2009-03-07  Bruno Haible  <bruno@clisp.org>
34492
34493         New module 'memcmp2'.
34494         * lib/memcmp2.h: New file.
34495         * lib/memcmp2.c: New file.
34496         * modules/memcmp2: New file.
34497
34498 2009-03-07  Bruno Haible  <bruno@clisp.org>
34499
34500         Tests for module 'uninorm/decomposing-form'.
34501         * modules/uninorm/decomposing-form-tests: New file.
34502         * tests/uninorm/test-decomposing-form.c: New file.
34503
34504         New module 'uninorm/decomposing-form'.
34505         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
34506         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
34507         Add 'decomposing_variant' field.
34508         * lib/uninorm/decomposing-form.c: New file.
34509         * lib/uninorm/nfc.c (uninorm_nfc): Update.
34510         * lib/uninorm/nfd.c (uninorm_nfd): Update.
34511         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
34512         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
34513         * modules/uninorm/decomposing-form: New file.
34514         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
34515         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
34516
34517 2009-03-07  Bruno Haible  <bruno@clisp.org>
34518
34519         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
34520         strings.
34521
34522 2009-03-06  Bruno Haible  <bruno@clisp.org>
34523
34524         Tests for module 'uninorm/u32-normcmp'.
34525         * tests/uninorm/test-u32-normcmp.c: New file.
34526         * modules/uninorm/u32-normcmp-tests: New file.
34527
34528         Tests for module 'uninorm/u16-normcmp'.
34529         * tests/uninorm/test-u16-normcmp.c: New file.
34530         * modules/uninorm/u16-normcmp-tests: New file.
34531
34532         Tests for module 'uninorm/u8-normcmp'.
34533         * tests/uninorm/test-u8-normcmp.c: New file.
34534         * modules/uninorm/u8-normcmp-tests: New file.
34535
34536         New module 'uninorm/u32-normcmp'.
34537         * lib/uninorm/u32-normcmp.c: New file.
34538         * modules/uninorm/u32-normcmp: New file.
34539
34540         New module 'uninorm/u16-normcmp'.
34541         * lib/uninorm/u16-normcmp.c: New file.
34542         * modules/uninorm/u16-normcmp: New file.
34543
34544         New module 'uninorm/u8-normcmp'.
34545         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
34546         declarations.
34547         * lib/uninorm/u8-normcmp.c: New file.
34548         * lib/uninorm/u-normcmp.h: New file.
34549         * modules/uninorm/u8-normcmp: New file.
34550
34551 2009-03-06  Bruno Haible  <bruno@clisp.org>
34552
34553         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
34554         Reported by Eric Blake.
34555
34556 2009-03-06  Eric Blake  <ebb9@byu.net>
34557             Bruno Haible  <bruno@clisp.org>
34558
34559         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
34560         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
34561         condition.
34562         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34563         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
34564         condition.
34565         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
34566
34567 2009-03-06  Eric Blake  <ebb9@byu.net>
34568
34569         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
34570         to avoid compiler warnings.
34571         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
34572
34573 2009-03-05  Bruno Haible  <bruno@clisp.org>
34574
34575         * tests/test-ftell.c (main): Disable test beyond end of file on
34576         FreeMiNT.
34577         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34578
34579 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
34580
34581         * lib/filevercmp.c: Move hidden files up in ordering.
34582         * tests/test-filevercmp.c: Add tests for hidden files.
34583
34584 2009-03-04  Bruno Haible  <bruno@clisp.org>
34585
34586         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
34587         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
34588         AM_CFLAGS.
34589         Reported by Simon Josefsson.
34590
34591 2009-03-03  Bruno Haible  <bruno@clisp.org>
34592
34593         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
34594         Reported by Simon Josefsson.
34595
34596         * doc/ld-version-script.texi: Update node reference.
34597
34598 2009-03-03  Bruno Haible  <bruno@clisp.org>
34599
34600         * modules/visibility (License): Change to 'unlimited'.
34601         Suggested by Simon Josefsson.
34602
34603 2009-03-03  Jim Meyering  <meyering@redhat.com>
34604
34605         unlinkdir: cannot_unlink_dir may modify process state
34606         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
34607         it's neither thread-safe nor appropriate for use in a library.
34608
34609 2009-03-03  Eric Blake  <ebb9@byu.net>
34610
34611         test-closein: silence test under Darwin
34612         * tests/test-closein.sh: Ignore stderr from cat, since we don't
34613         care if it dies from EPIPE or EBADF.
34614
34615 2009-03-03  Bruno Haible  <bruno@clisp.org>
34616
34617         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
34618         earlier.
34619         * doc/visibility.texi: Fix @node and @section.
34620
34621 2009-03-03  Simon Josefsson  <simon@josefsson.org>
34622
34623         * doc/gnulib.texi: Link to sections for ld version script and
34624         visibility.
34625         * doc/visibility.texi: Add @node and @section.
34626         * modules/ld-version-script: New module.
34627         * m4/ld-version-script.m4: New file.
34628         * doc/ld-version-script.texi: New file.
34629
34630 2009-03-02  David Lutterkort  <lutter@redhat.com>
34631
34632         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
34633         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34634
34635 2009-03-02  Bruno Haible  <bruno@clisp.org>
34636
34637         * doc/visibility.texi: Mention libtool's -export-symbols option.
34638
34639 2009-03-02  Jim Meyering  <meyering@redhat.com>
34640
34641         announce-gen: new option: --no-print-checksums
34642         * build-aux/announce-gen (usage): Describe it.
34643         (print_checksums): Print a newline here, not in the [*] footnote.
34644         (main): Honor it.
34645
34646 2009-03-01  Bruno Haible  <bruno@clisp.org>
34647
34648         Use socklen_t in the native Windows replacements prototypes.
34649         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
34650         instead of 'int'.
34651         * lib/getsockopt.c (rpl_getsockopt): Likewise.
34652         * lib/setsockopt.c (rpl_setsockopt): Likewise.
34653         * modules/getsockopt (Depends-on): Add socklen.
34654         * modules/setsockopt (Depends-on): Add socklen.
34655
34656 2009-03-01  Bruno Haible  <bruno@clisp.org>
34657
34658         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
34659         least 4.2.
34660
34661 2009-03-01  Eric Blake  <ebb9@byu.net>
34662             Bruno Haible  <bruno@clisp.org>
34663
34664         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
34665         error messages.
34666         * lib/wait-process.c (wait_subprocess): Omit error message about
34667         deadly signal sent to the child of termsigp != NULL.
34668
34669 2009-03-01  Eric Blake  <ebb9@byu.net>
34670
34671         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
34672
34673 2009-03-01  Bruno Haible  <bruno@clisp.org>
34674
34675         Avoid a gcc warning.
34676         * tests/test-sched.c (b): Make global.
34677         Reported by Eric Blake.
34678
34679 2009-01-19  Martin Lambers  <marlam@marlam.de>
34680
34681         Provide POSIX semantics for socket timeout options on W32.
34682         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
34683         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
34684         * modules/setsockopt: Depend on sys_time module for struct timeval.
34685         * modules/getsockopt: Depend on sys_time module for struct timeval.
34686
34687 2009-03-01  Simon Josefsson  <simon@josefsson.org>
34688
34689         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
34690         __USE_GNU, for consistency with netdb.in.h.
34691         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34692
34693 2009-03-01  Bruno Haible  <bruno@clisp.org>
34694
34695         More support for FreeMiNT.
34696         * lib/fseeko.c (rpl_fseeko): Complete last commit.
34697         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34698
34699 2009-03-01  Bruno Haible  <bruno@clisp.org>
34700
34701         More support for FreeMiNT.
34702         * lib/fpurge.c (fpurge): Correct last commit.
34703         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34704
34705 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34706
34707         Fix unportable awk script in vc-list-files.
34708         * build-aux/vc-list-files: In the replacement awk script, use
34709         substr with a second argument of 1, not zero.
34710         Report by Simon Josefsson.
34711
34712 2009-02-28  Bruno Haible  <bruno@clisp.org>
34713
34714         More support for FreeMiNT.
34715         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
34716         to FreeMiNT today.
34717         * lib/fwriting.c (fwriting): Likewise.
34718         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
34719
34720 2009-02-28  Bruno Haible  <bruno@clisp.org>
34721
34722         * tests/test-freadseek.c (main): Disable test beyond end of file on
34723         FreeMiNT.
34724         * tests/test-ftello.c (main): Likewise.
34725         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34726
34727 2009-02-28  Bruno Haible  <bruno@clisp.org>
34728
34729         Add tentative support for FreeMiNT.
34730         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
34731         * lib/fpurge.c (fpurge): Likewise.
34732         * lib/freadable.c (freadable): Likewise.
34733         * lib/freading.c (freading): Likewise.
34734         * lib/freadptr.c (freadptr): Likewise.
34735         * lib/freadseek.c (freadptrinc): Likewise.
34736         * lib/fseeko.c (rpl_fseeko): Likewise.
34737         * lib/fseterr.c (fseterr): Likewise.
34738         * lib/fwritable.c (fwritable): Likewise.
34739         * lib/fwriting.c (fwriting): Likewise.
34740         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
34741         Hourihane.
34742         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34743
34744 2009-02-28  Bruno Haible  <bruno@clisp.org>
34745
34746         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
34747         SIGCHLD.
34748         Reported by Jim Meyering.
34749
34750 2009-02-28  Bruno Haible  <bruno@clisp.org>
34751
34752         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
34753         Mention the results of these tests on various platforms.
34754         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
34755         order.
34756         * doc/posix-functions/printf.texi: Likewise.
34757         * doc/posix-functions/snprintf.texi: Likewise.
34758         * doc/posix-functions/sprintf.texi: Likewise.
34759         * doc/posix-functions/vfprintf.texi: Likewise.
34760         * doc/posix-functions/vprintf.texi: Likewise.
34761         * doc/posix-functions/vsnprintf.texi: Likewise.
34762         * doc/posix-functions/vsprintf.texi: Likewise.
34763         * doc/glibc-functions/obstack_printf.texi: Likewise.
34764         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
34765
34766 2009-02-28  Bruno Haible  <bruno@clisp.org>
34767
34768         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
34769         Reported by Loïc Minier <lool@dooz.org>.
34770
34771 2009-02-27  Bruno Haible  <bruno@clisp.org>
34772
34773         * gnulib-tool (func_import): Make the sed expression used to create the
34774         sed script for updating the .gitignore file POSIX compliant.
34775         Reported by Eric Blake.
34776
34777 2009-02-27  Bruno Haible  <bruno@clisp.org>
34778
34779         * gnulib-tool (sed): Don't alias as "sed --posix".
34780         Reported by Eric Blake.
34781
34782 2009-02-27  Bruno Haible  <bruno@clisp.org>
34783
34784         Avoid test link errors.
34785         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
34786         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
34787         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
34788         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
34789         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34790
34791 2009-02-27  Bruno Haible  <bruno@clisp.org>
34792
34793         Avoid spurious "(cached)" in configure output.
34794         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
34795         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
34796         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34797         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34798         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34799         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
34800         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34801         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
34802         Reported by Eric Blake.
34803
34804 2009-02-27  Eric Blake  <ebb9@byu.net>
34805
34806         printf: fix regression in previous patch
34807         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
34808
34809 2009-02-27  Bruno Haible  <bruno@clisp.org>
34810
34811         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
34812         value.
34813         * lib/stdint.in.h: Likewise.
34814         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
34815
34816 2009-02-27  Eric Blake  <ebb9@byu.net>
34817
34818         doc: mention more functions added in cygwin 1.7.0
34819         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
34820         addition.
34821         * doc/posix-functions/open_wmemstream.texi: Likewise.
34822         * doc/posix-functions/wcsnlen.texi: Likewise.
34823         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34824         * doc/posix-functions/wcstod.texi: Likewise.
34825         * doc/posix-functions/wcstof.texi: Likewise.
34826         * doc/posix-functions/wcstoimax.texi: Likewise.
34827         * doc/posix-functions/wcstok.texi: Likewise.
34828         * doc/posix-functions/wcstoumax.texi: Likewise.
34829
34830         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
34831         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
34832         * doc/posix-functions/fprintf.texi: Update.
34833         * doc/posix-functions/printf.texi: Update.
34834         * doc/posix-functions/snprintf.texi: Update.
34835         * doc/posix-functions/sprintf.texi: Update.
34836         * doc/posix-functions/vfprintf.texi: Update.
34837         * doc/posix-functions/vprintf.texi: Update.
34838         * doc/posix-functions/vsnprintf.texi: Update.
34839         * doc/posix-functions/vsprintf.texi: Update.
34840         * doc/glibc-functions/obstack_printf.texi: Update.
34841         * doc/glibc-functions/obstack_vprintf.texi: Update.
34842
34843 2009-02-26  Eric Blake  <ebb9@byu.net>
34844
34845         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
34846         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
34847         compilation bug by using runtime conversion.
34848         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34849         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
34850         * modules/ceill-tests (Files): Use nan.h.
34851         * modules/floorl-tests (Files): Likewise.
34852         * modules/frexpl-tests (Files): Likewise.
34853         * modules/isnanl-tests (Files): Likewise.
34854         * modules/ldexpl-tests (Files): Likewise.
34855         * modules/roundl-tests (Files): Likewise.
34856         * modules/truncl-tests (Files): Likewise.
34857         * tests/test-ceill.c (main): Use a working NaN.
34858         * tests/test-floorl.c (main): Likewise.
34859         * tests/test-frexpl.c (main): Likewise.
34860         * tests/test-isnan.c (test_long_double): Likewise.
34861         * tests/test-isnanl.h (main): Likewise.
34862         * tests/test-ldexpl.h (main): Likewise.
34863         * tests/test-roundl.h (main): Likewise.
34864         * tests/test-truncl.h (main): Likewise.
34865         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
34866
34867 2009-02-26  Eric Blake  <ebb9@byu.net>
34868             Bruno Haible  <bruno@clisp.org>
34869
34870         Work around a *printf bug with %ls on Solaris.
34871         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
34872         precision is specified, sprintf stops converting the wide string
34873         argument when the number of bytes that have been produced by this
34874         conversion equals or exceeds the precision.
34875         * doc/posix-functions/fprintf.texi: Update.
34876         * doc/posix-functions/printf.texi: Update.
34877         * doc/posix-functions/snprintf.texi: Update.
34878         * doc/posix-functions/sprintf.texi: Update.
34879         * doc/posix-functions/vfprintf.texi: Update.
34880         * doc/posix-functions/vprintf.texi: Update.
34881         * doc/posix-functions/vsnprintf.texi: Update.
34882         * doc/posix-functions/vsprintf.texi: Update.
34883         * doc/glibc-functions/obstack_printf.texi: Update.
34884         * doc/glibc-functions/obstack_vprintf.texi: Update.
34885
34886 2009-02-26  Eric Blake  <ebb9@byu.net>
34887
34888         stdlib: favor compiler check of random.h
34889         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
34890         to avoid an ObjC random.h installed by Swarm.
34891
34892 2009-02-26  Bruno Haible  <bruno@clisp.org>
34893
34894         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
34895         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
34896         Reported by Gary V. Vaughan <gary@gnu.org>.
34897
34898 2009-02-26  Bruno Haible  <bruno@clisp.org>
34899
34900         Fix *printf behaviour regarding the %ls directive.
34901         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
34902         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
34903         NEED_PRINTF_DIRECTIVE_LS.
34904         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
34905         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34906         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34907         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
34908         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
34909         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
34910         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
34911         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34912         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34913         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34914         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34915         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
34916         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34918         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34919         * doc/posix-functions/fprintf.texi: Update.
34920         * doc/posix-functions/printf.texi: Update.
34921         * doc/posix-functions/snprintf.texi: Update.
34922         * doc/posix-functions/sprintf.texi: Update.
34923         * doc/posix-functions/vfprintf.texi: Update.
34924         * doc/posix-functions/vprintf.texi: Update.
34925         * doc/posix-functions/vsnprintf.texi: Update.
34926         * doc/posix-functions/vsprintf.texi: Update.
34927         * doc/glibc-functions/obstack_printf.texi: Update.
34928         * doc/glibc-functions/obstack_vprintf.texi: Update.
34929         Reported by Eric Blake.
34930
34931 2009-02-25  Bruno Haible  <bruno@clisp.org>
34932
34933         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
34934         with known value.
34935         Reported by Gary V. Vaughan <gary@gnu.org>.
34936
34937 2009-02-25  Bruno Haible  <bruno@clisp.org>
34938
34939         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
34940         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
34941         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
34942         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
34943         Reported by Gary V. Vaughan <gary@gnu.org>.
34944
34945 2009-02-25  Bruno Haible  <bruno@clisp.org>
34946
34947         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
34948         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
34949         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
34950         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
34951         Reported by Gary V. Vaughan <gary@gnu.org>.
34952
34953 2009-02-25  Eric Blake  <ebb9@byu.net>
34954
34955         tests: skip fseek/ftell tests if ungetc is broken
34956         * m4/ungetc.m4: New file.
34957         * modules/fseek-tests: Split test, so ungetc dependency is
34958         separate from rest of test.
34959         * modules/fseeko-tests: Likewise.
34960         * modules/ftell-tests: Likewise.
34961         * modules/ftello-tests: Likewise.
34962         * tests/test-fseek.c (main): Isolate ungetc dependency.
34963         * tests/test-fseeko.c (main): Likewise.
34964         * tests/test-ftell.c (main): Likewise.
34965         * tests/test-ftello.c (main): Likewise.
34966         * tests/test-fseek2.sh: New file.
34967         * tests/test-fseeko2.sh: Likewise.
34968         * tests/test-ftell2.sh: Likewise.
34969         * tests/test-ftello2.sh: Likewise.
34970
34971 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
34972
34973         test-getaddrinfo: fix usage of skip return code 77
34974         * tests/test-gettaddrinfo.c: Return skip code 77 only
34975         for first occurance of skip (4x77 is not 77)
34976
34977 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
34978
34979         strtod: avoid C99 decl-after-statement
34980         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
34981
34982 2009-02-24  Eric Blake  <ebb9@byu.net>
34983
34984         strtod: detect HP-UX 11.31 bug
34985         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
34986         Reported by Gary V. Vaughan.
34987
34988 2009-02-23  Bruno Haible  <bruno@clisp.org>
34989
34990         Fix invalid read past end of memory block.
34991         * lib/vasnprintf.c (DCHAR_SET): Define.
34992         (local_wcslen): Define only when needed.
34993         (local_strnlen, local_wcsnlen): New functions.
34994         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
34995         directives that involve a conversion ourselves.
34996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
34997         wcsnlen, mbrtowc, wcrtomb.
34998         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
34999         * tests/test-vasprintf-posix.c (test_function): Likewise.
35000         * tests/test-snprintf-posix.h (test_function): Likewise.
35001         * tests/test-sprintf-posix.h (test_function): Likewise.
35002         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35003
35004 2009-02-22  Bruno Haible  <bruno@clisp.org>
35005
35006         Implement new clarified decomposition of Hangul syllables.
35007         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
35008         of type LTV, return only a pairwise decomposition.
35009         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
35010         Likewise.
35011         * tests/uninorm/test-decomposition.c (main): Updated expected result.
35012         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
35013         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
35014
35015 2009-02-22  Bruno Haible  <bruno@clisp.org>
35016
35017         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
35018         zero-length results and shrink excess allocated memory.
35019         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
35020         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
35021         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
35022         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
35023         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
35024         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
35025         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
35026         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
35027         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
35028         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
35029         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
35030         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
35031
35032 2009-02-21  Bruno Haible  <bruno@clisp.org>
35033
35034         * doc/gnulib.texi: Include safe-alloc.texi earlier.
35035         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
35036         spaces after a period. Put a space between a macro name and its
35037         argument list. Trivial rewordings.
35038         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
35039         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
35040         (main): Return 0 explicitly.
35041
35042 2009-02-21  Bruno Haible  <bruno@clisp.org>
35043
35044         Tests for module 'uninorm/filter'.
35045         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
35046         * modules/uninorm/filter-tests: New file.
35047
35048         New module 'uninorm/filter'.
35049         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
35050         uninorm_filter_flush, uninorm_filter_free): New declarations.
35051         * lib/uninorm/uninorm-filter.c: New file.
35052         * modules/uninorm/filter: New file.
35053
35054 2009-02-21  Bruno Haible  <bruno@clisp.org>
35055
35056         Tests for module 'uninorm/nfkc'.
35057         * tests/uninorm/test-nfkc.c: New file.
35058         * tests/uninorm/test-u8-nfkc.c: New file.
35059         * tests/uninorm/test-u16-nfkc.c: New file.
35060         * tests/uninorm/test-u32-nfkc.c: New file.
35061         * tests/uninorm/test-u32-nfkc-big.sh: New file.
35062         * tests/uninorm/test-u32-nfkc-big.c: New file.
35063         * modules/uninorm/nfkc-tests: New file.
35064
35065         New module 'uninorm/nfkc'.
35066         * lib/uninorm/nfkc.c: New file.
35067         * modules/uninorm/nfkc: New file.
35068
35069         Tests for module 'uninorm/nfkd'.
35070         * tests/uninorm/test-nfkd.c: New file.
35071         * tests/uninorm/test-u8-nfkd.c: New file.
35072         * tests/uninorm/test-u16-nfkd.c: New file.
35073         * tests/uninorm/test-u32-nfkd.c: New file.
35074         * tests/uninorm/test-u32-nfkd-big.sh: New file.
35075         * tests/uninorm/test-u32-nfkd-big.c: New file.
35076         * modules/uninorm/nfkd-tests: New file.
35077
35078         New module 'uninorm/nfkd'.
35079         * lib/uninorm/nfkd.c: New file.
35080         * modules/uninorm/nfkd: New file.
35081
35082         Tests for module 'uninorm/nfc'.
35083         * tests/uninorm/test-nfc.c: New file.
35084         * tests/uninorm/test-u8-nfc.c: New file.
35085         * tests/uninorm/test-u16-nfc.c: New file.
35086         * tests/uninorm/test-u32-nfc.c: New file.
35087         * tests/uninorm/test-u32-nfc-big.sh: New file.
35088         * tests/uninorm/test-u32-nfc-big.c: New file.
35089         * modules/uninorm/nfc-tests: New file.
35090
35091         New module 'uninorm/nfc'.
35092         * lib/uninorm/nfc.c: New file.
35093         * modules/uninorm/nfc: New file.
35094
35095         Tests for module 'uninorm/nfd'.
35096         * tests/uninorm/test-nfd.c: New file.
35097         * tests/uninorm/test-u8-nfd.c: New file.
35098         * tests/uninorm/test-u16-nfd.c: New file.
35099         * tests/uninorm/test-u32-nfd.c: New file.
35100         * tests/uninorm/test-u32-nfd-big.sh: New file.
35101         * tests/uninorm/test-u32-nfd-big.c: New file.
35102         * tests/uninorm/test-u32-normalize-big.h: New file.
35103         * tests/uninorm/test-u32-normalize-big.c: New file.
35104         * tests/uninorm/NormalizationTest.txt: New file, created from
35105         Unicode 5.1.0 NormalizationTest.txt.
35106         * modules/uninorm/nfd-tests: New file.
35107
35108         New module 'uninorm/nfd'.
35109         * lib/uninorm/nfd.c: New file.
35110         * modules/uninorm/nfd: New file.
35111
35112         New module 'uninorm/u32-normalize'.
35113         * lib/uninorm/u32-normalize.c: New file.
35114         * modules/uninorm/u32-normalize: New file.
35115
35116         New module 'uninorm/u16-normalize'.
35117         * lib/uninorm/u16-normalize.c: New file.
35118         * modules/uninorm/u16-normalize: New file.
35119
35120         New module 'uninorm/u8-normalize'.
35121         * lib/uninorm/u8-normalize.c: New file.
35122         * lib/uninorm/normalize-internal.h: New file.
35123         * lib/uninorm/u-normalize-internal.h: New file.
35124         * modules/uninorm/u8-normalize: New file.
35125
35126         New module 'uninorm/decompose-internal'.
35127         * lib/uninorm/decompose-internal.c: New file.
35128         * modules/uninorm/decompose-internal: New file.
35129
35130         Tests for module 'uninorm/composition'.
35131         * tests/uninorm/test-composition.c: New file.
35132         * modules/uninorm/composition-tests: New file.
35133
35134         New module 'uninorm/composition'.
35135         * lib/uninorm/composition.c: New file.
35136         * lib/uninorm/composition-table.gperf: New file, generated by
35137         gen-uni-tables.
35138         * modules/uninorm/composition: New file.
35139
35140         Tests for module 'uninorm/compat-decomposition'.
35141         * tests/uninorm/test-compat-decomposition.c: New file.
35142         * modules/uninorm/compat-decomposition-tests: New file.
35143
35144         New module 'uninorm/compat-decomposition'.
35145         * lib/uninorm/decompose-internal.h: New file.
35146         * lib/uninorm/compat-decomposition.c: New file.
35147         * modules/uninorm/compat-decomposition: New file.
35148
35149         Tests for module 'uninorm/canonical-decomposition'.
35150         * tests/uninorm/test-canonical-decomposition.c: New file.
35151         * modules/uninorm/canonical-decomposition-tests: New file.
35152
35153         New module 'uninorm/canonical-decomposition'.
35154         * lib/uninorm/canonical-decomposition.c: New file.
35155         * modules/uninorm/canonical-decomposition: New file.
35156
35157         Tests for module 'uninorm/decomposition'.
35158         * tests/uninorm/test-decomposition.c: New file.
35159         * modules/uninorm/decomposition-tests: New file.
35160
35161         New module 'uninorm/decomposition'.
35162         * lib/uninorm/decomposition.c: New file.
35163         * modules/uninorm/decomposition: New file.
35164
35165         New module 'uninorm/decomposition-table'.
35166         * lib/uninorm/decomposition-table.h: New file.
35167         * lib/uninorm/decomposition-table.c: New file.
35168         * lib/uninorm/decomposition-table1.h: New file, generated by
35169         gen-uni-tables.
35170         * lib/uninorm/decomposition-table2.h: New file, generated by
35171         gen-uni-tables.
35172         * modules/uninorm/decomposition-table: New file.
35173
35174         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
35175         (UC_DECOMP_*): New enumeration items.
35176         (get_decomposition): New function.
35177         (struct decomp_table): New type.
35178         (output_decomposition, output_decomposition_tables): New functions.
35179         (unicode_composition_exclusions): New variable.
35180         (fill_composition_exclusions, debug_output_composition_tables): New
35181         functions.
35182         (main): Accept one more argument. Invoke fill_composition_exclusions.
35183         Output decomposition and composition tables.
35184
35185         New module 'uninorm/base'.
35186         * lib/uninorm.h: New file.
35187         * lib/unictype.h: Update comment.
35188         * modules/uninorm/base: New file.
35189
35190 2009-02-21  David Lutterkort  <lutter@redhat.com>
35191
35192         Tests for module 'safe-alloc'.
35193         * tests/test-safe-alloc.c: New file.
35194         * modules/safe-alloc-tests: New file.
35195
35196         New module 'safe-alloc'.
35197         * lib/safe-alloc.h: New file.
35198         * lib/safe-alloc.c: New file.
35199         * m4/safe-alloc.m4: New file.
35200         * modules/safe-alloc: New file.
35201         * doc/safe-alloc.texi: New file.
35202         * doc/gnulib.texi: Include it.
35203         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
35204         safe-alloc.
35205
35206 2009-02-18  Bruno Haible  <bruno@clisp.org>
35207
35208         Fix link error on non-glibc systems.
35209         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
35210         variable.
35211         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35212
35213 2009-02-18  Jim Meyering  <meyering@redhat.com>
35214
35215         fts: avoid used-uninitialized error due to recent change
35216         * lib/fts.c (fts_read): Guard uses of the new member,
35217         parent->fts_n_dirs_remaining, since it's not relevant for
35218         the parent of a directory specified on the command-line.
35219
35220 2009-02-17  James Youngman  <jay@gnu.org>
35221             Bruno Haible  <bruno@clisp.org>
35222
35223         * m4/include_next.m4: Reformulate comment.
35224
35225 2009-02-16  Jim Meyering  <meyering@redhat.com>
35226
35227         fts: add #if guards so that the fts_lgpl module still builds
35228         * lib/fts.c: Guard just-added hash-table-using parts with
35229         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
35230         Reported by Simon Josefsson.
35231
35232 2009-02-15  Bruno Haible  <bruno@clisp.org>
35233
35234         * modules/array-mergesort-tests: New file.
35235         * tests/test-array-mergesort.c: New file.
35236
35237         New module 'array-mergesort'.
35238         * modules/array-mergesort: New file.
35239         * lib/array-mergesort.h: New file.
35240
35241 2009-02-15  Bruno Haible  <bruno@clisp.org>
35242
35243         Fix 2009-02-07 commit.
35244         * lib/gen-uni-tables.c (output_predicate, output_category,
35245         output_combclass, output_bidi_category, output_decimal_digit,
35246         output_digit, output_numeric, output_mirror, output_scripts,
35247         output_ident_category, output_simple_mapping): Fix format directives.
35248         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
35249
35250 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
35251
35252         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
35253         fixes are available from IBM.
35254
35255 2009-02-13  Jim Meyering  <meyering@redhat.com>
35256
35257         fts: arrange not to stat non-directories in more cases
35258         This makes GNU find (when it doesn't need to stat each file)
35259         *much* more efficient at traversing reiserfs file systems.
35260         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
35261         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
35262         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
35263         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
35264         (leaf_optimization_applies): New function.
35265         (LCO_hash, LCO_compare): New helper functions.
35266         (link_count_optimize_ok): New function.
35267         (fts_stat): Initialize new member (if dir).
35268         (fts_read): Decrement parent's fts_n_dirs_remaining count if
35269         we've just stat'ed a directory.  Skip the stat call when possible.
35270         ---
35271         Note this AFS-related exchange:
35272         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
35273         and note find's pioctl call in find/fstype.c.
35274         But that is necessary only if you want to enable the
35275         optimization for AFS, and for now, I don't.
35276
35277         fts: move a function definition "up" (no semantic change)
35278         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
35279         "up" to precede upcoming use of a related function.
35280
35281 2009-02-11  Jim Meyering  <meyering@redhat.com>
35282
35283         fts: correct internal computation of nlinks (optimization-related)
35284         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
35285         whether the current entry is a directory, so don't test it.
35286
35287 2009-02-10  Bruno Haible  <bruno@clisp.org>
35288
35289         Tests for module 'uniwbrk/ulc-wordbreaks'.
35290         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
35291         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
35292         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
35293
35294         Tests for module 'uniwbrk/u32-wordbreaks'.
35295         * modules/uniwbrk/u32-wordbreaks-tests: New file.
35296         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
35297
35298         Tests for module 'uniwbrk/u16-wordbreaks'.
35299         * modules/uniwbrk/u16-wordbreaks-tests: New file.
35300         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
35301
35302         Tests for module 'uniwbrk/u8-wordbreaks'.
35303         * modules/uniwbrk/u8-wordbreaks-tests: New file.
35304         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
35305
35306 2009-02-10  Bruno Haible  <bruno@clisp.org>
35307
35308         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
35309         property.
35310         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
35311         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
35312         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
35313
35314 2009-02-10  Simon Josefsson  <simon@josefsson.org>
35315
35316         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
35317         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
35318
35319 2009-02-10  Bruno Haible  <bruno@clisp.org>
35320
35321         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
35322         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
35323         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
35324         * lib/unilbrk/u8-possible-linebreaks.c: Update.
35325         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
35326         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
35327
35328 2009-02-09  Simon Josefsson  <simon@josefsson.org>
35329
35330         * lib/sockets.h (gl_fd_to_handle): New function.
35331
35332         * tests/test-sockets.c: Call gl_fd_to_handle.
35333
35334 2009-02-09  Bruno Haible  <bruno@clisp.org>
35335
35336         * doc/havelib.texi: Document the conventions on bi-arch systems.
35337
35338 2009-02-08  Bruno Haible  <bruno@clisp.org>
35339
35340         Document the AC_LIB_LINKFLAGS macro.
35341         * doc/havelib.texi: New file, mostly written on 2005-05-24.
35342         * doc/gnulib.texi: Include it.
35343
35344 2009-02-08  Bruno Haible  <bruno@clisp.org>
35345
35346         Fix wrong order of sections, compared to TOC.
35347         * doc/gnulib.texi: Include relocatable-maint.texi after the
35348         "Regular expressions" node, not before.
35349
35350 2009-02-08  Bruno Haible  <bruno@clisp.org>
35351
35352         Tests for module 'unicase/totitle'.
35353         * modules/unicase/totitle-tests: New file.
35354
35355         Tests for module 'unicase/tolower'.
35356         * modules/unicase/tolower-tests: New file.
35357
35358         Tests for module 'unicase/toupper'.
35359         * modules/unicase/toupper-tests: New file.
35360         * tests/unicase/test-mapping-part1.h: New file.
35361         * tests/unicase/test-mapping-part2.h: New file.
35362
35363         New module 'unicase/totitle'.
35364         * modules/unicase/totitle: New file.
35365         * lib/unicase/totitle.c: New file.
35366
35367         New module 'unicase/tolower'.
35368         * modules/unicase/tolower: New file.
35369         * lib/unicase/tolower.c: New file.
35370
35371         New module 'unicase/toupper'.
35372         * modules/unicase/toupper: New file.
35373         * lib/unicase/toupper.c: New file.
35374         * lib/unicase/simple-mapping.h: New file.
35375
35376         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
35377         (mapping_table): New structure.
35378         (output_simple_mapping): New function.
35379         (main): Invoke output_simple_mapping_test and output_simple_mapping.
35380         * modules/gen-uni-tables (Description): Update.
35381         * lib/unicase/toupper.h: New file, automatically generated by
35382         gen-uni-tables.
35383         * lib/unicase/tolower.h: New file, automatically generated by
35384         gen-uni-tables.
35385         * lib/unicase/totitle.h: New file, automatically generated by
35386         gen-uni-tables.
35387         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
35388         gen-uni-tables.
35389         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
35390         gen-uni-tables.
35391         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
35392         gen-uni-tables.
35393
35394         New module 'unicase/base'.
35395         * modules/unicase/base: New file.
35396         * lib/unicase.h: New file.
35397
35398 2009-02-08  Bruno Haible  <bruno@clisp.org>
35399
35400         New module 'uniwbrk/ulc-wordbreaks'.
35401         * modules/uniwbrk/ulc-wordbreaks: New file.
35402         * lib/uniwbrk/ulc-wordbreaks.c: New file.
35403
35404         New module 'uniwbrk/u32-wordbreaks'.
35405         * modules/uniwbrk/u32-wordbreaks: New file.
35406         * lib/uniwbrk/u32-wordbreaks.c: New file.
35407
35408         New module 'uniwbrk/u16-wordbreaks'.
35409         * modules/uniwbrk/u16-wordbreaks: New file.
35410         * lib/uniwbrk/u16-wordbreaks.c: New file.
35411
35412         New module 'uniwbrk/u8-wordbreaks'.
35413         * modules/uniwbrk/u8-wordbreaks: New file.
35414         * lib/uniwbrk/u8-wordbreaks.c: New file.
35415         * lib/uniwbrk/u-wordbreaks.h: New file.
35416
35417         New module 'uniwbrk/table'.
35418         * modules/uniwbrk/table: New file.
35419         * lib/uniwbrk/wbrktable.h: New file.
35420         * lib/uniwbrk/wbrktable.c: New file.
35421
35422         New module 'uniwbrk/wordbreak-property'.
35423         * modules/uniwbrk/wordbreak-property: New file.
35424         * lib/uniwbrk/wordbreak-property.c: New file.
35425
35426         * lib/gen-uni-tables.c (WBP_*): New enum items.
35427         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
35428         (unicode_org_wbp): New variable.
35429         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
35430         New functions.
35431         (wbp_table): New structure.
35432         (output_wbp, output_wbrk_tables): New functions.
35433         (main): Accept additional argument. Invoke fill_org_wbp,
35434         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
35435         output_wbrk_tables.
35436         * modules/gen-uni-tables (Description): Update.
35437         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
35438         gen-uni-tables.
35439
35440         New module 'uniwbrk/base'.
35441         * modules/uniwbrk/base: New file.
35442         * lib/uniwbrk.h: New file.
35443
35444 2009-02-08  Bruno Haible  <bruno@clisp.org>
35445
35446         Update to Unicode 5.1.0.
35447         * lib/gen-uni-tables.c (is_property_alphabetic): Include
35448         U+2185..U+2188.
35449         (is_property_default_ignorable_code_point): Don't include characters
35450         of category Cc or Cs and not-a-characters.
35451         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
35452         U+0D79, U+109E, U+109F, U+A60C.
35453         * lib/unictype/bidi_of.h: Regenerated.
35454         * lib/unictype/blocks.h: Regenerated.
35455         * lib/unictype/categ_C.h: Regenerated.
35456         * lib/unictype/categ_Cf.h: Regenerated.
35457         * lib/unictype/categ_Cn.h: Regenerated.
35458         * lib/unictype/categ_L.h: Regenerated.
35459         * lib/unictype/categ_Ll.h: Regenerated.
35460         * lib/unictype/categ_Lm.h: Regenerated.
35461         * lib/unictype/categ_Lo.h: Regenerated.
35462         * lib/unictype/categ_Lu.h: Regenerated.
35463         * lib/unictype/categ_M.h: Regenerated.
35464         * lib/unictype/categ_Mc.h: Regenerated.
35465         * lib/unictype/categ_Me.h: Regenerated.
35466         * lib/unictype/categ_Mn.h: Regenerated.
35467         * lib/unictype/categ_N.h: Regenerated.
35468         * lib/unictype/categ_Nd.h: Regenerated.
35469         * lib/unictype/categ_Nl.h: Regenerated.
35470         * lib/unictype/categ_No.h: Regenerated.
35471         * lib/unictype/categ_P.h: Regenerated.
35472         * lib/unictype/categ_Pd.h: Regenerated.
35473         * lib/unictype/categ_Pe.h: Regenerated.
35474         * lib/unictype/categ_Pf.h: Regenerated.
35475         * lib/unictype/categ_Pi.h: Regenerated.
35476         * lib/unictype/categ_Po.h: Regenerated.
35477         * lib/unictype/categ_Ps.h: Regenerated.
35478         * lib/unictype/categ_S.h: Regenerated.
35479         * lib/unictype/categ_Sk.h: Regenerated.
35480         * lib/unictype/categ_Sm.h: Regenerated.
35481         * lib/unictype/categ_So.h: Regenerated.
35482         * lib/unictype/categ_of.h: Regenerated.
35483         * lib/unictype/combining.h: Regenerated.
35484         * lib/unictype/ctype_alnum.h: Regenerated.
35485         * lib/unictype/ctype_alpha.h: Regenerated.
35486         * lib/unictype/ctype_graph.h: Regenerated.
35487         * lib/unictype/ctype_lower.h: Regenerated.
35488         * lib/unictype/ctype_print.h: Regenerated.
35489         * lib/unictype/ctype_punct.h: Regenerated.
35490         * lib/unictype/ctype_upper.h: Regenerated.
35491         * lib/unictype/decdigit.h: Regenerated.
35492         * lib/unictype/digit.h: Regenerated.
35493         * lib/unictype/mirror.h: Regenerated.
35494         * lib/unictype/numeric.h: Regenerated.
35495         * lib/unictype/pr_alphabetic.h: Regenerated.
35496         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
35497         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
35498         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
35499         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
35500         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
35501         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
35502         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
35503         * lib/unictype/pr_combining.h: Regenerated.
35504         * lib/unictype/pr_dash.h: Regenerated.
35505         * lib/unictype/pr_decimal_digit.h: Regenerated.
35506         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
35507         * lib/unictype/pr_deprecated.h: Regenerated.
35508         * lib/unictype/pr_diacritic.h: Regenerated.
35509         * lib/unictype/pr_extender.h: Regenerated.
35510         * lib/unictype/pr_format_control.h: Regenerated.
35511         * lib/unictype/pr_grapheme_base.h: Regenerated.
35512         * lib/unictype/pr_grapheme_extend.h: Regenerated.
35513         * lib/unictype/pr_grapheme_link.h: Regenerated.
35514         * lib/unictype/pr_id_continue.h: Regenerated.
35515         * lib/unictype/pr_id_start.h: Regenerated.
35516         * lib/unictype/pr_ideographic.h: Regenerated.
35517         * lib/unictype/pr_ignorable_control.h: Regenerated.
35518         * lib/unictype/pr_lowercase.h: Regenerated.
35519         * lib/unictype/pr_math.h: Regenerated.
35520         * lib/unictype/pr_numeric.h: Regenerated.
35521         * lib/unictype/pr_other_alphabetic.h: Regenerated.
35522         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
35523         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
35524         * lib/unictype/pr_other_id_continue.h: Regenerated.
35525         * lib/unictype/pr_other_lowercase.h: Regenerated.
35526         * lib/unictype/pr_other_math.h: Regenerated.
35527         * lib/unictype/pr_punctuation.h: Regenerated.
35528         * lib/unictype/pr_sentence_terminal.h: Regenerated.
35529         * lib/unictype/pr_soft_dotted.h: Regenerated.
35530         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
35531         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
35532         * lib/unictype/pr_unified_ideograph.h: Regenerated.
35533         * lib/unictype/pr_uppercase.h: Regenerated.
35534         * lib/unictype/pr_xid_continue.h: Regenerated.
35535         * lib/unictype/pr_xid_start.h: Regenerated.
35536         * lib/unictype/pr_zero_width.h: Regenerated.
35537         * lib/unictype/scripts.h: Regenerated.
35538         * lib/unictype/scripts_byname.gperf: Regenerated.
35539         * lib/unictype/sy_java_ident.h: Regenerated.
35540         * lib/unilbrk/lbrkprop1.h: Regenerated.
35541         * lib/unilbrk/lbrkprop2.h: Regenerated.
35542         * tests/unictype/test-categ_C.c: Regenerated.
35543         * tests/unictype/test-categ_Cf.c: Regenerated.
35544         * tests/unictype/test-categ_Cn.c: Regenerated.
35545         * tests/unictype/test-categ_L.c: Regenerated.
35546         * tests/unictype/test-categ_Ll.c: Regenerated.
35547         * tests/unictype/test-categ_Lm.c: Regenerated.
35548         * tests/unictype/test-categ_Lo.c: Regenerated.
35549         * tests/unictype/test-categ_Lu.c: Regenerated.
35550         * tests/unictype/test-categ_M.c: Regenerated.
35551         * tests/unictype/test-categ_Mc.c: Regenerated.
35552         * tests/unictype/test-categ_Me.c: Regenerated.
35553         * tests/unictype/test-categ_Mn.c: Regenerated.
35554         * tests/unictype/test-categ_N.c: Regenerated.
35555         * tests/unictype/test-categ_Nd.c: Regenerated.
35556         * tests/unictype/test-categ_Nl.c: Regenerated.
35557         * tests/unictype/test-categ_No.c: Regenerated.
35558         * tests/unictype/test-categ_P.c: Regenerated.
35559         * tests/unictype/test-categ_Pd.c: Regenerated.
35560         * tests/unictype/test-categ_Pe.c: Regenerated.
35561         * tests/unictype/test-categ_Pf.c: Regenerated.
35562         * tests/unictype/test-categ_Pi.c: Regenerated.
35563         * tests/unictype/test-categ_Po.c: Regenerated.
35564         * tests/unictype/test-categ_Ps.c: Regenerated.
35565         * tests/unictype/test-categ_S.c: Regenerated.
35566         * tests/unictype/test-categ_Sk.c: Regenerated.
35567         * tests/unictype/test-categ_Sm.c: Regenerated.
35568         * tests/unictype/test-categ_So.c: Regenerated.
35569         * tests/unictype/test-ctype_alnum.c: Regenerated.
35570         * tests/unictype/test-ctype_alpha.c: Regenerated.
35571         * tests/unictype/test-ctype_graph.c: Regenerated.
35572         * tests/unictype/test-ctype_lower.c: Regenerated.
35573         * tests/unictype/test-ctype_print.c: Regenerated.
35574         * tests/unictype/test-ctype_punct.c: Regenerated.
35575         * tests/unictype/test-ctype_upper.c: Regenerated.
35576         * tests/unictype/test-decdigit.h: Regenerated.
35577         * tests/unictype/test-digit.h: Regenerated.
35578         * tests/unictype/test-numeric.h: Regenerated.
35579         * tests/unictype/test-pr_alphabetic.c: Regenerated.
35580         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
35581         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
35582         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
35583         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
35584         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
35585         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
35586         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
35587         * tests/unictype/test-pr_combining.c: Regenerated.
35588         * tests/unictype/test-pr_dash.c: Regenerated.
35589         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
35590         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
35591         * tests/unictype/test-pr_deprecated.c: Regenerated.
35592         * tests/unictype/test-pr_diacritic.c: Regenerated.
35593         * tests/unictype/test-pr_extender.c: Regenerated.
35594         * tests/unictype/test-pr_format_control.c: Regenerated.
35595         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
35596         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
35597         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
35598         * tests/unictype/test-pr_id_continue.c: Regenerated.
35599         * tests/unictype/test-pr_id_start.c: Regenerated.
35600         * tests/unictype/test-pr_ideographic.c: Regenerated.
35601         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
35602         * tests/unictype/test-pr_lowercase.c: Regenerated.
35603         * tests/unictype/test-pr_math.c: Regenerated.
35604         * tests/unictype/test-pr_numeric.c: Regenerated.
35605         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
35606         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
35607         Regenerated.
35608         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
35609         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
35610         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
35611         * tests/unictype/test-pr_other_math.c: Regenerated.
35612         * tests/unictype/test-pr_punctuation.c: Regenerated.
35613         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
35614         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
35615         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
35616         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
35617         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
35618         * tests/unictype/test-pr_uppercase.c: Regenerated.
35619         * tests/unictype/test-pr_xid_continue.c: Regenerated.
35620         * tests/unictype/test-pr_xid_start.c: Regenerated.
35621         * tests/unictype/test-pr_zero_width.c: Regenerated.
35622
35623         Update to Unicode 5.1.0.
35624         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
35625         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
35626         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
35627         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
35628         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
35629         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
35630         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
35631         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
35632         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
35633         (nonspacing_table_ind): Update.
35634         * tests/uniwidth/test-uc_width2.sh: Update expected result.
35635
35636         Update to Unicode 5.1.0.
35637         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
35638         code transform.
35639         * lib/uniname/uniname.c (unicode_character_name,
35640         unicode_name_character): Add the range 0x1Fxxx to the code transform.
35641         * lib/uniname/uninames.h: Regenerated.
35642         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
35643
35644 2009-02-07  Bruno Haible  <bruno@clisp.org>
35645
35646         Merge gen-ctype and gen-lbrk into a single program.
35647         * lib/gen-uni-tables.c: New file, incorporating
35648         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
35649         Add directory prefixes to the names of the generated files.
35650         * lib/unictype/gen-ctype.c: Remove file.
35651         * lib/unilbrk/gen-lbrk.c: Remove file.
35652         * modules/gen-uni-tables: New file.
35653         * modules/unictype/gen-ctype: Remove file.
35654         * modules/unilbrk/gen-lbrk: Remove file.
35655
35656 2009-02-07  Bruno Haible  <bruno@clisp.org>
35657
35658         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
35659
35660         New module 'unistr/u32-strcoll'.
35661         * modules/unistr/u32-strcoll: New file.
35662         * lib/unistr/u32-strcoll.c: New file.
35663
35664         New module 'unistr/u16-strcoll'.
35665         * modules/unistr/u16-strcoll: New file.
35666         * lib/unistr/u16-strcoll.c: New file.
35667
35668         New module 'unistr/u8-strcoll'.
35669         * modules/unistr/u8-strcoll: New file.
35670         * lib/unistr/u8-strcoll.c: New file.
35671         * lib/unistr/u-strcoll.h: New file.
35672
35673 2009-02-07  Bruno Haible  <bruno@clisp.org>
35674
35675         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
35676         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35677         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35678         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
35679         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
35680         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
35681
35682 2009-02-07  Bruno Haible  <bruno@clisp.org>
35683
35684         Make 64-bit clean.
35685         * lib/unictype/gen-ctype.c (output_predicate, output_category,
35686         output_combclass, output_bidi_category, output_decimal_digit,
35687         output_digit, output_numeric, output_mirror, output_scripts,
35688         output_ident_category): Use proper width specifier in format strings.
35689
35690 2009-02-07  Bruno Haible  <bruno@clisp.org>
35691
35692         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
35693         failure behaviour.
35694
35695 2009-02-07  Jim Meyering  <meyering@redhat.com>
35696
35697         regex: avoid compilation failure with upcoming gcc-4.4
35698         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
35699         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
35700         "... error: integer overflow in preprocessor expression".
35701
35702 2009-02-05  Ben Pfaff  <blp@gnu.org>
35703
35704         Fix link errors on Windows when close module is used.
35705         * modules/close: Add $(LIB_CLOSE) to Link section.
35706         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
35707         $(LIB_CLOSE) on Windows.
35708
35709 2009-02-05  Jim Meyering  <meyering@redhat.com>
35710
35711         still avoid unused-parameter warnings, but do it cleanly
35712         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
35713         (get_fs_usage): Cast to void instead.
35714         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
35715         (dev_from_mount_options, read_file_system_list): Cast to void.
35716         Prompted by Bruno Haible.
35717
35718 2009-02-04  Jim Meyering  <meyering@redhat.com>
35719
35720         fsusage.c: correct copyright year
35721         * lib/fsusage.c: Reflect year in which the change is pushed into
35722
35723         avoid misc. warnings
35724         * lib/fsusage.c (UNUSED_PARAM): Define.
35725         (get_fs_usage): Mark parameter "disk" as unused.
35726         * lib/getugroups.c (getgrent): Use "void" in prototype.
35727         * lib/mountlist.c: Mark unused parameters.
35728         (read_file_system_list): Declare a local with "const".
35729         * lib/nanosleep.c (getnow): Declare static.
35730         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
35731
35732         dirfd: set errno upon failure
35733         * lib/dirfd.c: Include <errno.h>.
35734         Set errno to ENOTSUP when returning -1.
35735         * modules/dirfd (Depends-on): Add errno.
35736         Suggested by John Kodis <kodis@comcast.net>.
35737
35738 2009-02-01  Bruno Haible  <bruno@clisp.org>
35739
35740         Don't assume sizeof (long) >= sizeof (void *).
35741         * lib/memcmp.c: Include stdint.h.
35742         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
35743         srcp2 to 'const byte *'.
35744         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
35745         types to uintptr_t.
35746         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
35747         * modules/memcmp (Depends-on): Add stdint.
35748         Reported by Ozkan Sezer <sezeroz@gmail.com>.
35749
35750 2009-01-30  Eric Blake  <ebb9@byu.net>
35751
35752         fix more require-before-expand issues
35753         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
35754         expand, AC_PROG_AWK.
35755         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
35756
35757 2009-01-28  Eric Blake  <ebb9@byu.net>
35758
35759         version-etc: use consistent URL formatting
35760         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
35761         Improve formatting.  Use fputs for string without %.
35762
35763 2009-01-28  Jim Meyering  <meyering@redhat.com>
35764
35765         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
35766         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
35767         "underquoted definition of NAME" from autoconf-2.59.
35768
35769 2009-01-28  Bruno Haible  <bruno@clisp.org>
35770
35771         * doc/gnulib.texi: Add "Obsolete modules" to index.
35772
35773 2009-01-28  Jim Meyering  <meyering@redhat.com>
35774
35775         useless-if-before-free: recognize more variants
35776         * build-aux/useless-if-before-free: Also recognize e.g.,
35777         if (NULL != p) free (p);
35778
35779 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
35780
35781         test-getaddrinfo: skip (don't fail) this test when there's no network
35782         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
35783         on the presumption that it means you lack network access.
35784
35785 2009-01-26  Jim Meyering  <meyering@redhat.com>
35786
35787         fflush: avoid warnings on modern systems
35788         * lib/fflush.c (rpl_fflush): Move declarations of locals,
35789         pos and result, into scopes where they're used.
35790
35791 2009-01-26  Eric Blake  <ebb9@byu.net>
35792
35793         Silence warning reintroduced by recent extensions patch.
35794         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
35795         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
35796         autoconf.
35797
35798         Backport improved autoconf semantics of AC_DEFUN_ONCE.
35799         * m4/00gnulib.m4: New file.
35800         * gnulib-tool (func_get_filelist): Always use it.
35801         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
35802         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
35803
35804 2009-01-25  Bruno Haible  <bruno@clisp.org>
35805
35806         Make test-quotearg work on MacOS X and AIX.
35807         * tests/test-quotearg.sh: New file.
35808         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
35809         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
35810         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
35811         include <libintl.h>.
35812         (fake_locale): Remove variable.
35813         (gettext, dgettext, dcgettext): Remove functions.
35814         (main): Instead of setting a fake locale, set a real locale. Call
35815         textdomain and bindtextdomain.
35816         * modules/quotearg-tests (Files): Add the new files.
35817         (Depends-on): Add gettext, setenv, unsetenv.
35818         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35819         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
35820         Augment TESTS_ENVIRONMENT.
35821
35822 2009-01-25  Bruno Haible  <bruno@clisp.org>
35823
35824         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
35825         fr_FR.ISO8859-1 locale on MacOS X.
35826         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
35827         ja_JP.eucJP locale on MacOS X.
35828         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
35829         zh_CN.GB18030 locale on MacOS X.
35830
35831 2009-01-25  Bruno Haible  <bruno@clisp.org>
35832
35833         Avoid link errors on MacOS X 10.3.
35834         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
35835         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35836
35837 2009-01-25  Bruno Haible  <bruno@clisp.org>
35838
35839         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
35840         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
35841         * modules/pipe (Files): Remove m4/posix_spawn.m4.
35842         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
35843         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
35844         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
35845         posix_spawnattr_init, posix_spawnattr_setsigmask,
35846         posix_spawnattr_setflags, posix_spawnattr_destroy.
35847
35848         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
35849         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
35850         * modules/execute (Files): Remove m4/posix_spawn.m4.
35851         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
35852         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
35853         posix_spawnattr_init, posix_spawnattr_setsigmask,
35854         posix_spawnattr_setflags, posix_spawnattr_destroy.
35855
35856 2009-01-25  Bruno Haible  <bruno@clisp.org>
35857
35858         * lib/glthread/threadlib.c: Include <stdlib.h>.
35859
35860 2009-01-25  Bruno Haible  <bruno@clisp.org>
35861
35862         * lib/glthread/threadlib.c (dummy): New declaration.
35863
35864 2009-01-25  Bruno Haible  <bruno@clisp.org>
35865
35866         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
35867         multibyte characters also for the GB18030 encoding. Don't crash when
35868         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
35869
35870 2009-01-25  Bruno Haible  <bruno@clisp.org>
35871
35872         Avoid redefining 'struct random_data' on OSF/1 5.1.
35873         * lib/stdlib.in.h: Include <random.h> if it exists.
35874         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
35875         HAVE_RANDOM_H. Include <random.h> when testing whether
35876         'struct random_data' exists.
35877         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
35878
35879 2009-01-25  Bruno Haible  <bruno@clisp.org>
35880
35881         Don't install charset.alias on MacOS X >= 10.3.
35882         * lib/localcharset.c (DARWIN7): New macro.
35883         (get_charset_aliases): Hardcode the result for Darwin7.
35884         * modules/localcharset (install-exec-local): Don't install
35885         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
35886
35887 2009-01-25  Bruno Haible  <bruno@clisp.org>
35888
35889         Don't install charset.alias on mingw and Cygwin.
35890         * modules/localcharset (install-exec-local): Don't install
35891         charset.alias on mingw and Cygwin, if the file does not yet exist.
35892         The result for these platforms is hardcoded in localcharset.c.
35893
35894 2009-01-25  Bruno Haible  <bruno@clisp.org>
35895
35896         Make it possible again to use AC_GNU_SOURCE together with gnulib.
35897         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
35898         before requiring AC_USE_SYSTEM_EXTENSIONS.
35899
35900 2009-01-25  Jim Meyering  <meyering@redhat.com>
35901
35902         c-strtod: avoid warnings
35903         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
35904         "assignment discards qualifiers from pointer target type" warnings.
35905
35906 2009-01-24  Bruno Haible  <bruno@clisp.org>
35907
35908         Add support for non-UTF-8 locales on MacOS X.
35909         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
35910         canonical encodings. For Darwin 7 and newer, don't map traditional
35911         encodings to UTF-8.
35912         Reported by Vincent Lefevre <vincent@vinc17.org>
35913         at <http://savannah.gnu.org/bugs/?25235>.
35914
35915 2009-01-24  Bruno Haible  <bruno@clisp.org>
35916
35917         * doc/gnulib.texi (Obsolete modules): New section.
35918         Reported by Mike Frysinger <vapier@gentoo.org>.
35919
35920 2009-01-24  Bruno Haible  <bruno@clisp.org>
35921
35922         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
35923         (%.dvi): New rule.
35924
35925 2009-01-24  Bruno Haible  <bruno@clisp.org>
35926
35927         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
35928         Reported by Eric Blake.
35929
35930 2009-01-24  Bruno Haible  <bruno@clisp.org>
35931
35932         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
35933         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
35934         Reported by Gary V. Vaughan <gary@gnu.org>.
35935
35936 2009-01-24  Bruno Haible  <bruno@clisp.org>
35937
35938         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
35939
35940 2009-01-23  Bruno Haible  <bruno@clisp.org>
35941
35942         Make c-strtod, c-strtold usable in libraries.
35943         * lib/c-strtod.c: Include string.h instead of xalloc.h.
35944         (C_STRTOD): Call strdup instead of xstrdup.
35945         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
35946         * modules/c-strtold (Depends-on): Likewise.
35947         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
35948         * NEWS: Mention the change.
35949         Reported by Michael Gold <mgold@ncf.ca>.
35950
35951 2009-01-23  Jim Meyering  <meyering@redhat.com>
35952
35953         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
35954         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
35955         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
35956
35957 2009-01-23  Simon Josefsson  <simon@josefsson.org>
35958
35959         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
35960         GNU CoreUtils.
35961         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
35962         * modules/version-etc (Description): Update.
35963
35964 2009-01-22  Bruno Haible  <bruno@clisp.org>
35965
35966         Cache the C locale object.
35967         * lib/c-strtod.c (c_locale_cache): New variable.
35968         (c_locale): New function.
35969         (C_STRTOD): Use it, and don't call freelocale.
35970         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
35971         Suggested by Paolo Bonzini.
35972
35973 2009-01-21  Bruno Haible  <bruno@clisp.org>
35974
35975         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
35976         conditions other than overflow.
35977
35978 2009-01-21  Bruno Haible  <bruno@clisp.org>
35979
35980         * lib/c-strtod.c: Include errno.h.
35981         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
35982         value from STRTOD_L and STRTOD.
35983
35984 2009-01-21  Bruno Haible  <bruno@clisp.org>
35985         and Jim Meyering  <meyering@redhat.com>
35986
35987         nanosleep: skip configure test (fail it) for apple universal builds
35988         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
35989         universal builds, assume that nanosleep does not work.
35990         * modules/nanosleep (Depends-on): Add multiarch.
35991
35992         mktime: skip configure test (fail it) for apple universal builds
35993         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
35994         universal builds, assume that mktime does not work.
35995         * modules/mktime (Depends-on): Add multiarch.
35996
35997 2009-01-21  Eric Blake  <ebb9@byu.net>
35998
35999         multiarch: avoid expand-before-require warning
36000         * modules/multiarch (configure.ac): Require, rather than expand,
36001         gl_MULTIARCH.
36002         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
36003         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
36004         enforce that all clients require it.  Partial reversion of
36005         2008-12-29 patch.
36006
36007         error: avoid expand-before-require warning
36008         * modules/errno (configure.ac): Require, rather than expand,
36009         gl_HEADER_ERRNO_H.
36010         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
36011         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
36012         enforce that all clients require it.
36013
36014         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
36015         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
36016         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
36017         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
36018
36019 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
36020
36021         Revert:
36022         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36023
36024         regex: do not depend on obsolete modules.
36025         * modules/regex: Remove memcmp and memmove.
36026
36027 2009-01-20  Bruno Haible  <bruno@clisp.org>
36028
36029         Make the 'link' module link on Windows NT 4.
36030         * lib/link.c (_WIN32_WINNT): Don't define.
36031         (CreateHardLinkFuncType): New type.
36032         (CreateHardLinkFunc, initialized): New variables.
36033         (initialize): New function.
36034         (link): Invoke CreateHardLink indirectly through the function pointer.
36035
36036 2009-01-20  Bruno Haible  <bruno@clisp.org>
36037
36038         Fix compilation failure on mingw.
36039         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
36040
36041 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
36042
36043         * doc/c-strtod.texi: Mention a couple of restrictions.
36044
36045 2009-01-20  Jim Meyering  <meyering@redhat.com>
36046
36047         gettimeofday: move more declarations out of functions
36048         * lib/gettimeofday.c: Move extern declarations of tzset and
36049         gmtime out of containing functions.  Prompted by Bruno Haible.
36050
36051 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
36052
36053         regex: do not depend on obsolete modules.
36054         * modules/regex: Remove memcmp and memmove.
36055
36056 2009-01-19  Bruno Haible  <bruno@clisp.org>
36057
36058         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36059         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
36060         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36061         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
36062         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
36063
36064 2009-01-19  Bruno Haible  <bruno@clisp.org>
36065
36066         * tests/test-link.c: Include <errno.h>.
36067         (main): Exit with code 77 when a hard link cannot be created due to
36068         the file system.
36069         * tests/test-link.sh: Skip test when a hard link cannot be created due
36070         to the file system.
36071         Suggested by Eric Blake.
36072
36073 2009-01-19  Martin Lambers  <marlam@marlam.de>
36074
36075         * modules/link-tests: New file.
36076         * tests/test-link.sh: New file.
36077         * tests/test-link.c: New file.
36078
36079 2009-01-19  Eric Blake  <ebb9@byu.net>
36080
36081         doc: mention another function added in cygwin 1.7.0
36082         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
36083         Another new function in cygwin 1.7.
36084
36085 2009-01-19  Bruno Haible  <bruno@clisp.org>
36086
36087         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
36088         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
36089         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
36090         gl_BIGENDIAN, not AC_C_BIGENDIAN.
36091         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36092         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
36093         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
36094         * m4/md4.m4 (gl_MD4): Likewise.
36095         * m4/md5.m4 (gl_MD5): Likewise.
36096         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
36097         * m4/sha1.m4 (gl_SHA1): Likewise.
36098         * m4/sha256.m4 (gl_SHA256): Likewise.
36099         * m4/sha512.m4 (gl_SHA512): Likewise.
36100
36101 2009-01-19  Bruno Haible  <bruno@clisp.org>
36102
36103         * modules/uniname/uniname-tests (Depends-on): Add progname.
36104         * tests/uniname/test-uninames.c: Include progname.h.
36105         (main): Call set_program_name.
36106
36107         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
36108         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
36109         (main): Call set_program_name.
36110
36111         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
36112         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
36113         (main): Call set_program_name.
36114
36115         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
36116         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
36117         (main): Call set_program_name.
36118
36119         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
36120         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
36121         (main): Call set_program_name.
36122
36123         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
36124         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
36125         (main): Call set_program_name.
36126
36127         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
36128         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
36129         (main): Call set_program_name.
36130
36131         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
36132         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
36133         (main): Call set_program_name.
36134
36135         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
36136         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
36137         (main): Call set_program_name.
36138
36139 2009-01-19  Eric Blake  <ebb9@byu.net>
36140
36141         test-unistd: test previous patch
36142         * tests/test-unistd.c: Test *_FILENO macros.
36143
36144         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
36145         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36146         Guarantee a definition.
36147         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
36148         * modules/unistd-safer (Depends-on): Add dependency on unistd.
36149         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
36150         * lib/dup-safer.c (STDERR_FILENO): Likewise.
36151         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36152         Likewise.
36153         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
36154         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
36155         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
36156         Likewise.
36157         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
36158         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
36159         (STDERR_FILENO): Likewise.
36160         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
36161         (STDERR_FILENO): Likewise.
36162         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
36163         (STDERR_FILENO): Likewise.
36164         Reported by Elbert Pol.
36165
36166 2009-01-19  Eric Blake  <ebb9@byu.net>
36167
36168         doc: mention more functions added in cygwin 1.7.0
36169         * doc/posix-functions/abort.texi (abort): Update wording related
36170         to cygwin.
36171         * doc/posix-functions/daylight.texi (daylight): Likewise.
36172         * doc/posix-functions/optarg.texi (optarg): Likewise.
36173         * doc/posix-functions/optarg.texi (opterr): Likewise.
36174         * doc/posix-functions/optarg.texi (optind): Likewise.
36175         * doc/posix-functions/optarg.texi (optopt): Likewise.
36176         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
36177         worked in 1.5.x, and was withdrawn in 1.7.
36178         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36179         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
36180         cygwin versions.
36181         * doc/posix-functions/perror.texi (perror): Likewise.
36182         * doc/posix-functions/printf.texi (printf): Likewise.
36183         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
36184         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
36185         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36186         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36187         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
36188         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
36189         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
36190         Likewise.
36191         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
36192         Likewise.
36193         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
36194         this function.
36195         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
36196         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
36197         Likewise.
36198         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
36199         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
36200         * doc/posix-functions/confstr.texi (confstr): Likewise.
36201         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
36202         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
36203         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
36204         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
36205         * doc/posix-functions/fputws.texi (fputws): Likewise.
36206         * doc/posix-functions/fwide.texi (fwide): Likewise.
36207         * doc/posix-functions/getwc.texi (getwc): Likewise.
36208         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
36209         * doc/posix-functions/putwc.texi (putwc): Likewise.
36210         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36211         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
36212         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
36213         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36214         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
36215         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
36216         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
36217         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
36218         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
36219         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
36220         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
36221
36222 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36223
36224         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
36225         * lib/ioctl.c: Include <sys/ioctl.h>.
36226
36227 2009-01-19  Simon Josefsson  <simon@josefsson.org>
36228
36229         * modules/getdate-tests (Depends-on): Add progname.
36230         * tests/test-getdate.c: Use progname module, to avoid link errors
36231         on non-glibc systems.
36232
36233 2009-01-18  Simon Josefsson  <simon@josefsson.org>
36234
36235         * modules/filenamecat-tests (Depends-on): Add progname.
36236         * modules/fstrcmp-tests (Depends-on): Likewise.
36237
36238         * tests/test-filenamecat.c: Use progname module, to avoid link
36239         errors on non-glibc systems.
36240         * tests/test-fstrcmp.c: Likewise.
36241
36242 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
36243
36244         gettimeofday: avoid warning: nested extern declaration of 'localtime'
36245         * lib/gettimeofday.c: Move extern declaration out of function.
36246
36247 2009-01-18  Bruno Haible  <bruno@clisp.org>
36248
36249         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
36250         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
36251         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
36252
36253 2009-01-18  Bruno Haible  <bruno@clisp.org>
36254
36255         * lib/strftime.c (MEMPCPY): Remove unused macro.
36256         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
36257
36258 2009-01-18  Martin Lambers  <marlam@marlam.de>
36259
36260         New module 'link'.
36261         * lib/unistd.in.h (link): New declaration.
36262         * lib/link.c: New file.
36263         * m4/link.m4: New file.
36264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
36265         HAVE_LINK.
36266         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
36267         * modules/link: New file.
36268         * doc/posix-functions/link.texi: Mention the new module.
36269
36270 2009-01-18  Bruno Haible  <bruno@clisp.org>
36271
36272         * tests/test-avltree_list.c (main): Call set_program_name.
36273         * tests/test-avltree_oset.c (main): Likewise.
36274         * tests/test-obstack-printf.c: Include progname.h.
36275         (main): Call set_program_name.
36276         * tests/test-quotearg.c: Include progname.h.
36277         (main): Call set_program_name.
36278         * tests/test-xmemdup0.c: Include progname.h.
36279         (main): Call set_program_name.
36280
36281 2009-01-18  Bruno Haible  <bruno@clisp.org>
36282
36283         New module 'alphasort'.
36284         * lib/dirent.in.h (alphasort): New declaration.
36285         * lib/alphasort.c: New file, from glibc with modifications.
36286         * m4/alphasort.m4: New file.
36287         * modules/alphasort: New file.
36288         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
36289         HAVE_ALPHASORT.
36290         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
36291         HAVE_ALPHASORT.
36292         * doc/posix-functions/alphasort.texi: Mention the new module and the
36293         portability problems.
36294
36295 2009-01-18  Bruno Haible  <bruno@clisp.org>
36296
36297         New module 'scandir'.
36298         * lib/dirent.in.h (scandir): New declaration.
36299         * lib/scandir.c: New file, from glibc with modifications.
36300         * m4/scandir.m4: New file.
36301         * modules/scandir: New file.
36302         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
36303         HAVE_SCANDIR.
36304         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
36305         HAVE_SCANDIR.
36306         * doc/posix-functions/scandir.texi: Mention the new module and the
36307         portability problems.
36308
36309 2009-01-17  Bruno Haible  <bruno@clisp.org>
36310
36311         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
36312         Update documentation.
36313         (func_remove_suffix): Escape all dots in the suffix. Update
36314         documentation.
36315         (func_filter_filelist): Update documentation.
36316         Reported by Ralf Wildenhues.
36317
36318 2009-01-17  Bruno Haible  <bruno@clisp.org>
36319
36320         * modules/dprintf-posix-tests: New file.
36321         * tests/test-dprintf-posix.sh: New file.
36322         * tests/test-dprintf-posix.c: New file.
36323
36324         New modules 'dprintf', 'dprintf-posix'.
36325         * lib/stdio.in.h (dprintf): New declaration.
36326         * lib/dprintf.c: New file.
36327         * m4/dprintf.m4: New file.
36328         * m4/dprintf-posix.m4: New file.
36329         * modules/dprintf: New file.
36330         * modules/dprintf-posix: New file.
36331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
36332         HAVE_DPRINTF, REPLACE_DPRINTF.
36333         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
36334         HAVE_DPRINTF, REPLACE_DPRINTF.
36335         * doc/posix-functions/dprintf.texi: Mention the new modules.
36336
36337 2009-01-17  Bruno Haible  <bruno@clisp.org>
36338
36339         * modules/vdprintf-posix-tests: New file.
36340         * tests/test-vdprintf-posix.sh: New file.
36341         * tests/test-vdprintf-posix.c: New file.
36342
36343         New modules 'vdprintf', 'vdprintf-posix'.
36344         * lib/stdio.in.h (vdprintf): New declaration.
36345         * lib/vdprintf.c: New file.
36346         * m4/vdprintf.m4: New file.
36347         * m4/vdprintf-posix.m4: New file.
36348         * modules/vdprintf: New file.
36349         * modules/vdprintf-posix: New file.
36350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
36351         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36352         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
36353         HAVE_VDPRINTF, REPLACE_VDPRINTF.
36354         * doc/posix-functions/vdprintf.texi: Mention the new modules.
36355
36356 2009-01-17  Bruno Haible  <bruno@clisp.org>
36357
36358         Fix replacement of fopen on mingw.
36359         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
36360         mingw.
36361
36362 2009-01-17  Bruno Haible  <bruno@clisp.org>
36363
36364         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
36365         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
36366
36367 2009-01-17  Bruno Haible  <bruno@clisp.org>
36368
36369         Avoid test-fflush2.sh failure on mingw.
36370         * tests/test-fflush2.c: Include binary-io.h.
36371         (main): Put standard input into binary mode.
36372         * modules/fflush-tests (Depends-on): Add binary-io.
36373
36374 2009-01-17  Bruno Haible  <bruno@clisp.org>
36375
36376         * lib/wchar.in.h: In another particular situation, include only the
36377         system's <wchar.h> file.
36378         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
36379         Reported by Albert Chin-A-Young <china@thewrittenword.com>
36380         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
36381
36382 2009-01-17  Bruno Haible  <bruno@clisp.org>
36383
36384         Support for stripping executables in --enable-relocatable.
36385         * build-aux/install-reloc: Expect one more argument, or an environment
36386         variable RELOC_STRIP_PROG. If set, strip the destination program and
36387         its wrapper.
36388         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
36389         RELOC_STRIP_PROG.
36390         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
36391         to set RELOCATABLE_STRIP.
36392         * NEWS: Mention the new Makefile requirement.
36393
36394 2009-01-17  Bruno Haible  <bruno@clisp.org>
36395
36396         * build-aux/install-reloc: Remove debugging information left over by
36397         C compiler on MacOS X.
36398
36399 2009-01-17  Bruno Haible  <bruno@clisp.org>
36400
36401         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
36402         * lib/progreloc.c (find_executable): Fix type of pointer passed to
36403         _NSGetExecutablePath.
36404
36405 2009-01-16  Jim Meyering  <meyering@redhat.com>
36406
36407         strerror: avoid warnings about discarding "const"
36408         * lib/strerror.c (rpl_strerror): Instead of returning a const
36409         string from each and every "case", use a variable, and add a single
36410         cast after the switch.
36411
36412 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
36413
36414         * lib/arpa_inet.in.h: Add extern "C" block for C++.
36415
36416 2009-01-16  Bruno Haible  <bruno@clisp.org>
36417
36418         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
36419         array initializer syntax that also works in C++ mode.
36420         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36421
36422 2009-01-16  Jim Meyering  <meyering@redhat.com>
36423
36424         poll: suppress a warning
36425         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
36426         to ignore "...unsigned expression < 0 is always false" warnings.
36427
36428 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
36429
36430         poll: remove declarations of unused variables
36431         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
36432         sockbuf and optlen.
36433
36434 2009-01-15  Bruno Haible  <bruno@clisp.org>
36435
36436         Make fflush-after-ungetc POSIX compliant on BSD systems.
36437         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
36438         (clear_ungetc_buffer): Implement also for other systems.
36439         (rpl_fflush): On glibc systems, invoke
36440         clear_ungetc_buffer_preserving_position. Otherwise, invoke
36441         clear_ungetc_buffer after fetching the stream's position, not before.
36442
36443 2009-01-15  Bruno Haible  <bruno@clisp.org>
36444
36445         Make fflush-after-ungetc POSIX compliant on glibc systems.
36446         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
36447         after ungetc.
36448         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
36449         (rpl_fflush): On glibc systems, simply call the system's fflush
36450         function after clearing the ungetc buffer.
36451         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
36452         Instead, lseek only to the end of file, then use the system's fseeko
36453         for the rest. On glibc systems, reset the EOF indicator bit.
36454
36455 2009-01-15  Jim Meyering  <meyering@redhat.com>
36456
36457         openmp.m4: revert quote-adding change, for portability to older autoconf
36458         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
36459         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
36460         Simon Josefsson noticed the problem when using autoconf-2.61.
36461
36462 2009-01-15  Bruno Haible  <bruno@clisp.org>
36463
36464         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
36465         * tests/test-fflush2.c (ASSERT): Always fail.
36466         (main): Add two tests for fflush() after ungetc(), taking into account
36467         the Austin Group's clarification.
36468         Suggested by Eric Blake.
36469
36470 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
36471
36472         mktime.m4: remove K&R-style function prototypes
36473         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
36474         for the Sun C++ compiler.
36475
36476 2009-01-14  Bruno Haible  <bruno@clisp.org>
36477
36478         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
36479         while including <wchar.h>.
36480         * lib/wchar.in.h: In two particular situations on HP-UX, include only
36481         the system's <wchar.h> file.
36482         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36483
36484 2009-01-14  Bruno Haible  <bruno@clisp.org>
36485
36486         * m4/csharp.m4: Don't mention gettext on the serial number line.
36487         * m4/csharpexec.m4: Likewise.
36488         * m4/eaccess.m4: Likewise.
36489         * m4/javaexec.m4: Likewise.
36490         * m4/sig_atomic_t.m4: Likewise.
36491         * m4/tmpdir.m4: Likewise.
36492         * m4/intldir.m4: Bump gettext version.
36493         * m4/lib-ld.m4: Likewise.
36494
36495 2009-01-14  Bruno Haible  <bruno@clisp.org>
36496
36497         * lib/progname.c (set_program_name): Add more comments.
36498         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36499
36500 2009-01-14  Simon Josefsson  <simon@josefsson.org>
36501
36502         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
36503         were sys/stat.h does not define it.
36504
36505 2009-01-14  Jim Meyering  <meyering@redhat.com>
36506
36507         many *.m4 files: improve m4 quoting
36508         99% of this change was performed by running the following commands:
36509         git ls-files | grep '\.m4$' | xargs perl -pi \
36510           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
36511           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36512           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
36513           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
36514         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
36515         The remainder were to add Copyright dates, increment serial numbers,
36516         undo some changes in comments, exclude m4/intl.m4, and add quotes
36517         around the "1" in ",1" where the unusual spacing prohibited the
36518         above regexps from doing the job.  For more details, see
36519         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
36520         * m4/acl.m4: Modified.
36521         * m4/afs.m4: Likewise.
36522         * m4/alloca.m4: Likewise.
36523         * m4/argp.m4: Likewise.
36524         * m4/argz.m4: Likewise.
36525         * m4/atexit.m4: Likewise.
36526         * m4/bison-i18n.m4: Likewise.
36527         * m4/bison.m4: Likewise.
36528         * m4/byteswap.m4: Likewise.
36529         * m4/c-stack.m4: Likewise.
36530         * m4/c-strtod.m4: Likewise.
36531         * m4/calloc.m4: Likewise.
36532         * m4/canonicalize-lgpl.m4: Likewise.
36533         * m4/chown.m4: Likewise.
36534         * m4/clock_time.m4: Likewise.
36535         * m4/codeset.m4: Likewise.
36536         * m4/copy-file.m4: Likewise.
36537         * m4/csharp.m4: Likewise.
36538         * m4/csharpcomp.m4: Likewise.
36539         * m4/csharpexec.m4: Likewise.
36540         * m4/d-ino.m4: Likewise.
36541         * m4/d-type.m4: Likewise.
36542         * m4/dirfd.m4: Likewise.
36543         * m4/double-slash-root.m4: Likewise.
36544         * m4/eaccess.m4: Likewise.
36545         * m4/eealloc.m4: Likewise.
36546         * m4/environ.m4: Likewise.
36547         * m4/errno_h.m4: Likewise.
36548         * m4/euidaccess.m4: Likewise.
36549         * m4/execute.m4: Likewise.
36550         * m4/fatal-signal.m4: Likewise.
36551         * m4/fchdir.m4: Likewise.
36552         * m4/fcntl_h.m4: Likewise.
36553         * m4/fileblocks.m4: Likewise.
36554         * m4/filenamecat.m4: Likewise.
36555         * m4/findprog.m4: Likewise.
36556         * m4/flexmember.m4: Likewise.
36557         * m4/fnmatch.m4: Likewise.
36558         * m4/fopen.m4: Likewise.
36559         * m4/fpending.m4: Likewise.
36560         * m4/fprintf-posix.m4: Likewise.
36561         * m4/free.m4: Likewise.
36562         * m4/frexp.m4: Likewise.
36563         * m4/frexpl.m4: Likewise.
36564         * m4/fsusage.m4: Likewise.
36565         * m4/ftruncate.m4: Likewise.
36566         * m4/gc-camellia.m4: Likewise.
36567         * m4/gc-random.m4: Likewise.
36568         * m4/gc.m4: Likewise.
36569         * m4/getaddrinfo.m4: Likewise.
36570         * m4/getcwd-abort-bug.m4: Likewise.
36571         * m4/getcwd-path-max.m4: Likewise.
36572         * m4/getdate.m4: Likewise.
36573         * m4/getdomainname.m4: Likewise.
36574         * m4/getgroups.m4: Likewise.
36575         * m4/gethostname.m4: Likewise.
36576         * m4/gethrxtime.m4: Likewise.
36577         * m4/getline.m4: Likewise.
36578         * m4/getloadavg.m4: Likewise.
36579         * m4/getndelim2.m4: Likewise.
36580         * m4/getpass.m4: Likewise.
36581         * m4/gettext.m4: Likewise.
36582         * m4/gettime.m4: Likewise.
36583         * m4/gettimeofday.m4: Likewise.
36584         * m4/gnulib-common.m4: Likewise.
36585         * m4/group-member.m4: Likewise.
36586         * m4/host-os.m4: Likewise.
36587         * m4/iconv.m4: Likewise.
36588         * m4/iconv_open.m4: Likewise.
36589         * m4/inet_ntop.m4: Likewise.
36590         * m4/inet_pton.m4: Likewise.
36591         * m4/inline.m4: Likewise.
36592         * m4/intldir.m4: Likewise.
36593         * m4/intlmacosx.m4: Likewise.
36594         * m4/intmax.m4: Likewise.
36595         * m4/intmax_t.m4: Likewise.
36596         * m4/inttypes.m4: Likewise.
36597         * m4/inttypes_h.m4: Likewise.
36598         * m4/inttypes-pri.m4: Likewise.
36599         * m4/isapipe.m4: Likewise.
36600         * m4/isnand.m4: Likewise.
36601         * m4/isnanf.m4: Likewise.
36602         * m4/isnanl.m4: Likewise.
36603         * m4/javacomp.m4: Likewise.
36604         * m4/javaexec.m4: Likewise.
36605         * m4/jm-winsz1.m4: Likewise.
36606         * m4/jm-winsz2.m4: Likewise.
36607         * m4/lchown.m4: Likewise.
36608         * m4/lcmessage.m4: Likewise.
36609         * m4/ldexpl.m4: Likewise.
36610         * m4/lib-ld.m4: Likewise.
36611         * m4/lib-link.m4: Likewise.
36612         * m4/libsigsegv.m4: Likewise.
36613         * m4/link-follow.m4: Likewise.
36614         * m4/localcharset.m4: Likewise.
36615         * m4/locale-fr.m4: Likewise.
36616         * m4/locale-ja.m4: Likewise.
36617         * m4/locale-tr.m4: Likewise.
36618         * m4/locale-zh.m4: Likewise.
36619         * m4/lock.m4: Likewise.
36620         * m4/longlong.m4: Likewise.
36621         * m4/ls-mntd-fs.m4: Likewise.
36622         * m4/lstat.m4: Likewise.
36623         * m4/malloc.m4: Likewise.
36624         * m4/mathl.m4: Likewise.
36625         * m4/mbrtowc.m4: Likewise.
36626         * m4/mbstate_t.m4: Likewise.
36627         * m4/mbswidth.m4: Likewise.
36628         * m4/memchr.m4: Likewise.
36629         * m4/memcmp.m4: Likewise.
36630         * m4/memcpy.m4: Likewise.
36631         * m4/memmem.m4: Likewise.
36632         * m4/memmove.m4: Likewise.
36633         * m4/mempcpy.m4: Likewise.
36634         * m4/memrchr.m4: Likewise.
36635         * m4/memset.m4: Likewise.
36636         * m4/minmax.m4: Likewise.
36637         * m4/mkdir-slash.m4: Likewise.
36638         * m4/mkdtemp.m4: Likewise.
36639         * m4/mktime.m4: Likewise.
36640         * m4/mmap-anon.m4: Likewise.
36641         * m4/mountlist.m4: Likewise.
36642         * m4/nanosleep.m4: Likewise.
36643         * m4/nls.m4: Likewise.
36644         * m4/nocrash.m4: Likewise.
36645         * m4/open.m4: Likewise.
36646         * m4/openat.m4: Likewise.
36647         * m4/openmp.m4: Likewise.
36648         * m4/pathmax.m4: Likewise.
36649         * m4/perl.m4: Likewise.
36650         * m4/physmem.m4: Likewise.
36651         * m4/pipe.m4: Likewise.
36652         * m4/po.m4: Likewise.
36653         * m4/poll.m4: Likewise.
36654         * m4/posixtm.m4: Likewise.
36655         * m4/posixver.m4: Likewise.
36656         * m4/printf-frexp.m4: Likewise.
36657         * m4/printf-frexpl.m4: Likewise.
36658         * m4/printf-posix.m4: Likewise.
36659         * m4/printf-posix-rpl.m4: Likewise.
36660         * m4/printf.m4: Likewise.
36661         * m4/progtest.m4: Likewise.
36662         * m4/putenv.m4: Likewise.
36663         * m4/readline.m4: Likewise.
36664         * m4/readlink.m4: Likewise.
36665         * m4/readutmp.m4: Likewise.
36666         * m4/realloc.m4: Likewise.
36667         * m4/regex.m4: Likewise.
36668         * m4/relocatable.m4: Likewise.
36669         * m4/relocatable-lib.m4: Likewise.
36670         * m4/rename-dest-slash.m4: Likewise.
36671         * m4/rename.m4: Likewise.
36672         * m4/rmdir-errno.m4: Likewise.
36673         * m4/rmdir.m4: Likewise.
36674         * m4/roundf.m4: Likewise.
36675         * m4/roundl.m4: Likewise.
36676         * m4/rpmatch.m4: Likewise.
36677         * m4/save-cwd.m4: Likewise.
36678         * m4/selinux-selinux-h.m4: Likewise.
36679         * m4/setenv.m4: Likewise.
36680         * m4/settime.m4: Likewise.
36681         * m4/sig2str.m4: Likewise.
36682         * m4/sig_atomic_t.m4: Likewise.
36683         * m4/signalblocking.m4: Likewise.
36684         * m4/signbit.m4: Likewise.
36685         * m4/sigpipe.m4: Likewise.
36686         * m4/sockets.m4: Likewise.
36687         * m4/sockpfaf.m4: Likewise.
36688         * m4/st_dm_mode.m4: Likewise.
36689         * m4/stat-time.m4: Likewise.
36690         * m4/stdbool.m4: Likewise.
36691         * m4/stdint.m4: Likewise.
36692         * m4/stdint_h.m4: Likewise.
36693         * m4/stpcpy.m4: Likewise.
36694         * m4/stpncpy.m4: Likewise.
36695         * m4/strcase.m4: Likewise.
36696         * m4/strchrnul.m4: Likewise.
36697         * m4/strcspn.m4: Likewise.
36698         * m4/strdup.m4: Likewise.
36699         * m4/strftime.m4: Likewise.
36700         * m4/strndup.m4: Likewise.
36701         * m4/strnlen.m4: Likewise.
36702         * m4/strpbrk.m4: Likewise.
36703         * m4/strptime.m4: Likewise.
36704         * m4/strsep.m4: Likewise.
36705         * m4/strtod.m4: Likewise.
36706         * m4/strtoimax.m4: Likewise.
36707         * m4/strtok_r.m4: Likewise.
36708         * m4/strtol.m4: Likewise.
36709         * m4/strtoll.m4: Likewise.
36710         * m4/strtoul.m4: Likewise.
36711         * m4/strtoull.m4: Likewise.
36712         * m4/strtoumax.m4: Likewise.
36713         * m4/strverscmp.m4: Likewise.
36714         * m4/threadlib.m4: Likewise.
36715         * m4/timegm.m4: Likewise.
36716         * m4/tm_gmtoff.m4: Likewise.
36717         * m4/tmpdir.m4: Likewise.
36718         * m4/tmpfile.m4: Likewise.
36719         * m4/tzset.m4: Likewise.
36720         * m4/uintmax_t.m4: Likewise.
36721         * m4/unlinkdir.m4: Likewise.
36722         * m4/unlocked-io.m4: Likewise.
36723         * m4/uptime.m4: Likewise.
36724         * m4/userspec.m4: Likewise.
36725         * m4/utimbuf.m4: Likewise.
36726         * m4/utime.m4: Likewise.
36727         * m4/utimes-null.m4: Likewise.
36728         * m4/utimes.m4: Likewise.
36729         * m4/vararrays.m4: Likewise.
36730         * m4/vasnprintf.m4: Likewise.
36731         * m4/vfprintf-posix.m4: Likewise.
36732         * m4/vprintf-posix.m4: Likewise.
36733         * m4/wait-process.m4: Likewise.
36734         * m4/wchar_t.m4: Likewise.
36735         * m4/wint_t.m4: Likewise.
36736         * m4/write-any-file.m4: Likewise.
36737         * m4/yield.m4: Likewise.
36738
36739 2009-01-13  Bruno Haible  <bruno@clisp.org>
36740
36741         Avoid test-copy-file.sh failures when ACL support insufficient.
36742         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
36743         TESTS_ENVIRONMENT.
36744         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
36745         Reported by Jim Meyering.
36746
36747 2009-01-13  Bruno Haible  <bruno@clisp.org>
36748
36749         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
36750         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
36751         * modules/unistdio/u8-printf-parse (Files): Likewise.
36752         * modules/unistdio/u32-printf-parse (Files): Likewise.
36753         * modules/unistdio/ulc-printf-parse (Files): Likewise.
36754
36755 2009-01-13  Simon Josefsson  <simon@josefsson.org>
36756
36757         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
36758         and m4/inttypes_h.m4 too.
36759
36760 2009-01-12  Eric Blake  <ebb9@byu.net>
36761
36762         tests: IRIX 6.2 cc can't compile -0.0 into .data
36763         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
36764         rather than at compile-time.
36765         * tests/test-floorl.c (minus_zero): Likewise.
36766         * tests/test-frexpl.c (minus_zero): Likewise.
36767         * tests/test-isnan.c (minus_zerol): Likewise.
36768         * tests/test-isnanl.h (minus_zero): Likewise.
36769         * tests/test-ldexpl.c (minus_zero): Likewise.
36770         * tests/test-roundl.c (minus_zero): Likewise.
36771         * tests/test-signbit.c (minus_zerol): Likewise.
36772         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36773         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36774         * tests/test-truncl.c (minus_zero): Likewise.
36775         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36776         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36777         Reported by Tom G. Christensen and Nelson H. F. Beebe.
36778
36779 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36780
36781         regex: fix glibc bug 9697
36782         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
36783         handling.
36784
36785 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36786
36787         regex: fix glibc bug 697
36788         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
36789         being NULL also if there are no backreferences.
36790
36791 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36792
36793         regex: merge glibc changes
36794         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
36795         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
36796         re_string_skip_chars, re_string_reconstruct): Likewise.
36797         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
36798
36799 2009-01-07  Jim Meyering  <meyering@redhat.com>
36800
36801         poll: filter through cppi
36802         * lib/poll.c: Indent cpp directives to reflect nesting.
36803
36804 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
36805
36806         poll: don't return uninitialized
36807         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
36808
36809 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
36810
36811         avoid compile failure on AIX 6.1
36812         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
36813         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
36814
36815 2009-01-04  Jim Meyering  <meyering@redhat.com>
36816
36817         remove duplicate inclusion of <stdio.h>
36818         * tests/test-fprintf-posix.c: Likewise.
36819         * tests/test-printf-posix.c: Likewise.
36820         * tests/test-snprintf-posix.c: Likewise.
36821         * tests/test-sprintf-posix.c: Likewise.
36822         * tests/test-vasprintf-posix.c: Likewise.
36823         * tests/test-vfprintf-posix.c: Likewise.
36824         * tests/test-vprintf-posix.c: Likewise.
36825         * tests/test-vsnprintf-posix.c: Likewise.
36826         * tests/test-vsprintf-posix.c: Likewise.
36827
36828 2009-01-03  Jim Meyering  <meyering@redhat.com>
36829
36830         gnulib-tool: fix sed-based filtering
36831         * gnulib-tool (func_filter_filelist): Remove extra backslash
36832         in sed_fff_filter definition.
36833
36834 2009-01-02  Jim Meyering  <meyering@redhat.com>
36835
36836         strftime: avoid compilation failure on Solaris 2.6
36837         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
36838         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
36839         Don't #define mbrlen or mbsinit, since now they're guaranteed to
36840         be available.  Reported by Tom G. Christensen.  Details in
36841         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
36842
36843 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36844             Bruno Haible  <bruno@clisp.org>
36845
36846         Speed up gnulib-tool by doing more string processing through shell
36847         built-ins.
36848         * gnulib-tool (fast_func_append): New variable.
36849         (func_remove_prefix, func_remove_suffix): New functions.
36850         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
36851         (func_filter_filelist): New function.
36852         (func_get_dependencies): Use func_remove_suffix instead of sed.
36853         (func_get_automake_snippet): Use func_filter_filelist instead of a
36854         subshell and sed invocation.
36855
36856 2009-01-01  Bruno Haible  <bruno@clisp.org>
36857
36858         Fix a security bug.
36859         * gnulib-tool (func_import, import, update): Don't allow the characters
36860         '"', '$', '`', '\' in macro arguments that become part of commands that
36861         are evaluated.
36862
36863 2009-01-01  Bruno Haible  <bruno@clisp.org>
36864
36865         * gnulib-tool (func_reset_sigpipe): Add more comments.
36866
36867 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36868
36869         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
36870         func_emit_tests_Makefile_am, func_import): Abort loops early if we
36871         already know the answer.
36872
36873 2009-01-01  Jim Meyering  <meyering@redhat.com>
36874
36875         * lib/version-etc.c (version_etc_va): Update copyright year.
36876
36877 2008-12-30  Bruno Haible  <bruno@clisp.org>
36878
36879         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
36880         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
36881         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
36882
36883 2008-12-29  Eric Blake  <ebb9@byu.net>
36884
36885         multiarch: avoid autoconf AC_REQUIRE bug
36886         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
36887         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
36888         2.63 and older.
36889         Reported by Bruno Haible, and analyzed in
36890         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
36891
36892 2008-12-29  Bruno Haible  <bruno@clisp.org>
36893
36894         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
36895         files in subdirectories correctly.
36896         Reported by Ralf Wildenhues.
36897
36898 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36899
36900         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
36901         rather than 'join FILE -', for Solaris join.
36902
36903 2008-12-29  Bruno Haible  <bruno@clisp.org>
36904
36905         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
36906         quoting.
36907         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
36908         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
36909         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
36910         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
36911         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
36912         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
36913         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
36914         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
36915         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
36916         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
36917         * m4/nls.m4 (AM_NLS): Likewise.
36918         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
36919         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
36920         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
36921         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
36922         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
36923         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
36924         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
36925         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
36926         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
36927         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
36928         * m4/xsize.m4 (gl_XSIZE): Likewise.
36929         Suggested by Jim Meyering.
36930
36931 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36932
36933         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
36934         * lib/parse-duration.c: use a switch instead of cascading if's.
36935
36936 2008-12-29  Eric Blake  <ebb9@byu.net>
36937
36938         wchar.h: supply WEOF on Irix 5.3
36939         * lib/wchar.in.h (wint_t): Also supply WEOF.
36940         * lib/wctype.in.h (wint_t): Likewise.
36941         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
36942         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
36943         Reported by Tom G. Christensen.
36944
36945 2008-12-26  Bruno Haible  <bruno@clisp.org>
36946
36947         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
36948         i486, i586, i686.
36949
36950 2008-12-26  Bruno Haible  <bruno@clisp.org>
36951
36952         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
36953
36954 2008-12-26  Bruno Haible  <bruno@clisp.org>
36955
36956         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
36957         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
36958         not __STDC_CONSTANT_MACROS.
36959         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36960
36961 2008-12-25  Bruno Haible  <bruno@clisp.org>
36962
36963         Add support for universal builds to vasnprintf.
36964         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
36965         universal builds, guess no.
36966         * modules/vasnprintf-posix (Depends-on): Add multiarch.
36967         * modules/vasprintf-posix (Depends-on): Likewise.
36968         * modules/fprintf-posix (Depends-on): Likewise.
36969         * modules/vfprintf-posix (Depends-on): Likewise.
36970         * modules/snprintf-posix (Depends-on): Likewise.
36971         * modules/vsnprintf-posix (Depends-on): Likewise.
36972         * modules/sprintf-posix (Depends-on): Likewise.
36973         * modules/vsprintf-posix (Depends-on): Likewise.
36974         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36975         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36976         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36977         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36978         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36979         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36980         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36981
36982         Add support for universal builds to <inttypes.h>.
36983         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
36984         _SCNu64_PREFIX): In Apple
36985         universal builds, define directly, using _LP64.
36986         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
36987         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
36988         * modules/inttypes (Depends-on): Add multiarch.
36989         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36990
36991         Add support for universal builds to <stdint.h>.
36992         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
36993         universal builds, define directly, using _LP64.
36994         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
36995         Apple universal builds, don't test for the size and suffix of ptrdiff_t
36996         and size_t.
36997         * modules/stdint (Depends-on): Add multiarch.
36998         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36999
37000         New module 'multiarch'.
37001         * modules/multiarch: New file.
37002         * m4/multiarch.m4: New file.
37003
37004 2008-12-25  Bruno Haible  <bruno@clisp.org>
37005
37006         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
37007
37008 2008-12-25  Bruno Haible  <bruno@clisp.org>
37009
37010         * modules/btowc (License): Relicense under LGPLv2+.
37011         * modules/mbsinit (License): Likewise.
37012         * modules/mbrtowc (License): Likewise.
37013         * modules/wcrtomb (License): Likewise.
37014         * modules/streq (License): Likewise.
37015         Reported by David Lutterkort <lutter@redhat.com>.
37016
37017 2008-12-23  Bruno Haible  <bruno@clisp.org>
37018
37019         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
37020
37021 2008-12-23  Bruno Haible  <bruno@clisp.org>
37022
37023         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
37024         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
37025         GETADDRINFO_LIB, not in LIBS.
37026         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
37027         * modules/canon-host (Link): Likewise.
37028         * NEWS: Mention the change.
37029         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
37030         GETADDRINFO_LIB.
37031
37032 2008-12-22  Bruno Haible  <bruno@clisp.org>
37033
37034         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
37035         * doc/posix-functions/iswalpha_l.texi: Likewise.
37036         * doc/posix-functions/iswblank_l.texi: Likewise.
37037         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37038         * doc/posix-functions/iswctype_l.texi: Likewise.
37039         * doc/posix-functions/iswdigit_l.texi: Likewise.
37040         * doc/posix-functions/iswgraph_l.texi: Likewise.
37041         * doc/posix-functions/iswlower_l.texi: Likewise.
37042         * doc/posix-functions/iswprint_l.texi: Likewise.
37043         * doc/posix-functions/iswpunct_l.texi: Likewise.
37044         * doc/posix-functions/iswspace_l.texi: Likewise.
37045         * doc/posix-functions/iswupper_l.texi: Likewise.
37046         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37047         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
37048         * doc/posix-functions/open_wmemstream.texi: Likewise.
37049         * doc/posix-functions/swscanf.texi: Likewise.
37050         * doc/posix-functions/towctrans_l.texi: Likewise.
37051         * doc/posix-functions/towlower.texi: Likewise.
37052         * doc/posix-functions/towlower_l.texi: Likewise.
37053         * doc/posix-functions/towupper.texi: Likewise.
37054         * doc/posix-functions/towupper_l.texi: Likewise.
37055         * doc/posix-functions/vfwprintf.texi: Likewise.
37056         * doc/posix-functions/vfwscanf.texi: Likewise.
37057         * doc/posix-functions/vswscanf.texi: Likewise.
37058         * doc/posix-functions/vwprintf.texi: Likewise.
37059         * doc/posix-functions/vwscanf.texi: Likewise.
37060         * doc/posix-functions/wcpcpy.texi: Likewise.
37061         * doc/posix-functions/wcpncpy.texi: Likewise.
37062         * doc/posix-functions/wcscasecmp.texi: Likewise.
37063         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
37064         * doc/posix-functions/wcscoll_l.texi: Likewise.
37065         * doc/posix-functions/wcsdup.texi: Likewise.
37066         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37067         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
37068         * doc/posix-functions/wcsnlen.texi: Likewise.
37069         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37070         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37071         * doc/posix-functions/wctrans_l.texi: Likewise.
37072         * doc/posix-functions/wctype_l.texi: Likewise.
37073         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
37074         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
37075         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
37076         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
37077         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
37078         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
37079         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
37080         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
37081         * doc/glibc-functions/wcschrnul.texi: Likewise.
37082         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37083         * doc/glibc-functions/wcstod_l.texi: Likewise.
37084         * doc/glibc-functions/wcstof_l.texi: Likewise.
37085         * doc/glibc-functions/wcstol_l.texi: Likewise.
37086         * doc/glibc-functions/wcstold_l.texi: Likewise.
37087         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37088         * doc/glibc-functions/wcstoq.texi: Likewise.
37089         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37090         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37091         * doc/glibc-functions/wcstouq.texi: Likewise.
37092         * doc/glibc-functions/wmempcpy.texi: Likewise.
37093
37094 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
37095             Eric Blake  <ebb9@byu.net>
37096             Paolo Bonzini  <bonzini@gnu.org>
37097             Bruno Haible  <bruno@clisp.org>
37098
37099         Make c-stack work on Haiku.
37100         * lib/c-stack.c (SA_ONSTACK): Define fallback.
37101         (c_stack_action): Use SA_ONSTACK flag.
37102
37103 2008-12-22  Bruno Haible  <bruno@clisp.org>
37104
37105         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
37106
37107 2008-12-22  Bruno Haible  <bruno@clisp.org>
37108
37109         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
37110         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
37111         being overridden.
37112         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
37113         New macros.
37114         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
37115         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
37116         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
37117         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
37118
37119 2008-12-22  Bruno Haible  <bruno@clisp.org>
37120
37121         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
37122         from test code.
37123
37124 2008-12-22  Eric Blake  <ebb9@byu.net>
37125
37126         Avoid gcc warnings on cygwin.
37127         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
37128         Avoid unused variable.
37129         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
37130         Likewise.
37131
37132 2008-12-22  Bruno Haible  <bruno@clisp.org>
37133
37134         Remove HAVE_MBRTOWC conditionals.
37135         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
37136         (mbscasecmp): Assume mbrtowc function.
37137         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
37138         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
37139         * lib/mbschr.c: Include mbuiter.h unconditionally.
37140         (mbschr): Assume mbrtowc function.
37141         * lib/mbscspn.c: Include mbuiter.h unconditionally.
37142         (mbscspn): Assume mbrtowc function.
37143         * lib/mbslen.c: Include mbuiter.h unconditionally.
37144         (mbslen): Assume mbrtowc function.
37145         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
37146         (mbsncasecmp): Assume mbrtowc function.
37147         * lib/mbsnlen.c: Include mbiter.h unconditionally.
37148         (mbsnlen): Assume mbrtowc function.
37149         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
37150         (mbspbrk): Assume mbrtowc function.
37151         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
37152         (mbspcasecmp): Assume mbrtowc function.
37153         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
37154         (mbsrchr): Assume mbrtowc function.
37155         * lib/mbssep.c: Include mbuiter.h unconditionally.
37156         (mbssep): Assume mbrtowc function.
37157         * lib/mbsspn.c: Include mbuiter.h unconditionally.
37158         (mbsspn): Assume mbrtowc function.
37159         * lib/mbsstr.c: Include mbuiter.h unconditionally.
37160         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
37161         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
37162         (mbstok_r): Assume mbrtowc function.
37163         * lib/propername.c: Include mbuiter.h unconditionally.
37164         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
37165         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
37166         (trim2): Assume mbrtowc function.
37167         * lib/mbswidth.c (mbsinit): Remove fallback definition.
37168         (mbsnwidth): Assume mbrtowc function.
37169         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
37170         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
37171         fallback definitions.
37172         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
37173
37174 2008-12-22  Bruno Haible  <bruno@clisp.org>
37175
37176         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
37177
37178 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
37179
37180         * modules/regex: Request emulations for the mb*/wc* functions we need.
37181         * m4/regex.m4: Don't look for those functions here.
37182         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
37183
37184 2008-12-22  Bruno Haible  <bruno@clisp.org>
37185
37186         * modules/fnmatch (Depends-on): Remove duplicated dependency.
37187
37188 2008-12-21  Bruno Haible  <bruno@clisp.org>
37189
37190         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
37191         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
37192         (Include): Remove conditionalization.
37193         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
37194         (Include): Remove conditionalization.
37195         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
37196         (Include): Remove conditionalization.
37197         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
37198         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37199         * NEWS: Mention the change.
37200         Reported by Alan Hourihane <alanh@fairlite.co.uk>
37201         via Sergey Poznyakoff <gray@gnu.org.ua>.
37202
37203 2008-12-21  Bruno Haible  <bruno@clisp.org>
37204
37205         * MODULES.html.sh (Extended multibyte and wide character utilities
37206         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
37207         wcrtomb, wcsrtombs.
37208         (Support for systems lacking POSIX:2008): Add accept, bind, close,
37209         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
37210         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
37211         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
37212
37213 2008-12-21  Bruno Haible  <bruno@clisp.org>
37214
37215         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
37216
37217 2008-12-21  Bruno Haible  <bruno@clisp.org>
37218
37219         * modules/wcsnrtombs-tests: New file.
37220         * tests/test-wcsnrtombs1.sh: New file.
37221         * tests/test-wcsnrtombs2.sh: New file.
37222         * tests/test-wcsnrtombs3.sh: New file.
37223         * tests/test-wcsnrtombs4.sh: New file.
37224         * tests/test-wcsnrtombs.c: New file.
37225
37226         New module 'wcsnrtombs'.
37227         * lib/wchar.in.h (wcsnrtombs): New declaration.
37228         * lib/wcsnrtombs.c: New file.
37229         * lib/wcsrtombs-state.c: New file.
37230         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
37231         (internal_state): Remove variable.
37232         * m4/wcsnrtombs.m4: New file.
37233         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
37234         compilation units.
37235         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
37236         HAVE_WCSNRTOMBS.
37237         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
37238         HAVE_WCSNRTOMBS.
37239         * modules/wcsnrtombs: New file.
37240         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
37241         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
37242
37243 2008-12-21  Bruno Haible  <bruno@clisp.org>
37244
37245         * modules/wcsrtombs-tests: New file.
37246         * tests/test-wcsrtombs1.sh: New file.
37247         * tests/test-wcsrtombs2.sh: New file.
37248         * tests/test-wcsrtombs3.sh: New file.
37249         * tests/test-wcsrtombs4.sh: New file.
37250         * tests/test-wcsrtombs.c: New file.
37251
37252         New module 'wcsrtombs'.
37253         * lib/wchar.in.h (wcsrtombs): New declaration.
37254         * lib/wcsrtombs.c: New file.
37255         * m4/wcsrtombs.m4: New file.
37256         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
37257         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37258         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
37259         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
37260         * modules/wcsrtombs: New file.
37261         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
37262         bugs.
37263
37264 2008-12-21  Bruno Haible  <bruno@clisp.org>
37265
37266         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
37267         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
37268         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
37269         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
37270         if not correct.
37271         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
37272         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
37273         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37274         m4/locale-zh.m4, m4/codeset.m4.
37275         * doc/posix-functions/wcrtomb.texi: Document the bug.
37276
37277 2008-12-21  Bruno Haible  <bruno@clisp.org>
37278
37279         Work around a btowc() bug on IRIX 6.5.
37280         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
37281         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
37282         REPLACE_WTOBC if not.
37283         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
37284         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
37285         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
37286
37287 2008-12-21  Bruno Haible  <bruno@clisp.org>
37288
37289         * modules/wcrtomb-tests: New file.
37290         * tests/test-wcrtomb.sh: New file.
37291         * tests/test-wcrtomb.c: New file.
37292
37293         New module 'wcrtomb'.
37294         * lib/wchar.in.h (wcrtomb): New declaration.
37295         * lib/wcrtomb.c: New file.
37296         * m4/wcrtomb.m4: New file.
37297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
37298         HAVE_WCRTOMB.
37299         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
37300         HAVE_WCRTOMB.
37301         * modules/wcrtomb: New file.
37302         * doc/posix-functions/wcrtomb.texi: Mention the new module.
37303
37304 2008-12-21  Bruno Haible  <bruno@clisp.org>
37305
37306         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
37307         * modules/mbsrtowcs (Files): Likewise.
37308         * modules/wctob (Files): Likewise.
37309         * modules/c-strcase-tests (Files): Likewise.
37310         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37311         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37312         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37313         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37314         * modules/vasnprintf-posix-tests (Files): Likewise.
37315
37316 2008-12-21  William Pursell  <bill.pursell@gmail.com>
37317
37318         gitlog-to-changelog: pass all command-line arguments to git-log
37319         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
37320         it is sometimes convenient to filter the commits in various ways.
37321         gitlog-to-changelog only allows --since to specify a start date,
37322         but git-log itself supports many other filtering mechanisms.
37323         At the moment, I want to filter by branch name.  Rather than
37324         adding a --branch option to gitlog-to-changelog, it seems more
37325         flexible to simply pass all options directly to git-log and let
37326         git do the work.  Notice that this effectively makes --since a
37327         redundant option for gitlog-to-changelog, but removing it would
37328         require current usage to change since calls would then require
37329         an additional '--'.
37330
37331 2008-12-21  Bruno Haible  <bruno@clisp.org>
37332
37333         * modules/mbsnrtowcs-tests: New file.
37334         * tests/test-mbsnrtowcs1.sh: New file.
37335         * tests/test-mbsnrtowcs2.sh: New file.
37336         * tests/test-mbsnrtowcs3.sh: New file.
37337         * tests/test-mbsnrtowcs4.sh: New file.
37338         * tests/test-mbsnrtowcs.c: New file.
37339
37340         New module 'mbsnrtowcs'.
37341         * lib/wchar.in.h (mbsnrtowcs): New declaration.
37342         * lib/mbsnrtowcs.c: New file.
37343         * lib/mbsrtowcs-state.c: New file.
37344         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
37345         (internal_state): Remove variable.
37346         * m4/mbsnrtowcs.m4: New file.
37347         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
37348         compilation units.
37349         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
37350         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37351         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
37352         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
37353         * modules/mbsnrtowcs: New file.
37354         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
37355         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
37356         portability problem.
37357
37358 2008-12-21  Bruno Haible  <bruno@clisp.org>
37359
37360         Work around mbsrtowcs bug.
37361         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
37362         (gl_FUNC_MBSRTOWCS): Invoke it.
37363         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37364         m4/locale-zh.m4.
37365         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
37366
37367 2008-12-21  Bruno Haible  <bruno@clisp.org>
37368
37369         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
37370
37371 2008-12-21  Bruno Haible  <bruno@clisp.org>
37372
37373         Update doc for AIX.
37374         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
37375         16-bit wchar_t type.
37376         * doc/posix-functions/btowc.texi: Likewise.
37377         * doc/posix-functions/fgetwc.texi: Likewise.
37378         * doc/posix-functions/fgetws.texi: Likewise.
37379         * doc/posix-functions/fputwc.texi: Likewise.
37380         * doc/posix-functions/fputws.texi: Likewise.
37381         * doc/posix-functions/fwide.texi: Likewise.
37382         * doc/posix-functions/fwprintf.texi: Likewise.
37383         * doc/posix-functions/fwscanf.texi: Likewise.
37384         * doc/posix-functions/getwchar.texi: Likewise.
37385         * doc/posix-functions/getwc.texi: Likewise.
37386         * doc/posix-functions/iswalnum.texi: Likewise.
37387         * doc/posix-functions/iswalpha.texi: Likewise.
37388         * doc/posix-functions/iswblank.texi: Likewise.
37389         * doc/posix-functions/iswcntrl.texi: Likewise.
37390         * doc/posix-functions/iswctype.texi: Likewise.
37391         * doc/posix-functions/iswdigit.texi: Likewise.
37392         * doc/posix-functions/iswgraph.texi: Likewise.
37393         * doc/posix-functions/iswlower.texi: Likewise.
37394         * doc/posix-functions/iswprint.texi: Likewise.
37395         * doc/posix-functions/iswpunct.texi: Likewise.
37396         * doc/posix-functions/iswspace.texi: Likewise.
37397         * doc/posix-functions/iswupper.texi: Likewise.
37398         * doc/posix-functions/iswxdigit.texi: Likewise.
37399         * doc/posix-functions/mbrtowc.texi: Likewise.
37400         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37401         * doc/posix-functions/mbstowcs.texi: Likewise.
37402         * doc/posix-functions/mbtowc.texi: Likewise.
37403         * doc/posix-functions/putwchar.texi: Likewise.
37404         * doc/posix-functions/putwc.texi: Likewise.
37405         * doc/posix-functions/swprintf.texi: Likewise.
37406         * doc/posix-functions/tolower.texi: Likewise.
37407         * doc/posix-functions/toupper.texi: Likewise.
37408         * doc/posix-functions/towctrans.texi: Likewise.
37409         * doc/posix-functions/ungetwc.texi: Likewise.
37410         * doc/posix-functions/vswprintf.texi: Likewise.
37411         * doc/posix-functions/wcrtomb.texi: Likewise.
37412         * doc/posix-functions/wcscat.texi: Likewise.
37413         * doc/posix-functions/wcschr.texi: Likewise.
37414         * doc/posix-functions/wcscmp.texi: Likewise.
37415         * doc/posix-functions/wcscoll.texi: Likewise.
37416         * doc/posix-functions/wcscpy.texi: Likewise.
37417         * doc/posix-functions/wcscspn.texi: Likewise.
37418         * doc/posix-functions/wcsftime.texi: Likewise.
37419         * doc/posix-functions/wcslen.texi: Likewise.
37420         * doc/posix-functions/wcsncat.texi: Likewise.
37421         * doc/posix-functions/wcsncmp.texi: Likewise.
37422         * doc/posix-functions/wcsncpy.texi: Likewise.
37423         * doc/posix-functions/wcspbrk.texi: Likewise.
37424         * doc/posix-functions/wcsrchr.texi: Likewise.
37425         * doc/posix-functions/wcsrtombs.texi: Likewise.
37426         * doc/posix-functions/wcsspn.texi: Likewise.
37427         * doc/posix-functions/wcsstr.texi: Likewise.
37428         * doc/posix-functions/wcstod.texi: Likewise.
37429         * doc/posix-functions/wcstof.texi: Likewise.
37430         * doc/posix-functions/wcstoimax.texi: Likewise.
37431         * doc/posix-functions/wcstok.texi: Likewise.
37432         * doc/posix-functions/wcstold.texi: Likewise.
37433         * doc/posix-functions/wcstoll.texi: Likewise.
37434         * doc/posix-functions/wcstol.texi: Likewise.
37435         * doc/posix-functions/wcstombs.texi: Likewise.
37436         * doc/posix-functions/wcstoull.texi: Likewise.
37437         * doc/posix-functions/wcstoul.texi: Likewise.
37438         * doc/posix-functions/wcstoumax.texi: Likewise.
37439         * doc/posix-functions/wcswidth.texi: Likewise.
37440         * doc/posix-functions/wcsxfrm.texi: Likewise.
37441         * doc/posix-functions/wctob.texi: Likewise.
37442         * doc/posix-functions/wctomb.texi: Likewise.
37443         * doc/posix-functions/wctrans.texi: Likewise.
37444         * doc/posix-functions/wctype.texi: Likewise.
37445         * doc/posix-functions/wcwidth.texi: Likewise.
37446         * doc/posix-functions/wmemchr.texi: Likewise.
37447         * doc/posix-functions/wmemcmp.texi: Likewise.
37448         * doc/posix-functions/wmemcpy.texi: Likewise.
37449         * doc/posix-functions/wmemmove.texi: Likewise.
37450         * doc/posix-functions/wmemset.texi: Likewise.
37451         * doc/posix-functions/wprintf.texi: Likewise.
37452         * doc/posix-functions/wscanf.texi: Likewise.
37453
37454 2008-12-21  Bruno Haible  <bruno@clisp.org>
37455
37456         Update doc for HP-UX 11.11.
37457         * doc/posix-functions/btowc.texi: Clarify that the function is missing
37458         in HP-UX version 11.00, not in all versions of HP-UX 11.
37459         * doc/posix-functions/fwide.texi: Likewise.
37460         * doc/posix-functions/fwprintf.texi: Likewise.
37461         * doc/posix-functions/fwscanf.texi: Likewise.
37462         * doc/posix-functions/inet_ntop.texi: Likewise.
37463         * doc/posix-functions/inet_pton.texi: Likewise.
37464         * doc/posix-functions/mbrlen.texi: Likewise.
37465         * doc/posix-functions/mbrtowc.texi: Likewise.
37466         * doc/posix-functions/mbsinit.texi: Likewise.
37467         * doc/posix-functions/mbsrtowcs.texi: Likewise.
37468         * doc/posix-functions/swprintf.texi: Likewise.
37469         * doc/posix-functions/swscanf.texi: Likewise.
37470         * doc/posix-functions/towctrans.texi: Likewise.
37471         * doc/posix-functions/vfwprintf.texi: Likewise.
37472         * doc/posix-functions/vswprintf.texi: Likewise.
37473         * doc/posix-functions/vwprintf.texi: Likewise.
37474         * doc/posix-functions/wcrtomb.texi: Likewise.
37475         * doc/posix-functions/wcsrtombs.texi: Likewise.
37476         * doc/posix-functions/wcsstr.texi: Likewise.
37477         * doc/posix-functions/wctob.texi: Likewise.
37478         * doc/posix-functions/wctrans.texi: Likewise.
37479         * doc/posix-functions/wmemchr.texi: Likewise.
37480         * doc/posix-functions/wmemcmp.texi: Likewise.
37481         * doc/posix-functions/wmemcpy.texi: Likewise.
37482         * doc/posix-functions/wmemmove.texi: Likewise.
37483         * doc/posix-functions/wmemset.texi: Likewise.
37484         * doc/posix-functions/wprintf.texi: Likewise.
37485         * doc/posix-functions/wscanf.texi: Likewise.
37486
37487 2008-12-21  Bruno Haible  <bruno@clisp.org>
37488
37489         Work around a portability problem.
37490         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
37491         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
37492
37493 2008-12-20  Bruno Haible  <bruno@clisp.org>
37494
37495         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
37496         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
37497         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
37498         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
37499         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
37500
37501         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
37502         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
37503         set.
37504         (GNULIB_defined_mbstate_t): New macro.
37505         (mbsinit): Redefine if REPLACE_MBSINIT is set.
37506         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
37507         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
37508         reuses the system's mbrtowc function but works around the bugs.
37509         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
37510         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
37511         macros.
37512         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
37513         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
37514         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
37515         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
37516         REPLACE_MBSINIT if mbsinit needs to be overridden.
37517         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
37518         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37519         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
37520         REPLACE_MBSINIT, REPLACE_MBRTOWC.
37521         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
37522         m4/locale-zh.m4.
37523         (Depends): Add mbsinit.
37524         * modules/mbsinit (Depends): Add mbrtowc.
37525         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
37526
37527 2008-12-20  Bruno Haible  <bruno@clisp.org>
37528
37529         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
37530         so that there are no conversion errors on AIX.
37531         * tests/test-mbsrtowcs.c (main): LIkewise.
37532
37533 2008-12-20  Bruno Haible  <bruno@clisp.org>
37534
37535         Work around wctob bug on Solaris <= 9.
37536         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
37537         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
37538         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
37539         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
37540         * modules/wctob (Files): Add m4/locale-fr.m4.
37541         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
37542
37543 2008-12-20  Bruno Haible  <bruno@clisp.org>
37544
37545         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
37546         /dev/null.
37547         * tests/test-select-in.sh: Likewise.
37548         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37549
37550 2008-12-20  Bruno Haible  <bruno@clisp.org>
37551
37552         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
37553         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
37554         Cygwin 1.5.x.
37555
37556 2008-12-20  Bruno Haible  <bruno@clisp.org>
37557
37558         Ensure mbstate_t is defined on HP-UX 11.11.
37559         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
37560         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
37561         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
37562         AC_USE_SYSTEM_EXTENSIONS.
37563         * modules/fnmatch (Depends-on): Add extensions.
37564         * modules/mbrlen (Depends-on): Likewise.
37565         * modules/mbrtowc (Depends-on): Likewise.
37566         * modules/mbsinit (Depends-on): Likewise.
37567         * modules/mbsrtowcs (Depends-on): Likewise.
37568         * modules/mbswidth (Depends-on): Likewise.
37569         * modules/quotearg (Depends-on): Likewise.
37570         * modules/strftime (Depends-on): Likewise.
37571
37572 2008-12-20  Bruno Haible  <bruno@clisp.org>
37573
37574         Ensure wctob is declared on IRIX 6.5.
37575         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
37576         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
37577         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
37578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
37579         of HAVE_WCTOB.
37580         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
37581         HAVE_WCTOB.
37582         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
37583
37584 2008-12-19  Bruno Haible  <bruno@clisp.org>
37585
37586         * modules/mbsrtowcs-tests: New file.
37587         * tests/test-mbsrtowcs1.sh: New file.
37588         * tests/test-mbsrtowcs2.sh: New file.
37589         * tests/test-mbsrtowcs3.sh: New file.
37590         * tests/test-mbsrtowcs4.sh: New file.
37591         * tests/test-mbsrtowcs.c: New file.
37592
37593         New module 'mbsrtowcs'.
37594         * lib/wchar.in.h (mbsrtowcs): New declaration.
37595         * lib/mbsrtowcs.c: New file.
37596         * m4/mbsrtowcs.m4: New file.
37597         * modules/mbsrtowcs: New file.
37598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
37599         HAVE_MBSRTOWCS.
37600         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
37601         HAVE_MBSRTOWCS.
37602         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
37603
37604 2008-12-19  Bruno Haible  <bruno@clisp.org>
37605
37606         New module 'mbrlen'.
37607         * lib/wchar.in.h (mbrlen): New declaration.
37608         * lib/mbrlen.c: New file.
37609         * m4/mbrlen.m4: New file.
37610         * modules/mbrlen: New file.
37611         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
37612         HAVE_MBRLEN.
37613         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
37614         HAVE_MBRLEN.
37615         * doc/posix-functions/mbrlen.texi: Document the new module.
37616
37617 2008-12-19  Bruno Haible  <bruno@clisp.org>
37618
37619         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
37620         * modules/mbrtowc (Depends-on): Add verify.
37621         Suggested by Paul Eggert.
37622
37623 2008-12-18  Bruno Haible  <bruno@clisp.org>
37624
37625         * modules/mbsinit-tests: New file.
37626         * tests/test-mbsinit.sh: New file.
37627         * tests/test-mbsinit.c: New file.
37628
37629 2008-12-18  Bruno Haible  <bruno@clisp.org>
37630
37631         * modules/mbrtowc-tests: New file.
37632         * tests/test-mbrtowc1.sh: New file.
37633         * tests/test-mbrtowc2.sh: New file.
37634         * tests/test-mbrtowc3.sh: New file.
37635         * tests/test-mbrtowc4.sh: New file.
37636         * tests/test-mbrtowc.c: New file.
37637
37638         New module 'mbrtowc'.
37639         * lib/wchar.in.h (mbstate_t): Override when the system does not have
37640         mbsinit and mbrtowc.
37641         (mbrtowc): New declaration.
37642         * lib/mbrtowc.c: New file.
37643         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
37644         * modules/mbrtowc: New file.
37645         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
37646         HAVE_MBRTOWC.
37647         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
37648         HAVE_MBRTOWC.
37649         * doc/posix-functions/mbrtowc.texi: Document the new module.
37650
37651 2008-12-18  Bruno Haible  <bruno@clisp.org>
37652
37653         New module 'wctob'.
37654         * lib/wchar.in.h (wctob): New declaration.
37655         * lib/wctob.c: New file.
37656         * m4/wctob.m4: New file.
37657         * modules/wctob: New file.
37658         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
37659         HAVE_WCTOB.
37660         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
37661         * doc/posix-functions/wctob.texi: Document the new module.
37662
37663 2008-12-18  Bruno Haible  <bruno@clisp.org>
37664
37665         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
37666         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
37667
37668 2008-12-18  Simon Josefsson  <simon@josefsson.org>
37669
37670         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
37671         G. Christensen" <tgc@jupiterrise.com>.
37672
37673         * lib/flock.c: Need to include errno.h.  Reported by "Tom
37674         G. Christensen" <tgc@jupiterrise.com>.
37675
37676         * lib/flock.c: Need to include string.h.  Reported by "Tom
37677         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
37678         <ebb9@byu.net>.
37679
37680 2008-12-18  Bruno Haible  <bruno@clisp.org>
37681
37682         * m4/locale-ja.m4: New file, from GNU gettext.
37683
37684 2008-12-17  Bruno Haible  <bruno@clisp.org>
37685
37686         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
37687         Suggested by Eric Blake.
37688
37689 2008-12-17  Bruno Haible  <bruno@clisp.org>
37690
37691         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
37692
37693 2008-12-17  Bruno Haible  <bruno@clisp.org>
37694
37695         * lib/mbsinit.c: Include verify.h. Verify an assumption.
37696         * modules/mbsinit (Depends-on): Add verify.
37697         Suggested by Paul Eggert.
37698
37699 2008-12-17  Bruno Haible  <bruno@clisp.org>
37700
37701         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
37702         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
37703         gl_FUNC_MBRTOWC.
37704         * m4/mbiter.m4 (gl_MBITER): LIkewise.
37705         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
37706         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
37707         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
37708         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
37709         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
37710         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
37711         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
37712         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
37713         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
37714         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
37715         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
37716         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
37717         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
37718         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
37719         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37720         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
37721         * modules/trim (configure.ac): Likewise.
37722
37723 2008-12-17  Bruno Haible  <bruno@clisp.org>
37724
37725         * modules/btowc-tests: New file.
37726         * tests/test-btowc1.sh: New file.
37727         * tests/test-btowc2.sh: New file.
37728         * tests/test-btowc.c: New file.
37729
37730         New module 'btowc'.
37731         * lib/wchar.in.h (btowc): New declaration.
37732         * lib/btowc.c: New file.
37733         * m4/btowc.m4: New file.
37734         * modules/btowc: New file.
37735         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
37736         HAVE_BTOWC.
37737         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
37738         * doc/posix-functions/btowc.texi: Document the new module.
37739
37740 2008-12-17  Bruno Haible  <bruno@clisp.org>
37741
37742         New module 'mbsinit'.
37743         * lib/wchar.in.h (mbsinit): New declaration.
37744         * lib/mbsinit.c: New file.
37745         * m4/mbsinit.m4: New file.
37746         * modules/mbsinit: New file.
37747         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
37748         HAVE_MBSINIT.
37749         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
37750         HAVE_MBSINIT.
37751         * doc/posix-functions/mbsinit.texi: Document the new module.
37752
37753 2008-12-16  Bruno Haible  <bruno@clisp.org>
37754
37755         * lib/unistd.in.h: Add comment.
37756         * tests/test-environ.c: Don't include <stdlib.h>.
37757
37758 2008-12-16  Bruno Haible  <bruno@clisp.org>
37759
37760         * lib/parse-duration.h (parse_duration): Document return value
37761         convention.
37762         * lib/parse-duration.c: Include specification header first. Add
37763         comments.
37764         (_): Remove macro.
37765         (parse_year_month_day, parse_hour_minute_second): Move side effects
37766         outside of strchr call.
37767         (parse_non_iso8601): Move side effects outside of isspace call.
37768         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
37769         call.
37770
37771 2008-12-16  Bruno Haible  <bruno@clisp.org>
37772
37773         * tests/test-parse-duration.sh: Produce no output when the test
37774         succeeds.
37775
37776 2008-12-16  Bruno Haible  <bruno@clisp.org>
37777
37778         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
37779         expressions.
37780
37781 2008-12-15  Bruno Haible  <bruno@clisp.org>
37782
37783         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
37784         * doc/glibc-functions/flistxattr.texi: Likewise.
37785         * doc/glibc-functions/fopencookie.texi: Likewise.
37786         * doc/glibc-functions/fremovexattr.texi: Likewise.
37787         * doc/glibc-functions/fsetxattr.texi: Likewise.
37788         * doc/glibc-functions/getxattr.texi: Likewise.
37789         * doc/glibc-functions/lgetxattr.texi: Likewise.
37790         * doc/glibc-functions/listxattr.texi: Likewise.
37791         * doc/glibc-functions/llistxattr.texi: Likewise.
37792         * doc/glibc-functions/lremovexattr.texi: Likewise.
37793         * doc/glibc-functions/lsetxattr.texi: Likewise.
37794         * doc/glibc-functions/removexattr.texi: Likewise.
37795         * doc/glibc-functions/setxattr.texi: Likewise.
37796         * doc/posix-functions/open_memstream.texi: Likewise.
37797
37798 2008-12-15  Eric Blake  <ebb9@byu.net>
37799
37800         Update doc for cygwin 1.7.
37801         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
37802         functions.
37803         * doc/posix-functions/fchmodat.texi: Likewise.
37804         * doc/posix-functions/fchownat.texi: Likewise.
37805         * doc/posix-functions/fdopendir.texi: Likewise.
37806         * doc/posix-functions/fmemopen.texi: Likewise.
37807         * doc/posix-functions/freeaddrinfo.texi: Likewise.
37808         * doc/posix-functions/fstatat.texi: Likewise.
37809         * doc/posix-functions/futimens.texi: Likewise.
37810         * doc/posix-functions/gai_strerror.texi: Likewise.
37811         * doc/posix-functions/getaddrinfo.texi: Likewise.
37812         * doc/posix-functions/getnameinfo.texi: Likewise.
37813         * doc/posix-functions/if_freenameindex.texi: Likewise.
37814         * doc/posix-functions/if_indextoname.texi: Likewise.
37815         * doc/posix-functions/if_nameindex.texi: Likewise.
37816         * doc/posix-functions/if_nametoindex.texi: Likewise.
37817         * doc/posix-functions/insque.texi: Likewise.
37818         * doc/posix-functions/linkat.texi: Likewise.
37819         * doc/posix-functions/llrint.texi: Likewise.
37820         * doc/posix-functions/llrintf.texi: Likewise.
37821         * doc/posix-functions/llrintl.texi: Likewise.
37822         * doc/posix-functions/lockf.texi: Likewise.
37823         * doc/posix-functions/lrintl.texi: Likewise.
37824         * doc/posix-functions/mkdirat.texi: Likewise.
37825         * doc/posix-functions/mkfifoat.texi: Likewise.
37826         * doc/posix-functions/mknodat.texi: Likewise.
37827         * doc/posix-functions/mq_close.texi: Likewise.
37828         * doc/posix-functions/mq_getattr.texi: Likewise.
37829         * doc/posix-functions/mq_notify.texi: Likewise.
37830         * doc/posix-functions/mq_open.texi: Likewise.
37831         * doc/posix-functions/mq_receive.texi: Likewise.
37832         * doc/posix-functions/mq_send.texi: Likewise.
37833         * doc/posix-functions/mq_setattr.texi: Likewise.
37834         * doc/posix-functions/mq_timedreceive.texi: Likewise.
37835         * doc/posix-functions/mq_timedsend.texi: Likewise.
37836         * doc/posix-functions/mq_unlink.texi: Likewise.
37837         * doc/posix-functions/open_memstream.texi: Likewise.
37838         * doc/posix-functions/openat.texi: Likewise.
37839         * doc/posix-functions/posix_fadvise.texi: Likewise.
37840         * doc/posix-functions/posix_fallocate.texi: Likewise.
37841         * doc/posix-functions/posix_madvise.texi: Likewise.
37842         * doc/posix-functions/posix_memalign.texi: Likewise.
37843         * doc/posix-functions/posix_openpt.texi: Likewise.
37844         * doc/posix-functions/readlinkat.texi: Likewise.
37845         * doc/posix-functions/remque.texi: Likewise.
37846         * doc/posix-functions/renameat.texi: Likewise.
37847         * doc/posix-functions/rintl.texi: Likewise.
37848         * doc/posix-functions/sem_unlink.texi: Likewise.
37849         * doc/posix-functions/shm_open.texi: Likewise.
37850         * doc/posix-functions/shm_unlink.texi: Likewise.
37851         * doc/posix-functions/signgam.texi: Likewise.
37852         * doc/posix-functions/sigset.texi: Likewise.
37853         * doc/posix-functions/stpcpy.texi: Likewise.
37854         * doc/posix-functions/stpncpy.texi: Likewise.
37855         * doc/posix-functions/strerror.texi: Likewise.
37856         * doc/posix-functions/strtod.texi: Likewise.
37857         * doc/posix-functions/symlinkat.texi: Likewise.
37858         * doc/posix-functions/unlinkat.texi: Likewise.
37859         * doc/posix-functions/utimensat.texi: Likewise.
37860         * doc/glibc-functions/bindresvport.texi: Likewise.
37861         * doc/glibc-functions/dn_expand.texi: Likewise.
37862         * doc/glibc-functions/exp10.texi: Likewise.
37863         * doc/glibc-functions/exp10f.texi: Likewise.
37864         * doc/glibc-functions/fgetxattr.texi: Likewise.
37865         * doc/glibc-functions/flistxattr.texi: Likewise.
37866         * doc/glibc-functions/fopencookie.texi: Likewise.
37867         * doc/glibc-functions/freeifaddrs.texi: Likewise.
37868         * doc/glibc-functions/fremovexattr.texi: Likewise.
37869         * doc/glibc-functions/fsetxattr.texi: Likewise.
37870         * doc/glibc-functions/getifaddrs.texi: Likewise.
37871         * doc/glibc-functions/getxattr.texi: Likewise.
37872         * doc/glibc-functions/lgetxattr.texi: Likewise.
37873         * doc/glibc-functions/listxattr.texi: Likewise.
37874         * doc/glibc-functions/llistxattr.texi: Likewise.
37875         * doc/glibc-functions/lremovexattr.texi: Likewise.
37876         * doc/glibc-functions/lsetxattr.texi: Likewise.
37877         * doc/glibc-functions/pow10.texi: Likewise.
37878         * doc/glibc-functions/pow10f.texi: Likewise.
37879         * doc/glibc-functions/rcmd_af.texi: Likewise.
37880         * doc/glibc-functions/removexattr.texi: Likewise.
37881         * doc/glibc-functions/res_init.texi: Likewise.
37882         * doc/glibc-functions/res_mkquery.texi: Likewise.
37883         * doc/glibc-functions/res_query.texi: Likewise.
37884         * doc/glibc-functions/res_querydomain.texi: Likewise.
37885         * doc/glibc-functions/res_send.texi: Likewise.
37886         * doc/glibc-functions/rresvport_af.texi: Likewise.
37887         * doc/glibc-functions/setxattr.texi: Likewise.
37888         * doc/glibc-functions/strcasestr.texi: Likewise.
37889
37890 2008-12-15  Bruno Haible  <bruno@clisp.org>
37891
37892         Fix compilation error on OSF/1 4.0.
37893         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
37894         <sys/time.h>, simply delegate to the system header.
37895         Reported by Daniel Richard G. <oss@teragram.com>.
37896
37897 2008-12-15  Bruno Haible  <bruno@clisp.org>
37898
37899         * doc/posix-functions/openat.texi: Mention the 'openat' module.
37900         * doc/posix-functions/fchmodat.texi: Likewise.
37901         * doc/posix-functions/fchownat.texi: Likewise.
37902         * doc/posix-functions/fdopendir.texi: Likewise.
37903         * doc/posix-functions/fstatat.texi: Likewise.
37904         * doc/posix-functions/mkdirat.texi: Likewise.
37905         * doc/posix-functions/unlinkat.texi: Likewise.
37906
37907 2008-12-14  Bruno Haible  <bruno@clisp.org>
37908
37909         Update doc for POSIX:2008.
37910         * doc/posix-functions/faccessat.texi: New file.
37911         * doc/posix-functions/fchmodat.texi: New file.
37912         * doc/posix-functions/fchownat.texi: New file.
37913         * doc/posix-functions/fdopendir.texi: New file.
37914         * doc/posix-functions/fstatat.texi: New file.
37915         * doc/posix-functions/futimens.texi: New file.
37916         * doc/posix-functions/linkat.texi: New file.
37917         * doc/posix-functions/mkdirat.texi: New file.
37918         * doc/posix-functions/mkfifoat.texi: New file.
37919         * doc/posix-functions/mknodat.texi: New file.
37920         * doc/posix-functions/open_wmemstream.texi: New file.
37921         * doc/posix-functions/openat.texi: New file.
37922         * doc/posix-functions/psiginfo.texi: New file.
37923         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
37924         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
37925         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
37926         * doc/posix-functions/readlinkat.texi: New file.
37927         * doc/posix-functions/renameat.texi: New file.
37928         * doc/posix-functions/strerror_l.texi: New file.
37929         * doc/posix-functions/symlinkat.texi: New file.
37930         * doc/posix-functions/unlinkat.texi: New file.
37931         * doc/posix-functions/utimensat.texi: New file.
37932         * doc/gnulib.texi (Function Substitutes): Add these subsections.
37933
37934 2008-12-14  Bruno Haible  <bruno@clisp.org>
37935
37936         Update doc for POSIX:2008.
37937         * doc/posix-functions/alphasort.texi: Renamed from
37938         doc/glibc-functions/alphasort.texi.
37939         * doc/posix-functions/dirfd.texi: Renamed from
37940         doc/glibc-functions/dirfd.texi.
37941         * doc/posix-functions/dprintf.texi: Renamed from
37942         doc/glibc-functions/dprintf.texi.
37943         * doc/posix-functions/duplocale.texi: Renamed from
37944         doc/glibc-functions/duplocale.texi.
37945         * doc/posix-functions/fexecve.texi: Renamed from
37946         doc/glibc-functions/fexecve.texi.
37947         * doc/posix-functions/fmemopen.texi: Renamed from
37948         doc/glibc-functions/fmemopen.texi.
37949         * doc/posix-functions/freelocale.texi: Renamed from
37950         doc/glibc-functions/freelocale.texi.
37951         * doc/posix-functions/getdate_err.texi: Renamed from
37952         doc/glibc-functions/getdate_err.texi.
37953         * doc/posix-functions/isalnum_l.texi: Renamed from
37954         doc/glibc-functions/isalnum_l.texi.
37955         * doc/posix-functions/isalpha_l.texi: Renamed from
37956         doc/glibc-functions/isalpha_l.texi.
37957         * doc/posix-functions/isblank_l.texi: Renamed from
37958         doc/glibc-functions/isblank_l.texi.
37959         * doc/posix-functions/iscntrl_l.texi: Renamed from
37960         doc/glibc-functions/iscntrl_l.texi.
37961         * doc/posix-functions/isdigit_l.texi: Renamed from
37962         doc/glibc-functions/isdigit_l.texi.
37963         * doc/posix-functions/isgraph_l.texi: Renamed from
37964         doc/glibc-functions/isgraph_l.texi.
37965         * doc/posix-functions/islower_l.texi: Renamed from
37966         doc/glibc-functions/islower_l.texi.
37967         * doc/posix-functions/isprint_l.texi: Renamed from
37968         doc/glibc-functions/isprint_l.texi.
37969         * doc/posix-functions/ispunct_l.texi: Renamed from
37970         doc/glibc-functions/ispunct_l.texi.
37971         * doc/posix-functions/isspace_l.texi: Renamed from
37972         doc/glibc-functions/isspace_l.texi.
37973         * doc/posix-functions/isupper_l.texi: Renamed from
37974         doc/glibc-functions/isupper_l.texi.
37975         * doc/posix-functions/iswalnum_l.texi: Renamed from
37976         doc/glibc-functions/iswalnum_l.texi.
37977         * doc/posix-functions/iswalpha_l.texi: Renamed from
37978         doc/glibc-functions/iswalpha_l.texi.
37979         * doc/posix-functions/iswblank_l.texi: Renamed from
37980         doc/glibc-functions/iswblank_l.texi.
37981         * doc/posix-functions/iswcntrl_l.texi: Renamed from
37982         doc/glibc-functions/iswcntrl_l.texi.
37983         * doc/posix-functions/iswctype_l.texi: Renamed from
37984         doc/glibc-functions/iswctype_l.texi.
37985         * doc/posix-functions/iswdigit_l.texi: Renamed from
37986         doc/glibc-functions/iswdigit_l.texi.
37987         * doc/posix-functions/iswgraph_l.texi: Renamed from
37988         doc/glibc-functions/iswgraph_l.texi.
37989         * doc/posix-functions/iswlower_l.texi: Renamed from
37990         doc/glibc-functions/iswlower_l.texi.
37991         * doc/posix-functions/iswprint_l.texi: Renamed from
37992         doc/glibc-functions/iswprint_l.texi.
37993         * doc/posix-functions/iswpunct_l.texi: Renamed from
37994         doc/glibc-functions/iswpunct_l.texi.
37995         * doc/posix-functions/iswspace_l.texi: Renamed from
37996         doc/glibc-functions/iswspace_l.texi.
37997         * doc/posix-functions/iswupper_l.texi: Renamed from
37998         doc/glibc-functions/iswupper_l.texi.
37999         * doc/posix-functions/iswxdigit_l.texi: Renamed from
38000         doc/glibc-functions/iswxdigit_l.texi.
38001         * doc/posix-functions/isxdigit_l.texi: Renamed from
38002         doc/glibc-functions/isxdigit_l.texi.
38003         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
38004         doc/glibc-functions/mbsnrtowcs.texi.
38005         * doc/posix-functions/mkdtemp.texi: Renamed from
38006         doc/glibc-functions/mkdtemp.texi.
38007         * doc/posix-functions/newlocale.texi: Renamed from
38008         doc/glibc-functions/newlocale.texi.
38009         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
38010         doc/glibc-functions/nl_langinfo_l.texi.
38011         * doc/posix-functions/open_memstream.texi: Renamed from
38012         doc/glibc-functions/open_memstream.texi.
38013         * doc/posix-functions/opterr.texi: Renamed from
38014         doc/glibc-functions/opterr.texi.
38015         * doc/posix-functions/optind.texi: Renamed from
38016         doc/glibc-functions/optind.texi.
38017         * doc/posix-functions/optopt.texi: Renamed from
38018         doc/glibc-functions/optopt.texi.
38019         * doc/posix-functions/psignal.texi: Renamed from
38020         doc/glibc-functions/psignal.texi.
38021         * doc/posix-functions/scandir.texi: Renamed from
38022         doc/glibc-functions/scandir.texi.
38023         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
38024         doc/glibc-functions/sched_get_priority_min.texi.
38025         * doc/posix-functions/signgam.texi: Renamed from
38026         doc/glibc-functions/signgam.texi.
38027         * doc/posix-functions/stpcpy.texi: Renamed from
38028         doc/glibc-functions/stpcpy.texi.
38029         * doc/posix-functions/stpncpy.texi: Renamed from
38030         doc/glibc-functions/stpncpy.texi.
38031         * doc/posix-functions/strcasecmp_l.texi: Renamed from
38032         doc/glibc-functions/strcasecmp_l.texi.
38033         * doc/posix-functions/strcoll_l.texi: Renamed from
38034         doc/glibc-functions/strcoll_l.texi.
38035         * doc/posix-functions/strfmon_l.texi: Renamed from
38036         doc/glibc-functions/strfmon_l.texi.
38037         * doc/posix-functions/strftime_l.texi: Renamed from
38038         doc/glibc-functions/strftime_l.texi.
38039         * doc/posix-functions/strncasecmp_l.texi: Renamed from
38040         doc/glibc-functions/strncasecmp_l.texi.
38041         * doc/posix-functions/strndup.texi: Renamed from
38042         doc/glibc-functions/strndup.texi.
38043         * doc/posix-functions/strnlen.texi: Renamed from
38044         doc/glibc-functions/strnlen.texi.
38045         * doc/posix-functions/strsignal.texi: Renamed from
38046         doc/glibc-functions/strsignal.texi.
38047         * doc/posix-functions/strxfrm_l.texi: Renamed from
38048         doc/glibc-functions/strxfrm_l.texi.
38049         * doc/posix-functions/timer_gettime.texi: Renamed from
38050         doc/glibc-functions/timer_gettime.texi.
38051         * doc/posix-functions/tolower_l.texi: Renamed from
38052         doc/glibc-functions/tolower_l.texi.
38053         * doc/posix-functions/toupper_l.texi: Renamed from
38054         doc/glibc-functions/toupper_l.texi.
38055         * doc/posix-functions/towctrans_l.texi: Renamed from
38056         doc/glibc-functions/towctrans_l.texi.
38057         * doc/posix-functions/towlower_l.texi: Renamed from
38058         doc/glibc-functions/towlower_l.texi.
38059         * doc/posix-functions/towupper_l.texi: Renamed from
38060         doc/glibc-functions/towupper_l.texi.
38061         * doc/posix-functions/uselocale.texi: Renamed from
38062         doc/glibc-functions/uselocale.texi.
38063         * doc/posix-functions/vdprintf.texi: Renamed from
38064         doc/glibc-functions/vdprintf.texi.
38065         * doc/posix-functions/wcpcpy.texi:
38066         Renamed from doc/glibc-functions/wcpcpy.texi.
38067         * doc/posix-functions/wcpncpy.texi: Renamed from
38068         doc/glibc-functions/wcpncpy.texi.
38069         * doc/posix-functions/wcscasecmp.texi: Renamed from
38070         doc/glibc-functions/wcscasecmp.texi.
38071         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
38072         doc/glibc-functions/wcscasecmp_l.texi.
38073         * doc/posix-functions/wcscoll_l.texi: Renamed from
38074         doc/glibc-functions/wcscoll_l.texi.
38075         * doc/posix-functions/wcsdup.texi: Renamed from
38076         doc/glibc-functions/wcsdup.texi.
38077         * doc/posix-functions/wcsncasecmp.texi: Renamed from
38078         doc/glibc-functions/wcsncasecmp.texi.
38079         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
38080         doc/glibc-functions/wcsncasecmp_l.texi.
38081         * doc/posix-functions/wcsnlen.texi: Renamed from
38082         doc/glibc-functions/wcsnlen.texi.
38083         * doc/posix-functions/wcsnrtombs.texi: Renamed from
38084         doc/glibc-functions/wcsnrtombs.texi.
38085         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
38086         doc/glibc-functions/wcsxfrm_l.texi.
38087         * doc/posix-functions/wctrans_l.texi: Renamed from
38088         doc/glibc-functions/wctrans_l.texi.
38089         * doc/posix-functions/wctype_l.texi: Renamed from
38090         doc/glibc-functions/wctype_l.texi.
38091         * doc/gnulib.texi (Function Substitutes): Add these subsections.
38092         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
38093         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
38094         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
38095         these subsections.
38096         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
38097         Remove sections.
38098
38099 2008-12-14  Bruno Haible  <bruno@clisp.org>
38100
38101         Update doc for POSIX:2008.
38102         * doc/posix-functions/*.texi: Update URL of POSIX specification.
38103
38104 2008-12-14  Bruno Haible  <bruno@clisp.org>
38105
38106         Update doc for POSIX:2008.
38107         * doc/pastposix-functions/bcmp.texi: Renamed from
38108         doc/posix-functions/bcmp.texi.
38109         * doc/pastposix-functions/bcopy.texi: Renamed from
38110         doc/posix-functions/bcopy.texi.
38111         * doc/pastposix-functions/bsd_signal.texi: Renamed from
38112         doc/posix-functions/bsd_signal.texi.
38113         * doc/pastposix-functions/bzero.texi: Renamed from
38114         doc/posix-functions/bzero.texi.
38115         * doc/pastposix-functions/ecvt.texi: Renamed from
38116         doc/posix-functions/ecvt.texi.
38117         * doc/pastposix-functions/fcvt.texi: Renamed from
38118         doc/posix-functions/fcvt.texi.
38119         * doc/pastposix-functions/ftime.texi: Renamed from
38120         doc/posix-functions/ftime.texi.
38121         * doc/pastposix-functions/gcvt.texi: Renamed from
38122         doc/posix-functions/gcvt.texi.
38123         * doc/pastposix-functions/getcontext.texi: Renamed from
38124         doc/posix-functions/getcontext.texi.
38125         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
38126         doc/posix-functions/gethostbyaddr.texi.
38127         * doc/pastposix-functions/gethostbyname.texi: Renamed from
38128         doc/posix-functions/gethostbyname.texi.
38129         * doc/pastposix-functions/getwd.texi: Renamed from
38130         doc/posix-functions/getwd.texi.
38131         * doc/pastposix-functions/h_errno.texi: Renamed from
38132         doc/posix-functions/h_errno.texi.
38133         * doc/pastposix-functions/index.texi: Renamed from
38134         doc/posix-functions/index.texi.
38135         * doc/pastposix-functions/makecontext.texi: Renamed from
38136         doc/posix-functions/makecontext.texi.
38137         * doc/pastposix-functions/mktemp.texi: Renamed from
38138         doc/posix-functions/mktemp.texi.
38139         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
38140         doc/posix-functions/pthread_attr_getstackaddr.texi.
38141         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
38142         doc/posix-functions/pthread_attr_setstackaddr.texi.
38143         * doc/pastposix-functions/rindex.texi: Renamed from
38144         doc/posix-functions/rindex.texi.
38145         * doc/pastposix-functions/scalb.texi: Renamed from
38146         doc/posix-functions/scalb.texi.
38147         * doc/pastposix-functions/setcontext.texi: Renamed from
38148         doc/posix-functions/setcontext.texi.
38149         * doc/pastposix-functions/swapcontext.texi: Renamed from
38150         doc/posix-functions/swapcontext.texi.
38151         * doc/pastposix-functions/ualarm.texi: Renamed from
38152         doc/posix-functions/ualarm.texi.
38153         * doc/pastposix-functions/usleep.texi: Renamed from
38154         doc/posix-functions/usleep.texi.
38155         * doc/pastposix-functions/vfork.texi: Renamed from
38156         doc/posix-functions/vfork.texi.
38157         * doc/pastposix-functions/wcswcs.texi: Renamed from
38158         doc/posix-functions/wcswcs.texi.
38159         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
38160         (Function Substitutes): Update.
38161
38162 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38163
38164         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
38165         m4/strerror.m4.
38166
38167 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38168             Bruno Haible  <bruno@clisp.org>
38169
38170         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
38171
38172 2008-12-13  Bruno Haible  <bruno@clisp.org>
38173
38174         * modules/strtoull (Depends-on): Remove unistd.
38175
38176 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38177
38178         * modules/strtoull (Depends-on): Add stdlib.
38179
38180 2008-12-11  Simon Josefsson  <simon@josefsson.org>
38181
38182         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
38183
38184 2008-12-10  Jim Meyering  <meyering@redhat.com>
38185
38186         gl_ASSERT: don't say assertions are disabled when they're not
38187         * m4/assert.m4 (gl_ASSERT): Do not make configure report
38188         "checking whether to enable assertions... no", when they are in
38189         fact enabled.  This is solely a bug in the output of configure.
38190         In spite of saying "no", NDEBUG was not defined in that case.
38191         Also, as noted by Eric Blake, leave assertions enabled upon
38192         --enable-assert=INVALID.
38193
38194 2008-12-10  Bruno Haible  <bruno@clisp.org>
38195
38196         Change MODULES.html to refer to POSIX:2008 where possible.
38197         * MODULES.html.sh (POSIX2008_URL): New variable.
38198         (posix_headers): Remove sys/timeb, ucontext.
38199         (posix2001_headers): New variable.
38200         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
38201         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
38202         index, makecontext, mktemp, pthread_attr_getstackaddr,
38203         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
38204         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
38205         (posix2001_functions): New variable.
38206         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
38207         otherwise.
38208
38209 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38210
38211         add missing include to parse-duration.c
38212         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
38213         * modules/parse-duration (Depends-on): Add xalloc.
38214
38215         fix sed script reading maint.mk
38216         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
38217         (syntax-check-rules): Use it.
38218
38219 2008-12-09  Bruno Haible  <bruno@clisp.org>
38220
38221         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
38222         MacOS X 10.4/PowerPC.
38223         Reported by Simon Josefsson.
38224
38225 2008-12-08  Jim Meyering  <meyering@redhat.com>
38226
38227         work around mingw's lack of some S_IF definitions
38228         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
38229         Reported by Simon Josefsson.
38230
38231 2008-12-08  Bruno Haible  <bruno@clisp.org>
38232
38233         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
38234         applied to variables. Needed on MacOS X 10.4/PowerPC.
38235         Reported by Simon Josefsson.
38236
38237 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
38238         and Eric Blake  <ebb9@byu.net>
38239
38240         assert: honor --enable-assert
38241         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
38242         order to honor --enable-assert, rather than treating it as a
38243         synonym for --disable-assert.
38244
38245 2008-12-08  Jim Meyering  <meyering@redhat.com>
38246
38247         * lib/posixtm.c: Remove now-useless declaration of mktime.
38248
38249         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
38250
38251 2008-12-07  Bruno Haible  <bruno@clisp.org>
38252
38253         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
38254         test_once): Mark functions as static.
38255         * tests/test-tls.c (test_tls): Likewise.
38256
38257 2008-12-07  Bruno Haible  <bruno@clisp.org>
38258
38259         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
38260         iconv_register_autodetect.
38261
38262 2008-12-07  Jim Meyering  <meyering@redhat.com>
38263
38264         posixtm.c: avoid a warning
38265         * lib/posixtm.c (posixtime): Don't initialize tm0.
38266         It's no longer needed to placate gcc4's -Wuninitialized,
38267         and the attempt to placate would elicit a new warning.
38268
38269         unicodeio.c: mark unused parameters
38270         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38271         (fallback_failure_callback): Likewise.
38272
38273 2008-12-07  Bruno Haible  <bruno@clisp.org>
38274
38275         * gnulib-tool (func_create_testdir): When building the tests
38276         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
38277         Reported by Simon Josefsson.
38278
38279 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38280
38281         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
38282
38283 2008-12-06  Bruno Haible  <bruno@clisp.org>
38284
38285         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
38286         Suggested by Eric Blake.
38287
38288 2008-12-06  Bruno Haible  <bruno@clisp.org>
38289
38290         Fix a c-stack test failure on MacOS X.
38291         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
38292         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
38293         handler for SIGBUS as well.
38294         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
38295         install a signal handler for SIGBUS as well.
38296         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
38297
38298 2008-12-06  Bruno Haible  <bruno@clisp.org>
38299
38300         Advocacy documentation.
38301         * doc/gnulib-intro.texi (Benefits): New section.
38302         * doc/gnulib.texi: Update.
38303
38304 2008-12-06  Bruno Haible  <bruno@clisp.org>
38305
38306         Document the 'manywarnings' module.
38307         * doc/manywarnings.texi: New file.
38308         * doc/gnulib.texi: Include it.
38309
38310 2008-12-05  Eric Blake  <ebb9@byu.net>
38311
38312         tests: silence some gcc warnings
38313         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
38314         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
38315         type mismatches.
38316
38317 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38318             Bruno Haible  <bruno@clisp.org>
38319
38320         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
38321
38322 2008-11-29  Jim Meyering  <meyering@redhat.com>
38323
38324         unicodeio.c: mark unused parameters
38325         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
38326         (fallback_failure_callback): Likewise.
38327
38328         fts: fix a thinko
38329         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
38330         (set_stat_type): Return S_IF*-valued "type" directly.
38331         Prompted by James Youngman's spotting a related bug.
38332         Confirmed by further testing through find.
38333
38334         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
38335         * lib/fts.c (D_TYPE): Define.
38336         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
38337         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
38338         (s_ifmt_shift_bits): New function.
38339         (set_stat_type): New function.
38340         (fts_build): When not calling fts_stat, call set_stat_type
38341         to propagate dirent.d_type info to fts_read caller.
38342         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
38343         fts_statp->st_mode type information may be valid.
38344
38345 2008-11-28  Simon Josefsson  <simon@josefsson.org>
38346
38347         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
38348         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
38349         <sds@gnu.org>.
38350
38351 2008-11-20  Bruno Haible  <bruno@clisp.org>
38352
38353         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
38354         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
38355         INCLUDE_NEXT.
38356         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
38357         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
38358         * modules/math (Makefile.am): Substitute
38359         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
38360         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38361
38362 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
38363             Bruno Haible  <bruno@clisp.org>
38364
38365         * lib/stdint.in.h: Define all type macros so that their expansion is
38366         a single typedef'ed token. Fixes a compilation failure in Boost which
38367         does "using ::int8_t;".
38368
38369 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38370
38371         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
38372         gl_MANYWARN_ALL_GCC.
38373         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
38374         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
38375         * modules/manywarnings: New file.
38376         * MODULES.html.sh: Mention manywarnings module.
38377
38378 2008-11-18  Bruno Haible  <bruno@clisp.org>
38379
38380         * doc/gnulib-tool.texi (Unit tests): New section.
38381
38382 2008-11-18  Simon Josefsson  <simon@josefsson.org>
38383
38384         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
38385         paths like 'lib/po/foo.po'.
38386
38387 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38388
38389         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
38390         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
38391
38392 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38393
38394         * m4/warnings.m4: Use CPPFLAGS to really check whether the
38395         parameter works.
38396
38397 2008-11-17  Simon Josefsson  <simon@josefsson.org>
38398
38399         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
38400
38401 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38402
38403         * modules/parse-duration-tests: New file.
38404         * tests/test-parse-duration.sh: New file.
38405         * tests/test-parse-duration.c: New file.
38406
38407         New module 'parse-duration'.
38408         * lib/parse-duration.h: New file.
38409         * lib/parse-duration.c: New file.
38410         * modules/parse-duration: New file.
38411
38412 2008-11-17  Bruno Haible  <bruno@clisp.org>
38413
38414         * tests/test-select-out.sh: Comment out the first pipe test.
38415         Reported by Simon Josefsson.
38416
38417 2008-11-17  Bruno Haible  <bruno@clisp.org>
38418
38419         * modules/getaddrinfo (Depends-on): Add servent, hostent.
38420         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
38421         gl_HOSTENT.
38422
38423 2008-11-17  Bruno Haible  <bruno@clisp.org>
38424
38425         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
38426         -lnetwork and -lnet. Needed for Haiku and BeOS.
38427
38428 2008-11-16  Bruno Haible  <bruno@clisp.org>
38429
38430         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
38431
38432 2008-11-16  Bruno Haible  <bruno@clisp.org>
38433
38434         Avoid test failure on Haiku.
38435         * tests/test-fsync.c: Include <errno.h>.
38436         (main): Don't require that fsync (0) fails.
38437
38438 2008-11-15  Bruno Haible  <bruno@clisp.org>
38439
38440         New module 'hostent'.
38441         * modules/hostent: New file.
38442         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
38443
38444 2008-11-15  Bruno Haible  <bruno@clisp.org>
38445
38446         New module 'servent'.
38447         * modules/servent: New file.
38448         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
38449
38450 2008-11-15  Bruno Haible  <bruno@clisp.org>
38451
38452         Avoid generating same test program with two different rules.
38453         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
38454         test-frexp to test-frexp-nolibm.
38455         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
38456         test-frexpl to test-frexpl-nolibm.
38457
38458 2008-11-15  Bruno Haible  <bruno@clisp.org>
38459
38460         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
38461         $(FREXPL_LIBM).
38462
38463 2008-11-15  Bruno Haible  <bruno@clisp.org>
38464
38465         * lib/netdb.in.h: Activate the definitions also when the system's
38466         <netdb.h> has 'struct addrinfo'.
38467         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
38468         EAI_OVERFLOW or AI_NUMERICSERV.
38469         * doc/posix-headers/netdb.texi: Document the problem.
38470
38471 2008-11-15  Bruno Haible  <bruno@clisp.org>
38472
38473         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
38474
38475         Make the 'sched' module work on platforms where <sched.h> exists but
38476         is incomplete (such as Haiku).
38477         * lib/sched.in.h; Include the system's <sched.h> if it exists.
38478         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
38479         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
38480         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
38481         HAVE_STRUCT_SCHED_PARAM.
38482         * modules/sched (Depends-on): Add include_next.
38483         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
38484         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
38485         * doc/posix-headers/sched.texi: Document the issue.
38486
38487 2008-11-13  Jim Meyering  <meyering@redhat.com>
38488
38489         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
38490         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
38491         test would fail due to the difference in the Report bugs to ...
38492         line.  The expected address is empty, "<>", while the actual
38493         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
38494
38495 2008-11-12  Bruno Haible  <bruno@clisp.org>
38496
38497         lstat: don't compile lstat.c on systems lacking lstat
38498         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
38499         which don't have lstat; this is handled by lib/sys_stat.in.h already.
38500         Reported by Daniel P. Berrange via Jim Meyering.
38501
38502 2008-11-12  Jim Meyering  <meyering@redhat.com>
38503
38504         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
38505
38506 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38507
38508         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
38509         instead.
38510
38511 2008-11-12  Bruno Haible  <bruno@clisp.org>
38512
38513         * lib/unicodeio.c: Include unistr.h.
38514         (utf8_wctomb): Remove function.
38515         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
38516
38517 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38518
38519         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
38520         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
38521         <bruno@clisp.org>.
38522         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
38523
38524 2008-11-12  Simon Josefsson  <simon@josefsson.org>
38525
38526         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
38527         * doc/gnulib.texi: Add section for warnings.
38528
38529 2008-11-11  Bruno Haible  <bruno@clisp.org>
38530
38531         * lib/sockets.h: Add a comment.
38532
38533 2008-11-11  Karl Berry  <karl@gnu.org>
38534
38535         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
38536
38537 2008-11-11  Eric Blake  <ebb9@byu.net>
38538
38539         fdl.texi: avoid git symlinks
38540         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
38541
38542 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38543
38544         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
38545
38546 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38547
38548         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
38549         (gl_WARN_ADD): Substitute $2 if literal.
38550
38551 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38552
38553         * m4/warning.m4: Remove.
38554
38555 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
38556
38557         * m4/warnings.m4: Almost complete rewrite. :-)
38558
38559 2008-11-10  Simon Josefsson  <simon@josefsson.org>
38560
38561         * modules/warnings: New module.
38562         * m4/warnings.m4: New file.
38563         * MODULES.html.sh: Mention warnings module.
38564         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
38565         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38566
38567 2008-11-10  Eric Blake  <ebb9@byu.net>
38568
38569         fdl.texi: make a symlink to the latest version
38570         * doc/standards.texi: Revert today's earlier change.
38571         * doc/fdl-1.2.texi: Rename from old fdl.texi...
38572         * doc/fdl.texi: ...and replace this with a symlink to the newer
38573         fdl-1.3.texi.
38574
38575 2008-11-10  Bruno Haible  <bruno@clisp.org>
38576
38577         * tests/test-select-fd.c (main): Accept the result file name as fourth
38578         argument.
38579         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
38580         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
38581
38582 2008-11-10  Bruno Haible  <bruno@clisp.org>
38583
38584         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
38585         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
38586         as autoconf-substituted macros.
38587         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
38588         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
38589         gl_NETDB_H_DEFAULTS. Set these variables.
38590         * modules/netdb (Makefile.am): Substitute these variables.
38591
38592 2008-11-10  Eric Blake  <ebb9@byu.net>
38593
38594         standards.texi: include correct file for FDL 1.3
38595         * doc/standards.texi (GNU Free Documentation License): Change
38596         include file to pull in FDL 1.3, not 1.2.
38597
38598         fdl.texi: revert accidental change to license
38599         * doc/fdl.texi: This is FDL 1.2, not 1.3.
38600
38601 2008-11-10  Bruno Haible  <bruno@clisp.org>
38602
38603         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
38604         cross-compiling guesses also when the native compile gives no result.
38605
38606 2008-11-10  Bruno Haible  <bruno@clisp.org>
38607
38608         * lib/spawni.c (__spawni): Force variable into the stack.
38609
38610 2008-11-10  Bruno Haible  <bruno@clisp.org>
38611
38612         Add support for Haiku.
38613         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
38614         glibc and BeOS, but also on Haiku.
38615         * lib/fpurge.c (fpurge): Likewise.
38616         * lib/freadable.c (freadable): Likewise.
38617         * lib/freadahead.c (freadahead): Likewise.
38618         * lib/freading.c (freading): Likewise.
38619         * lib/freadptr.c (freadptr): Likewise.
38620         * lib/freadseek.c (freadptrinc): Likewise.
38621         * lib/fseeko.c (rpl_fseeko): Likewise.
38622         * lib/fseterr.c (fseterr): Likewise.
38623         * lib/fwritable.c (fwritable): Likewise.
38624         * lib/fwriting.c (fwriting): Likewise.
38625         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
38626
38627 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38628
38629         * lib/config.charset: Treat Haiku like BeOS.
38630
38631 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
38632
38633         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
38634         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
38635
38636 2008-11-08  Bruno Haible  <bruno@clisp.org>
38637
38638         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
38639         AC_CACHE_CHECK.
38640
38641 2008-11-08  Bruno Haible  <bruno@clisp.org>
38642
38643         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
38644
38645 2008-11-08  Bruno Haible  <bruno@clisp.org>
38646
38647         * tests/test-select-fd.c: New file.
38648         * tests/test-select-in.sh: New file.
38649         * tests/test-select-out.sh: New file.
38650         * tests/test-select-stdin.c: New file.
38651         * modules/select-tests (Files): Add the new files.
38652         (Depends-on): Add gettimeofday.
38653         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
38654         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
38655         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
38656
38657 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
38658             Bruno Haible  <bruno@clisp.org>
38659
38660         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
38661
38662 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
38663
38664         * build-aux/pmccabe2html: Added support for C++ source files.
38665
38666 2008-11-05  Ben Pfaff  <blp@gnu.org>
38667
38668         Fix lib/close.c build on Windows.
38669         * modules/close (Files): Add lib/w32sock.h.
38670
38671 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
38672
38673         Accept Bison's NEWS format.
38674         * build-aux/announce-gen (print_news_deltas): Tweak
38675         $re_prefix.
38676
38677 2008-11-04  Bruno Haible  <bruno@clisp.org>
38678
38679         * modules/random_r (Maintainer): Add glibc.
38680
38681 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38682
38683         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
38684         by karl@freefriends.org (Karl Berry).
38685         * doc/alloca.texi: Likewise.
38686         * doc/c-ctype.texi: Likewise.
38687         * doc/c-strcase.texi: Likewise.
38688         * doc/c-strcaseeq.texi: Likewise.
38689         * doc/c-strcasestr.texi: Likewise.
38690         * doc/c-strstr.texi: Likewise.
38691         * doc/c-strtod.texi: Likewise.
38692         * doc/c-strtold.texi: Likewise.
38693         * doc/ctime.texi: Likewise.
38694         * doc/error.texi: Likewise.
38695         * doc/fdl.texi: Likewise.
38696         * doc/gcd.texi: Likewise.
38697         * doc/getdate.texi: Likewise.
38698         * doc/gnulib-intro.texi: Likewise.
38699         * doc/gnulib-tool.texi: Likewise.
38700         * doc/gnulib.texi: Likewise.
38701         * doc/inet_ntoa.texi: Likewise.
38702         * doc/maintain.texi: Likewise.
38703         * doc/make-stds.texi: Likewise.
38704         * doc/quote.texi: Likewise.
38705         * doc/regexprops-generic.texi: Likewise.
38706         * doc/standards.texi: Likewise.
38707         * doc/verify.texi: Likewise.
38708         * doc/visibility.texi: Likewise.
38709         * doc/gnulib.texi (GNU Free Documentation License): Include
38710         fdl-1.3.texi instead of fdl.texi.
38711
38712 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38713
38714         * doc/fdl-1.3.texi: New file, from
38715         <http://www.gnu.org/licenses/fdl-1.3.texi>.
38716         * modules/fdl-1.3: Add.
38717         * MODULES.html.sh: Add fdl-1.3.
38718
38719 2008-11-03  Bruno Haible  <bruno@clisp.org>
38720
38721         Make determination of absolute name of header file work with AIX xlc.
38722         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
38723         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
38724         preprocessing.
38725         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38726         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
38727
38728 2008-11-03  Simon Josefsson  <simon@josefsson.org>
38729
38730         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
38731         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
38732         <ludo@gnu.org>.
38733
38734 2008-11-02  Bruno Haible  <bruno@clisp.org>
38735
38736         Mark 'strpbrk' obsolete.
38737         * modules/strpbrk (Status, Notice): New sections.
38738         * modules/strtok_r (Depends-on): Add strpbrk.
38739
38740 2008-11-02  Bruno Haible  <bruno@clisp.org>
38741
38742         Mark 'strdup' obsolete.
38743         * modules/strdup (Status, Notice): New sections.
38744         * modules/findprog (Depends-on): Add strdup.
38745         * modules/getaddrinfo (Depends-on): Likewise.
38746         * modules/localename (Depends-on): Likewise.
38747         * modules/relocatable-lib (Depends-on): Likewise.
38748         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
38749         * modules/relocatable-prog (Depends-on): Likewise.
38750         * modules/trim (Depends-on): Likewise.
38751         * modules/unictype/gen-ctype (Depends-on): Likewise.
38752         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38753
38754 2008-11-02  Bruno Haible  <bruno@clisp.org>
38755
38756         Mark 'strcspn' obsolete.
38757         * modules/strcspn (Status, Notice): New sections.
38758
38759 2008-11-02  Bruno Haible  <bruno@clisp.org>
38760
38761         Mark 'rmdir' obsolete.
38762         * modules/rmdir (Status, Notice): New sections.
38763         * modules/clean-temp (Depends-on): Add rmdir.
38764         * modules/openat (Depends-on): Likewise.
38765
38766 2008-11-02  Bruno Haible  <bruno@clisp.org>
38767
38768         Mark 'raise' obsolete.
38769         * modules/raise (Status, Notice): New sections.
38770         (Include): Specify <signal.h>.
38771         * modules/stdio (Depends-on): Add raise.
38772         * modules/write (Depends-on): Likewise.
38773
38774 2008-11-02  Bruno Haible  <bruno@clisp.org>
38775
38776         Mark 'memset' obsolete.
38777         * modules/memset (Status, Notice): New sections.
38778
38779 2008-11-02  Bruno Haible  <bruno@clisp.org>
38780
38781         Mark 'memmove' obsolete.
38782         * modules/memmove (Status, Notice): New sections.
38783         * modules/argp (Depends-on): Add memmove.
38784         * modules/argz (Depends-on): Likewise.
38785         * modules/canonicalize (Depends-on): Likewise.
38786         * modules/canonicalize-lgpl (Depends-on): Likewise.
38787         * modules/fts (Depends-on): Likewise.
38788         * modules/getcwd (Depends-on): Likewise.
38789         * modules/human (Depends-on): Likewise.
38790         * modules/regex (Depends-on): Likewise.
38791         * modules/striconveh (Depends-on): Likewise.
38792         * modules/trim (Depends-on): Likewise.
38793         * modules/unistr/u8-move (Depends-on): Likewise.
38794         * modules/unistr/u16-move (Depends-on): Likewise.
38795         * modules/unistr/u32-move (Depends-on): Likewise.
38796
38797 2008-11-02  Bruno Haible  <bruno@clisp.org>
38798
38799         Mark 'memcpy' obsolete.
38800         * modules/memcpy (Status, Notice): New sections.
38801
38802 2008-11-02  Bruno Haible  <bruno@clisp.org>
38803
38804         Mark 'memcmp' obsolete.
38805         * modules/memcmp (Status, Notice): New sections.
38806         * modules/argmatch (Depends-on): Add memchr.
38807         * modules/backupfile (Depends-on): Likewise.
38808         * modules/c-strcasestr (Depends-on): Likewise.
38809         * modules/crypto/des (Depends-on): Likewise.
38810         * modules/csharpcomp (Depends-on): Likewise.
38811         * modules/fnmatch (Depends-on): Likewise.
38812         * modules/git-merge-changelog (Depends-on): Likewise.
38813         * modules/isnand (Depends-on): Likewise.
38814         * modules/isnand-nolibm (Depends-on): Likewise.
38815         * modules/isnanf (Depends-on): Likewise.
38816         * modules/isnanf-nolibm (Depends-on): Likewise.
38817         * modules/isnanl (Depends-on): Likewise.
38818         * modules/isnanl-nolibm (Depends-on): Likewise.
38819         * modules/mbchar (Depends-on): Likewise.
38820         * modules/memcoll (Depends-on): Likewise.
38821         * modules/quotearg (Depends-on): Likewise.
38822         * modules/regex (Depends-on): Likewise.
38823         * modules/relocatable-prog (Depends-on): Likewise.
38824         * modules/same (Depends-on): Likewise.
38825         * modules/signbit (Depends-on): Likewise.
38826         * modules/strcasestr-simple (Depends-on): Likewise.
38827         * modules/unictype/gen-ctype (Depends-on): Likewise.
38828         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38829         * modules/uniname/uniname (Depends-on): Likewise.
38830         * modules/unistr/u8-cmp (Depends-on): Likewise.
38831
38832 2008-11-02  Bruno Haible  <bruno@clisp.org>
38833
38834         Mark 'memchr' obsolete.
38835         * modules/memchr (Status, Notice): New sections.
38836         * modules/argp (Depends-on): Add memchr.
38837         * modules/base64 (Depends-on): Likewise.
38838         * modules/c-strcasestr (Depends-on): Likewise.
38839         * modules/chdir-long (Depends-on): Likewise.
38840         * modules/fnmatch (Depends-on): Likewise.
38841         * modules/getsubopt (Depends-on): Likewise.
38842         * modules/git-merge-changelog (Depends-on): Likewise.
38843         * modules/glob (Depends-on): Likewise.
38844         * modules/strcasestr-simple (Depends-on): Likewise.
38845         * modules/strnlen (Depends-on): Likewise.
38846
38847 2008-11-02  Bruno Haible  <bruno@clisp.org>
38848
38849         Mark 'atexit' obsolete.
38850         * modules/atexit (Status, Notice): New sections.
38851         * modules/chdir-long (Depends-on): Add atexit.
38852         * modules/wait-process (Depends-on): Likewise.
38853
38854 2008-11-02  Bruno Haible  <bruno@clisp.org>
38855
38856         * gnulib-tool: New option --with-obsolete.
38857         (func_usage): Document it.
38858         (func_modules_transitive_closure): Drop obsolete dependencies if
38859         incobsolete is not true.
38860         (func_import): Read and save the incobsolete variable to the cache.
38861
38862 2008-11-02  Bruno Haible  <bruno@clisp.org>
38863
38864         * modules/TEMPLATE-EXTENDED: New field 'Status'.
38865         * gnulib-tool: New option --extract-status.
38866         (func_usage): Document it.
38867         (sed_extract_prog): Recognize it.
38868         (func_get_status): New function.
38869
38870 2008-10-30  Simon Josefsson  <simon@josefsson.org>
38871
38872         * modules/sockets (License): Change from LGPL to LGPLv2+.
38873
38874 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38875
38876         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
38877
38878 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38879
38880         * MODULES.html.sh (Support for systems lacking POSIX:2001):
38881         Mention times and sys_times.
38882         * modules/sys_times, modules/sys_times-tests: New modules.
38883         * modules/times, modules/times-tests: Likewise
38884         * m4/sys_times_h.m4: New file.
38885         * lib/sys_times.in.h: Likewise
38886         * lib/times.c: Likewise.
38887         * tests/test-sys_times.c: Likewise.
38888         * tests/test-times.c: Likewise.
38889         * doc/posix-headers/sys_times.texi: Update.
38890         * doc/posix-functions/times.texi: Update.
38891
38892 2008-10-28  Jim Meyering  <meyering@redhat.com>
38893
38894         * modules/tempname (Depends-on): Add lstat.
38895
38896         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
38897
38898 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38899
38900         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
38901         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
38902         using idiom used elsewhere in gnulib.
38903
38904 2008-10-27  Jim Meyering  <meyering@redhat.com>
38905
38906         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
38907
38908 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38909
38910         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
38911         TESTS_ENVIRONMENT, for shell scripts that needs to call built
38912         programs.
38913         * tests/test-argp-2.sh: Use $EXEEXT when needed.
38914
38915 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38916
38917         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
38918
38919 2008-10-27  Bruno Haible  <bruno@clisp.org>
38920
38921         * tests/test-lstat.c: Include <stdio.h>.
38922
38923 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38924
38925         * modules/lstat-tests: New module.
38926         * tests/test-lstat.c: New file.
38927
38928 2008-10-26  Jim Meyering  <meyering@redhat.com>
38929
38930         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
38931
38932 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38933             Bruno Haible  <bruno@clisp.org>
38934
38935         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
38936         * modules/configmake (Include): Add a note that the include must come
38937         after all system headers.
38938         * lib/javaversion.c: Include configmake.h after all other includes.
38939
38940 2008-10-26  Bruno Haible  <bruno@clisp.org>
38941
38942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
38943         HAVE_STRUCT_RANDOM_DATA to 1.
38944         (gl_STDLIB_H): Simplify.
38945
38946 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38947
38948         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
38949         substitute HAVE_STRUCT_RANDOM_DATA.
38950         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
38951         random_data.
38952         * modules/stdlib (Makefile.am): Substitute
38953         HAVE_STRUCT_RANDOM_DATA.
38954
38955 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38956
38957         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
38958         * doc/gnulib-intro.texi (Copyright): Likewise.
38959
38960 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38961
38962         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
38963         findings.
38964
38965 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
38966             Bruno Haible  <bruno@clisp.org>
38967
38968         * lib/unistd.in.h: Include <winsock2.h>.
38969         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
38970         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
38971         Provide dummy declarations.
38972         (gethostname): Override.
38973         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
38974         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
38975         gl_PREREQ_SYS_H_WINSOCK2.
38976         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
38977         * doc/posix-functions/gethostname.texi: More details.
38978
38979 2008-10-25  Bruno Haible  <bruno@clisp.org>
38980
38981         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38982         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
38983         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
38984
38985         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
38986         here ...
38987         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
38988         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
38989         gl_UNISTD_H_DEFAULTS.
38990
38991 2008-10-25  Eric Blake  <ebb9@byu.net>
38992
38993         signbit: avoid spurious compiler failure
38994         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
38995         declarations inside function.
38996
38997 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38998             Bruno Haible  <bruno@clisp.org>
38999
39000         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
39001         * modules/random_r (Depends-on): Add stdint.
39002
39003 2008-10-24  Bruno Haible  <bruno@clisp.org>
39004
39005         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
39006         Eggert.
39007         * modules/strerror (License): Likewise.
39008
39009 2008-10-24  Jim Meyering  <meyering@redhat.com>
39010
39011         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
39012         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
39013
39014 2008-10-24  Eric Blake  <ebb9@byu.net>
39015
39016         getgroups: fix compilation when getgroups is available
39017         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
39018         but with <config.h> override of getgroups disabled.
39019
39020 2008-10-24  Simon Josefsson  <simon@josefsson.org>
39021
39022         * doc/gnulib.texi (Header files): Add note about C++ problems.
39023         Explained by Bruno Haible <bruno@clisp.org>.
39024
39025 2008-10-23  Bruno Haible  <bruno@clisp.org>
39026
39027         Define a dummy SA_NODEFER macro on Interix.
39028         * lib/signal.in.h (SA_NODEFER): Define fallback.
39029         Reported by Aleksey Cheusov <cheusov@tut.by> via
39030         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
39031
39032 2008-10-23  Bruno Haible  <bruno@clisp.org>
39033
39034         * modules/freadahead (License): Change to LGPLv2+.
39035         Suggested by Simon Josefsson.
39036
39037 2008-10-23  Jim Meyering  <meyering@redhat.com>
39038
39039         random_r: new module
39040         * modules/random_r: New file.
39041         * m4/random_r.m4: New file.
39042         * lib/random_r.c: New file, from glibc.
39043         * modules/random_r-tests: New file.
39044         * tests/test-random_r.c: New file.
39045         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
39046          Declare.
39047         (RAND_MAX): Define.
39048         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
39049         * modules/stdlib: Substitute them, too.
39050         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
39051         * doc/glibc-functions/initstate_r.texi: Mention the new module.
39052         * doc/glibc-functions/random_r.texi: Likewise.
39053         * doc/glibc-functions/setstate_r.texi: Likewise.
39054         * doc/glibc-functions/srandom_r.texi: Likewise.
39055         * config/srclist.txt: Mention it.
39056
39057 2008-10-23  David Lutterkort  <lutter@redhat.com>
39058
39059         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
39060         link requirement
39061
39062 2008-10-23  Jim Meyering  <meyering@redhat.com>
39063
39064         selinux-h: mark parameters of stub functions as intentionally unused
39065         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
39066         * lib/se-context.in.h: Likewise.
39067
39068 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39069
39070         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
39071
39072 2008-10-22  Simon Josefsson  <simon@josefsson.org>
39073
39074         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
39075
39076 2008-10-22  Eric Blake  <ebb9@byu.net>
39077
39078         glthread/thread: avoid compiler warning
39079         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
39080         Add unreachable abort to silence compiler.
39081
39082 2008-10-22  Eric Blake  <ebb9@byu.net>
39083
39084         netdb: also supply struct addrinfo for cygwin 1.5.x
39085         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
39086         older cygwin.
39087         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
39088         cygwin.
39089         * doc/posix-headers/netdb.texi (netdb.h): Document this.
39090
39091 2008-10-22  Bruno Haible  <bruno@clisp.org>
39092
39093         * users.txt: Update entry about pspp.
39094
39095 2008-10-21  Bruno Haible  <bruno@clisp.org>
39096
39097         Simplification.
39098         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
39099         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
39100
39101         Simplification.
39102         * lib/ioctl.c (ioctl): Don't undefine.
39103         * lib/socket.c (socket): Don't undefine.
39104
39105         Remove unused module indicator macros.
39106         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
39107         GNULIB_$1 as a C macro.
39108
39109         * doc/posix-functions/close.texi: Undo last change.
39110         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
39111         Windows platforms.
39112
39113 2008-10-21  Bruno Haible  <bruno@clisp.org>
39114
39115         Add gethostname() declaration to <unistd.h>.
39116         * lib/unistd.in.h (gethostname): New declaration.
39117         * lib/gethostname.c: Include <unistd.h>.
39118         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
39119         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
39120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
39121         and HAVE_GETHOSTNAME.
39122         * modules/gethostname (Depends-on): Add unistd.
39123         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39124         (Include): Specify <unistd.h>.
39125         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
39126         HAVE_GETHOSTNAME.
39127         * tests/test-gethostname.c: Include <unistd.h> first.
39128
39129 2008-10-21  Bruno Haible  <bruno@clisp.org>
39130
39131         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
39132         * modules/select-tests (Depends-on): Likewise.
39133         Reported by Simon Josefsson.
39134
39135 2008-10-21  Simon Josefsson  <simon@josefsson.org>
39136
39137         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
39138         * lib/accept.c: New file, based on winsock.c.
39139         * lib/bind.c: New file, based on winsock.c.
39140         * lib/connect.c: New file, based on winsock.c.
39141         * lib/getpeername.c: New file, based on winsock.c.
39142         * lib/getsockname.c: New file, based on winsock.c.
39143         * lib/getsockopt.c: New file, based on winsock.c.
39144         * lib/ioctl.c: New file, based on winsock.c.
39145         * lib/listen.c: New file, based on winsock.c.
39146         * lib/recv.c: New file, based on winsock.c.
39147         * lib/recvfrom.c: New file, based on winsock.c.
39148         * lib/send.c: New file, based on winsock.c.
39149         * lib/sendto.c: New file, based on winsock.c.
39150         * lib/setsockopt.c: New file, based on winsock.c.
39151         * lib/shutdown.c: New file, based on winsock.c.
39152         * lib/socket.c: New file, based on winsock.c.
39153         * lib/w32sock.h: New file, based on winsock.c.
39154         * lib/winsock.c: Remove file.
39155         * modules/accept: Likewise.
39156         * modules/bind: Likewise.
39157         * modules/connect: Likewise.
39158         * modules/getpeername: Likewise.
39159         * modules/getsockname: Likewise.
39160         * modules/getsockopt: Likewise.
39161         * modules/ioctl: Likewise.
39162         * modules/listen: Likewise.
39163         * modules/recv: Likewise.
39164         * modules/recvfrom: Likewise.
39165         * modules/send: Likewise.
39166         * modules/sendto: Likewise.
39167         * modules/setsockopt: Likewise.
39168         * modules/shutdown: Likewise.
39169         * modules/socket: Use socket.c instead of winsock.c.
39170         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
39171         * doc/posix-functions/accept.texi: Doc fix.
39172         * doc/posix-functions/bind.texi: Doc fix.
39173         * doc/posix-functions/close.texi: Doc fix.
39174         * doc/posix-functions/connect.texi: Doc fix.
39175         * doc/posix-functions/getpeername.texi: Doc fix.
39176         * doc/posix-functions/getsockname.texi: Doc fix.
39177         * doc/posix-functions/getsockopt.texi: Doc fix.
39178         * doc/posix-functions/ioctl.texi: Doc fix.
39179         * doc/posix-functions/listen.texi: Doc fix.
39180         * doc/posix-functions/recv.texi: Doc fix.
39181         * doc/posix-functions/recvfrom.texi: Doc fix.
39182         * doc/posix-functions/send.texi: Doc fix.
39183         * doc/posix-functions/sendto.texi: Doc fix.
39184         * doc/posix-functions/setsockopt.texi: Doc fix.
39185         * doc/posix-functions/shutdown.texi: Doc fix.
39186         * doc/posix-functions/socket.texi: Doc fix.
39187
39188 2008-10-20  Bruno Haible  <bruno@clisp.org>
39189
39190         Take into account the role of SIGABRT_COMPAT on Windows 2008.
39191         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
39192         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
39193         as an alias for SIGABRT.
39194         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
39195         (sigaction): Map it to SIGABRT.
39196         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
39197
39198 2008-10-20  Bruno Haible  <bruno@clisp.org>
39199
39200         * lib/fts.c: Don't include lstat.h.
39201         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
39202
39203         Move the lstat() declaration to <sys/stat.h>.
39204         * lib/lstat.h: Remove file.
39205         * lib/sys_stat.in.h: Add special invocation convention.
39206         (lstat): New declaration.
39207         * lib/lstat.c (orig_lstat): New function.
39208         (rpl_lstat): Use orig_lstat instead of lstat.
39209         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
39210         AC_C_INLINE. Set REPLACE_LSTAT.
39211         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
39212         and REPLACE_LSTAT.
39213         * modules/lstat (Files): Remove lib/lstat.h.
39214         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39215         (Include): Specify <sys/stat.h> instead of lstat.h.
39216         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
39217         REPLACE_LSTAT.
39218         * NEWS: Mention the change.
39219
39220 2008-10-20  Bruno Haible  <bruno@clisp.org>
39221
39222         * modules/posix_spawn-tests: New file.
39223         * tests/test-posix_spawn3.c: New file.
39224
39225 2008-10-20  Bruno Haible  <bruno@clisp.org>
39226
39227         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
39228         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39229         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
39230         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
39231         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
39232
39233 2008-10-20  Bruno Haible  <bruno@clisp.org>
39234
39235         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
39236         of posix_spawn on AIX 5.3.
39237
39238 2008-10-20  Bruno Haible  <bruno@clisp.org>
39239
39240         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
39241
39242 2008-10-20  Bruno Haible  <bruno@clisp.org>
39243
39244         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
39245         of AC_LANG_PROGRAM.
39246
39247 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39248
39249         * lib/netdb.in.h: Don't define GNU specific constants until they
39250         are supported or needed.  Reported by Bruno Haible
39251         <bruno@clisp.org>.
39252
39253 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39254
39255         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
39256
39257 2008-10-20  Simon Josefsson  <simon@josefsson.org>
39258
39259         * lib/getaddrinfo.h: Remove file.
39260         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
39261         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
39262         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
39263         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
39264         * modules/netdb: Substitute GNULIB_GETADDRINFO.
39265         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
39266         * tests/test-getaddrinfo.c: Likewise.
39267         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
39268         * NEWS: Mention change.
39269
39270 2008-10-19  Bruno Haible  <bruno@clisp.org>
39271
39272         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
39273
39274 2008-10-19  Bruno Haible  <bruno@clisp.org>
39275
39276         * lib/wait-process.c: Include simply <sys/wait.h>.
39277         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
39278         WIFSTOPPED): Remove fallback definitions.
39279         * modules/wait-process (Depends-on): Add sys_wait.
39280
39281         New module 'sys_wait'.
39282         * modules/sys_wait: New file.
39283         * lib/sys_wait.in.h: New file, partially copied from
39284         lib/wait-process.c.
39285         * m4/sys_wait_h.m4: New file.
39286         * doc/posix-headers/sys_wait.texi: Mention the new module.
39287
39288 2008-10-19  Bruno Haible  <bruno@clisp.org>
39289
39290         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
39291
39292 2008-10-19  Bruno Haible  <bruno@clisp.org>
39293
39294         Assume that waitpid() fills an 'int' status, not a 'union wait'.
39295         * lib/wait-process.c (WAIT_T): Remove type.
39296         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
39297         (wait_subprocess): Update.
39298
39299 2008-10-19  Bruno Haible  <bruno@clisp.org>
39300
39301         New module 'atoll'.
39302         * modules/atoll: New file.
39303         * lib/stdlib.in.h (atoll): New declaration.
39304         * lib/atoll.c: New file, from glibc with modifications.
39305         * m4/atoll.m4: New file.
39306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
39307         HAVE_ATOLL.
39308         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
39309         * doc/posix-functions/atoll.texi: Mention the new module.
39310
39311 2008-10-19  Bruno Haible  <bruno@clisp.org>
39312
39313         Add strtoull() declaration to <stdlib.h>.
39314         * lib/stdlib.in.h (strtoull): New declaration.
39315         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39316         Set HAVE_STRTOULL.
39317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
39318         HAVE_STRTOULL.
39319         * modules/strtoull (Depends-on): Add stdlib.
39320         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39321         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
39322         HAVE_STRTOULL.
39323
39324 2008-10-19  Bruno Haible  <bruno@clisp.org>
39325
39326         Add strtoll() declaration to <stdlib.h>.
39327         * lib/stdlib.in.h (strtoll): New declaration.
39328         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
39329         Set HAVE_STRTOLL.
39330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
39331         HAVE_STRTOLL.
39332         * modules/strtoll (Depends-on): Add stdlib.
39333         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39334         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
39335
39336 2008-10-19  Bruno Haible  <bruno@clisp.org>
39337
39338         * modules/bcopy (Depends-on): Add strings.
39339         (Include): Specify <strings.h>.
39340
39341 2008-10-19  Bruno Haible  <bruno@clisp.org>
39342
39343         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
39344
39345 2008-10-19  Bruno Haible  <bruno@clisp.org>
39346
39347         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
39348         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
39349         mingw.
39350
39351 2008-10-19  Bruno Haible  <bruno@clisp.org>
39352
39353         * lib/atanl.c: Don't include isnanl.h.
39354         * lib/cosl.c: Likewise.
39355         * lib/ldexpl.c: Likewise.
39356         * lib/logl.c: Likewise.
39357         * lib/sinl.c: Likewise.
39358         * lib/sqrtl.c: Likewise.
39359         * lib/tanl.c: Likewise.
39360
39361         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
39362         * lib/isnanf.h: Remove file.
39363         * lib/isnand.h: Remove file.
39364         * lib/isnanl.h: Remove file.
39365         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
39366         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
39367         macros.
39368         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
39369         HAVE_ISNANF, don't define it as a C macro.
39370         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
39371         HAVE_ISNAND, don't define it as a C macro.
39372         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
39373         HAVE_ISNANL, don't define it as a C macro.
39374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
39375         HAVE_ISNAN[FDL].
39376         * modules/isnanf (Files): Remove lib/isnanf.h.
39377         (Depends-on): Add math.
39378         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39379         (Include): Specify <math.h> instead of isnanf.h.
39380         * modules/isnand (Files): Remove lib/isnand.h.
39381         (Depends-on): Add math.
39382         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39383         (Include): Specify <math.h> instead of isnand.h.
39384         * modules/isnanl (Files): Remove lib/isnanl.h.
39385         (Depends-on): Add math.
39386         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
39387         (Include): Specify <math.h> instead of isnanl.h.
39388         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
39389         HAVE_ISNAN[FDL].
39390         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
39391         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
39392         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
39393         * NEWS: Mention the change.
39394
39395 2008-10-18  Bruno Haible  <bruno@clisp.org>
39396
39397         Add getusershell(), setusershell(), endusershell() declarations to
39398         <unistd.h>.
39399         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
39400         declarations.
39401         * lib/getusershell.c: Include unistd.h.
39402         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
39403         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39404         HAVE_GETUSERSHELL.
39405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
39406         and HAVE_GETUSERSHELL.
39407         * modules/getusershell (Depends-on): Add unistd, extensions.
39408         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39409         (Include): Specify <unistd.h>.
39410         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
39411         HAVE_GETUSERSHELL.
39412
39413 2008-10-18  Bruno Haible  <bruno@clisp.org>
39414
39415         Add a getloadavg() declaration to <stdlib.h>.
39416         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
39417         getloadavg declaration.
39418         (getloadavg): New declaration.
39419         * lib/getloadavg.c: Include <stdlib.h> first.
39420         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
39421         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
39422         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
39423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
39424         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39425         * modules/getloadavg (Depends-on): Add stdlib, extensions.
39426         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39427         (Include): Specify <stdlib.h>.
39428         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
39429         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
39430
39431 2008-10-18  Bruno Haible  <bruno@clisp.org>
39432
39433         * lib/dirchownmod.c: Don't include lchmod.h.
39434
39435         Move the lchmod() declaration to <sys/stat.h>.
39436         * lib/lchmod.h: Remove file.
39437         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
39438         (lchmod): New declaration, moved here from lib/lchown.h.
39439         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
39440         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
39441         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
39442         and HAVE_LCHMOD.
39443         * modules/lchmod (Files): Remove lib/lchmod.h.
39444         (Depends-on): Add sys_stat, extensions.
39445         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
39446         (Include): Specify <sys/stat.h> instead of lchmod.h.
39447         * modules/sys_stat (Depends-on): Add link-warning.
39448         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
39449         definition of GL_LINK_WARNING.
39450         * NEWS: Mention the change.
39451
39452 2008-10-18  Bruno Haible  <bruno@clisp.org>
39453
39454         * lib/fchdir.c: Don't include dirfd.h.
39455         * lib/fts.c: Likewise.
39456         * lib/getcwd.c: Likewise.
39457         * lib/glob.c: Likewise.
39458
39459         Move the dirfd() declaration to <dirent.h>.
39460         * lib/dirfd.h: Remove file.
39461         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
39462         (dirfd): New declaration.
39463         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
39464         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
39465         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
39466         HAVE_DECL_DIRFD.
39467         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
39468         HAVE_DECL_DIRFD.
39469         * modules/dirfd (Files): Remove lib/dirfd.h.
39470         (Depends-on): Add dirent, extensions.
39471         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
39472         (Include): Specify <dirent.h> instead of dirfd.h.
39473         * modules/dirent (Depends-on): Add link-warning.
39474         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
39475         definition of GL_LINK_WARNING.
39476         * NEWS: Mention the change.
39477
39478 2008-10-18  Bruno Haible  <bruno@clisp.org>
39479
39480         Move the euidaccess() declaration to <unistd.h>.
39481         * lib/euidaccess.h: Remove file.
39482         * lib/unistd.in.h (euidaccess): New declaration.
39483         * lib/euidaccess.c: Don't include euidaccess.h.
39484         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
39485         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
39486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
39487         and HAVE_EUIDACCESS.
39488         * modules/euidaccess (Files): Remove lib/euidaccess.h.
39489         (Depends-on): Add unistd.
39490         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39491         (Include): Specify <unistd.h> instead of euidaccess.h.
39492         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
39493         HAVE_EUIDACCESS.
39494         * NEWS: Mention the change.
39495
39496 2008-10-18  Bruno Haible  <bruno@clisp.org>
39497
39498         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
39499
39500         Move the getdomainname() declaration to <unistd.h>.
39501         * lib/getdomainname.h: Remove file.
39502         * lib/unistd.in.h (getdomainname): New declaration.
39503         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
39504         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
39505         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
39506         HAVE_GETDOMAINNAME.
39507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39508         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
39509         * modules/getdomainname (Files): Remove lib/getdomainname.h.
39510         (Depends-on): Add unistd, extensions.
39511         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39512         (Includes): Specify <unistd.h> instead of getdomainname.h.
39513         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
39514         HAVE_GETDOMAINNAME.
39515         * NEWS: Mention the change.
39516
39517 2008-10-18  Bruno Haible  <bruno@clisp.org>
39518
39519         * modules/dirent: New file.
39520         * m4/dirent_h.m4: New file.
39521         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
39522         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
39523         * modules/fchdir (Files): Remove lib/dirent.in.h.
39524         (Depends-on): Add dirent.
39525         (Makefile.am): Move rules to modules/dirent.
39526         * doc/posix-headers/dirent.texi: Mention the new module.
39527
39528 2008-10-18  Bruno Haible  <bruno@clisp.org>
39529
39530         Avoid -Wunused-parameter warnings in public gnulib header files.
39531         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
39532         macro.
39533         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
39534
39535 2008-10-18  Bruno Haible  <bruno@clisp.org>
39536
39537         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
39538         * doc/glibc-functions/error.texi: Mention the module 'error'.
39539         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
39540         * doc/glibc-functions/getdomainname.texi: Mention the module
39541         'getdomainname'.
39542         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
39543         * doc/glibc-functions/getpagesize.texi: Mention the module
39544         'getpagesize'.
39545         * doc/glibc-functions/getusershell.texi: Mention the module
39546         'getusershell'.
39547         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
39548         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
39549         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
39550         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
39551         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
39552         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
39553         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
39554         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
39555         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
39556         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
39557         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
39558         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
39559         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
39560         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
39561
39562 2008-10-17  Bruno Haible  <bruno@clisp.org>
39563
39564         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
39565         HP-UX and IRIX, use -0.0L.
39566         * tests/test-ceill.c (minus_zero): Likewise.
39567         * tests/test-floorl.c (minus_zero): Likewise.
39568         * tests/test-frexpl.c (minus_zero): Likewise.
39569         * tests/test-isnan.c (minus_zerol): Likewise.
39570         * tests/test-isnanl.h (minus_zero): Likewise.
39571         * tests/test-ldexpl.c (minus_zero): Likewise.
39572         * tests/test-roundl.c (minus_zero): Likewise.
39573         * tests/test-signbit.c (minus_zerol): Likewise.
39574         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39575         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39576         * tests/test-truncl.c (minus_zero): Likewise.
39577         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39578         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39579         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
39580         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39581
39582 2008-10-17  Bruno Haible  <bruno@clisp.org>
39583
39584         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
39585         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
39586         that it gets activated only for gcc >= 3.0.
39587         * lib/dirent.in.h: Likewise.
39588         * lib/errno.in.h: Likewise.
39589         * lib/fcntl.in.h: Likewise.
39590         * lib/float.in.h: Likewise.
39591         * lib/iconv.in.h: Likewise.
39592         * lib/inttypes.in.h: Likewise.
39593         * lib/locale.in.h: Likewise.
39594         * lib/math.in.h: Likewise.
39595         * lib/netdb.in.h: Likewise.
39596         * lib/netinet_in.in.h: Likewise.
39597         * lib/search.in.h: Likewise.
39598         * lib/signal.in.h: Likewise.
39599         * lib/spawn.in.h: Likewise.
39600         * lib/stdarg.in.h: Likewise.
39601         * lib/stdint.in.h: Likewise.
39602         * lib/stdio.in.h: Likewise.
39603         * lib/stdlib.in.h: Likewise.
39604         * lib/string.in.h: Likewise.
39605         * lib/strings.in.h: Likewise.
39606         * lib/sys_file.in.h: Likewise.
39607         * lib/sys_ioctl.in.h: Likewise.
39608         * lib/sys_select.in.h: Likewise.
39609         * lib/sys_socket.in.h: Likewise.
39610         * lib/sys_stat.in.h: Likewise.
39611         * lib/sys_time.in.h: Likewise.
39612         * lib/sysexits.in.h: Likewise.
39613         * lib/time.in.h: Likewise.
39614         * lib/unistd.in.h: Likewise.
39615         * lib/wchar.in.h: Likewise.
39616         * lib/wctype.in.h: Likewise.
39617         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39618
39619 2008-10-17  Jim Meyering  <meyering@redhat.com>
39620
39621         ignore-value: don't depend on inline module
39622         * modules/ignore-value (Depends-on): Remove 'inline'.
39623         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
39624         Suggestion from Bruno Haible.
39625
39626 2008-10-17  Bruno Haible  <bruno@clisp.org>
39627
39628         New implementation of condition variables for Win32.
39629         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
39630         (gl_linked_waitqueue_t): New type.
39631         (gl_cond_t): Use it.
39632         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
39633         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
39634         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
39635         (glthread_cond_init_func, glthread_cond_wait_func,
39636         glthread_cond_timedwait_func, glthread_cond_signal_func,
39637         glthread_cond_broadcast_func, glthread_cond_destroy_func):
39638         Reimplemented on the basis of gl_linked_waitqueue_t.
39639         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
39640         gl_waitqueue_t.
39641         (gl_rwlock_t): Update.
39642         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
39643
39644 2008-10-17  Simon Josefsson  <simon@josefsson.org>
39645
39646         * modules/recvfrom (Depends-on): Add dependency on getpeername.
39647         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39648
39649 2008-10-17  Jim Meyering  <meyering@redhat.com>
39650
39651         ignore-value: new module
39652         * modules/ignore-value: New file.
39653         * lib/ignore-value.h: New file.
39654         * MODULES.html.sh (Compiler warning management): New section,
39655         just for this module.  More to come.
39656
39657 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39658
39659         open-safer.c: avoid 'signed and unsigned in conditional...' warning
39660         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
39661         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
39662
39663 2008-10-16  Jim Meyering  <meyering@redhat.com>
39664
39665         openat-die.c: avoid 'no previous prototype' warning
39666         * lib/openat-die.c: Include "openat.h".
39667         Reported by Reuben Thomas <rrt@sc3d.org>.
39668
39669 2008-10-16  Simon Josefsson  <simon@josefsson.org>
39670
39671         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
39672         * lib/netdb.in.h: Fix typo.
39673         Reported by Bruno Haible  <bruno@clisp.org>
39674
39675         * lib/netdb.in.h: Include sys/socket.h for platforms without
39676         netdb.h, to get structures like hostent on MinGW.
39677         * modules/netdb (Depends-on): Add sys_socket.
39678
39679 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39680
39681         * modules/netdb, modules/netdb-tests: New file.
39682         * m4/netdb_h.m4: New file.
39683         * lib/netdb.in.h: Add, currently just an empty file pending
39684         definitions.
39685         * tests/test-netdb.c: New file.
39686         * doc/posix-headers/netdb.texi: Mention that we replace it if
39687         needed.
39688         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39689         netdb.
39690
39691 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39692
39693         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
39694         with code.
39695
39696 2008-10-13  Bruno Haible  <bruno@clisp.org>
39697
39698         * lib/glthread/cond.c (glthread_cond_wait_func,
39699         glthread_cond_timedwait_func): Add a comment.
39700
39701 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39702
39703         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
39704         * tests/test-select.c: Likewise,
39705
39706 2008-10-13  Bruno Haible  <bruno@clisp.org>
39707
39708         * lib/glthread/cond.c (glthread_cond_wait_func,
39709         glthread_cond_timedwait_func): Fix variable name.
39710         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39711
39712 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
39713
39714         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
39715         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
39716         struct sockaddr.sa_len.
39717         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
39718
39719 2008-10-13  Simon Josefsson  <simon@josefsson.org>
39720
39721         * build-aux/pmccabe2html: Add css and css_url parameters.
39722
39723 2008-10-12  Bruno Haible  <bruno@clisp.org>
39724
39725         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
39726         calling aclx_get.
39727         Reported by Rainer Tammer <tammer@tammer.net>.
39728
39729 2008-10-12  Bruno Haible  <bruno@clisp.org>
39730
39731         Use msvcrt aware primitives for creation/termination of Win32 threads.
39732         * lib/glthread/thread.c: Include <process.h>.
39733         (glthread_create_func): Use _beginthreadex instead of CreateThread.
39734         (wrapper_func): Update signature.
39735         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
39736
39737 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39738             Bruno Haible  <bruno@clisp.org>
39739
39740         Provide a Win32 implementation of the 'cond' module.
39741         * lib/glthread/cond.h [USE_WIN32]: New implementation.
39742         * lib/glthread/cond.c (glthread_cond_init_func,
39743         glthread_cond_wait_func, glthread_cond_timedwait_func,
39744         glthread_cond_signal_func, glthread_cond_broadcast_func,
39745         glthread_cond_destroy_func) [USE_WIN32]: New functions.
39746         * modules/cond (Dependencies): Add gettimeofday.
39747
39748 2008-10-11  Bruno Haible  <bruno@clisp.org>
39749
39750         Make sleep work on older versions of mingw.
39751         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
39752         only whether it exists.
39753         * doc/posix-functions/sleep.texi: Mention the problem with older
39754         versions of mingw.
39755
39756 2008-10-11  Bruno Haible  <bruno@clisp.org>
39757
39758         New module 'shutdown'.
39759         * modules/shutdown: New file.
39760         * lib/sys_socket.in.h (shutdown): New declaration.
39761         * lib/winsock.c (shutdown): New function.
39762         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39763         GNULIB_SHUTDOWN.
39764         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
39765         * doc/posix-functions/shutdown.texi: Document the new module.
39766
39767 2008-10-11  Jim Meyering  <meyering@redhat.com>
39768
39769         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
39770
39771 2008-10-11  Bruno Haible  <bruno@clisp.org>
39772
39773         New module 'fclose'.
39774         * modules/fclose: New file.
39775         * lib/stdio.in.h (fclose): New declaration.
39776         * lib/fclose.c: New file.
39777         * m4/fclose.m4: New file.
39778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
39779         REPLACE_FCLOSE.
39780         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
39781         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
39782         REPLACE_FCLOSE.
39783         * modules/close (Depends-on): fclose.
39784         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
39785
39786 2008-10-11  Bruno Haible  <bruno@clisp.org>
39787
39788         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
39789         set errno and don't call _close.
39790
39791 2008-10-10  Bruno Haible  <bruno@clisp.org>
39792
39793         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
39794         ACL, not afterwards. Fixes test failure on Cygwin.
39795
39796 2008-10-09  Ben Pfaff  <blp@gnu.org>
39797
39798         * build-aux/announce-gen: Fix gnulib version related part of usage
39799         message.  Die with a useful error message if no tarballs are
39800         found.
39801
39802 2008-10-10  Jim Meyering  <meyering@redhat.com>
39803
39804         bootstrap: use git's --depth=N option only if it's supported
39805         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
39806         recognize the --depth option.  Reported by Pádraig Brady.
39807
39808 2008-10-09  Bruno Haible  <bruno@clisp.org>
39809
39810         New module 'ioctl'.
39811         * modules/ioctl: New file.
39812         * lib/sys_socket.in.h (ioctl): Remove declaration.
39813         * lib/winsock.c: Include <sys/ioctl.h>.
39814         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
39815         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39816         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
39817         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
39818         * doc/posix-functions/ioctl.texi: Mention the new module.
39819
39820 2008-10-09  Bruno Haible  <bruno@clisp.org>
39821
39822         New module 'sys_ioctl'.
39823         * lib/sys_ioctl.in.h: New file.
39824         * m4/sys_ioctl_h.m4: New file.
39825         * modules/sys_ioctl: New file.
39826         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
39827
39828 2008-10-09  Bruno Haible  <bruno@clisp.org>
39829
39830         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
39831         * lib/winsock.c: Include <stdarg.h>.
39832         (rpl_ioctl): Change to second argument 'int' and then varargs.
39833
39834 2008-10-09  Bruno Haible  <bruno@clisp.org>
39835
39836         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
39837         when the sys_socket module is present and the system has <winsock2.h>.
39838
39839 2008-10-09  Bruno Haible  <bruno@clisp.org>
39840
39841         * doc/posix-functions/close.texi: Mention module 'close' instead of
39842         module 'sys_socket'.
39843
39844 2008-10-09  Bruno Haible  <bruno@clisp.org>
39845
39846         * doc/glibc-headers/sys_ioctl.texi: New file.
39847         * doc/gnulib.texi: Include it.
39848
39849 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39850             Bruno Haible  <bruno@clisp.org>
39851
39852         Combine the two replacements of 'close'.
39853         * lib/sys_socket.in.h (close): Define to a reminder to include
39854         <unistd.h>.
39855         (_gl_close_fd_maybe_socket): New declaration.
39856         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
39857         * lib/winsock.c (close): Remove undefinition.
39858         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
39859         needed for the gnulib module 'close'.
39860         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
39861         define to an error symbol or to a warning, if suitable.
39862         * lib/close.c: Include <sys/socket.h>.
39863         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
39864         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
39865         UNISTD_H_HAVE_WINSOCK2_H.
39866         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
39867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39868         UNISTD_H_HAVE_WINSOCK2_H.
39869         * modules/sys_socket (Files): Add m4/unistd_h.m4.
39870         (configure.ac): Set a module indicator.
39871         (Makefile.am): Substitute GNULIB_CLOSE.
39872         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
39873         * modules/poll-tests (Depends-on): Add close.
39874         * modules/select-tests (Depends-on): Likewise.
39875
39876 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39877             Bruno Haible  <bruno@clisp.org>
39878
39879         New module 'close'.
39880         * modules/close: New file.
39881         * lib/unistd.in.h (close): Move declaration out of the
39882         FCHDIR_REPLACEMENT scope.
39883         (_gl_unregister_fd): New declaration.
39884         * lib/close.c: New file.
39885         * lib/fchdir.c (rpl_close): Remove function.
39886         * m4/close.m4: New file.
39887         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
39888         close.
39889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
39890         REPLACE_CLOSE.
39891         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
39892         REPLACE_CLOSE.
39893         * modules/fchdir (Depends-on): Add close.
39894
39895 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39896             Bruno Haible  <bruno@clisp.org>
39897
39898         * lib/fcntl.in.h (open): Simplify conditionals.
39899         (_gl_register_fd): New declaration.
39900         * lib/fchdir.c (rpl_open): Remove function.
39901         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
39902         also.
39903         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
39904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
39905         open.
39906
39907 2008-10-09  Jim Meyering  <meyering@redhat.com>
39908
39909         GNUmakefile: use the more name-space-friendly "_version"
39910         * top/GNUmakefile (_dummy): Update.
39911         (_version): Rename from "version".
39912
39913 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39914             Bruno Haible  <bruno@clisp.org>
39915
39916         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
39917         rpl_close.
39918         (_gl_register_fd): New function, extracted from rpl_open.
39919         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
39920         (rpl_open, rpl_opendir): Use _gl_register_fd.
39921
39922 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39923
39924         Fix organization of 'open' replacement.
39925         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
39926         (gl_FUNC_OPEN): Use it.
39927         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
39928
39929 2008-10-08  Bruno Haible  <bruno@clisp.org>
39930
39931         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
39932
39933 2008-10-08  Simon Josefsson  <simon@josefsson.org>
39934
39935         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
39936         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
39937         listen).
39938
39939 2008-10-08  Eric Blake  <ebb9@byu.net>
39940
39941         GNUmakefile: add 'make version' target
39942         * top/GNUmakefile (_curr-ver): Split version update rules...
39943         (version): ...into a target.
39944
39945 2008-10-07  Bruno Haible  <bruno@clisp.org>
39946
39947         Use a more portable replacement expression for -0.0L.
39948         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
39949         instead of -0.0L. Fix m4 quotation.
39950
39951         * tests/test-signbit.c: Include <float.h>.
39952         (minus_zero): New variable.
39953         (test_signbitl): Use minus_zero instead of -zero.
39954         * modules/signbit-tests (Depends-on): Add float.
39955
39956         * tests/test-ceill.c: Include <float.h>.
39957         (zero): Remove variable.
39958         (minus_zero): New variable.
39959         (main): Use minus_zero instead of -zero.
39960         * modules/ceill-tests (Depends-on): Add float.
39961
39962         * tests/test-floorl.c: Include <float.h>.
39963         (zero): Remove variable.
39964         (minus_zero): New variable.
39965         (main): Use minus_zero instead of -zero.
39966         * modules/floorl-tests (Depends-on): Add float.
39967
39968         * tests/test-roundl.c: Include <float.h>.
39969         (zero): Remove variable.
39970         (minus_zero): New variable.
39971         (main): Use minus_zero instead of -zero.
39972         * modules/roundl-tests (Depends-on): Add float.
39973
39974         * tests/test-truncl.c: Include <float.h>.
39975         (zero): Remove variable.
39976         (minus_zero): New variable.
39977         (main): Use minus_zero instead of -zero.
39978         * modules/truncl-tests (Depends-on): Add float.
39979
39980         * tests/test-frexpl.c (zero): Remove variable.
39981         (minus_zero): New variable.
39982         (main): Use minus_zero instead of -zero.
39983         * modules/frexpl-tests (Depends-on): Add float.
39984
39985         * tests/test-isnan.c (zerol): Remove variable.
39986         (minus_zerol): New variable.
39987         (test_long_double): Use minus_zerol instead of -zerol.
39988         * modules/isnan-tests (Depends-on): Add float.
39989
39990         * tests/test-isnanl.h (zero): Remove variable.
39991         (minus_zero): New variable.
39992         (main): Use minus_zero instead of -zero.
39993         * modules/isnanl-nolibm-tests (Depends-on): Add float.
39994         * modules/isnanl-tests (Depends-on): Add float.
39995
39996         * tests/test-ldexpl.c (zero): Remove variable.
39997         (minus_zero): New variable.
39998         (main): Use minus_zero instead of -zero.
39999         * modules/ldexpl-tests (Depends-on): Add float.
40000
40001         * tests/test-snprintf-posix.h (zerol): Remove variable.
40002         (minus_zerol): New variable.
40003         (test_function): Use minus_zerol instead of -zerol.
40004         * modules/snprintf-posix-tests (Depends-on): Add float.
40005         * modules/vsnprintf-posix-tests (Depends-on): Add float.
40006
40007         * tests/test-sprintf-posix.h (zerol): Remove variable.
40008         (minus_zerol): New variable.
40009         (test_function): Use minus_zerol instead of -zerol.
40010         * modules/sprintf-posix-tests (Depends-on): Add float.
40011         * modules/vsprintf-posix-tests (Depends-on): Add float.
40012
40013         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
40014         (minus_zerol): New variable.
40015         (test_function): Use minus_zerol instead of -zerol.
40016         * modules/vasnprintf-posix-tests (Depends-on): Add float.
40017
40018         * tests/test-vasprintf-posix.c (zerol): Remove variable.
40019         (minus_zerol): New variable.
40020         (test_function): Use minus_zerol instead of -zerol.
40021         * modules/vasprintf-posix-tests (Depends-on): Add float.
40022
40023 2008-10-07  Simon Josefsson  <simon@josefsson.org>
40024
40025         * MODULES.html.sh (Support for building documentation): Mention
40026         pmccabe2html.  Sort entries.
40027
40028         Add pmccabe2html module, from gnupdf.
40029         * build-aux/pmccabe.css: New file.
40030         * build-aux/pmccabe2html: New file.
40031         * m4/pmccabe2html.m4: New file.
40032         * modules/pmccabe2html: New file.
40033
40034 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
40035
40036         flock: new module
40037         * MODULES.html.sh: Add to list of modules.
40038         * lib/flock.c: flock implementation for Windows and Unix systems
40039         which have fcntl.
40040         * doc/glibc-functions/flock.texi: Update documentation.
40041         * lib/sys_file.in.h: <sys/file.h> header file.
40042         * m4/flock.m4: M4 macros.
40043         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
40044         * modules/flock: flock module.
40045         * modules/flock-tests: flock tests module.
40046         * modules/sys_file: sys/file.h module.
40047         * tests/test-flock.c: test suite for flock.
40048
40049 2008-10-06  Jim Meyering  <meyering@redhat.com>
40050
40051         bootstrap: check for LT_INIT more portably still ;-)
40052         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
40053         Spotted by Bruno Haible.
40054
40055 2008-10-06  Eric Blake  <ebb9@byu.net>
40056
40057         test-signbit: avoid tripping Irix cc bug on -0.0L
40058         * tests/test-signbit.c (minus_zerol): Delete, and replace with
40059         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
40060         entire testsuite consistent and avoids an Irix 6.2 bug.
40061
40062 2008-10-05  Bruno Haible  <bruno@clisp.org>
40063             Jim Meyering  <jim@meyering.net>
40064
40065         Add an option for ignoring EPIPE during close_stdout.
40066         * lib/closeout.h: Include <stdbool.h>.
40067         (close_stdout_set_ignore_EPIPE): New declaration.
40068         * lib/closeout.c: Include <stdbool.h>.
40069         (ignore_EPIPE): New variable.
40070         (close_stdout_set_ignore_EPIPE): New function.
40071         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
40072         * lib/close-stream.c (close_stream): Mention the possible EPIPE
40073         failure.
40074         * modules/closeout (Depends-on): Add stdbool.
40075
40076 2008-10-05  Bruno Haible  <bruno@clisp.org>
40077
40078         * modules/accept: New file.
40079         * modules/bind: New file.
40080         * modules/connect: New file.
40081         * modules/getpeername: New file.
40082         * modules/getsockname: New file.
40083         * modules/getsockopt: New file.
40084         * modules/listen: New file.
40085         * modules/recv: New file.
40086         * modules/recvfrom: New file.
40087         * modules/send: New file.
40088         * modules/sendto: New file.
40089         * modules/setsockopt: New file.
40090         * modules/socket: New file.
40091         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
40092         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
40093         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
40094         the particular module is requested. Add a link warning when the
40095         particular module is not requested.
40096         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
40097         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
40098         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
40099         the particular module is requested.
40100         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
40101         gl_SYS_SOCKET_H_DEFAULTS): New macros.
40102         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
40103         * modules/sys_socket (Depends-on): Add link-warning.
40104         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
40105         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
40106         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
40107         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
40108         GL_LINK_WARNING.
40109         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
40110         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
40111         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
40112         * doc/posix-functions/getpeername.texi: Mention the new module
40113         'getpeername'.
40114         * doc/posix-functions/getsockname.texi: Mention the new module
40115         'getsockname'.
40116         * doc/posix-functions/getsockopt.texi: Mention the new module
40117         'getsockopt'.
40118         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
40119         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
40120         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
40121         * doc/posix-functions/send.texi: Mention the new module 'send'.
40122         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
40123         * doc/posix-functions/setsockopt.texi: Mention the new module
40124         'setsockopt'.
40125         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
40126         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
40127         listen, connect, accept.
40128         * modules/select-tests (Depends-on): Likewise.
40129
40130 2008-10-05  Bruno Haible  <bruno@clisp.org>
40131
40132         * lib/winsock.c (strerror): Remove unused #undef.
40133         (rpl_close): Remove unused local variable.
40134
40135         * modules/sys_socket (Depends-on); Add errno.
40136
40137 2008-10-05  Bruno Haible  <bruno@clisp.org>
40138
40139         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
40140         (select): Add a link warning when the 'select' module is not used.
40141         * modules/sys_select (Depends-on): Add link-warning.
40142         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
40143         Suggested by Paolo Bonzini.
40144
40145 2008-10-05  Jim Meyering  <meyering@redhat.com>
40146
40147         bootstrap: check for LT_INIT more portably
40148         * build-aux/bootstrap: Avoid using grep -E, since it's not
40149         portable enough.  Suggestion from Bruno Haible.
40150
40151 2008-10-05  Bruno Haible  <bruno@clisp.org>
40152
40153         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
40154         as being fixed by gnulib.
40155
40156 2008-10-05  Bruno Haible  <bruno@clisp.org>
40157
40158         * modules/select-tests: New file, mostly copied from
40159         modules/sys_select-tests.
40160         * tests/test-select.c: New file, mostly copied from
40161         tests/test-sys_select.c.
40162         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
40163         * modules/sys_select-tests (Depends-on): Remove all dependencies.
40164         (Makefile.am): Remove test_sys_select_LDADD.
40165
40166         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
40167         to an undefined symbol, for an error message.
40168         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
40169         (gl_SYS_SELECT_H_DEFAULTS): New macro.
40170         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
40171         winsock-select.c here.
40172         * modules/sys_select (Files): Remove lib/winsock-select.c.
40173         (Depends-on): Remove alloca.
40174         (Makefile.am): Substitute GNULIB_SELECT.
40175         * modules/select: New file.
40176         * doc/posix-functions/select.texi: Update.
40177
40178 2008-10-05  Bruno Haible  <bruno@clisp.org>
40179
40180         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
40181         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
40182         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
40183         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
40184         getdtablesize.
40185         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40186         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40187
40188 2008-10-05  Bruno Haible  <bruno@clisp.org>
40189
40190         * modules/getdtablesize-tests: New file.
40191         * tests/test-getdtablesize.c: New file.
40192
40193         New module 'getdtablesize'.
40194         * lib/unistd.in.h (getdtablesize): New declaration.
40195         * lib/getdtablesize.c: New file.
40196         * m4/getdtablesize.m4: New file.
40197         * modules/getdtablesize: New file.
40198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40199         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
40200         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
40201         HAVE_GETDTABLESIZE.
40202         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
40203
40204 2008-10-05  Bruno Haible  <bruno@clisp.org>
40205
40206         * modules/sched (Makefile.am): Fix typo.
40207         Reported by Simon Josefsson.
40208
40209 2008-10-05  Jim Meyering  <meyering@redhat.com>
40210
40211         bootstrap: check for LT_INIT, too
40212         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
40213         are deprecated.  Suggestion from Ralf Wildenhues.
40214
40215 2008-10-05  Bruno Haible  <bruno@clisp.org>
40216
40217         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
40218         overriding them by ours.
40219         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
40220
40221 2008-10-05  Jim Meyering  <meyering@redhat.com>
40222
40223         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
40224         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
40225         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
40226
40227 2008-10-04  Bruno Haible  <bruno@clisp.org>
40228
40229         * modules/dup2 (License): Change to LGPLv2+.
40230         * modules/sleep (License): Likewise.
40231         * modules/perror (License): Likewise.
40232         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
40233         Blake.
40234         * modules/signal (License): Likewise.
40235         * modules/sigprocmask (License): Likewise.
40236         * modules/raise (License): Change to LGPLv2+, with approval by Jim
40237         Meyering.
40238
40239 2008-10-04  Bruno Haible  <bruno@clisp.org>
40240
40241         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
40242         Reported by Rainer Tammer <tammer@tammer.net>.
40243
40244 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
40245             Bruno Haible  <bruno@clisp.org>
40246
40247         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
40248         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
40249         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
40250
40251 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
40252
40253         filevercmp: new module
40254         * lib/filevercmp.h: New function filevercmp comparing version strings.
40255         * lib/filevercmp.c: Implementation of filevercmp function.
40256         * modules/filevercmp: Module metadata.
40257         * tests/test-filevercmp.c: Unit test for new module.
40258         * modules/filevercmp-tests: Unit test metadata.
40259         * MODULES.html.sh: Add filevercmp module.
40260
40261 2008-10-03  Bruno Haible  <bruno@clisp.org>
40262
40263         * lib/c-ctype.h: Add comment.
40264         Reported by Jim Meyering.
40265
40266 2008-10-02  Bruno Haible  <bruno@clisp.org>
40267
40268         * modules/posix_spawn-internal (Depends-on): Add 'open'.
40269
40270 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40271
40272         * build-aux/bootstrap: Allow renaming bootstrap, and change the
40273         name of bootstrap.conf accordingly.
40274
40275 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40276
40277         * build-aux/bootstrap: Install git-merge-changelog configuration
40278         items into .gitconfig if needed.
40279
40280 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
40281
40282         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
40283         git repository, and initialize/update it accordingly.
40284
40285 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
40286
40287         * modules/fsync-tests: New file.
40288         * tests/test-fsync.c: New file.
40289
40290         New module 'fsync'.
40291         * lib/fsync.c: New file.
40292         * m4/fsync.m4: New file.
40293         * modules/fsync: New file.
40294         * lib/unistd.in.h (fsync): New declaration.
40295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
40296         GNULIB_FSYNC and HAVE_FSYNC.
40297         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
40298         * MODULES.html.sh (posix_functions): Add fsync.
40299         * doc/posix-functions/fsync.texi: Mention the new module.
40300
40301 2008-10-02  Jim Meyering  <meyering@redhat.com>
40302
40303         fts.c: sync with similar code from coreutils' remove.c
40304         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
40305         Guard also with "#if defined __linux__", since for now at least,
40306         this code is Linux-kernel-specific.
40307
40308 2008-10-02  Jim Meyering  <meyering@redhat.com>
40309
40310         fts: bug fixes
40311         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
40312         Include <sys/vfs.h>, not <sys/statfs.h>.
40313
40314         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
40315         Include <sys/vfs.h>, not <sys/statfs.h>.
40316
40317 2008-10-01  Bruno Haible  <bruno@clisp.org>
40318
40319         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
40320         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
40321         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
40322         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
40323         * doc/posix-functions/posix_spawnp.texi: Likewise.
40324         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
40325         whether posix_spawn actually works.
40326         * m4/pipe.m4 (gl_PIPE): Likewise.
40327         * modules/execute (Files): Add m4/posix_spawn.m4.
40328         * modules/pipe (Files): Add m4/posix_spawn.m4.
40329         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
40330
40331 2008-10-01  Jim Meyering  <meyering@redhat.com>
40332
40333         remove trailing spaces
40334         * NEWS: Likewise.
40335         * lib/poll.c (poll): Likewise.
40336         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
40337         * lib/winsock.c (rpl_close): Likewise.
40338         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
40339         * modules/yield: Likewise.
40340         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
40341         * tests/test-sys_select.c (connect_to_socket): Likewise.
40342
40343         fts.c: adjust a new interface to be more generally useful
40344         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
40345         (fts_build): Adjust caller.
40346
40347 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40348
40349         * modules/cond-tests: New file.
40350         * tests/test-cond.c: New file.
40351
40352 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40353             Bruno Haible  <bruno@clisp.org>
40354
40355         * modules/cond (Dependencies): Add errno, time.
40356         * lib/glthread/cond.h: Include <time.h>.
40357         (gl_cond_define, gl_cond_define_initialized): Use the same definition
40358         across platforms.
40359
40360 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40361             Bruno Haible  <bruno@clisp.org>
40362
40363         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
40364
40365 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40366             Bruno Haible  <bruno@clisp.org>
40367
40368         * modules/tls-tests (Depends-on): Add thread, yield.
40369         (configure.ac): Remove all checks.
40370         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
40371         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40372         gl_thread_self): Remove definitions. Include glthread/thread.h and
40373         glthread/yield.h instead.
40374         (test_tls): Pass an additional NULL argument to gl_thread_join.
40375
40376 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40377             Bruno Haible  <bruno@clisp.org>
40378
40379         * modules/lock-tests (Depends-on): Add thread, yield.
40380         (configure.ac): Remove all checks.
40381         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
40382         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
40383         gl_thread_self): Remove definitions. Include glthread/thread.h and
40384         glthread/yield.h instead.
40385         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
40386         additional NULL argument to gl_thread_join.
40387
40388 2008-09-30  Bruno Haible  <bruno@clisp.org>
40389
40390         Fix the Win32 implementation of the 'thread' module.
40391         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
40392         pointer type.
40393         (gl_thread_self): Invoke gl_thread_self_func.
40394         (gl_thread_self_func): New declaration.
40395         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
40396         (do_init_self_key, init_self_key): New functions.
40397         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
40398         Remove some fields.
40399         (running_threads, running_lock): Remove variables.
40400         (get_current_thread_handle): New function.
40401         (gl_thread_self_func, wrapper_func, glthread_create_func,
40402         glthread_join_func, gl_thread_exit_func): Largely rewritten and
40403         simplified.
40404
40405 2008-09-30  Bruno Haible  <bruno@clisp.org>
40406
40407         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
40408         files.
40409
40410 2008-09-30  Jim Meyering  <meyering@redhat.com>
40411
40412         fts.m4: correct the test for statfs.f_type
40413         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
40414         when checking for statfs.f_type.
40415
40416 2008-09-15  Simon Josefsson  <simon@josefsson.org>
40417
40418         tests: avoid some compiler warnings
40419         * tests/test-memchr.c (main): Pass NULL indirectly.
40420         * tests/test-getdate.c (main): Remove unused variable 'ret'.
40421
40422 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
40423
40424         getdate.y: disallow countable dayshifts like "4 yesterday ago"
40425         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
40426         exactly specified dayshifts.
40427         (dayshift): New rule.
40428         (rel): Add dayshift.
40429         (relative_time_table) [tomorrow, yesterday, today, now]:
40430         Use tDAY_SHIFT in place of tDAY_UNIT.
40431         * tests/test-getdate.c: Add tests for now-disallowed countable
40432         dayshifts, e.g., "4 yesterday ago".
40433
40434 2008-09-29  Bruno Haible  <bruno@clisp.org>
40435
40436         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
40437         * tests/test-posix_spawn1.in.sh: Renamed from
40438         tests/test-posix_spawn.in.sh.
40439         * tests/test-posix_spawn2.c: New file.
40440         * tests/test-posix_spawn2.in.sh: New file.
40441         * modules/posix_spawnp-tests (Files): Update.
40442         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
40443
40444 2008-09-29  Bruno Haible  <bruno@clisp.org>
40445
40446         Propagate effects of putenv/setenv/unsetenv to child processes.
40447         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
40448         * lib/pipe.c (create_pipe): Likewise.
40449
40450 2008-09-29  Bruno Haible  <bruno@clisp.org>
40451
40452         Enable use of shell scripts as executables in mingw.
40453         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
40454         run the program as a shell script.
40455         * lib/pipe.c (create_pipe): Likewise.
40456         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
40457         resulting array.
40458
40459 2008-09-29  Eric Blake  <ebb9@byu.net>
40460
40461         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
40462
40463 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
40464
40465         * doc/posix-functions/accept.texi: Update mingw problems.
40466         * doc/posix-functions/bind.texi: Update mingw problems.
40467         * doc/posix-functions/close.texi: Update mingw problems.
40468         * doc/posix-functions/connect.texi: Update mingw problems.
40469         * doc/posix-functions/getpeername.texi: Update mingw problems.
40470         * doc/posix-functions/getsockname.texi: Update mingw problems.
40471         * doc/posix-functions/getsockopt.texi: Update mingw problems.
40472         * doc/posix-functions/ioctl.texi: Update mingw problems.
40473         * doc/posix-functions/listen.texi: Update mingw problems.
40474         * doc/posix-functions/recv.texi: Update mingw problems.
40475         * doc/posix-functions/recvfrom.texi: Update mingw problems.
40476         * doc/posix-functions/select.texi: Update mingw problems.
40477         * doc/posix-functions/send.texi: Update mingw problems.
40478         * doc/posix-functions/sendto.texi: Update mingw problems.
40479         * doc/posix-functions/setsockopt.texi: Update mingw problems.
40480         * doc/posix-functions/socket.texi: Update mingw problems.
40481
40482 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
40483             Bruno Haible  <bruno@clisp.org>
40484
40485         * lib/sys_select.in.h: Include sys/time.h.
40486         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
40487         * modules/sys_select: Depend on sys_time.
40488         * tests/test-sys_select.c: Test that sys/select.h defines struct
40489         timeval fully.
40490
40491 2008-09-29  Bruno Haible  <bruno@clisp.org>
40492
40493         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
40494         * lib/sys_select.in.h: Likewise.
40495
40496 2008-09-29  Bruno Haible  <bruno@clisp.org>
40497
40498         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
40499
40500 2008-09-29  Bruno Haible  <bruno@clisp.org>
40501
40502         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
40503         Set LIBSOCKET instead of augmenting LIBS.
40504         * modules/sockets (Link): New section.
40505         * modules/sockets-tests (test_sockets_LDADD): New variable.
40506         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
40507         * modules/poll-tests (test_poll_LDADD): New variable.
40508         * NEWS: Document the change.
40509
40510 2008-09-29  Bruno Haible  <bruno@clisp.org>
40511
40512         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
40513         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
40514         ARPA_INET_H directly.
40515         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40516
40517 2008-09-28  Bruno Haible  <bruno@clisp.org>
40518
40519         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
40520         from gl_HEADER_SYS_SOCKET.
40521         (gl_HEADER_SYS_SOCKET): Invoke it.
40522         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40523
40524 2008-09-28  Bruno Haible  <bruno@clisp.org>
40525
40526         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
40527         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
40528         Needed on OSF/1 4.0.
40529
40530 2008-09-28  Bruno Haible  <bruno@clisp.org>
40531
40532         Override open more carefully.
40533         * lib/open.c (orig_open): New function.
40534         (rpl_open): Use orig_open instead of open.
40535         * lib/fcntl.in.h: Add special invocation convention.
40536         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
40537         (gl_FUNC_OPEN): Invoke it.
40538
40539         Override freopen more carefully.
40540         * lib/freopen.c (orig_freopen): New function.
40541         (rpl_freopen): Use orig_freopen instead of freopen.
40542         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
40543         (gl_FUNC_FREOPEN): Invoke it.
40544
40545         Override fopen more carefully.
40546         * lib/fopen.c (orig_fopen): New function.
40547         (rpl_fopen): Use orig_fopen instead of fopen.
40548         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
40549         (gl_FUNC_FOPEN): Invoke it.
40550         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
40551
40552 2008-09-28  Bruno Haible  <bruno@clisp.org>
40553
40554         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
40555         SIGPIPE.
40556
40557 2008-09-28  Bruno Haible  <bruno@clisp.org>
40558
40559         * tests/test-sigaction.c (handler, main): Disable the check whether
40560         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
40561         glibc systems with LinuxThreads.
40562
40563 2008-09-28  Bruno Haible  <bruno@clisp.org>
40564
40565         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
40566
40567         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
40568         with AIX xlc.
40569         * lib/fcntl.in.h (open): Likewise.
40570         Reported by Rainer Tammer <tammer@tammer.net>.
40571
40572 2008-09-28  Bruno Haible  <bruno@clisp.org>
40573
40574         * modules/posix_spawnp-tests: New file.
40575         * tests/test-posix_spawn.c: New file.
40576         * tests/test-posix_spawn.in.sh: New file.
40577
40578         New module 'posix_spawnp'.
40579         * modules/posix_spawnp: New file.
40580         * lib/spawnp.c: New file, from GNU libc with modifications.
40581         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
40582
40583         New module 'posix_spawn'.
40584         * modules/posix_spawn: New file.
40585         * lib/spawn.c: New file, from GNU libc with modifications.
40586         * doc/posix-functions/posix_spawn.texi: Mention the new module.
40587
40588         New module 'posix_spawnattr_destroy'.
40589         * modules/posix_spawnattr_destroy: New file.
40590         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
40591         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
40592         module.
40593
40594         New module 'posix_spawnattr_setsigmask'.
40595         * modules/posix_spawnattr_setsigmask: New file.
40596         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
40597         modifications.
40598         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
40599         new module.
40600
40601         New module 'posix_spawnattr_getsigmask'.
40602         * modules/posix_spawnattr_getsigmask: New file.
40603         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
40604         modifications.
40605         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
40606         new module.
40607
40608         New module 'posix_spawnattr_setsigdefault'.
40609         * modules/posix_spawnattr_setsigdefault: New file.
40610         * lib/spawnattr_setdefault.c: New file, from GNU libc with
40611         modifications.
40612         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
40613         new module.
40614
40615         New module 'posix_spawnattr_getsigdefault'.
40616         * modules/posix_spawnattr_getsigdefault: New file.
40617         * lib/spawnattr_getdefault.c: New file, from GNU libc with
40618         modifications.
40619         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
40620         new module.
40621
40622         New module 'posix_spawnattr_setschedpolicy'.
40623         * modules/posix_spawnattr_setschedpolicy: New file.
40624         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
40625         modifications.
40626         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
40627         new module.
40628
40629         New module 'posix_spawnattr_getschedpolicy'.
40630         * modules/posix_spawnattr_getschedpolicy: New file.
40631         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
40632         modifications.
40633         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
40634         new module.
40635
40636         New module 'posix_spawnattr_setschedparam'.
40637         * modules/posix_spawnattr_setschedparam: New file.
40638         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
40639         modifications.
40640         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
40641         new module.
40642
40643         New module 'posix_spawnattr_getschedparam'.
40644         * modules/posix_spawnattr_getschedparam: New file.
40645         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
40646         modifications.
40647         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
40648         new module.
40649
40650         New module 'posix_spawnattr_setpgroup'.
40651         * modules/posix_spawnattr_setpgroup: New file.
40652         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
40653         modifications.
40654         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
40655         module.
40656
40657         New module 'posix_spawnattr_getpgroup'.
40658         * modules/posix_spawnattr_getpgroup: New file.
40659         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
40660         modifications.
40661         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
40662         module.
40663
40664         New module 'posix_spawnattr_setflags'.
40665         * modules/posix_spawnattr_setflags: New file.
40666         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
40667         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
40668         module.
40669
40670         New module 'posix_spawnattr_getflags'.
40671         * modules/posix_spawnattr_getflags: New file.
40672         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
40673         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
40674         module.
40675
40676         New module 'posix_spawnattr_init'.
40677         * modules/posix_spawnattr_init: New file.
40678         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
40679         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
40680         module.
40681
40682         New module 'posix_spawn_file_actions_destroy'.
40683         * modules/posix_spawn_file_actions_destroy: New file.
40684         * lib/spawn_faction_destroy.c: New file, from GNU libc with
40685         modifications.
40686         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
40687         the new module.
40688
40689         New module 'posix_spawn_file_actions_addopen'.
40690         * modules/posix_spawn_file_actions_addopen: New file.
40691         * lib/spawn_faction_addopen.c: New file, from GNU libc with
40692         modifications.
40693         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40694         the new module.
40695
40696         New module 'posix_spawn_file_actions_adddup2'.
40697         * modules/posix_spawn_file_actions_adddup2: New file.
40698         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
40699         modifications.
40700         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40701         the new module.
40702
40703         New module 'posix_spawn_file_actions_addclose'.
40704         * modules/posix_spawn_file_actions_addclose: New file.
40705         * lib/spawn_faction_addclose.c: New file, from GNU libc with
40706         modifications.
40707         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40708         the new module.
40709
40710         New module 'posix_spawn_file_actions_init'.
40711         * modules/posix_spawn_file_actions_init: New file.
40712         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
40713         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
40714         new module.
40715
40716         New module 'posix_spawn-internal'.
40717         * modules/posix_spawn-internal: New file.
40718         * lib/spawn_int.h: New file, from GNU libc with modifications.
40719         * lib/spawni.c: New file, from GNU libc with modifications.
40720         * m4/posix_spawn.m4: New file.
40721
40722         New module 'spawn'.
40723         * modules/spawn: New file.
40724         * lib/spawn.in.h: New file, from GNU libc with modifications.
40725         * m4/spawn_h.m4: New file.
40726         * doc/posix-headers/spawn.texi: Mention the new module.
40727
40728 2008-09-28  Bruno Haible  <bruno@clisp.org>
40729
40730         * modules/sched-tests: New file.
40731         * tests/test-sched.c: New file.
40732
40733         New module 'sched'.
40734         * modules/sched: New file.
40735         * lib/sched.in.h: New file.
40736         * m4/sched_h.m4: New file.
40737         * doc/posix-headers/sched.texi: Mention the new module.
40738
40739 2008-09-27  Eric Blake  <ebb9@byu.net>
40740
40741         Fix previous patch, and tweak references to $0.
40742         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
40743         (func_version, func_gnulib_dir): Don't call this program
40744         gnulib-tool.
40745         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
40746         with using $0 in function.
40747         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
40748         (func_fatal_error): Reuse the name the user invoked us with.
40749
40750 2008-09-27  Bruno Haible  <bruno@clisp.org>
40751
40752         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
40753         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
40754         (gl_ICONV_H): Not here.
40755         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
40756         instead of assigning ICONV_H directly.
40757
40758         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
40759         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
40760         WCHAR_H directly.
40761
40762 2008-09-27  Bruno Haible  <bruno@clisp.org>
40763
40764         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
40765         * modules/arpa_inet (Depends-on): Add link-warning.
40766         (Makefile.am): Insert the definition of GL_LINK-WARNING.
40767         * modules/unistd (Makefile.am): Likewise.
40768
40769 2008-09-26  Bruno Haible  <bruno@clisp.org>
40770
40771         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
40772         variables.
40773         (func_version): Essentially copied from gnulib-tool.
40774         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
40775         func_readlink): Copied from gnulib-tool.
40776
40777 2008-09-26  Bruno Haible  <bruno@clisp.org>
40778
40779         * gnulib-tool (func_version): Change directory to $gnulib_dir before
40780         invoking git-version-gen.
40781
40782 2008-09-26  Bruno Haible  <bruno@clisp.org>
40783
40784         * posix-modules: Update to directory names changed on 2008-01-19.
40785         Remove commas in output before splitting into words. No more need to
40786         avoid 'ftruncate' since 2007-02-19.
40787
40788 2008-09-26  Bruno Haible  <bruno@clisp.org>
40789
40790         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
40791
40792 2008-09-26  Bruno Haible  <bruno@clisp.org>
40793
40794         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
40795         * modules/fwriteerror (Depends-on): Add errno.
40796
40797 2008-09-26  Bruno Haible  <bruno@clisp.org>
40798
40799         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
40800         * tests/test-vc-list-files-cvs.sh: Likewise.
40801
40802 2008-09-26  Bruno Haible  <bruno@clisp.org>
40803
40804         * doc/posix-headers/sys_resource.texi: Reorder items.
40805
40806 2008-09-26  Jim Meyering  <meyering@redhat.com>
40807
40808         fts: tweak inode comparison function
40809         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
40810         inode numbers, as documented.
40811
40812         fts: sort dirent entries on inode number before traversing
40813         This avoids a quadratic, seek-related performance penalty when
40814         operating on a directory containing many entries (measurable at 10k;
40815         3.5 hours at 2 million entries with a cold cache) on certain types
40816         of file systems, including ext3 and ext4, but not tmpfs.
40817         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
40818         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
40819         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
40820         (fs_handles_readdir_ordered_dirents_efficiently): New function.
40821         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
40822         (fts_build): Set the stat.st_ino member from D_INO.
40823         If it is likely to be useful, sort dirent entries on inode number.
40824
40825         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
40826         and the struct statfs.f_type member.
40827         * modules/fts (Depends-on): Add d-ino.
40828
40829 2008-09-26  Bruno Haible  <bruno@clisp.org>
40830
40831         * modules/sigpipe-die (Depends-on): Add sigpipe.
40832
40833         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
40834         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
40835         and GNULIB_STDIO_H_SIGPIPE are set.
40836         * lib/stdio-write.c: New file.
40837         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
40838         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40839         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40840         REPLACE_STDIO_WRITE_FUNCS.
40841         (gl_STDIO_H_DEFAULTS): Initialize 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         * modules/stdio (Files): Add lib/stdio-write.c.
40846         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
40847         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40848         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40849         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
40850         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
40851         REPLACE_FPRINTF_POSIX.
40852         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
40853         REPLACE_PRINTF_POSIX.
40854         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
40855         REPLACE_VFPRINTF_POSIX.
40856         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
40857         REPLACE_VPRINTF_POSIX.
40858         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
40859         SIGPIPE issue.
40860         * doc/posix-functions/fputc.texi: Likewise.
40861         * doc/posix-functions/fputs.texi: Likewise.
40862         * doc/posix-functions/fwrite.texi: Likewise.
40863         * doc/posix-functions/printf.texi: Likewise.
40864         * doc/posix-functions/putc.texi: Likewise.
40865         * doc/posix-functions/putchar.texi: Likewise.
40866         * doc/posix-functions/puts.texi: Likewise.
40867         * doc/posix-functions/vfprintf.texi: Likewise.
40868         * doc/posix-functions/vprintf.texi: Likewise.
40869
40870         * modules/safe-write (Depends-on): Add write.
40871
40872         * modules/sigpipe-tests: New file.
40873         * tests/test-sigpipe.c: New file.
40874         * tests/test-sigpipe.sh: New file.
40875
40876         * modules/write: New file.
40877         * lib/unistd.in.h: Include <sys/types.h>.
40878         (write): New declaration.
40879         * lib/write.c: New file.
40880         * m4/write.m4: New file.
40881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40882         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
40883         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
40884         GNULIB_WRITE, REPLACE_WRITE.
40885         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
40886         and the SIGPIPE issue.
40887
40888         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
40889         (raise): New declaration.
40890         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
40891         (ext_signal): New function.
40892         (rpl_raise): New function.
40893         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
40894         GNULIB_SIGNAL_H_SIGPIPE.
40895         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
40896         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
40897
40898         * modules/sigpipe: New file.
40899         * m4/sigpipe.m4: New file.
40900
40901 2008-09-25  Derek Price  <derek@ximbiot.com>
40902             Bruno Haible  <bruno@clisp.org>
40903
40904         * gnulib-tool (func_import): Report all license incompatibilities, not
40905         just the first one.
40906
40907 2008-09-25  Bruno Haible  <bruno@clisp.org>
40908
40909         * gnulib-tool (func_import): When computing the edits, consider not
40910         only the Makefile.ams that exist but also those that will be generated.
40911
40912 2008-09-25  Simon Josefsson  <simon@josefsson.org>
40913
40914         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
40915         fixes gnulib-tool --test warning about duplicate dependency.
40916
40917 2008-09-25  Bruno Haible  <bruno@clisp.org>
40918
40919         * gnulib-tool: Don't ask the user to perform edits in the generated
40920         Makefile.ams.
40921         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
40922         apply to the Makefile.am being generated.
40923         (func_emit_tests_Makefile_am): Execute edits that apply to the
40924         Makefile.am being generated.
40925         (func_import): Setup list of Makefile.am edits before emitting the
40926         Makefile.ams, not at the end.
40927         (func_create_testdir): Update.
40928         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40929
40930 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40931
40932         * gnulib-tool (func_import): Store the --tests-base option in the
40933         comment in gnulib-cache.m4.
40934
40935 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
40936
40937         * NEWS: Document increased portability that sys_select now provides.
40938
40939         * lib/sys_select.in.h: Install select wrapper.
40940         * lib/sys_socket.in.h: Use more descriptive name when there is no
40941         select wrapper.
40942         * lib/winsock-select.c: New.
40943         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
40944         Require gl_HEADER_SYS_SOCKET.
40945         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
40946         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
40947         * tests/test-sys_select.c: Add functional tests.
40948
40949 2008-09-24  Eric Blake  <ebb9@byu.net>
40950
40951         open, fopen: close fd leak in last patch
40952         * lib/open.c (rpl_open): Close fd before returning error.
40953         * lib/fopen.c (rpl_fopen): Close fd before returning error.
40954         * doc/posix-functions/open.texi (open): Document that Irix also
40955         has the bug.
40956         * doc/posix-functions/fopen.texi (fopen): Likewise.
40957         Reported by Paolo Bonzini.
40958
40959 2008-09-24  Bruno Haible  <bruno@clisp.org>
40960
40961         Ensure that a filename ending in a slash cannot be used to access a
40962         non-directory.
40963         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
40964         to check whether it's really a directory.
40965         * lib/fopen.c: Include fcntl.h, unistd.h.
40966         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
40967         and fdopen().
40968         * modules/fopen (Depends-on): Add unistd.
40969         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
40970         * tests/test-fopen.c (main): Likewise.
40971         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
40972         * doc/posix-functions/fopen.texi: Likewise.
40973         Reported by Eric Blake.
40974
40975 2008-09-23  Eric Blake  <ebb9@byu.net>
40976
40977         c-stack: avoid compiler optimizations when provoking overflow
40978         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
40979         recursion harder to optimize, to ensure a stack overflow occurs.
40980         * tests/test-c-stack.c (recurse): Likewise.
40981         Borrowed from libsigsegv.
40982
40983         c-stack: work around Irix sigaltstack bug
40984         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
40985         whether sigaltstack uses wrong end of stack_t (copied in part from
40986         libsigsegv).
40987         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
40988         Irix bug, without requiring an over-allocation.
40989         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
40990         bug.
40991
40992         fopen: document mingw bug on directories
40993         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
40994         not allowing a stream visiting a directory, even though reading
40995         from such a stream is not portable.
40996
40997 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40998
40999         * lib/poll.c: Rewrite.
41000         * modules/poll: Depend on alloca.
41001
41002 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41003
41004         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
41005         instead define prototypes for a full set of wrappers.  Ensure
41006         that Cygwin does not use the compatibility code, which is only
41007         for MinGW.
41008         * lib/winsock.c: New.
41009         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
41010         * modules/sys_socket: Add lib/winsock.c.
41011
41012         * modules/poll-tests: Add errno and perror.
41013         * tests/test-poll.c: Use ioctl, not ioctlsocket.
41014
41015 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
41016
41017         * tests/test-poll.c: Downgrade minimum needed Winsock version.
41018
41019 2008-09-23  Bruno Haible  <bruno@clisp.org>
41020
41021         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
41022         * doc/glibc-functions/*: Likewise.
41023
41024 2008-09-23  Simon Josefsson  <simon@josefsson.org>
41025
41026         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
41027         success.
41028
41029 2008-09-22  Eric Blake  <ebb9@byu.net>
41030             Bruno Haible  <bruno@clisp.org>
41031
41032         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
41033         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
41034         supply %A but mishandle pseudo-NaN.
41035         Reported by Simon Josefsson.
41036
41037 2008-09-21  Bruno Haible  <bruno@clisp.org>
41038
41039         * tests/test-lock.c (main): Tweak skip message.
41040         * tests/test-tls.c (main): Likewise.
41041
41042 2008-09-21  Bruno Haible  <bruno@clisp.org>
41043
41044         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
41045         whether 'struct sigaction' has sa_sigaction here...
41046         (gl_PREREQ_SIG_HANDLER_H): ... not here.
41047         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
41048
41049 2008-09-21  Bruno Haible  <bruno@clisp.org>
41050
41051         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
41052         section.
41053         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
41054         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
41055         the new section.
41056         (Support for obsolete systems lacking POSIX:2001): New section.
41057         (String handling <string.h>): Move strdup to the new section.
41058         Suggested by Simon Josefsson and Paolo Bonzini.
41059
41060 2008-09-21  Bruno Haible  <bruno@clisp.org>
41061
41062         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
41063         exponents in %e and %g results on 'long double'. Needed for mingw's
41064         improved *printf functions.
41065         * tests/test-vasprintf-posix.c (test_function): Likewise.
41066         * tests/test-snprintf-posix.h (test_function): Likewise.
41067         * tests/test-sprintf-posix.h (test_function): Likewise.
41068         Reported by Eric Blake.
41069
41070 2008-09-21  Bruno Haible  <bruno@clisp.org>
41071
41072         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
41073         * tests/test-sprintf-posix.h (test_function): Likewise.
41074
41075 2008-09-21  Bruno Haible  <bruno@clisp.org>
41076
41077         * modules/getpass (Depends-on): Add strdup-posix.
41078
41079         New module 'strdup-posix'.
41080         * modules/strdup-posix: New file.
41081         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
41082         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
41083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41084         REPLACE_STRDUP.
41085         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
41086         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
41087         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41088         strdup-posix.
41089
41090         * modules/strdup (Depends-on): Remove malloc-posix.
41091
41092 2008-09-20  Bruno Haible  <bruno@clisp.org>
41093
41094         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
41095         Wildenhues.
41096
41097 2008-09-20  Bruno Haible  <bruno@clisp.org>
41098
41099         Ensure that wint_t gets defined on IRIX 5.3.
41100         * lib/wchar.in.h (wint_t): Define if not defined by the system.
41101         * lib/wctype.in.h (wint_t): Likewise.
41102         (__wctype_wint_t): Remove type.
41103         (isw*): Use wint_t instead of __wctype_wint_t.
41104         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
41105         * modules/wchar (Files): Add m4/wint_t.m4.
41106         (Makefile.am): Substitute HAVE_WINT_T.
41107         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
41108         * tests/test-wctype.c: Check that wint_t is defined.
41109         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
41110         * doc/posix-headers/wctype.texi: Likewise.
41111         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41112
41113 2008-09-18  Bruno Haible  <bruno@clisp.org>
41114
41115         * gnulib-tool (func_exit): Update comment.
41116
41117 2008-09-18  Simon Josefsson  <simon@josefsson.org>
41118
41119         * modules/getaddrinfo (Depends-on): Remove strdup, this module
41120         assumes strdup exists and does not depend on strdup to return
41121         ENOMEM on out of memory conditions.
41122
41123 2008-09-18  Bruno Haible  <bruno@clisp.org>
41124
41125         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
41126         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
41127         digits for the exponent.
41128
41129 2008-09-18  Jim Meyering  <meyering@redhat.com>
41130             Bruno Haible  <bruno@clisp.org>
41131
41132         * lib/vasnprintf.c (decimal_point_char): Define also if
41133         NEED_PRINTF_INFINITE_LONG_DOUBLE.
41134
41135 2008-09-16  Bruno Haible  <bruno@clisp.org>
41136         and Eric Blake  <ebb9@byu.net>
41137
41138         vasnprintf: support Irix 5.3
41139         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
41140         that mishandle long double infinity.
41141         Reported by Tom G. Christensen.
41142
41143 2008-09-16  Bruno Haible  <bruno@clisp.org>
41144
41145         * doc/glibc-functions/scandir.texi: Mention the function is missing on
41146         Solaris 9.
41147         * doc/glibc-functions/alphasort.texi: Likewise.
41148         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
41149
41150 2008-09-16  Jim Meyering  <meyering@redhat.com>
41151
41152         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
41153         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
41154         a umask modification leak out of a subshell.  Otherwise, the
41155         opensolaris /bin/sh would be accepted and thus cause unwarranted
41156         failures in the coreutils test suite.
41157
41158 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
41159
41160         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
41161         to succeed.
41162
41163 2008-09-16  Jim Meyering  <meyering@redhat.com>
41164
41165         avoid spurious test failure when library is built without ACL support
41166         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
41167         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
41168         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
41169         * tests/test-copy-acl.sh: Likewise.
41170
41171 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41172
41173         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
41174         based on character occurrence counts.
41175
41176 2008-09-15  Eric Blake  <ebb9@byu.net>
41177
41178         tests: avoid some compiler warnings
41179         * tests/test-memchr.c (main): Pass NULL indirectly.
41180         * tests/test-closein.c (main): Avoid unused variable.
41181
41182 2008-09-15  Bruno Haible  <bruno@clisp.org>
41183
41184         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
41185         are missing on OpenBSD 4.0 individually.
41186         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41187
41188 2008-09-15  Bruno Haible  <bruno@clisp.org>
41189
41190         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
41191         * doc/posix-functions/strerror.texi: Mention also Cygwin.
41192         * doc/posix-functions/perror.texi: Likewise.
41193         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
41194         is missing.
41195         Reported by Eric Blake.
41196
41197         * lib/errno.in.h: Use replacement values >= 2000.
41198         Reported by Eric Blake.
41199
41200 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41201
41202         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
41203         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
41204         limit.
41205         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
41206         compareseq was aborted.
41207
41208 2008-09-14  Bruno Haible  <bruno@clisp.org>
41209
41210         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
41211         yvec_edit_count.
41212         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
41213         (fstrcmp_bounded): Simplify result computation accordingly.
41214
41215 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41216
41217         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
41218         (fstrcmp): Define in terms of fstrcmp_bounded.
41219         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
41220         lower_bound argument.
41221         Return quickly if the result is certainly < lower_bound.
41222         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
41223
41224 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41225
41226         * lib/diffseq.h (EARLY_ABORT): New macro.
41227         (compareseq): Change return type to bool. Return true when EARLY_ABORT
41228         evaluates to true.
41229
41230 2008-09-14  Bruno Haible  <bruno@clisp.org>
41231
41232         * modules/perror-tests: New file.
41233         * tests/test-perror.sh: New file.
41234         * tests/test-perror.c: New file.
41235
41236         New module 'perror'.
41237         * lib/stdio.in.h (perror): New declaration.
41238         * lib/perror.c: New file.
41239         * m4/perror.m4: New file.
41240         * modules/perror: New file.
41241         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
41242         * doc/posix-functions/perror.texi: Mention the perror module.
41243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
41244         REPLACE_PERROR.
41245         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
41246         REPLACE_PERROR.
41247
41248 2008-09-14  Bruno Haible  <bruno@clisp.org>
41249
41250         * modules/stdio (Makefile.am): Reorder to match the order in
41251         lib/stdio.in.h.
41252         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41253
41254 2008-09-13  Bruno Haible  <bruno@clisp.org>
41255
41256         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
41257
41258 2008-09-13  Bruno Haible  <bruno@clisp.org>
41259
41260         Extend strerror to cover the added errno values.
41261         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
41262         (rpl_strerror): Provide error messages for the added errno values and
41263         for the WSA* values.
41264         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
41265         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
41266         strerror.
41267         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
41268         * modules/strerror (Depends-on): Add errno.
41269         * doc/posix-functions/strerror.texi: Document the change.
41270         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
41271         and EOVERFLOW.
41272
41273 2008-09-13  Bruno Haible  <bruno@clisp.org>
41274
41275         * modules/EOVERFLOW: Remove file.
41276         * m4/eoverflow.m4: Remove file.
41277         * modules/EOVERFLOW-tests: Remove file.
41278         * tests/test-EOVERFLOW.c: Remove file.
41279         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
41280         * modules/ftell (Depends-on): Likewise.
41281         * modules/getdelim (Depends-on): Likewise.
41282         * modules/getugroups (Depends-on): Likewise.
41283         * modules/poll (Depends-on): Likewise.
41284         * modules/snprintf (Depends-on): Likewise.
41285         * modules/sprintf-posix (Depends-on): Likewise.
41286         * modules/vasnprintf (Depends-on): Likewise.
41287         * modules/vasprintf (Depends-on): Likewise.
41288         * modules/vfprintf-posix (Depends-on): Likewise.
41289         * modules/vsnprintf (Depends-on): Likewise.
41290         * modules/vsprintf-posix (Depends-on): Likewise.
41291         * modules/xvasprintf (Depends-on): Likewise.
41292         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41293         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
41294         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
41295         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
41296         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41297         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
41298         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
41299         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
41300         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41301         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
41302         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
41303         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
41304         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41305         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
41306         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
41307         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
41308         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41309         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
41310         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
41311         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
41312         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41313         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
41314         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
41315         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
41316         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
41317         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41318         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
41319         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
41320         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
41321         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
41322         * MODULES.html.sh: Remove EOVERFLOW.
41323         * NEWS: Mention the change.
41324
41325 2008-09-13  Bruno Haible  <bruno@clisp.org>
41326
41327         * modules/errno-tests: New file.
41328         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
41329
41330         * lib/errno.in.h: New file.
41331         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
41332         * modules/errno: New file.
41333         * doc/posix-headers/errno.texi: Update documentation.
41334         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
41335
41336 2008-09-13  Bruno Haible  <bruno@clisp.org>
41337
41338         * tests/test-poll.c: Use #if for native Windows, rather than testing
41339         __MSVCRT__.
41340
41341 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41342             Bruno Haible  <bruno@clisp.org>
41343
41344         * lib/glob.c: Don't include <pwd.h> on native Windows.
41345         (WINDOWS32): New macro.
41346         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
41347
41348 2008-09-13  Bruno Haible  <bruno@clisp.org>
41349
41350         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
41351         (ETIMEDOUT): Remove macro.
41352         (glthread_cond_timedwait_multithreaded): New declaration.
41353         (glthread_cond_timedwait): Use it.
41354         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
41355         (glthread_cond_timedwait_multithreaded): New function.
41356
41357 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41358
41359         * modules/poll-tests: Do not check for io.h.
41360         * tests/test-poll.c: Check for __MSVCRT__ instead.
41361
41362 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41363
41364         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
41365         * modules/poll-tests: Add inet_pton, stdbool, sockets.
41366         * tests/test-poll.c: Use them.  Use _pipe on Windows.
41367
41368 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
41369
41370         * modules/poll-tests: New.
41371         * tests/test-poll.c: New.
41372
41373 2008-09-12  Eric Blake  <ebb9@byu.net>
41374
41375         frexp: test for NetBSD failure on -0.0
41376         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
41377         not all, bugs from NetBSD 3.0 have been fixed.
41378         * doc/posix-functions/frexp.texi (frexp): Document bug.
41379         Reported by Thomas Klausner.
41380
41381         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
41382         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
41383         literal -0.0.
41384         Reported by Jonathan C. Patschke <jp@centtech.com>.
41385
41386 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41387
41388         * lib/glthread/cond.h: Use dummy implementation also if
41389         USE_WIN32_THREADS.
41390
41391 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41392
41393         * modules/fnmatch-posix (License): Change to LGPLv2+.
41394         * modules/fnmatch-gnu (License): Likewise.
41395
41396 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41397
41398         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
41399
41400 2008-09-11  Jim Meyering  <meyering@redhat.com>
41401
41402         * users.txt: Add gtk-vnc.
41403
41404 2008-09-08  Simon Josefsson  <simon@josefsson.org>
41405
41406         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
41407         rotate amounts.
41408
41409         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
41410         required for 16-bit and 8-bit rotates.
41411         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
41412         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
41413         UINT8_MAX instead of hard-coded constants.
41414         Suggested by Paul Eggert.
41415
41416 2008-09-07  Bruno Haible  <bruno@clisp.org>
41417
41418         * tests/test-striconveh.c (main): Check behaviour when converting from
41419         UTF-7.
41420
41421         Make striconveh work better with stateful encodings.
41422         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
41423         that iconv does not increment the inptr when returning -1/EINVAL.
41424
41425 2008-09-07  Bruno Haible  <bruno@clisp.org>
41426
41427         * build-aux/config.rpath: Update according to libtool-2.2.6.
41428         * build-aux/config.libpath: Likewise.
41429
41430 2008-09-06  Bruno Haible  <bruno@clisp.org>
41431
41432         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
41433         * lib/freadptr.c (freadptr): Likewise.
41434         * lib/freadseek.c (freadptrinc): Likewise.
41435         Reported by Simon Josefsson.
41436
41437 2008-09-06  Bruno Haible  <bruno@clisp.org>
41438
41439         * modules/freadptr (License): Change to LGPLv2+.
41440         * modules/freadseek (License): Likewise.
41441         Suggested by Eric Blake.
41442
41443         * modules/memchr2 (License): Change to LGPLv2+.
41444         Approved by Eric Blake.
41445
41446 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41447             Bruno Haible  <bruno@clisp.org>
41448
41449         Make gnulib-tool work with native 'sed' on AIX.
41450         * gnulib-tool (sed_noop): New variable.
41451         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
41452         func_add_or_update, func_create_testdir): Use it to initialize sed
41453         script variables.
41454         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41455
41456 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
41457             Bruno Haible  <bruno@clisp.org>
41458
41459         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
41460         also works after #include directives.
41461
41462 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
41463
41464         getdate.y: reject an out-of-range timezone value
41465         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
41466         the range [-24...+24].  When specified with only one or two digits,
41467         * tests/test-getdate.c: Tests for the fix.
41468         * doc/getdate.texi: Document this change.
41469
41470 2008-09-03  Bruno Haible  <bruno@clisp.org>
41471
41472         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
41473
41474 2008-09-02  Simon Josefsson  <simon@josefsson.org>
41475
41476         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
41477         <bruce.korb@gmail.com> with ideas from Ben Pfaff
41478         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
41479         Blake <ebb9@byu.net>.
41480
41481         * tests/test-bitrotate.c: Add more test vectors.
41482
41483 2008-09-02  Eric Blake  <ebb9@byu.net>
41484
41485         vasnprintf-posix: handle large precision via %.*d
41486         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
41487         when handling it ourselves.
41488         * tests/test-vasnprintf-posix.c (test_function): Add test.
41489         * tests/test-snprintf-posix.h (test_function): Likewise.
41490         * tests/test-sprintf-posix.h (test_function): Likewise.
41491         * tests/test-vasprintf-posix.c (test_function): Likewise.
41492         Reported by Alain Guibert.
41493
41494 2008-09-01  Eric Blake  <ebb9@byu.net>
41495
41496         c-stack: make configure-time check more robust
41497         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
41498         successful sigaction call.
41499         Reported by Tom G. Christensen.
41500
41501 2008-09-01  Bruno Haible  <bruno@clisp.org>
41502
41503         New module 'findprog-lgpl'.
41504         * modules/findprog-lgpl: New file.
41505         * lib/findprog-lgpl.c: New file.
41506         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
41507         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
41508         to decide whether to use strdup or xstrdup, concatenated_filename or
41509         xconcatenated_filename.
41510
41511 2008-09-01  Bruno Haible  <bruno@clisp.org>
41512
41513         Split module 'concat-filename' into 'concat-filename' (LGPL) and
41514         'xconcat-filename' (GPL).
41515         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
41516         (License): Change to LGPLv2+.
41517         * modules/xconcat-filename: New file.
41518         * lib/concat-filename.h (concatenated_filename): Change specification.
41519         (xconcatenated_filename): New declaration.
41520         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
41521         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
41522         memory situations.
41523         * lib/xconcat-filename.c: New file.
41524         * NEWS: Mention the change.
41525         * lib/findprog.c: Include concat-filename.h, not filename.h.
41526         (find_in_path): Use xconcatenated_filename instead of
41527         concatenated_filename.
41528         * lib/javacomp.c: Include concat-filename.h, not filename.h.
41529         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41530         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41531         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41532         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
41533         instead of concatenated_filename.
41534         * lib/javaexec.c: Include concat-filename.h, not filename.h.
41535         (execute_java_class): Use xconcatenated_filename instead of
41536         concatenated_filename.
41537         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
41538         * modules/javacomp (Depends-on): Likewise.
41539         * modules/javaexec (Depends-on): Likewise.
41540
41541 2008-09-01  Bruno Haible  <bruno@clisp.org>
41542
41543         Split module 'filename' into 'filename' and 'concat-filename'.
41544         * modules/filename: Keep only lib/filename.h.
41545         (License): Change to LGPLv2+.
41546         * modules/concat-filename: New file, extracted from modules/filename.
41547         * lib/filename.h (concatenated_filename): Remove declaration.
41548         * lib/concat-filename.h: New file, extracted from lib/filename.h.
41549         * lib/concat-filename.c: Include concat-filename.h.
41550         * NEWS: Mention the change.
41551
41552 2008-09-01  Simon Josefsson  <simon@josefsson.org>
41553
41554         * lib/bitrotate.h (rotl8, rotr8): Add.
41555
41556         * modules/bitrotate (configure.ac): Need
41557         AC_REQUIRE([AC_C_INLINE]).
41558         (Description): Mention stdint.h.  Reported by Bruno Haible
41559         <bruno@clisp.org>.
41560
41561         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
41562         Paolo Bonzini <bonzini@gnu.org>.
41563
41564 2008-08-31  Bruno Haible  <bruno@clisp.org>
41565
41566         Assume Solaris specific bi-arch conventions on Solaris systems.
41567         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
41568         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
41569         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
41570         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
41571         like acl_libdirstem.
41572         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
41573         acl_libdirstem.
41574         * NEWS: Mention the change.
41575         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
41576
41577 2008-08-31  Jim Meyering  <meyering@redhat.com>
41578
41579         * lib/strftime.h: Add comments describing the two added arguments.
41580
41581         remove duplicate #include directives
41582         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
41583         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
41584
41585 2008-08-31  Bruno Haible  <bruno@clisp.org>
41586
41587         New module 'sigpipe-die'.
41588         * modules/sigpipe-die: New file.
41589         * lib/sigpipe-die.h: New file.
41590         * lib/sigpipe-die.c: New file.
41591         * MODULES.html.sh (Signal handling): Add sigpipe-die.
41592
41593 2008-08-31  Bruno Haible  <bruno@clisp.org>
41594
41595         Don't override previously installed signal handlers.
41596         * lib/fatal-signal.c (saved_sigactions): New variable.
41597         (uninstall_handlers): Reset the signal to the saved handler, not
41598         to SIG_DFL (except when ignored).
41599         (install_handlers): Save the previous handlers.
41600
41601 2008-08-30  Bruno Haible  <bruno@clisp.org>
41602
41603         * gnulib-tool (func_reset_sigpipe): New function.
41604         (func_get_automake_snippet, func_modules_transitive_closure,
41605         func_import): Invoke it before a join command that reads from stdin,
41606         to avoid "echo: write error: Broken pipe" error messages on stderr.
41607         Reported by Sam Steingold <sds@gnu.org>.
41608
41609 2008-08-30  Bruno Haible  <bruno@clisp.org>
41610
41611         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
41612         Code copied from m4/open.m4.
41613         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
41614         access and the filename ends in a slash. Code copied from lib/open.c.
41615         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
41616         * tests/test-fopen.c (main): Check against bug with trailing slash.
41617
41618 2008-08-29  Bruno Haible  <bruno@clisp.org>
41619
41620         Avoid some "gcc -pedantic" warnings.
41621         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
41622         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
41623         * lib/dirent.in.h: Likewise.
41624         * lib/fcntl.in.h: Likewise.
41625         * lib/float.in.h: Likewise.
41626         * lib/iconv.in.h: Likewise.
41627         * lib/inttypes.in.h: Likewise.
41628         * lib/locale.in.h: Likewise.
41629         * lib/math.in.h: Likewise.
41630         * lib/netinet_in.in.h: Likewise.
41631         * lib/search.in.h: Likewise.
41632         * lib/signal.in.h: Likewise.
41633         * lib/stdarg.in.h: Likewise.
41634         * lib/stdint.in.h: Likewise.
41635         * lib/stdio.in.h: Likewise.
41636         * lib/stdlib.in.h: Likewise.
41637         * lib/string.in.h: Likewise.
41638         * lib/strings.in.h: Likewise.
41639         * lib/sys_select.in.h: Likewise.
41640         * lib/sys_socket.in.h: Likewise.
41641         * lib/sys_stat.in.h: Likewise.
41642         * lib/sys_time.in.h: Likewise.
41643         * lib/sysexits.in.h: Likewise.
41644         * lib/time.in.h: Likewise.
41645         * lib/unistd.in.h: Likewise.
41646         * lib/wchar.in.h: Likewise.
41647         * lib/wctype.in.h: Likewise.
41648         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
41649         * modules/fchdir (Makefile.am): Likewise.
41650         * modules/fcntl (Makefile.am): Likewise.
41651         * modules/float (Makefile.am): Likewise.
41652         * modules/iconv_open (Makefile.am): Likewise.
41653         * modules/inttypes (Makefile.am): Likewise.
41654         * modules/locale (Makefile.am): Likewise.
41655         * modules/math (Makefile.am): Likewise.
41656         * modules/netinet_in (Makefile.am): Likewise.
41657         * modules/search (Makefile.am): Likewise.
41658         * modules/signal (Makefile.am): Likewise.
41659         * modules/stdarg (Makefile.am): Likewise.
41660         * modules/stdint (Makefile.am): Likewise.
41661         * modules/stdio (Makefile.am): Likewise.
41662         * modules/stdlib (Makefile.am): Likewise.
41663         * modules/string (Makefile.am): Likewise.
41664         * modules/strings (Makefile.am): Likewise.
41665         * modules/sys_select (Makefile.am): Likewise.
41666         * modules/sys_socket (Makefile.am): Likewise.
41667         * modules/sys_stat (Makefile.am): Likewise.
41668         * modules/sys_time (Makefile.am): Likewise.
41669         * modules/sysexits (Makefile.am): Likewise.
41670         * modules/time (Makefile.am): Likewise.
41671         * modules/unistd (Makefile.am): Likewise.
41672         * modules/wchar (Makefile.am): Likewise.
41673         * modules/wctype (Makefile.am): Likewise.
41674         Reported by Reuben Thomas <rrt@sc3d.org>.
41675
41676 2008-08-29  Bruno Haible  <bruno@clisp.org>
41677
41678         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
41679         any more.
41680
41681 2008-08-29  Simon Josefsson  <simon@josefsson.org>
41682
41683         * MODULES.html.sh (Misc): Add bitrotate.
41684
41685         * modules/bitrotate: New file.
41686
41687         * lib/bitrotate.h: New file.
41688
41689         * modules/bitrotate-tests: New file.
41690
41691         * tests/test-bitrotate.c: New file.
41692
41693         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
41694         on the bitrotate module.
41695
41696         * lib/arctwo.c: Use new bitrotate module.
41697
41698 2008-08-29  Jim Meyering  <meyering@redhat.com>
41699
41700         bootstrap: merge changes from coreutils
41701         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
41702         of copied files.  Remove a kludge, now that this is fixed.
41703         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
41704         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
41705         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
41706
41707 2008-08-29  Bruno Haible  <bruno@clisp.org>
41708
41709         * MODULES.html.sh: Remove --cvs-urls option.
41710
41711 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
41712
41713         maint.mk: adjust to file name change
41714         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
41715
41716 2008-08-28  Jim Meyering  <meyering@redhat.com>
41717
41718         * modules/getndelim2 (License): Relicense to LGPLv2+.
41719         Approved by Richard Stallman for the version of 1995, and by
41720         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
41721
41722 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
41723
41724         * lib/getdelim.c (flockfile, funlockfile): Make all of them
41725         dummy if one is not available.  Do not touch them if
41726         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
41727         (getc_maybe_unlocked): New.
41728         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
41729
41730 2008-08-26  Eric Blake  <ebb9@byu.net>
41731
41732         doc/INSTALL: resync from autoconf
41733         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
41734         (INSTALL_PRELUDE): Delete; this is done more efficiently by
41735         moving...
41736         * install.texi [!autoconf]: ...here.  Resync from autoconf.
41737         * INSTALL: Regenerate.
41738         * INSTALL.ISO: New file.
41739         * INSTALL.UTF-8: Likewise.
41740
41741 2008-08-26  Jim Meyering  <meyering@redhat.com>
41742
41743         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
41744         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
41745         these definitions conditional, so that they may be overridden, too.
41746
41747 2008-08-26  Bruno Haible  <bruno@clisp.org>
41748
41749         Generate INSTALL file variants with prettier quotes.
41750         * doc/Makefile (INSTALL_PRELUDE): New macro.
41751         (INSTALL): Use it.
41752         (INSTALL.ISO, INSTALL.UTF-8): New rules.
41753
41754 2008-08-26  Bruno Haible  <bruno@clisp.org>
41755
41756         Run makeinfo in an English locale.
41757         * doc/Makefile (MAKEINFO): New variable.
41758
41759 2008-08-26  Bruno Haible  <bruno@clisp.org>
41760
41761         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
41762         Suggested by Eric Blake.
41763
41764 2008-08-25  Bruno Haible  <bruno@clisp.org>
41765
41766         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
41767
41768 2008-08-25  Eric Blake  <ebb9@byu.net>
41769
41770         c-stack: test that stack overflow can be caught
41771         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
41772         that platform allows handling stack overflow; at least OS/2 EMX
41773         has sigaltstack, but crashes before transferring control to
41774         handler on stack overflow.
41775         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
41776         check for HAVE_STACK_OVERFLOW_HANDLING.
41777         Reported by Elbert Pol.
41778
41779 2008-08-25  Bruno Haible  <bruno@clisp.org>
41780
41781         * doc/posix-functions/strftime.texi: Fix description of strftime
41782         module.
41783
41784 2008-08-24  Bruno Haible  <bruno@clisp.org>
41785
41786         * tests/uniwidth/test-uc_width2.c: New file.
41787         * tests/uniwidth/test-uc_width2.sh: New file.
41788         * modules/uniwidth/width-tests (Files): Add the new files.
41789         (TESTS): Add uniwidth/test-uc_width2.sh.
41790         (TESTS_ENVIRONMENT): New variable.
41791         (check_PROGRAMS): Add test-uc_width2.
41792         (test_uc_width2_SOURCES): New variable.
41793
41794         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
41795         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
41796         not 0x00AB.
41797         Reported by Alexander V. Lukyanov <lav@netis.ru>.
41798
41799 2008-08-22  Eric Blake  <ebb9@byu.net>
41800
41801         test-lock, test-tls: mention why a test is skipped
41802         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
41803         skipped.
41804         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
41805
41806         count-one-bits: relax license
41807         * modules/count-one-bits (License): Relicense to LGPLv2+.
41808         Suggested by Ludovic Courtès, approved by Ben Pfaff.
41809
41810 2008-08-22  Andreas Schwab  <schwab@suse.de>
41811
41812         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
41813         Remove spurious space in assignment.
41814
41815 2008-08-21  Simon Josefsson  <simon@josefsson.org>
41816
41817         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
41818         Paul Eggert <eggert@CS.UCLA.EDU>.
41819
41820 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
41821
41822         * modules/gettext: Add m4/threadlib.m4.
41823
41824 2008-08-19  Eric Blake  <ebb9@byu.net>
41825
41826         test-c-stack: fix compilation failure on FreeBSD 5.0
41827         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
41828         headers before <sys/resource.h>.
41829         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
41830         the bug.
41831         Reported by Nelson H. F. Beebe.
41832
41833         strverscmp: migrate from "strverscmp.h" to <string.h>
41834         * modules/string (Makefile.am): Add new hooks.
41835         * modules/strverscmp (Files): Remove strverscmp.h.
41836         (Depends-on): Add string.
41837         (configure.ac): Add indicator.
41838         (Include): Mention new header.
41839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
41840         defaults.
41841         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
41842         results.
41843         * lib/strverscmp.h: Delete.
41844         * lib/string.in.h (strverscmp): Provide declaration, when needed.
41845         * tests/test-strverscmp.c (includes): Adjust client.
41846         * lib/check-version.c (includes): Likewise.
41847         * NEWS: Document the change.
41848
41849         strverscmp: add unit test
41850         * modules/strverscmp-tests: New file.
41851         * tests/test-strverscmp.c: Likewise.
41852
41853 2008-08-19  Simon Josefsson  <simon@josefsson.org>
41854
41855         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
41856         regarding Windows crypto stuff, from Mono.
41857
41858 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
41859
41860         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
41861         if present, for intel RND.  Return error on failures.
41862
41863 2008-08-18  Ben Pfaff  <blp@gnu.org>
41864
41865         gitlog-to-changelog: give better diagnostic for failed pipe-open
41866         * build-aux/gitlog-to-changelog: Improve error message: suggest
41867         that the version of Git may be too old.
41868
41869 2008-08-18  Simon Josefsson  <simon@josefsson.org>
41870
41871         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
41872         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
41873
41874 2008-08-18  Bruno Haible  <bruno@clisp.org>
41875
41876         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
41877         pthread_in_use().
41878
41879 2008-08-18  Bruno Haible  <bruno@clisp.org>
41880
41881         * lib/glthread/threadlib.c: Include <pthread.h>.
41882
41883 2008-08-18  Bruno Haible  <bruno@clisp.org>
41884
41885         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
41886         glthread_recursive_lock_* macros.
41887         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
41888         Fix syntax error.
41889
41890 2008-08-18  Bruno Haible  <bruno@clisp.org>
41891
41892         * lib/glthread/thread.c: Avoid forcing a context switch right after
41893         thread creation.
41894
41895 2008-08-17  Bruno Haible  <bruno@clisp.org>
41896
41897         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
41898         * lib/glthread/thread.h: Provide Win32 specific implementation.
41899         * modules/thread (Files): Add lib/glthread/thread.c.
41900         (Depends-on): Add lock.
41901         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
41902
41903 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41904
41905         New module 'yield'.
41906         * modules/yield: New file.
41907         * lib/glthread/yield.h: New file.
41908         * m4/yield.m4: New file.
41909         * MODULES.html.sh (Multithreading): Add yield.
41910
41911 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41912
41913         New module 'thread'.
41914         * modules/thread: New file.
41915         * lib/glthread/thread.h: New file.
41916         * m4/thread.m4: New file.
41917         * MODULES.html.sh (Multithreading): Add thread.
41918
41919 2008-08-17  Bruno Haible  <bruno@clisp.org>
41920
41921         * lib/glthread/lock.h: Include <stdlib.h> always.
41922         * lib/glthread/tls.h: Likewise.
41923         * lib/glthread/cond.h: Likewise.
41924
41925 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41926
41927         New module 'cond'.
41928         * modules/cond: New file.
41929         * lib/glthread/cond.h: New file.
41930         * lib/glthread/cond.c: New file.
41931         * m4/cond.m4: New file.
41932         * MODULES.html.sh (Multithreading): Add cond.
41933
41934 2008-08-16  Eric Blake  <ebb9@byu.net>
41935
41936         c-stack: fix regression on Irix 5.3 from 2008-06-21
41937         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
41938         sa_sigaction...
41939         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
41940         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
41941         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
41942         * modules/signal (Makefile.am): Use the value.
41943         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
41944         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
41945         * doc/posix-headers/signal.texi (signal.h): Document this
41946         portability issue.
41947         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
41948         Reported by Tom G. Christensen.
41949
41950 2008-08-17  Bruno Haible  <bruno@clisp.org>
41951
41952         New module 'threadlib'.
41953         * modules/threadlib: New file.
41954         * lib/glthread/threadlib.c: New file, extracted from
41955         lib/glthread/lock.c.
41956         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
41957         functions.
41958         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
41959         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
41960         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
41961         macros.
41962         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
41963         (gl_DISABLE_THREADS): Remove macro.
41964         * modules/lock (Files): Remove build-aux/config.rpath.
41965         (Depends-on): Remove havelib. Add threadlib.
41966         (configure.ac-early): Remove section.
41967         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
41968         * modules/tls (Depends-on): Remove lock. Add threadlib.
41969         (Link): New section, copied from threadlib.
41970         * MODULES.html.sh (Multithreading): Add threadlib.
41971
41972 2008-08-14  Bruno Haible  <bruno@clisp.org>
41973
41974         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
41975         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
41976         glthread_rwlock_unlock, glthread_rwlock_destroy,
41977         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
41978         glthread_recursive_lock_destroy): Define as macros always.
41979         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
41980         glthread_lock_lock.
41981         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
41982         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
41983         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
41984         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
41985         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
41986         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
41987         (glthread_recursive_lock_lock_func): Renamed from
41988         glthread_recursive_lock_lock.
41989         (glthread_recursive_lock_unlock_func): Renamed from
41990         glthread_recursive_lock_unlock.
41991         (glthread_recursive_lock_destroy_func): Renamed from
41992         glthread_recursive_lock_destroy.
41993
41994 2008-08-14  Bruno Haible  <bruno@clisp.org>
41995
41996         * lib/glthread/lock.h: Renamed from lib/lock.h.
41997         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
41998         * lib/glthread/tls.h: Renamed from lib/tls.h.
41999         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
42000         * lib/fstrcmp.c: Update includes.
42001         * lib/strsignal.c: Update includes.
42002         * modules/lock (Files, Makefile.am): Update.
42003         (Include): Change to "glthread/lock.h".
42004         * modules/tls (Files, Makefile.am): Update.
42005         (Include): Change to "glthread/tls.h".
42006         * tests/test-lock.c: Update includes.
42007         * tests/test-tls.c: Update includes.
42008         * NEWS: Mention the renamed header files.
42009
42010 2008-08-11  Jim Meyering  <meyering@redhat.com>
42011
42012         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
42013
42014 2008-08-11  Eric Blake  <ebb9@byu.net>
42015
42016         test-c-stack: avoid C99-ism
42017         * tests/test-c-stack.c (main): Fix whitespace, move declaration
42018         before statement.
42019         Reported by Alain Guibert.
42020
42021 2008-08-10  Jim Meyering  <meyering@redhat.com>
42022
42023         ensure that return value of uinttostr et al are not ignored
42024         * lib/inttostr.h (__GNUC_PREREQ): Define.
42025         (__attribute_warn_unused_result__): Define.
42026         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
42027
42028 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
42029
42030         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
42031         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
42032
42033 2008-08-07  Jim Meyering  <meyering@redhat.com>
42034
42035         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
42036
42037         * modules/mkstemp (License): Relicense under LGPLv2+.
42038         * modules/tempname (License): Likewise.
42039
42040 2008-08-06  Bruno Haible  <bruno@clisp.org>
42041
42042         * lib/poll.c (poll): Further micro-optimization.
42043
42044 2008-08-06  Jim Meyering  <meyering@redhat.com>
42045
42046         inet_pton.c: use locale-independent tolower
42047         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
42048         (inet_pton6): Use c_tolower rather than tolower.
42049         * modules/inet_pton (Depends-on): Add c-ctype.
42050
42051 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
42052
42053         * lib/poll.c (poll): Avoid division when timeout is 0, cache
42054         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
42055
42056 2008-08-06  Jim Meyering  <meyering@redhat.com>
42057
42058         * modules/inet_pton (License): Relicense under LGPLv2+.
42059
42060 2008-08-03  Bruno Haible  <bruno@clisp.org>
42061
42062         Additional non-aborting API for lock and tls.
42063         * lib/lock.h: Include <errno.h>.
42064         (glthread_lock_init): New macro/function.
42065         (gl_lock_init): Define as wrapper around glthread_lock_init.
42066         (glthread_lock_lock): New macro/function.
42067         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
42068         (glthread_lock_unlock): New macro/function.
42069         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
42070         (glthread_lock_destroy): New macro/function.
42071         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
42072         (glthread_rwlock_init): New macro/function.
42073         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
42074         (glthread_rwlock_rdlock): New macro/function.
42075         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
42076         (glthread_rwlock_wrlock): New macro/function.
42077         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
42078         (glthread_rwlock_unlock): New macro/function.
42079         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
42080         (glthread_rwlock_destroy): New macro/function.
42081         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
42082         (glthread_recursive_lock_init): New macro/function.
42083         (gl_recursive_lock_init): Define as wrapper around
42084         glthread_recursive_lock_init.
42085         (glthread_recursive_lock_lock): New macro/function.
42086         (gl_recursive_lock_lock): Define as wrapper around
42087         glthread_recursive_lock_lock.
42088         (glthread_recursive_lock_unlock): New macro/function.
42089         (gl_recursive_lock_unlock): Define as wrapper around
42090         glthread_recursive_lock_unlock.
42091         (glthread_recursive_lock_destroy): New macro/function.
42092         (gl_recursive_lock_destroy): Define as wrapper around
42093         glthread_recursive_lock_destroy.
42094         (glthread_once): New macro/function.
42095         (gl_once): Define as wrapper around glthread_once.
42096         Update function declarations.
42097         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
42098         glthread_rwlock_init. Return error code.
42099         (glthread_rwlock_rdlock_multithreaded): Renamed from
42100         glthread_rwlock_rdlock. Return error code.
42101         (glthread_rwlock_wrlock_multithreaded): Renamed from
42102         glthread_rwlock_wrlock. Return error code.
42103         (glthread_rwlock_unlock_multithreaded): Renamed from
42104         glthread_rwlock_unlock. Return error code.
42105         (glthread_rwlock_destroy_multithreaded): Renamed from
42106         glthread_rwlock_destroy. Return error code.
42107         (glthread_recursive_lock_init_multithreaded): Renamed from
42108         glthread_recursive_lock_init. Return error code.
42109         (glthread_recursive_lock_lock_multithreaded): Renamed from
42110         glthread_recursive_lock_lock. Return error code.
42111         (glthread_recursive_lock_unlock_multithreaded): Renamed from
42112         glthread_recursive_lock_unlock. Return error code.
42113         (glthread_recursive_lock_destroy_multithreaded): Renamed from
42114         glthread_recursive_lock_destroy. Return error code.
42115         (glthread_once_call): Make static.
42116         (glthread_once_multithreaded): Renamed from glthread_once.
42117         * lib/tls.h: Include <errno.h>.
42118         (glthread_tls_key_init): New macro/function.
42119         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
42120         (glthread_tls_set): New macro/function.
42121         (gl_tls_set): Define as wrapper around glthread_tls_set.
42122         (glthread_tls_key_destroy): New macro/function.
42123         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
42124         Update function declarations.
42125         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
42126         glthread_tls_get.
42127         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42128
42129 2008-08-04  Eric Blake  <ebb9@byu.net>
42130
42131         gnumakefile: use space, not TAB, outside of targets
42132         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
42133
42134 2008-08-02  Jim Meyering  <meyering@redhat.com>
42135
42136         getdate.y: avoid locale-dependent date parsing failure
42137         In Turkish locales, getdate would fail to recognize keywords
42138         containing a lowercase "i".  The solution is not to rely on
42139         locale-sensitive case-conversion.
42140         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
42141         (lookup_word): Use c_toupper in place of toupper.
42142         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
42143         Reported by Vefa Bicakci <bicave@superonline.com> in
42144         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
42145         * modules/getdate (Depends-on): Add c-ctype.
42146
42147 2008-08-02  Bruno Haible  <bruno@clisp.org>
42148
42149         * gnulib-tool (func_import): When updating or creating a .gitignore
42150         file, prepend each added line with a slash, and ignore leading slashes
42151         from the existing lines.
42152         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42153
42154 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42155
42156         Portability fix for GNU make 3.79.1.
42157         * top/GNUmakefile: Avoid 'else COND', which older GNU make
42158         versions do not understand.
42159
42160 2008-08-01  Bruno Haible  <bruno@clisp.org>
42161
42162         Work around bug of HP-UX 10.20 cc with -0.0 literal.
42163         * tests/test-isnanf.h (zero): New variable.
42164         (main): Avoid literal -0.0f.
42165         * tests/test-isnand.h (zero): New variable.
42166         (main): Avoid literal -0.0.
42167         * tests/test-isnanl.h (zero): New variable.
42168         (main): Avoid literal -0.0L.
42169         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
42170         (test_float, test_double, test_long_double): Avoid literals -0.0f,
42171         -0.0, -0.0L.
42172         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
42173         (test_signbitd): Avoid literal -0.0.
42174         (test_signbitl): Avoid literal -0.0L.
42175         * tests/test-ceilf1.c (zero): New variable.
42176         (main): Avoid literal -0.0f.
42177         * tests/test-ceill.c (zero): New variable.
42178         (main): Avoid literal -0.0L.
42179         * tests/test-floorf1.c (zero): New variable.
42180         (main): Avoid literal -0.0f.
42181         * tests/test-floorl.c (zero): New variable.
42182         (main): Avoid literal -0.0L.
42183         * tests/test-roundf1.c (zero): New variable.
42184         (main): Avoid literal -0.0f.
42185         * tests/test-round1.c (zero): New variable.
42186         (main): Avoid literal -0.0.
42187         * tests/test-roundl.c (zero): New variable.
42188         (main): Avoid literal -0.0L.
42189         * tests/test-truncf1.c (zero): New variable.
42190         (main): Avoid literal -0.0f.
42191         * tests/test-trunc1.c (zero): New variable.
42192         (main): Avoid literal -0.0.
42193         * tests/test-truncl.c (zero): New variable.
42194         (main): Avoid literal -0.0L.
42195         * tests/test-frexp.c (zero): New variable.
42196         (main): Avoid literal -0.0.
42197         * tests/test-frexpl.c (zero): New variable.
42198         (main): Avoid literal -0.0L.
42199         * tests/test-ldexpl.c (zero): New variable.
42200         (main): Avoid literal -0.0L.
42201         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42202         (zerod, zerol): New variables.
42203         (test_function): Avoid literals -0.0, -0.0L.
42204         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
42205         (zerod, zerol): New variables.
42206         (test_function): Avoid literals -0.0, -0.0L.
42207         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42208         (zerod, zerol): New variables.
42209         (test_function): Avoid literals -0.0, -0.0L.
42210         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
42211         (zerod, zerol): New variables.
42212         (test_function): Avoid literals -0.0, -0.0L.
42213         * tests/test-strtod.c (zero): New variable.
42214         (main): Avoid literal -0.0.
42215         Reported by Jonathan C. Patschke <jp@centtech.com>.
42216
42217 2008-07-31  Jim Meyering  <meyering@redhat.com>
42218
42219         sha256.h: correct definition of SHA224_DIGEST_SIZE
42220         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
42221         Reported by Paulie Pena IV <paulie4@gmail.com>.
42222         Define as 224 / 8, rather than as a literal.
42223         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
42224         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
42225         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
42226
42227 2008-07-31  Bruno Haible  <bruno@clisp.org>
42228
42229         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
42230         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
42231         Reported by Jonathan Patschke <jp@centtech.com>.
42232
42233 2008-07-31  Bruno Haible  <bruno@clisp.org>
42234
42235         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
42236         Reported by Paolo Bonzini <bonzini@gnu.org>.
42237
42238 2008-07-30  Eric Blake  <ebb9@byu.net>
42239
42240         test-strtod: allow compilation without -lm
42241         * tests/test-strtod.c (main): Avoid link dependence on fabs.
42242         Reported by Dennis Clarke <blastwave@gmail.com>.
42243
42244 2008-07-28  Jim Meyering  <meyering@redhat.com>
42245
42246         bootstrap: work also when there are no .po files in po/
42247         * build-aux/bootstrap (update_po_files): Complete the change
42248         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
42249
42250 2008-07-27  Jim Meyering  <meyering@redhat.com>
42251
42252         * users.txt: Add zile.
42253
42254 2008-07-26  Ben Pfaff  <blp@gnu.org>
42255
42256         Add missing dependencies on new m4/exponent[fdl].m4 files.
42257         * modules/isnanf-nolibm: Add m4/exponentf.m4.
42258         * modules/isnand-nolibm: Add m4/exponentd.m4.
42259         * modules/isnanl-nolibm: Add m4/exponentl.m4.
42260         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
42261         m4/isnan[fdl].m4, because the macros actually used moved.
42262         Reported by Jim Meyering.
42263
42264 2008-07-14  Ben Pfaff  <blp@gnu.org>
42265
42266         Add isinf module.
42267         * lib/isinf.c: New file.
42268         * lib/math.in.h: Define isinf macro if we have decided to replace
42269         it.
42270         * m4/isinf.m4: New file.
42271         * m4/math_h.m4: Initialize and substitute variables for isinf
42272         module.
42273         * modules/isinf: New file.
42274         * modules/isinf-tests: New file.
42275         * modules/math: Add substitutions for new module.
42276         * tests/test-isinf.c: New file.
42277         * doc/posix-functions/isinf.texi: Mention new module.
42278         * MODULES.html.sh: Mention new module.
42279
42280 2008-07-14  Ben Pfaff  <blp@gnu.org>
42281
42282         Factor out some macros for use by additional modules.
42283         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
42284         exponentf.m4.
42285         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
42286         exponentd.m4.
42287         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
42288         file exponentl.m4.
42289         * m4/exponentf.m4: New file.
42290         * m4/exponentd.m4: New file.
42291         * m4/exponentl.m4: New file.
42292         * modules/isnanf: Use new file m4/exponentf.m4.
42293         * modules/isnand: Use new file m4/exponentd.m4.
42294         * modules/isnanl: Use new file m4/exponentl.m4.
42295
42296 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
42297
42298         mktime.c: normalize tp->tm_isdst value to -1/0/1.
42299         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
42300         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
42301         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
42302
42303         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
42304         readlink on platforms without PATH_MAX.
42305
42306 2008-07-21  Eric Blake  <ebb9@byu.net>
42307
42308         Warn, not fail, on stale version.
42309         * top/GNUmakefile (_curr-ver): Tone down previous patch.
42310
42311         Don't allow installation with stale devel version number.
42312         * top/GNUmakefile (_is-install-target): New macro.
42313         (_curr-ver): Forbid installation with stale version number.
42314
42315 2008-07-20  Bruno Haible  <bruno@clisp.org>
42316
42317         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
42318         TESTS_ENVIRONMENT.
42319         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
42320
42321 2008-07-20  Bruno Haible  <bruno@clisp.org>
42322
42323         * lib/c-stack.h (c_stack_action): Add documentation.
42324         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
42325
42326 2008-07-20  Bruno Haible  <bruno@clisp.org>
42327
42328         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
42329         * modules/readlink (License): Likewise.
42330
42331 2008-07-17  Eric Blake  <ebb9@byu.net>
42332
42333         * modules/c-stack (Link): Fix typo.
42334
42335         Make c-stack use libsigsegv, when available.
42336         * modules/c-stack (Depends-on): Add libsigsegv.
42337         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
42338         needed.
42339         * lib/c-stack.c (SIGSTKSZ): Define fallback.
42340         (segv_handler, overflow_handler, c_stack_action)
42341         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
42342         implementation when libsigsegv is available, but only when using
42343         the library is necessary.
42344         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
42345         comment, explaining why XSI check fails on Linux.
42346         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
42347         * tests/test-c-stack2.sh: Tweak skip message.
42348         * NEWS: Document new link-time requirements.
42349
42350 2008-07-16  Eric Blake  <ebb9@byu.net>
42351
42352         c-stack: Expose false positives when not using libsigsegv.
42353         * modules/c-stack-tests (Files): Expand test.
42354         * tests/test-c-stack.c (main): Add means to conditionally trigger
42355         non-overflow SIGSEGV.
42356         * tests/test-c-stack2.sh: New file.
42357
42358 2008-07-14  Bruno Haible  <bruno@clisp.org>
42359
42360         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
42361         Reported by Eric Blake.
42362
42363 2008-07-14  Sam Steingold  <sds@gnu.org>
42364             Bruno Haible  <bruno@clisp.org>
42365
42366         New module libsigsegv.
42367         * modules/libsigsegv: New file.
42368         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
42369         modifications.
42370         * MODULES.html.sh (Signal handling): New section.
42371
42372 2008-07-14  Bruno Haible  <bruno@clisp.org>
42373
42374         * modules/unictype/ctype-* (Description): Add the word "function".
42375         Improves the resulting doc in MODULES.html.
42376
42377 2008-07-12  Ben Pfaff  <blp@gnu.org>
42378
42379         Add longlong module.
42380         * modules/longlong: New file.
42381
42382 2008-07-12  Bruno Haible  <bruno@clisp.org>
42383
42384         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
42385         to empty.
42386
42387 2008-07-10  Ben Pfaff  <blp@gnu.org>
42388
42389         Add isnan module.
42390         * doc/posix-functions/isnan.texi: Mention new module.
42391         * lib/math.in.h: Define isnan macro if we have decided to replace
42392         it.
42393         * m4/isnan.m4: New file.
42394         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
42395         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
42396         also.
42397         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
42398         redundancy.
42399         * m4/math_h.m4: Initialize and substitute variables for isnan
42400         module.
42401         * modules/isnan: New file.
42402         * modules/isnan-tests: New file.
42403         * modules/math: Add substitutions for new module.
42404         * tests/test-isnan.c: New file.
42405         * MODULES.html.sh: Mention new module.
42406
42407 2008-07-10  Ben Pfaff  <blp@gnu.org>
42408
42409         Add isnanf module.
42410         * lib/isnanf.m4: New file.
42411         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
42412         (gl_HAVE_ISNANF_IN_LIBM): New macro.
42413         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
42414         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
42415         * modules/isnanf: New file.
42416         * modules/isnanf-tests: New file.
42417         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
42418         files.
42419         * tests/test-isnanf-nolibm.c: factored most of its contents into
42420         new file tests/test-isnanf.h.
42421         * tests/test-isnanf.h: New file.
42422         * tests/test-isnanf.c: New file.
42423         * MODULES.html.sh: Mention new module.
42424         * doc/glibc-functions/isnanf.texi: Mention new module.
42425
42426 2008-07-10  Ben Pfaff  <blp@gnu.org>
42427
42428         Add isnand module.
42429         * lib/isnand.h: New file.
42430         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
42431         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
42432         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
42433         functionality also.
42434         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
42435         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
42436         (gl_HAVE_ISNAND_IN_LIBM): New macro.
42437         * modules/isnand: New file.
42438         * modules/isnand-tests: New file.
42439         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
42440         files.
42441         * tests/test-isnand-nolibm.c: factored most of its contents into
42442         new file tests/test-isnand.h.
42443         * tests/test-isnand.h: New file.
42444         * tests/test-isnand.c: New file.
42445         * MODULES.html.sh: Mention new module.
42446
42447 2008-07-10  Ben Pfaff  <blp@gnu.org>
42448
42449         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
42450         * lib/isnand.h: Rename lib/isnand-nolibm.h.
42451         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
42452         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
42453         * modules/isnanf-nolibm: Update references to renamed files.
42454         * modules/isnand-nolibm: Likewise.
42455         * modules/isnanf-nolibm-tests: Likewise.
42456         * modules/isnand-nolibm-tests: Likewise.
42457         * lib/frexp.c: Likewise.
42458         * lib/isfinite.c: Likewise.
42459         * lib/signbitd.c: Likewise.
42460         * lib/signbitf.c: Likewise.
42461         * lib/vasnprintf.c: Likewise.
42462         * tests/test-ceilf1.c: Likewise.
42463         * tests/test-ceilf2.c: Likewise.
42464         * tests/test-floorf1.c: Likewise.
42465         * tests/test-floorf2.c: Likewise.
42466         * tests/test-frexp.c: Likewise.
42467         * tests/test-round1.c: Likewise.
42468         * tests/test-round2.c: Likewise.
42469         * tests/test-roundf1.c: Likewise.
42470         * tests/test-strtod.c: Likewise.
42471         * tests/test-trunc1.c: Likewise.
42472         * tests/test-trunc2.c: Likewise.
42473         * tests/test-truncf1.c: Likewise.
42474         * tests/test-truncf2.c: Likewise.
42475         * NEWS: Mention the renamed header files.
42476
42477 2008-07-11  Jim Meyering  <meyering@redhat.com>
42478
42479         vc-list-files: make the last-resort awk code more portable
42480         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
42481         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
42482         does not support it.
42483
42484 2008-07-10  Eric Blake  <ebb9@byu.net>
42485
42486         Work with tar's bootstrap.
42487         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
42488         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
42489         an m4 comment.
42490
42491 2008-07-09  Jim Meyering  <meyering@redhat.com>
42492
42493         posix-shell.m4: fix typo that made this test malfunction
42494         * m4/posix-shell.m4: Remove capitalization in variable name.
42495
42496 2008-07-08  Bruno Haible  <bruno@clisp.org>
42497
42498         * m4/onceonly.m4: Update comments.
42499         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42500
42501 2008-07-04  Jim Meyering  <meyering@redhat.com>
42502
42503         * users.txt: Add vc-dwim.
42504         (bison, coreutils): Use the gitweb URL.
42505
42506 2008-07-03  Jim Meyering  <meyering@redhat.com>
42507
42508         * users.txt: Add libffcall.  From Sam Steingold.
42509
42510 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
42511
42512         getdate.y: do not ignore TZ with relative day, month or year offset
42513         * lib/getdate.y (get_date): Move the tz-handling block to follow the
42514         relative-date-handling, since otherwise, the latter would clobber the
42515         sole output (an updated Start value) of the tz-handling block.
42516         * tests/test-getdate.c: Tests for the fix
42517
42518 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42519
42520         Recognize 'foo_LIBRARIES += libgnu.a'.
42521         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
42522         makefile snippet has already specified an installation location,
42523         also using '+='.
42524
42525 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
42526
42527         getdate.y: factor out common actions
42528         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
42529         Use them in place of open-coded actions.
42530
42531 2008-07-01  Simon Josefsson  <simon@josefsson.org>
42532
42533         Add self-test for getdate module.
42534         * modules/getdate-tests: New file.
42535         * tests/test-getdate.c: New file.
42536
42537 2008-06-29  Bruno Haible  <bruno@clisp.org>
42538
42539         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
42540         .gitignore.
42541         Reported by Sylvain Beucler <beuc@beuc.net>.
42542
42543 2008-06-29  Bruno Haible  <bruno@clisp.org>
42544
42545         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
42546         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
42547
42548 2008-06-29  Bruno Haible  <bruno@clisp.org>
42549
42550         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
42551         EXTRA_DIST.
42552         Reported by Sylvain Beucler <beuc@beuc.net>.
42553
42554 2008-06-26  Jim Meyering  <meyering@redhat.com>
42555
42556         make several modules depend on the "open" module
42557         This provides slightly increased consistency when opening-for-write
42558         the name of a non-directory spelled with a trailing slash.
42559         * modules/chdir-safer: Likewise.
42560         * modules/chown: Likewise.
42561         * modules/clean-temp: Likewise.
42562         * modules/copy-file: Likewise.
42563         * modules/fchdir: Likewise.
42564         * modules/fcntl-safer: Likewise.
42565         * modules/pipe: Likewise.
42566         * modules/utime: Likewise.
42567         Prompted by Eric Blake and Bruno Haible.
42568
42569 2008-06-24  Andreas Schwab  <schwab@suse.de>
42570
42571         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
42572         literals can be used as initializers for global variables.
42573
42574 2008-06-23  Eric Blake  <ebb9@byu.net>
42575
42576         Make gnulib-cache.m4 easier to diff.
42577         * gnulib-tool (func_import): Allow newlines when reading cached
42578         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
42579
42580 2008-06-23  Bruno Haible  <bruno@clisp.org>
42581
42582         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
42583         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
42584         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
42585         m4/signalblocking.m4.
42586         (gl_PREREQ_SIGACTION): Don't invoke it.
42587         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
42588         gl_PREREQ_SIG_HANDLER_H.
42589         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42590         Don't check for sigaction here.
42591
42592 2008-06-23  Bruno Haible  <bruno@clisp.org>
42593
42594         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
42595         (install_handlers): Don't set the SA_RESETHAND flag.
42596
42597 2008-06-23  Bruno Haible  <bruno@clisp.org>
42598
42599         * m4/sigaction.m4: Comment fixes.
42600         * lib/signal.in.h: Likewise.
42601
42602 2008-06-23  Eric Blake  <ebb9@byu.net>
42603
42604         Fix typo.
42605         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
42606
42607         Avoid SA_ namespace.
42608         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
42609         Reported by Ralf Wildenhues.
42610
42611         Avoid test failure due to SA_RESTORER.
42612         * tests/test-sigaction.c (SA_MASK): New macro.
42613         (main): Avoid failing due to extension flags being set.
42614         Reported by Jim Meyering.
42615
42616         Revert use of sig-handler.h in sigprocmask.c.
42617         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
42618         it requires the existence of struct sigaction.
42619         * lib/sigprocmask.c (handler_t): Restore typedef.
42620         (rpl_signal, old_handlers): Use local type.
42621
42622 2008-06-22  Bruno Haible  <bruno@clisp.org>
42623
42624         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
42625         conditionally.
42626         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42627
42628 2008-06-22  Bruno Haible  <bruno@clisp.org>
42629
42630         * doc/posix-functions/siginterrupt.texi: Move note.
42631
42632         * lib/signal.in.h (SA_RESTART): New macro.
42633         * lib/sigaction.c: Update comment.
42634
42635         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
42636
42637         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
42638         (gl_PREREQ_SIGPROCMASK): Invoke it.
42639         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
42640
42641         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
42642
42643         * lib/sigprocmask.c: Update a comment.
42644
42645 2008-06-21  Eric Blake  <ebb9@byu.net>
42646
42647         Use sigaction module rather than signal().
42648         * modules/c-stack (Depends-on): Add sigaction.
42649         * modules/fatal-signal (Depends-on): Likewise.
42650         * modules/nanosleep (Depends-on): Likewise.
42651         * modules/sigprocmask (Files): Add sig-handler.h.
42652         * modules/sigaction (Files): Likewise.
42653         * lib/sig-handler.h (get_handler): New file, suggested by Paul
42654         Eggert.
42655         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
42656         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
42657         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42658         (init_fatal_signals): Likewise.
42659         * lib/nanosleep.c (rpl_nanosleep): Likewise.
42660         (siginterrupt): Delete fallback.
42661         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
42662         instead.
42663         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
42664         siginterrupt.
42665
42666         New module sigaction, for mingw.
42667         * modules/sigaction: New module...
42668         * modules/sigaction-tests: ...and its test.
42669         * m4/sigaction.m4: New file.
42670         * lib/sigaction.c: Likewise.
42671         * tests/test-sigaction.c: Likewise.
42672         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
42673         * modules/signal (Makefile.am): Likewise.
42674         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
42675         needed.
42676         * doc/posix-headers/signal.texi (signal.h): Mention provided
42677         types.
42678         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
42679         that sigaction is preferable.
42680         * doc/posix-functions/sigaction.texi (sigaction): Mention new
42681         module.
42682         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42683         sigaction.
42684
42685         Improve robustness of sigprocmask by overriding signal.
42686         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
42687         is in use.
42688         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
42689         (SIGKILL, SIGSTOP): Provide fallbacks.
42690         (rpl_signal): Implement.
42691         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
42692         signal can be called inside handlers.
42693
42694         Fix nanosleep module on mingw.
42695         * modules/nanosleep (Depends-on): Add sys_select.
42696         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
42697
42698         Fix licensing of sigprocmask.
42699         * modules/raise (License): Relicense as LGPL.
42700
42701 2008-06-21  Bruno Haible  <bruno@clisp.org>
42702
42703         * lib/propername.c (proper_name_utf8): Don't use the transliterated
42704         result if it contains question marks.
42705         Reported by Michael Geng <linux@michaelgeng.de>.
42706
42707 2008-06-19  Bruno Haible  <bruno@clisp.org>
42708
42709         Fix CVS-ism.
42710         * doc/gnulib.texi: Include updated-stamp.texi.
42711         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
42712         (updated-stamp.texi): New rule.
42713         (gnulib.info): Depend on it.
42714         * doc/.gitignore: Add updated-stamp.texi.
42715         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
42716
42717 2008-06-19  Bruno Haible  <bruno@clisp.org>
42718
42719         * doc/Makefile (gnulib.info): Update and simplify dependencies.
42720         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42721
42722 2008-06-19  Eric Blake  <ebb9@byu.net>
42723
42724         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
42725         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
42726         Reported by Stepan Kasal.
42727
42728 2008-06-18  Bruno Haible  <bruno@clisp.org>
42729
42730         * lib/fatal-signal.c (init_fatal_signals): Add comment.
42731         Reported by Eric Blake.
42732
42733 2008-06-18  Eric Blake  <ebb9@byu.net>
42734
42735         Work around cygwin 1.5.25 strsignal bug.
42736         * tests/test-strsignal.c: Allow for const char *.
42737         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
42738
42739 2008-06-18  Simon Josefsson  <simon@josefsson.org>
42740
42741         * users.txt: Update URL to article and add author/date
42742         information.
42743
42744 2008-06-17  Bruno Haible  <bruno@clisp.org>
42745
42746         New macro gl_DISABLE_THREADS.
42747         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
42748         if the user did not pass --enable-threads or --disable-threads option.
42749         (gl_DISABLE_THREADS): New macro.
42750         Reported by Eric Blake <ebb9@byu.net>.
42751
42752 2008-06-17  Bruno Haible  <bruno@clisp.org>
42753
42754         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
42755         when the macro ignores it.
42756         Based on a patch by Eric Blake <ebb9@byu.net>.
42757
42758 2008-06-17  Bruno Haible  <bruno@clisp.org>
42759
42760         * modules/tls (License): Change to LGPLv2+.
42761         Reported by Eric Blake.
42762
42763 2008-06-17  Eric Blake  <ebb9@byu.net>
42764
42765         Simplify c-stack prerequisites.
42766         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
42767         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
42768         no longer requires <ucontext.h> to exist.  Optimize setrlimit
42769         check.
42770         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
42771         <sys/resource.h>.
42772
42773         Move c-stack test into testsuite.
42774         * modules/c-stack-tests: New file.
42775         * lib/c-stack.c [DEBUG]: Move test program...
42776         * tests/test-c-stack.c: ...into this new file.  Skip rather than
42777         fail test if sigaltstack is lacking.
42778         * tests/test-c-stack.sh: New driver file.
42779
42780 2008-06-16  Eric Blake  <ebb9@byu.net>
42781
42782         Use raise module consistently.
42783         * modules/fatal-signal (Depends-on): Add raise.
42784         * modules/sigprocmask (Depends-on): Likewise.
42785         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
42786         * lib/sigprocmask.c (sigprocmask): Likewise.
42787         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42788         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
42789
42790         Fix compliance bug in sigpending.
42791         * lib/sigprocmask.c (sigpending): Return pending array via
42792         parameter, not return value.
42793
42794 2008-06-14  Eric Blake  <ebb9@byu.net>
42795
42796         Improve obstack-printf test code.
42797         * tests/test-obstack-printf.c (test_function): Fix comment, and
42798         simplify usage of obstack_* in macros.  Add a test for coverage.
42799         Reported by Bruno Haible.
42800
42801 2008-06-14  Bruno Haible  <bruno@clisp.org>
42802
42803         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
42804         array size as a constant, not as a const variable.
42805         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
42806         AC_USE_SYSTEM_EXTENSIONS.
42807         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42808         Test whether the obstack_printf function actually exists.
42809         * modules/obstack-printf (Depends-on): Add extensions.
42810         (Include): Remove obstack.h.
42811         * modules/obstack-printf-posix (Depends-on): Add extensions.
42812         (Include): Remove obstack.h.
42813
42814 2008-06-13  Eric Blake  <ebb9@byu.net>
42815
42816         Add obstack-printf and obstack-printf-posix modules.
42817         * modules/obstack-printf: New file.
42818         * modules/obstack-printf-posix: Likewise.
42819         * MODULES.html.sh (Misc): Mention them.
42820         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42821         Likewise.
42822         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42823         Likewise.
42824         * modules/stdio (Makefile.am): Accomodate new modules.
42825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42826         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
42827         Declare.
42828         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
42829         functions.
42830         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
42831         (gl_REPLACE_OBSTACK_PRINTF): New macros
42832         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
42833         * tests/test-obstack-printf.c: New file.
42834         * modules/obstack-printf-tests: Likewise.
42835         * modules/obstack-printf-posix-tests: Likewise.
42836
42837 2008-06-11  Bruno Haible  <bruno@clisp.org>
42838
42839         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
42840         * lib/open.c: Include errno.h.
42841         (open): Fail when attempting to write to a file that has a trailing
42842         slash.
42843         * tests/test-open.c (main): Test against trailing slash bug.
42844         * doc/posix-functions/open.texi: Mention the trailing slash bug.
42845
42846 2008-06-10  Bruno Haible  <bruno@clisp.org>
42847
42848         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
42849         for $? to work inside the trap command, with various /bin/sh-s.
42850         * tests/test-vc-list-files-cvs.sh: Likewise.
42851
42852 2008-06-10  Bruno Haible  <bruno@clisp.org>
42853
42854         * lib/acl-internal.h: Don't include gettext.h here.
42855         * lib/set-mode-acl.c: Include gettext.h here.
42856         * lib/copy-acl.c: Likewise.
42857
42858 2008-06-10  Bruno Haible  <bruno@clisp.org>
42859
42860         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
42861         * lib/wait-process.c (wait_subprocess): Likewise.
42862         * lib/execute.h (execute): Add termsigp argument.
42863         * lib/execute.c (execute): Likewise.
42864         * lib/csharpcomp.c (compile_csharp_using_pnet,
42865         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
42866         * lib/csharpexec.c (execute_csharp_using_pnet,
42867         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
42868         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
42869         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
42870         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
42871         is_jikes_present): Update.
42872         * lib/javaexec.c (execute_java_class): Update.
42873         * lib/javaversion.c (execute_and_read_line): Update.
42874         * NEWS: Document the changes.
42875         Reported by Eric Blake.
42876
42877 2008-06-10  Eric Blake  <ebb9@byu.net>
42878
42879         Add missing include.
42880         * tests/test-strstr.c (includes): Add <signal.h>.
42881         * tests/test-strcasestr.c (includes): Likewise.
42882         * tests/test-memmem.c (includes): Likewise.
42883
42884 2008-06-10  Bruno Haible  <bruno@clisp.org>
42885
42886         * lib/wait-process.c (wait_subprocess): Add an assertion.
42887
42888 2008-06-10  Bruno Haible  <bruno@clisp.org>
42889
42890         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
42891
42892 2008-06-10  Bruno Haible  <bruno@clisp.org>
42893
42894         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
42895         using alarm().
42896         * tests/test-strcasestr.c (main): Likewise.
42897         * tests/test-strstr.c (main): Likewise.
42898
42899 2008-06-09  Bruno Haible  <bruno@clisp.org>
42900
42901         Work around the Solaris 10 ACE ACLs ABI change.
42902         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
42903         declare if ACL_NO_TRIVIAL is present.
42904         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
42905         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
42906         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
42907         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
42908         define if ACL_NO_TRIVIAL is present.
42909         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
42910         and use the current ABI.
42911         (file_has_acl): Use same #if condition as elsewhere.
42912         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
42913         in use, and use the current ABI.
42914         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
42915         Reported by Jim Meyering.
42916
42917 2008-06-09  Eric Blake  <ebb9@byu.net>
42918
42919         Work around environments that (stupidly) ignore SIGALRM.
42920         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
42921         before using alarm().
42922         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42923         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42924         Reported by Ian Beckwith <ianb@erislabs.net>.
42925
42926         Produce autobuild blurb earlier in log.
42927         * modules/autobuild (configure.ac-early): Move AB_INIT here.
42928
42929 2008-06-09  Jim Meyering  <meyering@redhat.com>
42930         and OndÅ™ej Vašík  <ovasik@redhat.com>
42931
42932         utimens.c: correct kernel bug work-around
42933         OndÅ™ej Vašík found that the invalid return value of 280 indicates
42934         failure, not success, and the kernel bug we're trying to work
42935         around affects not just the utimensat call, but also the fallback
42936         futimens call.
42937         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
42938         not success.
42939         [HAVE_FUTIMENS]: Use the same work-around, here.
42940
42941 2008-06-09  Jim Meyering  <meyering@redhat.com>
42942
42943         add more guards around definition of ACE_-related code
42944         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
42945         ALLOW and ACE_OWNER are also defined.
42946
42947 2008-06-08  Bruno Haible  <bruno@clisp.org>
42948
42949         * lib/acl-internal.h: Add me as co-author.
42950         * lib/file-has-acl.c: Likewise.
42951         * lib/set-mode-acl.c: Likewise.
42952         * lib/copy-acl.c: Likewise.
42953
42954 2008-06-08  Bruno Haible  <bruno@clisp.org>
42955
42956         Add support for AIX ACLs.
42957         * lib/acl-internal.h (acl_nontrivial): New declaration.
42958         * lib/file-has-acl.c (acl_nontrivial): New function.
42959         (file_has_acl): Add implementation using AIX 4 ACL API.
42960         * lib/set-mode-acl.c (qset_acl): Likewise.
42961         * lib/copy-acl.c (qcopy_acl): Likewise.
42962
42963 2008-06-08  Bruno Haible  <bruno@clisp.org>
42964
42965         Add support for HP-UX ACLs.
42966         * lib/acl-internal.h (acl_nontrivial): New declaration.
42967         * lib/file-has-acl.c (acl_nontrivial): New function.
42968         (file_has_acl): Add implementation using HP-UX 11 ACL API.
42969         * lib/set-mode-acl.c (qset_acl): Likewise.
42970         * lib/copy-acl.c (qcopy_acl): Likewise.
42971
42972 2008-06-08  Bruno Haible  <bruno@clisp.org>
42973
42974         Add support for Cygwin ACLs.
42975         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
42976         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
42977         the chmod_or_fchmod call.
42978         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
42979
42980 2008-06-08  Bruno Haible  <bruno@clisp.org>
42981
42982         Fix bug with setuid modes in Solaris 10+ code.
42983         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
42984         succeeded, when the mode contains some special bits.
42985
42986 2008-06-08  Bruno Haible  <bruno@clisp.org>
42987
42988         Add support for Solaris 7..10 ACLs.
42989         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
42990         declarations.
42991         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
42992         functions.
42993         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
42994         * lib/set-mode-acl.c (qset_acl): Likewise.
42995         * lib/copy-acl.c (qcopy_acl): Likewise.
42996
42997 2008-06-08  Bruno Haible  <bruno@clisp.org>
42998
42999         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
43000         declaration.
43001         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
43002         (acl_access_nontrivial): Remove MacOS X case.
43003         (file_has_acl): Use acl_extended_nontrivial.
43004         * lib/copy-acl.c (qcopy_acl): Likewise.
43005
43006 2008-06-08  Bruno Haible  <bruno@clisp.org>
43007
43008         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
43009
43010 2008-06-08  Jim Meyering  <meyering@redhat.com>
43011
43012         * modules/acl (Maintainer): Add Bruno Haible.
43013
43014 2008-06-07  Bruno Haible  <bruno@clisp.org>
43015
43016         Improve support for Tru64 ACLs.
43017         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
43018         ACL on OSF/1.
43019
43020 2008-06-07  Bruno Haible  <bruno@clisp.org>
43021
43022         Add support for MacOS X ACLs.
43023         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
43024         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
43025         * lib/set-mode-acl.c (qset_acl): Likewise.
43026         * lib/copy-acl.c (qcopy_acl): Likewise.
43027
43028 2008-06-07  Bruno Haible  <bruno@clisp.org>
43029
43030         Fix memory leak introduced on 2008-05-22.
43031         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
43032         use.
43033
43034 2008-06-07  Bruno Haible  <bruno@clisp.org>
43035
43036         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
43037         to construct an empty ACL.
43038
43039 2008-06-07  Bruno Haible  <bruno@clisp.org>
43040
43041         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
43042         precisely.
43043         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
43044
43045 2008-06-07  Bruno Haible  <bruno@clisp.org>
43046
43047         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
43048         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
43049
43050 2008-06-07  Bruno Haible  <bruno@clisp.org>
43051
43052         * doc/posix-functions/_setjmp.texi: Explain the use of this function
43053         regardless of POSIX.
43054         * doc/posix-functions/_longjmp.texi: Likewise.
43055         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
43056         SystemV platform in this case.
43057
43058 2008-06-06  Eric Blake  <ebb9@byu.net>
43059
43060         Document abort() bugs.
43061         * doc/posix-functions/abort.texi (abort): Mention anomalies.
43062
43063         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
43064         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
43065         sigsetjmp.
43066         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
43067         siglongjmp, but only as a macro.
43068         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
43069         is obsolete.
43070         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
43071
43072         Tweak documentation to cover cygwin argz bugs.
43073         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
43074         argz bug fix; no code change needed since no cygwin releases
43075         occurred between the last fix and the bug being tested.
43076         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
43077         module and recently fixed cygwin bugs.
43078         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
43079         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
43080         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
43081         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
43082         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
43083         Likewise.
43084         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
43085         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
43086         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
43087         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
43088         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
43089         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43090         Likewise.
43091
43092         Avoid gcc warning on cygwin.
43093         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
43094         !ACL_NO_TRIVIAL]: Avoid unused variable.
43095
43096 2008-06-05  Eric Blake  <ebb9@byu.net>
43097
43098         Be tolerant of UNKNOWN version in gnulib-tool test dir.
43099         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
43100         git-version-gen fails to come up with a version.
43101         Reported by Simon Josefsson.
43102
43103 2008-06-05  Jim Meyering  <meyering@redhat.com>
43104             Paul Eggert  <eggert@cs.ucla.edu>
43105
43106         utimens.c: work around a probable Linux kernel bug
43107         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
43108         appears to be a kernel bug that causes utimensat to return 280
43109         instead of 0, indicating success.
43110
43111 2008-06-04  Bruno Haible  <bruno@clisp.org>
43112
43113         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
43114         2008-06-01 commit.
43115
43116 2008-06-04  Bruno Haible  <bruno@clisp.org>
43117
43118         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
43119         * lib/file-has-acl.c (acl_access_nontrivial): New function.
43120         (file_has_acl): Use it. Save errno afterwards.
43121         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
43122
43123 2008-06-03  Bruno Haible  <bruno@clisp.org>
43124
43125         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
43126         draft code. Simplify #ifs.
43127         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
43128         Put Solaris code after POSIX-draft code. Fix comments regarding
43129         Solaris 10, HP-UX. Mention Cygwin.
43130         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
43131
43132 2008-06-03  Eric Blake  <ebb9@byu.net>
43133
43134         Provide fallback for older kernels.
43135         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
43136         Provide runtime fallback if kernel lacks support.
43137         Reported by Mike Frysinger.
43138
43139 2008-06-02  Bruno Haible  <bruno@clisp.org>
43140
43141         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
43142         it exists.
43143
43144 2008-06-02  Bruno Haible  <bruno@clisp.org>
43145
43146         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
43147         * lib/copy-acl.c (qcopy_acl): Update comment.
43148
43149 2008-06-02  Bruno Haible  <bruno@clisp.org>
43150
43151         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
43152         like ACL APIs.
43153
43154 2008-06-02  Bruno Haible  <bruno@clisp.org>
43155
43156         * tests/test-file-has-acl.sh: Use different code for Cygwin.
43157         * tests/test-set-mode-acl.sh: Likewise.
43158         * tests/test-copy-acl.sh: Likewise.
43159         * tests/test-copy-file.sh: Likewise.
43160
43161 2008-06-02  Bruno Haible  <bruno@clisp.org>
43162
43163         * tests/test-file-has-acl.sh: Remove unused code.
43164
43165 2008-06-01  Bruno Haible  <bruno@clisp.org>
43166
43167         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
43168         (copy_acl): Just a wrapper around qcopy_acl that emits the error
43169         messages.
43170         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
43171
43172 2008-06-01  Bruno Haible  <bruno@clisp.org>
43173
43174         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
43175         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
43176         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
43177         APIs.
43178         * modules/acl-tests (configure.ac): Remove tests now contained in
43179         m4/acl.m4.
43180
43181 2008-06-02  Jim Meyering  <meyering@redhat.com>
43182
43183         announce-gen: use a better key-server host name
43184         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
43185         it may be more consistently reliable.  Suggested by Werner Koch
43186         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
43187
43188 2008-06-01  Bruno Haible  <bruno@clisp.org>
43189
43190         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
43191         Reported by Voroskoi Andras <voroskoi@gmail.com>.
43192
43193 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
43194
43195         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
43196
43197 2008-06-01  Bruno Haible  <bruno@clisp.org>
43198
43199         New ACL tests.
43200         * tests/test-file-has-acl.sh: New file.
43201         * tests/test-file-has-acl.c: New file.
43202         * tests/test-set-mode-acl.sh: New file.
43203         * tests/test-set-mode-acl.c: New file.
43204         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
43205         * tests/test-copy-acl.c: New file.
43206         * modules/acl-tests: New file, based on modules/copy-file-tests.
43207         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
43208         (Depends-on): Add acl-tests.
43209         (configure.ac): Remove checks.
43210         (Makefile.am): Don't create test-sameacls program here any more.
43211
43212 2008-06-01  Bruno Haible  <bruno@clisp.org>
43213
43214         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
43215         * tests/test-sameacls.c: Include progname.h.
43216         (main): Invoke set_program_name. Portability fixes for MacOS X,
43217         Solaris, HP-UX.
43218
43219 2008-06-01  Bruno Haible  <bruno@clisp.org>
43220
43221         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
43222         function.
43223         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
43224
43225 2008-06-01  Bruno Haible  <bruno@clisp.org>
43226
43227         * modules/rpmatch (Depends-on): Add strdup.
43228
43229 2008-06-01  Bruno Haible  <bruno@clisp.org>
43230
43231         * lib/pipe.c: Include unistd-safer.h.
43232         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
43233         * modules/pipe (Depends-on): Add unistd-safer.
43234
43235 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43236
43237         * modules/autobuild (configure.ac): Call AB_INIT.
43238
43239 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43240
43241         * tests/test-getaddrinfo.c: Don't print debug messages by default.
43242         Suggested by Bruno Haible <bruno@clisp.org>.
43243
43244 2008-05-30  Simon Josefsson  <simon@josefsson.org>
43245
43246         * tests/test-base64.c: Cast size_t to unsigned long when invoking
43247         printf.  Use %lu instead of %d.  Reported by Bruno Haible
43248         <bruno@clisp.org>.
43249
43250 2008-05-29  Eric Blake  <ebb9@byu.net>
43251
43252         Prefer new POSIX 200x interfaces over futimesat.
43253         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
43254         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
43255         when available.
43256         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
43257
43258 2008-05-28  Bruno Haible  <bruno@clisp.org>
43259
43260         * modules/stpcpy (License): Change to LGPLv2+.
43261         Requested by David Lutterkort <dlutter@redhat.com>.
43262
43263 2008-05-27  Bruno Haible  <bruno@clisp.org>
43264
43265         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
43266         current mingw.
43267         Reported by Jose E. Marchesi <jemarch@gnu.org>.
43268
43269 2008-05-27  Bruno Haible  <bruno@clisp.org>
43270
43271         * modules/iconv_open (Link): New section, from module 'iconv'.
43272         * modules/striconv (Link): Likewise.
43273         * modules/striconveh (Link): Likewise.
43274         * modules/xstriconv (Link): Likewise.
43275         * modules/unicodeio (Link): Likewise.
43276         * modules/propername (Link): Likewise.
43277         Reported by Jim Meyering.
43278
43279 2008-05-26  Jim Meyering  <meyering@redhat.com>
43280
43281         sha256: do not artificially restrict buffer length to be < 2^32
43282         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
43283         uint32_t to size_t.
43284         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
43285         to match.
43286
43287         avoid unaligned access errors, e.g., on sparc
43288         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
43289         direct access through a possibly-unaligned uint64* pointer.
43290         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
43291         direct access through a possibly-unaligned uint32* pointer.
43292         Prompted by this patch from Tom "spot" Callaway:
43293         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
43294
43295         sha512.c: fix typo in comment
43296         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
43297
43298 2008-05-25  Bruno Haible  <bruno@clisp.org>
43299
43300         * lib/set-mode-acl.c: Renamed from lib/acl.c.
43301         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
43302         (Makefile.am): Update lib_SOURCES.
43303
43304 2008-05-25  Bruno Haible  <bruno@clisp.org>
43305
43306         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
43307
43308 2008-05-25  Jim Meyering  <meyering@redhat.com>
43309
43310         useless-if-before-free: freed expr may have white-space differences
43311         * build-aux/useless-if-before-free: Recognize cases in which the
43312         freed expression differs from the tested one in embedded white
43313         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
43314         $1 was used, so we can't make any regexp shy.  Improved tests now
43315         detect this.
43316
43317         useless-if-before-free: accept white space in the expression.
43318         * build-aux/useless-if-before-free: For now, any white space
43319         in the expression must be identical in the free argument.
43320
43321         useless-if-before-free: efficiency tweak
43322         * build-aux/useless-if-before-free: Make the expression-matching
43323         regexp "shy".
43324         Make the *outer* regexp shy, not the expr-matching one.
43325
43326         update code-in-comment to accept cast of free arg
43327         * build-aux/useless-if-before-free: Update regexp.
43328
43329 2008-05-25  Bruno Haible  <bruno@clisp.org>
43330
43331         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
43332         * modules/copy-file-tests (Files, Makefile.am): Update.
43333         * tests/test-copy-file.c (func_test_copy): Update.
43334
43335 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
43336
43337         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
43338
43339 2008-05-23  Bruno Haible  <bruno@clisp.org>
43340
43341         Improve support for ACLs on OSF/1.
43342         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
43343         Remove fallback for unknown flavors of ACLs.
43344
43345 2008-05-22  Bruno Haible  <bruno@clisp.org>
43346
43347         Add support for ACLs on OSF/1.
43348         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
43349         replacements.
43350         (acl_free_text): New macro fallback.
43351         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
43352         acl_free.
43353         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
43354         acl_free_text function. Require AC_C_INLINE.
43355
43356 2008-05-22  Bruno Haible  <bruno@clisp.org>
43357
43358         Make copy_acl work on MacOS X 10.5.
43359         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
43360         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
43361         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
43362         If MODE_INSIDE_ACL, don't assume that every system has the same text
43363         representation for ACLs as FreeBSD.
43364         * lib/copy-acl.c (copy_acl): Add support for platforms with
43365         !MODE_INSIDE_ACL.
43366         * lib/file-has-acl.c (file_has_acl): Likewise.
43367         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
43368         FreeBSD, MacOS X, or IRIX, respectively.
43369
43370 2008-05-22  Bruno Haible  <bruno@clisp.org>
43371
43372         * lib/acl.h: Don't include <sys/acl.h>.
43373         (GETACLCNT): Move fallback to lib/acl-internal.h.
43374         * lib/acl-internal.h: Include <sys/acl.h> here.
43375         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
43376
43377 2008-05-22  Bruno Haible  <bruno@clisp.org>
43378
43379         Split off copy_acl function to separate file.
43380         * lib/copy-acl.c: New file, extracted from lib/acl.c.
43381         * lib/acl.c (copy_acl): Moved function to separate file.
43382         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
43383         * modules/acl (Files): Add lib/copy-acl.c.
43384         (Makefiles.am): Augment lib_SOURCES.
43385
43386 2008-05-22  Bruno Haible  <bruno@clisp.org>
43387
43388         * modules/copy-file-tests: New file.
43389         * tests/test-copy-file.sh: New file.
43390         * tests/test-copy-file.c: New file.
43391         * tests/test-copy-file-sameacls.c: New file.
43392
43393 2008-05-22  Eric Blake  <ebb9@byu.net>
43394
43395         Avoid gcc warning.
43396         * tests/test-memcmp.c (main): Pass NULL indirectly.
43397
43398 2008-05-21  Bruno Haible  <bruno@clisp.org>
43399
43400         Add reference doc about ACLs.
43401         * doc/acl-resources.txt: New file.
43402         * doc/acl-cygwin.txt: New file.
43403
43404 2008-05-21  Bruno Haible  <bruno@clisp.org>
43405
43406         Avoid one more warning from gcc.
43407         * lib/vasnprintf.c (IF_LINT): Update comments.
43408         (VASNPRINTF): Use it also for the 'prefix' array initializer.
43409
43410 2008-05-21  Jim Meyering  <meyering@redhat.com>
43411
43412         avoid a warning from gcc
43413         * lib/vasnprintf.c (IF_LINT): Define.
43414         (scale10_round_decimal_long_double):
43415         Use it to avoid a "may be used uninitialized" warning.
43416         (scale10_round_decimal_double): Likewise.
43417
43418 2008-05-21  Simon Josefsson  <simon@josefsson.org>
43419
43420         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
43421         declared.
43422
43423 2008-05-20  Bruno Haible  <bruno@clisp.org>
43424
43425         * tests/test-memcmp.c (main): Test also the sign of the result. Test
43426         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
43427
43428 2008-05-20  Simon Josefsson  <simon@josefsson.org>
43429
43430         * modules/memcmp-tests: New file.
43431         * tests/test-memcmp.c: New file.
43432
43433 2008-05-19  Bruno Haible  <bruno@clisp.org>
43434
43435         * modules/propername (Notice, configure.ac): Put quoted "..." into
43436         --keyword option.
43437         * lib/propername.h: Update comments accordingly.
43438         Reported by Eric Blake.
43439
43440 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
43441
43442         * modules/getpass-gnu (Depends-on): Add fseeko.
43443
43444 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43445
43446         * modules/base64-tests: New file.
43447
43448 2008-05-19  Bo Borgerson <gigabo@gmail.com>
43449
43450         * lib/base64.c (base64_decode_ctx): If a decode context structure
43451         was passed in use it to ignore newlines.  If a context structure
43452         was _not_ passed in, continue to treat newlines as garbage (this
43453         is the historical behavior).  Formerly base64_decode.
43454         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43455         takes a decode context structure.
43456         * lib/base64.h (base64_decode): Macro for four-argument calls.
43457         (base64_decode_alloc): Likewise.
43458         * lib/base64.c (base64_decode_ctx): If a decode context structure
43459         was passed in use it to ignore newlines.  If a context structure
43460         was _not_ passed in, continue to treat newlines as garbage (this
43461         is the historical behavior).  Formerly base64_decode.
43462         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
43463         takes a decode context structure.
43464         * lib/base64.h (base64_decode): Macro for four-argument calls.
43465         (base64_decode_alloc): Likewise.
43466
43467 2008-05-19  Jim Meyering  <meyering@redhat.com>
43468
43469         avoid a warning from gcc
43470         * lib/trim.c (IF_LINT): Define.
43471         (trim2): Use it to avoid a "may be used uninitialized" warning.
43472
43473         Fix doc typo.
43474         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
43475
43476 2008-05-19  Bruno Haible  <bruno@clisp.org>
43477
43478         * doc/glibc-functions/getpass.texi: Document limits of other
43479         implementations.
43480
43481 2008-05-19  Simon Josefsson  <simon@josefsson.org>
43482             Bruno Haible <bruno@clisp.org>
43483
43484         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
43485
43486 2008-05-18  Bruno Haible  <bruno@clisp.org>
43487
43488         * modules/propername: New file, from GNU gettext.
43489         * lib/propername.h: New file, from GNU gettext.
43490         * lib/propername.c: New file, from GNU gettext.
43491         * MODULES.html.sh (Internationalization functions): Add propername.
43492
43493 2008-05-16  Jim Meyering  <meyering@redhat.com>
43494             Bruno Haible  <bruno@clisp.org>
43495
43496         Avoid some warnings from "gcc -Wshadow".
43497         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
43498
43499 2008-05-15  Eric Blake  <ebb9@byu.net>
43500
43501         Extend previous patch to cygwin 1.7.0.
43502         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
43503         fast implementation in cygwin >= 1.7.0.
43504         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43505         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43506
43507 2008-05-15  Bruno Haible  <bruno@clisp.org>
43508
43509         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
43510         implementation in glibc >= 2.9.
43511         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43512         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43513
43514 2008-05-15  Bruno Haible  <bruno@clisp.org>
43515
43516         * MODULES.html.sh (Internationalization functions): Remove linebreak.
43517         (Unicode string functions): Add unilbrk/*.
43518         Reported by Karl Berry.
43519
43520 2008-05-15  Eric Blake  <ebb9@byu.net>
43521
43522         Fix violation of <stdbool.h> replacement in regex.
43523         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
43524         * lib/regexec.c (re_search_internal): Likewise.
43525         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
43526
43527 2008-05-15  Jim Meyering  <meyering@redhat.com>
43528
43529         avoid distracting test output when git or cvs is not found
43530         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
43531         * tests/test-vc-list-files-git.sh: Likewise.
43532
43533 2008-05-15  Eric Blake  <ebb9@byu.net>
43534
43535         Glibc finally accepted the memmem speedup code, bugzilla #5514.
43536         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
43537         glibc version.
43538         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43539         * doc/posix-functions/strstr.texi (strstr): Likewise.
43540         * lib/str-two-way.h (MAX): Sychronize with glibc.
43541
43542 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
43543
43544         * lib/regcomp.c (optimize_utf8): Add a note on why we test
43545         opr.ctx_type.
43546         (calc_first): Initialize constraint field.
43547         (duplicate_node_closure): Use it instead of special casing ANCHORS.
43548         Fix grammar.
43549         (duplicate_node): Merge constraint field for all node types.
43550         (calc_eclosure_iter): Look at constraint field for all node types.
43551         * lib/regex_internal.c (create_cd_newstate): Don't look at
43552         opr.ctx_type.
43553
43554 2008-05-14  Bruno Haible  <bruno@clisp.org>
43555
43556         Help GCC to do better code generation.
43557         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
43558         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43559         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
43560         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
43561         Declare with attribute 'malloc' if supported.
43562
43563 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
43564
43565         use "echo STR|wc -c" rather than unportable "expr length STR"
43566         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
43567         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
43568
43569 2008-05-14  Jim Meyering  <meyering@redhat.com>
43570
43571         use dd ibs=$n count=1 ... rather than less-portable head -c$n
43572         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
43573         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
43574         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
43575         via Collin Lasse.
43576
43577 2008-05-14  Eric Blake  <ebb9@byu.net>
43578
43579         Avoid quadratic growth in gl_LIBSOURCES.
43580         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
43581         Suggested by Bruno Haible.
43582
43583         Test xmemdup0.
43584         * modules/xmemdup0-tests: New file.
43585         * tests/test-xmemdup0.c: Likewise.
43586
43587 2008-05-13  Eric Blake  <ebb9@byu.net>
43588
43589         Split xmemdup0 into its own module.
43590         * modules/xmemdup0: New file.
43591         * lib/xmemdup0.h: Likewise.
43592         * lib/xmemdup0.c: Likewise.
43593         * MODULES.html.sh (Memory management functions): Add xmemdup0.
43594         * lib/xalloc.h (xmemdup0): Remove.
43595         * lib/xmalloc.c (xmemdup0): Likewise.
43596
43597 2008-05-13  Eric Blake  <ebb9@byu.net>
43598             Bruno Haible  <bruno@clisp.org>
43599
43600         Reduce number of forks required during autoconf.
43601         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
43602         and gl_LIBSOURCES_DIR.
43603         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
43604         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
43605         m4_syscmd per file.
43606         <m4_foreach_w>: Move...
43607         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
43608
43609 2008-05-13  Eric Blake  <ebb9@byu.net>
43610
43611         * gnulib-tool: Fix various comment typos.
43612
43613 2008-05-12  Bruno Haible  <bruno@clisp.org>
43614
43615         Tailor the linebreaking algorithm.
43616         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
43617
43618 2008-05-12  Bruno Haible  <bruno@clisp.org>
43619
43620         Update to Unicode 5.0.0.
43621         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43622         LBP_JV, LBP_JT. Redistribute values.
43623         (unilbrk_table): Change size.
43624         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
43625         Unicode TR#14 rev. 22.
43626         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
43627         LBP_JV, LBP_JT. Redistribute values.
43628         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
43629         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
43630         Update.
43631         * lib/unilbrk/lbrkprop1.h: Regenerated.
43632         * lib/unilbrk/lbrkprop2.h: Regenerated.
43633         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
43634         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
43635         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
43636         Likewise.
43637         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
43638         Likewise.
43639         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
43640         result.
43641         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43642         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43643         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
43644         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
43645         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
43646         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
43647
43648 2008-05-11  Bruno Haible  <bruno@clisp.org>
43649
43650         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
43651
43652 2008-05-11  Bruno Haible  <bruno@clisp.org>
43653
43654         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
43655         * modules/unilbrk/gen-lbrk: New file.
43656
43657 2008-05-11  Bruno Haible  <bruno@clisp.org>
43658
43659         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
43660         * m4/sha512.m4 (gl_SHA512): Likewise.
43661
43662 2008-05-11  Jim Meyering  <meyering@redhat.com>
43663
43664         New modules: crypto/sha256, crypto/sha512 (from coreutils)
43665         * modules/crypto/sha256: New file.
43666         * modules/crypto/sha512: Likewise.
43667         * lib/sha256.c: Likewise.
43668         * lib/sha256.h: Likewise.
43669         * lib/sha512.c: Likewise.
43670         * lib/sha512.h: Likewise.
43671         * lib/u64.h: Likewise.
43672         * m4/sha256.m4: Likewise.
43673         * m4/sha512.m4: Likewise.
43674         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
43675
43676 2008-05-10  Bruno Haible  <bruno@clisp.org>
43677
43678         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
43679         (Input/Output <stdio.h>): Add xprintf.
43680         (Signal handling <signal.h>): Add strsignal.
43681         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
43682         (Core language properties): Add func.
43683         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
43684         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
43685         strings.
43686         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
43687         (Input/output): New section.
43688         (File system functions): Add openat-die, stat-macros.
43689         (Networking functions): Add sockets.
43690         (Unicode string functions): Add unictype/*.
43691         (Support for building libraries and executables): Add gperf.
43692         (Support for building documentation): Add agpl-3.0.
43693         (Misc): Add nocrash.
43694
43695 2008-05-10  Bruno Haible  <bruno@clisp.org>
43696
43697         * modules/unictype/gen-ctype: New file.
43698
43699 2008-05-10  Jim Meyering  <meyering@redhat.com>
43700
43701         Make chdir-safer.c more efficient on a system with no symlinks.
43702         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
43703         also if ELOOP is zero.  Suggested by Bruno Haible.
43704
43705         Make chdir-safer.c slightly safer.
43706         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
43707         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
43708
43709         Avoid compile failure on systems without ELOOP (like mingw).
43710         * lib/chdir-safer.c (ELOOP): Define if not already defined.
43711         Reported by Bruno Haible.
43712
43713 2008-05-10  Bruno Haible  <bruno@clisp.org>
43714
43715         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
43716         (is_utf8_encoding): Use a case-insensitive comparison.
43717         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
43718         streq.
43719
43720 2008-05-10  Bruno Haible  <bruno@clisp.org>
43721
43722         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
43723         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
43724         * lib/unilbrk/ulc-common.h (iconv_string_length,
43725         iconv_string_keeping_offsets): Remove declarations.
43726         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
43727         Don't include <iconv.h>, streq.h, xsize.h.
43728         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
43729         conversion.
43730         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
43731         <iconv.h>, streq.h, xsize.h.
43732         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
43733         conversion.
43734         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
43735         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
43736         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
43737         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
43738
43739 2008-05-10  Bruno Haible  <bruno@clisp.org>
43740
43741         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
43742         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
43743
43744         * modules/unilbrk/u32-width-linebreaks-tests: New file.
43745         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
43746
43747         * modules/unilbrk/u16-width-linebreaks-tests: New file.
43748         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
43749
43750         * modules/unilbrk/u8-width-linebreaks-tests: New file.
43751         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
43752
43753         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
43754         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
43755
43756         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
43757         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
43758
43759         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
43760         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
43761
43762         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
43763         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
43764
43765 2008-05-10  Bruno Haible  <bruno@clisp.org>
43766
43767         Split up 'linebreak' module.
43768         * lib/unilbrk.h: New file, based on lib/linebreak.h.
43769         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
43770         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
43771         modifications.
43772         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
43773         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
43774         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
43775         lib/linebreak.c.
43776         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
43777         lib/linebreak.c.
43778         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
43779         lib/linebreak.c.
43780         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
43781         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
43782         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
43783         lib/linebreak.c.
43784         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
43785         lib/linebreak.c.
43786         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
43787         lib/linebreak.c.
43788         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
43789         lib/linebreak.c.
43790         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
43791         lib/linebreak.c.
43792         * modules/unilbrk/base: New file.
43793         * modules/unilbrk/tables: New file.
43794         * modules/unilbrk/u8-possible-linebreaks: New file.
43795         * modules/unilbrk/u16-possible-linebreaks: New file.
43796         * modules/unilbrk/u32-possible-linebreaks: New file.
43797         * modules/unilbrk/ulc-common: New file.
43798         * modules/unilbrk/ulc-possible-linebreaks: New file.
43799         * modules/unilbrk/u8-width-linebreaks: New file.
43800         * modules/unilbrk/u16-width-linebreaks: New file.
43801         * modules/unilbrk/u32-width-linebreaks: New file.
43802         * modules/unilbrk/ulc-width-linebreaks: New file.
43803         * lib/linebreak.h: Remove file.
43804         * lib/linebreak.c: Remove file.
43805         * m4/linebreak.m4: Remove file.
43806         * modules/linebreak: Remove file.
43807         * NEWS: Mention the changes.
43808
43809 2008-05-09  Eric Blake  <ebb9@byu.net>
43810
43811         Add xmemdup0.
43812         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
43813         implementation.
43814         * lib/xmalloc.c (xmemdup0): New C implementation.
43815
43816 2008-05-08  Bruno Haible  <bruno@clisp.org>
43817
43818         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
43819
43820 2008-05-07  Eric Blake  <ebb9@byu.net>
43821
43822         Support cross-compilation of <wctype.h>.
43823         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
43824         AC_CACHE_CHECK.
43825
43826 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
43827
43828         * build-aux/vc-list-files: Add support for bzr.
43829
43830 2008-05-03  Jim Meyering  <meyering@redhat.com>
43831
43832         avoid failed assertion with tight malloc
43833         * tests/test-getndelim2.c: Correct an off-by-one assertion.
43834
43835 2008-05-03  Simon Josefsson  <simon@josefsson.org>
43836
43837         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
43838         are needed from arpa/inet.h.
43839         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
43840         Reported by Bruno Haible.
43841
43842 2008-05-02  Jim Meyering  <meyering@redhat.com>
43843
43844         avoid compilation error on FreeBSD 6
43845         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
43846
43847 2008-05-01  Jim Meyering  <meyering@redhat.com>
43848
43849         useless-if-before-free: correct --help's exit status description
43850         * build-aux/useless-if-before-free (usage): Like grep, exit 0
43851         for one or more matches, etc.  Reported by Bruno Haible.
43852
43853         vc-list-files: make the stand-alone gnulib test work
43854         * modules/vc-list-files-tests (configure.ac):
43855         Define and AC_SUBST abs_aux_dir.
43856         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
43857         $(abs_top_srcdir) to each script and having each of them
43858         duplicate the work of setting PATH, set PATH here, using
43859         the new variable, abs_aux_dir instead.
43860         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
43861         * tests/test-vc-list-files-git.sh: Likewise.
43862         Reported by Bruno Haible.
43863
43864 2008-05-01  Bruno Haible  <bruno@clisp.org>
43865
43866         * lib/getndelim2.c (getndelim2): Fix newsize computation during
43867         reallocation. Rename 'done' to 'found_delimiter'.
43868
43869 2008-05-01  Jim Meyering  <meyering@redhat.com>
43870
43871         vc-list-files: accommodate /bin/sh like the one from Solaris 10
43872         * build-aux/vc-list-files: Use `...`, not $(...).
43873
43874 2008-04-30  Jim Meyering  <meyering@redhat.com>
43875
43876         add tests for vc-list-files
43877         * modules/vc-list-files-tests: New module.
43878         * tests/test-vc-list-files-cvs.sh: New file.
43879         * tests/test-vc-list-files-git.sh: New file.
43880
43881         avoid a warning from gcc
43882         * lib/getndelim2.c (IF_LINT): Define.
43883         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
43884
43885         vc-list-files: work properly with build-aux/cvsu, too
43886         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
43887         to all cvs-based clauses.
43888
43889         vc-list-files: work properly in the CVS+awk case, too
43890         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
43891
43892         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
43893         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
43894         take more than one file argument, so .  Add quotes, just in case $dir
43895         ever contains a shell meta-character.  Prompted by Soren Hansen in
43896         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
43897
43898 2008-04-29  Eric Blake  <ebb9@byu.net>
43899
43900         Optimize getndelim2 to use block operations when possible.
43901         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
43902         freadseek, and memchr2.
43903         * lib/getndelim2.c (getndelim2): Use them for block reads.
43904
43905 2008-04-29  Bruno Haible  <bruno@clisp.org>
43906
43907         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
43908         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43909         * modules/inet_ntop (Depends-on): Add extensions.
43910         * modules/inet_pton (Depends-on): Likewise.
43911         Reported by Simon Josefsson.
43912
43913 2008-04-29  Jim Meyering  <meyering@redhat.com>
43914
43915         When the is more than one match in a block, match all of them.
43916         * build-aux/useless-if-before-free: Iterate through each block
43917         until there are no more matches.
43918
43919         Fix broken useless-if-before-free script.
43920         * build-aux/useless-if-before-free: Fix typo: missing "?" after
43921         the expression to match cast of argument to free-like function.
43922
43923 2008-04-29  Eric Blake  <ebb9@byu.net>
43924
43925         Use new header.
43926         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
43927
43928 2008-04-29  Jim Meyering  <meyering@redhat.com>
43929
43930         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
43931         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
43932         by gnulib to exist and to declare e.g., inet_ntop.
43933         Don't include "inet_ntop.h", now removed.
43934
43935         * m4/arpa_inet_h.m4: Remove trailing blanks.
43936
43937 2008-04-29  Eric Blake  <ebb9@byu.net>
43938
43939         Silence valgrind on safe reads beyond potential array bounds.
43940         * lib/rawmemchr.valgrind: New file.
43941         * lib/strchrnul.valgrind: Likewise.
43942         * modules/rawmemchr (Files): Distribute new file.
43943         * modules/strchrnul (Files): Likewise.
43944         Suggested by Bruno Haible.
43945
43946 2008-04-29  Bruno Haible  <bruno@clisp.org>
43947
43948         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
43949         (inet_ntop, inet_pton): Change portability warning's wording.
43950         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
43951         Invoke gl_CHECK_NEXT_HEADERS.
43952         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
43953         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
43954         set ARPA_INET_H.
43955         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43956         * modules/arpa_inet (Description): No longer only for systems that
43957         lack it.
43958         (Depends-on): Add include_next.
43959         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
43960         HAVE_ARPA_INET_H.
43961
43962 2008-04-29  Jim Meyering  <meyering@redhat.com>
43963
43964         * modules/mkdir (License): Re-license as LGPLv2+.
43965
43966 2008-04-29  Bruno Haible  <bruno@clisp.org>
43967
43968         * modules/rawmemchr (Maintainer): Set to Eric.
43969         * modules/strchrnul (Maintainer): Likewise.
43970
43971 2008-04-29  Simon Josefsson  <simon@josefsson.org>
43972
43973         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
43974         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
43975
43976         * modules/arpa_inet (arpa/inet.h): Use them.
43977
43978 2008-04-28  Eric Blake  <ebb9@byu.net>
43979
43980         Test getndelim2.
43981         * modules/getndelim2-tests: New file.
43982         * tests/test-getndelim2.c: Likewise.
43983         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
43984         stream.
43985         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
43986
43987         * MODULES.html.sh: Document new module.
43988
43989 2008-04-20  Bruno Haible  <bruno@clisp.org>
43990
43991         * lib/c-stack.c (die): Use raise.
43992         * modules/c-stack (Depends-on): Add raise.
43993
43994 2008-04-28  Bruno Haible  <bruno@clisp.org>
43995
43996         Expect rpmatch to be declared.
43997         * lib/yesno.c (rpmatch): Remove declaration.
43998
43999         Declare rpmatch.
44000         * lib/stdlib.in.h (rpmatch): New declaration.
44001         * lib/rpmatch.c: Include <stdlib.h> first.
44002         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
44003         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
44004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
44005         HAVE_RPMATCH.
44006         * modules/rpmatch (Depends-on): Add stdlib, extensions.
44007         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44008         (Include): Set to <stdlib.h>.
44009         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
44010         HAVE_RPMATCH.
44011         * NEWS: Document the change.
44012
44013 2008-04-28  Bruno Haible  <bruno@clisp.org>
44014
44015         Change rpmatch to use nl_langinfo when appropriate.
44016         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
44017         (N_): New macro.
44018         (localized_pattern): New function/macro.
44019         (try): Remove match, nomatch arguments. Copy the pattern into safe
44020         memory before caching it.
44021         (rpmatch): Use localized_pattern. Add translator comments.
44022         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
44023         Suggested by Eric Blake.
44024         * modules/rpmatch (Depends-on): Add stdbool.
44025
44026 2008-04-28  Eric Blake  <ebb9@byu.net>
44027
44028         Add rawmemchr module, matching glibc.
44029         * modules/string (Makefile.am): New indicator.
44030         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
44031         * lib/string.in.h (rawmemchr): Declare when appropriate.
44032         * modules/rawmemchr: New file.
44033         * m4/rawmemchr.m4: Likewise.
44034         * lib/rawmemchr.c: Likewise.
44035         * modules/rawmemchr-tests: Likewise.
44036         * tests/test-rawmemchr.c: Likewise.
44037         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
44038         module.
44039         * modules/strchrnul (Depends-on): Add rawmemchr.
44040         * lib/strchrnul.c (strchrnul): Optimize a corner case.
44041
44042         Whitespace cleanup.
44043         * tests/test-strchrnul.c: Reindent.
44044         * lib/strchrnul.c: Likewise.
44045
44046         Optimize and test strchrnul.
44047         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
44048         * modules/strchrnul-tests: New file.
44049         * tests/test-strchrnul.c: Likewise.
44050
44051         Remove intprops dependency.
44052         * modules/memchr (Depends-on): Remove intprops.
44053         * modules/memrchr (Depends-on): Likewise.
44054         * modules/memchr2 (Depends-on): Likewise.
44055         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
44056         * lib/memrchr.c (__memrchr): Likewise.
44057         * lib/memrchr2.c (memchr2): Likewise.
44058         Reported by Simon Josefsson.
44059
44060 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44061
44062         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
44063         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44064
44065 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44066
44067         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
44068
44069         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
44070
44071         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
44072
44073         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
44074         declarations.
44075         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
44076
44077         * m4/inet_pton.m4: Don't check for header files.
44078
44079         * m4/inet_ntop.m4: Don't check for header files.
44080
44081 2008-04-28  Simon Josefsson  <simon@josefsson.org>
44082
44083         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
44084         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
44085         trigger for cygwin).
44086         Reported by Bruno Haible  <bruno@clisp.org>.
44087
44088 2008-04-28  Bruno Haible  <bruno@clisp.org>
44089
44090         * doc/posix-functions/strdup.texi: Mention mingw problem.
44091
44092 2008-04-27  Bruno Haible  <bruno@clisp.org>
44093
44094         * modules/stat-time-tests (Depends-on): Add sleep.
44095         * tests/test-stat-time.c (force_unlink): New function.
44096         (cleanup): Use it.
44097         (test_mtime): Remove the ctime related tests.
44098         (test_ctime): New function, containing the ctime related tests.
44099         (main): Call test_ctime, except on native Windows platforms.
44100
44101 2008-04-27  Bruno Haible  <bruno@clisp.org>
44102
44103         * lib/rpmatch.c (rpmatch): Add some comments.
44104         Reported by James Youngman <jay@gnu.org>.
44105
44106 2008-04-27  Bruno Haible  <bruno@clisp.org>
44107
44108         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
44109         quiet NaNs.
44110
44111 2008-04-27  Bruno Haible  <bruno@clisp.org>
44112
44113         Make test-yesno.sh work on mingw.
44114         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
44115         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
44116         (main): Set stdin to binary mode.
44117         * modules/yesno-tests (Depends-on): Add binary-io.
44118
44119 2008-04-27  Bruno Haible  <bruno@clisp.org>
44120
44121         Fix 'isfinite' on x86, x86_64, ia64 platforms.
44122         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
44123         argument that lie outside the IEEE 854 domain.
44124         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
44125         (gl_ISFINITE): Use it.
44126         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
44127
44128 2008-04-27  Bruno Haible  <bruno@clisp.org>
44129
44130         Allow local renaming in config.h.
44131         * lib/memrchr.c (memrchr): Don't undefine outside libc.
44132
44133 2008-04-27  Bruno Haible  <bruno@clisp.org>
44134
44135         * lib/memchr.c (__memchr): Change type of 'i'.
44136         * lib/memchr2.c (memchr2): Likewise.
44137
44138 2008-04-26  Eric Blake  <ebb9@byu.net>
44139         and Bruno Haible  <bruno@clisp.org>
44140
44141         Optimize and test memrchr.
44142         * modules/memrchr (Depends-on): Add intprops.
44143         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
44144         * modules/memrchr-tests: New file.
44145         * tests/test-memrchr.c: New file.
44146
44147 2008-04-26  Bruno Haible  <bruno@clisp.org>
44148
44149         Add tentative support for DragonFly BSD.
44150         * lib/stdio-impl.h: Add macros for DragonFly BSD.
44151         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
44152         fp.
44153         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44154         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
44155         * lib/fpurge.c (fpurge): Likewise.
44156         * lib/freadable.c (freaadable): Likewise.
44157         * lib/freadahead.c (freadahead): Likewise.
44158         * lib/freading.c (freading): Likewise.
44159         * lib/freadptr.c (freadptr): Likewise.
44160         * lib/freadseek.c (freadptrinc): Likewise.
44161         * lib/fseeko.c (fseeko): Likewise.
44162         * lib/fseterr.c (fseterr): Likewise.
44163         * lib/fwritable.c (fwritable): Likewise.
44164         * lib/fwriting.c (fwriting): Likewise.
44165
44166 2008-04-26  Bruno Haible  <bruno@clisp.org>
44167
44168         * lib/stdio-impl.h: New file.
44169         * lib/fbufmode.c: Include stdio-impl.h.
44170         (fbufmode): Use fp_, remove redundant #defines.
44171         * lib/fflush.c: Include stdio-impl.h.
44172         (clear_ungetc_buffer): Remove redundant #defines.
44173         * lib/fpurge.c: Include stdio-impl.h.
44174         (fpurge): Remove redundant #defines.
44175         * lib/freadable.c: Include stdio-impl.h.
44176         (freadable): Remove redundant #defines.
44177         * lib/freadahead.c: Include stdio-impl.h.
44178         (freadahead): Remove redundant #defines.
44179         * lib/freading.c: Include stdio-impl.h.
44180         (freading): Remove redundant #defines.
44181         * lib/freadptr.c: Include stdio-impl.h.
44182         (freadptr): Remove redundant #defines.
44183         * lib/freadseek.c: Include stdio-impl.h.
44184         (freadptrinc): Remove redundant #defines.
44185         * lib/fseeko.c: Include stdio-impl.h.
44186         (rpl_fseeko): Remove redundant #defines.
44187         * lib/fseterr.c: Include stdio-impl.h.
44188         (fseterr): Remove redundant #defines.
44189         * lib/fwritable.c: Include stdio-impl.h.
44190         (fwritable: Remove redundant #defines.
44191         * lib/fwriting.c: Include stdio-impl.h.
44192         (fwriting): Remove redundant #defines.
44193         * modules/fbufmode (Files): Add lib/stdio-impl.h.
44194         * modules/fflush (Files): Likewise.
44195         * modules/fpurge (Files): Likewise.
44196         * modules/freadable (Files): Likewise.
44197         * modules/freadahead (Files): Likewise.
44198         * modules/freading (Files): Likewise.
44199         * modules/freadptr (Files): Likewise.
44200         * modules/freadseek (Files): Likewise.
44201         * modules/fseeko (Files): Likewise.
44202         * modules/fseterr (Files): Likewise.
44203         * modules/fwritable (Files): Likewise.
44204         * modules/fwriting (Files): Likewise.
44205
44206 2008-04-26  Bruno Haible  <bruno@clisp.org>
44207
44208         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
44209         restore_seek_optimization, update_fpos_cache): New functions, extracted
44210         from rpl_fflush.
44211         (rpl_fflush): Use them.
44212         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
44213         (gl_REPLACE_FFLUSH): Use it.
44214
44215 2008-04-26  Bruno Haible  <bruno@clisp.org>
44216
44217         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
44218         on Solaris.
44219         * tests/test-xstrtoimax.sh: Likewise.
44220         * tests/test-xstrtoumax.sh: Likewise.
44221         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44222
44223 2008-04-26  Bruno Haible  <bruno@clisp.org>
44224
44225         * modules/memchr-tests: New file.
44226         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
44227
44228 2008-04-26  Eric Blake  <ebb9@byu.net>
44229             Bruno Haible  <bruno@clisp.org>
44230
44231         * lib/memchr.c: Include intprops.h.
44232         (__memchr): Optimize parallel detection of matching bytes. Rename local
44233         variables. Add explanatory comments.
44234
44235 2008-04-26  Bruno Haible  <bruno@clisp.org>
44236
44237         Fix module 'memchr', broken since 2000-10-28.
44238         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
44239
44240 2008-04-26  Bruno Haible  <bruno@clisp.org>
44241
44242         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
44243         comments.
44244
44245 2008-04-25  Eric Blake  <ebb9@byu.net>
44246
44247         Use native fstatat on cygwin 1.7.0.
44248         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
44249         first.
44250
44251 2008-04-23  Eric Blake  <ebb9@byu.net>
44252
44253         Improve memchr2 performance.
44254         * lib/memchr2.c (memchr2): Further optimize parallel detection of
44255         NUL bytes.
44256         * modules/memchr2 (Depends-on): Use intprops.h.
44257
44258 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44259
44260         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
44261         an inline function instead of a CPP macro.  Patch by Ben Pfaff
44262         <blp@cs.stanford.edu>.
44263
44264 2008-04-23  Simon Josefsson  <simon@josefsson.org>
44265
44266         * lib/arpa_inet.in.h: New file.
44267
44268         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
44269         (Makefile.am): Sed in substitute header file.
44270
44271         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
44272         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
44273
44274         * modules/inet_ntop (configure.ac): Use
44275         gl_ARPA_INET_MODULE_INDICATOR.
44276
44277         * modules/inet_pton (configure.ac): Use
44278         gl_ARPA_INET_MODULE_INDICATOR.
44279
44280 2008-04-22  Jim Meyering  <meyering@redhat.com>
44281
44282         * modules/verify (License): Re-license as LGPLv2+.
44283
44284 2008-04-22  Simon Josefsson  <simon@josefsson.org>
44285
44286         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
44287         parameter to void* as per POSIX standard (MinGW uses char*).
44288
44289 2008-04-21  Bruno Haible  <bruno@clisp.org>
44290
44291         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44292         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44293         Define to replacements if REPLACE_ISWCNTRL is 1.
44294         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
44295         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
44296         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
44297         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
44298         what it fixes.
44299         * doc/posix-functions/iswalpha.texi: Likewise.
44300         * doc/posix-functions/iswblank.texi: Likewise.
44301         * doc/posix-functions/iswcntrl.texi: Likewise.
44302         * doc/posix-functions/iswdigit.texi: Likewise.
44303         * doc/posix-functions/iswgraph.texi: Likewise.
44304         * doc/posix-functions/iswlower.texi: Likewise.
44305         * doc/posix-functions/iswprint.texi: Likewise.
44306         * doc/posix-functions/iswpunct.texi: Likewise.
44307         * doc/posix-functions/iswspace.texi: Likewise.
44308         * doc/posix-functions/iswupper.texi: Likewise.
44309         * doc/posix-functions/iswxdigit.texi: Likewise.
44310         Reported by Alain Guibert.
44311
44312 2008-04-21  Bruno Haible  <bruno@clisp.org>
44313
44314         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
44315         Patch by Alain Guibert.
44316
44317 2008-04-21  Bruno Haible  <bruno@clisp.org>
44318
44319         Fix test failures on mingw.
44320         * tests/test-xstrtol.c (print_no_progname): New function.
44321         (main): Install it in error_print_progname hook.
44322         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
44323         * tests/test-xstrtoimax.sh: Likewise.
44324         * tests/test-xstrtoumax.sh: Likewise.
44325
44326 2008-04-21  Bruno Haible  <bruno@clisp.org>
44327
44328         Fix test failure on mingw.
44329         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
44330
44331 2008-04-21  Bruno Haible  <bruno@clisp.org>
44332
44333         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
44334         Actually assign a value.
44335
44336 2008-04-20  Bruno Haible  <bruno@clisp.org>
44337
44338         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
44339         take 2.
44340         * lib/canonicalize.c (canonicalize_file_name): Elide if the
44341         'canonicalize-lgpl' module is also used.
44342         * lib/canonicalize-lgpl.c: Undo last change.
44343         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
44344
44345 2008-04-20  Bruno Haible  <bruno@clisp.org>
44346
44347         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
44348         config.h. Provide _mkdir based fallback for mingw.
44349         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
44350         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
44351         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
44352         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
44353         rather than defining mkdir in config.h.
44354         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
44355         (gl_SYS_STAT_H_DEFAULTS): New macro.
44356         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
44357         HAVE_IO_H any more.
44358         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
44359         HAVE_DECL_MKDIR and HAVE_IO_H.
44360
44361 2008-04-20  Bruno Haible  <bruno@clisp.org>
44362
44363         * lib/isapipe.c: Port to native Windows platforms.
44364
44365 2008-04-20  Bruno Haible  <bruno@clisp.org>
44366
44367         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
44368
44369 2008-04-21  Eric Blake  <ebb9@byu.net>
44370
44371         Work around preprocessors that don't handle UINTMAX_MAX.
44372         * lib/memchr2.c (memchr2): Avoid embedded #if.
44373         Reported by Alain Guibert, fix suggested by Bruno Haible.
44374
44375 2008-04-21  Simon Josefsson  <simon@josefsson.org>
44376
44377         * doc/posix-functions/strftime.texi (strftime): Explain better
44378         Windows incompatibility.  Suggested by Micah Cowan
44379         <micah@cowan.name>.
44380
44381 2008-04-20  Bruno Haible  <bruno@clisp.org>
44382
44383         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
44384         unistr/u8-mblen.
44385
44386 2008-04-20  Bruno Haible  <bruno@clisp.org>
44387
44388         Fix test failure on platforms with non-GNU iconv.
44389         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
44390         (U_TO_U8): Use it, rather than u16_to_u8.
44391         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
44392         units at the end of the input string.
44393         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
44394
44395 2008-04-20  Bruno Haible  <bruno@clisp.org>
44396
44397         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
44398         when the resulting length is 0.
44399         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
44400
44401 2008-04-20  Bruno Haible  <bruno@clisp.org>
44402
44403         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
44404         works.
44405         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
44406
44407 2008-04-20  Bruno Haible  <bruno@clisp.org>
44408
44409         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
44410         * modules/tsearch-tests (configure.ac): Test for initstate function.
44411
44412 2008-04-20  Bruno Haible  <bruno@clisp.org>
44413
44414         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
44415         for nlink_t if missing.
44416         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
44417
44418 2008-04-19  Bruno Haible  <bruno@clisp.org>
44419
44420         Work around snprintf bug on Linux libc5.
44421         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
44422         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
44423         gl_SNPRINTF_SIZE1.
44424         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44425         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
44426         that test failed.
44427         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
44428         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
44429         * modules/snprintf (Files): Add m4/printf.m4.
44430         * modules/vsnprintf (Files): Likewise.
44431         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
44432         * doc/posix-functions/vsnprintf.texi: Likewise.
44433
44434 2008-04-19  Bruno Haible  <bruno@clisp.org>
44435
44436         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
44437         from 0.0058 to less than 10^-7.
44438
44439 2008-04-19  Bruno Haible  <bruno@clisp.org>
44440
44441         Fix rounding when a precision is given.
44442         * lib/vasnprintf.c (is_borderline): New function.
44443         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
44444         9...9x.
44445         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
44446         %e, %g.
44447         * tests/test-vasprintf-posix.c (test_function): Likewise.
44448         * tests/test-snprintf-posix.h (test_function): Likewise.
44449         * tests/test-sprintf-posix.h (test_function): Likewise.
44450         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
44451         * tests/test-printf-posix.h (test_function): Likewise.
44452         * tests/test-printf-posix.output: Update.
44453         Reported by John Darrington <john@darrington.wattle.id.au> via
44454         Ben Pfaff <blp@cs.stanford.edu>.
44455
44456 2008-04-18  Simon Josefsson  <simon@josefsson.org>
44457
44458         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
44459         Suggested by Bruno Haible <bruno@clisp.org>.
44460
44461 2008-04-17  Bruno Haible  <bruno@clisp.org>
44462
44463         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
44464         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
44465         implementation.
44466         Patch by Bruce Merry <bmerry@gmail.com>.
44467
44468 2008-04-17  Simon Josefsson  <simon@josefsson.org>
44469
44470         * doc/posix-functions/strftime.texi (strftime): Mention that %e
44471         doesn't work under Windows.
44472
44473 2008-04-16  Bruno Haible  <bruno@clisp.org>
44474
44475         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
44476         New macros.
44477         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
44478         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
44479         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
44480         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
44481         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
44482         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
44483         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
44484         macros.
44485         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
44486         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
44487         Northern Sotho, Uighur.
44488
44489 2008-04-16  Bruno Haible  <bruno@clisp.org>
44490
44491         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
44492         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
44493         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
44494         Reported by Daniel Bergström <daniel@octocode.com>.
44495
44496 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
44497             Bruno Haible  <bruno@clisp.org>
44498
44499         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
44500         function.
44501         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
44502         New functions, mostly extracted from gl_locale_name_default.
44503         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
44504
44505 2008-04-16  Eric Blake  <ebb9@byu.net>
44506
44507         Adjust strtod detection to catch glibc 2.7 bug.
44508         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
44509         Reported by John Gatewood Ham.
44510
44511 2008-04-16  Bruno Haible  <bruno@clisp.org>
44512
44513         Add tentative support for Linux libc5.
44514         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
44515         * lib/fpurge.c (fpurge): Likewise.
44516         * lib/freadable.c (freadable): Likewise.
44517         * lib/freadahead.c (freadahead): Likewise.
44518         * lib/freading.c (freading): Likewise.
44519         * lib/freadptr.c (freadptr): Likewise.
44520         * lib/freadseek.c (freadptrinc): Likewise.
44521         * lib/fseeko.c (rpl_fseeko): Likewise.
44522         * lib/fseterr.c (fseterr): Likewise.
44523         * lib/fwritable.c (fwritable): Likewise.
44524         * lib/fwriting.c (fwriting): Likewise.
44525         Reported by Alain Guibert <alguibert+bts@free.fr>.
44526
44527 2008-04-15  Bruno Haible  <bruno@clisp.org>
44528
44529         * modules/mathl (configure.ac): Define module indicator.
44530
44531 2008-04-15  Bruno Haible  <bruno@clisp.org>
44532
44533         * lib/logl.c (logl): Remove unused variables.
44534
44535 2008-04-15  Bruno Haible  <bruno@clisp.org>
44536
44537         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
44538         fails.
44539
44540 2008-04-15  Bruno Haible  <bruno@clisp.org>
44541
44542         * lib/trim.c (trim2): Fix argument of isspace() macro.
44543
44544 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
44545
44546         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
44547         to 0.
44548         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
44549
44550 2008-04-14  Bruno Haible  <bruno@clisp.org>
44551
44552         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
44553         AC_LANG_PROGRAM argument.
44554         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
44555         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
44556         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44557         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
44558         * m4/math_h.m4 (gl_MATH_H): Likewise.
44559         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44560         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44561         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
44562         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
44563         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44564         * m4/regex.m4 (gl_REGEX): Likewise.
44565         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
44566         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
44567         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44568         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
44569         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44570         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44571         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44572         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
44573
44574 2008-04-14  Jim Meyering  <meyering@redhat.com>
44575
44576         test-strtod: fix typos: s/abs/fabs/
44577         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
44578
44579 2008-04-13  Bruno Haible  <bruno@clisp.org>
44580
44581         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
44582         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
44583         module is also used and while not building the reloc-wrapper.
44584
44585 2008-04-13  Bruno Haible  <bruno@clisp.org>
44586
44587         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
44588
44589 2008-04-13  Bruno Haible  <bruno@clisp.org>
44590
44591         Fix AIX compilation failure introduced on 2008-04-02.
44592         * tests/test-frexp.c (exp): Undefine before redefining.
44593         * tests/test-frexpl.c (exp): Likewise.
44594
44595 2008-04-13  Bruno Haible  <bruno@clisp.org>
44596
44597         Work around a HP-UX stdio bug.
44598         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
44599         * tests/test-ftello.c (main): Likewise.
44600         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
44601         * doc/posix-functions/ftello.texi: Likewise.
44602
44603 2008-04-13  Bruno Haible  <bruno@clisp.org>
44604
44605         Make test-signbit pass on HP-UX/hppa.
44606         * tests/test-signbit.c (minus_zerol): New variable.
44607         (test_signbitl): Use it.
44608
44609 2008-04-13  Bruno Haible  <bruno@clisp.org>
44610
44611         Make truncl work on OSF/1 4.0.
44612         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
44613         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44614         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
44615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
44616         HAVE_DECL_TRUNCL.
44617         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
44618         HAVE_DECL_TRUNCL.
44619         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
44620
44621 2008-04-13  Bruno Haible  <bruno@clisp.org>
44622
44623         * lib/unictype.h: Remove trailing comma from enumeration definitions.
44624
44625 2008-04-13  Bruno Haible  <bruno@clisp.org>
44626
44627         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
44628         expression, so as to avoid HP-UX 11 cc compiler bug.
44629
44630 2008-04-13  Bruno Haible  <bruno@clisp.org>
44631
44632         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
44633
44634 2008-04-13  Bruno Haible  <bruno@clisp.org>
44635
44636         * lib/git-merge-changelog.c: Remove empty declaration outside of
44637         functions.
44638
44639 2008-04-13  Bruno Haible  <bruno@clisp.org>
44640
44641         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
44642
44643 2008-04-13  Bruno Haible  <bruno@clisp.org>
44644
44645         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
44646         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
44647         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
44648         also if it exists but lacks definitions of the SHUT_* macros.
44649         * modules/sys_socket (Description): Update.
44650         Reported by Elbert Pol <e.pol@chello.nl>.
44651
44652 2008-04-13  Bruno Haible  <bruno@clisp.org>
44653
44654         * lib/localcharset.c (OS2): Don't redefine if already defined.
44655         Reported by Elbert Pol <e.pol@chello.nl>.
44656
44657 2008-04-13  Bruno Haible  <bruno@clisp.org>
44658
44659         * lib/binary-io.h [__EMX__]: Include <io.h>.
44660         Reported by Elbert Pol <e.pol@chello.nl>.
44661
44662 2008-04-12  Bruno Haible  <bruno@clisp.org>
44663
44664         * lib/fpucw.h: Enable the definitions also for x86_64.
44665         Needed for NetBSD/x86_64.
44666         Reported by Thomas Klausner <tk@giga.or.at>.
44667
44668 2008-04-12  Bruno Haible  <bruno@clisp.org>
44669
44670         * tests/test-strtod.c: Include isnand.h.
44671         (main): Use isnand instead of isnan.
44672         Reported by Jim Meyering.
44673
44674 2008-04-12  Bruno Haible  <bruno@clisp.org>
44675
44676         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
44677         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44678
44679 2008-04-12  Jim Meyering  <meyering@redhat.com>
44680
44681         * m4/math_h.m4 (gl_MATH_H): Fix typos.
44682
44683 2008-04-12  Bruno Haible  <bruno@clisp.org>
44684
44685         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
44686         Reported by Elbert Pol <e.pol@chello.nl>.
44687
44688 2008-04-12  Eric Blake  <ebb9@byu.net>
44689
44690         Work around Solaris 10 math.h bug.
44691         * m4/math_h.m4 (gl_MATH_H): Check for bug.
44692         (gl_MATH_H_DEFAULTS): Set up default.
44693         * modules/math (Makefile.am): Replace new indicators.
44694         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
44695         * tests/test-math.c (main): Test this.
44696         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
44697         * doc/posix-headers/math.texi (math.h): Mention bug.
44698         Reported by Nelson H. F. Beebe and Jim Meyering.
44699
44700 2008-04-11  Bruno Haible  <bruno@clisp.org>
44701
44702         Adapt to future versions of Apple GCC.
44703         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
44704         Reported by Peter O'Gorman <peter@pogma.com>.
44705
44706 2008-04-11  Bruno Haible  <bruno@clisp.org>
44707
44708         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
44709
44710 2008-04-11  Bruno Haible  <bruno@clisp.org>
44711
44712         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
44713
44714         * modules/getaddrinfo-tests (Makefile.am): Define
44715         test_getaddrinfo_LDADD.
44716
44717 2008-04-11  Bruno Haible  <bruno@clisp.org>
44718
44719         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
44720         (init): Fix syntax error.
44721         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
44722         is declared.
44723
44724 2008-04-11  Bruno Haible  <bruno@clisp.org>
44725
44726         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
44727         * modules/glob (Depends-on): Add stdbool.
44728
44729 2008-04-11  Bruno Haible  <bruno@clisp.org>
44730
44731         * lib/trim.c: Include <string.h>.
44732
44733 2008-04-11  Eric Blake  <ebb9@byu.net>
44734
44735         Avoid compile failure on OS/2.
44736         * lib/regex_internal.h (internal_function): Disable optimization
44737         on OS/2 (__EMX__), where it caused compiler error.
44738         Reported by Elbert Pol.
44739
44740 2008-04-11  Bruno Haible  <bruno@clisp.org>
44741
44742         Flush the standard error stream before aborting. Needed on mingw.
44743         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
44744         * tests/test-array_list.c (ASSERT): Likewise.
44745         * tests/test-array_oset.c (ASSERT): Likewise.
44746         * tests/test-avltree_list.c (ASSERT): Likewise.
44747         * tests/test-avltree_oset.c (ASSERT): Likewise.
44748         * tests/test-avltreehash_list.c (ASSERT): Likewise.
44749         * tests/test-binary-io.c (ASSERT): Likewise.
44750         * tests/test-byteswap.c (ASSERT): Likewise.
44751         * tests/test-c-ctype.c (ASSERT): Likewise.
44752         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
44753         * tests/test-c-strcasestr.c (ASSERT): Likewise.
44754         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
44755         * tests/test-c-strstr.c (ASSERT): Likewise.
44756         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
44757         * tests/test-canonicalize.c (ASSERT): Likewise.
44758         * tests/test-carray_list.c (ASSERT): Likewise.
44759         * tests/test-ceilf1.c (ASSERT): Likewise.
44760         * tests/test-ceilf2.c (ASSERT): Likewise.
44761         * tests/test-ceill.c (ASSERT): Likewise.
44762         * tests/test-count-one-bits.c (ASSERT): Likewise.
44763         * tests/test-fbufmode.c (ASSERT): Likewise.
44764         * tests/test-fflush2.c (ASSERT): Likewise.
44765         * tests/test-floorf1.c (ASSERT): Likewise.
44766         * tests/test-floorf2.c (ASSERT): Likewise.
44767         * tests/test-floorl.c (ASSERT): Likewise.
44768         * tests/test-fopen.c (ASSERT): Likewise.
44769         * tests/test-fpending.c (ASSERT): Likewise.
44770         * tests/test-fprintf-posix.c (ASSERT): Likewise.
44771         * tests/test-fpurge.c (ASSERT): Likewise.
44772         * tests/test-freadable.c (ASSERT): Likewise.
44773         * tests/test-freadahead.c (ASSERT): Likewise.
44774         * tests/test-freading.c (ASSERT): Likewise.
44775         * tests/test-freadptr.c (ASSERT): Likewise.
44776         * tests/test-freadptr2.c (ASSERT): Likewise.
44777         * tests/test-freadseek.c (ASSERT): Likewise.
44778         * tests/test-freopen.c (ASSERT): Likewise.
44779         * tests/test-frexp.c (ASSERT): Likewise.
44780         * tests/test-frexpl.c (ASSERT): Likewise.
44781         * tests/test-fseek.c (ASSERT): Likewise.
44782         * tests/test-fseeko.c (ASSERT): Likewise.
44783         * tests/test-fstrcmp.c (ASSERT): Likewise.
44784         * tests/test-ftell.c (ASSERT): Likewise.
44785         * tests/test-ftello.c (ASSERT): Likewise.
44786         * tests/test-func.c (ASSERT): Likewise.
44787         * tests/test-fwritable.c (ASSERT): Likewise.
44788         * tests/test-fwriting.c (ASSERT): Likewise.
44789         * tests/test-getdelim.c (ASSERT): Likewise.
44790         * tests/test-getline.c (ASSERT): Likewise.
44791         * tests/test-i-ring.c (ASSERT): Likewise.
44792         * tests/test-iconv-utf.c (ASSERT): Likewise.
44793         * tests/test-iconv.c (ASSERT): Likewise.
44794         * tests/test-isfinite.c (ASSERT): Likewise.
44795         * tests/test-isnand.c (ASSERT): Likewise.
44796         * tests/test-isnanf.c (ASSERT): Likewise.
44797         * tests/test-isnanl.h (ASSERT): Likewise.
44798         * tests/test-ldexpl.c (ASSERT): Likewise.
44799         * tests/test-linked_list.c (ASSERT): Likewise.
44800         * tests/test-linkedhash_list.c (ASSERT): Likewise.
44801         * tests/test-localename.c (ASSERT): Likewise.
44802         * tests/test-lseek.c (ASSERT): Likewise.
44803         * tests/test-mbscasecmp.c (ASSERT): Likewise.
44804         * tests/test-mbscasestr1.c (ASSERT): Likewise.
44805         * tests/test-mbscasestr2.c (ASSERT): Likewise.
44806         * tests/test-mbscasestr3.c (ASSERT): Likewise.
44807         * tests/test-mbscasestr4.c (ASSERT): Likewise.
44808         * tests/test-mbschr.c (ASSERT): Likewise.
44809         * tests/test-mbscspn.c (ASSERT): Likewise.
44810         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
44811         * tests/test-mbspbrk.c (ASSERT): Likewise.
44812         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
44813         * tests/test-mbsrchr.c (ASSERT): Likewise.
44814         * tests/test-mbsspn.c (ASSERT): Likewise.
44815         * tests/test-mbsstr1.c (ASSERT): Likewise.
44816         * tests/test-mbsstr2.c (ASSERT): Likewise.
44817         * tests/test-mbsstr3.c (ASSERT): Likewise.
44818         * tests/test-memchr2.c (ASSERT): Likewise.
44819         * tests/test-memmem.c (ASSERT): Likewise.
44820         * tests/test-open.c (ASSERT): Likewise.
44821         * tests/test-printf-frexp.c (ASSERT): Likewise.
44822         * tests/test-printf-frexpl.c (ASSERT): Likewise.
44823         * tests/test-printf-posix.c (ASSERT): Likewise.
44824         * tests/test-quotearg.c (ASSERT): Likewise.
44825         * tests/test-rbtree_list.c (ASSERT): Likewise.
44826         * tests/test-rbtree_oset.c (ASSERT): Likewise.
44827         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
44828         * tests/test-round1.c (ASSERT): Likewise.
44829         * tests/test-roundf1.c (ASSERT): Likewise.
44830         * tests/test-roundl.c (ASSERT): Likewise.
44831         * tests/test-signbit.c (ASSERT): Likewise.
44832         * tests/test-sleep.c (ASSERT): Likewise.
44833         * tests/test-snprintf-posix.c (ASSERT): Likewise.
44834         * tests/test-snprintf.c (ASSERT): Likewise.
44835         * tests/test-sprintf-posix.c (ASSERT): Likewise.
44836         * tests/test-stat-time.c (ASSERT): Likewise.
44837         * tests/test-strcasestr.c (ASSERT): Likewise.
44838         * tests/test-strerror.c (ASSERT): Likewise.
44839         * tests/test-striconv.c (ASSERT): Likewise.
44840         * tests/test-striconveh.c (ASSERT): Likewise.
44841         * tests/test-striconveha.c (ASSERT): Likewise.
44842         * tests/test-strsignal.c (ASSERT): Likewise.
44843         * tests/test-strstr.c (ASSERT): Likewise.
44844         * tests/test-strtod.c (ASSERT): Likewise.
44845         * tests/test-trunc1.c (ASSERT): Likewise.
44846         * tests/test-trunc2.c (ASSERT): Likewise.
44847         * tests/test-truncf1.c (ASSERT): Likewise.
44848         * tests/test-truncf2.c (ASSERT): Likewise.
44849         * tests/test-truncl.c (ASSERT): Likewise.
44850         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
44851         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
44852         * tests/test-vasnprintf.c (ASSERT): Likewise.
44853         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
44854         * tests/test-vasprintf.c (ASSERT): Likewise.
44855         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
44856         * tests/test-vprintf-posix.c (ASSERT): Likewise.
44857         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
44858         * tests/test-vsnprintf.c (ASSERT): Likewise.
44859         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
44860         * tests/test-wcwidth.c (ASSERT): Likewise.
44861         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
44862         * tests/test-xprintf-posix.c (ASSERT): Likewise.
44863         * tests/test-xvasprintf.c (ASSERT): Likewise.
44864         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
44865         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
44866         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
44867         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
44868         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
44869         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
44870         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
44871         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
44872         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
44873         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
44874         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
44875         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
44876         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
44877         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
44878         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
44879         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
44880         * tests/unictype/test-block_list.c (ASSERT): Likewise.
44881         * tests/unictype/test-block_of.c (ASSERT): Likewise.
44882         * tests/unictype/test-block_test.c (ASSERT): Likewise.
44883         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
44884         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
44885         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
44886         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
44887         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
44888         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
44889         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
44890         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
44891         * tests/unictype/test-combining.c (ASSERT): Likewise.
44892         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
44893         * tests/unictype/test-digit.c (ASSERT): Likewise.
44894         * tests/unictype/test-mirror.c (ASSERT): Likewise.
44895         * tests/unictype/test-numeric.c (ASSERT): Likewise.
44896         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
44897         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
44898         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
44899         * tests/unictype/test-scripts.c (ASSERT): Likewise.
44900         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
44901         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
44902         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
44903         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
44904         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
44905         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
44906         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
44907         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
44908         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
44909         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
44910         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
44911         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
44912         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
44913         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
44914         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
44915         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
44916         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
44917         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
44918         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
44919         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
44920         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
44921         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
44922         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
44923         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
44924         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
44925         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
44926         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
44927         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
44928         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
44929         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
44930         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
44931         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
44932         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
44933         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
44934         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
44935         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
44936         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
44937         Reported by Eric Blake.
44938
44939 2008-04-11  Bruno Haible  <bruno@clisp.org>
44940
44941         * lib/wchar.in.h: Tweak comment.
44942
44943 2008-04-11  Bruno Haible  <bruno@clisp.org>
44944
44945         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
44946         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
44947         gl_COMMON.
44948         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
44949
44950 2008-04-11  Bruno Haible  <bruno@clisp.org>
44951
44952         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
44953
44954 2008-04-11  Simon Josefsson  <simon@josefsson.org>
44955
44956         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
44957         of attempting to use non-existing /dev/*random.  Based on patch
44958         from Adam Strzelecki <ono@java.pl> in
44959         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
44960
44961 2008-04-08  Bruno Haible  <bruno@clisp.org>
44962
44963         Add tentative support for emx+gcc.
44964         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
44965         * lib/fpurge.c (fpurge): Likewise.
44966         * lib/freadable.c (freadable): Likewise.
44967         * lib/freadahead.c (freadahead): Likewise.
44968         * lib/freading.c (freading): Likewise.
44969         * lib/freadptr.c (freadptr): Likewise.
44970         * lib/freadseek.c (freadptrinc): Likewise.
44971         * lib/fseeko.c (rpl_fseeko): Likewise.
44972         * lib/fseterr.c (fseterr): Likewise.
44973         * lib/fwritable.c (fwritable): Likewise.
44974         * lib/fwriting.c (fwriting): Likewise.
44975         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
44976
44977 2008-04-09  Eric Blake  <ebb9@byu.net>
44978
44979         Avoid some autoconf warnings.
44980         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
44981         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
44982         * m4/afs.m4 (gl_AFS): Likewise.
44983         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
44984         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
44985         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44986         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
44987         (gl_INTEGER_TYPE_SUFFIX): Likewise.
44988         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
44989         (AC_CHECK_DECLS_ONCE): Likewise.
44990         Rename file...
44991         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
44992         gnulib-tool requires autoconf 2.59 or better.
44993         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
44994
44995 2008-04-08  Eric Blake  <ebb9@byu.net>
44996
44997         Use 'git describe --match' if present (added in git 1.5.5).
44998         * build-aux/git-version-gen: Limit result to tags that match 'v*'
44999         if possible.
45000
45001 2008-04-08  Bruno Haible  <bruno@clisp.org>
45002
45003         Add tentative support for OpenServer.
45004         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
45005         _ptr, _cnt.
45006         * lib/fpurge.c (fpurge): Likewise.
45007         * lib/freadable.c (freadable): Likewise.
45008         * lib/freadahead.c (freadahead): Likewise.
45009         * lib/freading.c (freading): Likewise.
45010         * lib/freadptr.c (freadptr): Likewise.
45011         * lib/freadseek.c (freadptrinc): Likewise.
45012         * lib/fseeko.c (rpl_fseeko): Likewise.
45013         * lib/fseterr.c (fseterr): Likewise.
45014         * lib/fwritable.c (fwritable): Likewise.
45015         * lib/fwriting.c (fwriting): Likewise.
45016         Reported by Roger Cornelius <rac@tenzing.org> and
45017         Brian K. White <brian@aljex.com>.
45018
45019 2008-04-06  Jim Meyering  <meyering@redhat.com>
45020
45021         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
45022
45023 2008-04-06  Bruno Haible  <bruno@clisp.org>
45024
45025         Avoid possible error with non-ASCII bytes in UTF-8 locales.
45026         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
45027         * tests/test-printf-posix.sh: Likewise.
45028         * tests/test-vfprintf-posix.sh: Likewise.
45029         * tests/test-vprintf-posix.sh: Likewise.
45030         * tests/test-xprintf-posix.sh: Likewise.
45031
45032 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45033
45034         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
45035         hide error from 'ls', needed on OS/2.
45036         Report by Elbert Pol <elbert.pol@gmail.com>.
45037
45038 2008-04-04  Eric Blake  <ebb9@byu.net>
45039
45040         Make test-fseeko.c failures meaningful.
45041         * tests/test-fseeko.c: Print line number on failure.
45042         * tests/test-fseek.c: Likewise.
45043         Reported by Nelson H. F. Beebe.
45044
45045         Improve strtod bug detection check.
45046         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
45047         required for Solaris 10.
45048         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
45049
45050 2008-04-04  Bruno Haible  <bruno@clisp.org>
45051
45052         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
45053         by m4/setenv.m4.
45054
45055 2008-04-03  Eric Blake  <ebb9@byu.net>
45056
45057         Ensure sane .version contents.
45058         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
45059         version string.
45060         * build-aux/git-version-gen: Improve documentation.
45061
45062         Make GNU make output nicer.
45063         * top/GNUmakefile [!_have-Makefile]: Add dependency on
45064         MAKECMDGOALS to enforce message for all command line targets.  Set
45065         srcdir for use in maint.mk.
45066
45067         Another maintainer tweak.
45068         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
45069         a target that regenerates version.
45070
45071 2008-04-03  Jim Meyering  <meyering@redhat.com>
45072
45073         vc-list-files: don't cause coreutils "make po-check" failure
45074         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
45075
45076 2008-04-03  Eric Blake  <ebb9@byu.net>
45077
45078         Allow VPATH usage of vc-list-files.
45079         * build-aux/vc-list-files (scriptversion): Add timestamp.
45080         (options): Add --help, --version, -C.
45081         (CVS): Support installed cvsu.
45082
45083 2008-04-02  Bruno Haible  <bruno@clisp.org>
45084
45085         Avoid some "statement with no effect" warnings from gcc.
45086         * tests/test-wctype.c (main): Explicitly ignore unused values.
45087         Reported by Jim Meyering.
45088
45089 2008-04-02  Jim Meyering  <meyering@redhat.com>
45090
45091         Avoid some warnings from "gcc -Wshadow".
45092         * tests/test-frexp.c (exp): Define to a different identifier.
45093         * tests/test-frexpl.c (exp): Likewise.
45094
45095 2008-04-03  Jim Meyering  <meyering@redhat.com>
45096
45097         bootstrap: remove dangling *.[ch] symlinks from lib
45098         * build-aux/bootstrap [dangling symlink removal]: Move find's
45099         -depth option to precede all others, to avoid a warning.
45100         Remove *.[ch] files too, and from "$source_base" (usually lib/).
45101
45102 2008-04-02  Bruno Haible  <bruno@clisp.org>
45103
45104         Avoid some warnings from "gcc -Wshadow".
45105         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
45106         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
45107         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
45108         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
45109         Reported by Jim Meyering.
45110
45111 2008-04-01  Bruno Haible  <bruno@clisp.org>
45112
45113         Fix test to work on IRIX 6.5 with cc.
45114         * tests/test-math.c (numeric_equal): New function.
45115         (main): Use it.
45116
45117 2008-04-01  Bruno Haible  <bruno@clisp.org>
45118
45119         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
45120
45121 2008-04-01  Bruno Haible  <bruno@clisp.org>
45122
45123         * tests/test-vasnprintf-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/vasnprintf-posix-tests (Files): Add tests/nan.h.
45126         (Depends-on): Remove math.
45127
45128         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
45129         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45130         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
45131         (Depends-on): Remove math.
45132
45133         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
45134         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45135         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
45136         (Depends-on): Remove math.
45137         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
45138         (Depends-on): Remove math.
45139
45140         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
45141         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
45142         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
45143         (Depends-on): Remove math.
45144         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
45145         (Depends-on): Remove math.
45146
45147         * tests/test-round1.c: Include nan.h.
45148         (main): Use NaNd instead of NAN.
45149         * modules/round-tests (Files): Add tests/nan.h.
45150
45151         * tests/test-trunc1.c: Include nan.h.
45152         (main): Use NaNd instead of NAN.
45153         * modules/trunc-tests (Files): Add tests/nan.h.
45154
45155         * tests/test-roundf1.c: Include nan.h.
45156         (main): Use NaNf instead of NAN.
45157         * modules/roundf-tests (Files): Add tests/nan.h.
45158
45159         * tests/test-truncf1.c: Include nan.h.
45160         (main): Use NaNf instead of NAN.
45161         * modules/truncf-tests (Files): Add tests/nan.h.
45162
45163         * tests/test-ceilf1.c: Include nan.h.
45164         (main): Use NaNf instead of NAN.
45165         * modules/ceilf-tests (Files): Add tests/nan.h.
45166
45167         * tests/test-floorf1.c: Include nan.h.
45168         (main): Use NaNf instead of NAN.
45169         * modules/floorf-tests (Files): Add tests/nan.h.
45170
45171         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
45172         (main): Use NaNf instead of NAN.
45173         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
45174
45175         * tests/test-isnand.c: Include nan.h instead of <math.h>.
45176         (main): Use NaNd instead of NAN.
45177         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
45178
45179         * tests/test-frexp.c: Include nan.h.
45180         (main): Use NaNd instead of NAN.
45181         * modules/frexp-tests (Files): Add tests/nan.h.
45182
45183         * lib/isnan.c: Don't include <math.h>.
45184         (FUNC): Don't use NAN macro.
45185         * modules/isnand-nolibm (Depends-on): Remove math.
45186         * modules/isnanf-nolibm (Depends-on): Remove math.
45187         * modules/isnanl (Depends-on): Remove math.
45188         * modules/isnanl-nolibm (Depends-on): Remove math.
45189
45190         * tests/nan.h: New file.
45191
45192 2008-04-01  Eric Blake  <ebb9@byu.net>
45193
45194         Fix typos.
45195         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
45196         values to be the right type.
45197
45198         For now, cater to gnulib strtod inaccuracies.
45199         * tests/test-strtod.c (main): Allow 1-ulp error on expected
45200         fractional results.  While not as nice from a QoI perspective, it
45201         is a quicker patch than correctly implementing decimal to binary
45202         rounding.
45203
45204 2008-03-31  Eric Blake  <ebb9@byu.net>
45205
45206         Guarantee a definition of NAN.
45207         * lib/math.in.h (NAN): Define if missing.
45208         * tests/test-math.c (main): Test it.
45209         * doc/posix-headers/math.texi (math.h): Document this.
45210         * lib/isnan.c (rpl_isnand): Use it.
45211         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
45212         * tests/test-floorf1.c (NaN): Likewise.
45213         * tests/test-frexp.c (NaN): Likewise.
45214         * tests/test-isnand.c (NaN): Likewise.
45215         * tests/test-isnanf.c (NaN): Likewise.
45216         * tests/test-round1.c (NaN): Likewise.
45217         * tests/test-roundf1.c (NaN): Likewise.
45218         * tests/test-snprintf-posix.h (NaN): Likewise.
45219         * tests/test-sprintf-posix.h (NaN): Likewise.
45220         * tests/test-trunc1.c (NaN): Likewise.
45221         * tests/test-truncf1.c (NaN): Likewise.
45222         * tests/test-vasnprintf-posix.c (NaN): Likewise.
45223         * tests/test-vasprintf-posix.c (NaN): Likewise.
45224         * modules/isnand-nolibm (Depends-on): Add math.
45225         * modules/isnanf-nolibm (Depends-on): Likewise.
45226         * modules/isnanl (Depends-on): Likewise.
45227         * modules/isnanl-nolibm (Depends-on): Likewise.
45228         * modules/snprintf-posix-tests (Depends-on): Likewise.
45229         * modules/sprintf-posix-tests (Depends-on): Likewise.
45230         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
45231         * modules/vsprintf-posix-tests (Depends-on): Likewise.
45232         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
45233         * modules/vasprintf-posix-tests (Depends-on): Likewise.
45234
45235 2008-03-31  Bruno Haible  <bruno@clisp.org>
45236
45237         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
45238         * doc/posix-functions/strtod.texi: Likewise.
45239
45240 2008-03-31  Bruno Haible  <bruno@clisp.org>
45241
45242         * tests/test-strtod.c (main): Don't use C99 syntax.
45243
45244 2008-03-31  Bruno Haible  <bruno@clisp.org>
45245
45246         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
45247         Reported by Eric Blake.
45248
45249 2008-03-31  Jim Meyering  <meyering@redhat.com>
45250
45251         Don't compare actual signbit return values.
45252         * tests/test-strtod.c (main): Rather, compare only their
45253         zero/non-zero nature.
45254
45255 2008-03-31  Eric Blake  <ebb9@byu.net>
45256
45257         More strtod documentation.
45258         * doc/posix-functions/strtod.texi (strtod): Interpret more test
45259         failures as distinct bugs.
45260
45261 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
45262
45263         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
45264         Problem reported by Erik Benada in
45265         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
45266
45267 2008-03-30  Bruno Haible  <bruno@clisp.org>
45268
45269         * tests/test-strtod.c: Add comments about which assertion fails on which
45270         platform.
45271         * doc/posix-functions/strtod.texi: Add info about many more platforms.
45272
45273 2008-03-30  Eric Blake  <ebb9@byu.net>
45274
45275         Test signbit behavior on zeros.
45276         * tests/test-signbit.c (test_signbitf): Add tests for zero.
45277         (test_signbitd, test_signbitl): Likewise.
45278
45279         More strtod touchups.
45280         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
45281         sign of negative underflow, for now.  Use .5, not .1.
45282         * doc/posix-functions/strtod.texi (strtod): Mention these
45283         limitations.
45284         Reported by Jim Meyering.
45285
45286 2008-03-30  Bruno Haible  <bruno@clisp.org>
45287
45288         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
45289         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
45290
45291 2008-03-30  Bruno Haible  <bruno@clisp.org>
45292
45293         Avoid failure when attempting to return empty iconv results on some
45294         platforms.
45295         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
45296         allocation, don't report ENOMEM when the resulting string is empty.
45297
45298 2008-03-30  Bruno Haible  <bruno@clisp.org>
45299
45300         Fix buffer overrun.
45301         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
45302         Don't consider the width for tmp_length. Check count against tmp_length
45303         before doing the padding. Ensure enough allocation during padding.
45304
45305 2008-03-30  Eric Blake  <ebb9@byu.net>
45306
45307         strtod touchups.
45308         * lib/strtod.c (strtod): Avoid compiler warnings.
45309         Reported by Jim Meyering.
45310
45311 2008-03-30  Bruno Haible  <bruno@clisp.org>
45312
45313         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
45314         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
45315         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
45316         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
45317         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
45318         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
45319         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
45320         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
45321
45322         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
45323         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
45324         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
45325         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
45326         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
45327         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
45328         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
45329         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
45330
45331         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
45332         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
45333         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
45334         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
45335         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
45336         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
45337         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
45338         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
45339
45340         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
45341         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
45342
45343         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
45344         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
45345
45346         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
45347         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
45348
45349         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
45350         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
45351         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
45352
45353         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
45354         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
45355         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
45356
45357         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
45358         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
45359         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
45360
45361         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
45362         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
45363         * modules/vasprintf (Depends-on): Add EOVERFLOW.
45364
45365         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
45366         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
45367         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
45368         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
45369         (Depends-on): Add EOVERFLOW.
45370         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
45371         (Depends-on): Add EOVERFLOW.
45372         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45373         (Depends-on): Add EOVERFLOW.
45374         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
45375         (Depends-on): Add EOVERFLOW.
45376         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45377         (Depends-on): Add EOVERFLOW.
45378         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
45379         (Depends-on): Add EOVERFLOW.
45380         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45381         (Depends-on): Add EOVERFLOW.
45382         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
45383         (Depends-on): Add EOVERFLOW.
45384
45385         * lib/sprintf.c (EOVERFLOW): Remove fallback.
45386         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
45387         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
45388
45389         * lib/snprintf.c (EOVERFLOW): Remove fallback.
45390         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
45391         * modules/snprintf (Depends-on): Add EOVERFLOW.
45392
45393         * lib/poll.c (EOVERFLOW): Remove fallback.
45394         * modules/poll (Depends-on): Add EOVERFLOW.
45395
45396         * lib/getugroups.c (EOVERFLOW): Remove fallback.
45397         * modules/getugroups (Depends-on): Add EOVERFLOW.
45398
45399         * lib/getdelim.c (EOVERFLOW): Remove fallback.
45400         * modules/getdelim (Depends-on): Add EOVERFLOW.
45401
45402         * lib/ftell.c (EOVERFLOW): Remove fallback.
45403         * modules/ftell (Depends-on): Add EOVERFLOW.
45404
45405         * lib/fprintf.c (EOVERFLOW): Remove fallback.
45406         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
45407         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
45408
45409         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
45410
45411         * modules/EOVERFLOW-tests: New file.
45412         * tests/test-EOVERFLOW.c: New file.
45413
45414         * modules/EOVERFLOW: New file.
45415         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
45416
45417 2008-03-30  Bruno Haible  <bruno@clisp.org>
45418
45419         Fix bug introduced on 2007-06-10.
45420         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
45421         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
45422
45423 2008-03-30  Bruno Haible  <bruno@clisp.org>
45424
45425         Improve freadseek's efficiency after ungetc.
45426         * lib/freadseek.c: Include freadahead.h.
45427         (freadptrinc): New function, extracted from freadseek.
45428         (freadseek): Use it in a loop. Use freadahead to determine the number
45429         of loop iterations.
45430         * modules/freadseek (Depends-on): Add freadahead.
45431         (configure.ac): Require AC_C_INLINE.
45432
45433 2008-03-30  Bruno Haible  <bruno@clisp.org>
45434
45435         * lib/freadseek.c (freadseek): Don't ignore the return value of
45436         freadptr.
45437
45438 2008-03-29  Eric Blake  <ebb9@byu.net>
45439
45440         Add hex float support.
45441         * modules/strtod (Depends-on): Add c-ctype.
45442         (Link): Mention POW_LIB.
45443         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
45444         whitespace between 'e' and exponent.
45445         * tests/test-strtod.c (main): Enable hex float tests.
45446         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
45447         now provides.
45448
45449         Document various strtod bugs, with some fixes.
45450         * doc/posix-functions/strtod.texi (strtod): Document bugs with
45451         "-0x", "inf", "nan", and hex constants.
45452         * doc/posix-functions/atof.texi (atof): Likewise.
45453         * modules/stdlib (Makefile.am): Support strtod.
45454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45455         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
45456         detect additional strtod bugs.
45457         * lib/stdlib.in.h (rpl_strtod): Add declarations.
45458         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
45459         bool where appropriate.  Parse 'inf' and 'nan'.
45460         * tests/test-strtod.c: New file.
45461         * modules/strtod (Depends-on): Add stdbool, stdlib.
45462         (configure.ac): Turn on module indicator.
45463         * modules/strtod-tests: New module.
45464
45465 2008-03-29  Eric Blake  <ebb9@byu.net>
45466
45467         Fix ftell on mingw.
45468         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
45469         * modules/ftell-tests (Depends-on): Add binary-io.
45470         * modules/ftello-tests (Depends-on): Likewise.
45471         * tests/test-ftell.c (main): Enhance test to cover behavior after
45472         ungetc.  Enforce binary mode.
45473         * tests/test-ftello.c (main): Likewise.
45474
45475         Pass test-freadseek on cygwin.
45476         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
45477         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
45478         ungetc buffer.
45479
45480         * tests/test-fflush2.c (main): Fix typo.
45481
45482 2008-03-29  Bruno Haible  <bruno@clisp.org>
45483
45484         * tests/test-fflush2.c (main): Temporarily disable the contents of
45485         this test.
45486         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
45487         Reported by Eric Blake.
45488
45489 2008-03-28  Simon Josefsson  <simon@josefsson.org>
45490
45491         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
45492         (GC_SHA224_DIGEST_SIZE): Add.
45493
45494         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
45495         (gc_hash_digest_length): Likewise.
45496         (gc_hash_buffer): Likewise.
45497
45498 2008-03-25  Bruno Haible  <bruno@clisp.org>
45499
45500         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
45501         detail which gettext release to use.
45502         Reported by Simon Josefsson.
45503
45504 2008-03-26  Jim Meyering  <meyering@redhat.com>
45505
45506         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
45507         * modules/gnumakefile (clean-GNUmakefile): Also, use
45508         test ... && ... || : syntax rather than if-then ... fi.
45509
45510         gnumakefile: Don't double-quote-expand $(VPATH) value.
45511         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
45512
45513 2008-03-24  Eric Blake  <ebb9@byu.net>
45514
45515         Alter GNUmakefile to install into top directory.
45516         * modules/maintainer-makefile: Split, and add dependency...
45517         * modules/gnumakefile: to this new module.
45518         * build-aux/GNUmakefile: Move...
45519         * top/GNUmakefile: ...here.
45520         * build-aux/maint.mk: Move...
45521         * top/maint.mk: ...here.
45522         * MODULES.html.sh (Support for maintaining...): Document new
45523         module.
45524
45525 2008-03-23  Bruno Haible  <bruno@clisp.org>
45526
45527         * gnulib-tool: New options --vc-files, --no-vc-files.
45528         (func_usage): Document them.
45529         (vc_files): New variable.
45530         (func_import): Consider vc_files.
45531         (func_create_testdir): Set vc_files to empty.
45532         Suggested by Jim Meyering and Karl Berry.
45533
45534 2008-03-23  Bruno Haible  <bruno@clisp.org>
45535
45536         Fix regex compilation error on HP-UX 11.
45537         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
45538         * modules/regex (Files): Add m4/mbstate_t.m4.
45539         Reported by Ton Voon <ton.voon@altinity.com>.
45540
45541 2008-03-23  Bruno Haible  <bruno@clisp.org>
45542
45543         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
45544
45545 2008-03-23  Eric Blake  <ebb9@byu.net>
45546             Bruno Haible  <bruno@clisp.org>
45547
45548         Install files from top/ in the destination directory.
45549         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45550         augmentation also for the files from top/.
45551         (func_import, func_create_testdir): Rewrite file names:
45552         top/filename -> filename.
45553
45554 2008-03-23  Bruno Haible  <bruno@clisp.org>
45555
45556         Tweak "gnulib --version" output.
45557         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
45558
45559 2008-03-23  Bruno Haible  <bruno@clisp.org>
45560
45561         Tweak "gnulib --version" output.
45562         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
45563         rather than contents of ChangeLog, when possible.
45564
45565 2008-03-21  Eric Blake  <ebb9@byu.net>
45566
45567         More --version tweaks.
45568         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
45569         date of last ChangeLog entry.
45570
45571 2008-03-21  Jim Meyering  <meyering@redhat.com>
45572
45573         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
45574
45575 2008-03-20  Eric Blake  <ebb9@byu.net>
45576
45577         VPATH fix.
45578         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
45579
45580 2008-03-20  Simon Josefsson  <simon@josefsson.org>
45581
45582         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
45583         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
45584
45585 2008-03-20  Eric Blake  <ebb9@byu.net>
45586
45587         Sync GNUmakefile with coreutils.
45588         * build-aux/GNUmakefile (have-Makefile): Rename...
45589         (_have-Makefile): ...to this, for namespace consideration.
45590         (GNUmakefile.cfg): Include, if present.
45591         (_autoreconf): Define a default.
45592         (_is-dist-target): New rule for rebuilds to pick up intra-release
45593         version.
45594         (maint-cfg.mk): Rename...
45595         (cfg.mk): ...to this.
45596
45597 2008-03-18  Jim Meyering  <meyering@redhat.com>
45598
45599         New script and module: mktempd
45600         * MODULES.html.sh (maint+release support): Add mktempd.
45601         * build-aux/mktempd: New file.
45602         * modules/mktempd: New file.
45603
45604 2008-03-15  Jim Meyering  <meyering@redhat.com>
45605
45606         Undo last change.
45607         * lib/sha1.c, lib/md5.c: 63 != ~63.
45608         Reported by Andreas Schwab.
45609
45610         sha1.c, md5.c: Hoist a redundant expression.
45611         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
45612         "ctx->buflen" only once, before calling *_process_block.
45613         * lib/md5.c (md5_process_bytes): Likewise.
45614
45615 2008-03-14  Eric Blake  <ebb9@byu.net>
45616
45617         Bump copyright year in files generated by gnulib-tool.
45618         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
45619         gnulib-tool, rather than hard-coding it.
45620
45621         Fix 'gnulib-tool --version' output to work with git.
45622         * gnulib-tool (func_gnulib_dir): New function, extracted from...
45623         (startup): ...here.
45624         (func_version): Use it to invoke git-version-gen, rather than
45625         relying on CVS keyword expansion.  Modernize wording.
45626         (cvsdatestamp, last_checkin_date, version): Kill unused
45627         variables.
45628
45629 2008-03-12  Jim Meyering  <meyering@redhat.com>
45630
45631         Recognize optional cast of the argument to free.
45632         * build-aux/useless-if-before-free: Update regexps.
45633
45634         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
45635
45636 2008-03-11  Bruno Haible  <bruno@clisp.org>
45637
45638         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
45639         by a single package.
45640         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
45641         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
45642         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
45643         Reported by Sam Steingold <sds@gnu.org>.
45644
45645 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45646
45647         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
45648         repositories.
45649
45650 2008-03-11  Bruno Haible  <bruno@clisp.org>
45651
45652         Avoid conflicts between local macro definitions.
45653         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45654         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
45655
45656 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
45657             Bruno Haible  <bruno@clisp.org>
45658
45659         Make va_copy work with some version of xlc on AIX 5.1.
45660         * lib/stdarg.in.h: New file.
45661         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
45662         On AIX, use a <stdarg.h> file substitute.
45663         * modules/stdarg (Files): Add lib/stdarg.in.h.
45664         (Depends-on): Add include_next.
45665         (Makefile.am): Build a stdarg.h substitute if requested.
45666         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
45667
45668 2008-03-10  Bruno Haible  <bruno@clisp.org>
45669
45670         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
45671         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45672         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45673
45674 2008-03-10  Bruno Haible  <bruno@clisp.org>
45675
45676         * modules/stdlib (Depends-on): Add include_next, remove
45677         absolute-header.
45678
45679 2008-03-09  Bruno Haible  <bruno@clisp.org>
45680
45681         * lib/freadahead.h (freadahead): Document more precisely.
45682         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
45683         the sum of both buffer sizes.
45684         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
45685         * NEWS: Document the change.
45686
45687 2008-03-09  Bruno Haible  <bruno@clisp.org>
45688
45689         Extend freadptr to return also the buffer size.
45690         * lib/freadptr.h (freadptr): Add sizep argument.
45691         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
45692         (freadptr): Add sizep argument. Determine buffer size like freadahead
45693         does.
45694         * tests/test-freadptr.c: Don't include freadahead.h.
45695         (main): Adapt for new calling convention of freadptr.
45696         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
45697         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
45698         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
45699         tests/test-freadptr2.sh.
45700         (Depends): Remove freadahead.
45701         (TESTS): Add test-freadptr2.sh.
45702         (check_PROGRAMS): Add test-freadptr2.
45703
45704 2008-03-09  Bruno Haible  <bruno@clisp.org>
45705
45706         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
45707         Report and solution by Simon Josefsson.
45708
45709 2008-03-06  Bruno Haible  <bruno@clisp.org>
45710
45711         Make fflush after ungetc work on BSD platforms.
45712         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
45713         * tests/test-fflush2.c: New file.
45714         * tests/test-fflush2.sh: New file.
45715         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
45716         tests/test-fflush2.c.
45717         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
45718         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
45719
45720 2008-03-06  Eric Blake  <ebb9@byu.net>
45721
45722         Likewise for ftello.
45723         * modules/ftello (Dependencies): Add extensions.
45724         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
45725
45726 2008-03-06  Bruno Haible  <bruno@clisp.org>
45727
45728         * modules/fseeko (Dependencies): Add extensions.
45729         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
45730         Needed on glibc systems.
45731
45732 2008-03-06  Bruno Haible  <bruno@clisp.org>
45733
45734         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
45735         email address.
45736         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45737
45738 2008-03-06  Bruno Haible  <bruno@clisp.org>
45739
45740         * users.txt: Add libgnupdf.
45741
45742 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45743
45744         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
45745         (Header File Substitutes, Function Substitutes,
45746         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
45747         (Build robot for gnulib): Fix typo.
45748
45749 2008-03-06  Bruno Haible  <bruno@clisp.org>
45750
45751         * doc/gnulib-tool.texi (VCS Issues): Small updates.
45752         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45753
45754 2008-03-06  Bruno Haible  <bruno@clisp.org>
45755
45756         * doc/func.texi: New file, extracted from doc/gnulib.texi.
45757         * doc/gnulib.texi: Include it.
45758
45759 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45760
45761         * modules/func (License): Change license to unlimited; there was
45762         no LGPL parts in the module anyway.
45763
45764 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45765
45766         * modules/__func__: Renamed to modules/func.
45767         * modules/__func__-tests: Renamed to modules/func-tests.
45768         * tests/test-__func__.c: Renamed to tests/test-func.c.
45769         * m4/__func__.m4: Renamed to m4/func.m4.
45770         * doc/gnulib.texi (__func__): Section renamed to func.
45771         Suggested by Eric Blake <ebb9@byu.net>.
45772
45773 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45774
45775         * doc/gnulib.texi (__func__): Use C99 terminology when talking
45776         about __func__.  Make example self-contained.  Suggested by Eric
45777         Blake <ebb9@byu.net>.
45778
45779         * tests/test-__func__.c (main): Avoid extraneous () around __func.
45780         Suggested by Eric Blake <ebb9@byu.net>.
45781
45782 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45783
45784         * modules/__func__: New file.
45785         * modules/__func__-tests: New file.
45786         * tests/test-__func__.c: New file.
45787         * m4/__func__.m4: New file.
45788         * doc/gnulib.texi (__func__): Document __func__ module.
45789
45790 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45791
45792         * modules/byteswap (License): Re-license as LGPLv2+.
45793
45794 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45795
45796         * doc/Makefile: Add pdf target.
45797
45798 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45799
45800         * modules/inline (License): Use 'unlimited', since there are only
45801         *.m4 files in this module.
45802
45803 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45804             Bruno Haible  <bruno@clisp.org>
45805
45806         Add support for HP C 7.1 on OpenVMS 8.3.
45807         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
45808
45809 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45810
45811         Update VMS specifics.
45812         * lib/getopt.c [VMS]: Remove include of unixlib.h.
45813
45814 2008-03-02  Jim Meyering  <meyering@redhat.com>
45815
45816         Remove the last dependency on the "free" module.
45817         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
45818         Reported by Bob Proulx.
45819
45820         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
45821
45822         Remove useless "if" tests before free.  Deprecate "free" module.
45823         * doc/posix-functions/free.texi: Mention that this
45824         module is no longer useful.
45825         * modules/free (Notice): Say this module is obsolete.
45826         * modules/readutmp (Depends-on): Remove free.
45827         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
45828         * lib/putenv.c (putenv): Likewise.
45829         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
45830         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
45831         * tests/test-c-strcasestr.c (main): Likewise.
45832         * tests/test-c-strstr.c (main): Likewise.
45833         * tests/test-mbscasestr1.c (main): Likewise.
45834         * tests/test-mbscasestr2.c (main): Likewise.
45835         * tests/test-mbsstr1.c (main): Likewise.
45836         * tests/test-mbsstr2.c (main): Likewise.
45837         * tests/test-memmem.c (main): Likewise.
45838         * tests/test-strcasestr.c (main): Likewise.
45839         * tests/test-striconv.c (main): Likewise.
45840         * tests/test-striconveh.c (main): Likewise.
45841         * tests/test-striconveha.c (main): Likewise.
45842         * tests/test-strstr.c (main): Likewise.
45843
45844         * build-aux/git-version-gen: Adjust a comment and the Usage string.
45845
45846         bootstrap: sync from coreutils again
45847         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
45848
45849 2008-03-01  Jim Meyering  <meyering@redhat.com>
45850
45851         bootstrap: sync from coreutils
45852         * build-aux/bootstrap (update_po_files): Copy a .po file into place
45853         also when the target doesn't exist.
45854
45855 2008-03-01  Eric Blake  <ebb9@byu.net>
45856
45857         Fix bugs in last patch.
45858         * lib/memchr2.c (memchr2): Fix typo.
45859         * tests/test-memchr2.c: Test previous bug, and don't use GNU
45860         extension.
45861         Reported by Bruce Korb.
45862
45863         New module 'memchr2'.
45864         * modules/memchr2: New file.
45865         * modules/memchr2-tests: Likewise.
45866         * lib/memchr2.h: Likewise.
45867         * lib/memchr2.c: Likewise, based on memchr.c.
45868         * tests/test-memchr2.c: New test.
45869         * MODULES.html.sh (String handling): Add memchr2.
45870
45871 2008-02-29  Bruno Haible  <bruno@clisp.org>
45872
45873         * modules/freadseek-tests: New file.
45874         * tests/test-freadseek.sh: New file.
45875         * tests/test-freadseek.c: New file.
45876
45877         New module 'freadseek'.
45878         * modules/freadseek: New file.
45879         * lib/freadseek.h: New file.
45880         * lib/freadseek.c: New file.
45881         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
45882
45883 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
45884
45885         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
45886         wydawca.
45887
45888         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
45889         program_invocation_name and program_invocation_short_name are
45890         present.
45891
45892 2008-02-28  Bruno Haible  <bruno@clisp.org>
45893
45894         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
45895         * tests/test-freadptr.sh: Also test non-seekable stdin.
45896
45897 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
45898
45899         * build-aux/bootstrap (source_base, m4_base)
45900         (doc_base, tests_base): New variables.
45901         (gnulib_tool_options): Do not hardcode base directories, use
45902         the above variables instead.
45903
45904 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
45905
45906         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
45907
45908 2008-02-28  Bruno Haible  <bruno@clisp.org>
45909
45910         * modules/freadptr-tests: New file.
45911         * tests/test-freadptr.sh: New file.
45912         * tests/test-freadptr.c: New file.
45913
45914         New module 'freadptr'.
45915         * modules/freadptr: New file.
45916         * lib/freadptr.h: New file.
45917         * lib/freadptr.c: New file.
45918         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
45919
45920 2008-02-26  Karl Berry  <karl@freefriends.org>
45921
45922         Sync from Libtool:
45923         * libltdl/argz.c (argz_add, argz_count): New functions.
45924         * libltdl/argz.in.h: Declare them.
45925         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
45926
45927 2008-02-22  Bruno Haible  <bruno@clisp.org>
45928
45929         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
45930         is a pointer type.  Needed for HP-UX 10.
45931         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
45932         * doc/posix-functions/gmtime_r.texi: Likewise.
45933         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45934
45935 2008-02-24  Bruno Haible  <bruno@clisp.org>
45936
45937         * modules/environ-tests: New file.
45938         * tests/test-environ.c: New file.
45939
45940         New module 'environ'.
45941         * modules/environ: New file.
45942         * lib/unistd.in.h (environ): New declaration.
45943         * m4/environ.m4: New file.
45944         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
45945         after use.
45946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
45947         HAVE_DECL_ENVIRON.
45948         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
45949         HAVE_DECL_ENVIRON.
45950         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
45951         wrong claim that 'environ' is missing on some systems.
45952         * modules/execute (Depends-on): Add environ.
45953         * lib/execute.c (environ): Remove fallback declaration.
45954         * modules/pipe (Depends-on): Add environ.
45955         * lib/pipe.c (environ): Remove fallback declaration.
45956         * modules/setenv (Depends-on): Add environ.
45957         * lib/setenv.c (environ): Remove fallback declaration.
45958         * modules/unsetenv (Depends-on): Add environ.
45959         * lib/unsetenv.c (environ): Remove fallback declaration.
45960         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
45961         m4/environ.m4.
45962         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
45963         (gl_PREREQ_UNSETENV): Likewise.
45964
45965 2008-02-24  Bruno Haible  <bruno@clisp.org>
45966
45967         * doc/posix-functions/environ.texi: Document the MacOS X problem.
45968
45969 2008-02-20  Bob Proulx  <bob@proulx.com>
45970
45971         Enable use of older two part flavor 'git describe'.
45972         * build-aux/git-version-gen: If using the older two part flavor of
45973         git version then recreate the third part now present in the
45974         newer three part flavor of git describe.
45975
45976 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
45977
45978         * lib/fts.c (fts_build): Typo correction to comment.
45979
45980 2008-02-17  Bruno Haible  <bruno@clisp.org>
45981
45982         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
45983         generating no-op conflicts.
45984
45985 2008-02-17  Bruno Haible  <bruno@clisp.org>
45986
45987         Speed up by 10%.
45988         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
45989         result_entries, rather than an index-based loop.
45990
45991 2008-02-17  Bruno Haible  <bruno@clisp.org>
45992
45993         Speed up by 25%.
45994         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
45995         'hashcode_cached'.
45996         (entry_create): New function.
45997         (entry_hashcode): Use the cached hashcode if possible.
45998         (read_changelog_file, try_split_merged_entry): Use entry_create.
45999
46000 2008-02-17  Bruno Haible  <bruno@clisp.org>
46001
46002         Speed up from O(n^2) to O(n) for long ChangeLog files.
46003         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
46004         (read_changelog_file): Change implementation of entries_reversed list
46005         to rbtreehash.
46006         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
46007
46008 2008-02-17  Bruno Haible  <bruno@clisp.org>
46009
46010         New option --split-merged-entry.
46011         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
46012         (find_paragraph_end, try_split_merged_entry): New functions.
46013         (long_options): Add option --split-merged-entry.
46014         (usage): Document option --split-merged-entry.
46015         (main): Implement option --split-merged-entry.
46016         Reported by Eric Blake.
46017
46018 2008-02-17  Bruno Haible  <bruno@clisp.org>
46019
46020         * lib/git-merge-changelog.c: Include c-strstr.h.
46021         (main): Support the "git pull --rebase" situation.
46022         * modules/git-merge-changelog (Depends-on): Add c-strstr.
46023         Reported by Eric Blake.
46024
46025 2008-02-16  Eric Blake  <ebb9@byu.net>
46026
46027         Avoid doubling \ in common case of "c-maybe" quoting style.
46028         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
46029         eliding outer quotes.
46030         * lib/quotearg.h: Document this.
46031         * tests/test-quotearg.c (result_strings, inputs, results_g)
46032         (flag_results, locale_results): Test it by adding a new string to
46033         each test group.
46034         (compare_strings): Test new string.
46035
46036 2008-02-13  Eric Blake  <ebb9@byu.net>
46037
46038         Avoid trigraph quoting in default output.
46039         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
46040         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
46041         unless explicitly requested.
46042         * tests/test-quotearg.c (flag_results, main): Add additional tests.
46043
46044 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
46045
46046         Don't rely on signed integer overflowing to negative value.
46047         * lib/getugroups.c (getugroups): Include <limits.h>.
46048         Instead, compare against INT_MAX, and increment only if the test passes.
46049
46050 2008-02-13  Jim Meyering  <meyering@redhat.com>
46051         and Eric Blake  <ebb9@byu.net>
46052
46053         Avoid shadowing warning and compile errors on Linux.
46054         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
46055         forwarding macros on Linux.
46056         (dcgettext): Define a stub, for Linux.
46057         (results_g, main): Avoid warnings.
46058
46059 2008-02-12  Eric Blake  <ebb9@byu.net>
46060
46061         Silence warning in last patch.
46062         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
46063
46064         Quotearg part 4: add tests, fix c-maybe colon quoting.
46065         * lib/quotearg.h: Improve documentation.
46066         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
46067         escapes when adding outer quotes.  When quoting trigraphs, use
46068         valid C notation.  When quoting NUL, omit extra characters if next
46069         character is not digit.  Alter prototype.
46070         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
46071         callers.
46072         * modules/quotearg-tests: New module.
46073         * tests/test-quotearg.c: New test.
46074
46075 2008-02-07  Eric Blake  <ebb9@byu.net>
46076
46077         Quotearg part 3: add flag to control outer quote elision.
46078         * lib/quotearg.h (c_maybe_quoting_style): New style.
46079         (enum quoting_flags): Better documentation of flags.
46080         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
46081         c-maybe style.
46082         (quotearg_buffer_restyled): Handle new flag to elide outer
46083         quotes.
46084
46085         Quotearg part 2: add flag that can control NUL elision.
46086         * lib/quotearg.h (set_quoting_flags): New prototype.
46087         * lib/quotearg.c (struct quoting_options): Add flag field.
46088         (set_quoting_flags): New function.
46089         (quotearg_buffer_restyled): Add flags parameter.
46090         (quotearg_alloc_mem): Set the flag if length cannot be returned.
46091         (quotearg_n_options): Set the flag, since length cannot be
46092         returned.
46093         (quoting_options_from_style): Default flags correctly.
46094
46095         Quotearg part 1: more wrappers, restore quotearg_char state.
46096         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
46097         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
46098         (quotearg_colon_mem): New wrappers.
46099         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
46100         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
46101         functions.
46102         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
46103         (quotearg_colon_mem): New functions.
46104
46105 2008-02-11  Bruno Haible  <bruno@clisp.org>
46106
46107         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
46108         library in the current directory: it does not work with parallel make.
46109         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46110
46111 2008-02-11  Bruno Haible  <bruno@clisp.org>
46112
46113         * .gitattributes: New file.
46114
46115 2008-02-11  Jim Meyering  <meyering@redhat.com>
46116
46117         useless-if-before-free: Fix reversed exit values.
46118         * build-aux/useless-if-before-free: Use correct values
46119         for EXIT_MATCH and EXIT_NO_MATCH.
46120
46121         * build-aux/useless-if-before-free: Close stdout carefully.
46122
46123 2008-02-10  Bruno Haible  <bruno@clisp.org>
46124
46125         New module 'git-merge-changelog'.
46126         * modules/git-merge-changelog: New file.
46127         * lib/git-merge-changelog.c: New file.
46128
46129 2008-02-10  Jim Meyering  <meyering@redhat.com>
46130
46131         useless-if-before-free: New option: --list (-l).
46132
46133         useless-if-before-free: Don't exit immediately upon open failure.
46134         * build-aux/useless-if-before-free: Exit 2 for errors.
46135         Upon failure to open a file, don't exit immediately.
46136         Rather, just warn and continue with any remaining files.
46137
46138 2008-02-10  Bruno Haible  <bruno@clisp.org>
46139
46140         New abstract list operation 'node_set_value'.
46141         * lib/gl_list.h (gl_list_node_set_value): New function.
46142         (struct gl_list_implementation): New field node_set_value.
46143         * lib/gl_list.c (gl_list_node_set_value): New function.
46144         * lib/gl_array_list.c (gl_array_node_set_value): New function.
46145         (gl_array_list_implementation): Update.
46146         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
46147         (gl_carray_list_implementation): Update.
46148         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
46149         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46150         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46151         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
46152         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46153         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46154         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46155         Update.
46156         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46157         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
46158         (gl_sublist_list_implementation): Update.
46159
46160 2008-02-10  Bruno Haible  <bruno@clisp.org>
46161
46162         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
46163         Needed when ELEMENT is #defined to 'some_type *'.
46164
46165 2008-02-10  Jim Meyering  <meyering@redhat.com>
46166
46167         New script and module: useless-if-before-free
46168         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
46169         * build-aux/useless-if-before-free: New file.
46170         * modules/useless-if-before-free: New file.
46171
46172         * build-aux/gitlog-to-changelog: Use committer date, not author date.
46173
46174         xstrtol_error: Fix typo.
46175         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
46176         s/exit_failure/exit_status/.
46177
46178 2008-02-09  Jim Meyering  <meyering@redhat.com>
46179
46180         New script and module: gitlog-to-changelog
46181         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
46182         * modules/gitlog-to-changelog: New file.
46183         * build-aux/gitlog-to-changelog: New file.
46184
46185 2008-02-08  Jim Meyering  <meyering@redhat.com>
46186
46187         Avoid two "parameter unused" warnings.
46188         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
46189         Mark "st" as used.
46190
46191         Use "git COMMAND", not "git-COMMAND".
46192         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
46193         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
46194         * build-aux/git-version-gen: Use "git status", not "git-status".
46195
46196 2008-02-07  Bruno Haible  <bruno@clisp.org>
46197
46198         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
46199         Avoids a crash on Windows Vista.
46200         Reported by Adam Strzelecki <ono@java.pl> via
46201         Simon Josefsson <simon@josefsson.org>.
46202
46203 2008-02-06  Bruno Haible  <bruno@clisp.org>
46204
46205         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
46206         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
46207         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
46208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
46209         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46210         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46211         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
46212         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
46213         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46214         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46215         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46216         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46217         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46218         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46219         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46220         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
46221         left-adjust flag.
46222         * tests/test-snprintf-posix.h (test_function): Likewise.
46223         * tests/test-sprintf-posix.h (test_function): Likewise.
46224         * tests/test-vasprintf-posix.c (test_function): Likewise.
46225         * doc/posix-functions/fprintf.texi: Update.
46226         * doc/posix-functions/printf.texi: Update.
46227         * doc/posix-functions/snprintf.texi: Update.
46228         * doc/posix-functions/sprintf.texi: Update.
46229         * doc/posix-functions/vfprintf.texi: Update.
46230         * doc/posix-functions/vprintf.texi: Update.
46231         * doc/posix-functions/vsnprintf.texi: Update.
46232         * doc/posix-functions/vsprintf.texi: Update.
46233         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46234
46235 2008-02-06  Bruno Haible  <bruno@clisp.org>
46236
46237         Fix bug introduced on 2008-01-26.
46238         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
46239
46240 2008-02-06  Bruno Haible  <bruno@clisp.org>
46241
46242         Fix bug introduced on 2007-06-10.
46243         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
46244         !NEED_PRINTF_FLAG_ZERO.
46245
46246 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
46247
46248         getloadavg: use libperfstat on AIX5
46249         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
46250
46251 2008-02-03  Bruno Haible  <bruno@clisp.org>
46252
46253         * lib/diffseq.h: Add comments about required #includes.
46254         Reported by Michael Biggs <gnulib@doubleplum.net>.
46255
46256 2008-02-01  Bruno Haible  <bruno@clisp.org>
46257
46258         * users.txt: Add gnuit.
46259
46260 2008-01-31  Bruno Haible  <bruno@clisp.org>
46261
46262         * lib/md4.c (set_uint32): Mark as inline.
46263         * lib/md5.c (set_uint32): Likewise.
46264         * lib/sha1.c (set_uint32): Likewise.
46265         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
46266         * m4/md5.m4 (gl_MD5): Likewise.
46267         * m4/sha1.m4 (gl_SHA1): Likewise.
46268
46269 2008-01-31  Jim Meyering  <meyering@redhat.com>
46270
46271         Use "sizeof VAR", rather than a literal "4".
46272         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
46273         * lib/md4.c (md4_read_ctx): Likewise.
46274         * lib/sha1.c (sha1_read_ctx): Likewise.
46275
46276 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46277
46278         * tests/test-sha1.c: New file, based on test-md5.c.
46279
46280         * modules/crypto/sha1-tests: New file.
46281
46282 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46283
46284         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
46285
46286 2008-01-31  Jim Meyering  <meyering@redhat.com>
46287
46288         Prefer "sizeof v" over the equivalent "4".
46289         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
46290         * lib/md5.c (set_uint32): Likewise.
46291         * lib/sha1.c (set_uint32): Likewise.
46292
46293 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46294
46295         * lib/sha1.c (set_uint32): Mark function as static.
46296
46297 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46298
46299         md2: clarify comments to say that alignment is not required.
46300         * lib/md2.h: Remove warning about alignment in comment.
46301         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
46302         never been required.
46303
46304 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46305
46306         md4: adapt alignment constraint fix from sha1.
46307         * lib/md4.c (set_uint32): New function, from sha1.c
46308         (md4_read_ctx): Use it.
46309         (md4_finish_ctx): Doc fix.
46310         * lib/md4.h: Doc fix.
46311
46312 2008-01-31  Simon Josefsson  <simon@josefsson.org>
46313
46314         md5: adapt alignment constraint fix from sha1.
46315         * lib/md5.c (set_uint32): New function, from sha1.c
46316         (md5_read_ctx): Use it.
46317         (md5_finish_ctx): Doc fix.
46318         * lib/md5.h: Doc fix.
46319
46320 2008-01-30  Peter Palfrader  <weasel@debian.org>
46321
46322         sha1: remove the result buffer alignment constraint
46323         * lib/sha1.c (set_uint32): New function.
46324         (sha1_read_ctx): Rewrite to remove the result buffer alignment
46325         constraint.
46326         (sha1_finish_ctx): Remove comment warning about alignment constraint.
46327         * lib/sha1.h: Likewise.
46328
46329 2008-01-30  Andreas Schwab  <schwab@suse.de>
46330             Bruno Haible  <bruno@clisp.org>
46331
46332         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
46333         correct definition of LDBL_MIN_EXP.
46334
46335 2008-01-30  Karl Berry  <karl@gnu.org>
46336
46337         * config/srclist-update: try to preserve x bit on updates.
46338         * config/srclistvars.sh: update for karl.
46339
46340 2008-01-29  Jim Meyering  <meyering@redhat.com>
46341
46342         vasnprintf.c: Avoid warning about unused label
46343         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
46344         "overflow" label definition and associated code with the
46345         same cpp condition that guards the sole use of that label.
46346
46347 2008-01-26  Bruno Haible  <bruno@clisp.org>
46348
46349         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
46350         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
46351         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
46352         * lib/isnanl-nolibm.h (isnanl): Likewise.
46353         Reported by Paul Eggert <eggert@cs.ucla.edu>.
46354
46355 2008-01-26  Bruno Haible  <bruno@clisp.org>
46356
46357         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
46358         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
46359
46360 2008-01-26  Bruno Haible  <bruno@clisp.org>
46361
46362         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
46363         GCC >= 4.0 built-in.
46364         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
46365
46366 2008-01-26  Bruno Haible  <bruno@clisp.org>
46367
46368         Rename isnan, applicable to 'double' only, to isnand.
46369         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
46370         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
46371         (configure.ac): Update.
46372         (Include): Replace "isnan.h" with "isnand.h".
46373         * m4/isnand.m4: Renamed from m4/isnan.m4.
46374         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
46375         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
46376         instead of isnan.c.
46377         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
46378         instead of HAVE_ISNAN_IN_LIBC.
46379         (isnand): Renamed from isnan.
46380         * lib/isnand.c: New file.
46381         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
46382         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
46383         (Makefile.am): Update.
46384         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
46385         Include isnand.h instead of isnan.h.
46386         (main): Test isnand instead of isnan.
46387         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
46388         isnan-nolibm.
46389         * modules/frexp (Depends-on): Likewise.
46390         * modules/frexp-tests (Depends-on): Likewise.
46391         * modules/frexp-nolibm (Depends-on): Likewise.
46392         * modules/frexp-nolibm-tests (Depends-on): Likewise.
46393         * modules/isfinite (Depends-on): Likewise.
46394         * modules/round-tests (Depends-on): Likewise.
46395         * modules/signbit (Depends-on): Likewise.
46396         * modules/signbit-tests (Depends-on): Likewise.
46397         * modules/snprintf-posix (Depends-on): Likewise.
46398         * modules/sprintf-posix (Depends-on): Likewise.
46399         * modules/trunc-tests (Depends-on): Likewise.
46400         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46401         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46402         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46403         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46404         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46405         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46406         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46407         * modules/vasnprintf-posix (Depends-on): Likewise.
46408         * modules/vasprintf-posix (Depends-on): Likewise.
46409         * modules/vfprintf-posix (Depends-on): Likewise.
46410         * modules/vsnprintf-posix (Depends-on): Likewise.
46411         * modules/vsprintf-posix (Depends-on): Likewise.
46412         * lib/frexp.c: Include isnand.h instead of isnan.h.
46413         (ISNAN): Set to isnand instead of isnan.
46414         * lib/isfinite.c: Include isnand.h instead of isnan.h.
46415         (gl_isfinited): Use isnand instead of isnan.
46416         * lib/signbitd.c: Include isnand.h instead of isnan.h.
46417         (gl_signbitd): Use isnand instead of isnan.
46418         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
46419         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
46420         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
46421         (main): Use isnand instead of isnan.
46422         * tests/test-round1.c: Include isnand.h.
46423         (main): Use isnand instead of isnan.
46424         * tests/test-round2.c: Include isnand.h instead of isnan.h.
46425         (ISNAN): Set to isnand instead of isnan.
46426         * tests/test-trunc1.c: Include isnand.h.
46427         (main): Use isnand instead of isnan.
46428         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
46429         (equal): Use isnand instead of isnan.
46430         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
46431         isnand-nolibm.
46432         * NEWS: Mention the change.
46433
46434 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46435             Bruno Haible  <bruno@clisp.org>
46436
46437         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
46438         the GCC builtins for signbits are present and set
46439         REPLACE_SIGNBIT_USING_GCC if so.
46440         * lib/math.in.h (signbit): Define using GCC builtins if
46441         REPLACE_SIGNBIT_USING_GCC is set.
46442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
46443         REPLACE_SIGNBIT_USING_GCC.
46444         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
46445
46446 2008-01-25  Jim Meyering  <meyering@redhat.com>
46447
46448         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
46449         * lib/poll.c: Include <config.h>, not "config.h".
46450         * tests/test-getaddrinfo.c: Likewise.
46451
46452 2008-01-25  Simon Josefsson  <simon@josefsson.org>
46453
46454         * modules/sockets-tests: New file.
46455
46456 2008-01-24  Simon Josefsson  <simon@josefsson.org>
46457
46458         * modules/sockets: New module, can be used to call WSA_Startup and
46459         WSA_Cleanup when needed.
46460
46461         * lib/sockets.h, lib/sockets.c: New files.
46462
46463         * m4/sockets.m4: New file.
46464
46465         * tests/test-sockets.c: New file.
46466
46467 2008-01-19  Bruno Haible  <bruno@clisp.org>
46468
46469         * doc/posix-headers: Renamed from doc/headers.
46470         * doc/posix-functions: Renamed from doc/functions.
46471         * doc/gnulib.texi: Update.
46472
46473 2008-01-19  Bruno Haible  <bruno@clisp.org>
46474
46475         * doc/glibc-functions/strcasestr.texi: Include contents of
46476         doc/functions/strcasestr.texi, fixing the list of platforms.
46477         * doc/functions/strcasestr.texi: Remove file.
46478
46479 2008-01-19  Bruno Haible  <bruno@clisp.org>
46480
46481         * doc/glibc-functions/memmem.texi: Include contents of
46482         doc/functions/memmem.texi.
46483         * doc/functions/memmem.texi: Remove file.
46484
46485 2008-01-18  Bruno Haible  <bruno@clisp.org>
46486
46487         * doc/glibc-functions/*.texi: New files.
46488         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
46489         to use the new files.
46490
46491 2008-01-17  Bruno Haible  <bruno@clisp.org>
46492
46493         * tests/test-gethostname.c (main): Fix printf statement.
46494
46495 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46496
46497         * modules/gethostname-tests: New file.
46498
46499         * tests/test-gethostname.c: New file.
46500
46501 2008-01-17  Simon Josefsson  <simon@josefsson.org>
46502
46503         * lib/gethostname.c: Include string.h unconditionally, strncpy is
46504         used by the UNAME case.  Reported by Bruno Haible
46505         <bruno@clisp.org>.
46506
46507 2008-01-17  Eric Blake  <ebb9@byu.net>
46508
46509         Convert c-strcasestr to be more efficient.
46510         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
46511         (Depends-on): Add c-strcase, remove malloca, strnlen.
46512         * tests/test-c-strcasestr.c (main): Enhance test.
46513         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
46514
46515 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46516
46517         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
46518         Use it in creating po/Makevars.
46519
46520 2008-01-15  Simon Josefsson  <simon@josefsson.org>
46521
46522         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
46523         Applications that requires it should initialize libgcrypt
46524         manually.
46525
46526 2008-01-16  Simon Josefsson  <simon@josefsson.org>
46527
46528         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
46529
46530 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
46531
46532         Fix problem with getdate on mingw32 reported by Simon Josefsson
46533         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
46534         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
46535         tzname", when deciding whether to declare tzname.
46536         * lib/strftime.c (tzname): Likewise.
46537
46538 2008-01-15  Bruno Haible  <bruno@clisp.org>
46539
46540         Work around a MacOS X 10.5 bug in frexpl().
46541         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
46542         * doc/functions/frexpl.texi: Document the bug.
46543         Reported by Elias Pipping <pipping@gentoo.org>.
46544
46545 2008-01-14  Eric Blake  <ebb9@byu.net>
46546
46547         Touch up previous patch.
46548         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
46549         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
46550
46551         Convert strcasestr module to use Two-Way algorithm.
46552         * modules/strcasestr-simple: New module, based on the old
46553         strcasestr, but with Two-Way rather than KMP.
46554         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
46555         * lib/string.in.h (rpl_strcasestr): Declare.
46556         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
46557         performance.
46558         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
46559         * modules/string (Makefile.am): Support strcasestr.
46560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46561         * modules/strcasestr-tests (Depends-on): Check for alarm.
46562         * tests/test-strcasestr.c: Augment test.
46563         * lib/str-two-way.h: Clean up stray macro.
46564         * NEWS: Document new module.
46565         * MODULES.html.sh (string handling): Likewise.
46566         * doc/functions/strcasestr.texi: New file.
46567         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
46568         here, since it is not a POSIX function.
46569
46570 2008-01-14  Colin Watson  <cjwatson@debian.org>
46571             Bruno Haible  <bruno@clisp.org>
46572
46573         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
46574         works fine; if not, set REPLACE_STRSIGNAL.
46575         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
46576         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46577         REPLACE_STRSIGNAL.
46578         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
46579         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
46580         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
46581
46582 2008-01-14  Bruno Haible  <bruno@clisp.org>
46583
46584         * modules/strsignal (Include): Change to <string.h>.
46585
46586 2008-01-14  Colin Watson  <cjwatson@debian.org>
46587
46588         * modules/argp (Notice): Add a notice recommending to change
46589         XGETTEXT_OPTIONS.
46590         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
46591
46592 2008-01-13  Colin Watson  <cjwatson@debian.org>
46593
46594         * modules/strsignal-tests: New file.
46595         * tests/test-strsignal.c: New file.
46596
46597         * lib/strsignal.c: New file, from glibc with modifications.
46598         * lib/siglist.h: New file, from glibc with modifications.
46599         * lib/string.in.h (strsignal): New declaration.
46600         * m4/strsignal.m4: New file.
46601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46602         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
46603         * modules/strsignal: New file.
46604         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
46605         HAVE_DECL_STRSIGNAL.
46606
46607 2008-01-13  Bruno Haible  <bruno@clisp.org>
46608
46609         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
46610         locale encoding is not ASCII. Needed for OpenBSD 4.0.
46611         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46612         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46613
46614 2008-01-13  Bruno Haible  <bruno@clisp.org>
46615
46616         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
46617         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
46618         * lib/argp.h (__attribute__): Likewise.
46619         * lib/c-stack.c (__attribute__): Likewise.
46620         * lib/error.h (__attribute__): Likewise.
46621         * lib/fts.c (__attribute__): Likewise.
46622         * lib/openat.h (__attribute__): Likewise.
46623         * lib/stdio.in.h (__attribute__): Likewise.
46624         * lib/string.in.h (__attribute__): Likewise.
46625         * lib/utimens.c (__attribute__): Likewise.
46626         * lib/vasnprintf.h (__attribute__): Likewise.
46627         * lib/xalloc.h (__attribute__): Likewise.
46628         * lib/xprintf.h (__attribute__): Likewise.
46629         * lib/xstrtol.h (__attribute__): Likewise.
46630         * lib/xvasprintf.h (__attribute__): Likewise.
46631
46632 2008-01-12  Bruno Haible  <bruno@clisp.org>
46633
46634         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
46635         * doc/glibc-headers/a.out.texi: New file.
46636         * doc/glibc-headers/aliases.texi: New file.
46637         * doc/glibc-headers/alloca.texi: New file.
46638         * doc/glibc-headers/ar.texi: New file.
46639         * doc/glibc-headers/argp.texi: New file.
46640         * doc/glibc-headers/argz.texi: New file.
46641         * doc/glibc-headers/byteswap.texi: New file.
46642         * doc/glibc-headers/crypt.texi: New file.
46643         * doc/glibc-headers/endian.texi: New file.
46644         * doc/glibc-headers/envz.texi: New file.
46645         * doc/glibc-headers/err.texi: New file.
46646         * doc/glibc-headers/error.texi: New file.
46647         * doc/glibc-headers/execinfo.texi: New file.
46648         * doc/glibc-headers/fpu_control.texi: New file.
46649         * doc/glibc-headers/fstab.texi: New file.
46650         * doc/glibc-headers/fts.texi: New file.
46651         * doc/glibc-headers/getopt.texi: New file.
46652         * doc/glibc-headers/ieee754.texi: New file.
46653         * doc/glibc-headers/ifaddrs.texi: New file.
46654         * doc/glibc-headers/libintl.texi: New file.
46655         * doc/glibc-headers/mcheck.texi: New file.
46656         * doc/glibc-headers/mntent.texi: New file.
46657         * doc/glibc-headers/obstack.texi: New file.
46658         * doc/glibc-headers/paths.texi: New file.
46659         * doc/glibc-headers/printf.texi: New file.
46660         * doc/glibc-headers/pty.texi: New file.
46661         * doc/glibc-headers/resolv.texi: New file.
46662         * doc/glibc-headers/shadow.texi: New file.
46663         * doc/glibc-headers/sysexits.texi: New file.
46664         * doc/glibc-headers/ttyent.texi: New file.
46665
46666 2008-01-12  Jim Meyering  <meyering@redhat.com>
46667
46668         announce-gen: emit Gnulib's git-based version string.
46669         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
46670         New option --gnulib-version=V, where V is expected to be
46671         the output of running git describe in the gnulib directory.
46672         (get_tool_versions): Request feedback on xdelta.  I suspect it's
46673         not useful, and plan to stop publishing an xdelta file with each
46674         coreutils release.
46675
46676         * build-aux/announce-gen: Also check for lzma-compressed files.
46677
46678 2008-01-11  Bruno Haible  <bruno@clisp.org>
46679
46680         * tests/test-memmem.c (main): Increase maximum allowed time.
46681         * tests/test-strstr.c (main): Likewise.
46682
46683 2008-01-11  Bruno Haible  <bruno@clisp.org>
46684
46685         * doc/functions/memmem.texi: Add more precisions about platforms.
46686         * doc/functions/strstr.texi: Likewise.
46687
46688 2008-01-10  Eric Blake  <ebb9@byu.net>
46689
46690         * m4/strstr.m4: Delete cruft from copy-n-paste.
46691         Reported by Bruno Haible.
46692
46693 2008-01-10  Bruno Haible  <bruno@clisp.org>
46694
46695         Make c-strstr rely on strstr.
46696         * lib/c-strstr.c: Don't include str-kmp.h.
46697         (c_strstr): Define in terms of strstr.
46698         * modules/c-strstr (Files): Remove lib/str-kmp.h.
46699         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
46700
46701 2008-01-10  Bruno Haible  <bruno@clisp.org>
46702
46703         * doc/gnulib.texi (String Functions in C Locale): New section.
46704         * doc/c-ctype.texi: New file.
46705         * doc/c-strcase.texi: New file.
46706         * doc/c-strcaseeq.texi: New file.
46707         * doc/c-strcasestr.texi: New file.
46708         * doc/c-strstr.texi: New file.
46709         * doc/c-strtod.texi: New file.
46710         * doc/c-strtold.texi: New file.
46711
46712 2008-01-10  Eric Blake  <ebb9@byu.net>
46713
46714         * lib/relocatable.h: Fix a comment.
46715
46716 2008-01-10  Eric Blake  <ebb9@byu.net>
46717
46718         Share two-way algorithm.
46719         * lib/str-two-way.h: New file, merged from...
46720         * lib/memmem.c: ...here...
46721         * lib/strstr.c: ...and here.
46722         * modules/memmem (Files): Use it.
46723         * modules/strstr (Files): Likewise.
46724
46725         Avoid quadratic strstr implementations.
46726         * lib/strstr.c: New file.
46727         * m4/strstr.m4: Likewise.
46728         * modules/strstr: Likewise.
46729         * modules/strstr-tests: Likewise.
46730         * tests/test-strstr.c: Likewise.
46731         * lib/string.in.h (rpl_strstr): Declare.
46732         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
46733         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
46734         * modules/string (Makefile.am): Likewise.
46735         * MODULES.html.sh (string handling): Mention new module.
46736         * doc/functions/strstr.texi (strstr): Document the bug.
46737
46738 2008-01-10  Bruno Haible  <bruno@clisp.org>
46739
46740         * lib/relocatable.h (relocate): State whether result is freshly
46741         allocated or not.
46742         * lib/relocatable.c (relocate): Return a freshly allocated string
46743         instead of a pointer to a privately held string.
46744         Reported by Sylvain Beucler <beuc@gnu.org>.
46745
46746 2008-01-10  Colin Watson  <cjwatson@debian.org>
46747
46748         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
46749         s/S_ISNLK/S_ISLNK/.
46750
46751 2008-01-09  Bruno Haible  <bruno@clisp.org>
46752
46753         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
46754         and other files.
46755         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
46756         if it's only a guess.
46757         * modules/memmem: Simplify by depending on memmem-simple.
46758
46759 2008-01-09  Bruno Haible  <bruno@clisp.org>
46760
46761         Work around OpenBSD 4.0 tdelete() bug.
46762         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
46763         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
46764         macros and don't redefine the enum values.
46765         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
46766         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
46767         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
46768
46769 2008-01-09  Bruno Haible  <bruno@clisp.org>
46770
46771         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
46772         (main): Don't perform the tests if setlocale did not install a UTF-8
46773         locale. Needed on OpenBSD 4.0.
46774         * modules/wcwidth-tests (Depends-on): Add localcharset.
46775
46776 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46777
46778         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
46779         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
46780         * NEWS: announce this.
46781         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
46782
46783 2008-01-09  Simon Josefsson  <simon@josefsson.org>
46784         and Eric Blake  <ebb9@byu.net>
46785
46786         Add memmem-simple module.
46787         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
46788         (gl_FUNC_MEMMEM): Separate performance from presence checks.
46789         * modules/memmem-simple: New file.
46790         * modules/memmem (Description): Tweak.
46791         * MODULES.html.sh (string handling): Mention new module.
46792         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
46793         addressed by memmem-simple.
46794         * NEWS: Document the difference.
46795
46796 2008-01-09  Eric Blake  <ebb9@byu.net>
46797
46798         Give gcc some memmem optimization hints.
46799         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
46800         (strcasestr): Declare as pure.
46801         * modules/memmem (Maintainer): Claim my implementation.
46802
46803 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46804
46805         Support AIX 6.1 and higher.
46806         * build-aux/config.libpath: Likewise.
46807         * build-aux/config.rpath: Likewise.
46808
46809 2008-01-08  Jim Meyering  <meyering@redhat.com>
46810             Bruno Haible  <bruno@clisp.org>
46811
46812         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
46813         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
46814         Reported by Peter Fales in
46815         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
46816
46817 2008-01-08  Bruno Haible  <bruno@clisp.org>
46818
46819         * modules/unictype/category-of (Depends-on): Add
46820         unictype/category-none.
46821         * modules/unictype/category-and-tests (Depends-on): Add
46822         unictype/category-{L,N,Lu,Nd}.
46823         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
46824         * modules/unictype/category-or-tests (Depends-on): Add
46825         unictype/category-{L,N}.
46826         * modules/unictype/category-name-tests (Depends-on): Add
46827         unictype/category-{Z,Nl}.
46828         Reported by Simon Josefsson.
46829
46830 2008-01-08  Bruno Haible  <bruno@clisp.org>
46831
46832         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
46833         convention better.
46834         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
46835         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
46836         Reported by Peter Miller <millerp@canb.auug.org.au>.
46837
46838 2008-01-08  Eric Blake  <ebb9@byu.net>
46839
46840         Rewrite memmem to guarantee linear complexity without malloc.
46841         * lib/memmem.c (memmem): Use Two-Way rather than
46842         Knuth-Morris-Pratt, to allow O(1) space usage.
46843         (critical_factorization, two_way_short_needle)
46844         (two_way_long_needle): New functions.
46845         (knuth_morris_pratt): Delete.
46846         * modules/memmem (Depends-on): No longer need malloca or stdbool.
46847         Add stdint.
46848         * tests/test-memmem.c (main): Add tests for periodic needle and
46849         sublinear performance.
46850         * doc/functions/memmem.texi (memmem): Document other deficiencies
46851         in cygwin and older glibc.
46852
46853 2008-01-08  Bruno Haible  <bruno@clisp.org>
46854
46855         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
46856         augmentation.
46857
46858 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
46859
46860         Add a configure time option: --disable-acl.
46861         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
46862         AC_ARG_ENABLE(acl).
46863
46864 2008-01-06  Simon Josefsson  <simon@josefsson.org>
46865
46866         * tests/test-localename.c: Don't include obsolete "setenv.h".
46867
46868         * modules/localename-tests (Depends-on): Need unsetenv.
46869
46870 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46871
46872         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
46873
46874 2008-01-06  Colin Watson  <cjwatson@debian.org>
46875
46876         * users.txt: Add man-db.
46877
46878 2008-01-07  Bruno Haible  <bruno@clisp.org>
46879
46880         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
46881         previous section name.
46882
46883 2008-01-07  Bruno Haible  <bruno@clisp.org>
46884
46885         * lib/progname.c (set_program_name): Don't strip off a leading
46886         "lt-" prefix outside a .libs directory.
46887         Suggested by Paul Eggert.
46888
46889 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
46890             Bruno Haible  <bruno@clisp.org>
46891
46892         Improve memory cleanup in 'relocatable' module.
46893         * lib/relocatable.h (compute_curr_prefix): Change return type to
46894         'char *'.
46895         * lib/relocatable.c (compute_curr_prefix): Change return type to
46896         'char *'. Free curr_installdir after use.
46897         (relocate): Free curr_prefix_better after use.
46898         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
46899
46900 2008-01-01  Bruno Haible  <bruno@clisp.org>
46901
46902         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
46903         failure on older glibc systems.
46904         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46905
46906 2008-01-05  Eric Blake  <ebb9@byu.net>
46907
46908         Avoid quadratic system memmem.
46909         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
46910         Reported by Ralf Wildenhues.
46911
46912         Fix memmem test for mingw.
46913         * modules/memmem-tests (configure.ac): Check for alarm.
46914         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
46915         it.
46916         * doc/functions/memmem.texi: New file.
46917         * doc/gnulib.texi (Function Substitutes): Add memmem.
46918         Reported by Bruno Haible.
46919
46920 2008-01-04  Bruno Haible  <bruno@clisp.org>
46921
46922         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
46923         Require gl_HEADER_STRINGS_H_DEFAULTS, not
46924         gl_HEADER_STRING_H_DEFAULTS.
46925
46926 2008-01-04  Eric Blake  <ebb9@byu.net>
46927
46928         Shorten duration of memmem test.
46929         * tests/test-memmem.c (main): Use alarm to declare failure if test
46930         is taking too long.
46931         Reported by Ralf Wildenhues.
46932
46933 2007-12-21  Simon Josefsson  <simon@josefsson.org>
46934
46935         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
46936         string, needed by strerror.
46937
46938 2008-01-03  Colin Watson  <cjwatson@debian.org>
46939             Bruno Haible  <bruno@clisp.org>
46940
46941         * doc/gnulib-tool.texi (Localization): New section.
46942
46943 2008-01-02  Bruno Haible  <bruno@clisp.org>
46944
46945         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
46946         variables to 'unsigned char *' type.
46947         Reported by Paul Eggert.
46948
46949 2008-01-02  Jim Meyering  <jim@meyering.net>
46950
46951         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
46952
46953 2007-12-31  Jim Meyering  <jim@meyering.net>
46954
46955         Avoid use of private FTS type name.
46956         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
46957
46958 2007-12-30  Karl Berry  <karl@gnu.org>
46959
46960         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
46961         work around defect in Texinfo and/or the standalone Info browser.
46962
46963 2007-12-30  Bruno Haible  <bruno@clisp.org>
46964
46965         Unify 5 copies of the KMP code.
46966         * lib/str-kmp.h: New file.
46967         * lib/c-strcasestr.c: Include str-kmp.h.
46968         (knuth_morris_pratt): Remove function.
46969         (c_strcasestr): Update.
46970         * lib/c-strstr.c: Include str-kmp.h.
46971         (knuth_morris_pratt): Remove function.
46972         (c_strcasestr): Update.
46973         * lib/mbscasestr.c: Include str-kmp.h.
46974         (knuth_morris_pratt_unibyte): Remove function.
46975         * lib/mbsstr.c: Include str-kmp.h.
46976         (knuth_morris_pratt_unibyte): Remove function.
46977         * lib/strcasestr.c: Include str-kmp.h.
46978         (knuth_morris_pratt): Remove function.
46979         (strcasestr): Update.
46980         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
46981         * modules/c-strstr (Files): Likewise.
46982         * modules/mbscasestr (Files): Likewise.
46983         * modules/mbsstr (Files): Likewise.
46984         * modules/strcasestr (Files): Likewise.
46985         Suggested by Paul Eggert.
46986
46987 2007-12-30  Bruno Haible  <bruno@clisp.org>
46988
46989         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
46990         defined.
46991
46992 2007-12-30  Bruno Haible  <bruno@clisp.org>
46993
46994         * lib/xmalloca.h: Include xalloc.h.
46995         (xnmalloca): New macro.
46996
46997 2007-12-30  Bruno Haible  <bruno@clisp.org>
46998
46999         * lib/malloca.h (nmalloca): New macro.
47000         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
47001         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
47002         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
47003         knuth_morris_pratt_multibyte): Likewise.
47004         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
47005         knuth_morris_pratt_multibyte): Likewise.
47006         * lib/memmem.c (knuth_morris_pratt): Likewise.
47007         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
47008
47009 2007-12-25  Bruno Haible  <bruno@clisp.org>
47010
47011         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
47012         * lib/glob.c: Don't include openat.h.
47013         (link_exists2_p): Add back the code that deals with the
47014         !GLOB_ALTDIRFUNC case.
47015         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
47016         let it do the filename concatenation.
47017         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
47018         * modules/glob (Depends-on): Remove openat.
47019
47020 2007-12-31  Bruno Haible  <bruno@clisp.org>
47021
47022         * modules/dirfd (License): Change to LGPLv2+.
47023         Approved by Jim Meyering.
47024
47025 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47026
47027         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
47028         when multiplying M by sizeof (size_t).
47029
47030 2007-12-10  Martin Lambers  <marlam@marlam.de>
47031
47032         Override getpagesize on mingw.
47033         * lib/getpagesize.c: New file.
47034         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
47035         * modules/getpagesize (Files): Add lib/getpagesize.c.
47036         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
47037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47038         REPLACE_GETPAGESIZE.
47039         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
47040
47041 2007-12-25  Bruno Haible  <bruno@clisp.org>
47042
47043         * modules/localcharset (Notice): New field.
47044         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
47045         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
47046
47047 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47048             Bruno Haible  <bruno@clisp.org>
47049
47050         Avoid using the syntax symbol() in formatted documentation.
47051         * MODULES.html.sh (func_module): When replacing symbol() with a
47052         hyperlink, remove the parentheses. Show an error if some remain.
47053         Recognize and render the '...' syntax.
47054         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
47055         Rework. Add paragraph about GCC's inlining.
47056         * doc/alloca.texi: Likewise.
47057         * doc/error.texi: Remove parentheses from symbol reference.
47058         * doc/gnulib-intro.texi: Likewise.
47059         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
47060         * modules/fnmatch (Description): Reword to say "the ... function".
47061         * modules/full-read (Description): Likewise.
47062         * modules/full-write (Description): Likewise.
47063         * modules/safe-read (Description): Likewise.
47064         * modules/safe-write (Description): Likewise.
47065         * modules/strchrnul (Description): Likewise.
47066         * modules/trim (Description): Likewise.
47067         * modules/error (Description): Remove parentheses from symbol
47068         references.
47069         * modules/verror (Description): Likewise.
47070         Reported by Karl Berry.
47071
47072 2007-12-25  Bruno Haible  <bruno@clisp.org>
47073
47074         Fixup after 2007-10-16 commit.
47075         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
47076
47077 2007-12-24  Bruno Haible  <bruno@clisp.org>
47078
47079         Make --enable-relocatable work with DESTDIR.
47080         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
47081         to compute installdir from destprog.
47082         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
47083         also set the RELOC_DESTDIR variable.
47084         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47085
47086 2007-12-24  Bruno Haible  <bruno@clisp.org>
47087
47088         Fix link error due to xalloc_die().
47089         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
47090         of xreadlink.
47091         * lib/relocwrapper.c: Update comments.
47092         * build-aux/install-reloc: Remove xreadlink.c from file list.
47093         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
47094         xreadlink.c.
47095         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47096
47097 2007-12-24  Bruno Haible  <bruno@clisp.org>
47098
47099         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
47100         * lib/setenv.h: Remove file.
47101         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
47102         lib/setenv.h.
47103         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
47104         (Depends-on): Add stdlib.
47105         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
47106         gl_FUNC_UNSETENV.
47107         (Include): Replace setenv.h with <stdlib.h>.
47108         * modules/unsetenv: New file.
47109         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
47110         * lib/unsetenv.c: Include <stdlib.h> first.
47111         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
47112         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
47113         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
47114         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
47115         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
47116         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
47118         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
47119         * doc/functions/unsetenv.texi: Update.
47120         * modules/xsetenv (Depends-on): Add unsetenv.
47121         * modules/getdate (Depends-on): Likewise.
47122         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
47123         * lib/xsetenv.c: Don't include setenv.h.
47124         * lib/getdate.y: Likewise.
47125         * lib/relocwrapper.c: Likewise.
47126         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
47127         (Depends-on): Add stdlib.
47128         * NEWS: Mention the changes.
47129         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
47130
47131 2007-12-23  Bruno Haible  <bruno@clisp.org>
47132
47133         * lib/memmem.c (memmem): Use lowercase variable names. Tab
47134         indentation.
47135
47136 2007-12-23  Bruno Haible  <bruno@clisp.org>
47137
47138         * lib/c-strcasestr.c: Add more comments.
47139         * lib/c-strstr.c: Likewise.
47140         * lib/mbscasestr.c: Likewise.
47141         * lib/mbsstr.c: Likewise.
47142         * lib/strcasestr.c: Likewise.
47143         * lib/memmem.c: Likewise.
47144
47145 2007-12-23  Bruno Haible  <bruno@clisp.org>
47146
47147         * tests/test-memmem.c: Include <string.h> first.
47148
47149 2007-12-22  Bruno Haible  <bruno@clisp.org>
47150
47151         * gnulib-tool (func_create_testdir): Change $auxdir while generating
47152         the contents of $testsbase.
47153         Reported by Ralf Wildenhues.
47154
47155 2007-12-22  Bruno Haible  <bruno@clisp.org>
47156
47157         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
47158         two variables local_ldadd_before, local_ldadd_last.
47159
47160 2007-12-20  Eric Blake  <ebb9@byu.net>
47161
47162         Work around circular library issue when cross-compiling.
47163         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
47164         that progname.o does not need to pull in rpl_memcmp.
47165
47166 2007-12-19  Eric Blake  <ebb9@byu.net>
47167
47168         Fix memmem to avoid O(n^2) worst-case complexity.
47169         * lib/memmem.c (knuth_morris_pratt): New function.
47170         (memmem): Use it if first few naive iterations fail.
47171         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
47172         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
47173         * modules/memchr (License): Likewise.
47174         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
47175         malloca.
47176         * tests/test-memmem.c: Rewrite, borrowing ideas from
47177         test-mbsstr1.c; the old version wouldn't even compile!
47178         * modules/memmem-tests: New file.
47179         * lib/string.in.h (rpl_memmem): Add declaration.
47180         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
47181         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
47182         REPLACE_MEMMEM.
47183
47184 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47185
47186         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
47187         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
47188         before any system include files, and undef after them all.  This
47189         should fix a problem on VMS reported by John E. Malmberg in
47190         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
47191
47192 2007-12-17  Eric Blake  <ebb9@byu.net>
47193
47194         Revert addition of verify, for BSD/OS.
47195         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
47196         can't handle large files, for the sake of obsolete platforms.
47197         * modules/fseeko (Depends-on): Remove verify.
47198         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
47199         * doc/functions/ftello.texi (ftello): Likewise.
47200         * doc/functions/fgetpos.texi (fgetpos): Likewise.
47201         Reported by Larry Jones.
47202
47203 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
47204
47205         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
47206         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
47207
47208 2007-12-17  Jim Meyering  <meyering@redhat.com>
47209
47210         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
47211         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
47212         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
47213         * modules/getcwd (Depends-on): Add openat.
47214         Reported by Petr Salinger.
47215
47216 2007-12-17  Bruno Haible  <bruno@clisp.org>
47217
47218         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
47219         avoid a segmentation fault of the configure test on x86_64 systems.
47220
47221 2007-12-15  Jim Meyering  <meyering@redhat.com>
47222
47223         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
47224
47225 2007-12-13  Eric Blake  <ebb9@byu.net>
47226
47227         Another fseek test.
47228         * tests/test-fseek.c (main): Also test ungetc handling.
47229         * tests/test-fseeko.c (main): Likewise.
47230         * modules/fseeko (Depends-on): Add verify.
47231         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
47232         large.
47233         Reported by Larry Jones.
47234
47235         Fix fseeko on mingw.
47236         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
47237         seek.
47238
47239         Beef up fseek tests.
47240         * tests/test-fseek.c (main): Also test eof handling.
47241         * tests/test-fseeko.c (main): Likewise.
47242         Reported by Larry Jones.
47243
47244 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
47245
47246         Fix fseeko on BSD-based platforms.
47247         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
47248         successful seek.
47249
47250 2007-12-12  Eric Blake  <ebb9@byu.net>
47251
47252         Allow circular dependency of separate libtests.a
47253         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
47254         when use_libtests.
47255
47256 2007-12-11  Eric Blake  <ebb9@byu.net>
47257
47258         Fix bug with -0.0L in previous patch.
47259         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
47260         * tests/test-isnan.c (main): Also test on zeroes.
47261         * tests/test-isnanf.c (main): Likewise.
47262         * tests/test-isnanl.h (main): Likewise.
47263
47264         Detect pseudo-denormals on x86 even when cross-compiling.
47265         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
47266         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
47267         invalid bit patterns that happen to satisfy ==.
47268
47269         Avoid link failures with separate libtests.a.
47270         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
47271         last, to satisfy circular dependencies.
47272
47273 2007-12-11  Eric Blake  <ebb9@byu.net>
47274         and Bruno Haible  <bruno@clisp.org>
47275
47276         Fix OpenBSD 4.0 <float.h> handling of long double.
47277         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
47278         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
47279         * doc/headers/float.texi (float.h): Document OpenBSD bug.
47280
47281 2007-12-11  Jim Meyering  <meyering@redhat.com>
47282
47283         * users.txt: Add libvirt.
47284
47285         Support versions of autoconf prior to 2.59c.
47286         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
47287         if it is not already defined.
47288
47289 2007-12-09  Bruno Haible  <bruno@clisp.org>
47290
47291         Let 'gnulib-tool --import' collect sources needed for the tests in
47292         tests/ rather than in lib/.
47293         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
47294         argument. If true, add rules to generate libtests.a, and put libtests.a
47295         into $(LDADD). Consider source files in subdirectories and set
47296         uses_subdirs.
47297         (func_emit_initmacro_start, func_emit_initmacro_end,
47298         func_emit_initmacro_done): Pass all arguments explicitly.
47299         (func_import): Determine two module lists main_modules,
47300         testsrelated_modules. Determine use_libtests. Determine two variables
47301         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
47302         instead of just sed_transform_lib_file. Determine two variables
47303         main_files and testsrelated_files. Compute 'files' as the union of
47304         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
47305         func_add_or_update. In the generated gnulib-comp.m4, collect the
47306         object files for tests/ in different variables than those for lib/.
47307         Substitute LIBTESTS_LIBDEPS.
47308         (func_create_testdir): Combine the uses_subdirs results from
47309         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
47310
47311 2007-12-09  Bruno Haible  <bruno@clisp.org>
47312
47313         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
47314         the build-aux directory.
47315
47316 2007-12-09  Bruno Haible  <bruno@clisp.org>
47317
47318         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
47319         introduced on 2006-09-09.
47320
47321 2007-12-07  Jim Meyering  <meyering@redhat.com>
47322
47323         Let these macros work also with autoconf-2.59.
47324         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
47325         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
47326         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47327
47328 2007-12-06  Jim Meyering  <meyering@redhat.com>
47329
47330         Avoid a configure-time syntax error in gl_FUNC_ACL.
47331         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
47332         function in each branch, before testing the cache variable.
47333
47334 2007-12-04  Eric Blake  <ebb9@byu.net>
47335
47336         Make scripts executable.
47337         * build-aux/config.guess: Add execute permissions.
47338         * build-aux/config.sub: Likewise.
47339         * build-aux/gendocs.sh: Likewise.
47340
47341         Fix frexp on mingw.
47342         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
47343         cross-compiling.
47344         * doc/functions/frexp.texi (frexp): Document the bug.
47345
47346         Make cygwin fseeko check more reliable.
47347         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
47348         version numbers, rather than unrelated feature check.
47349         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
47350         * doc/functions/ftello.texi (ftello): Likewise.
47351         Reported by Bruno Haible.
47352
47353         * m4/strerror.m4: Bump version number.
47354
47355 2007-12-03  Bruno Haible  <bruno@clisp.org>
47356
47357         * doc/functions/mprotect.texi: Mention the mingw problem.
47358
47359 2007-12-03  Eric Blake  <ebb9@byu.net>
47360
47361         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
47362         REPLACE_STRERROR is initialized before this macro.
47363
47364 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47365
47366         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
47367         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
47368         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
47369         put -lsec in even for programs other than 'ls'.  This fixes a problem
47370         for gettext reported by Bruno Haible in
47371         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
47372         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
47373         Add support for Solaris 10.  This isn't efficient, but should get the
47374         job done for now.
47375
47376 2007-12-03  James Youngman  <jay@gnu.org>
47377
47378         * doc/regexprops-generic.texi: change "an close-group" to "a
47379         close-group" and "illegal" to "not allowed".
47380
47381 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47382
47383         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
47384         pr_byname.h. Needed for the rare case when the maintainer has done
47385         "make maintainer-clean" in the source directory and then attempts a
47386         build outside the source directory.
47387         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
47388         scripts_byname.h.
47389
47390 2007-12-02  Martin Lambers <marlam@marlam.de>
47391             Bruno Haible  <bruno@clisp.org>
47392
47393         * lib/getpagesize.h: Remove file.
47394         * lib/unistd.in.h: Include declaration of getpagesize here.
47395         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
47396         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
47397         HAVE_SYS_PARAM_H.
47398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
47399         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47400         * modules/getpagesize (Files): Remove lib/getpagesize.h.
47401         (Depends-on): Add unistd.
47402         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47403         (Include): Use <unistd.h> instead of getpagesize.h.
47404         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
47405         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
47406         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
47407         gl_GETPAGESIZE invocation, already handled by module dependency.
47408         * lib/pagealign_alloc.c: Don't include getpagesize.h.
47409
47410 2007-12-02  Bruno Haible  <bruno@clisp.org>
47411
47412         * modules/strings-tests: New file.
47413         * tests/test-strings.c: New file.
47414
47415         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
47416         * lib/strings.in.h: New file.
47417         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
47418         * m4/strings_h.m4: New file.
47419         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
47420         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
47421         * modules/strings: New file.
47422         * modules/string (Makefile.am): Update.
47423         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
47424         Reported by Karl Berry.
47425
47426 2007-12-01  Eric Blake  <ebb9@byu.net>
47427
47428         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
47429         accomodate fix in cygwin 1.5.25.
47430
47431 2007-12-01  Jim Meyering  <meyering@redhat.com>
47432
47433         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
47434         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
47435         that would inhibit utf8-optimization of a regexp containing line-
47436         or buffer-anchors, e.g., `^', `$'.
47437
47438 2007-11-30  Bruno Haible  <bruno@clisp.org>
47439
47440         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
47441         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
47442         glthread_recursive_lock_init.
47443         * lib/lock.c (glthread_recursive_lock_init)
47444         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
47445         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47446
47447 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
47448
47449         New function qset_acl, like set_acl but with syscall semantics.
47450         * lib/acl.h (qset_acl): New decl.
47451         * lib/acl.c (qset_acl): New function.
47452         (set_acl): Use new function.  Use more-consistent diagnostics.
47453
47454 2007-11-28  Jim Meyering  <meyering@redhat.com>
47455
47456         * modules/physmem (License): Change from GPL to LGPLv2+.
47457
47458 2007-11-26  Bruno Haible  <bruno@clisp.org>
47459
47460         * lib/vasnprintf.c (decode_long_double): Don't abort if the
47461         'long double' type has excess precision.
47462         Reported by Jim Meyering in
47463         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
47464
47465 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47466
47467         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
47468         Sync from <http://gnu.org/licenses>.
47469         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
47470         with license text from same location.
47471         * doc/maintain.texi, doc/standards.texi:  Sync from
47472         <http://savannah.gnu.org/projects/gnustandards>.
47473
47474 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
47475         and Jim Meyering  <meyering@redhat.com>
47476
47477         Adjust getdate' grammar to accept a slightly more regular language.
47478         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
47479         Before, the former was rejected.
47480         * lib/getdate.y (digits_to_date_time): New function, factored
47481         out of ...
47482         (number): ...here.  Just call digits_to_date_time.
47483         (hybrid): New non-terminal to handle an <unsigned number,
47484         signed relative offset> sequence consistently.
47485
47486 2007-11-18  Jim Meyering  <meyering@redhat.com>
47487
47488         Pull my changes from coreutils:
47489         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
47490         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
47491         use of $gnulib_tool_option_extras, so that it's separated from the
47492         preceding argument.
47493
47494         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
47495         * build-aux/bootstrap (cp_mark_as_generated): Create any required
47496         parent destination directories before copying a file into place.
47497
47498 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47499
47500         bootstrap: work also with 4-argument variant of AC_INIT
47501         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
47502
47503 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47504
47505         Port test-getaddrinfo to Solaris.
47506         Problem reported by Bruno Haible in
47507         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
47508         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
47509         explanation of setting 'hints'.
47510         Don't reject an implementation merely because it returns EAI_SERVICE.
47511         (EAI_SERVICE): Define to 0 if not defined.
47512
47513 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47514
47515         The license of gnu-make and posix-shell is now "GPLed build tool".
47516         * modules/gnu-make (License): Likewise.
47517         * modules/posix-shell (License): Likewise.
47518
47519         New module posix-shell, for determining a POSIX shell
47520         or perhaps something that is close enough to a POSIX shell.
47521         * m4/posix-shell.m4: New file.
47522         * modules/posix-shell: New file.
47523
47524         * MODULES.html.sh: Mention new module.
47525
47526         New module gnu-make, for determining whether we're using GNU Make.
47527         * m4/gnu-make.m4: New file.
47528         * modules/gnu-make: New file.
47529         * MODULES.html.sh: Mention new module.
47530
47531 2007-11-14  Jim Meyering  <meyering@redhat.com>
47532
47533         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
47534         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
47535         use this macro to create a function _definition_.
47536         Remove useless "#undef ARGMATCH_DIE".
47537
47538 2007-11-14  Bruno Haible  <bruno@clisp.org>
47539
47540         * lib/config.charset: Update for OpenBSD 4.1.
47541         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
47542
47543 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
47544
47545         Document 64-bit #if problems in stdint.texi.
47546         * doc/headers/stdint.texi (stdint.h): Mention problems with
47547         64-bit-#if, and how to work around them.
47548
47549         Don't insist on 'long long int' support in the preprocessor.  It
47550         breaks too many things.  For example, PRIdMAX still uses a 'long
47551         long int' format with the latest Sun compiler, even though
47552         HAVE_LONG_LONG_INT isn't defined due to that compiler's
47553         preprocessor problem.  This causes the latest coreutils to dump
47554         core on Solaris 10 sparc with the Sun C compiler.
47555         Instead, fix the 2007-10-16 problem in a different way, by evaluating
47556         the troublesome expressions at configure-time, not at #if-time.
47557         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
47558         preprocessor.
47559         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
47560         compile-time C checks, done at 'configure'-time.
47561         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
47562         * modules/inttypes (Makefile): Substitute the new symbols that
47563         gl_INTTYPES_H now generates.
47564         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
47565
47566 2007-11-12  Bruno Haible  <bruno@clisp.org>
47567
47568         Tests for Unicode character classification functions.
47569
47570         * modules/unictype/bidicategory-byname-tests: New file.
47571         * modules/unictype/bidicategory-name-tests: New file.
47572         * modules/unictype/bidicategory-of-tests: New file.
47573         * modules/unictype/bidicategory-test-tests: New file.
47574         * modules/unictype/block-list-tests: New file.
47575         * modules/unictype/block-of-tests: New file.
47576         * modules/unictype/block-test-tests: New file.
47577         * modules/unictype/category-C-tests: New file.
47578         * modules/unictype/category-Cc-tests: New file.
47579         * modules/unictype/category-Cf-tests: New file.
47580         * modules/unictype/category-Cn-tests: New file.
47581         * modules/unictype/category-Co-tests: New file.
47582         * modules/unictype/category-Cs-tests: New file.
47583         * modules/unictype/category-L-tests: New file.
47584         * modules/unictype/category-Ll-tests: New file.
47585         * modules/unictype/category-Lm-tests: New file.
47586         * modules/unictype/category-Lo-tests: New file.
47587         * modules/unictype/category-Lt-tests: New file.
47588         * modules/unictype/category-Lu-tests: New file.
47589         * modules/unictype/category-M-tests: New file.
47590         * modules/unictype/category-Mc-tests: New file.
47591         * modules/unictype/category-Me-tests: New file.
47592         * modules/unictype/category-Mn-tests: New file.
47593         * modules/unictype/category-N-tests: New file.
47594         * modules/unictype/category-Nd-tests: New file.
47595         * modules/unictype/category-Nl-tests: New file.
47596         * modules/unictype/category-No-tests: New file.
47597         * modules/unictype/category-P-tests: New file.
47598         * modules/unictype/category-Pc-tests: New file.
47599         * modules/unictype/category-Pd-tests: New file.
47600         * modules/unictype/category-Pe-tests: New file.
47601         * modules/unictype/category-Pf-tests: New file.
47602         * modules/unictype/category-Pi-tests: New file.
47603         * modules/unictype/category-Po-tests: New file.
47604         * modules/unictype/category-Ps-tests: New file.
47605         * modules/unictype/category-S-tests: New file.
47606         * modules/unictype/category-Sc-tests: New file.
47607         * modules/unictype/category-Sk-tests: New file.
47608         * modules/unictype/category-Sm-tests: New file.
47609         * modules/unictype/category-So-tests: New file.
47610         * modules/unictype/category-Z-tests: New file.
47611         * modules/unictype/category-Zl-tests: New file.
47612         * modules/unictype/category-Zp-tests: New file.
47613         * modules/unictype/category-Zs-tests: New file.
47614         * modules/unictype/category-and-not-tests: New file.
47615         * modules/unictype/category-and-tests: New file.
47616         * modules/unictype/category-byname-tests: New file.
47617         * modules/unictype/category-name-tests: New file.
47618         * modules/unictype/category-none-tests: New file.
47619         * modules/unictype/category-of-tests: New file.
47620         * modules/unictype/category-or-tests: New file.
47621         * modules/unictype/category-test-withtable-tests: New file.
47622         * modules/unictype/combining-class-tests: New file.
47623         * modules/unictype/ctype-alnum-tests: New file.
47624         * modules/unictype/ctype-alpha-tests: New file.
47625         * modules/unictype/ctype-blank-tests: New file.
47626         * modules/unictype/ctype-cntrl-tests: New file.
47627         * modules/unictype/ctype-digit-tests: New file.
47628         * modules/unictype/ctype-graph-tests: New file.
47629         * modules/unictype/ctype-lower-tests: New file.
47630         * modules/unictype/ctype-print-tests: New file.
47631         * modules/unictype/ctype-punct-tests: New file.
47632         * modules/unictype/ctype-space-tests: New file.
47633         * modules/unictype/ctype-upper-tests: New file.
47634         * modules/unictype/ctype-xdigit-tests: New file.
47635         * modules/unictype/decimal-digit-tests: New file.
47636         * modules/unictype/digit-tests: New file.
47637         * modules/unictype/mirror-tests: New file.
47638         * modules/unictype/numeric-tests: New file.
47639         * modules/unictype/property-alphabetic-tests: New file.
47640         * modules/unictype/property-ascii-hex-digit-tests: New file.
47641         * modules/unictype/property-bidi-arabic-digit-tests: New file.
47642         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
47643         * modules/unictype/property-bidi-block-separator-tests: New file.
47644         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
47645         * modules/unictype/property-bidi-common-separator-tests: New file.
47646         * modules/unictype/property-bidi-control-tests: New file.
47647         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
47648         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
47649         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
47650         * modules/unictype/property-bidi-european-digit-tests: New file.
47651         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
47652         * modules/unictype/property-bidi-left-to-right-tests: New file.
47653         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
47654         * modules/unictype/property-bidi-other-neutral-tests: New file.
47655         * modules/unictype/property-bidi-pdf-tests: New file.
47656         * modules/unictype/property-bidi-segment-separator-tests: New file.
47657         * modules/unictype/property-bidi-whitespace-tests: New file.
47658         * modules/unictype/property-byname-tests: New file.
47659         * modules/unictype/property-combining-tests: New file.
47660         * modules/unictype/property-composite-tests: New file.
47661         * modules/unictype/property-currency-symbol-tests: New file.
47662         * modules/unictype/property-dash-tests: New file.
47663         * modules/unictype/property-decimal-digit-tests: New file.
47664         * modules/unictype/property-default-ignorable-code-point-tests: New file.
47665         * modules/unictype/property-deprecated-tests: New file.
47666         * modules/unictype/property-diacritic-tests: New file.
47667         * modules/unictype/property-extender-tests: New file.
47668         * modules/unictype/property-format-control-tests: New file.
47669         * modules/unictype/property-grapheme-base-tests: New file.
47670         * modules/unictype/property-grapheme-extend-tests: New file.
47671         * modules/unictype/property-grapheme-link-tests: New file.
47672         * modules/unictype/property-hex-digit-tests: New file.
47673         * modules/unictype/property-hyphen-tests: New file.
47674         * modules/unictype/property-id-continue-tests: New file.
47675         * modules/unictype/property-id-start-tests: New file.
47676         * modules/unictype/property-ideographic-tests: New file.
47677         * modules/unictype/property-ids-binary-operator-tests: New file.
47678         * modules/unictype/property-ids-trinary-operator-tests: New file.
47679         * modules/unictype/property-ignorable-control-tests: New file.
47680         * modules/unictype/property-iso-control-tests: New file.
47681         * modules/unictype/property-join-control-tests: New file.
47682         * modules/unictype/property-left-of-pair-tests: New file.
47683         * modules/unictype/property-line-separator-tests: New file.
47684         * modules/unictype/property-logical-order-exception-tests: New file.
47685         * modules/unictype/property-lowercase-tests: New file.
47686         * modules/unictype/property-math-tests: New file.
47687         * modules/unictype/property-non-break-tests: New file.
47688         * modules/unictype/property-not-a-character-tests: New file.
47689         * modules/unictype/property-numeric-tests: New file.
47690         * modules/unictype/property-other-alphabetic-tests: New file.
47691         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
47692         * modules/unictype/property-other-grapheme-extend-tests: New file.
47693         * modules/unictype/property-other-id-continue-tests: New file.
47694         * modules/unictype/property-other-id-start-tests: New file.
47695         * modules/unictype/property-other-lowercase-tests: New file.
47696         * modules/unictype/property-other-math-tests: New file.
47697         * modules/unictype/property-other-uppercase-tests: New file.
47698         * modules/unictype/property-paired-punctuation-tests: New file.
47699         * modules/unictype/property-paragraph-separator-tests: New file.
47700         * modules/unictype/property-pattern-syntax-tests: New file.
47701         * modules/unictype/property-pattern-white-space-tests: New file.
47702         * modules/unictype/property-private-use-tests: New file.
47703         * modules/unictype/property-punctuation-tests: New file.
47704         * modules/unictype/property-quotation-mark-tests: New file.
47705         * modules/unictype/property-radical-tests: New file.
47706         * modules/unictype/property-sentence-terminal-tests: New file.
47707         * modules/unictype/property-soft-dotted-tests: New file.
47708         * modules/unictype/property-space-tests: New file.
47709         * modules/unictype/property-terminal-punctuation-tests: New file.
47710         * modules/unictype/property-test-tests: New file.
47711         * modules/unictype/property-titlecase-tests: New file.
47712         * modules/unictype/property-unassigned-code-value-tests: New file.
47713         * modules/unictype/property-unified-ideograph-tests: New file.
47714         * modules/unictype/property-uppercase-tests: New file.
47715         * modules/unictype/property-variation-selector-tests: New file.
47716         * modules/unictype/property-white-space-tests: New file.
47717         * modules/unictype/property-xid-continue-tests: New file.
47718         * modules/unictype/property-xid-start-tests: New file.
47719         * modules/unictype/property-zero-width-tests: New file.
47720         * modules/unictype/scripts-tests: New file.
47721         * modules/unictype/syntax-c-ident-tests: New file.
47722         * modules/unictype/syntax-c-whitespace-tests: New file.
47723         * modules/unictype/syntax-java-ident-tests: New file.
47724         * modules/unictype/syntax-java-whitespace-tests: New file.
47725         * tests/unictype/test-bidi_byname.c: New file.
47726         * tests/unictype/test-bidi_name.c: New file.
47727         * tests/unictype/test-bidi_of.c: New file.
47728         * tests/unictype/test-bidi_test.c: New file.
47729         * tests/unictype/test-block_list.c: New file.
47730         * tests/unictype/test-block_of.c: New file.
47731         * tests/unictype/test-block_test.c: New file.
47732         * tests/unictype/test-categ_and.c: New file.
47733         * tests/unictype/test-categ_and_not.c: New file.
47734         * tests/unictype/test-categ_byname.c: New file.
47735         * tests/unictype/test-categ_name.c: New file.
47736         * tests/unictype/test-categ_none.c: New file.
47737         * tests/unictype/test-categ_of.c: New file.
47738         * tests/unictype/test-categ_or.c: New file.
47739         * tests/unictype/test-categ_test_withtable.c: New file.
47740         * tests/unictype/test-combining.c: New file.
47741         * tests/unictype/test-decdigit.c: New file.
47742         * tests/unictype/test-digit.c: New file.
47743         * tests/unictype/test-mirror.c: New file.
47744         * tests/unictype/test-numeric.c: New file.
47745         * tests/unictype/test-pr_byname.c: New file.
47746         * tests/unictype/test-pr_test.c: New file.
47747         * tests/unictype/test-predicate-part1.h: New file.
47748         * tests/unictype/test-predicate-part2.h: New file.
47749         * tests/unictype/test-scripts.c: New file.
47750         * tests/unictype/test-sy_c_ident.c: New file.
47751         * tests/unictype/test-sy_java_ident.c: New file.
47752
47753         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
47754         for Unicode 5.0.0.
47755         * tests/unictype/test-categ_Cc.c: Likewise.
47756         * tests/unictype/test-categ_Cf.c: Likewise.
47757         * tests/unictype/test-categ_Cn.c: Likewise.
47758         * tests/unictype/test-categ_Co.c: Likewise.
47759         * tests/unictype/test-categ_Cs.c: Likewise.
47760         * tests/unictype/test-categ_L.c: Likewise.
47761         * tests/unictype/test-categ_Ll.c: Likewise.
47762         * tests/unictype/test-categ_Lm.c: Likewise.
47763         * tests/unictype/test-categ_Lo.c: Likewise.
47764         * tests/unictype/test-categ_Lt.c: Likewise.
47765         * tests/unictype/test-categ_Lu.c: Likewise.
47766         * tests/unictype/test-categ_M.c: Likewise.
47767         * tests/unictype/test-categ_Mc.c: Likewise.
47768         * tests/unictype/test-categ_Me.c: Likewise.
47769         * tests/unictype/test-categ_Mn.c: Likewise.
47770         * tests/unictype/test-categ_N.c: Likewise.
47771         * tests/unictype/test-categ_Nd.c: Likewise.
47772         * tests/unictype/test-categ_Nl.c: Likewise.
47773         * tests/unictype/test-categ_No.c: Likewise.
47774         * tests/unictype/test-categ_P.c: Likewise.
47775         * tests/unictype/test-categ_Pc.c: Likewise.
47776         * tests/unictype/test-categ_Pd.c: Likewise.
47777         * tests/unictype/test-categ_Pe.c: Likewise.
47778         * tests/unictype/test-categ_Pf.c: Likewise.
47779         * tests/unictype/test-categ_Pi.c: Likewise.
47780         * tests/unictype/test-categ_Po.c: Likewise.
47781         * tests/unictype/test-categ_Ps.c: Likewise.
47782         * tests/unictype/test-categ_S.c: Likewise.
47783         * tests/unictype/test-categ_Sc.c: Likewise.
47784         * tests/unictype/test-categ_Sk.c: Likewise.
47785         * tests/unictype/test-categ_Sm.c: Likewise.
47786         * tests/unictype/test-categ_So.c: Likewise.
47787         * tests/unictype/test-categ_Z.c: Likewise.
47788         * tests/unictype/test-categ_Zl.c: Likewise.
47789         * tests/unictype/test-categ_Zp.c: Likewise.
47790         * tests/unictype/test-categ_Zs.c: Likewise.
47791         * tests/unictype/test-ctype_alnum.c: Likewise.
47792         * tests/unictype/test-ctype_alpha.c: Likewise.
47793         * tests/unictype/test-ctype_blank.c: Likewise.
47794         * tests/unictype/test-ctype_cntrl.c: Likewise.
47795         * tests/unictype/test-ctype_digit.c: Likewise.
47796         * tests/unictype/test-ctype_graph.c: Likewise.
47797         * tests/unictype/test-ctype_lower.c: Likewise.
47798         * tests/unictype/test-ctype_print.c: Likewise.
47799         * tests/unictype/test-ctype_punct.c: Likewise.
47800         * tests/unictype/test-ctype_space.c: Likewise.
47801         * tests/unictype/test-ctype_upper.c: Likewise.
47802         * tests/unictype/test-ctype_xdigit.c: Likewise.
47803         * tests/unictype/test-decdigit.h: Likewise.
47804         * tests/unictype/test-digit.h: Likewise.
47805         * tests/unictype/test-numeric.h: Likewise.
47806         * tests/unictype/test-pr_alphabetic.c: Likewise.
47807         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
47808         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
47809         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
47810         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
47811         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
47812         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
47813         * tests/unictype/test-pr_bidi_control.c: Likewise.
47814         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
47815         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
47816         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
47817         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
47818         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
47819         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
47820         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
47821         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
47822         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
47823         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
47824         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
47825         * tests/unictype/test-pr_combining.c: Likewise.
47826         * tests/unictype/test-pr_composite.c: Likewise.
47827         * tests/unictype/test-pr_currency_symbol.c: Likewise.
47828         * tests/unictype/test-pr_dash.c: Likewise.
47829         * tests/unictype/test-pr_decimal_digit.c: Likewise.
47830         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
47831         * tests/unictype/test-pr_deprecated.c: Likewise.
47832         * tests/unictype/test-pr_diacritic.c: Likewise.
47833         * tests/unictype/test-pr_extender.c: Likewise.
47834         * tests/unictype/test-pr_format_control.c: Likewise.
47835         * tests/unictype/test-pr_grapheme_base.c: Likewise.
47836         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
47837         * tests/unictype/test-pr_grapheme_link.c: Likewise.
47838         * tests/unictype/test-pr_hex_digit.c: Likewise.
47839         * tests/unictype/test-pr_hyphen.c: Likewise.
47840         * tests/unictype/test-pr_id_continue.c: Likewise.
47841         * tests/unictype/test-pr_id_start.c: Likewise.
47842         * tests/unictype/test-pr_ideographic.c: Likewise.
47843         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
47844         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
47845         * tests/unictype/test-pr_ignorable_control.c: Likewise.
47846         * tests/unictype/test-pr_iso_control.c: Likewise.
47847         * tests/unictype/test-pr_join_control.c: Likewise.
47848         * tests/unictype/test-pr_left_of_pair.c: Likewise.
47849         * tests/unictype/test-pr_line_separator.c: Likewise.
47850         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
47851         * tests/unictype/test-pr_lowercase.c: Likewise.
47852         * tests/unictype/test-pr_math.c: Likewise.
47853         * tests/unictype/test-pr_non_break.c: Likewise.
47854         * tests/unictype/test-pr_not_a_character.c: Likewise.
47855         * tests/unictype/test-pr_numeric.c: Likewise.
47856         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
47857         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
47858         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
47859         * tests/unictype/test-pr_other_id_continue.c: Likewise.
47860         * tests/unictype/test-pr_other_id_start.c: Likewise.
47861         * tests/unictype/test-pr_other_lowercase.c: Likewise.
47862         * tests/unictype/test-pr_other_math.c: Likewise.
47863         * tests/unictype/test-pr_other_uppercase.c: Likewise.
47864         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
47865         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
47866         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
47867         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
47868         * tests/unictype/test-pr_private_use.c: Likewise.
47869         * tests/unictype/test-pr_punctuation.c: Likewise.
47870         * tests/unictype/test-pr_quotation_mark.c: Likewise.
47871         * tests/unictype/test-pr_radical.c: Likewise.
47872         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
47873         * tests/unictype/test-pr_soft_dotted.c: Likewise.
47874         * tests/unictype/test-pr_space.c: Likewise.
47875         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
47876         * tests/unictype/test-pr_titlecase.c: Likewise.
47877         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
47878         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
47879         * tests/unictype/test-pr_uppercase.c: Likewise.
47880         * tests/unictype/test-pr_variation_selector.c: Likewise.
47881         * tests/unictype/test-pr_white_space.c: Likewise.
47882         * tests/unictype/test-pr_xid_continue.c: Likewise.
47883         * tests/unictype/test-pr_xid_start.c: Likewise.
47884         * tests/unictype/test-pr_zero_width.c: Likewise.
47885         * tests/unictype/test-sy_c_whitespace.c: Likewise.
47886         * tests/unictype/test-sy_java_whitespace.c: Likewise.
47887
47888 2007-11-12  Bruno Haible  <bruno@clisp.org>
47889
47890         Unicode character classification functions.
47891         * lib/unictype.h: New file.
47892         * modules/unictype/base: New file.
47893         * modules/unictype/category-L: New file.
47894         * modules/unictype/category-Lu: New file.
47895         * modules/unictype/category-Ll: New file.
47896         * modules/unictype/category-Lt: New file.
47897         * modules/unictype/category-Lm: New file.
47898         * modules/unictype/category-Lo: New file.
47899         * modules/unictype/category-M: New file.
47900         * modules/unictype/category-Mn: New file.
47901         * modules/unictype/category-Mc: New file.
47902         * modules/unictype/category-Me: New file.
47903         * modules/unictype/category-N: New file.
47904         * modules/unictype/category-Nd: New file.
47905         * modules/unictype/category-Nl: New file.
47906         * modules/unictype/category-No: New file.
47907         * modules/unictype/category-P: New file.
47908         * modules/unictype/category-Pc: New file.
47909         * modules/unictype/category-Pd: New file.
47910         * modules/unictype/category-Ps: New file.
47911         * modules/unictype/category-Pe: New file.
47912         * modules/unictype/category-Pi: New file.
47913         * modules/unictype/category-Pf: New file.
47914         * modules/unictype/category-Po: New file.
47915         * modules/unictype/category-S: New file.
47916         * modules/unictype/category-Sm: New file.
47917         * modules/unictype/category-Sc: New file.
47918         * modules/unictype/category-Sk: New file.
47919         * modules/unictype/category-So: New file.
47920         * modules/unictype/category-Z: New file.
47921         * modules/unictype/category-Zs: New file.
47922         * modules/unictype/category-Zl: New file.
47923         * modules/unictype/category-Zp: New file.
47924         * modules/unictype/category-C: New file.
47925         * modules/unictype/category-Cc: New file.
47926         * modules/unictype/category-Cf: New file.
47927         * modules/unictype/category-Cs: New file.
47928         * modules/unictype/category-Co: New file.
47929         * modules/unictype/category-Cn: New file.
47930         * modules/unictype/category-or: New file.
47931         * modules/unictype/category-of: New file.
47932         * modules/unictype/category-test: New file.
47933         * modules/unictype/category-test-withtable: New file.
47934         * modules/unictype/category-byname: New file.
47935         * modules/unictype/category-none: New file.
47936         * modules/unictype/category-and: New file.
47937         * modules/unictype/category-and-not: New file.
47938         * modules/unictype/category-name: New file.
47939         * modules/unictype/combining-class: New file.
47940         * modules/unictype/category-all: New file.
47941         * modules/unictype/bidicategory-all: New file.
47942         * modules/unictype/bidicategory-byname: New file.
47943         * modules/unictype/bidicategory-name: New file.
47944         * modules/unictype/bidicategory-of: New file.
47945         * modules/unictype/bidicategory-test: New file.
47946         * modules/unictype/decimal-digit: New file.
47947         * modules/unictype/digit: New file.
47948         * modules/unictype/numeric: New file.
47949         * modules/unictype/mirror: New file.
47950         * modules/unictype/property-white-space: New file.
47951         * modules/unictype/property-alphabetic: New file.
47952         * modules/unictype/property-other-alphabetic: New file.
47953         * modules/unictype/property-not-a-character: New file.
47954         * modules/unictype/property-default-ignorable-code-point: New file.
47955         * modules/unictype/property-other-default-ignorable-code-point: New
47956         file.
47957         * modules/unictype/property-deprecated: New file.
47958         * modules/unictype/property-logical-order-exception: New file.
47959         * modules/unictype/property-variation-selector: New file.
47960         * modules/unictype/property-private-use: New file.
47961         * modules/unictype/property-unassigned-code-value: New file.
47962         * modules/unictype/property-uppercase: New file.
47963         * modules/unictype/property-other-uppercase: New file.
47964         * modules/unictype/property-lowercase: New file.
47965         * modules/unictype/property-other-lowercase: New file.
47966         * modules/unictype/property-titlecase: New file.
47967         * modules/unictype/property-soft-dotted: New file.
47968         * modules/unictype/property-id-start: New file.
47969         * modules/unictype/property-other-id-start: New file.
47970         * modules/unictype/property-id-continue: New file.
47971         * modules/unictype/property-other-id-continue: New file.
47972         * modules/unictype/property-xid-start: New file.
47973         * modules/unictype/property-xid-continue: New file.
47974         * modules/unictype/property-pattern-white-space: New file.
47975         * modules/unictype/property-pattern-syntax: New file.
47976         * modules/unictype/property-join-control: New file.
47977         * modules/unictype/property-grapheme-base: New file.
47978         * modules/unictype/property-grapheme-extend: New file.
47979         * modules/unictype/property-other-grapheme-extend: New file.
47980         * modules/unictype/property-grapheme-link: New file.
47981         * modules/unictype/property-bidi-control: New file.
47982         * modules/unictype/property-bidi-left-to-right: New file.
47983         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
47984         * modules/unictype/property-bidi-arabic-right-to-left: New file.
47985         * modules/unictype/property-bidi-european-digit: New file.
47986         * modules/unictype/property-bidi-eur-num-separator: New file.
47987         * modules/unictype/property-bidi-eur-num-terminator: New file.
47988         * modules/unictype/property-bidi-arabic-digit: New file.
47989         * modules/unictype/property-bidi-common-separator: New file.
47990         * modules/unictype/property-bidi-block-separator: New file.
47991         * modules/unictype/property-bidi-segment-separator: New file.
47992         * modules/unictype/property-bidi-whitespace: New file.
47993         * modules/unictype/property-bidi-non-spacing-mark: New file.
47994         * modules/unictype/property-bidi-boundary-neutral: New file.
47995         * modules/unictype/property-bidi-pdf: New file.
47996         * modules/unictype/property-bidi-embedding-or-override: New file.
47997         * modules/unictype/property-bidi-other-neutral: New file.
47998         * modules/unictype/property-hex-digit: New file.
47999         * modules/unictype/property-ascii-hex-digit: New file.
48000         * modules/unictype/property-ideographic: New file.
48001         * modules/unictype/property-unified-ideograph: New file.
48002         * modules/unictype/property-radical: New file.
48003         * modules/unictype/property-ids-binary-operator: New file.
48004         * modules/unictype/property-ids-trinary-operator: New file.
48005         * modules/unictype/property-zero-width: New file.
48006         * modules/unictype/property-space: New file.
48007         * modules/unictype/property-non-break: New file.
48008         * modules/unictype/property-iso-control: New file.
48009         * modules/unictype/property-format-control: New file.
48010         * modules/unictype/property-dash: New file.
48011         * modules/unictype/property-hyphen: New file.
48012         * modules/unictype/property-punctuation: New file.
48013         * modules/unictype/property-line-separator: New file.
48014         * modules/unictype/property-paragraph-separator: New file.
48015         * modules/unictype/property-quotation-mark: New file.
48016         * modules/unictype/property-sentence-terminal: New file.
48017         * modules/unictype/property-terminal-punctuation: New file.
48018         * modules/unictype/property-currency-symbol: New file.
48019         * modules/unictype/property-math: New file.
48020         * modules/unictype/property-other-math: New file.
48021         * modules/unictype/property-paired-punctuation: New file.
48022         * modules/unictype/property-left-of-pair: New file.
48023         * modules/unictype/property-combining: New file.
48024         * modules/unictype/property-composite: New file.
48025         * modules/unictype/property-decimal-digit: New file.
48026         * modules/unictype/property-numeric: New file.
48027         * modules/unictype/property-diacritic: New file.
48028         * modules/unictype/property-extender: New file.
48029         * modules/unictype/property-ignorable-control: New file.
48030         * modules/unictype/property-test: New file.
48031         * modules/unictype/property-byname: New file.
48032         * modules/unictype/property-all: New file.
48033         * modules/unictype/scripts: New file.
48034         * modules/unictype/scripts-all: New file.
48035         * modules/unictype/block-of: New file.
48036         * modules/unictype/block-test: New file.
48037         * modules/unictype/block-list: New file.
48038         * modules/unictype/block-all: New file.
48039         * modules/unictype/syntax-c-whitespace: New file.
48040         * modules/unictype/syntax-java-whitespace: New file.
48041         * modules/unictype/syntax-c-ident: New file.
48042         * modules/unictype/syntax-java-ident: New file.
48043         * modules/unictype/ctype-alnum: New file.
48044         * modules/unictype/ctype-alpha: New file.
48045         * modules/unictype/ctype-cntrl: New file.
48046         * modules/unictype/ctype-digit: New file.
48047         * modules/unictype/ctype-graph: New file.
48048         * modules/unictype/ctype-lower: New file.
48049         * modules/unictype/ctype-print: New file.
48050         * modules/unictype/ctype-punct: New file.
48051         * modules/unictype/ctype-space: New file.
48052         * modules/unictype/ctype-upper: New file.
48053         * modules/unictype/ctype-xdigit: New file.
48054         * modules/unictype/ctype-blank: New file.
48055         * lib/unictype/bidi_byname.c: New file.
48056         * lib/unictype/bidi_name.c: New file.
48057         * lib/unictype/bidi_of.c: New file.
48058         * lib/unictype/bidi_test.c: New file.
48059         * lib/unictype/bitmap.h: New file.
48060         * lib/unictype/block_test.c: New file.
48061         * lib/unictype/blocks.c: New file.
48062         * lib/unictype/categ_C.c: New file.
48063         * lib/unictype/categ_Cc.c: New file.
48064         * lib/unictype/categ_Cf.c: New file.
48065         * lib/unictype/categ_Cn.c: New file.
48066         * lib/unictype/categ_Co.c: New file.
48067         * lib/unictype/categ_Cs.c: New file.
48068         * lib/unictype/categ_L.c: New file.
48069         * lib/unictype/categ_Ll.c: New file.
48070         * lib/unictype/categ_Lm.c: New file.
48071         * lib/unictype/categ_Lo.c: New file.
48072         * lib/unictype/categ_Lt.c: New file.
48073         * lib/unictype/categ_Lu.c: New file.
48074         * lib/unictype/categ_M.c: New file.
48075         * lib/unictype/categ_Mc.c: New file.
48076         * lib/unictype/categ_Me.c: New file.
48077         * lib/unictype/categ_Mn.c: New file.
48078         * lib/unictype/categ_N.c: New file.
48079         * lib/unictype/categ_Nd.c: New file.
48080         * lib/unictype/categ_Nl.c: New file.
48081         * lib/unictype/categ_No.c: New file.
48082         * lib/unictype/categ_P.c: New file.
48083         * lib/unictype/categ_Pc.c: New file.
48084         * lib/unictype/categ_Pd.c: New file.
48085         * lib/unictype/categ_Pe.c: New file.
48086         * lib/unictype/categ_Pf.c: New file.
48087         * lib/unictype/categ_Pi.c: New file.
48088         * lib/unictype/categ_Po.c: New file.
48089         * lib/unictype/categ_Ps.c: New file.
48090         * lib/unictype/categ_S.c: New file.
48091         * lib/unictype/categ_Sc.c: New file.
48092         * lib/unictype/categ_Sk.c: New file.
48093         * lib/unictype/categ_Sm.c: New file.
48094         * lib/unictype/categ_So.c: New file.
48095         * lib/unictype/categ_Z.c: New file.
48096         * lib/unictype/categ_Zl.c: New file.
48097         * lib/unictype/categ_Zp.c: New file.
48098         * lib/unictype/categ_Zs.c: New file.
48099         * lib/unictype/categ_and.c: New file.
48100         * lib/unictype/categ_and_not.c: New file.
48101         * lib/unictype/categ_byname.c: New file.
48102         * lib/unictype/categ_name.c: New file.
48103         * lib/unictype/categ_none.c: New file.
48104         * lib/unictype/categ_of.c: New file.
48105         * lib/unictype/categ_or.c: New file.
48106         * lib/unictype/categ_test.c: New file.
48107         * lib/unictype/combining.c: New file.
48108         * lib/unictype/ctype_alnum.c: New file.
48109         * lib/unictype/ctype_alpha.c: New file.
48110         * lib/unictype/ctype_blank.c: New file.
48111         * lib/unictype/ctype_cntrl.c: New file.
48112         * lib/unictype/ctype_digit.c: New file.
48113         * lib/unictype/ctype_graph.c: New file.
48114         * lib/unictype/ctype_lower.c: New file.
48115         * lib/unictype/ctype_print.c: New file.
48116         * lib/unictype/ctype_punct.c: New file.
48117         * lib/unictype/ctype_space.c: New file.
48118         * lib/unictype/ctype_upper.c: New file.
48119         * lib/unictype/ctype_xdigit.c: New file.
48120         * lib/unictype/decdigit.c: New file.
48121         * lib/unictype/digit.c: New file.
48122         * lib/unictype/identsyntaxmap.h: New file.
48123         * lib/unictype/mirror.c: New file.
48124         * lib/unictype/numeric.c: New file.
48125         * lib/unictype/pr_alphabetic.c: New file.
48126         * lib/unictype/pr_ascii_hex_digit.c: New file.
48127         * lib/unictype/pr_bidi_arabic_digit.c: New file.
48128         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
48129         * lib/unictype/pr_bidi_block_separator.c: New file.
48130         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
48131         * lib/unictype/pr_bidi_common_separator.c: New file.
48132         * lib/unictype/pr_bidi_control.c: New file.
48133         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
48134         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
48135         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
48136         * lib/unictype/pr_bidi_european_digit.c: New file.
48137         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
48138         * lib/unictype/pr_bidi_left_to_right.c: New file.
48139         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
48140         * lib/unictype/pr_bidi_other_neutral.c: New file.
48141         * lib/unictype/pr_bidi_pdf.c: New file.
48142         * lib/unictype/pr_bidi_segment_separator.c: New file.
48143         * lib/unictype/pr_bidi_whitespace.c: New file.
48144         * lib/unictype/pr_byname.c: New file.
48145         * lib/unictype/pr_byname.gperf: New file.
48146         * lib/unictype/pr_combining.c: New file.
48147         * lib/unictype/pr_composite.c: New file.
48148         * lib/unictype/pr_currency_symbol.c: New file.
48149         * lib/unictype/pr_dash.c: New file.
48150         * lib/unictype/pr_decimal_digit.c: New file.
48151         * lib/unictype/pr_default_ignorable_code_point.c: New file.
48152         * lib/unictype/pr_deprecated.c: New file.
48153         * lib/unictype/pr_diacritic.c: New file.
48154         * lib/unictype/pr_extender.c: New file.
48155         * lib/unictype/pr_format_control.c: New file.
48156         * lib/unictype/pr_grapheme_base.c: New file.
48157         * lib/unictype/pr_grapheme_extend.c: New file.
48158         * lib/unictype/pr_grapheme_link.c: New file.
48159         * lib/unictype/pr_hex_digit.c: New file.
48160         * lib/unictype/pr_hyphen.c: New file.
48161         * lib/unictype/pr_id_continue.c: New file.
48162         * lib/unictype/pr_id_start.c: New file.
48163         * lib/unictype/pr_ideographic.c: New file.
48164         * lib/unictype/pr_ids_binary_operator.c: New file.
48165         * lib/unictype/pr_ids_trinary_operator.c: New file.
48166         * lib/unictype/pr_ignorable_control.c: New file.
48167         * lib/unictype/pr_iso_control.c: New file.
48168         * lib/unictype/pr_join_control.c: New file.
48169         * lib/unictype/pr_left_of_pair.c: New file.
48170         * lib/unictype/pr_line_separator.c: New file.
48171         * lib/unictype/pr_logical_order_exception.c: New file.
48172         * lib/unictype/pr_lowercase.c: New file.
48173         * lib/unictype/pr_math.c: New file.
48174         * lib/unictype/pr_non_break.c: New file.
48175         * lib/unictype/pr_not_a_character.c: New file.
48176         * lib/unictype/pr_numeric.c: New file.
48177         * lib/unictype/pr_other_alphabetic.c: New file.
48178         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
48179         * lib/unictype/pr_other_grapheme_extend.c: New file.
48180         * lib/unictype/pr_other_id_continue.c: New file.
48181         * lib/unictype/pr_other_id_start.c: New file.
48182         * lib/unictype/pr_other_lowercase.c: New file.
48183         * lib/unictype/pr_other_math.c: New file.
48184         * lib/unictype/pr_other_uppercase.c: New file.
48185         * lib/unictype/pr_paired_punctuation.c: New file.
48186         * lib/unictype/pr_paragraph_separator.c: New file.
48187         * lib/unictype/pr_pattern_syntax.c: New file.
48188         * lib/unictype/pr_pattern_white_space.c: New file.
48189         * lib/unictype/pr_private_use.c: New file.
48190         * lib/unictype/pr_punctuation.c: New file.
48191         * lib/unictype/pr_quotation_mark.c: New file.
48192         * lib/unictype/pr_radical.c: New file.
48193         * lib/unictype/pr_sentence_terminal.c: New file.
48194         * lib/unictype/pr_soft_dotted.c: New file.
48195         * lib/unictype/pr_space.c: New file.
48196         * lib/unictype/pr_terminal_punctuation.c: New file.
48197         * lib/unictype/pr_test.c: New file.
48198         * lib/unictype/pr_titlecase.c: New file.
48199         * lib/unictype/pr_unassigned_code_value.c: New file.
48200         * lib/unictype/pr_unified_ideograph.c: New file.
48201         * lib/unictype/pr_uppercase.c: New file.
48202         * lib/unictype/pr_variation_selector.c: New file.
48203         * lib/unictype/pr_white_space.c: New file.
48204         * lib/unictype/pr_xid_continue.c: New file.
48205         * lib/unictype/pr_xid_start.c: New file.
48206         * lib/unictype/pr_zero_width.c: New file.
48207         * lib/unictype/scripts.c: New file.
48208         * lib/unictype/sy_c_ident.c: New file.
48209         * lib/unictype/sy_c_whitespace.c: New file.
48210         * lib/unictype/sy_java_ident.c: New file.
48211         * lib/unictype/sy_java_whitespace.c: New file.
48212
48213         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
48214         Unicode 5.0.0.
48215         * lib/unictype/blocks.h: Likewise.
48216         * lib/unictype/categ_C.h: Likewise.
48217         * lib/unictype/categ_Cc.h: Likewise.
48218         * lib/unictype/categ_Cf.h: Likewise.
48219         * lib/unictype/categ_Cn.h: Likewise.
48220         * lib/unictype/categ_Co.h: Likewise.
48221         * lib/unictype/categ_Cs.h: Likewise.
48222         * lib/unictype/categ_L.h: Likewise.
48223         * lib/unictype/categ_Ll.h: Likewise.
48224         * lib/unictype/categ_Lm.h: Likewise.
48225         * lib/unictype/categ_Lo.h: Likewise.
48226         * lib/unictype/categ_Lt.h: Likewise.
48227         * lib/unictype/categ_Lu.h: Likewise.
48228         * lib/unictype/categ_M.h: Likewise.
48229         * lib/unictype/categ_Mc.h: Likewise.
48230         * lib/unictype/categ_Me.h: Likewise.
48231         * lib/unictype/categ_Mn.h: Likewise.
48232         * lib/unictype/categ_N.h: Likewise.
48233         * lib/unictype/categ_Nd.h: Likewise.
48234         * lib/unictype/categ_Nl.h: Likewise.
48235         * lib/unictype/categ_No.h: Likewise.
48236         * lib/unictype/categ_P.h: Likewise.
48237         * lib/unictype/categ_Pc.h: Likewise.
48238         * lib/unictype/categ_Pd.h: Likewise.
48239         * lib/unictype/categ_Pe.h: Likewise.
48240         * lib/unictype/categ_Pf.h: Likewise.
48241         * lib/unictype/categ_Pi.h: Likewise.
48242         * lib/unictype/categ_Po.h: Likewise.
48243         * lib/unictype/categ_Ps.h: Likewise.
48244         * lib/unictype/categ_S.h: Likewise.
48245         * lib/unictype/categ_Sc.h: Likewise.
48246         * lib/unictype/categ_Sk.h: Likewise.
48247         * lib/unictype/categ_Sm.h: Likewise.
48248         * lib/unictype/categ_So.h: Likewise.
48249         * lib/unictype/categ_Z.h: Likewise.
48250         * lib/unictype/categ_Zl.h: Likewise.
48251         * lib/unictype/categ_Zp.h: Likewise.
48252         * lib/unictype/categ_Zs.h: Likewise.
48253         * lib/unictype/categ_of.h: Likewise.
48254         * lib/unictype/combining.h: Likewise.
48255         * lib/unictype/ctype_alnum.h: Likewise.
48256         * lib/unictype/ctype_alpha.h: Likewise.
48257         * lib/unictype/ctype_blank.h: Likewise.
48258         * lib/unictype/ctype_cntrl.h: Likewise.
48259         * lib/unictype/ctype_digit.h: Likewise.
48260         * lib/unictype/ctype_graph.h: Likewise.
48261         * lib/unictype/ctype_lower.h: Likewise.
48262         * lib/unictype/ctype_print.h: Likewise.
48263         * lib/unictype/ctype_punct.h: Likewise.
48264         * lib/unictype/ctype_space.h: Likewise.
48265         * lib/unictype/ctype_upper.h: Likewise.
48266         * lib/unictype/ctype_xdigit.h: Likewise.
48267         * lib/unictype/decdigit.h: Likewise.
48268         * lib/unictype/digit.h: Likewise.
48269         * lib/unictype/mirror.h: Likewise.
48270         * lib/unictype/numeric.h: Likewise.
48271         * lib/unictype/pr_alphabetic.h: Likewise.
48272         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
48273         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
48274         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
48275         * lib/unictype/pr_bidi_block_separator.h: Likewise.
48276         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
48277         * lib/unictype/pr_bidi_common_separator.h: Likewise.
48278         * lib/unictype/pr_bidi_control.h: Likewise.
48279         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
48280         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
48281         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
48282         * lib/unictype/pr_bidi_european_digit.h: Likewise.
48283         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
48284         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
48285         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
48286         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
48287         * lib/unictype/pr_bidi_pdf.h: Likewise.
48288         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
48289         * lib/unictype/pr_bidi_whitespace.h: Likewise.
48290         * lib/unictype/pr_combining.h: Likewise.
48291         * lib/unictype/pr_composite.h: Likewise.
48292         * lib/unictype/pr_currency_symbol.h: Likewise.
48293         * lib/unictype/pr_dash.h: Likewise.
48294         * lib/unictype/pr_decimal_digit.h: Likewise.
48295         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
48296         * lib/unictype/pr_deprecated.h: Likewise.
48297         * lib/unictype/pr_diacritic.h: Likewise.
48298         * lib/unictype/pr_extender.h: Likewise.
48299         * lib/unictype/pr_format_control.h: Likewise.
48300         * lib/unictype/pr_grapheme_base.h: Likewise.
48301         * lib/unictype/pr_grapheme_extend.h: Likewise.
48302         * lib/unictype/pr_grapheme_link.h: Likewise.
48303         * lib/unictype/pr_hex_digit.h: Likewise.
48304         * lib/unictype/pr_hyphen.h: Likewise.
48305         * lib/unictype/pr_id_continue.h: Likewise.
48306         * lib/unictype/pr_id_start.h: Likewise.
48307         * lib/unictype/pr_ideographic.h: Likewise.
48308         * lib/unictype/pr_ids_binary_operator.h: Likewise.
48309         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
48310         * lib/unictype/pr_ignorable_control.h: Likewise.
48311         * lib/unictype/pr_iso_control.h: Likewise.
48312         * lib/unictype/pr_join_control.h: Likewise.
48313         * lib/unictype/pr_left_of_pair.h: Likewise.
48314         * lib/unictype/pr_line_separator.h: Likewise.
48315         * lib/unictype/pr_logical_order_exception.h: Likewise.
48316         * lib/unictype/pr_lowercase.h: Likewise.
48317         * lib/unictype/pr_math.h: Likewise.
48318         * lib/unictype/pr_non_break.h: Likewise.
48319         * lib/unictype/pr_not_a_character.h: Likewise.
48320         * lib/unictype/pr_numeric.h: Likewise.
48321         * lib/unictype/pr_other_alphabetic.h: Likewise.
48322         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
48323         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
48324         * lib/unictype/pr_other_id_continue.h: Likewise.
48325         * lib/unictype/pr_other_id_start.h: Likewise.
48326         * lib/unictype/pr_other_lowercase.h: Likewise.
48327         * lib/unictype/pr_other_math.h: Likewise.
48328         * lib/unictype/pr_other_uppercase.h: Likewise.
48329         * lib/unictype/pr_paired_punctuation.h: Likewise.
48330         * lib/unictype/pr_paragraph_separator.h: Likewise.
48331         * lib/unictype/pr_pattern_syntax.h: Likewise.
48332         * lib/unictype/pr_pattern_white_space.h: Likewise.
48333         * lib/unictype/pr_private_use.h: Likewise.
48334         * lib/unictype/pr_punctuation.h: Likewise.
48335         * lib/unictype/pr_quotation_mark.h: Likewise.
48336         * lib/unictype/pr_radical.h: Likewise.
48337         * lib/unictype/pr_sentence_terminal.h: Likewise.
48338         * lib/unictype/pr_soft_dotted.h: Likewise.
48339         * lib/unictype/pr_space.h: Likewise.
48340         * lib/unictype/pr_terminal_punctuation.h: Likewise.
48341         * lib/unictype/pr_titlecase.h: Likewise.
48342         * lib/unictype/pr_unassigned_code_value.h: Likewise.
48343         * lib/unictype/pr_unified_ideograph.h: Likewise.
48344         * lib/unictype/pr_uppercase.h: Likewise.
48345         * lib/unictype/pr_variation_selector.h: Likewise.
48346         * lib/unictype/pr_white_space.h: Likewise.
48347         * lib/unictype/pr_xid_continue.h: Likewise.
48348         * lib/unictype/pr_xid_start.h: Likewise.
48349         * lib/unictype/pr_zero_width.h: Likewise.
48350         * lib/unictype/scripts.h: Likewise.
48351         * lib/unictype/scripts_byname.gperf: Likewise.
48352         * lib/unictype/sy_c_ident.h: Likewise.
48353         * lib/unictype/sy_c_whitespace.h: Likewise.
48354         * lib/unictype/sy_java_ident.h: Likewise.
48355         * lib/unictype/sy_java_whitespace.h: Likewise.
48356
48357         * lib/unictype/Makefile: New file.
48358         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
48359         glibc.
48360         * lib/unictype/3level.h: New file, copied from glibc.
48361         * lib/unictype/3levelbit.h: New file.
48362
48363 2007-11-11  Bruno Haible  <bruno@clisp.org>
48364
48365         * modules/gperf: New file.
48366         * modules/iconv_open (Depends-on): Add it.
48367         (Makefile.am): Remove the GPERF definition.
48368
48369 2007-11-11  Bruno Haible  <bruno@clisp.org>
48370
48371         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
48372         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
48373
48374 2007-11-11  Bruno Haible  <bruno@clisp.org>
48375
48376         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
48377         (usage): Remove function.
48378
48379 2007-11-11  Bruno Haible  <bruno@clisp.org>
48380
48381         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
48382         gl_FUNC_CEILF_LIBS.
48383         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
48384         gl_FUNC_CEIL_LIBS.
48385         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
48386         gl_FUNC_CEILL_LIBS.
48387         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
48388         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
48389         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
48390
48391 2007-11-11  Bruno Haible  <bruno@clisp.org>
48392
48393         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
48394         roundf were declared but do not exist on functions.
48395         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
48396         roundl were declared but do not exist on functions.
48397         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
48398         HAVE_FLOORL_AND_CEILL, respectively.
48399         Needed for Sun C on Solaris 10.
48400
48401 2007-11-11  Bruno Haible  <bruno@clisp.org>
48402
48403         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
48404         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
48405         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
48406         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
48407         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
48408         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
48409         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48410         HAVE_DECL_ROUNDF.
48411         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
48412         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
48413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
48414         of HAVE_DECL_ROUND*.
48415         * modules/math (Makefile.am): Update.
48416
48417 2007-11-10  Bruno Haible  <bruno@clisp.org>
48418
48419         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
48420         ptrdiff_t as m4/intl.m4.
48421
48422 2007-11-10  Jim Meyering  <meyering@redhat.com>
48423
48424         Avoid link failure for the argmatch test.
48425         * tests/test-argmatch.c (usage): Define function to avoid a link
48426         failure: argmatch_die requires a usage function.
48427
48428 2007-11-09  Bruno Haible  <bruno@clisp.org>
48429
48430         * doc/functions/snprintf.texi: Mention BeOS deficiency.
48431         * doc/functions/vsnprintf.texi: Likewise.
48432         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
48433         with a size argument < 2.
48434
48435 2007-11-09  Bruno Haible  <bruno@clisp.org>
48436
48437         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
48438         buffer. Fixes an inefficiency introduced on 2007-11-03.
48439
48440 2007-11-09  Bruno Haible  <bruno@clisp.org>
48441
48442         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
48443         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
48444
48445 2007-11-08  Jim Meyering  <meyering@redhat.com>
48446
48447         Change cache variable name prefix "jm_" to "gl_" everywhere.
48448         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
48449         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
48450         * m4/uptime.m4: s/gl_/jm_/
48451
48452 2007-11-07  Bruno Haible  <bruno@clisp.org>
48453
48454         Update to GNU gettext 0.17.
48455         * m4/intl.m4: Update to GNU gettext 0.17.
48456         * m4/po.m4: Likewise.
48457         * modules/gettext (Files): Remove m4/ulonglong.m4.
48458         (configure.ac): Require gettext infrastructure from version 0.17.
48459
48460 2007-11-06  Bruno Haible  <bruno@clisp.org>
48461
48462         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
48463         symbolic values are not defined in a public header.
48464         * lib/freadable.c (freadable) [QNX]: Likewise.
48465         * lib/freadahead.c (freadahead) [QNX]: Likewise.
48466         * lib/freading.c (freading) [QNX]: Likewise.
48467         * lib/fseterr.c (fseterr) [QNX]: Likewise.
48468         * lib/fwritable.c (fwritable) [QNX]: Likewise.
48469         * lib/fwriting.c (fwriting) [QNX]: Likewise.
48470         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
48471         Reported by Alain Magloire.
48472
48473         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
48474
48475 2007-11-05  Bruno Haible  <bruno@clisp.org>
48476
48477         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
48478         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
48479         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
48480         Reported by Eric Blake.
48481
48482 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48483             Bruno Haible  <bruno@clisp.org>
48484
48485         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
48486         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
48487         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
48488         (malloc): Undefine also before including <stdlib.h>.
48489         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
48490         Needed on OSF/1 4.0.
48491
48492 2007-11-05  Jim Meyering  <meyering@redhat.com>
48493
48494         git-version-gen: sync from coreutils.
48495         * build-aux/git-version-gen: Add comments.
48496         Change the first '-' to '.' in the snapshot version string,
48497         e.g., 6.9-377-08144 -> 6.9.377-08144
48498         Remove first parameter.
48499         Don't declare a version "-dirty" merely because a time
48500         stamp has changed.
48501
48502 2007-11-04  Bruno Haible  <bruno@clisp.org>
48503
48504         * lib/lock.h: Protect all macro definitions containing an 'if'
48505         statement through a "do { ... } while (0)".
48506         * lib/tls.h: Likewise.
48507
48508 2007-11-04  Bruno Haible  <bruno@clisp.org>
48509
48510         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
48511
48512 2007-11-04  Bruno Haible  <bruno@clisp.org>
48513
48514         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
48515         * modules/fprintf-posix (Depends-on): Add nocrash.
48516         * modules/snprintf-posix (Depends-on): Likewise.
48517         * modules/sprintf-posix (Depends-on): Likewise.
48518         * modules/vasnprintf-posix (Depends-on): Likewise.
48519         * modules/vasprintf-posix (Depends-on): Likewise.
48520         * modules/vfprintf-posix (Depends-on): Likewise.
48521         * modules/vsnprintf-posix (Depends-on): Likewise.
48522         * modules/vsprintf-posix (Depends-on): Likewise.
48523         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48524         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48525         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48526         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48527         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48528         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48529         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48530
48531 2007-11-04  Bruno Haible  <bruno@clisp.org>
48532
48533         * modules/nocrash: New file.
48534         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
48535         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
48536
48537 2007-11-04  Bruno Haible  <bruno@clisp.org>
48538
48539         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
48540         precision handling.
48541         * tests/test-vasprintf-posix.c (test_function): Likewise.
48542         * tests/test-snprintf-posix.h (test_function): Likewise.
48543         * tests/test-sprintf-posix.h (test_function): Likewise.
48544
48545         Fix *printf behaviour for large precisions on mingw and BeOS.
48546         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
48547         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
48548         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
48549         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48550         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48551         gl_PRINTF_PRECISION and test its result. Invoke
48552         gl_PREREQ_VASNPRINTF_PRECISION.
48553         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48554         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48555         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48556         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48557         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48558         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48559         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48560         * doc/functions/fprintf.texi: Update.
48561         * doc/functions/printf.texi: Update.
48562         * doc/functions/snprintf.texi: Update.
48563         * doc/functions/sprintf.texi: Update.
48564         * doc/functions/vfprintf.texi: Update.
48565         * doc/functions/vprintf.texi: Update.
48566         * doc/functions/vsnprintf.texi: Update.
48567         * doc/functions/vsprintf.texi: Update.
48568
48569 2007-11-04  Bruno Haible  <bruno@clisp.org>
48570
48571         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
48572
48573 2007-11-04  Bruno Haible  <bruno@clisp.org>
48574
48575         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
48576         Reported by Sylvain Beucler <beuc@gnu.org>.
48577
48578 2007-11-03  Bruno Haible  <bruno@clisp.org>
48579
48580         * tests/test-fprintf-posix2.sh: New file.
48581         * tests/test-fprintf-posix2.c: New file.
48582         * modules/fprintf-posix-tests (Files): Add them.
48583         (TESTS): Add test-fprintf-posix2.sh.
48584         (configure.ac): Check for getrlimit and setrlimit.
48585         (check_PROGRAMS): Add test-fprintf-posix2.
48586
48587         * tests/test-printf-posix2.sh: New file.
48588         * tests/test-printf-posix2.c: New file.
48589         * modules/printf-posix-tests (Files): Add them.
48590         (TESTS): Add test-printf-posix2.sh.
48591         (configure.ac): Check for getrlimit and setrlimit.
48592         (check_PROGRAMS): Add test-printf-posix2.
48593
48594         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
48595         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
48596         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
48597         (decode_double): New function, copied from decode_long_double.
48598         (scale10_round_decimal_decoded): New function, extracted from
48599         scale10_round_decimal_long_double.
48600         (scale10_round_decimal_long_double): Use it.
48601         (scale10_round_decimal_double): New function.
48602         (floorlog10): New function.
48603         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
48604         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
48605         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48606         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48607         gl_PRINTF_ENOMEM and test its result. Invoke
48608         gl_PREREQ_VASNPRINTF_ENOMEM.
48609         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48610         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48611         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48612         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48613         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48614         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48615         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48616         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
48617         * modules/snprintf-posix (Depends-on): Likewise.
48618         * modules/sprintf-posix (Depends-on): Likewise.
48619         * modules/vasnprintf-posix (Depends-on): Likewise.
48620         * modules/vasprintf-posix (Depends-on): Likewise.
48621         * modules/vfprintf-posix (Depends-on): Likewise.
48622         * modules/vsnprintf-posix (Depends-on): Likewise.
48623         * modules/vsprintf-posix (Depends-on): Likewise.
48624         * doc/functions/fprintf.texi: Update.
48625         * doc/functions/printf.texi: Update.
48626         * doc/functions/snprintf.texi: Update.
48627         * doc/functions/sprintf.texi: Update.
48628         * doc/functions/vfprintf.texi: Update.
48629         * doc/functions/vprintf.texi: Update.
48630         * doc/functions/vsnprintf.texi: Update.
48631         * doc/functions/vsprintf.texi: Update.
48632
48633 2007-11-03  Bruno Haible  <bruno@clisp.org>
48634
48635         * modules/frexp-nolibm-tests: New file.
48636
48637         * modules/frexp-nolibm: New file.
48638         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
48639
48640 2007-11-03  Bruno Haible  <bruno@clisp.org>
48641
48642         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
48643         value is C99 compliant.
48644         Needed for OSF/1 5.1.
48645
48646 2007-11-03  Bruno Haible  <bruno@clisp.org>
48647
48648         Fix out-of-memory handling of vasnprintf.
48649         * lib/printf-parse.c: Include <errno.h>.
48650         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
48651         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
48652         is already set.
48653
48654 2007-11-02  Eric Blake  <ebb9@byu.net>
48655
48656         Fix tests on cygwin.
48657         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
48658
48659 2007-11-01  Bruno Haible  <bruno@clisp.org>
48660
48661         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
48662         warning.
48663         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
48664         needed for POSIX compatibility.
48665
48666 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
48667
48668         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
48669         for compatibility with GNU.
48670
48671 2007-11-01  Bruno Haible  <bruno@clisp.org>
48672
48673         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
48674         (putenv): Renamed from rpl_putenv. Change argument type from
48675         'const char *' to 'char *'.
48676         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
48677         of defining putenv in config.h, just set REPLACE_PUTENV.
48678         * modules/putenv (Depends-on): Add stdlib.
48679         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48680         (Include): Use <stdlib.h>.
48681         * lib/stdlib.in.h (putenv): New declaration.
48682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
48683         REPLACE_PUTENV.
48684         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
48685         REPLACE_PUTENV.
48686         Needed for MacOS X 10.5.0.
48687         Reported by Peter O'Gorman <peter@pogma.com>.
48688
48689 2007-11-01  Jim Meyering  <meyering@redhat.com>
48690
48691         Treat an empty date string exactly like "0".
48692         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
48693         if the remaining date string (to be parsed) is empty, use "0".
48694         Reported by Mischa Molhoek and discussed in this thread:
48695         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
48696
48697 2007-10-31  Bruno Haible  <bruno@clisp.org>
48698
48699         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
48700         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
48701         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
48702         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
48703         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
48704         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
48705
48706 2007-10-31  Bruno Haible  <bruno@clisp.org>
48707
48708         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
48709         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
48710         (AC_TYPE_LONG_LONG_INT): Use it.
48711         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
48712         it as well.
48713         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
48714         to m4/longlong.m4.
48715         * modules/stdint (Files): Remove m4/ulonglong.m4.
48716         * modules/strtoull (Files): Use m4/longlong.m4 instead of
48717         m4/ulonglong.m4.
48718         * modules/strtoumax (Files): Likewise.
48719
48720 2007-10-30  Bruno Haible  <bruno@clisp.org>
48721
48722         * modules/xvasprintf-posix: New file.
48723         Suggested by Eric Blake.
48724
48725 2007-10-30  Bruno Haible  <bruno@clisp.org>
48726
48727         * modules/xprintf-posix-tests: New file.
48728         * tests/test-xprintf-posix.sh: New file.
48729         * tests/test-xprintf-posix.c: New file.
48730         * tests/test-xfprintf-posix.c: New file.
48731
48732         * modules/xprintf-posix: New file.
48733
48734 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48735
48736         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
48737         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
48738         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
48739
48740 2007-10-29  Bruno Haible  <bruno@clisp.org>
48741
48742         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
48743         contain the special marker '_cv_'.
48744         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48745         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48746         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48747         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
48748         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48749         Reported by Ralf Wildenhues.
48750
48751 2007-10-29  Bruno Haible  <bruno@clisp.org>
48752
48753         * gnulib-tool (func_import): When --lgpl is not specified, set
48754         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
48755         GPLv3.
48756         Reported by Simon Josefsson.
48757
48758 2007-10-28  Bruno Haible  <bruno@clisp.org>
48759
48760         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
48761         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
48762         HAVE_DECL_ISFINITE.
48763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48764         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
48765         HAVE_DECL_ISFINITE.
48766
48767 2007-10-28  Bruno Haible  <bruno@clisp.org>
48768
48769         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
48770         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
48771
48772 2007-10-28  Bruno Haible  <bruno@clisp.org>
48773
48774         Fix link errors with Sun C 5.0 on Solaris 10.
48775         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
48776         function is declared but not present in the compiler's libm.
48777         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48778         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48779         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
48780         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
48781         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
48782         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
48783         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
48784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48785         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
48786         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
48787         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
48788         HAVE_DECL_FLOORL.
48789
48790 2007-10-28  Bruno Haible  <bruno@clisp.org>
48791
48792         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
48793         gl_FUNC_FLOORL. Cache the result.
48794         (gl_FUNC_FLOORL): Use it.
48795         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
48796         gl_FUNC_CEILL. Cache the result.
48797         (gl_FUNC_CEILL): Use it.
48798
48799         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
48800         gl_FUNC_FLOOR. Cache the result.
48801         (gl_FUNC_FLOOR): Use it.
48802         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
48803         gl_FUNC_CEIL. Cache the result.
48804         (gl_FUNC_CEIL): Use it.
48805
48806         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
48807         gl_FUNC_FLOORF. Cache the result.
48808         (gl_FUNC_FLOORF): Use it.
48809         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
48810         gl_FUNC_CEILF. Cache the result.
48811         (gl_FUNC_CEILF): Use it.
48812
48813 2007-10-28  Bruno Haible  <bruno@clisp.org>
48814
48815         * gnulib-tool: Allow specifying the LGPL version number through
48816         --lgpl=2 or --lgpl=3.
48817         (func_usage): Document --lgpl with argument.
48818         Handle --lgpl=... arguments.
48819         (func_import): Recognize also gl_LGPL calls with an argument. When
48820         --lgpl=2 is used and the module's license is just LGPL, report an
48821         error. Set sed_transform_lib_file according to the lgpl variable. In
48822         the generated files, use --lgpl or gl_LGPL invocations with argument,
48823         if necessary.
48824         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
48825         an LGPv2+ license.
48826         * doc/gnulib-tool.texi (Modified imports): Update explanation of
48827         gl_LGPL macro.
48828
48829 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48830             Bruno Haible  <bruno@clisp.org>
48831
48832         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
48833         (u16_uctomb_aux): Likewise.
48834         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
48835         !HAVE_INLINE.
48836         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
48837
48838 2007-10-28  Bruno Haible  <bruno@clisp.org>
48839
48840         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
48841         Invoke AM_GETTEXT_OPTION if it exists.
48842         * modules/vasprintf: Likewise.
48843         * modules/verror: Likewise.
48844         * modules/xprintf: Likewise.
48845         * modules/xvasprintf: Likewise.
48846
48847 2007-10-27  Ben Pfaff  <blp@gnu.org>
48848
48849         * lib/math.in.h: Define isfinite macro and prototypes for
48850         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
48851         implementations.
48852         * m4/math_h.m4: New substitutions for isfinite module.
48853         * lib/isfinite.c: New file.
48854         * m4/isfinite.m4: New file.
48855         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
48856         * modules/isfinite: New file.
48857         * modules/isfinite-tests: New file.
48858         * tests/tests-isfinite.c: New file.
48859         * doc/functions/isfinite.texi: Mention isfinite module.
48860         * MODULES.html.sh: Mention new module.
48861
48862 2007-10-27  Ben Pfaff  <blp@gnu.org>
48863
48864         Ralf Wildenhues reported that Tru64 4.0D declares the round
48865         functions but does not have definitions.
48866         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
48867         cannot be found in any library, set the output variable to
48868         "missing" instead of "".
48869         * m4/round.m4: Also use our substitute if we cannot find round in
48870         any library, even if it is declared.
48871         * m4/roundf.m4: Likewise for roundf.
48872         * m4/roundl.m4: Likewise for roundl.
48873         * lib/math.in.h: Undefine roundf, round, roundl before defining
48874         their replacements, to allow for hypothetical systems where these
48875         may be defined as macros but not available in libraries.
48876
48877 2007-10-27  Bruno Haible  <bruno@clisp.org>
48878
48879         * doc/gnulib.texi: Invoke @firstparagraphindent.
48880         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
48881         changes in gnulib.
48882         (Source changes): New section.
48883
48884 2007-10-26  Bruno Haible  <bruno@clisp.org>
48885
48886         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
48887         borrowed from autoconf.
48888
48889 2007-10-26  Bruno Haible  <bruno@clisp.org>
48890
48891         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
48892         strerror returned the empty string. Needed on HP-UX 11.00.
48893
48894 2007-10-24  Micah Cowan  <micah@cowan.name>
48895
48896         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
48897         * build-aux/bootstrap: Remove support for now-unnecessary option,
48898         --cvs-user, and envvars CVS_USER, CVS_RSH.
48899
48900 2007-10-24  Jim Meyering  <meyering@redhat.com>
48901
48902         Avoid diagnostics from sha1sum when there is no cached checksum.
48903         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
48904         if the po.s1 file hasn't been created yet.
48905
48906         * build-aux/bootstrap: Sync from coreutils:
48907         2007-10-24  Jim Meyering  <meyering@redhat.com>
48908         Get gnulib from the git repository, not from an obsolete cvs one.
48909         * build-aux/bootstrap: Suggestion from Micah Cowan.
48910         2007-10-04  Jim Meyering  <jim@meyering.net>
48911         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
48912         (update_po_files): Work also when there are no .po files in po/.
48913
48914 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48915
48916         * README: Append ".git" to git and cg examples.
48917         Problem reported by Benoit Sigoure.
48918
48919 2007-10-23  Micah Cowan  <micah@cowan.name>
48920
48921         * users.txt: Add wget.
48922
48923 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48924
48925         Fix linking of some unistdio tests on FreeBSD.
48926         * modules/unistdio/u16-vsnprintf-tests
48927         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
48928         * modules/unistdio/u16-vsprintf-tests
48929         (test_u16_vsnprintf1_LDADD): Likewise.
48930         * modules/unistdio/u32-vsnprintf-tests
48931         (test_u32_vsnprintf1_LDADD): Likewise.
48932         * modules/unistdio/u32-vsprintf-tests
48933         (test_u32_vsprintf1_LDADD): Likewise.
48934         * modules/unistdio/u8-vsnprintf-tests
48935         (test_u8_vsnprintf1_LDADD): Likewise.
48936         * modules/unistdio/u8-vsprintf-tests
48937         (test_u8_vsprintf1_LDADD): Likewise.
48938         * modules/unistdio/ulc-vsnprintf-tests
48939         (test_ulc_vsnprintf1_LDADD): Likewise.
48940         * modules/unistdio/ulc-vsprintf-tests
48941         (test_ulc_vsprintf1_LDADD): Likewise.
48942
48943         Fix linking of some uniconv tests on FreeBSD.
48944         * modules/uniconv/u16-conv-from-enc-tests
48945         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
48946         * modules/uniconv/u16-conv-to-enc-tests
48947         (test_u16_conv_to_enc_LDADD): Likewise.
48948         * modules/uniconv/u16-strconv-from-enc-tests
48949         (test_u16_strconv_from_enc_LDADD): Likewise.
48950         * modules/uniconv/u16-strconv-to-enc-tests
48951         (test_u16_strconv_to_enc_LDADD): Likewise.
48952         * modules/uniconv/u32-conv-from-enc-tests
48953         (test_u32_conv_from_enc_LDADD): Likewise.
48954         * modules/uniconv/u32-conv-to-enc-tests
48955         (test_u32_conv_to_enc_LDADD): Likewise.
48956         * modules/uniconv/u32-strconv-from-enc-tests
48957         (test_u32_strconv_from_enc_LDADD): Likewise.
48958         * modules/uniconv/u32-strconv-to-enc-tests
48959         (test_u32_strconv_to_enc_LDADD): Likewise.
48960         * modules/uniconv/u8-conv-from-enc-tests
48961         (test_u8_conv_from_enc_LDADD): Likewise.
48962         * modules/uniconv/u8-conv-to-enc-tests
48963         (test_u8_conv_to_enc_LDADD): Likewise.
48964         * modules/uniconv/u8-strconv-from-enc-tests
48965         (test_u8_strconv_from_enc_LDADD): Likewise.
48966         * modules/uniconv/u8-strconv-to-enc-tests
48967         (test_u8_strconv_to_enc_LDADD): Likewise.
48968
48969 2007-10-22  Bruno Haible  <bruno@clisp.org>
48970
48971         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
48972         size.
48973
48974 2007-10-22  Eric Blake  <ebb9@byu.net>
48975
48976         Tweak x*printf documentation.
48977         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
48978         variable name and comments.
48979         Suggested by Bruno Haible.
48980
48981 2007-10-22  Bruno Haible  <bruno@clisp.org>
48982
48983         * lib/acl.c (copy_acl): Fix file name in comment.
48984
48985 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48986
48987         Fix Tru64 problem with stdbool.h.
48988         * lib/stdbool.in.h (false, true):
48989         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
48990         Don't declare as an enum in this situation; it runs afoul of Tru64.
48991         Problem reported by Steven M. Schweda in
48992         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
48993
48994 2007-10-22  Eric Blake  <ebb9@byu.net>
48995
48996         Also wrap vf?printf.
48997         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
48998         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
48999         (xvprintf, xvfprintf): New functions.
49000
49001 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49002
49003         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
49004         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
49005
49006         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
49007         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
49008
49009 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
49010
49011         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
49012         by Bruno Haible.
49013
49014 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49015
49016         * lib/getloadavg.c
49017         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
49018         Undef `sys' after including sys/table.h, for Tru64 4.0D.
49019
49020         * tests/test-i-ring.c: Work for C89.
49021
49022 2007-10-22  Bruno Haible  <bruno@clisp.org>
49023
49024         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
49025         -1u, in preprocessor expression, so that we don't test for the bug
49026         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
49027         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
49028
49029 2007-10-22  Eric Blake  <ebb9@byu.net>
49030
49031         * tests/test-yesno.sh: Silence stderr during test.
49032
49033 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49034
49035         * modules/crypto/gc-camellia: New file.
49036
49037         * m4/gc-camellia.m4: New file.
49038
49039         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
49040
49041         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
49042
49043 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49044
49045         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
49046         --help to stdout.  Reported by sms@antinode.org (Steven
49047         M. Schweda).
49048
49049 2007-10-22  Simon Josefsson  <simon@josefsson.org>
49050
49051         * users.txt: Fix link to libksba.
49052
49053 2007-10-21  Ben Pfaff  <blp@gnu.org>
49054
49055         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
49056         round.c roundf implementation that depends on floorf and ceilf to
49057         be tested unconditionally.
49058
49059 2007-10-21  Ben Pfaff  <blp@gnu.org>
49060
49061         * m4/check-libm-func.m4: Removed.
49062         * m4/check-math-lib.m4: New file.
49063         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
49064         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
49065         definition and lack of AC_LIBOBJ([roundf]).
49066         * m4/roundl.m4: Ditto, and similarly for roundl.
49067         * modules/round: Reference new m4 file.
49068         * modules/roundf: Ditto.
49069         * modules/roundl: Ditto.
49070         * tests/test-round2.c (main): Use ROUND instead of round.
49071         Bug report from Bruno Haible.
49072
49073 2007-10-21  Bruno Haible  <bruno@clisp.org>
49074
49075         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
49076         context.
49077
49078 2007-10-21  Bruno Haible  <bruno@clisp.org>
49079
49080         * tests/test-wcwidth.c (main): Allow negative result for some control
49081         characters.
49082
49083         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
49084         Needed on OSF/1 5.1.
49085
49086 2007-10-21  Bruno Haible  <bruno@clisp.org>
49087
49088         * tests/test-floorf1.c: Include isnanf.h.
49089         (main): Use isnanf() instead of isnan().
49090         * tests/test-ceilf1.c: Include isnanf.h.
49091         (main): Use isnanf() instead of isnan().
49092         * tests/test-truncf1.c: Include isnanf.h.
49093         (main): Use isnanf() instead of isnan().
49094         * tests/test-roundf1.c: Include isnanf.h.
49095         (main): Use isnanf() instead of isnan().
49096
49097 2007-10-21  Eric Blake  <ebb9@byu.net>
49098
49099         * users.txt: Update URL for m4.
49100
49101 2007-10-21  Bruno Haible  <bruno@clisp.org>
49102
49103         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
49104
49105 2007-10-21  Bruno Haible  <bruno@clisp.org>
49106
49107         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
49108         Git's management files if the CVS files are not present.
49109
49110 2007-10-20  Bruno Haible  <bruno@clisp.org>
49111
49112         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
49113         gcc-3.4.x.
49114
49115 2007-10-20  Ben Pfaff  <blp@gnu.org>
49116
49117         * lib/math.in.h: Declare round, roundf, roundl if we are providing
49118         implementations.
49119         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
49120         * lib/round.c: New file.
49121         * lib/roundf.c: New file.
49122         * lib/roundl.c: New file.
49123         * m4/round.m4: New file.
49124         * m4/roundf.m4: New file.
49125         * m4/roundl.m4: New file.
49126         * m4/check-libm-func-m4: New file.
49127         * modules/math: Replace round, roundf, roundl related @VARS@ in
49128         math.in.h.
49129         * modules/round: New file.
49130         * modules/round-tests: New file.
49131         * modules/roundf: New file.
49132         * modules/roundf-tests: New file.
49133         * modules/roundl: New file.
49134         * modules/roundl-tests: New file.
49135         * tests/test-round1.c: New file.
49136         * tests/test-round2.c: New file.
49137         * tests/test-roundf1.c: New file.
49138         * tests/test-roundf2.c: New file.
49139         * tests/test-roundl.c: New file.
49140         * doc/functions/round.texi: Mention round module.
49141         * doc/functions/roundf.texi: Mention roundf module.
49142         * doc/functions/roundl.texi: Mention roundl module.
49143         * MODULES.html.sh: Mention new modules.
49144         Thanks to Bruno Haible for suggestions.
49145
49146 2007-10-20  Jim Meyering  <meyering@redhat.com>
49147
49148         * lib/xprintf.c: Include <config.h> unconditionally.
49149
49150         Change xprintf's license to GPL.
49151         * modules/xprintf (License): s/LGPL/GPL/, since this module
49152         depends on modules (exit and exitfail) which are GPL.
49153         Suggestion from Bruno Haible.
49154
49155         xprintf fixes.
49156         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
49157         Use a clearer diagnostic.
49158         Patch from Bruno Haible.
49159
49160 2007-10-20  Bruno Haible  <bruno@clisp.org>
49161
49162         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
49163         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
49164         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49165
49166 2007-10-20  Bruno Haible  <bruno@clisp.org>
49167
49168         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
49169         precision in the comparison result > x - 1 or similar.
49170         * tests/test-ceilf2.c (correct_result_p): Likewise.
49171         * tests/test-truncf2.c (correct_result_p): Likewise.
49172         * tests/test-trunc2.c (correct_result_p): Likewise.
49173         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49174
49175 2007-10-20  Bruno Haible  <bruno@clisp.org>
49176
49177         * modules/ceil: New file.
49178         * m4/ceil.m4: New file.
49179         * doc/functions/ceil.texi: Mention the 'ceil' module.
49180
49181 2007-10-20  Bruno Haible  <bruno@clisp.org>
49182
49183         * modules/floor: New file.
49184         * m4/floor.m4: New file.
49185         * doc/functions/floor.texi: Mention the 'floor' module.
49186
49187 2007-10-20  Bruno Haible  <bruno@clisp.org>
49188
49189         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
49190         of %a.
49191         * modules/floorf-tests (Depends-on): Likewise.
49192         * modules/truncf-tests (Depends-on): Likewise.
49193         * modules/trunc-tests (Depends-on): Likewise.
49194         Reported by Ben Pfaff.
49195
49196 2007-10-19  Jim Meyering  <meyering@redhat.com>
49197
49198         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
49199         Don't bother testing specific errno values.  Just test ferror.
49200
49201         New module: xprintf
49202         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
49203
49204 2007-10-19  Bruno Haible  <bruno@clisp.org>
49205
49206         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
49207         syntax.
49208         * modules/javaexec (Makefile.am): Likewise.
49209         * modules/relocatable-prog (Makefile.am): Likewise.
49210         Suggested by Jim Meyering.
49211
49212 2007-10-18  Bruno Haible  <bruno@clisp.org>
49213
49214         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
49215         Reported by Jim Meyering.
49216
49217 2007-10-18  Eric Blake  <ebb9@byu.net>
49218
49219         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
49220
49221 2007-10-18  Bruno Haible  <bruno@clisp.org>
49222
49223         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
49224         the format string into writable memory. Needed in Fortify conditions.
49225
49226 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
49227             Bruno Haible  <bruno@clisp.org>
49228
49229         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
49230         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
49231         * modules/trim (Depends-on): Add mbchar.
49232         (configure.ac): Add gl_FUNC_MBRTOWC.
49233         (Makefile.am): Augment lib_SOURCES.
49234
49235 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49236
49237         Modify glob.c to use fstatat and dirfd, to simplify it.
49238         Suggested by Eric Blake.
49239         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
49240         Don't include <stdbool.h>; not used.
49241         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
49242         (link_exists_p): Simplify implementation, since we can now assume
49243         dirfd and fstatat.
49244         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
49245
49246 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49247
49248         * gnulib-tool (func_get_dependencies): Fix sed script to
49249         match only tests.
49250
49251 2007-10-17  Bruno Haible  <bruno@clisp.org>
49252
49253         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
49254         allow locale names without encoding suffix.
49255         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49256         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49257
49258 2007-10-16  Bruno Haible  <bruno@clisp.org>
49259
49260         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
49261         * lib/getgroups.c (getgroups): Likewise.
49262         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
49263
49264 2007-10-16  Bruno Haible  <bruno@clisp.org>
49265
49266         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
49267         * modules/malloc-posix (License): Likewise.
49268         * modules/realloc-posix (License): Likewise.
49269         * modules/calloc-posix (License): Likewise.
49270         * modules/intprops (License): Change from GPL to LGPL, with
49271         Paul Eggert's approval.
49272
49273 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49274
49275         Merge glibc changes into lib/glob.c.
49276
49277         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
49278         2007-10-15 04:59:03 UTC.  Here are the changes:
49279
49280         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
49281
49282         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
49283
49284         * lib/glob.c: Add some branch prediction throughout.
49285
49286         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
49287
49288         [BZ #5103]
49289         * lib/glob.c (glob): Recognize patterns starting \/.
49290
49291         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
49292
49293         [BZ #3996]
49294         * lib/glob.c (attribute_hidden): Define if not defined.
49295         (glob): Unescape dirname, filename or username when needed and not
49296         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
49297         is NULL.  Handle unescaped [ in pattern without closing ].
49298         Don't pass GLOB_CHECK down to recursive glob for directories.
49299         (__glob_pattern_type): New function.
49300         (__glob_pattern_p): Implement using __glob_pattern_type.
49301         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
49302         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
49303         Remove unreachable code.
49304
49305         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
49306
49307         * lib/glob.c (glob_in_dir): Add some comments and asserts to
49308         explain why there are no leaks.
49309
49310         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
49311
49312         [BZ #3253]
49313         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
49314         time, rather allocate increasingly bigger arrays of pointers, if
49315         possible with alloca, if too large with malloc.
49316
49317 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49318
49319         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
49320         Problem reported by H.Merijn Brand in
49321         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
49322         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
49323         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
49324
49325 2007-10-15  Bruno Haible  <bruno@clisp.org>
49326
49327         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
49328         with explicit rpl_ prefix.
49329         * lib/fopen.c (fopen): Likewise.
49330         * lib/freopen.c (freopen): Likewise.
49331         * lib/iconv.c (iconv): Likewise.
49332         * lib/iconv_close.c (iconv_close): Likewise.
49333
49334 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49335
49336         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
49337
49338 2007-10-15  Bruno Haible  <bruno@clisp.org>
49339
49340         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
49341         <stddef.h> instead of <stdlib.h> since we only need NULL.
49342         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49343
49344 2007-10-15  Bruno Haible  <bruno@clisp.org>
49345
49346         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
49347         Replace paragraph talking about LIBOBJS.
49348         Reported by Colin Watson <cjwatson@debian.org>.
49349
49350 2007-10-15  Bruno Haible  <bruno@clisp.org>
49351
49352         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
49353         <stdlib.h> before using NULL.
49354
49355 2007-10-15  Simon Josefsson  <simon@josefsson.org>
49356
49357         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
49358         Reported by Albert Chin <china@thewrittenword.com>.
49359
49360 2007-10-14  Bruno Haible  <bruno@clisp.org>
49361
49362         * modules/iconv_open-utf-tests: New file.
49363         * tests/test-iconv-utf.c: New file.
49364
49365         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
49366         * modules/iconv_open-utf: New file.
49367         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
49368         (iconv, iconv_close): New declarations.
49369         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
49370         be defined.
49371         (iconv_open): Add special handling of conversion between UTF-8 and
49372         UTF-{16,32}{BE,LE}.
49373         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
49374         * lib/iconv_close.c: New file.
49375         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
49376         gl_FUNC_ICONV_OPEN.
49377         (gl_FUNC_ICONV_OPEN): Use it.
49378         (gl_FUNC_ICONV_OPEN_UTF): New macro.
49379         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
49380         and REPLACE_ICONV_UTF.
49381         * modules/iconv_open (Depends-on): Add c-strcase.
49382         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
49383         ICONV_CONST.
49384         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
49385
49386 2007-10-13  Albert Chin  <china@thewrittenword.com>
49387             Bruno Haible  <bruno@clisp.org>
49388
49389         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
49390         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
49391
49392 2007-10-13  Bruno Haible  <bruno@clisp.org>
49393
49394         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
49395         defined, use the ISO C99 inline semantics.
49396         * lib/argp.h (ARGP_EI): Likewise.
49397
49398 2007-10-13  Bruno Haible  <bruno@clisp.org>
49399
49400         Handle 'inline' change in gcc 4.3.0.
49401         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
49402         argp_fmtstream_write, argp_fmtstream_set_lmargin,
49403         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
49404         argp_fmtstream_point): Disable 'extern' declaration if the function
49405         definition is going to be provided inline.
49406         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
49407         semantics, not the ISO C99 inline semantics.
49408         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
49409         'extern' declaration if the function definition is going to be provided
49410         inline.
49411         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
49412         the GNU C inline semantics, not the ISO C99 inline semantics. With
49413         GCC 4.2, avoid a warning.
49414
49415 2007-10-13  Bruno Haible  <bruno@clisp.org>
49416
49417         * lib/freading.h (freading): Enable the use of __freading for
49418         glibc >= 2.7.
49419         * lib/freading.c (freading): Likewise.
49420
49421 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49422
49423         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
49424         "warning: C99 inline functions are not supported; using GNU89".
49425
49426 2007-10-12  Bruno Haible  <bruno@clisp.org>
49427
49428         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
49429         of 2.
49430         * tests/test-ceilf2.c: New file.
49431         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
49432
49433         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
49434         * modules/ceilf-tests: Update.
49435
49436 2007-10-12  Bruno Haible  <bruno@clisp.org>
49437
49438         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
49439         of 2.
49440         * tests/test-floorf2.c: New file.
49441         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
49442
49443         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
49444         * modules/floorf-tests: Update.
49445
49446 2007-10-12  Bruno Haible  <bruno@clisp.org>
49447
49448         * tests/test-trunc2.c: New file.
49449         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
49450
49451         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
49452         * modules/trunc-tests: Update.
49453
49454 2007-10-12  Bruno Haible  <bruno@clisp.org>
49455
49456         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
49457         of 2.
49458         * tests/test-truncf2.c: New file.
49459         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
49460
49461         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
49462         * modules/truncf-tests: Update.
49463
49464 2007-10-11  Eric Blake  <ebb9@byu.net>
49465
49466         Don't claim strerror is broken on Interix.
49467         * doc/functions/strerror.texi (strerror): Known broken systems are
49468         now Solaris 8, and not Interix.
49469         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
49470         Interix on cross-compile.
49471         Reported by Martin Koeppe in
49472         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
49473
49474 2007-10-11  Bruno Haible  <bruno@clisp.org>
49475
49476         * modules/i-ring-tests: New file.
49477         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
49478         instead of assert.
49479
49480 2007-10-11  Bruno Haible  <bruno@clisp.org>
49481
49482         * modules/filenamecat-tests: New file.
49483         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
49484         * lib/filenamecat.c: Remove test code.
49485
49486 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
49487
49488         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
49489
49490         * lib/strerror.c: Include <string.h> always, to test interface,
49491         and to remove the need for the dummy.
49492         Include intprops.h to compute width instead of doing it ourselves
49493         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
49494         (strerror): Define it to return NULL if there's no system strerror.
49495         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
49496         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
49497         ancient pre-strerror Unix systems well any more.  Saying "unknown
49498         system error" is enough.
49499         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
49500         simpler strerror.c implementation.
49501         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
49502         Simplify the tests to reflect the simpler strerror implementation.
49503         * modules/strerror (Depends-on): Add intprops.
49504
49505 2007-10-09  Eric Blake  <ebb9@byu.net>
49506
49507         Silence test-fpending.
49508         * modules/fpending-tests (Files): Add wrapper script.
49509         * tests/test-fpending.sh: New file.
49510
49511 2007-10-09  Bruno Haible  <bruno@clisp.org>
49512
49513         * MODULES.html.sh (func_module): Don't create a hyperlink for
49514         function names like 'printf_frexp'.
49515         (Misc): Add crc, memxor.
49516         (Characteristics of floating types): New section.
49517         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
49518         isnanf-nolibm, signbit, trunc, truncf, truncl.
49519         (Enhancements for ISO C 99 functions): New subsection Input/output.
49520         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
49521         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
49522         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
49523         (Compatibility checks for POSIX:2001 functions): Add clock-time.
49524         (Enhancements for POSIX:2001 functions): Add chdir-long.
49525         (File system functions): Add areadlink, chdir-safer, read-file.
49526         Remove cycle-check.
49527         (File system as inode set): New section.
49528         (Date and time): Add gethrxtime.
49529         (Multithreading): Add openmp.
49530         (Internationalization functions): Add localename.
49531         (Unicode string functions): Add unistr/u*-mbsnlen.
49532         (Support for maintaining and releasing projects): Add git-version-gen.
49533         (Lone files): Remove directories.
49534
49535 2007-10-08  Ben Pfaff  <blp@gnu.org>
49536
49537         * lib/xmalloca.h: Fix typo in comment.
49538
49539 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49540
49541         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
49542         when avoiding problems with integer overflow.  Use a portable test
49543         instead.
49544
49545 2007-10-08  Simon Josefsson  <simon@josefsson.org>
49546
49547         * modules/dummy (License): Change to LGPLv2+.
49548         * modules/float (License): Likewise
49549         * modules/realloc (License): Likewise
49550         * modules/stdlib (License): Likewise
49551
49552 2007-10-07  Bruno Haible  <bruno@clisp.org>
49553
49554         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
49555         * floor.c (TWO_MANT_DIG): Likewise.
49556         * ceil.c (TWO_MANT_DIG): Likewise.
49557         Reported by Ben Pfaff.
49558
49559 2007-10-07  Bruno Haible  <bruno@clisp.org>
49560
49561         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
49562         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
49563         * lib/frexp.c (FUNC): Likewise.
49564         * lib/printf-frexp.h (printf_frexp): Likewise.
49565         * lib/printf-frexpl.h (printf_frexpl): Likewise.
49566         * lib/printf-frexp.c (FUNC): Likewise.
49567         Suggested by Jim Meyering.
49568
49569 2007-10-07  Jim Meyering  <meyering@redhat.com>
49570
49571         Make xnanosleep's integer overflow test more robust.
49572         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
49573         so that gcc-4.3.0 doesn't optimize away this test for overflow.
49574
49575 2007-10-07  Bruno Haible  <bruno@clisp.org>
49576
49577         * NEWS: Mention the license change.
49578
49579         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
49580         abbreviations in the modules files.
49581
49582         Change copyright notice from GPLv2+ to GPLv3+.
49583         * README: Change copyright notice.
49584         * MODULES.html.sh: Likewise.
49585         * build-aux/bootstrap.conf: Likewise.
49586         * build-aux/config.libpath: Likewise.
49587         * build-aux/csharpcomp.sh.in: Likewise.
49588         * build-aux/csharpexec.sh.in: Likewise.
49589         * build-aux/install-reloc: Likewise.
49590         * build-aux/javacomp.sh.in: Likewise.
49591         * build-aux/javaexec.sh.in: Likewise.
49592         * build-aux/ldd.sh.in: Likewise.
49593         * build-aux/reloc-ldflags: Likewise.
49594         * build-aux/relocatable.sh.in: Likewise.
49595         * build-aux/x-to-1.in: Likewise.
49596         * check-module: Likewise.
49597         * config/srclistvars.sh: Likewise.
49598         * gnulib-tool: Likewise.
49599         * lib/acl-internal.h: Likewise.
49600         * lib/acl.c: Likewise.
49601         * lib/acl.h: Likewise.
49602         * lib/acl_entries.c: Likewise.
49603         * lib/areadlink-with-size.c: Likewise.
49604         * lib/areadlink.c: Likewise.
49605         * lib/areadlink.h: Likewise.
49606         * lib/argmatch.c: Likewise.
49607         * lib/argmatch.h: Likewise.
49608         * lib/argp-ba.c: Likewise.
49609         * lib/argp-eexst.c: Likewise.
49610         * lib/argp-fmtstream.c: Likewise.
49611         * lib/argp-fmtstream.h: Likewise.
49612         * lib/argp-fs-xinl.c: Likewise.
49613         * lib/argp-help.c: Likewise.
49614         * lib/argp-namefrob.h: Likewise.
49615         * lib/argp-parse.c: Likewise.
49616         * lib/argp-pin.c: Likewise.
49617         * lib/argp-pv.c: Likewise.
49618         * lib/argp-pvh.c: Likewise.
49619         * lib/argp-xinl.c: Likewise.
49620         * lib/argp.h: Likewise.
49621         * lib/at-func.c: Likewise.
49622         * lib/atanl.c: Likewise.
49623         * lib/backupfile.c: Likewise.
49624         * lib/backupfile.h: Likewise.
49625         * lib/basename.c: Likewise.
49626         * lib/binary-io.h: Likewise.
49627         * lib/byteswap.in.h: Likewise.
49628         * lib/c-stack.c: Likewise.
49629         * lib/c-stack.h: Likewise.
49630         * lib/c-strcasestr.c: Likewise.
49631         * lib/c-strcasestr.h: Likewise.
49632         * lib/c-strstr.c: Likewise.
49633         * lib/c-strstr.h: Likewise.
49634         * lib/c-strtod.c: Likewise.
49635         * lib/calloc.c: Likewise.
49636         * lib/canon-host.c: Likewise.
49637         * lib/canon-host.h: Likewise.
49638         * lib/canonicalize-lgpl.c: Likewise.
49639         * lib/canonicalize.c: Likewise.
49640         * lib/canonicalize.h: Likewise.
49641         * lib/ceil.c: Likewise.
49642         * lib/ceilf.c: Likewise.
49643         * lib/ceill.c: Likewise.
49644         * lib/chdir-long.c: Likewise.
49645         * lib/chdir-long.h: Likewise.
49646         * lib/chdir-safer.c: Likewise.
49647         * lib/chdir-safer.h: Likewise.
49648         * lib/chown.c: Likewise.
49649         * lib/classpath.c: Likewise.
49650         * lib/classpath.h: Likewise.
49651         * lib/clean-temp.c: Likewise.
49652         * lib/clean-temp.h: Likewise.
49653         * lib/cloexec.c: Likewise.
49654         * lib/close-stream.c: Likewise.
49655         * lib/closein.c: Likewise.
49656         * lib/closein.h: Likewise.
49657         * lib/closeout.c: Likewise.
49658         * lib/closeout.h: Likewise.
49659         * lib/concat-filename.c: Likewise.
49660         * lib/copy-file.c: Likewise.
49661         * lib/copy-file.h: Likewise.
49662         * lib/count-one-bits.h: Likewise.
49663         * lib/crc.c: Likewise.
49664         * lib/crc.h: Likewise.
49665         * lib/creat-safer.c: Likewise.
49666         * lib/csharpcomp.c: Likewise.
49667         * lib/csharpcomp.h: Likewise.
49668         * lib/csharpexec.c: Likewise.
49669         * lib/csharpexec.h: Likewise.
49670         * lib/cycle-check.c: Likewise.
49671         * lib/cycle-check.h: Likewise.
49672         * lib/diacrit.c: Likewise.
49673         * lib/diacrit.h: Likewise.
49674         * lib/diffseq.h: Likewise.
49675         * lib/dirchownmod.c: Likewise.
49676         * lib/dirent.in.h: Likewise.
49677         * lib/dirfd.c: Likewise.
49678         * lib/dirfd.h: Likewise.
49679         * lib/dirname.c: Likewise.
49680         * lib/dirname.h: Likewise.
49681         * lib/dummy.c: Likewise.
49682         * lib/dup-safer.c: Likewise.
49683         * lib/dup2.c: Likewise.
49684         * lib/eealloc.h: Likewise.
49685         * lib/error.c: Likewise.
49686         * lib/error.h: Likewise.
49687         * lib/euidaccess.c: Likewise.
49688         * lib/exclude.c: Likewise.
49689         * lib/exclude.h: Likewise.
49690         * lib/execute.c: Likewise.
49691         * lib/execute.h: Likewise.
49692         * lib/exitfail.c: Likewise.
49693         * lib/exitfail.h: Likewise.
49694         * lib/expl.c: Likewise.
49695         * lib/fatal-signal.c: Likewise.
49696         * lib/fatal-signal.h: Likewise.
49697         * lib/fbufmode.c: Likewise.
49698         * lib/fbufmode.h: Likewise.
49699         * lib/fchdir.c: Likewise.
49700         * lib/fchmodat.c: Likewise.
49701         * lib/fchownat.c: Likewise.
49702         * lib/fcntl--.h: Likewise.
49703         * lib/fcntl-safer.h: Likewise.
49704         * lib/fcntl.in.h: Likewise.
49705         * lib/fd-safer.c: Likewise.
49706         * lib/fflush.c: Likewise.
49707         * lib/file-has-acl.c: Likewise.
49708         * lib/file-set.c: Likewise.
49709         * lib/file-type.c: Likewise.
49710         * lib/file-type.h: Likewise.
49711         * lib/fileblocks.c: Likewise.
49712         * lib/filemode.c: Likewise.
49713         * lib/filemode.h: Likewise.
49714         * lib/filename.h: Likewise.
49715         * lib/filenamecat.c: Likewise.
49716         * lib/filenamecat.h: Likewise.
49717         * lib/findprog.c: Likewise.
49718         * lib/findprog.h: Likewise.
49719         * lib/float.in.h: Likewise.
49720         * lib/floor.c: Likewise.
49721         * lib/floorf.c: Likewise.
49722         * lib/floorl.c: Likewise.
49723         * lib/fopen-safer.c: Likewise.
49724         * lib/fopen.c: Likewise.
49725         * lib/fpending.c: Likewise.
49726         * lib/fpending.h: Likewise.
49727         * lib/fprintf.c: Likewise.
49728         * lib/fprintftime.h: Likewise.
49729         * lib/fpucw.h: Likewise.
49730         * lib/fpurge.c: Likewise.
49731         * lib/fpurge.h: Likewise.
49732         * lib/freadable.c: Likewise.
49733         * lib/freadable.h: Likewise.
49734         * lib/freadahead.c: Likewise.
49735         * lib/freadahead.h: Likewise.
49736         * lib/freading.c: Likewise.
49737         * lib/freading.h: Likewise.
49738         * lib/free.c: Likewise.
49739         * lib/freopen.c: Likewise.
49740         * lib/frexp.c: Likewise.
49741         * lib/frexpl.c: Likewise.
49742         * lib/fseek.c: Likewise.
49743         * lib/fseterr.c: Likewise.
49744         * lib/fseterr.h: Likewise.
49745         * lib/fstatat.c: Likewise.
49746         * lib/fstrcmp.c: Likewise.
49747         * lib/fstrcmp.h: Likewise.
49748         * lib/fsusage.c: Likewise.
49749         * lib/fsusage.h: Likewise.
49750         * lib/ftell.c: Likewise.
49751         * lib/ftello.c: Likewise.
49752         * lib/fts-cycle.c: Likewise.
49753         * lib/fts.c: Likewise.
49754         * lib/fts_.h: Likewise.
49755         * lib/full-read.c: Likewise.
49756         * lib/full-read.h: Likewise.
49757         * lib/full-write.c: Likewise.
49758         * lib/full-write.h: Likewise.
49759         * lib/fwritable.c: Likewise.
49760         * lib/fwritable.h: Likewise.
49761         * lib/fwriteerror.c: Likewise.
49762         * lib/fwriteerror.h: Likewise.
49763         * lib/fwriting.c: Likewise.
49764         * lib/fwriting.h: Likewise.
49765         * lib/gcd.c: Likewise.
49766         * lib/gcd.h: Likewise.
49767         * lib/getcwd.c: Likewise.
49768         * lib/getdate.h: Likewise.
49769         * lib/getdate.y: Likewise.
49770         * lib/getdomainname.c: Likewise.
49771         * lib/getdomainname.h: Likewise.
49772         * lib/getgroups.c: Likewise.
49773         * lib/gethostname.c: Likewise.
49774         * lib/gethrxtime.c: Likewise.
49775         * lib/gethrxtime.h: Likewise.
49776         * lib/getloadavg.c: Likewise.
49777         * lib/getndelim2.c: Likewise.
49778         * lib/getndelim2.h: Likewise.
49779         * lib/getnline.c: Likewise.
49780         * lib/getnline.h: Likewise.
49781         * lib/getopt.c: Likewise.
49782         * lib/getopt.in.h: Likewise.
49783         * lib/getopt1.c: Likewise.
49784         * lib/getopt_int.h: Likewise.
49785         * lib/getpagesize.h: Likewise.
49786         * lib/getsubopt.c: Likewise.
49787         * lib/gettime.c: Likewise.
49788         * lib/getugroups.c: Likewise.
49789         * lib/getugroups.h: Likewise.
49790         * lib/getusershell.c: Likewise.
49791         * lib/gl_anyavltree_list1.h: Likewise.
49792         * lib/gl_anyavltree_list2.h: Likewise.
49793         * lib/gl_anyhash_list1.h: Likewise.
49794         * lib/gl_anyhash_list2.h: Likewise.
49795         * lib/gl_anylinked_list1.h: Likewise.
49796         * lib/gl_anylinked_list2.h: Likewise.
49797         * lib/gl_anyrbtree_list1.h: Likewise.
49798         * lib/gl_anyrbtree_list2.h: Likewise.
49799         * lib/gl_anytree_list1.h: Likewise.
49800         * lib/gl_anytree_list2.h: Likewise.
49801         * lib/gl_anytree_oset.h: Likewise.
49802         * lib/gl_anytreehash_list1.h: Likewise.
49803         * lib/gl_anytreehash_list2.h: Likewise.
49804         * lib/gl_array_list.c: Likewise.
49805         * lib/gl_array_list.h: Likewise.
49806         * lib/gl_array_oset.c: Likewise.
49807         * lib/gl_array_oset.h: Likewise.
49808         * lib/gl_avltree_list.c: Likewise.
49809         * lib/gl_avltree_list.h: Likewise.
49810         * lib/gl_avltree_oset.c: Likewise.
49811         * lib/gl_avltree_oset.h: Likewise.
49812         * lib/gl_avltreehash_list.c: Likewise.
49813         * lib/gl_avltreehash_list.h: Likewise.
49814         * lib/gl_carray_list.c: Likewise.
49815         * lib/gl_carray_list.h: Likewise.
49816         * lib/gl_linked_list.c: Likewise.
49817         * lib/gl_linked_list.h: Likewise.
49818         * lib/gl_linkedhash_list.c: Likewise.
49819         * lib/gl_linkedhash_list.h: Likewise.
49820         * lib/gl_list.c: Likewise.
49821         * lib/gl_list.h: Likewise.
49822         * lib/gl_oset.c: Likewise.
49823         * lib/gl_oset.h: Likewise.
49824         * lib/gl_rbtree_list.c: Likewise.
49825         * lib/gl_rbtree_list.h: Likewise.
49826         * lib/gl_rbtree_oset.c: Likewise.
49827         * lib/gl_rbtree_oset.h: Likewise.
49828         * lib/gl_rbtreehash_list.c: Likewise.
49829         * lib/gl_rbtreehash_list.h: Likewise.
49830         * lib/gl_sublist.c: Likewise.
49831         * lib/gl_sublist.h: Likewise.
49832         * lib/group-member.c: Likewise.
49833         * lib/group-member.h: Likewise.
49834         * lib/hard-locale.c: Likewise.
49835         * lib/hard-locale.h: Likewise.
49836         * lib/hash-pjw.c: Likewise.
49837         * lib/hash-pjw.h: Likewise.
49838         * lib/hash-triple.c: Likewise.
49839         * lib/hash.c: Likewise.
49840         * lib/hash.h: Likewise.
49841         * lib/human.c: Likewise.
49842         * lib/human.h: Likewise.
49843         * lib/i-ring.c: Likewise.
49844         * lib/i-ring.h: Likewise.
49845         * lib/idcache.c: Likewise.
49846         * lib/imaxabs.c: Likewise.
49847         * lib/imaxdiv.c: Likewise.
49848         * lib/inet_pton.c: Likewise.
49849         * lib/inet_pton.h: Likewise.
49850         * lib/intprops.h: Likewise.
49851         * lib/inttostr.c: Likewise.
49852         * lib/inttostr.h: Likewise.
49853         * lib/inttypes.in.h: Likewise.
49854         * lib/isapipe.c: Likewise.
49855         * lib/isdir.c: Likewise.
49856         * lib/isnan.c: Likewise.
49857         * lib/isnan.h: Likewise.
49858         * lib/isnanf.c: Likewise.
49859         * lib/isnanf.h: Likewise.
49860         * lib/isnanl-nolibm.h: Likewise.
49861         * lib/isnanl.c: Likewise.
49862         * lib/isnanl.h: Likewise.
49863         * lib/javacomp.c: Likewise.
49864         * lib/javacomp.h: Likewise.
49865         * lib/javaexec.c: Likewise.
49866         * lib/javaexec.h: Likewise.
49867         * lib/javaversion.c: Likewise.
49868         * lib/javaversion.h: Likewise.
49869         * lib/javaversion.java: Likewise.
49870         * lib/lbrkprop.h: Likewise.
49871         * lib/lchmod.h: Likewise.
49872         * lib/lchown.c: Likewise.
49873         * lib/ldexpl.c: Likewise.
49874         * lib/linebreak.c: Likewise.
49875         * lib/linebreak.h: Likewise.
49876         * lib/linebuffer.c: Likewise.
49877         * lib/linebuffer.h: Likewise.
49878         * lib/locale.in.h: Likewise.
49879         * lib/logl.c: Likewise.
49880         * lib/long-options.c: Likewise.
49881         * lib/long-options.h: Likewise.
49882         * lib/lstat.c: Likewise.
49883         * lib/lstat.h: Likewise.
49884         * lib/math.in.h: Likewise.
49885         * lib/mbchar.c: Likewise.
49886         * lib/mbchar.h: Likewise.
49887         * lib/mbfile.h: Likewise.
49888         * lib/mbiter.h: Likewise.
49889         * lib/mbscasecmp.c: Likewise.
49890         * lib/mbscasestr.c: Likewise.
49891         * lib/mbschr.c: Likewise.
49892         * lib/mbscspn.c: Likewise.
49893         * lib/mbslen.c: Likewise.
49894         * lib/mbsncasecmp.c: Likewise.
49895         * lib/mbsnlen.c: Likewise.
49896         * lib/mbspbrk.c: Likewise.
49897         * lib/mbspcasecmp.c: Likewise.
49898         * lib/mbsrchr.c: Likewise.
49899         * lib/mbssep.c: Likewise.
49900         * lib/mbsspn.c: Likewise.
49901         * lib/mbsstr.c: Likewise.
49902         * lib/mbstok_r.c: Likewise.
49903         * lib/mbswidth.c: Likewise.
49904         * lib/mbswidth.h: Likewise.
49905         * lib/mbuiter.h: Likewise.
49906         * lib/memcasecmp.c: Likewise.
49907         * lib/memcasecmp.h: Likewise.
49908         * lib/memchr.c: Likewise.
49909         * lib/memcmp.c: Likewise.
49910         * lib/memcoll.c: Likewise.
49911         * lib/memcoll.h: Likewise.
49912         * lib/memcpy.c: Likewise.
49913         * lib/memrchr.c: Likewise.
49914         * lib/mkancesdirs.c: Likewise.
49915         * lib/mkdir-p.c: Likewise.
49916         * lib/mkdir-p.h: Likewise.
49917         * lib/mkdir.c: Likewise.
49918         * lib/mkdirat.c: Likewise.
49919         * lib/mkdtemp.c: Likewise.
49920         * lib/mkstemp-safer.c: Likewise.
49921         * lib/mkstemp.c: Likewise.
49922         * lib/modechange.c: Likewise.
49923         * lib/modechange.h: Likewise.
49924         * lib/mountlist.c: Likewise.
49925         * lib/mountlist.h: Likewise.
49926         * lib/mpsort.c: Likewise.
49927         * lib/nanosleep.c: Likewise.
49928         * lib/obstack.c: Likewise.
49929         * lib/obstack.h: Likewise.
49930         * lib/open-safer.c: Likewise.
49931         * lib/open.c: Likewise.
49932         * lib/openat-die.c: Likewise.
49933         * lib/openat-priv.h: Likewise.
49934         * lib/openat-proc.c: Likewise.
49935         * lib/openat.c: Likewise.
49936         * lib/openat.h: Likewise.
49937         * lib/pagealign_alloc.c: Likewise.
49938         * lib/pagealign_alloc.h: Likewise.
49939         * lib/physmem.c: Likewise.
49940         * lib/physmem.h: Likewise.
49941         * lib/pipe-safer.c: Likewise.
49942         * lib/pipe.c: Likewise.
49943         * lib/pipe.h: Likewise.
49944         * lib/posixtm.c: Likewise.
49945         * lib/posixtm.h: Likewise.
49946         * lib/posixver.c: Likewise.
49947         * lib/printf-frexp.c: Likewise.
49948         * lib/printf-frexp.h: Likewise.
49949         * lib/printf-frexpl.c: Likewise.
49950         * lib/printf-frexpl.h: Likewise.
49951         * lib/printf.c: Likewise.
49952         * lib/progname.c: Likewise.
49953         * lib/progname.h: Likewise.
49954         * lib/progreloc.c: Likewise.
49955         * lib/putenv.c: Likewise.
49956         * lib/quote.c: Likewise.
49957         * lib/quote.h: Likewise.
49958         * lib/quotearg.c: Likewise.
49959         * lib/quotearg.h: Likewise.
49960         * lib/raise.c: Likewise.
49961         * lib/readline.c: Likewise.
49962         * lib/readline.h: Likewise.
49963         * lib/readlink.c: Likewise.
49964         * lib/readtokens.c: Likewise.
49965         * lib/readtokens.h: Likewise.
49966         * lib/readtokens0.c: Likewise.
49967         * lib/readtokens0.h: Likewise.
49968         * lib/readutmp.c: Likewise.
49969         * lib/readutmp.h: Likewise.
49970         * lib/realloc.c: Likewise.
49971         * lib/relocwrapper.c: Likewise.
49972         * lib/rename-dest-slash.c: Likewise.
49973         * lib/rename.c: Likewise.
49974         * lib/rmdir.c: Likewise.
49975         * lib/rpmatch.c: Likewise.
49976         * lib/safe-read.c: Likewise.
49977         * lib/safe-read.h: Likewise.
49978         * lib/safe-write.c: Likewise.
49979         * lib/safe-write.h: Likewise.
49980         * lib/same-inode.h: Likewise.
49981         * lib/same.c: Likewise.
49982         * lib/same.h: Likewise.
49983         * lib/save-cwd.c: Likewise.
49984         * lib/save-cwd.h: Likewise.
49985         * lib/savedir.c: Likewise.
49986         * lib/savedir.h: Likewise.
49987         * lib/savewd.c: Likewise.
49988         * lib/savewd.h: Likewise.
49989         * lib/search.in.h: Likewise.
49990         * lib/setenv.c: Likewise.
49991         * lib/setenv.h: Likewise.
49992         * lib/settime.c: Likewise.
49993         * lib/sh-quote.c: Likewise.
49994         * lib/sh-quote.h: Likewise.
49995         * lib/sig2str.c: Likewise.
49996         * lib/sig2str.h: Likewise.
49997         * lib/signal.in.h: Likewise.
49998         * lib/signbitd.c: Likewise.
49999         * lib/signbitf.c: Likewise.
50000         * lib/signbitl.c: Likewise.
50001         * lib/sigprocmask.c: Likewise.
50002         * lib/sincosl.c: Likewise.
50003         * lib/sleep.c: Likewise.
50004         * lib/sprintf.c: Likewise.
50005         * lib/sqrtl.c: Likewise.
50006         * lib/stat-time.h: Likewise.
50007         * lib/stdio--.h: Likewise.
50008         * lib/stdio-safer.h: Likewise.
50009         * lib/stdlib--.h: Likewise.
50010         * lib/stdlib-safer.h: Likewise.
50011         * lib/stdlib.in.h: Likewise.
50012         * lib/stpcpy.c: Likewise.
50013         * lib/stpncpy.c: Likewise.
50014         * lib/strchrnul.c: Likewise.
50015         * lib/strcspn.c: Likewise.
50016         * lib/strerror.c: Likewise.
50017         * lib/strftime.c: Likewise.
50018         * lib/strftime.h: Likewise.
50019         * lib/striconveh.c: Likewise.
50020         * lib/striconveh.h: Likewise.
50021         * lib/striconveha.c: Likewise.
50022         * lib/striconveha.h: Likewise.
50023         * lib/stripslash.c: Likewise.
50024         * lib/strnlen1.c: Likewise.
50025         * lib/strnlen1.h: Likewise.
50026         * lib/strtod.c: Likewise.
50027         * lib/strtoimax.c: Likewise.
50028         * lib/strtok_r.c: Likewise.
50029         * lib/strtol.c: Likewise.
50030         * lib/strtoll.c: Likewise.
50031         * lib/strtoul.c: Likewise.
50032         * lib/strtoull.c: Likewise.
50033         * lib/sysexits.in.h: Likewise.
50034         * lib/tempname.c: Likewise.
50035         * lib/tempname.h: Likewise.
50036         * lib/timespec.h: Likewise.
50037         * lib/tls.c: Likewise.
50038         * lib/tls.h: Likewise.
50039         * lib/tmpdir.c: Likewise.
50040         * lib/tmpdir.h: Likewise.
50041         * lib/tmpfile-safer.c: Likewise.
50042         * lib/tmpfile.c: Likewise.
50043         * lib/trigl.c: Likewise.
50044         * lib/trigl.h: Likewise.
50045         * lib/trim.c: Likewise.
50046         * lib/trim.h: Likewise.
50047         * lib/trunc.c: Likewise.
50048         * lib/truncf.c: Likewise.
50049         * lib/truncl.c: Likewise.
50050         * lib/tsearch.c: Likewise.
50051         * lib/unicodeio.c: Likewise.
50052         * lib/unicodeio.h: Likewise.
50053         * lib/unistd--.h: Likewise.
50054         * lib/unistd-safer.h: Likewise.
50055         * lib/unistdio/ulc-fprintf.c: Likewise.
50056         * lib/unistdio/ulc-vfprintf.c: Likewise.
50057         * lib/unlinkdir.c: Likewise.
50058         * lib/unlinkdir.h: Likewise.
50059         * lib/unlocked-io.h: Likewise.
50060         * lib/unsetenv.c: Likewise.
50061         * lib/userspec.c: Likewise.
50062         * lib/utime.c: Likewise.
50063         * lib/utimecmp.c: Likewise.
50064         * lib/utimecmp.h: Likewise.
50065         * lib/utimens.c: Likewise.
50066         * lib/verify.h: Likewise.
50067         * lib/verror.c: Likewise.
50068         * lib/verror.h: Likewise.
50069         * lib/version-etc-fsf.c: Likewise.
50070         * lib/version-etc.c: Likewise.
50071         * lib/version-etc.h: Likewise.
50072         * lib/vfprintf.c: Likewise.
50073         * lib/vprintf.c: Likewise.
50074         * lib/vsprintf.c: Likewise.
50075         * lib/w32spawn.h: Likewise.
50076         * lib/wait-process.c: Likewise.
50077         * lib/wait-process.h: Likewise.
50078         * lib/wcwidth.c: Likewise.
50079         * lib/write-any-file.c: Likewise.
50080         * lib/xalloc-die.c: Likewise.
50081         * lib/xalloc.h: Likewise.
50082         * lib/xasprintf.c: Likewise.
50083         * lib/xgetcwd.c: Likewise.
50084         * lib/xgetcwd.h: Likewise.
50085         * lib/xgetdomainname.c: Likewise.
50086         * lib/xgetdomainname.h: Likewise.
50087         * lib/xgethostname.c: Likewise.
50088         * lib/xmalloc.c: Likewise.
50089         * lib/xmalloca.c: Likewise.
50090         * lib/xmalloca.h: Likewise.
50091         * lib/xmemcoll.c: Likewise.
50092         * lib/xnanosleep.c: Likewise.
50093         * lib/xreadlink.c: Likewise.
50094         * lib/xreadlink.h: Likewise.
50095         * lib/xsetenv.c: Likewise.
50096         * lib/xsetenv.h: Likewise.
50097         * lib/xstriconv.c: Likewise.
50098         * lib/xstriconv.h: Likewise.
50099         * lib/xstrndup.c: Likewise.
50100         * lib/xstrndup.h: Likewise.
50101         * lib/xstrtod.c: Likewise.
50102         * lib/xstrtod.h: Likewise.
50103         * lib/xstrtol-error.c: Likewise.
50104         * lib/xstrtol.c: Likewise.
50105         * lib/xstrtol.h: Likewise.
50106         * lib/xtime.h: Likewise.
50107         * lib/xvasprintf.c: Likewise.
50108         * lib/xvasprintf.h: Likewise.
50109         * lib/yesno.c: Likewise.
50110         * lib/yesno.h: Likewise.
50111         * posix-modules: Likewise.
50112         * tests/test-alloca-opt.c: Likewise.
50113         * tests/test-arcfour.c: Likewise.
50114         * tests/test-arctwo.c: Likewise.
50115         * tests/test-argmatch.c: Likewise.
50116         * tests/test-argp-2.sh: Likewise.
50117         * tests/test-argp.c: Likewise.
50118         * tests/test-arpa_inet.c: Likewise.
50119         * tests/test-array_list.c: Likewise.
50120         * tests/test-array_oset.c: Likewise.
50121         * tests/test-atexit.c: Likewise.
50122         * tests/test-avltree_list.c: Likewise.
50123         * tests/test-avltree_oset.c: Likewise.
50124         * tests/test-avltreehash_list.c: Likewise.
50125         * tests/test-base64.c: Likewise.
50126         * tests/test-binary-io.c: Likewise.
50127         * tests/test-byteswap.c: Likewise.
50128         * tests/test-c-ctype.c: Likewise.
50129         * tests/test-c-strcasecmp.c: Likewise.
50130         * tests/test-c-strcasestr.c: Likewise.
50131         * tests/test-c-strncasecmp.c: Likewise.
50132         * tests/test-c-strstr.c: Likewise.
50133         * tests/test-canonicalize-lgpl.c: Likewise.
50134         * tests/test-canonicalize.c: Likewise.
50135         * tests/test-carray_list.c: Likewise.
50136         * tests/test-ceilf.c: Likewise.
50137         * tests/test-ceill.c: Likewise.
50138         * tests/test-count-one-bits.c: Likewise.
50139         * tests/test-crc.c: Likewise.
50140         * tests/test-dirname.c: Likewise.
50141         * tests/test-fbufmode.c: Likewise.
50142         * tests/test-fcntl.c: Likewise.
50143         * tests/test-fflush.c: Likewise.
50144         * tests/test-floorf.c: Likewise.
50145         * tests/test-floorl.c: Likewise.
50146         * tests/test-fopen.c: Likewise.
50147         * tests/test-fprintf-posix.c: Likewise.
50148         * tests/test-fprintf-posix.h: Likewise.
50149         * tests/test-fpurge.c: Likewise.
50150         * tests/test-freadable.c: Likewise.
50151         * tests/test-freadahead.c: Likewise.
50152         * tests/test-freading.c: Likewise.
50153         * tests/test-freopen.c: Likewise.
50154         * tests/test-frexp.c: Likewise.
50155         * tests/test-frexpl.c: Likewise.
50156         * tests/test-fseek.c: Likewise.
50157         * tests/test-fseeko.c: Likewise.
50158         * tests/test-fseterr.c: Likewise.
50159         * tests/test-fstrcmp.c: Likewise.
50160         * tests/test-ftell.c: Likewise.
50161         * tests/test-ftello.c: Likewise.
50162         * tests/test-fwritable.c: Likewise.
50163         * tests/test-fwriting.c: Likewise.
50164         * tests/test-getaddrinfo.c: Likewise.
50165         * tests/test-getpass.c: Likewise.
50166         * tests/test-gettimeofday.c: Likewise.
50167         * tests/test-hmac-md5.c: Likewise.
50168         * tests/test-hmac-sha1.c: Likewise.
50169         * tests/test-iconv.c: Likewise.
50170         * tests/test-iconvme.c: Likewise.
50171         * tests/test-inttypes.c: Likewise.
50172         * tests/test-isnan.c: Likewise.
50173         * tests/test-isnanf.c: Likewise.
50174         * tests/test-isnanl-nolibm.c: Likewise.
50175         * tests/test-isnanl.c: Likewise.
50176         * tests/test-isnanl.h: Likewise.
50177         * tests/test-ldexpl.c: Likewise.
50178         * tests/test-linked_list.c: Likewise.
50179         * tests/test-linkedhash_list.c: Likewise.
50180         * tests/test-locale.c: Likewise.
50181         * tests/test-localename.c: Likewise.
50182         * tests/test-lock.c: Likewise.
50183         * tests/test-lseek.c: Likewise.
50184         * tests/test-malloca.c: Likewise.
50185         * tests/test-math.c: Likewise.
50186         * tests/test-mbscasecmp.c: Likewise.
50187         * tests/test-mbscasestr1.c: Likewise.
50188         * tests/test-mbscasestr2.c: Likewise.
50189         * tests/test-mbscasestr3.c: Likewise.
50190         * tests/test-mbscasestr4.c: Likewise.
50191         * tests/test-mbschr.c: Likewise.
50192         * tests/test-mbscspn.c: Likewise.
50193         * tests/test-mbsncasecmp.c: Likewise.
50194         * tests/test-mbspbrk.c: Likewise.
50195         * tests/test-mbspcasecmp.c: Likewise.
50196         * tests/test-mbsrchr.c: Likewise.
50197         * tests/test-mbsspn.c: Likewise.
50198         * tests/test-mbsstr1.c: Likewise.
50199         * tests/test-mbsstr2.c: Likewise.
50200         * tests/test-mbsstr3.c: Likewise.
50201         * tests/test-md5.c: Likewise.
50202         * tests/test-memmem.c: Likewise.
50203         * tests/test-netinet_in.c: Likewise.
50204         * tests/test-open.c: Likewise.
50205         * tests/test-printf-frexp.c: Likewise.
50206         * tests/test-printf-frexpl.c: Likewise.
50207         * tests/test-printf-posix.c: Likewise.
50208         * tests/test-printf-posix.h: Likewise.
50209         * tests/test-rbtree_list.c: Likewise.
50210         * tests/test-rbtree_oset.c: Likewise.
50211         * tests/test-rbtreehash_list.c: Likewise.
50212         * tests/test-read-file.c: Likewise.
50213         * tests/test-rijndael.c: Likewise.
50214         * tests/test-search.c: Likewise.
50215         * tests/test-signbit.c: Likewise.
50216         * tests/test-sleep.c: Likewise.
50217         * tests/test-snprintf-posix.c: Likewise.
50218         * tests/test-snprintf-posix.h: Likewise.
50219         * tests/test-snprintf.c: Likewise.
50220         * tests/test-sprintf-posix.c: Likewise.
50221         * tests/test-sprintf-posix.h: Likewise.
50222         * tests/test-stat-time.c: Likewise.
50223         * tests/test-stdbool.c: Likewise.
50224         * tests/test-stdint.c: Likewise.
50225         * tests/test-stdio.c: Likewise.
50226         * tests/test-stdlib.c: Likewise.
50227         * tests/test-stpncpy.c: Likewise.
50228         * tests/test-strcasestr.c: Likewise.
50229         * tests/test-striconv.c: Likewise.
50230         * tests/test-striconveh.c: Likewise.
50231         * tests/test-striconveha.c: Likewise.
50232         * tests/test-string.c: Likewise.
50233         * tests/test-sys_select.c: Likewise.
50234         * tests/test-sys_socket.c: Likewise.
50235         * tests/test-sys_stat.c: Likewise.
50236         * tests/test-sys_time.c: Likewise.
50237         * tests/test-sysexits.c: Likewise.
50238         * tests/test-time.c: Likewise.
50239         * tests/test-tls.c: Likewise.
50240         * tests/test-trunc.c: Likewise.
50241         * tests/test-truncf.c: Likewise.
50242         * tests/test-truncl.c: Likewise.
50243         * tests/test-unistd.c: Likewise.
50244         * tests/test-vasnprintf-posix.c: Likewise.
50245         * tests/test-vasnprintf-posix2.c: Likewise.
50246         * tests/test-vasnprintf.c: Likewise.
50247         * tests/test-vasprintf-posix.c: Likewise.
50248         * tests/test-vasprintf.c: Likewise.
50249         * tests/test-verify.c: Likewise.
50250         * tests/test-vfprintf-posix.c: Likewise.
50251         * tests/test-vprintf-posix.c: Likewise.
50252         * tests/test-vsnprintf-posix.c: Likewise.
50253         * tests/test-vsnprintf.c: Likewise.
50254         * tests/test-vsprintf-posix.c: Likewise.
50255         * tests/test-wchar.c: Likewise.
50256         * tests/test-wctype.c: Likewise.
50257         * tests/test-wcwidth.c: Likewise.
50258         * tests/test-xstrtol.c: Likewise.
50259         * tests/test-xvasprintf.c: Likewise.
50260         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
50261         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
50262         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50263         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50264         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50265         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
50266         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50267         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50268         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50269         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
50270         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50271         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50272         * tests/uniname/test-uninames.c: Likewise.
50273         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
50274         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
50275         * tests/unistdio/test-u16-printf1.h: Likewise.
50276         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
50277         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
50278         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
50279         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
50280         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
50281         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
50282         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
50283         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
50284         * tests/unistdio/test-u32-printf1.h: Likewise.
50285         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
50286         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
50287         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
50288         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
50289         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
50290         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
50291         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
50292         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
50293         * tests/unistdio/test-u8-printf1.h: Likewise.
50294         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
50295         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
50296         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
50297         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
50298         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
50299         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
50300         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
50301         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
50302         * tests/unistdio/test-ulc-printf1.h: Likewise.
50303         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
50304         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
50305         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
50306         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
50307         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
50308         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
50309         * tests/uniwidth/test-u16-strwidth.c: Likewise.
50310         * tests/uniwidth/test-u16-width.c: Likewise.
50311         * tests/uniwidth/test-u32-strwidth.c: Likewise.
50312         * tests/uniwidth/test-u32-width.c: Likewise.
50313         * tests/uniwidth/test-u8-strwidth.c: Likewise.
50314         * tests/uniwidth/test-u8-width.c: Likewise.
50315         * tests/uniwidth/test-uc_width.c: Likewise.
50316         * config/srclist-update: Likewise.
50317         (fixlicense): Update to GPLv3+.
50318
50319         Change copyright notice from LGPLv2.1+ to LGPLv3+.
50320         * tests/test-tsearch.c: Change copyright notice.
50321
50322         Change copyright notice from LGPLv2.0+ to LGPLv3+.
50323         * lib/c-strcaseeq.h: Change copyright notice.
50324         * lib/streq.h: Likewise.
50325         * lib/uniconv.h: Likewise.
50326         * lib/uniconv/u-conv-from-enc.h: Likewise.
50327         * lib/uniconv/u-conv-to-enc.h: Likewise.
50328         * lib/uniconv/u-strconv-from-enc.h: Likewise.
50329         * lib/uniconv/u-strconv-to-enc.h: Likewise.
50330         * lib/uniconv/u16-conv-from-enc.c: Likewise.
50331         * lib/uniconv/u16-conv-to-enc.c: Likewise.
50332         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
50333         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
50334         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
50335         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
50336         * lib/uniconv/u32-conv-from-enc.c: Likewise.
50337         * lib/uniconv/u32-conv-to-enc.c: Likewise.
50338         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
50339         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
50340         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
50341         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
50342         * lib/uniconv/u8-conv-from-enc.c: Likewise.
50343         * lib/uniconv/u8-conv-to-enc.c: Likewise.
50344         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
50345         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
50346         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
50347         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
50348         * lib/uniname.h: Likewise.
50349         * lib/uniname/uniname.c: Likewise.
50350         * lib/unistdio.h: Likewise.
50351         * lib/unistdio/u-asnprintf.h: Likewise.
50352         * lib/unistdio/u-asprintf.h: Likewise.
50353         * lib/unistdio/u-printf-args.c: Likewise.
50354         * lib/unistdio/u-printf-args.h: Likewise.
50355         * lib/unistdio/u-printf-parse.h: Likewise.
50356         * lib/unistdio/u-snprintf.h: Likewise.
50357         * lib/unistdio/u-sprintf.h: Likewise.
50358         * lib/unistdio/u-vasprintf.h: Likewise.
50359         * lib/unistdio/u-vsnprintf.h: Likewise.
50360         * lib/unistdio/u-vsprintf.h: Likewise.
50361         * lib/unistdio/u16-asnprintf.c: Likewise.
50362         * lib/unistdio/u16-asprintf.c: Likewise.
50363         * lib/unistdio/u16-printf-parse.c: Likewise.
50364         * lib/unistdio/u16-snprintf.c: Likewise.
50365         * lib/unistdio/u16-sprintf.c: Likewise.
50366         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
50367         * lib/unistdio/u16-u16-asprintf.c: Likewise.
50368         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50369         * lib/unistdio/u16-u16-sprintf.c: Likewise.
50370         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
50371         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
50372         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
50373         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
50374         * lib/unistdio/u16-vasnprintf.c: Likewise.
50375         * lib/unistdio/u16-vasprintf.c: Likewise.
50376         * lib/unistdio/u16-vsnprintf.c: Likewise.
50377         * lib/unistdio/u16-vsprintf.c: Likewise.
50378         * lib/unistdio/u32-asnprintf.c: Likewise.
50379         * lib/unistdio/u32-asprintf.c: Likewise.
50380         * lib/unistdio/u32-printf-parse.c: Likewise.
50381         * lib/unistdio/u32-snprintf.c: Likewise.
50382         * lib/unistdio/u32-sprintf.c: Likewise.
50383         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
50384         * lib/unistdio/u32-u32-asprintf.c: Likewise.
50385         * lib/unistdio/u32-u32-snprintf.c: Likewise.
50386         * lib/unistdio/u32-u32-sprintf.c: Likewise.
50387         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
50388         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
50389         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
50390         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
50391         * lib/unistdio/u32-vasnprintf.c: Likewise.
50392         * lib/unistdio/u32-vasprintf.c: Likewise.
50393         * lib/unistdio/u32-vsnprintf.c: Likewise.
50394         * lib/unistdio/u32-vsprintf.c: Likewise.
50395         * lib/unistdio/u8-asnprintf.c: Likewise.
50396         * lib/unistdio/u8-asprintf.c: Likewise.
50397         * lib/unistdio/u8-printf-parse.c: Likewise.
50398         * lib/unistdio/u8-snprintf.c: Likewise.
50399         * lib/unistdio/u8-sprintf.c: Likewise.
50400         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
50401         * lib/unistdio/u8-u8-asprintf.c: Likewise.
50402         * lib/unistdio/u8-u8-snprintf.c: Likewise.
50403         * lib/unistdio/u8-u8-sprintf.c: Likewise.
50404         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
50405         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
50406         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
50407         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
50408         * lib/unistdio/u8-vasnprintf.c: Likewise.
50409         * lib/unistdio/u8-vasprintf.c: Likewise.
50410         * lib/unistdio/u8-vsnprintf.c: Likewise.
50411         * lib/unistdio/u8-vsprintf.c: Likewise.
50412         * lib/unistdio/ulc-asnprintf.c: Likewise.
50413         * lib/unistdio/ulc-asprintf.c: Likewise.
50414         * lib/unistdio/ulc-printf-parse.c: Likewise.
50415         * lib/unistdio/ulc-snprintf.c: Likewise.
50416         * lib/unistdio/ulc-sprintf.c: Likewise.
50417         * lib/unistdio/ulc-vasnprintf.c: Likewise.
50418         * lib/unistdio/ulc-vasprintf.c: Likewise.
50419         * lib/unistdio/ulc-vsnprintf.c: Likewise.
50420         * lib/unistdio/ulc-vsprintf.c: Likewise.
50421         * lib/unistr.h: Likewise.
50422         * lib/unistr/u-cpy-alloc.h: Likewise.
50423         * lib/unistr/u-cpy.h: Likewise.
50424         * lib/unistr/u-endswith.h: Likewise.
50425         * lib/unistr/u-move.h: Likewise.
50426         * lib/unistr/u-set.h: Likewise.
50427         * lib/unistr/u-startswith.h: Likewise.
50428         * lib/unistr/u-stpcpy.h: Likewise.
50429         * lib/unistr/u-stpncpy.h: Likewise.
50430         * lib/unistr/u-strcat.h: Likewise.
50431         * lib/unistr/u-strcpy.h: Likewise.
50432         * lib/unistr/u-strcspn.h: Likewise.
50433         * lib/unistr/u-strdup.h: Likewise.
50434         * lib/unistr/u-strlen.h: Likewise.
50435         * lib/unistr/u-strncat.h: Likewise.
50436         * lib/unistr/u-strncpy.h: Likewise.
50437         * lib/unistr/u-strnlen.h: Likewise.
50438         * lib/unistr/u-strpbrk.h: Likewise.
50439         * lib/unistr/u-strspn.h: Likewise.
50440         * lib/unistr/u-strstr.h: Likewise.
50441         * lib/unistr/u-strtok.h: Likewise.
50442         * lib/unistr/u16-check.c: Likewise.
50443         * lib/unistr/u16-chr.c: Likewise.
50444         * lib/unistr/u16-cmp.c: Likewise.
50445         * lib/unistr/u16-cpy-alloc.c: Likewise.
50446         * lib/unistr/u16-cpy.c: Likewise.
50447         * lib/unistr/u16-endswith.c: Likewise.
50448         * lib/unistr/u16-mblen.c: Likewise.
50449         * lib/unistr/u16-mbsnlen.c: Likewise.
50450         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50451         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50452         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50453         * lib/unistr/u16-mbtouc.c: Likewise.
50454         * lib/unistr/u16-mbtoucr.c: Likewise.
50455         * lib/unistr/u16-move.c: Likewise.
50456         * lib/unistr/u16-next.c: Likewise.
50457         * lib/unistr/u16-prev.c: Likewise.
50458         * lib/unistr/u16-set.c: Likewise.
50459         * lib/unistr/u16-startswith.c: Likewise.
50460         * lib/unistr/u16-stpcpy.c: Likewise.
50461         * lib/unistr/u16-stpncpy.c: Likewise.
50462         * lib/unistr/u16-strcat.c: Likewise.
50463         * lib/unistr/u16-strchr.c: Likewise.
50464         * lib/unistr/u16-strcmp.c: Likewise.
50465         * lib/unistr/u16-strcpy.c: Likewise.
50466         * lib/unistr/u16-strcspn.c: Likewise.
50467         * lib/unistr/u16-strdup.c: Likewise.
50468         * lib/unistr/u16-strlen.c: Likewise.
50469         * lib/unistr/u16-strmblen.c: Likewise.
50470         * lib/unistr/u16-strmbtouc.c: Likewise.
50471         * lib/unistr/u16-strncat.c: Likewise.
50472         * lib/unistr/u16-strncmp.c: Likewise.
50473         * lib/unistr/u16-strncpy.c: Likewise.
50474         * lib/unistr/u16-strnlen.c: Likewise.
50475         * lib/unistr/u16-strpbrk.c: Likewise.
50476         * lib/unistr/u16-strrchr.c: Likewise.
50477         * lib/unistr/u16-strspn.c: Likewise.
50478         * lib/unistr/u16-strstr.c: Likewise.
50479         * lib/unistr/u16-strtok.c: Likewise.
50480         * lib/unistr/u16-to-u32.c: Likewise.
50481         * lib/unistr/u16-to-u8.c: Likewise.
50482         * lib/unistr/u16-uctomb-aux.c: Likewise.
50483         * lib/unistr/u16-uctomb.c: Likewise.
50484         * lib/unistr/u32-check.c: Likewise.
50485         * lib/unistr/u32-chr.c: Likewise.
50486         * lib/unistr/u32-cmp.c: Likewise.
50487         * lib/unistr/u32-cpy-alloc.c: Likewise.
50488         * lib/unistr/u32-cpy.c: Likewise.
50489         * lib/unistr/u32-endswith.c: Likewise.
50490         * lib/unistr/u32-mblen.c: Likewise.
50491         * lib/unistr/u32-mbsnlen.c: Likewise.
50492         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50493         * lib/unistr/u32-mbtouc.c: Likewise.
50494         * lib/unistr/u32-mbtoucr.c: Likewise.
50495         * lib/unistr/u32-move.c: Likewise.
50496         * lib/unistr/u32-next.c: Likewise.
50497         * lib/unistr/u32-prev.c: Likewise.
50498         * lib/unistr/u32-set.c: Likewise.
50499         * lib/unistr/u32-startswith.c: Likewise.
50500         * lib/unistr/u32-stpcpy.c: Likewise.
50501         * lib/unistr/u32-stpncpy.c: Likewise.
50502         * lib/unistr/u32-strcat.c: Likewise.
50503         * lib/unistr/u32-strchr.c: Likewise.
50504         * lib/unistr/u32-strcmp.c: Likewise.
50505         * lib/unistr/u32-strcpy.c: Likewise.
50506         * lib/unistr/u32-strcspn.c: Likewise.
50507         * lib/unistr/u32-strdup.c: Likewise.
50508         * lib/unistr/u32-strlen.c: Likewise.
50509         * lib/unistr/u32-strmblen.c: Likewise.
50510         * lib/unistr/u32-strmbtouc.c: Likewise.
50511         * lib/unistr/u32-strncat.c: Likewise.
50512         * lib/unistr/u32-strncmp.c: Likewise.
50513         * lib/unistr/u32-strncpy.c: Likewise.
50514         * lib/unistr/u32-strnlen.c: Likewise.
50515         * lib/unistr/u32-strpbrk.c: Likewise.
50516         * lib/unistr/u32-strrchr.c: Likewise.
50517         * lib/unistr/u32-strspn.c: Likewise.
50518         * lib/unistr/u32-strstr.c: Likewise.
50519         * lib/unistr/u32-strtok.c: Likewise.
50520         * lib/unistr/u32-to-u16.c: Likewise.
50521         * lib/unistr/u32-to-u8.c: Likewise.
50522         * lib/unistr/u32-uctomb.c: Likewise.
50523         * lib/unistr/u8-check.c: Likewise.
50524         * lib/unistr/u8-chr.c: Likewise.
50525         * lib/unistr/u8-cmp.c: Likewise.
50526         * lib/unistr/u8-cpy-alloc.c: Likewise.
50527         * lib/unistr/u8-cpy.c: Likewise.
50528         * lib/unistr/u8-endswith.c: Likewise.
50529         * lib/unistr/u8-mblen.c: Likewise.
50530         * lib/unistr/u8-mbsnlen.c: Likewise.
50531         * lib/unistr/u8-mbtouc-aux.c: Likewise.
50532         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50533         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50534         * lib/unistr/u8-mbtouc.c: Likewise.
50535         * lib/unistr/u8-mbtoucr.c: Likewise.
50536         * lib/unistr/u8-move.c: Likewise.
50537         * lib/unistr/u8-next.c: Likewise.
50538         * lib/unistr/u8-prev.c: Likewise.
50539         * lib/unistr/u8-set.c: Likewise.
50540         * lib/unistr/u8-startswith.c: Likewise.
50541         * lib/unistr/u8-stpcpy.c: Likewise.
50542         * lib/unistr/u8-stpncpy.c: Likewise.
50543         * lib/unistr/u8-strcat.c: Likewise.
50544         * lib/unistr/u8-strchr.c: Likewise.
50545         * lib/unistr/u8-strcmp.c: Likewise.
50546         * lib/unistr/u8-strcpy.c: Likewise.
50547         * lib/unistr/u8-strcspn.c: Likewise.
50548         * lib/unistr/u8-strdup.c: Likewise.
50549         * lib/unistr/u8-strlen.c: Likewise.
50550         * lib/unistr/u8-strmblen.c: Likewise.
50551         * lib/unistr/u8-strmbtouc.c: Likewise.
50552         * lib/unistr/u8-strncat.c: Likewise.
50553         * lib/unistr/u8-strncmp.c: Likewise.
50554         * lib/unistr/u8-strncpy.c: Likewise.
50555         * lib/unistr/u8-strnlen.c: Likewise.
50556         * lib/unistr/u8-strpbrk.c: Likewise.
50557         * lib/unistr/u8-strrchr.c: Likewise.
50558         * lib/unistr/u8-strspn.c: Likewise.
50559         * lib/unistr/u8-strstr.c: Likewise.
50560         * lib/unistr/u8-strtok.c: Likewise.
50561         * lib/unistr/u8-to-u16.c: Likewise.
50562         * lib/unistr/u8-to-u32.c: Likewise.
50563         * lib/unistr/u8-uctomb-aux.c: Likewise.
50564         * lib/unistr/u8-uctomb.c: Likewise.
50565         * lib/unitypes.h: Likewise.
50566         * lib/uniwidth.h: Likewise.
50567         * lib/uniwidth/cjk.h: Likewise.
50568         * lib/uniwidth/u16-strwidth.c: Likewise.
50569         * lib/uniwidth/u16-width.c: Likewise.
50570         * lib/uniwidth/u32-strwidth.c: Likewise.
50571         * lib/uniwidth/u32-width.c: Likewise.
50572         * lib/uniwidth/u8-strwidth.c: Likewise.
50573         * lib/uniwidth/u8-width.c: Likewise.
50574         * lib/uniwidth/width.c: Likewise.
50575
50576 2007-10-07  Bruno Haible  <bruno@clisp.org>
50577
50578         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
50579         The file is still under LGPL (see modules/inttypes).
50580
50581 2007-10-06  Bruno Haible  <bruno@clisp.org>
50582
50583         * modules/trunc (Dependencies): Add 'extensions'.
50584         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
50585         Reported by Ben Pfaff <blp@gnu.org>.
50586
50587 2007-10-06  Bruno Haible  <bruno@clisp.org>
50588
50589         * modules/freopen-tests: New file.
50590         * tests/test-freopen.c: New file.
50591
50592         * modules/fopen-tests: New file.
50593         * tests/test-fopen.c: New file.
50594
50595         * modules/fopen: New file.
50596         * lib/fopen.c: New file.
50597         * m4/fopen.m4: New file.
50598         * modules/freopen: New file.
50599         * lib/freopen.c: New file.
50600         * m4/freopen.m4: New file.
50601         * lib/stdio.in.h (fopen, freopen): New declarations.
50602         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
50603         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50604         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
50605         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
50606         * doc/functions/fopen.texi: Mention the 'fopen' module.
50607         * doc/functions/freopen.texi: Mention the 'freopen' module.
50608
50609 2007-10-06  Bruno Haible  <bruno@clisp.org>
50610
50611         * modules/open-tests: New file.
50612         * tests/test-open.c: New file.
50613
50614         * modules/open: New file.
50615         * lib/open.c: New file.
50616         * m4/open.m4: New file.
50617         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
50618         lib/open.c does.
50619         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
50620         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
50621         macros.
50622         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
50623         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
50624         REPLACE_OPEN.
50625         * doc/functions/open.texi: Mention the 'open' module.
50626
50627 2007-10-04  Bruno Haible  <bruno@clisp.org>
50628
50629         * modules/ceill-tests: New file.
50630         * tests/test-ceill.c: New file.
50631
50632         * modules/ceill: New file.
50633         * lib/ceill.c: Replace entire file.
50634         * m4/ceill.m4: New file.
50635         * lib/math.in.h (ceill): Replace declaration.
50636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
50637         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
50638         * doc/functions/ceill.texi: Mention the 'ceill' module.
50639         * modules/mathl (Files): Remove lib/ceill.c.
50640         (Depends-on): Add ceill.
50641
50642 2007-10-04  Bruno Haible  <bruno@clisp.org>
50643
50644         * modules/ceilf-tests: New file.
50645         * tests/test-ceilf.c: New file.
50646
50647         * modules/ceilf: New file.
50648         * lib/ceil.c: New file.
50649         * lib/ceilf.c: New file.
50650         * m4/ceilf.m4: New file.
50651         * lib/math.in.h (ceilf): New declaration.
50652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
50653         HAVE_DECL_CEILF.
50654         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
50655         HAVE_DECL_CEILF.
50656         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
50657
50658 2007-10-04  Bruno Haible  <bruno@clisp.org>
50659
50660         * modules/floorl-tests: New file.
50661         * tests/test-floorl.c: New file.
50662
50663         * modules/floorl: New file.
50664         * lib/floorl.c: Replace entire file.
50665         * m4/floorl.m4: New file.
50666         * lib/math.in.h (floorl): Replace declaration.
50667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
50668         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
50669         * doc/functions/floorl.texi: Mention the 'floorl' module.
50670         * modules/mathl (Files): Remove lib/floorl.c.
50671         (Depends-on): Add floorl.
50672
50673 2007-10-04  Bruno Haible  <bruno@clisp.org>
50674
50675         * modules/floorf-tests: New file.
50676         * tests/test-floorf.c: New file.
50677
50678         * modules/floorf: New file.
50679         * lib/floor.c: New file.
50680         * lib/floorf.c: New file.
50681         * m4/floorf.m4: New file.
50682         * lib/math.in.h (floorf): New declaration.
50683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
50684         HAVE_DECL_FLOORF.
50685         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
50686         HAVE_DECL_FLOORF.
50687         * doc/functions/floorf.texi: Mention the 'floorf' module.
50688
50689 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
50690             Bruno Haible  <bruno@clisp.org>
50691
50692         Advertise for the Git server instead of the CVS server.
50693         * doc/gnulib-intro.texi (Steady Development): Mention the Git
50694         repository instead of the CVS one.
50695         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
50696         about all VCS systems generically.
50697         * doc/gnulib.texi (Introduction): Capitalize `Git'.
50698
50699 2007-10-04  Bruno Haible  <bruno@clisp.org>
50700
50701         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
50702         means.
50703         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
50704
50705 2007-10-04  Bruno Haible  <bruno@clisp.org>
50706
50707         * modules/truncl-tests: New file.
50708         * tests/test-truncl.c: New file.
50709
50710         * modules/truncl: New file.
50711         * lib/truncl.c: New file.
50712         * m4/truncl.m4: New file.
50713         * lib/math.in.h (truncl): New declaration.
50714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
50715         HAVE_DECL_TRUNCL.
50716         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
50717         HAVE_DECL_TRUNCL.
50718         * doc/functions/truncl.texi: Mention the 'truncl' module.
50719
50720 2007-10-04  Bruno Haible  <bruno@clisp.org>
50721
50722         * modules/truncf-tests: New file.
50723         * tests/test-truncf.c: New file.
50724
50725         * modules/truncf: New file.
50726         * lib/trunc.c: Make paramerizable through USE_* macros.
50727         * lib/truncf.c: New file.
50728         * m4/truncf.m4: New file.
50729         * lib/math.in.h (truncf): New declaration.
50730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
50731         HAVE_DECL_TRUNCF.
50732         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
50733         HAVE_DECL_TRUNCF.
50734         * doc/functions/truncf.texi: Mention the 'truncf' module.
50735
50736 2007-10-03  Bruno Haible  <bruno@clisp.org>
50737
50738         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50739         augmentation also for tests modules.
50740         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
50741         * modules/atexit-tests (Makefile.am): Likewise.
50742         * modules/binary-io-tests (Makefile.am): Likewise.
50743         * modules/c-strcase-tests (Makefile.am): Likewise.
50744         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
50745         * modules/canonicalize-tests (Makefile.am): Likewise.
50746         * modules/closein-tests (Makefile.am): Likewise.
50747         * modules/fprintf-posix-tests (Makefile.am): Likewise.
50748         * modules/freadahead-tests (Makefile.am): Likewise.
50749         * modules/fseek-tests (Makefile.am): Likewise.
50750         * modules/fseeko-tests (Makefile.am): Likewise.
50751         * modules/ftell-tests (Makefile.am): Likewise.
50752         * modules/ftello-tests (Makefile.am): Likewise.
50753         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
50754         * modules/isnanl-tests (Makefile.am): Likewise.
50755         * modules/lseek-tests (Makefile.am): Likewise.
50756         * modules/mbscasecmp-tests (Makefile.am): Likewise.
50757         * modules/mbscasestr-tests (Makefile.am): Likewise.
50758         * modules/mbschr-tests (Makefile.am): Likewise.
50759         * modules/mbscspn-tests (Makefile.am): Likewise.
50760         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
50761         * modules/mbspbrk-tests (Makefile.am): Likewise.
50762         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
50763         * modules/mbsrchr-tests (Makefile.am): Likewise.
50764         * modules/mbsspn-tests (Makefile.am): Likewise.
50765         * modules/mbsstr-tests (Makefile.am): Likewise.
50766         * modules/printf-posix-tests (Makefile.am): Likewise.
50767         * modules/snprintf-posix-tests (Makefile.am): Likewise.
50768         * modules/sprintf-posix-tests (Makefile.am): Likewise.
50769         * modules/tsearch-tests (Makefile.am): Likewise.
50770         * modules/uniname/uniname-tests (Makefile.am): Likewise.
50771         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
50772         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
50773         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
50774         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
50775         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
50776         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
50777         * modules/vprintf-posix-tests (Makefile.am): Likewise.
50778         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
50779         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
50780         * modules/xstrtoimax-tests (Makefile.am): Likewise.
50781         * modules/xstrtol-tests (Makefile.am): Likewise.
50782         * modules/xstrtoumax-tests (Makefile.am): Likewise.
50783         * modules/yesno-tests (Makefile.am): Likewise.
50784
50785 2007-10-03  Bruno Haible  <bruno@clisp.org>
50786
50787         * modules/trunc-tests: New file.
50788         * tests/test-trunc.c: New file.
50789
50790         * modules/trunc: New file.
50791         * lib/trunc.c: New file.
50792         * m4/trunc.m4: New file.
50793         * lib/math.in.h (trunc): New declaration.
50794         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
50795         HAVE_DECL_TRUNC.
50796         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
50797         HAVE_DECL_TRUNC.
50798         * doc/functions/trunc.texi: Mention the 'trunc' module.
50799
50800 2007-10-03  Bruno Haible  <bruno@clisp.org>
50801
50802         * tests/test-fpending.c: New file, mostly copied
50803         from coreutils/lib/t-fpending.c.
50804         * modules/fpending-tests: New file.
50805
50806 2007-10-03  Bruno Haible  <bruno@clisp.org>
50807
50808         Port the stdio extensions to QNX (untested).
50809         * lib/fseterr.c (fseterr): Add support for QNX.
50810         * lib/fbufmode.c (fbufmode): Likewise.
50811         * lib/freadable.c (freadable): Likewise.
50812         * lib/fwritable.c (fwritable): Likewise.
50813         * lib/freading.c (freading): Likewise.
50814         * lib/fwriting.c (fwriting): Likewise.
50815         * lib/freadahead.c (freadahed): Likewise.
50816         * lib/fpurge.c (fpurge): Likewise.
50817         * lib/fseeko.c (rpl_fseeko): Likewise.
50818
50819 2007-10-03  Bruno Haible  <bruno@clisp.org>
50820             Jim Meyering  <jim@meyering.net>
50821             Eric Blake  <ebb9@byu.net>
50822
50823         * doc/relocatable.texi: Use @command instead of @program.
50824
50825 2007-10-02  Jim Meyering  <jim@meyering.net>
50826
50827         Perform one more "_.h" -> ".in.h" substitution.
50828         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
50829         instead of unistd_.h here, too.
50830
50831 2007-10-01  Bruno Haible  <bruno@clisp.org>
50832
50833         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
50834         Needed for the alloca-opt module.
50835
50836 2007-09-30  Bruno Haible  <bruno@clisp.org>
50837
50838         * lib/alloca.in.h: Renamed from lib/alloca_.h.
50839         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
50840         alloca_.h.
50841         * lib/argz.in.h: Renamed from lib/argz_.h.
50842         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
50843         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
50844         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
50845         byteswap_.h.
50846         * lib/dirent.in.h: Renamed from lib/dirent_.h.
50847         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
50848         dirent_.h.
50849         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
50850         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
50851         fcntl_.h.
50852         * lib/float.in.h: Renamed from lib/float_.h.
50853         * modules/float (Files, Makefile.am): Use float.in.h instead of
50854         float_.h.
50855         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
50856         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
50857         fnmatch_.h.
50858         * lib/getopt.in.h: Renamed from lib/getopt_.h.
50859         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
50860         getopt_.h.
50861         * lib/glob.in.h: Renamed from lib/glob_.h.
50862         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
50863         * lib/iconv.in.h: Renamed from lib/iconv_.h.
50864         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
50865         iconv_.h.
50866         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
50867         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
50868         inttypes_.h.
50869         * lib/locale.in.h: Renamed from lib/locale_.h.
50870         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
50871         locale_.h.
50872         * lib/math.in.h: Renamed from lib/math_.h.
50873         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
50874         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
50875         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
50876         of netinet_in_.h. Add dependency.
50877         * lib/poll.in.h: Renamed from lib/poll_.h.
50878         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
50879         * lib/search.in.h: Renamed from lib/search_.h.
50880         * modules/search (Files, Makefile.am): Use search.in.h instead of
50881         search_.h.
50882         * lib/signal.in.h: Renamed from lib/signal_.h.
50883         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
50884         _signal.h.
50885         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
50886         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
50887         stdbool_.h.
50888         * lib/stdint.in.h: Renamed from lib/stdint_.h.
50889         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
50890         stdint_.h.
50891         * lib/stdio.in.h: Renamed from lib/stdio_.h.
50892         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
50893         stdio_.h.
50894         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
50895         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
50896         stdlib_.h.
50897         * lib/string.in.h: Renamed from lib/string_.h.
50898         * modules/string (Files, Makefile.am): Use string.in.h instead of
50899         string_.h.
50900         * doc/gnulib-tool.texi (Initial import): Update.
50901         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
50902         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
50903         of sys_select_.h. Add dependency.
50904         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
50905         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
50906         of sys_socket_.h.
50907         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
50908         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
50909         sys_stat_.h.
50910         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
50911         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
50912         sys_time_.h.
50913         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
50914         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
50915         sysexits_.h.
50916         * lib/time.in.h: Renamed from lib/time_.h.
50917         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
50918         * lib/unistd.in.h: Renamed from lib/unistd_.h.
50919         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
50920         unistd_.h.
50921         * lib/wchar.in.h: Renamed from lib/wchar_.h.
50922         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
50923         wchar_.h.
50924         * lib/wctype.in.h: Renamed from lib/wctype_.h.
50925         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
50926         wctype_.h.
50927         * build-aux/bootstrap (slurp): Update.
50928         * lib/.cppi-disable: Update.
50929
50930 2007-09-30  Bruno Haible  <bruno@clisp.org>
50931
50932         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
50933         Needed on BeOS.
50934
50935 2007-09-30  Bruno Haible  <bruno@clisp.org>
50936
50937         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
50938
50939 2007-09-29  Bruno Haible  <bruno@clisp.org>
50940
50941         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
50942
50943 2007-09-29  Bruno Haible  <bruno@clisp.org>
50944
50945         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
50946         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
50947         * build-aux/install-reloc: Compile also areadlink.c.
50948         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
50949
50950 2007-09-29  Bruno Haible  <bruno@clisp.org>
50951
50952         * gnulib-tool (func_emit_initmacro_done): Indentation.
50953
50954 2007-09-29  Bruno Haible  <bruno@clisp.org>
50955
50956         * README: Add CVS checkout update instructions.
50957         Info from Bob Proulx <bob@proulx.com>.
50958
50959 2007-09-28  Eric Blake  <ebb9@byu.net>
50960
50961         Provide move-if-change.
50962         * build-aux/move-if-change: New file, based on best practice
50963         rather than any canonical upstream location.
50964
50965 2007-09-28  Jim Meyering  <jim@meyering.net>
50966
50967         Fix canonicalize loop-detection corner case.
50968         Do not attempt to stat the symlink values stored via seen_triple.
50969         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
50970         on linux-2.6.18, (but not 2.6.22).
50971         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
50972         triple_compare.  The former compares dev,ino,filename, while the latter
50973         would actually stat dirname(filename) when dev and ino were equal.
50974         * lib/hash-triple.c: Install <string.h>.
50975         (STREQ): Define.
50976         (triple_compare_ino_str): New function.
50977         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
50978
50979 2007-09-28  Eric Blake  <ebb9@byu.net>
50980
50981         Enforce that AC_REPLACE_FUNCS files exist.
50982         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
50983         override check for typos.
50984
50985         Fix test-closein on Solaris 10.
50986         * tests/test-closein.c (main): Don't assume stdin can be inherited
50987         closed on all systems.
50988         * tests/test-closein.sh: Likewise.
50989         Reported by Piotr Tarnowski.
50990
50991 2007-09-28  Jim Meyering  <jim@meyering.net>
50992
50993         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
50994
50995 2007-09-27  Jim Meyering  <jim@meyering.net>
50996
50997         canonicalize: Avoid a false-positive cycle failure.
50998         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
50999         Sort.  Remove cycle-check.
51000         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
51001         not cycle-check.h.
51002         (seen_triple): New function.
51003         (canonicalize_filename_mode): Use it instead of cycle-check.
51004         * tests/test-canonicalize.c: Add a test for this bug.
51005         * tests/test-canonicalize.sh: Set up and run the test.
51006
51007         New module, file-set, from coreutils.
51008         * modules/file-set: Define it.
51009         * lib/file-set.c, lib/file-set.h: Implement.
51010
51011         New module, hash-triple, from coreutils.
51012         * modules/hash-triple: Define it.
51013         * lib/hash-triple.c, lib/hash-triple.h: Implement.
51014
51015 2007-09-25  Eric Blake  <ebb9@byu.net>
51016
51017         Fix strerror on Interix.
51018         * lib/string_.h (strerror): Declare replacement.
51019         * doc/functions/strerror.texi (strerror): Document the Interix
51020         shortcoming.
51021         * modules/string (Makefile.am): Support new hooks.
51022         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
51023         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
51024         gl_FUNC_STRERROR_SEPARATE.
51025         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
51026         * lib/strerror.c (rpl_strerror): Provide replacement.
51027         * modules/strerror (Depends-on): Add string.
51028         (configure.ac): Detect use of module.
51029         * tests/test-strerror.c: New file.
51030         * modules/strerror-tests: New test module.
51031         * modules/argp (Depends-on): Add strerror.
51032         * modules/error (Depends-on): Likewise.
51033         Reported by Martin Koeppe.
51034
51035 2007-09-24  Bruno Haible  <bruno@clisp.org>
51036
51037         * README: Update git instructions.
51038
51039 2007-09-24  Eric Blake  <ebb9@byu.net>
51040
51041         Revert fpending breakage from 2007-09-08.
51042         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
51043         __fpending.c.
51044
51045 2007-09-24  Jim Meyering  <jim@meyering.net>
51046
51047         filenamecat.c: Add a test.
51048         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
51049         showing how the function works when DIR is the empty string.
51050
51051 2007-09-21  Simon Josefsson  <simon@josefsson.org>
51052
51053         * tests/test-canonicalize.sh: Turn on executable bit.
51054
51055 2007-09-19  Eric Blake  <ebb9@byu.net>
51056
51057         * README: Update CVS instructions.
51058
51059 2007-09-18  Bruno Haible  <bruno@clisp.org>
51060
51061         * modules/areadlink: New file.
51062         * lib/areadlink.h (areadlink): New declaration.
51063         * lib/areadlink.c: New file, based on lib/xreadlink.c.
51064
51065 2007-09-17  Jim Meyering  <jim@meyering.net>
51066
51067         * lib/savewd.c (ESTALE) [!defined]: Define.
51068         Reported to be required on Interix by Martin Koeppe.
51069
51070 2007-09-17  Bruno Haible  <bruno@clisp.org>
51071
51072         * gnulib-tool (func_version): Use $version.
51073
51074 2007-09-16  Bruno Haible  <bruno@clisp.org>
51075
51076         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
51077         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
51078         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
51079         Reported by Greg Schafer <gschafer@zip.com.au>.
51080
51081 2007-09-15  Bruno Haible  <bruno@clisp.org>
51082
51083         * gnulib-tool (sed): Try a little harder to make bash understand the
51084         alias.
51085         Reported by Bruce Korb <bruce.korb@gmail.com>.
51086
51087 2007-09-13  Eric Blake  <ebb9@byu.net>
51088
51089         * ChangeLog: Remove conflict markers.
51090
51091 2007-09-13  Simon Josefsson  <simon@josefsson.org>
51092
51093         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
51094         Reported by Bruno Haible <bruno@clisp.org>.
51095
51096 2007-09-12  Bruno Haible  <bruno@clisp.org>
51097
51098         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
51099         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
51100         is not defined.
51101
51102 2007-09-12  Eric Blake  <ebb9@byu.net>
51103
51104         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
51105         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
51106         Autoconf definition.
51107         * modules/euidaccess (Depends-on): Add extensions, for
51108         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
51109         * modules/fnmatch (Depends-on): Likewise.
51110         * modules/getaddrinfo (Depends-on): Likewise.
51111         * modules/getdelim (Depends-on): Likewise.
51112         * modules/getline (Depends-on): Likewise.
51113         * modules/getsubopt (Depends-on): Likewise.
51114         * modules/gettext (Depends-on): Likewise.
51115         * modules/group-member (Depends-on): Likewise.
51116         * modules/mbchar (Depends-on): Likewise.
51117         * modules/memmem (Depends-on): Likewise.
51118         * modules/mempcpy (Depends-on): Likewise.
51119         * modules/memrchr (Depends-on): Likewise.
51120         * modules/pagealign_alloc (Depends-on): Likewise.
51121         * modules/readutmp (Depends-on): Likewise.
51122         * modules/stpcpy (Depends-on): Likewise.
51123         * modules/stpncpy (Depends-on): Likewise.
51124         * modules/strchrnul (Depends-on): Likewise.
51125         * modules/strndup (Depends-on): Likewise.
51126         * modules/strsep (Depends-on): Likewise.
51127         * modules/strverscmp (Depends-on): Likewise.
51128         * modules/vasprintf (Depends-on): Likewise.
51129         * modules/wcwidth (Depends-on): Likewise.
51130         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
51131         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
51132         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
51133         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
51134         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51135         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51136         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
51137         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51138         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
51139         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
51140         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51141         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
51142         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
51143         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
51144         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
51145         * m4/readutmp.m4 (gl_READUTMP): Likewise.
51146         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51147         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
51148         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
51149         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
51150         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51151         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
51152         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
51153         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
51154         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
51155         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
51156         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
51157         so that lock.m4 can be used in gettext without extensions module.
51158
51159 2007-09-11  Bruno Haible  <bruno@clisp.org>
51160
51161         * m4/isc-posix.m4: Remove file.
51162         Suggested by Eric Blake.
51163
51164 2007-09-11  Eric Blake  <ebb9@byu.net>
51165
51166         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
51167
51168 2007-09-10  Bruno Haible  <bruno@clisp.org>
51169
51170         * posix-modules: Fix typo in error message.
51171         Reported by Matt <mkraai@beckman.com>.
51172
51173 2007-09-09  Bruno Haible  <bruno@clisp.org>
51174
51175         * doc/functions/getdelim.texi: Update list of platforms lacking the
51176         function.
51177         * doc/functions/getline.texi: Likewise.
51178
51179 2007-09-09  Jim Meyering  <jim@meyering.net>
51180
51181         * lib/hash.c (hash_initialize): Detect calloc failure.
51182         Reported by Bruno Haible.
51183
51184 2007-09-09  Bruno Haible  <bruno@clisp.org>
51185
51186         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
51187         malloc or realloc fails.
51188
51189 2007-09-09  Bruno Haible  <bruno@clisp.org>
51190
51191         * modules/getcwd (Depends-on): Add malloc-posix.
51192         * modules/glob (Depends-on): Likewise.
51193         * modules/putenv (Depends-on): Likewise.
51194         * modules/strdup (Depends-on): Likewise.
51195         * modules/getdelim (Depends-on): Add realloc-posix.
51196         * modules/read-file (Depends-on): Likewise.
51197
51198 2007-09-09  Bruno Haible  <bruno@clisp.org>
51199
51200         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
51201         (gl_FUNC_MALLOC_POSIX): Require it.
51202         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
51203         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
51204         * modules/realloc (Files): Add m4/malloc.m4.
51205         * modules/calloc (Files): Likewise.
51206
51207 2007-09-09  Bruno Haible  <bruno@clisp.org>
51208
51209         * modules/malloc-posix: New file.
51210         * modules/malloc (Depends-on): Add malloc-posix.
51211         * lib/malloc.c: Include errno.h.
51212         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
51213         and a POSIX-compatible malloc into a single function. Set ENOMEM
51214         when returning NULL.
51215         * m4/malloc.m4: New file.
51216         * doc/functions/malloc.texi: Mention the malloc-posix module.
51217         * lib/stdlib_.h (malloc): New declaration.
51218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51219         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
51220         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
51221         and HAVE_MALLOC_POSIX.
51222
51223 2007-09-09  Bruno Haible  <bruno@clisp.org>
51224
51225         * modules/realloc-posix: New file.
51226         * modules/realloc (Depends-on): Add realloc-posix.
51227         * lib/realloc.c: Include errno.h.
51228         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
51229         and a POSIX-compatible realloc into a single function. Set ENOMEM
51230         when returning NULL.
51231         * m4/realloc.m4: New file.
51232         * doc/functions/realloc.texi: Mention the realloc-posix module.
51233         * lib/stdlib_.h (realloc): New declaration.
51234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51235         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
51236         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
51237         and HAVE_REALLOC_POSIX.
51238
51239 2007-09-09  Bruno Haible  <bruno@clisp.org>
51240
51241         * modules/calloc-posix: New file.
51242         * modules/calloc (Depends-on): Add calloc-posix.
51243         * lib/calloc.c: Include errno.h.
51244         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
51245         and a POSIX-compatible calloc into a single function. Set ENOMEM
51246         when returning NULL.
51247         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
51248         * doc/functions/calloc.texi: Mention the calloc-posix module.
51249         * lib/stdlib_.h (calloc): New declaration.
51250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
51251         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
51252         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
51253         and HAVE_CALLOC_POSIX.
51254
51255 2007-09-09  Bruno Haible  <bruno@clisp.org>
51256
51257         Allow for modules to show an arbitrary notice.
51258         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
51259         * gnulib-tool: New option --extract-notice.
51260         (func_usage): Document it.
51261         (sed_extract_prog): Update.
51262         (func_get_notice): New function.
51263         (func_modules_notice): New function.
51264         (func_import, func_create_testdir): Invoke it.
51265         Suggested by Jim Meyering.
51266
51267 2007-09-09  Bruno Haible  <bruno@clisp.org>
51268
51269         * gnulib-tool: New options --verbose, --quiet.
51270         (func_usage): Document them.
51271         (verbose): New variable.
51272         (func_execute_command): New function.
51273         (func_import): Don't show the module list and the file list if
51274         $verbose < 0.
51275         (func_create_testdir): Likewise. Use func_execute_command.
51276         (func_create_megatestdir): Use func_execute_command.
51277
51278 2007-09-08  Bruno Haible  <bruno@clisp.org>
51279
51280         * gnulib-tool (func_import): Prefer rsync over wget when available,
51281         for fetching the PO files.
51282
51283 2007-09-08  Bruno Haible  <bruno@clisp.org>
51284
51285         * posix-modules: New file. Portions copied from gnulib-tool.
51286         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
51287
51288 2007-09-08  Jim Meyering  <jim@meyering.net>
51289
51290         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
51291         * lib/fpending.h: Rename from __fpending.h.
51292         * lib/fpending.c: Rename from __fpending.c.
51293         Include "fpending.h", not "__fpending.h".
51294         * lib/__fpending.h, lib/__fpending.c: Remove files.
51295         * modules/fpending (Files): Reflect new file names.
51296         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
51297
51298 2007-09-08  Bruno Haible  <bruno@clisp.org>
51299
51300         * m4/inttypes-h.m4: Remove stub file.
51301
51302 2007-09-07  Simon Josefsson  <simon@josefsson.org>
51303
51304         * doc/headers/stdint.texi: Discuss #include_next issue.
51305
51306 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51307
51308         * build-aux/bootstrap: Remove obsolete comment about wget --help.
51309
51310 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51311
51312         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
51313         in variable name.
51314
51315 2007-09-03  Jim Meyering  <jim@meyering.net>
51316
51317         New module: git-version-gen.
51318         * modules/git-version-gen: New file.
51319
51320         Import changes from coreutils for bootstrap script.
51321
51322         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
51323
51324         bootstrap: uses rsync to download the .po files
51325         * build-aux/bootstrap (po_download_command_format): New global.
51326         (download_po_files): Use rsync.
51327         (update_po_files): Don't remove .po files after download,
51328         so future rsync runs can take advantage of the copies.
51329
51330         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
51331
51332         Solve the unnecessary-.po-file-regeneration problem once and for all.
51333         * build-aux/bootstrap (download_po_files): New function, renamed from
51334         get_translations.  Now, downloads, but doesn't update LINGUAS.
51335         (update_po_files): New function.
51336
51337         bootstrap: Ignore more.
51338         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
51339         uniwidth to e.g., lib/.gitignore.
51340         (slurp): Handle the sys_stat_.h -> sys mapping, too.
51341
51342         * build-aux/bootstrap: New setting: vc_ignore.
51343         (insert_sorted_if_absent): Create $file if absent.
51344         Adapt to new, possibly empty, list: $vc_ignore.
51345
51346         bootstrap: generate more ignorable names
51347         * build-aux/bootstrap (slurp): When generating ignorable names,
51348         also map .sin to .sed, .gperf to .c, and .y to .c.
51349
51350 2007-09-03  Jim Meyering  <jim@meyering.net>
51351
51352         * build-aux/git-version-gen: New file, from coreutils.  For details, see
51353         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
51354
51355 2007-09-02  Bruno Haible  <bruno@clisp.org>
51356
51357         Fix mis-recognition of 'mcs' on QNX 6.
51358         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
51359         output contains the string "Mono".
51360         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
51361         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
51362
51363 2007-09-01  Bruno Haible  <bruno@clisp.org>
51364
51365         Fix collision between uniwidth/* and linebreak modules.
51366         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
51367         u32_width): Remove declarations.
51368         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
51369         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
51370         streq3, streq2, streq1, streq0): Remove functions.
51371         (STREQ): Remove macro.
51372         (is_cjk_encoding): Remove function.
51373         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
51374         (uc_width, u8_width, u16_width, u32_width): Remove functions.
51375         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
51376         * NEWS: Document the change.
51377
51378 2007-09-01  Bruno Haible  <bruno@clisp.org>
51379
51380         * lib/streq.h: Add double-inclusion guard.
51381
51382 2007-09-01  Karl Berry  <karl@gnu.org>
51383
51384         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
51385
51386 2007-08-28  Jim Meyering  <jim@meyering.net>
51387
51388         Rename mreadlink_with_size to areadlink_with_size.
51389         * NEWS: Document the change.
51390         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
51391         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
51392         * lib/mreadlink.h: Rename this to...
51393         * lib/areadlink.h: ...this.
51394         * modules/mreadlink-with-size: Rename this to...
51395         * modules/areadlink-with-size: ...this.
51396         * lib/canonicalize.c: Reflect the renaming.
51397         * modules/canonicalize: Likewise.
51398
51399 2007-08-26  Bruno Haible  <bruno@clisp.org>
51400
51401         * gnulib-tool (func_import): When deciding which files to remove,
51402         consider also dangling symbolic links.
51403         Reported by Eric Blake.
51404
51405 2007-08-26  Bruno Haible  <bruno@clisp.org>
51406
51407         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
51408
51409 2007-08-23  Simon Josefsson  <simon@josefsson.org>
51410
51411         * lib/readline.c: Don't include getline.h, the prototype is now
51412         found in stdio.h.
51413
51414 2007-08-23  Jim Meyering  <jim@meyering.net>
51415
51416         Getdelim touchup.
51417         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
51418         around the funlockfile call, since funlockfile never sets errno.
51419         Don't set errno upon failed realloc.
51420
51421 2007-08-22  Eric Blake  <ebb9@byu.net>
51422
51423         Getline touchups.
51424         * lib/getdelim.c (getdelim): Revert regression that required *n to
51425         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
51426         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
51427         getdelim, rather than whether implementation is missing.
51428         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
51429         * lib/stdio_.h (getline): Also declare if replacement is
51430         required.
51431         * doc/functions/getdelim.texi: New file.
51432         * doc/functions/getline.texi: Likewise.
51433         * doc/gnulib.texi (Function Substitutes): Add new files.
51434         Reported by Bruno Haible.
51435
51436 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
51437
51438         * users.txt: Add Guile.
51439
51440 2007-08-22  Eric Blake  <ebb9@byu.net>
51441
51442         * tests/test-getdelim.c (main): Use remove, not unlink.
51443         * tests/test-getline.c (main): Likewise.
51444
51445         Move getline and getdelim into stdio.h, per POSIX 200x.
51446         * modules/getline (Files): Remove getline.h.
51447         (Depends-on): Add stdio.
51448         (configure.ac): Add module indicator.
51449         * modules/getdelim (Files): Remove getdelim.h.
51450         (Depends-on): Add stdio.
51451         (configure.ac): Add module indicator.
51452         * modules/stdio (Makefile.am): Work with new indicators.
51453         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
51454         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
51455         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
51456         * lib/getdelim.h: Delete.
51457         * lib/getline.h: Delete.
51458         * lib/stdio_.h (getdelim, getline): Declare.
51459         * modules/getdelim-tests: New module.
51460         * modules/getline-tests: Likewise.
51461         * tests/test-getdelim.c: New file.
51462         * tests/test-getline.c: Likewise.
51463         * NEWS: Document the change.
51464         * lib/getline.c: Update choice of header.
51465         * lib/csharpcomp.c: Likewise.
51466         * lib/getpass.c: Likewise.
51467         * lib/javacomp.c: Likewise.
51468         * lib/javaversion.c: Likewise.
51469         * lib/yesno.c: Likewise.
51470         * lib/getdelim.c: Likewise.
51471         (getdelim): Set errno on failure, and avoid memory leak.
51472
51473 2007-08-19  Bruno Haible  <bruno@clisp.org>
51474
51475         * modules/closein (Depends-on): Add freadahead.
51476         * lib/closein.c: Include freadahead.h.
51477         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
51478         is zero.
51479
51480 2007-08-19  Bruno Haible  <bruno@clisp.org>
51481
51482         * modules/freadahead-tests: New file.
51483         * tests/test-freadahead.sh: New file.
51484         * tests/test-freadahead.c: New file.
51485
51486         * modules/freadahead: New file.
51487         * lib/freadahead.h: New file.
51488         * lib/freadahead.c: New file.
51489         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
51490         fbufmode, fpurge, freadable, fwritable.
51491
51492 2007-08-19  Eric Blake  <ebb9@byu.net>
51493
51494         Test yesno in combination with closein.
51495         * lib/yesno.c (yesno): Document use of stdin.
51496         * modules/yesno-tests (Files): New module.
51497         * tests/test-yesno.c (main): New file.
51498         * tests/test-yesno.sh: Likewise.
51499
51500 2007-08-19  Bruno Haible  <bruno@clisp.org>
51501
51502         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
51503         * lib/fseeko.c (rpl_fseeko): Likewise.
51504         * lib/fseterr.c (fseterr): Likewise.
51505
51506 2007-08-19  Bruno Haible  <bruno@clisp.org>
51507
51508         * tests/test-lseek.c (main): Disable a test for BeOS.
51509         * doc/functions/lseek.texi: Document the BeOS bug.
51510
51511 2007-08-19  Bruno Haible  <bruno@clisp.org>
51512             Eric Blake  <ebb9@byu.net>
51513
51514         * lib/lseek.c: Include <sys/stat.h>.
51515         (rpl_lseek): Add workaround code also for Unix platforms.
51516         Needed for BeOS.
51517         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
51518         * doc/functions/lseek.texi: Document BeOS definiency.
51519
51520 2007-08-18  Bruno Haible  <bruno@clisp.org>
51521
51522         * modules/fstrcmp-tests: New file.
51523         * tests/test-fstrcmp.c: New file.
51524
51525 2007-08-18  Bruno Haible  <bruno@clisp.org>
51526
51527         * modules/fstrcmp: New file, from GNU gettext with modifications.
51528         * lib/fstrcmp.h: New file, from GNU gettext.
51529         * lib/fstrcmp.c: New file, from GNU gettext.
51530         * MODULES.html.sh (String handling): Add fstrcmp.
51531
51532 2007-08-18  Bruno Haible  <bruno@clisp.org>
51533
51534         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
51535         'bool'.
51536         (diag, compareseq): Remove const from the ctxt argument.
51537         (USE_HEURISTIC): Undefine at the end.
51538
51539 2007-08-18  Jim Meyering  <jim@meyering.net>
51540
51541         New file: lib/idcache.h
51542         * NEWS: Mention the addition.
51543         * modules/idcache (Files): Add lib/idcache.h
51544         * lib/idcache.c: Include "idcache.h".
51545         Don't include <sys/types.h>.
51546         Add a FIXME comment.
51547         Move file-scoped "static" declarations to the top.
51548         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
51549
51550 2007-08-17  Bruno Haible  <bruno@clisp.org>
51551         and Paul Eggert  <eggert@cs.ucla.edu>
51552
51553         * MODULES.html.sh: Add diffseq.
51554         * modules/diffseq: New file.
51555         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
51556         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
51557
51558 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51559
51560         Import changes from coreutils for bootstrap script.
51561
51562         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
51563
51564         * build-aux/bootstrap (slurp): Work even in environments where
51565         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
51566         current code does not slurp files whose names start with ".", and
51567         this looks like it might be a troublesome area.
51568
51569         2007-07-11  Jim Meyering  <jim@meyering.net>
51570
51571         If there's a GPL vN copyright comment, require that N == 3.
51572
51573         2007-07-08  Jim Meyering  <jim@meyering.net>
51574
51575         Run the coreutils-specific code only if tests/Makefile.am.in exists.
51576         * build-aux/bootstrap (mam_template): Move definition out of loop.
51577
51578         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
51579
51580         * build-aux/bootstrap (symlink_to_dir): Rename function from
51581         symlink_to_gnulib.  Add a directory parameter.  Update all
51582         callers.
51583         (cp_mark_as_generated): Also check for -- and link to -- files in
51584         gl/.
51585
51586         2007-07-08  Jim Meyering  <jim@meyering.net>
51587
51588         Adapt to deeper hierarchy in gnulib.
51589         * build-aux/bootstrap (symlink_to_dir): If the destination
51590         directory doesn't exist, create it. This is required at least for
51591         "lib/uniwidth/cjk.h".
51592
51593         2007-05-15  Jim Meyering  <jim@meyering.net>
51594
51595         * build-aux/bootstrap: Now that generated Makefile.am files
51596         are no longer under version control, they must be created at
51597         bootstrap time.
51598
51599 2007-08-14  Ben Pfaff  <blp@gnu.org>
51600
51601         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
51602
51603 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51604
51605         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
51606         given the changes below.
51607         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
51608         even on hosts that have padding bits beyond the supported 64.
51609
51610 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51611
51612         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
51613         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
51614         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
51615         depends on it.
51616         (xstrtol_error): Remove.
51617         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
51618         but with a different signature.
51619         (ATTRIBUTE_NORETURN, __attribute__): New macros.
51620         * lib/xstrtol-error.c: Include exitfail.h.
51621         (xstrtol_fatal): New function, with a different signature from the
51622         old xstrtol_error, so that the caller need not worry about passing
51623         in an exit status, or about storage management of the option argument.
51624         (xstrtol_error): Now a static function.  Redo signature to
51625         implement xstrtol_fatal.  Output the correct number of hyphens in
51626         front of the option so that the caller need not worry about
51627         storage management.
51628         (N_): New macro.
51629         (_): Remove; not used now.
51630         * modules/xstrtol: Depend on getopt.
51631         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
51632         of old STRTOL_FATAL_ERROR macro.
51633         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
51634         of test program.
51635         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
51636         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
51637
51638 2007-08-08  Eric Blake  <ebb9@byu.net>
51639
51640         * lib/xstrtol-error.c: Add missing include.
51641
51642         Move xstrtol messages into gnulib domain, when --pobase is used.
51643         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
51644         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
51645         * modules/xstrtol (Files): Distribute new file.
51646         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
51647         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
51648         * tests/test-xstrtol.c: ...into new file.
51649         * tests/test-xstrtoul.c: Also test xstrtoul.
51650         * tests/test-xstrtoimax.c: Also test xstrtoimax.
51651         * tests/test-xstrtoumax.c: Also test xstrtoumax.
51652         * tests/test-xstrtol.sh: Drive the tests.
51653         * tests/test-xstrtoimax.sh: Likewise.
51654         * tests/test-xstrtoumax.sh: Likewise.
51655         * modules/xstrtol-tests: New module.
51656         * modules/xstrtoimax-tests: Likewise.
51657         * modules/xstrtoumax-tests: Likewise.
51658
51659 2007-08-08  Jim Meyering  <jim@meyering.net>
51660
51661         New function: mfile_name_concat.
51662         * lib/filenamecat.c (mfile_name_concat): New function, just like
51663         file_name_concat, but return NULL upon failure rather than exiting
51664         with a diagnostic.
51665         * lib/filenamecat.h: Declare it.
51666
51667 2007-08-07  Bruno Haible  <bruno@clisp.org>
51668
51669         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
51670         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
51671         warning from gcc.
51672         Reported by Eric Blake.
51673
51674 2007-08-07  Simon Josefsson  <simon@josefsson.org>
51675
51676         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
51677         * modules/crypto/arcfour (License): Likewise.
51678         * modules/crypto/des-tests (License): Likewise.
51679         * modules/crypto/gc-arctwo-tests (License): Likewise.
51680         * modules/crypto/gc-des-tests (License): Likewise.
51681         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
51682         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
51683         * modules/crypto/gc-md2-tests (License): Likewise.
51684         * modules/crypto/gc-md4-tests (License): Likewise.
51685         * modules/crypto/gc-md5-tests (License): Likewise.
51686         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
51687         * modules/crypto/gc-rijndael-tests (License): Likewise.
51688         * modules/crypto/gc-sha1-tests (License): Likewise.
51689         * modules/crypto/gc-tests (License): Likewise.
51690         * modules/crypto/hmac-md5 (License): Likewise.
51691         * modules/crypto/hmac-sha1 (License): Likewise.
51692         * modules/crypto/md2-tests (License): Likewise.
51693         * modules/crypto/md4-tests (License): Likewise.
51694         * modules/crypto/md5 (License): Likewise.
51695         * modules/crypto/rijndael (License): Likewise.
51696         * modules/crypto/sha1 (License): Likewise.
51697         * modules/memxor (License): Likewise.
51698
51699 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51700         and Bruno Haible  <bruno@clisp.org>
51701
51702         * NEWS: Describe interface changes to human, xstrtol.
51703         * lib/human.h: Include <xstrtol.h>.
51704         (human_options): Return enum strtol_error, not int.  Remove
51705         bool arg; take int * instead.
51706         * lib/human.c: Don't include "gettext.h".
51707         (_): Remove; no longer used.
51708         Don't include <xstrtol.h>, since human.h does it.
51709         (human_options): Adjust to abovementioned interface changes.
51710         Do not report error to stderr; that's now the caller's
51711         responsibility.
51712         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
51713         interface change.
51714         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
51715         Str, Argument_type_string.  All uses changed.  Put " argument"
51716         in diagnostics to make them clearer.  Change wording of suffix
51717         message for clarity.
51718         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
51719         Argument_type_string.
51720         (STRTOL_FATAL_WARN): Remove; no longer used.
51721         * modules/human (Depends-on): Remove gettext-h.
51722
51723 2007-08-06  Simon Josefsson  <simon@josefsson.org>
51724
51725         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
51726
51727 2007-07-31  Bruno Haible  <bruno@clisp.org>
51728
51729         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
51730         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
51731         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
51732
51733 2007-07-31  Bruno Haible  <bruno@clisp.org>
51734
51735         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
51736         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
51737
51738 2007-07-30  Bruno Haible  <bruno@clisp.org>
51739
51740         * modules/base64 (License): Use the synonymous term "LGPLv2+".
51741         * modules/c-ctype (License): Likewise.
51742         * modules/c-strcase (License): Likewise.
51743         * modules/check-version (License): Likewise.
51744         * modules/iconv (License): Likewise.
51745         * modules/iconv_open (License): Likewise.
51746         * modules/read-file (License): Likewise.
51747         * modules/striconv (License): Likewise.
51748         * modules/strverscmp (License): Likewise.
51749         * modules/vasprintf (License): Likewise.
51750         * modules/crypto/des (License): Likewise.
51751         * modules/crypto/gc (License): Likewise.
51752         * modules/crypto/gc-arcfour (License): Likewise.
51753         * modules/crypto/gc-arctwo (License): Likewise.
51754         * modules/crypto/gc-des (License): Likewise.
51755         * modules/crypto/gc-hmac-md5 (License): Likewise.
51756         * modules/crypto/gc-hmac-sha1 (License): Likewise.
51757         * modules/crypto/gc-md2 (License): Likewise.
51758         * modules/crypto/gc-md4 (License): Likewise.
51759         * modules/crypto/gc-md5 (License): Likewise.
51760         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
51761         * modules/crypto/gc-random (License): Likewise.
51762         * modules/crypto/gc-rijndael (License): Likewise.
51763         * modules/crypto/gc-sha1 (License): Likewise.
51764         * modules/crypto/md2 (License): Likewise.
51765         * modules/crypto/md4 (License): Likewise.
51766
51767 2007-07-30  Jim Meyering  <jim@meyering.net>
51768
51769         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
51770         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
51771         it has valid stat data.  This bug would cause du not to count the
51772         sizes of inaccessible directories.
51773         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
51774         in <http://bugzilla.redhat.com/250077>.
51775
51776 2007-07-25  Peter O'Gorman  <peter@pogma.com>
51777             Bruno Haible  <bruno@clisp.org>
51778
51779         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
51780         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
51781         #include_next, gives a diagnostic about it, but reports no error in
51782         the exit code.
51783         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51784
51785 2007-07-24  Ben Pfaff  <blp@gnu.org>
51786
51787         Improve name: "count-one-bits" is better than "popcount".
51788         * MODULES.html.sh: Update name.
51789         * lib/popcount.h: Renamed lib/count-one-bits.h.
51790         (popcount): Renamed count_one_bits.
51791         (popcountl): Renamed count_one_bits_l.
51792         (popcountll): Renamed count_one_bits_ll.
51793         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
51794         * modules/popcount: Renamed module/count-one-bits.
51795         * modules/popcount-tests: Renamed module/count-one-bits-tests.
51796         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
51797
51798 2007-07-23  Ben Pfaff  <blp@gnu.org>
51799
51800         * lib/popcount.h (popcount32): Reduce size of constants, to allow
51801         better code generation, and add U to large constants to avoid
51802         warnings, in non-GCC case.
51803         Suggested by Bruno Haible.
51804
51805 2007-07-23  Ben Pfaff  <blp@gnu.org>
51806
51807         * lib/popcount.h: Use verify_true instead of if...abort.
51808         * modules/popcount: Depend on verify module.
51809         Suggested by Jim Meyering.
51810
51811 2007-07-23  Bruno Haible  <bruno@clisp.org>
51812
51813         * gnulib-tool (func_import): Create a .cvsignore file also when the
51814         directory is not yet in CVS but the toplevel directory is. When
51815         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
51816         Reported by Karl Berry.
51817
51818 2007-07-22  Ben Pfaff  <blp@gnu.org>
51819
51820         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
51821         case.
51822         Suggested by Eric Blake.
51823
51824 2007-07-22  Ben Pfaff  <blp@gnu.org>
51825
51826         New module: popcount.
51827         * MODULES.html.sh: Add popcount.
51828         * modules/popcount: New file.
51829         * modules/popcount-tests: New file.
51830         * tests/test-popcount.c: New file.
51831         * lib/popcount.h: New file.
51832         * m4/popcount.m4: New file.
51833
51834 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51835
51836         * build-aux/announce-gen: Update to GPLv3.
51837
51838         * build-aux/config.guess: Update from config.
51839
51840 2007-07-21  Bruno Haible  <bruno@clisp.org>
51841
51842         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
51843         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
51844
51845 2007-07-20  Jim Meyering  <jim@meyering.net>
51846
51847         * check-module: Diagnose a self-dependency.
51848
51849 2007-07-19  Bruno Haible  <bruno@clisp.org>
51850
51851         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
51852         empty.
51853         Reported by Eric Blake.
51854
51855 2007-07-18  Bruno Haible  <bruno@clisp.org>
51856
51857         * gnulib-tool: New options --po-base, --po-domain.
51858         (func_usage): Document them.
51859         (pobase, po_domain): New variables.
51860         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
51861         DEFAULT_TEXT_DOMAIN.
51862         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
51863         (func_import): Consider pobase and po_domain. Create a po/ directory.
51864         (func_create_testdir): Set pobase and po_domain to empty.
51865         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
51866         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
51867
51868 2007-07-18  Bruno Haible  <bruno@clisp.org>
51869
51870         * gnulib-tool (func_get_automake_snippet): Synthesize also an
51871         EXTRA_DIST augmentation for files in build-aux/.
51872
51873 2007-07-16  Bruno Haible  <bruno@clisp.org>
51874
51875         * modules/lseek (License): Use the synonymous term "LGPLv2+".
51876         * modules/getdelim (License): Likewise.
51877
51878 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51879
51880         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
51881         * modules/d-type (License): Likewise.
51882         * modules/extensions (License): Likewise.
51883         * modules/fnmatch (License): Likewise.
51884         * modules/fseeko (License): Likewise.
51885         * modules/getaddrinfo (License): Likewise.
51886         * modules/getline (License): Likewise.
51887         * modules/getlogin_r (License): Likewise.
51888         * modules/getpass (License): Likewise.
51889         * modules/gettimeofday (License): Likewise.
51890         * modules/glob (License): Likewise.
51891         * modules/inet_ntop (License): Likewise.
51892         * modules/malloc (License): Likewise.
51893         * modules/malloca (License): Likewise.
51894         * modules/memmem (License): Likewise.
51895         * modules/mempcpy (License): Likewise.
51896         * modules/memset (License): Likewise.
51897         * modules/minmax (License): Likewise.
51898         * modules/mktime (License): Likewise.
51899         * modules/netinet_in (License): Likewise.
51900         * modules/pathmax (License): Likewise.
51901         * modules/poll (License): Likewise.
51902         * modules/regex (License): Likewise.
51903         * modules/snprintf (License): Likewise.
51904         * modules/stdbool (License): Likewise.
51905         * modules/stdint (License): Likewise.
51906         * modules/stdio (License): Likewise.
51907         * modules/strcase (License): Likewise.
51908         * modules/strcasestr (License): Likewise.
51909         * modules/strdup (License): Likewise.
51910         * modules/string (License): Likewise.
51911         * modules/strndup (License): Likewise.
51912         * modules/strnlen (License): Likewise.
51913         * modules/strpbrk (License): Likewise.
51914         * modules/strptime (License): Likewise.
51915         * modules/strsep (License): Likewise.
51916         * modules/sys_select (License): Likewise.
51917         * modules/sys_socket (License): Likewise.
51918         * modules/sys_stat (License): Likewise.
51919         * modules/sys_time (License): Likewise.
51920         * modules/time (License): Likewise.
51921         * modules/time_r (License): Likewise.
51922         * modules/timegm (License): Likewise.
51923         * modules/unistd (License): Likewise.
51924         * modules/vsnprintf (License): Likewise.
51925         * modules/wctype (License): Likewise.
51926
51927 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51928
51929         * modules/argz (License): LGPLv2+.
51930
51931 2007-07-15  Karl Berry  <karl@gnu.org>
51932
51933         * doc/gnulib.texi: revise node structure per new fdl.texi.
51934
51935 2007-07-14  Bruno Haible  <bruno@clisp.org>
51936
51937         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
51938         the output file.
51939         * lib/uniname/uninames.h: Regenerated.
51940
51941 2007-07-14  Karl Berry  <karl@gnu.org>
51942
51943         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
51944         omitting sectioning and index commands.
51945
51946 2007-07-13  Bruno Haible  <bruno@clisp.org>
51947
51948         New gnulib-tool option --more-symlinks.
51949         * gnulib-tool (func_usage): Document --more-symlinks.
51950         (do_copyrights): New variable.
51951         Recognize option --more-symlinks.
51952         (func_import): Don't add a copyright notice transform to
51953         sed_transform_lib_file if do_copyrights is empty.
51954
51955 2007-07-13  Bruno Haible  <bruno@clisp.org>
51956
51957         * lib/vasnprintf.c (decimal_point_char): Define also if
51958         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
51959         && !NEED_PRINTF_DIRECTIVE_A.
51960         Reported by Clemens Koller <clemens.koller@anagramm.de> via
51961         Gary V. Vaughan <gary@gnu.org>.
51962
51963 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
51964
51965         * lib/inttypes_.h: Undo previous change, since it was fixed
51966         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
51967
51968 2007-07-13  Bruno Haible  <bruno@clisp.org>
51969
51970         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
51971         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
51972
51973 2007-07-13  Jim Meyering  <jim@meyering.net>
51974
51975         df: Don't fail for Tru64's "file-on-file mount".
51976         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
51977         so we fall through and use statfs instead.  Details here:
51978         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
51979         Reported by Albert Chin.
51980
51981 2007-07-13  Bruno Haible  <bruno@clisp.org>
51982
51983         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
51984         * modules/configmake (License): Likewise.
51985         * modules/gettext (License): Likewise.
51986         * modules/gettext-h (License): Likewise.
51987         * modules/include_next (License): Likewise.
51988         * modules/link-warning (License): Likewise.
51989         * modules/localcharset (License): Likewise.
51990         * modules/localename (License): Likewise.
51991         * modules/lock (License): Likewise.
51992         * modules/relocatable-lib-lgpl (License): Likewise.
51993         * modules/size_max (License): Likewise.
51994         * modules/vasnprintf (License): Likewise.
51995         * modules/wchar (License): Likewise.
51996         * modules/xsize (License): Likewise.
51997
51998 2007-07-13  Bruno Haible  <bruno@clisp.org>
51999
52000         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
52001         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
52002
52003 2007-07-12  Bruno Haible  <bruno@clisp.org>
52004
52005         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
52006         in the modules files.
52007
52008 2007-07-11  Karl Berry  <karl@gnu.org>
52009
52010         * MODULES.html.sh (func_module): use
52011          sed -e '\|^'"${includefile}"'$|d'
52012          instead of /.../d, to avoid errors on $includefile's containing /.
52013
52014 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52015
52016         * gnulib-tool (func_import): Avoid duplication of --avoid
52017         statements
52018         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
52019         names to `_' in variable names.
52020
52021 2007-07-10  Eric Blake  <ebb9@byu.net>
52022
52023         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
52024         * NEWS: Document this change.
52025
52026 2007-07-08  Bruno Haible  <bruno@clisp.org>
52027
52028         Update to Unicode 5.0.
52029         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
52030         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
52031         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
52032         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
52033         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
52034         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
52035         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
52036         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
52037         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
52038         U+10A3F, U+1D242..U+1D244.
52039         (nonspacing_table_ind): Update.
52040         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
52041         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
52042
52043 2007-07-08  Bruno Haible  <bruno@clisp.org>
52044
52045         Update to Unicode 5.0.
52046         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
52047         code transform. Extend the name index field of unicode_name_to_code and
52048         unicode_code_to_name from 16 to 24 bits.
52049         * lib/uniname/uniname.c (unicode_character_name,
52050         unicode_name_character): Add the range 0x12xxx to the code transform.
52051         * lib/uniname/uninames.h: Regenerated.
52052         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
52053
52054 2007-07-07  Bruno Haible  <bruno@clisp.org>
52055
52056         * modules/wcwidth-tests: New file.
52057         * tests/test-wcwidth.c: New file.
52058
52059         Work around MacOS X wcwidth() bug.
52060         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
52061         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
52062         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
52063         original wcwidth in non-UTF-8 locales.
52064         * modules/wcwidth (Depends-on): Add localcharset, streq,
52065         uniwidth/width.
52066         * doc/functions/wcwidth.texi: Update.
52067
52068 2007-07-07  Bruno Haible  <bruno@clisp.org>
52069
52070         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
52071         (wcwidth): New declaration.
52072         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
52073         macros.
52074         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
52075         here. Prepare for creating <wchar.h> unconditionally.
52076         * modules/wchar (Depends-on): Add link-warning.
52077         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
52078         REPLACE_WCWIDTH, and GL_LINK_WARNING.
52079         * lib/wcwidth.h: Remove file.
52080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
52081         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
52082         * modules/wcwidth (Files): Remove lib/wcwidth.h.
52083         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
52084         (Include): Replace wcwidth.h with <wchar.h>.
52085         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
52086         * lib/mbchar.h: Don't include wcwidth.h.
52087         * lib/mbswidth.c: Likewise.
52088         * NEWS: Mention the change.
52089
52090 2007-07-07  Bruno Haible  <bruno@clisp.org>
52091
52092         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
52093         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
52094         definition with an external declaration.
52095         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
52096         defined as a function. Remove AC_C_INLINE requirement.
52097         * modules/wcwidth (Files): Add lib/wcwidth.c.
52098         (Makefile.am): Remove redundant statement.
52099
52100 2007-07-07  Bruno Haible  <bruno@clisp.org>
52101
52102         * MODULES.html.sh (Unicode string functions): Add the new modules.
52103
52104         * tests/uniwidth/test-u32-strwidth.c: New file.
52105         * modules/uniwidth/u32-strwidth-tests: New file.
52106
52107         * lib/uniwidth/u32-strwidth.c: New file.
52108         * modules/uniwidth/u32-strwidth: New file.
52109
52110         * tests/uniwidth/test-u16-strwidth.c: New file.
52111         * modules/uniwidth/u16-strwidth-tests: New file.
52112
52113         * lib/uniwidth/u16-strwidth.c: New file.
52114         * modules/uniwidth/u16-strwidth: New file.
52115
52116         * tests/uniwidth/test-u8-strwidth.c: New file.
52117         * modules/uniwidth/u8-strwidth-tests: New file.
52118
52119         * lib/uniwidth/u8-strwidth.c: New file.
52120         * modules/uniwidth/u8-strwidth: New file.
52121
52122         * tests/uniwidth/test-u32-width.c: New file.
52123         * modules/uniwidth/u32-width-tests: New file.
52124
52125         * lib/uniwidth/u32-width.c: New file.
52126         * modules/uniwidth/u32-width: New file.
52127
52128         * tests/uniwidth/test-u16-width.c: New file.
52129         * modules/uniwidth/u16-width-tests: New file.
52130
52131         * lib/uniwidth/u16-width.c: New file.
52132         * modules/uniwidth/u16-width: New file.
52133
52134         * tests/uniwidth/test-u8-width.c: New file.
52135         * modules/uniwidth/u8-width-tests: New file.
52136
52137         * lib/uniwidth/u8-width.c: New file.
52138         * modules/uniwidth/u8-width: New file.
52139
52140         * tests/uniwidth/test-uc_width.c: New file.
52141         * modules/uniwidth/width-tests: New file.
52142
52143         * lib/uniwidth/width.c: New file, from GNU libiconv.
52144         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
52145         * modules/uniwidth/width: New file.
52146
52147         * lib/uniwidth.h: New file, from GNU libiconv.
52148         * modules/uniwidth/base: New file.
52149
52150 2007-07-07  Bruno Haible  <bruno@clisp.org>
52151
52152         * lib/uniname.h: New file, from GNU gettext.
52153         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
52154         * lib/uniname/uninames.h: New file, from GNU gettext.
52155         * lib/uniname/uniname.c: New file, from GNU gettext.
52156         * tests/uniname/test-uninames.sh: New file.
52157         * tests/uniname/test-uninames.c: New file, from GNU gettext.
52158         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
52159         * modules/uniname/base: New file.
52160         * modules/uniname/uniname: New file.
52161         * modules/uniname/uniname-tests: New file.
52162         * MODULES.html.sh (Unicode string functions): Add the new modules.
52163
52164 2007-07-06  Bruno Haible  <bruno@clisp.org>
52165
52166         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
52167
52168 2007-07-06  Bruno Haible  <bruno@clisp.org>
52169
52170         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
52171         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
52172         includes <cygwin/sys_time.h> which includes <sys/select.h> which
52173         include <sys/time.h>.
52174         Reported by Eric Blake.
52175
52176 2007-07-06  Eric Blake  <ebb9@byu.net>
52177
52178         Fix testing canonicalize on cygwin.
52179         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52180         Revert patch from 2007-06-19.
52181         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
52182         canonicalize module is also in use.
52183         * tests/test-canonicalize.c: New file.
52184         * tests/test-canonicalize.sh: Likewise.
52185         * modules/canonicalize-tests: Likewise.
52186
52187 2007-07-06  Jim Meyering  <jim@meyering.net>
52188
52189         * lib/getugroups.c (getugroups): Detect getgrent failure.
52190         Adjust comment to reflect reality: this function may return -1.
52191
52192 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
52193
52194         * build-aux/bootstrap (TP_URL,get_translations): Update to use
52195         the new TP address.
52196         (usage): Fix typo
52197         (gnulib_mk): New variable.
52198
52199 2007-07-05  Jim Meyering  <jim@meyering.net>
52200
52201         Don't let endgrent clobber errno, no matter how improbable.
52202         * lib/getugroups.c (getugroups): Save and restore errno around
52203         endgrent call.
52204
52205         Close the group DB even when failing with 2^31 or more members.
52206         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
52207
52208 2007-07-04  Jim Meyering  <jim@meyering.net>
52209
52210         * lib/getugroups.h: New file.
52211         * lib/getugroups.c: Include "getugroups.h".
52212         Remove uses of "register" keyword.
52213         Move local variable, "cp", down into scope where used.
52214         Give "username" parameter the "const" attribute.
52215         * modules/getugroups (Files): Add lib/getugroups.h
52216
52217 2007-07-04  Karl Berry  <karl@gnu.org>
52218
52219         * MODULES.html.sh (func_all_modules): Complete rename of
52220         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
52221
52222 2007-07-02  Bruno Haible  <bruno@clisp.org>
52223
52224         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
52225         mode, when inttypes.h comes from gnulib.
52226         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52227
52228 2007-07-02  Simon Josefsson  <simon@josefsson.org>
52229
52230         * NEWS: Mention lgpl module name change.
52231
52232         * modules/lgpl-2.1: Renamed from lgpl.
52233
52234         * NEWS: Mention gpl module name change.
52235
52236         * modules/gpl-3.0: New file, based on gpl-2.0.
52237
52238         * modules/gpl-2.0: Renamed from gpl.
52239
52240         * modules/gpl: Fix filename, doc/gpl.texi is now found at
52241         doc/gpl-2.0.texi.
52242
52243 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52244
52245         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
52246         #define __STDC_LIMIT_MACROS temporarily while including
52247         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
52248         Problem reported by Joel E. Denny in
52249         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
52250
52251 2007-07-01  Bruno Haible  <bruno@clisp.org>
52252
52253         * lib/unistdio.h: New file.
52254         * lib/unistdio/u-asnprintf.h: New file.
52255         * lib/unistdio/u-asprintf.h: New file.
52256         * lib/unistdio/u-printf-args.c: New file.
52257         * lib/unistdio/u-printf-args.h: New file.
52258         * lib/unistdio/u-printf-parse.h: New file.
52259         * lib/unistdio/u-snprintf.h: New file.
52260         * lib/unistdio/u-sprintf.h: New file.
52261         * lib/unistdio/u-vasprintf.h: New file.
52262         * lib/unistdio/u-vsnprintf.h: New file.
52263         * lib/unistdio/u-vsprintf.h: New file.
52264         * lib/unistdio/ulc-asnprintf.c: New file.
52265         * lib/unistdio/ulc-asprintf.c: New file.
52266         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
52267         * lib/unistdio/ulc-printf-parse.c: New file.
52268         * lib/unistdio/ulc-snprintf.c: New file.
52269         * lib/unistdio/ulc-sprintf.c: New file.
52270         * lib/unistdio/ulc-vasnprintf.c: New file.
52271         * lib/unistdio/ulc-vasprintf.c: New file.
52272         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
52273         * lib/unistdio/ulc-vsnprintf.c: New file.
52274         * lib/unistdio/ulc-vsprintf.c: New file.
52275         * lib/unistdio/u8-asnprintf.c: New file.
52276         * lib/unistdio/u8-asprintf.c: New file.
52277         * lib/unistdio/u8-printf-parse.c: New file.
52278         * lib/unistdio/u8-snprintf.c: New file.
52279         * lib/unistdio/u8-sprintf.c: New file.
52280         * lib/unistdio/u8-vasnprintf.c: New file.
52281         * lib/unistdio/u8-vasprintf.c: New file.
52282         * lib/unistdio/u8-vsnprintf.c: New file.
52283         * lib/unistdio/u8-vsprintf.c: New file.
52284         * lib/unistdio/u8-u8-asnprintf.c: New file.
52285         * lib/unistdio/u8-u8-asprintf.c: New file.
52286         * lib/unistdio/u8-u8-snprintf.c: New file.
52287         * lib/unistdio/u8-u8-sprintf.c: New file.
52288         * lib/unistdio/u8-u8-vasnprintf.c: New file.
52289         * lib/unistdio/u8-u8-vasprintf.c: New file.
52290         * lib/unistdio/u8-u8-vsnprintf.c: New file.
52291         * lib/unistdio/u8-u8-vsprintf.c: New file.
52292         * lib/unistdio/u16-asnprintf.c: New file.
52293         * lib/unistdio/u16-asprintf.c: New file.
52294         * lib/unistdio/u16-printf-parse.c: New file.
52295         * lib/unistdio/u16-snprintf.c: New file.
52296         * lib/unistdio/u16-sprintf.c: New file.
52297         * lib/unistdio/u16-vasnprintf.c: New file.
52298         * lib/unistdio/u16-vasprintf.c: New file.
52299         * lib/unistdio/u16-vsnprintf.c: New file.
52300         * lib/unistdio/u16-vsprintf.c: New file.
52301         * lib/unistdio/u16-u16-asnprintf.c: New file.
52302         * lib/unistdio/u16-u16-asprintf.c: New file.
52303         * lib/unistdio/u16-u16-snprintf.c: New file.
52304         * lib/unistdio/u16-u16-sprintf.c: New file.
52305         * lib/unistdio/u16-u16-vasnprintf.c: New file.
52306         * lib/unistdio/u16-u16-vasprintf.c: New file.
52307         * lib/unistdio/u16-u16-vsnprintf.c: New file.
52308         * lib/unistdio/u16-u16-vsprintf.c: New file.
52309         * lib/unistdio/u32-asnprintf.c: New file.
52310         * lib/unistdio/u32-asprintf.c: New file.
52311         * lib/unistdio/u32-printf-parse.c: New file.
52312         * lib/unistdio/u32-snprintf.c: New file.
52313         * lib/unistdio/u32-sprintf.c: New file.
52314         * lib/unistdio/u32-vasnprintf.c: New file.
52315         * lib/unistdio/u32-vasprintf.c: New file.
52316         * lib/unistdio/u32-vsnprintf.c: New file.
52317         * lib/unistdio/u32-vsprintf.c: New file.
52318         * lib/unistdio/u32-u32-asnprintf.c: New file.
52319         * lib/unistdio/u32-u32-asprintf.c: New file.
52320         * lib/unistdio/u32-u32-snprintf.c: New file.
52321         * lib/unistdio/u32-u32-sprintf.c: New file.
52322         * lib/unistdio/u32-u32-vasnprintf.c: New file.
52323         * lib/unistdio/u32-u32-vasprintf.c: New file.
52324         * lib/unistdio/u32-u32-vsnprintf.c: New file.
52325         * lib/unistdio/u32-u32-vsprintf.c: New file.
52326         * tests/unistdio/test-ulc-asnprintf1.c: New file.
52327         * tests/unistdio/test-ulc-asnprintf1.h: New file.
52328         * tests/unistdio/test-ulc-printf1.h: New file.
52329         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
52330         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
52331         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
52332         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
52333         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
52334         * tests/unistdio/test-ulc-vasprintf1.c: New file.
52335         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
52336         * tests/unistdio/test-ulc-vsprintf1.c: New file.
52337         * tests/unistdio/test-u8-asnprintf1.c: New file.
52338         * tests/unistdio/test-u8-asnprintf1.h: New file.
52339         * tests/unistdio/test-u8-printf1.h: New file.
52340         * tests/unistdio/test-u8-vasnprintf1.c: New file.
52341         * tests/unistdio/test-u8-vasnprintf2.c: New file.
52342         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
52343         * tests/unistdio/test-u8-vasnprintf3.c: New file.
52344         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
52345         * tests/unistdio/test-u8-vasprintf1.c: New file.
52346         * tests/unistdio/test-u8-vsnprintf1.c: New file.
52347         * tests/unistdio/test-u8-vsprintf1.c: New file.
52348         * tests/unistdio/test-u16-asnprintf1.c: New file.
52349         * tests/unistdio/test-u16-asnprintf1.h: New file.
52350         * tests/unistdio/test-u16-printf1.h: New file.
52351         * tests/unistdio/test-u16-vasnprintf1.c: New file.
52352         * tests/unistdio/test-u16-vasnprintf2.c: New file.
52353         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
52354         * tests/unistdio/test-u16-vasnprintf3.c: New file.
52355         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
52356         * tests/unistdio/test-u16-vasprintf1.c: New file.
52357         * tests/unistdio/test-u16-vsnprintf1.c: New file.
52358         * tests/unistdio/test-u16-vsprintf1.c: New file.
52359         * tests/unistdio/test-u32-asnprintf1.c: New file.
52360         * tests/unistdio/test-u32-asnprintf1.h: New file.
52361         * tests/unistdio/test-u32-printf1.h: New file.
52362         * tests/unistdio/test-u32-vasnprintf1.c: New file.
52363         * tests/unistdio/test-u32-vasnprintf2.c: New file.
52364         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
52365         * tests/unistdio/test-u32-vasnprintf3.c: New file.
52366         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
52367         * tests/unistdio/test-u32-vasprintf1.c: New file.
52368         * tests/unistdio/test-u32-vsnprintf1.c: New file.
52369         * tests/unistdio/test-u32-vsprintf1.c: New file.
52370         * modules/unistdio/base: New file.
52371         * modules/unistdio/u-printf-args: New file.
52372         * modules/unistdio/ulc-asnprintf: New file.
52373         * modules/unistdio/ulc-asprintf: New file.
52374         * modules/unistdio/ulc-fprintf: New file.
52375         * modules/unistdio/ulc-printf-parse: New file.
52376         * modules/unistdio/ulc-snprintf: New file.
52377         * modules/unistdio/ulc-sprintf: New file.
52378         * modules/unistdio/ulc-vasnprintf: New file.
52379         * modules/unistdio/ulc-vasprintf: New file.
52380         * modules/unistdio/ulc-vfprintf: New file.
52381         * modules/unistdio/ulc-vsnprintf: New file.
52382         * modules/unistdio/ulc-vsprintf: New file.
52383         * modules/unistdio/u8-asnprintf: New file.
52384         * modules/unistdio/u8-asprintf: New file.
52385         * modules/unistdio/u8-printf-parse: New file.
52386         * modules/unistdio/u8-snprintf: New file.
52387         * modules/unistdio/u8-sprintf: New file.
52388         * modules/unistdio/u8-vasnprintf: New file.
52389         * modules/unistdio/u8-vasprintf: New file.
52390         * modules/unistdio/u8-vsnprintf: New file.
52391         * modules/unistdio/u8-vsprintf: New file.
52392         * modules/unistdio/u8-u8-asnprintf: New file.
52393         * modules/unistdio/u8-u8-asprintf: New file.
52394         * modules/unistdio/u8-u8-snprintf: New file.
52395         * modules/unistdio/u8-u8-sprintf: New file.
52396         * modules/unistdio/u8-u8-vasnprintf: New file.
52397         * modules/unistdio/u8-u8-vasprintf: New file.
52398         * modules/unistdio/u8-u8-vsnprintf: New file.
52399         * modules/unistdio/u8-u8-vsprintf: New file.
52400         * modules/unistdio/u16-asnprintf: New file.
52401         * modules/unistdio/u16-asprintf: New file.
52402         * modules/unistdio/u16-printf-parse: New file.
52403         * modules/unistdio/u16-snprintf: New file.
52404         * modules/unistdio/u16-sprintf: New file.
52405         * modules/unistdio/u16-vasnprintf: New file.
52406         * modules/unistdio/u16-vasprintf: New file.
52407         * modules/unistdio/u16-vsnprintf: New file.
52408         * modules/unistdio/u16-vsprintf: New file.
52409         * modules/unistdio/u16-u16-asnprintf: New file.
52410         * modules/unistdio/u16-u16-asprintf: New file.
52411         * modules/unistdio/u16-u16-snprintf: New file.
52412         * modules/unistdio/u16-u16-sprintf: New file.
52413         * modules/unistdio/u16-u16-vasnprintf: New file.
52414         * modules/unistdio/u16-u16-vasprintf: New file.
52415         * modules/unistdio/u16-u16-vsnprintf: New file.
52416         * modules/unistdio/u16-u16-vsprintf: New file.
52417         * modules/unistdio/u32-asnprintf: New file.
52418         * modules/unistdio/u32-asprintf: New file.
52419         * modules/unistdio/u32-printf-parse: New file.
52420         * modules/unistdio/u32-snprintf: New file.
52421         * modules/unistdio/u32-sprintf: New file.
52422         * modules/unistdio/u32-vasnprintf: New file.
52423         * modules/unistdio/u32-vasprintf: New file.
52424         * modules/unistdio/u32-vsnprintf: New file.
52425         * modules/unistdio/u32-vsprintf: New file.
52426         * modules/unistdio/u32-u32-asnprintf: New file.
52427         * modules/unistdio/u32-u32-asprintf: New file.
52428         * modules/unistdio/u32-u32-snprintf: New file.
52429         * modules/unistdio/u32-u32-sprintf: New file.
52430         * modules/unistdio/u32-u32-vasnprintf: New file.
52431         * modules/unistdio/u32-u32-vasprintf: New file.
52432         * modules/unistdio/u32-u32-vsnprintf: New file.
52433         * modules/unistdio/u32-u32-vsprintf: New file.
52434         * modules/unistdio/ulc-asnprintf-tests: New file.
52435         * modules/unistdio/ulc-vasnprintf-tests: New file.
52436         * modules/unistdio/ulc-vasprintf-tests: New file.
52437         * modules/unistdio/ulc-vsnprintf-tests: New file.
52438         * modules/unistdio/ulc-vsprintf-tests: New file.
52439         * modules/unistdio/u8-asnprintf-tests: New file.
52440         * modules/unistdio/u8-vasnprintf-tests: New file.
52441         * modules/unistdio/u8-vasprintf-tests: New file.
52442         * modules/unistdio/u8-vsnprintf-tests: New file.
52443         * modules/unistdio/u8-vsprintf-tests: New file.
52444         * modules/unistdio/u16-asnprintf-tests: New file.
52445         * modules/unistdio/u16-vasnprintf-tests: New file.
52446         * modules/unistdio/u16-vasprintf-tests: New file.
52447         * modules/unistdio/u16-vsnprintf-tests: New file.
52448         * modules/unistdio/u16-vsprintf-tests: New file.
52449         * modules/unistdio/u32-asnprintf-tests: New file.
52450         * modules/unistdio/u32-vasnprintf-tests: New file.
52451         * modules/unistdio/u32-vasprintf-tests: New file.
52452         * modules/unistdio/u32-vsnprintf-tests: New file.
52453         * modules/unistdio/u32-vsprintf-tests: New file.
52454         * MODULES.html.sh (Unicode string functions): Add the new modules.
52455
52456 2007-07-01  Bruno Haible  <bruno@clisp.org>
52457
52458         * lib/sprintf.c (sprintf): Limit the available length estimation,
52459         to avoid address wraparound.
52460         * lib/vsprintf.c (vsprintf): Likewise.
52461         * modules/sprintf-posix (Dependencies): Add stdint.
52462         * modules/vsprintf-posix (Dependencies): Likewise.
52463
52464 2007-07-01  Bruno Haible  <bruno@clisp.org>
52465
52466         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
52467         Windows PATH as well. Conservative double-quoting. Comments.
52468
52469 2007-07-01  Bruno Haible  <bruno@clisp.org>
52470             Eric Blake  <ebb9@byu.net>
52471             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52472
52473         * gnulib-tool (self_abspathname): Fix algorithm to cope with
52474         empty components in $PATH, denoting '.'.
52475
52476 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52477
52478         * gnulib-tool: Fix indentation.
52479         (func_create_megatestdir): Likewise.
52480         Report by Bruno Haible.
52481
52482 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52483
52484         Sync from Automake.
52485         * build-aux/gnupload: Fix shell portability issues with for loops.
52486         Report by Karl Berry.
52487
52488 2007-06-29  Simon Josefsson  <simon@josefsson.org>
52489
52490         * build-aux/maint.mk (POURL): Use translationproject.org.
52491
52492 2007-06-27  Simon Josefsson  <simon@josefsson.org>
52493             Bruno Haible  <bruno@clisp.org>
52494
52495         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
52496         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
52497         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
52498         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
52499         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
52500
52501 2007-06-27  Bruno Haible  <bruno@clisp.org>
52502
52503         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
52504         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
52505
52506 2007-06-26  Karl Berry  <karl@gnu.org>
52507
52508         * MODULES.html.sh: remove xreadlink-with-size.
52509
52510 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52511
52512         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
52513         method that I hope also handles the double-include problem noted
52514         by Bruno Haible in
52515         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
52516
52517 2007-06-23  Bruno Haible  <bruno@clisp.org>
52518
52519         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52520         Don't let the 'mostlyclean' target fail if the last subdirectory could
52521         not be removed.
52522         Reported by Karl Berry.
52523
52524 2007-06-23  Bruno Haible  <bruno@clisp.org>
52525
52526         * gnulib-tool (echo): Add a speedier workaround for ksh.
52527         * tests/test-echo.sh: Likewise.
52528
52529 2007-06-23  Bruno Haible  <bruno@clisp.org>
52530
52531         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
52532         * tests/test-echo.sh: Likewise.
52533
52534 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52535
52536         * gnulib-tool (IFS): Initialize early, so we don't set it to
52537         empty later.
52538         (self_abspathname): Rewrite algorithm to set it, reindent.
52539         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
52540         (func_create_megatestdir): Merge some sed scripts.
52541
52542 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52543
52544         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
52545         exposed by Sun Studio 11 cc on Solaris 8.
52546
52547 2007-06-22  Bruno Haible  <bruno@clisp.org>
52548
52549         * gnulib-tool (echo): Ensure the echo primitive does not interpret
52550         backslashes.
52551         * tests/test-echo.sh: New file.
52552
52553 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52554
52555         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
52556         simplify `sed_replace_build_aux' scripts, they are portable but
52557         echoing them with `echo' is not.
52558         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
52559
52560 2007-06-21  Karl Berry  <karl@gnu.org>
52561
52562         * config/srclist.txt: guess we can't handle the licenses via
52563         srclist at the moment.
52564
52565 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52566
52567         * MODULES.html.sh: Add include_next.
52568         * modules/include_next: New file.
52569
52570 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52571
52572         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
52573         INCLUDE_NEXT.
52574         (gl_CHECK_NEXT_HEADERS): New macro.
52575         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
52576         the obsolescent gl_ABSOLUTE_HEADER.
52577         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
52578         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
52579         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
52580         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52581         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52582         * m4/math_h.m4 (gl_MATH_H): Likewise.
52583         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52584         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52585         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52586         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52587         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52588         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52589         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52590         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52591         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52592         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52593         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
52594         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
52595         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
52596         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52597         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52598         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
52599         * m4/inttypes.m4 (gl_INTTYPES_H): Define
52600         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
52601         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
52602         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
52603         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
52604         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
52605         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
52606         * lib/float_.h: Likewise.
52607         * lib/inttypes_.h: Likewise.
52608         * lib/math_.h: Likewise.
52609         * lib/search_.h: Likewise.
52610         * lib/signal_.h: Likewise.
52611         * lib/stdint_.h: Likewise.
52612         * lib/stdio_.h: Likewise.
52613         * lib/stdlib_.h: Likewise.
52614         * lib/string_.h: Likewise.
52615         * lib/sys_stat_.h: Likewise.
52616         * lib/sys_time_.h: Likewise.
52617         * lib/time_.h: Likewise.
52618         * lib/unistd_.h: Likewise.
52619         * lib/wchar_.h: Likewise.
52620         * lib/wctype_.h: Likewise.
52621         * lib/dirent_.h: Likewise.
52622         * lib/iconv_.h: Likewise.
52623         * lib/locale_.h: Likewise.
52624         * lib/netinet_in_.h: Likewise.
52625         * lib/sys_select_.h: Likewise.
52626         * lib/sys_socket_.h: Likewise.
52627         * lib/sysexits_.h: Likewise.
52628         * modules/fcntl (Depends-on): Depend on include_next, not
52629         absolute_header.
52630         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
52631         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
52632         * modules/fchdir: Likewise.
52633         * modules/float: Likewise.
52634         * modules/iconv_open: Likewise.
52635         * modules/inttypes: Likewise.
52636         * modules/locale: Likewise.
52637         * modules/math: Likewise.
52638         * modules/netinet_in: Likewise.
52639         * modules/search: Likewise.
52640         * modules/signal: Likewise.
52641         * modules/stdint: Likewise.
52642         * modules/stdio: Likewise.
52643         * modules/stdlib: Likewise.
52644         * modules/string: Likewise.
52645         * modules/sys_select: Likewise.
52646         * modules/sys_socket: Likewise.
52647         * modules/sys_stat: Likewise.
52648         * modules/sys_time: Likewise.
52649         * modules/sysexits: Likewise.
52650         * modules/time: Likewise.
52651         * modules/unistd: Likewise.
52652         * modules/wchar: Likewise.
52653         * modules/wctype: Likewise.
52654         * modules/sys_stat: Change maintainer to "all".
52655         * modules/unistd: Likewise.
52656
52657 2007-06-20  Karl Berry  <karl@gnu.org>
52658
52659         * config/srclist.txt: track www changes in license files.
52660
52661 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
52662
52663         * build-aux/bootstrap: Remove stray dot.
52664         Make sure build_aux settings are honored when linking
52665         gnulib_extra_files.
52666
52667 2007-06-19  Eric Blake  <ebb9@byu.net>
52668
52669         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52670         Allow compilation on cygwin.
52671
52672 2007-06-19  Jim Meyering  <jim@meyering.net>
52673
52674         xreadlink-with-size: Remove module.  No longer used.
52675         Ex-callers now use xreadlink or mreadlink-with-size.
52676         * modules/xreadlink-with-size: Remove module.
52677         * lib/xreadlink-with-size.c: Remove file.
52678         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
52679         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
52680         just before the function definition *is* accurate.
52681
52682         Eliminate one way canonicalize_filename_mode could exit.
52683         * lib/canonicalize.c (canonicalize_filename_mode):
52684         Use mreadlink_with_size, not xreadlink_with_size.
52685
52686 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
52687
52688         Detect porting problems to FreeBSD/arm, which has time_t wider than
52689         long int.  Original problem reported for GNU diff by Xin Li in
52690         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
52691         * modules/getdate (Depends-on): Add intprops, verify.
52692         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
52693         is an integer type no wider than long int.
52694
52695 2007-06-18  Jim Meyering  <jim@meyering.net>
52696
52697         New module: mreadlink-with-size.
52698         * MODULES.html.sh: Add mreadlink-with-size.
52699         * modules/mreadlink-with-size: New module
52700         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
52701         not xreadlink-with-size.
52702         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
52703
52704 2007-06-16  Bruno Haible  <bruno@clisp.org>
52705
52706         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
52707         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
52708         Reported by Gary V. Vaughan <gary@gnu.org>.
52709
52710 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
52711
52712         Revamp lchown so that it lives in unistd.h where it belongs.
52713         * lib/lchown.h: Remove.
52714         * lib/dirchownmod.c: Don't include lib/lchown.h.
52715         * lib/fchownat.c: Likewise.
52716         * lib/openat.c: Likewise.
52717         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
52718         does not follow symlinks.
52719         (EOPNOTSUPP): Define if not defined.
52720         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
52721         is defined to 0.
52722         (lchown): New decl.
52723         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
52724         Do not check for lchown decl.
52725         Set REPLACE_LCHOWN.
52726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
52727         REPLACE_LCHOWN.
52728         * modules/chown: Make it clear it follows symlinks.
52729         * modules/lchown: Make it clear it doesn't follow symlinks.
52730         (Files): Remove lib/lchown.h
52731         (Depends-on): Add unistd.
52732         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
52733         (Include): Include <unistd.h>, not "lchown.h".
52734         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
52735         REPLACE_LCHOWN.
52736
52737 2007-06-15  Jim Meyering  <jim@meyering.net>
52738
52739         Change license (GPL to LGPL) of fsusage and dependents.
52740         * modules/fsusage (License): Change to LGPL.
52741         * modules/full-read (License): Likewise.
52742         * modules/full-write (License): Likewise.
52743         * modules/safe-read (License): Likewise.
52744         * modules/safe-write (License): Likewise.
52745
52746 2007-06-14  Ben Pfaff  <blp@gnu.org>
52747
52748         Missing part of allocsa -> malloca transition.
52749         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
52750         gl_MALLOCA.
52751
52752 2007-06-12  Bruno Haible  <bruno@clisp.org>
52753
52754         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
52755         to ia64, x86_64, i386.
52756         Reported by Eric Blake.
52757
52758 2007-06-12  Bruno Haible  <bruno@clisp.org>
52759
52760         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
52761         cross-compiling to x86_64.
52762
52763 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
52764
52765         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
52766         glitch reported by Ralf Wildenhues in
52767         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
52768
52769         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
52770         Vin Shelton.
52771
52772 2007-06-11  Bruno Haible  <bruno@clisp.org>
52773
52774         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
52775         replacement string.
52776         Reported by Eric Blake.
52777
52778 2007-06-10  Bruno Haible  <bruno@clisp.org>
52779
52780         Prepare vasnprintf code for use with Unicode strings.
52781         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
52782         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
52783         TYPE_U32_STRING.
52784         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
52785         a_u32_string variants.
52786         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52787         * lib/printf-args.c: Don't include config.h and the specification
52788         header if PRINTF_FETCHARGS is already defined.
52789         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52790         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
52791         TYPE_U16_STRING, TYPE_U32_STRING.
52792         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
52793         u16_directive, u16_directives, u32_directive, u32_directives): New
52794         types.
52795         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
52796         New declarations.
52797         * lib/printf-parse.c: Don't include config.h and the specification
52798         header if PRINTF_PARSE is already defined. Eliminate the set of
52799         parameters for WIDE_CHAR_VERSION; the user of this file must provide
52800         them now. Include c-ctype.h.
52801         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
52802         directive and CHAR_T_ONLY_ASCII.
52803         * lib/vasnprintf.c: Don't include config.h and the specification header
52804         if VASNPRINTF is already defined.
52805         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
52806         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
52807         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
52808         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
52809         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
52810         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
52811         code accordingly.
52812         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
52813         pad_ourselves also in this case, with the 'c' and 's' directives, and
52814         with a different notion of "width".
52815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
52816
52817 2007-06-10  Bruno Haible  <bruno@clisp.org>
52818
52819         * modules/unistr/u32-mbsnlen: New file.
52820         * lib/unistr/u32-mbsnlen.c: New file.
52821
52822         * modules/unistr/u16-mbsnlen: New file.
52823         * lib/unistr/u16-mbsnlen.c: New file.
52824
52825         * modules/unistr/u8-mbsnlen: New file.
52826         * lib/unistr/u8-mbsnlen.c: New file.
52827
52828         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
52829         declarations.
52830
52831 2007-06-10  Bruno Haible  <bruno@clisp.org>
52832
52833         * lib/string_.h (mbsnlen): New declaration.
52834         * lib/mbsnlen.c: New file.
52835         * m4/mbsnlen.m4: New file.
52836         * modules/mbsnlen: New file.
52837         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
52838         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
52839         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
52840
52841 2007-06-10  Bruno Haible  <bruno@clisp.org>
52842
52843         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
52844
52845 2007-06-10  Bruno Haible  <bruno@clisp.org>
52846
52847         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
52848         * lib/mbuiter.h: Likewise.
52849
52850 2007-06-10  Bruno Haible  <bruno@clisp.org>
52851
52852         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
52853         declaration.
52854
52855 2007-06-10  Karl Berry  <karl@gnu.org>
52856
52857         * config/srclist.txt: remove gettext entries, Bruno prefers
52858         to update individually.
52859
52860 2007-06-10  Bruno Haible  <bruno@clisp.org>
52861
52862         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
52863         'maxlen'. Ensure only length + width bytes are allocated, not
52864         length + 1 + width.
52865
52866 2007-06-09  Bruno Haible  <bruno@clisp.org>
52867
52868         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
52869         (CHAR_T): Remove macro.
52870         (VASNPRINTF): Update.
52871
52872 2007-06-09  Bruno Haible  <bruno@clisp.org>
52873
52874         * MODULES.html.sh (Unicode string functions): Add the new modules.
52875
52876         * modules/uniconv/u32-conv-to-enc: New file.
52877         * lib/uniconv/u32-conv-to-enc.c: New file.
52878         * modules/uniconv/u32-conv-to-enc-tests: New file.
52879         * tests/uniconv/test-u32-conv-to-enc.c: New file.
52880
52881         * modules/uniconv/u16-conv-to-enc: New file.
52882         * lib/uniconv/u16-conv-to-enc.c: New file.
52883         * lib/uniconv/u-conv-to-enc.h: New file.
52884         * modules/uniconv/u16-conv-to-enc-tests: New file.
52885         * tests/uniconv/test-u16-conv-to-enc.c: New file.
52886
52887         * modules/uniconv/u8-conv-to-enc: New file.
52888         * lib/uniconv/u8-conv-to-enc.c: New file.
52889         * modules/uniconv/u8-conv-to-enc-tests: New file.
52890         * tests/uniconv/test-u8-conv-to-enc.c: New file.
52891
52892         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
52893         u32_conv_to_encoding): New declarations.
52894
52895 2007-06-09  Bruno Haible  <bruno@clisp.org>
52896
52897         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
52898
52899 2007-06-09  Bruno Haible  <bruno@clisp.org>
52900
52901         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
52902         * modules/malloca: Renamed from modules/allocsa, updated.
52903         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
52904         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
52905         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
52906         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
52907         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
52908         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
52909         * modules/xmalloca: Renamed from modules/xallocsa, updated.
52910         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
52911         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
52912         * modules/c-strcasestr (Depends-on): Update.
52913         * lib/c-strcasestr.c: Update.
52914         * modules/c-strstr (Depends-on): Update.
52915         * lib/c-strstr.c: Update.
52916         * modules/canonicalize-lgpl (Depends-on): Update.
52917         * lib/canonicalize-lgpl.c: Update.
52918         * modules/clean-temp (Depends-on): Update.
52919         * lib/clean-temp.c: Update.
52920         * modules/csharpcomp (Depends-on): Update.
52921         * lib/csharpcomp.c: Update.
52922         * modules/csharpexec (Depends-on): Update.
52923         * lib/csharpexec.c: Update.
52924         * modules/javacomp (Depends-on): Update.
52925         * lib/javacomp.c: Update.
52926         * modules/javaexec (Depends-on): Update.
52927         * lib/javaexec.c: Update.
52928         * modules/mbscasestr (Depends-on): Update.
52929         * lib/mbscasestr.c: Update.
52930         * modules/mbsstr (Depends-on): Update.
52931         * lib/mbsstr.c: Update.
52932         * modules/setenv (Depends-on): Update.
52933         * lib/setenv.c: Update.
52934         * modules/strcasestr (Depends-on): Update.
52935         * lib/strcasestr.c: Update.
52936         * modules/striconveha (Depends-on): Update.
52937         * lib/striconveha.c: Update.
52938         * modules/relocatable-prog-wrapper (Files): Update.
52939         * lib/relocwrapper.c: Update.
52940         * build-aux/install-reloc: Update.
52941         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
52942
52943 2007-06-08  Bruno Haible  <bruno@clisp.org>
52944
52945         Port to uClibc.
52946         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
52947         * lib/fpurge.c (fpurge): Likewise.
52948         * lib/freading.c (freading): Likewise.
52949         * lib/fseeko.c (rpl_fseeko): Likewise.
52950         * lib/fseterr.c (fseterr): Likewise.
52951         * lib/fwriting.c (fwriting): Likewise.
52952         * tests/test-fflush.c (main): Avoid a failure on uClibc.
52953
52954 2007-06-08  Bruno Haible  <bruno@clisp.org>
52955
52956         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
52957         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
52958         * modules/gettext (Files): Add m4/intlmacosx.m4.
52959
52960 2007-06-07  Bruno Haible  <bruno@clisp.org>
52961
52962         * modules/localename-tests: New file.
52963         * tests/test-localename.c: New file.
52964
52965         New module 'localename'.
52966         * lib/localename.h: New file.
52967         * lib/localename.c: New file, from GNU gettext.
52968         * m4/localename.m4: New file.
52969         * modules/localename: New file.
52970
52971 2007-06-07  Bruno Haible  <bruno@clisp.org>
52972
52973         Work around the lack of <wchar.h> on some builds of uClibc.
52974         * doc/headers/wchar.texi: Update.
52975         * lib/wchar_.h: Include <wchar.h> only if it exists.
52976         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
52977         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
52978         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
52979         doesn't exist.
52980         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
52981         * modules/mbfile (Depends-on): Add wchar.
52982         * modules/mbiter (Depends-on): Likewise.
52983         * modules/mbuiter (Depends-on): Likewise.
52984         Reported by Simon Josefsson.
52985
52986 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
52987
52988         Work around problem reported by Steven M. Schweda in
52989         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
52990         Tru64 5.1B with the Compaq compiler environment installed declares
52991         an 'isblank' function but does not define it in the C library.
52992         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
52993         * lib/regex_internal.h (isblank): Likewise.
52994         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
52995         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52996
52997 2007-06-05  Bruno Haible  <bruno@clisp.org>
52998
52999         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
53000         ia64.
53001         * modules/printf-safe: New file.
53002         * modules/fprintf-posix (Depends-on): Add printf-safe.
53003         * modules/printf-posix (Depends-on): Likewise.
53004         * modules/snprintf-posix (Depends-on): Likewise.
53005         * modules/sprintf-posix (Depends-on): Likewise.
53006         * modules/vasnprintf-posix (Depends-on): Likewise.
53007         * modules/vasprintf-posix (Depends-on): Likewise.
53008         * modules/vfprintf-posix (Depends-on): Likewise.
53009         * modules/vprintf-posix (Depends-on): Likewise.
53010         * modules/vsnprintf-posix (Depends-on): Likewise.
53011         * modules/vsprintf-posix (Depends-on): Likewise.
53012         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
53013         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
53014         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
53015         "no" on i386, x86_64, ia64.
53016         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
53017         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53018         on i386, x86_64, ia64.
53019         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
53020         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53021         on i386, x86_64, ia64.
53022         * tests/test-vasnprintf-posix.c: Include float.h.
53023         (LDBL80_WORDS): New macro.
53024         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53025         on i386, x86_64, ia64.
53026         * tests/test-vasprintf-posix.c: Include float.h.
53027         (LDBL80_WORDS): New macro.
53028         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
53029         on i386, x86_64, ia64.
53030         * tests/test-snprintf-posix.c: Include float.h.
53031         * tests/test-sprintf-posix.c: Likewise.
53032         * tests/test-vsnprintf-posix.c: Likewise.
53033         * tests/test-vsprintf-posix.c: Likewise.
53034
53035 2007-06-05  Bruno Haible  <bruno@clisp.org>
53036
53037         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
53038         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
53039         non-IEEE numbers on i386, x86_64, ia64.
53040         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
53041         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
53042         * tests/test-isnanl.h: Include float.h.
53043         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
53044
53045 2007-06-05  Bruno Haible  <bruno@clisp.org>
53046
53047         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
53048         also the %a / %A. Handle the %a / %A code before this extra handling.
53049
53050 2007-06-05  Bruno Haible  <bruno@clisp.org>
53051
53052         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
53053         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
53054
53055 2007-06-05  Bruno Haible  <bruno@clisp.org>
53056
53057         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
53058         typo in variable name.
53059
53060 2007-06-05  Eric Blake  <ebb9@byu.net>
53061
53062         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
53063         Reported by Simon Josefsson.
53064
53065 2007-06-04  Bruno Haible  <bruno@clisp.org>
53066
53067         Avoid test failures on some PowerPC platforms.
53068         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
53069         Define differently for PowerPC.
53070         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
53071         Reported by Gary V. Vaughan <gary@gnu.org>.
53072
53073 2007-06-02  Bruno Haible  <bruno@clisp.org>
53074
53075         Fix test-stdint failure on FreeBSD/ia64.
53076         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
53077         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
53078         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
53079         * doc/headers/stdint.texi: Update.
53080
53081 2007-06-01  Bruno Haible  <bruno@clisp.org>
53082
53083         * tests/test-binary-io.c (main): Pass a third argument to open().
53084         Reported by Gary V. Vaughan <gary@gnu.org>.
53085
53086 2007-06-01  Bruno Haible  <bruno@clisp.org>
53087
53088         * doc/functions/frexpl.texi: Update for mingw.
53089
53090 2007-06-01  Bruno Haible  <bruno@clisp.org>
53091
53092         * tests/test-lseek.c (main): Disable test of errno for invalid third
53093         argument.
53094         * doc/functions/lseek.texi: Update.
53095         Reported by Gary V. Vaughan <gary@gnu.org>.
53096
53097 2007-05-28  Bruno Haible  <bruno@clisp.org>
53098
53099         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
53100
53101 2007-05-31  Eric Blake  <ebb9@byu.net>
53102
53103         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
53104         cross compiling.
53105
53106 2007-05-30  Eric Blake  <ebb9@byu.net>
53107         and Bruno Haible  <bruno@clisp.org>
53108
53109         Work around mingw test failures exposed by m4-1.4.9b.
53110         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
53111         * tests/test-unistd.c: Disable uid_t and git_t tests for the
53112         moment.
53113
53114 2007-05-30  Bruno Haible  <bruno@clisp.org>
53115
53116         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
53117         assuming that they are closed. Needed on HP-UX 11.
53118
53119 2007-05-29  Bruno Haible  <bruno@clisp.org>
53120
53121         Fix a problem with #include_next.
53122         * lib/dirent_.h: Split the double-inclusion guard.
53123         * lib/fcntl_.h: Likewise.
53124         * lib/float_.h: Likewise.
53125         * lib/iconv_.h: Likewise.
53126         * lib/inttypes_.h: Likewise.
53127         * lib/locale_.h: Likewise.
53128         * lib/math_.h: Likewise.
53129         * lib/netinet_in_.h: Likewise.
53130         * lib/search_.h: Likewise.
53131         * lib/signal_.h: Likewise.
53132         * lib/stdint_.h: Likewise.
53133         * lib/stdio_.h: Likewise.
53134         * lib/stdlib_.h: Likewise.
53135         * lib/string_.h: Likewise.
53136         * lib/sys_select_.h: Likewise.
53137         * lib/sys_socket_.h: Likewise.
53138         * lib/sys_stat_.h: Likewise.
53139         * lib/sys_time_.h: Likewise.
53140         * lib/sysexits_.h: Likewise.
53141         * lib/time_.h: Likewise.
53142         * lib/unistd_.h: Likewise.
53143         * lib/wchar_.h: Likewise.
53144         * lib/wctype_.h: Likewise.
53145
53146 2007-05-29  Bruno Haible  <bruno@clisp.org>
53147
53148         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
53149         for the moment.
53150
53151 2007-05-29  Bruno Haible  <bruno@clisp.org>
53152
53153         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
53154         invocation.
53155         Reported by Eric Blake.
53156
53157 2007-05-29  Bruno Haible  <bruno@clisp.org>
53158
53159         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
53160         compiling case.
53161
53162 2007-05-29  Eric Blake  <ebb9@byu.net>
53163             Bruno Haible  <bruno@clisp.org>
53164
53165         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
53166         cross compiles.
53167
53168 2007-05-28  Eric Blake  <ebb9@byu.net>
53169
53170         * modules/closein-tests (test_closein_LDADD): Support test on
53171         cygwin with libtool.
53172
53173 2007-05-28  Bruno Haible  <bruno@clisp.org>
53174
53175         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
53176         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53177         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53178         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53179         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53180         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53181         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53182         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53183         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53184
53185 2007-05-28  Eric Blake  <ebb9@byu.net>
53186
53187         Unconditionally include <config.h> in unit tests.
53188         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
53189         * tests/test-allocsa.c, tests/test-arcfour.c,
53190         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
53191         tests/test-array_list.c, tests/test-array_oset.c,
53192         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
53193         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
53194         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
53195         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
53196         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
53197         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
53198         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
53199         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
53200         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
53201         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
53202         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
53203         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
53204         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
53205         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
53206         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
53207         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
53208         test-md5.c, test-memmem.c, test-printf-posix.c,
53209         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
53210         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
53211         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
53212         test-strcasestr.c, test-striconv.c, test-striconveh.c,
53213         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
53214         test-vasnprintf-posix2.c, test-vasnprintf.c,
53215         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
53216         test-vfprintf-posix.c, test-vprintf-posix.c,
53217         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
53218         test-xvasprintf.c: Likewise.
53219
53220 2007-05-28  Bruno Haible  <bruno@clisp.org>
53221
53222         * gnulib-tool (func_import): Remember the --with-tests command-line
53223         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
53224         Reported by Eric Blake.
53225
53226 2007-05-28  Bruno Haible  <bruno@clisp.org>
53227
53228         * modules/ftell-tests: New file.
53229         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
53230         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
53231
53232         * lib/ftell.c: New file.
53233         * modules/ftell: New file.
53234         * m4/ftell.m4: New file.
53235         * doc/functions/ftell.texi: Update.
53236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
53237         REPLACE_FTELL.
53238         * lib/stdio_.h (rpl_ftell): New declaration.
53239         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
53240         REPLACE_FTELL.
53241
53242 2007-05-28  Eric Blake  <ebb9@byu.net>
53243
53244         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
53245
53246 2007-05-28  Bruno Haible  <bruno@clisp.org>
53247
53248         * modules/fseek-tests: New file.
53249         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
53250         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
53251
53252         * lib/fseek.c: New file.
53253         * modules/fseek: New file.
53254         * m4/fseek.m4: New file.
53255         * doc/functions/fseek.texi: Update.
53256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
53257         REPLACE_FSEEK.
53258         * lib/stdio_.h (rpl_fseek): New declaration.
53259         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
53260         REPLACE_FSEEK.
53261
53262 2007-05-28  Bruno Haible  <bruno@clisp.org>
53263
53264         * lib/stdio_.h (fflush): More comments.
53265
53266 2007-05-28  Bruno Haible  <bruno@clisp.org>
53267
53268         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
53269         runtime test.
53270
53271 2007-05-28  Eric Blake  <ebb9@byu.net>
53272
53273         Improve lseek module.
53274         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
53275         * lib/unistd_.h (lseek): Scale back link warning message.
53276         * tests/test-lseek.c: Beef up test.
53277         * tests/test-lseek.sh: Exercise more facets of lseek.
53278         Reported by Bruno Haible.
53279
53280 2007-05-28  Bruno Haible  <bruno@clisp.org>
53281
53282         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
53283         to define.
53284
53285 2007-05-27  Bruno Haible  <bruno@clisp.org>
53286
53287         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
53288
53289 2007-05-27  Bruno Haible  <bruno@clisp.org>
53290
53291         * modules/openmp: New file.
53292         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
53293         Noah Misch.
53294
53295 2007-05-26  Bruno Haible  <bruno@clisp.org>
53296
53297         * modules/chdir-long (Depends-on): Add fchdir.
53298         * modules/chdir-safer (Depends-on): Likewise.
53299         * modules/fts (Depends-on): Likewise.
53300         * modules/fts-lgpl (Depends-on): Likewise.
53301         * modules/openat (Depends-on): Likewise.
53302         * modules/savewd (Depends-on): Likewise.
53303
53304 2007-05-24  Eric Blake  <ebb9@byu.net>
53305
53306         Fix lseek on mingw.
53307         * modules/lseek: New module.
53308         * m4/lseek.m4: New file.
53309         * lib/lseek.c: New file.
53310         * modules/lseek-tests: New file.
53311         * tests/test-lseek.c: New file.
53312         * tests/test-lseek.sh: New file.
53313         * MODULES.html.sh: Document lseek module.
53314         * modules/fflush (Depends-on): Add lseek, fseeko.
53315         * modules/fseeko (Depends-on): Likewise.
53316         * modules/ftello (Depends-on): Likewise.
53317         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
53318         broken.
53319         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
53320         broken.
53321         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
53322         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
53323         * lib/ftello.c (rpl_ftello): Likewise.
53324         * tests/test-fseeko.c (main): Test this.
53325         * tests/test-fseeko.sh: Likewise.
53326         * tests/test-ftello.c (main): Likewise.
53327         * tests/test-ftello.sh: Likewise.
53328         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
53329         implies replacing fseek.
53330         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
53331         HAVE_FTELLO.
53332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
53333         * modules/unistd (Makefile.am): Likewise.
53334         * lib/unistd_.h (lseek): Declare a replacement.
53335         * doc/functions/lseek.texi (lseek): Document this fix.
53336         * doc/functions/fseek.texi (fseek): Likewise.
53337         * doc/functions/ftell.texi (ftell): Likewise.
53338
53339 2007-05-24  Bruno Haible  <bruno@clisp.org>
53340
53341         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
53342         in the printed representation of a NaN.
53343         * tests/test-vasprintf-posix.c (test_function): Likewise.
53344         * tests/test-snprintf-posix.h (test_function): Likewise.
53345         * tests/test-sprintf-posix.h (test_function): Likewise.
53346         Reported by Eric Blake.
53347
53348 2007-05-23  Eric Blake  <ebb9@byu.net>
53349
53350         Fix fseeko/ftello on cygwin 1.5.24.
53351         * doc/functions/fseeko.texi (fseeko): Document the fix.
53352         * doc/functions/ftello.texi (ftello): Document the fix.
53353         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
53354         * doc/functions/stdout.text (stdout): New file.
53355         * doc/functions/stderr.text (stderr): New file.
53356         * doc/gnulib.texi (Function Substitutes): Use new files.
53357         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
53358         prior to 1.7.0.
53359         * tests/test-ftello.c (main): Likewise for ftello.
53360         * tests/test-fseeko.sh: New file.
53361         * tests/test-ftello.sh: New file.
53362         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
53363         with seekable stdin.
53364         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
53365         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
53366         (gl_REPLACE_FSEEKO): New macro.
53367         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
53368         * modules/fseeko (Files): Distribute fseeko.c.
53369         * modules/ftello (Files): Distribute ftello.c.
53370         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
53371         mode.
53372         * lib/ftello.c (rpl_ftello): New file.
53373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
53374         fseeko, ftello.
53375         (gl_STDIN_LARGE_OFFSET): New macro.
53376         * modules/stdio (Makefile.am): Perform the replacement.
53377         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
53378
53379 2007-05-23  Bruno Haible  <bruno@clisp.org>
53380
53381         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
53382         GNULIB_POSIXCHECK is defined.
53383
53384 2007-05-21  Bruno Haible  <bruno@clisp.org>
53385
53386         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
53387         Check also the output for NaN arguments. When cross-compiling, guess
53388         no on IRIX.
53389         * lib/vasnprintf.c: Update comments.
53390         * tests/test-vasnprintf-posix.c (strisnan): New function.
53391         (test_function): Use it.
53392         * tests/test-vasprintf-posix.c (strisnan): New function.
53393         (test_function): Use it.
53394         * tests/test-snprintf-posix.h (strisnan): New function.
53395         (test_function): Use it.
53396         * tests/test-sprintf-posix.h (strisnan): New function.
53397         (test_function): Use it.
53398         Reported by Eric Blake.
53399
53400 2007-05-20  Bruno Haible  <bruno@clisp.org>
53401
53402         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
53403         numbers that fails on BeOS.
53404         * doc/functions/frexpl.texi: Update.
53405
53406 2007-05-20  Jim Meyering  <jim@meyering.net>
53407
53408         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
53409         forced upon us by glibc-2.6.
53410
53411 2007-05-20  Bruno Haible  <bruno@clisp.org>
53412
53413         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
53414         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
53415         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
53416         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
53417         NEED_PRINTF_INFINITE.
53418         (is_infinitel): New function.
53419         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
53420         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
53421         gl_PREREQ_VASNPRINTF_INFINITE.
53422         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
53423         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53424         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
53425         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
53426         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
53427         gl_PREREQ_VASNPRINTF_INFINITE.
53428         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53429         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53430         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53431         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53432         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53433         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53434         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53435         * doc/functions/fprintf.texi: Update.
53436         * doc/functions/printf.texi: Update.
53437         * doc/functions/snprintf.texi: Update.
53438         * doc/functions/sprintf.texi: Update.
53439         * doc/functions/vfprintf.texi: Update.
53440         * doc/functions/vprintf.texi: Update.
53441         * doc/functions/vsnprintf.texi: Update.
53442         * doc/functions/vsprintf.texi: Update.
53443
53444 2007-05-20  Bruno Haible  <bruno@clisp.org>
53445
53446         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
53447         was not found in libc.
53448         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
53449
53450 2007-05-20  Bruno Haible  <bruno@clisp.org>
53451
53452         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53453         printed as "-nan" instead of "nan".
53454         * tests/test-vasprintf-posix.c (test_function): Likewise.
53455         * tests/test-snprintf-posix.h (test_function): Likewise.
53456         * tests/test-sprintf-posix.h (test_function): Likewise.
53457         Needed for HP-UX 11.
53458
53459 2007-05-20  Jim Meyering  <jim@meyering.net>
53460
53461         Fix buggy test for the fchownat-deref bug.
53462         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
53463         symlink required for the run-test.  Without it, this test would
53464         always declare that fchownat doesn't work, and client code would
53465         unnecessarily use the replacement function with fixed libc.
53466         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
53467         Reported by Greg Schafer.
53468
53469 2007-05-19  Bruno Haible  <bruno@clisp.org>
53470
53471         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
53472         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
53473         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
53474         Needed for IRIX 6.5 and Solaris 2.5.1.
53475
53476 2007-05-19  Bruno Haible  <bruno@clisp.org>
53477
53478         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
53479         (test_function): Skip tests involving -0.0 on platforms where
53480         -0.0 = 0.0.
53481         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
53482         (test_function): Skip tests involving -0.0 on platforms where
53483         -0.0 = 0.0.
53484         * tests/test-snprintf-posix.h (have_minus_zero): New function.
53485         (test_function): Skip tests involving -0.0 on platforms where
53486         -0.0 = 0.0.
53487         * tests/test-sprintf-posix.h (have_minus_zero): New function.
53488         (test_function): Skip tests involving -0.0 on platforms where
53489         -0.0 = 0.0.
53490         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
53491         tests.
53492         * tests/test-printf-posix.h (test_function): Likewise.
53493         * tests/test-printf-posix.output: Remove all -0.0 related results.
53494         Needed for IRIX 6.5.
53495
53496 2007-05-19  Bruno Haible  <bruno@clisp.org>
53497
53498         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
53499         printed as "nan0x7fffffff" instead of "nan".
53500         * tests/test-vasprintf-posix.c (test_function): Likewise.
53501         * tests/test-snprintf-posix.h (test_function): Likewise.
53502         * tests/test-sprintf-posix.h (test_function): Likewise.
53503         * tests/test-fprintf-posix.h (NaN): Remove macro.
53504         (test_function): Remove all NaN related tests.
53505         * tests/test-printf-posix.h (NaN): Remove macro.
53506         (test_function): Remove all NaN related tests.
53507         * tests/test-printf-posix.output: Remove all NaN related results.
53508         Needed for IRIX 6.5.
53509
53510 2007-05-19  Bruno Haible  <bruno@clisp.org>
53511
53512         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
53513         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
53514
53515 2007-05-19  Bruno Haible  <bruno@clisp.org>
53516
53517         * lib/float_.h: New file.
53518         * m4/float_h.m4: New file.
53519         * modules/float: New file.
53520         * modules/isnanl (Dependencies): Add float.
53521         * modules/isnanl-nolibm (Dependencies): Likewise.
53522         * modules/mathl (Dependencies): Likewise.
53523         * modules/printf-frexpl (Dependencies): Likewise.
53524         * modules/signbit (Dependencies): Likewise.
53525         * modules/vasnprintf (Dependencies): Likewise.
53526         * doc/headers/float.texi: Update.
53527
53528 2007-05-19  Jim Meyering  <jim@meyering.net>
53529
53530         * lib/utimens.c (gl_futimens): Rename from futimens,
53531         now that glibc-2.6 declares futimens.
53532         * lib/utimens.h: Likewise.
53533
53534 2007-05-19  Bruno Haible  <bruno@clisp.org>
53535
53536         Avoid test failures on mingw.
53537         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
53538         * tests/test-printf-posix.sh: Likewise.
53539         * tests/test-vfprintf-posix.sh: Likewise.
53540         * tests/test-vprintf-posix.sh: Likewise.
53541
53542 2007-05-19  Bruno Haible  <bruno@clisp.org>
53543
53544         Fix *printf result for NaN, Inf, -0.0 on mingw.
53545         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
53546         * lib/vasnprintf.c: Include math.h and isnan.h.
53547         (is_infinite_or_zero): New function.
53548         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
53549         values in the %f, %F, %e, %E, %g, %G directives.
53550         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
53551         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53552         gl_PRINTF_INFINITE and test its result. Invoke
53553         gl_PREREQ_VASNPRINTF_INFINITE.
53554         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53555         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53556         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53557         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53558         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53559         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53560         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53561         * doc/functions/fprintf.texi: Update.
53562         * doc/functions/printf.texi: Update.
53563         * doc/functions/snprintf.texi: Update.
53564         * doc/functions/sprintf.texi: Update.
53565         * doc/functions/vfprintf.texi: Update.
53566         * doc/functions/vprintf.texi: Update.
53567         * doc/functions/vsnprintf.texi: Update.
53568         * doc/functions/vsprintf.texi: Update.
53569
53570 2007-05-19  Bruno Haible  <bruno@clisp.org>
53571
53572         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
53573         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
53574         Instead of multiplying with 10^k, set extra_zeroes to k.
53575         (scale10_round_long_double): Remove function.
53576
53577 2007-05-18  Bruno Haible  <bruno@clisp.org>
53578
53579         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
53580         introduced on 2007-05-06.
53581
53582 2007-05-18  Bruno Haible  <bruno@clisp.org>
53583
53584         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
53585         %g directives.
53586         * tests/test-vasprintf-posix.c (test_function): Likewise.
53587         * tests/test-snprintf-posix.h (test_function): Likewise.
53588         * tests/test-sprintf-posix.h (test_function): Likewise.
53589
53590 2007-05-18  Bruno Haible  <bruno@clisp.org>
53591
53592         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
53593         (strmatch): New function.
53594         (test_function): Test the %f directive on numbers of various exponents.
53595         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
53596         (strmatch): New function.
53597         (test_function): Test the %f directive on numbers of various exponents.
53598         * tests/test-snprintf-posix.h (strmatch): New function.
53599         (test_function): Test the %f directive on numbers of various exponents.
53600         * tests/test-sprintf-posix.h (strmatch): New function.
53601         (test_function): Test the %f directive on numbers of various exponents.
53602         * tests/test-snprintf-posix.c (SIZEOF): New macro.
53603         * tests/test-sprintf-posix.c (SIZEOF): New macro.
53604         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
53605         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
53606
53607 2007-05-18  Bruno Haible  <bruno@clisp.org>
53608
53609         Add support for 'long double' number output.
53610         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
53611         * lib/vasnprintf.c: Include math.h and float+.h.
53612         (mp_limb_t): New type.
53613         (GMP_LIMB_BITS): New macro.
53614         (mp_twolimb_t): New type.
53615         (GMP_TWOLIMB_BITS): New macro.
53616         (mpn_t): New type.
53617         (multiply, divide, convert_to_decimal, decode_long_double,
53618         scale10_round_long_double, scale10_round_decimal_long_double,
53619         floorlog10l): New functions.
53620         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
53621         for the %f, %F, %e, %E, %g, %G directives.
53622         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
53623         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53624         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
53625         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
53626         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53627         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53628         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53629         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53630         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53631         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53632         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53633         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
53634         * modules/snprintf-posix (Depends-on): Likewise.
53635         * modules/sprintf-posix (Depends-on): Likewise.
53636         * modules/vasnprintf-posix (Depends-on): Likewise.
53637         * modules/vasprintf-posix (Depends-on): Likewise.
53638         * modules/vfprintf-posix (Depends-on): Likewise.
53639         * modules/vsnprintf-posix (Depends-on): Likewise.
53640         * modules/vsprintf-posix (Depends-on): Likewise.
53641         * modules/vasnprintf (Files): Add lib/float+.h.
53642         * doc/functions/fprintf.texi: Update.
53643         * doc/functions/printf.texi: Update.
53644         * doc/functions/snprintf.texi: Update.
53645         * doc/functions/sprintf.texi: Update.
53646         * doc/functions/vfprintf.texi: Update.
53647         * doc/functions/vprintf.texi: Update.
53648         * doc/functions/vsnprintf.texi: Update.
53649         * doc/functions/vsprintf.texi: Update.
53650
53651 2007-05-18  Bruno Haible  <bruno@clisp.org>
53652
53653         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
53654
53655 2007-05-18  Bruno Haible  <bruno@clisp.org>
53656
53657         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
53658         for printing 64-bit integers. Needed for mingw.
53659
53660 2007-05-18  Bruno Haible  <bruno@clisp.org>
53661
53662         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53663         gl_FUNC_FREXPL_WORKS.
53664         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
53665
53666 2007-05-18  Bruno Haible  <bruno@clisp.org>
53667
53668         * modules/frexpl-nolibm-tests: New file.
53669
53670         * modules/frexpl-nolibm: New file.
53671         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
53672
53673 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53674
53675         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
53676         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53677         GCC 4.2, which otherwise issues a lot of warnings.
53678         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
53679         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
53680         Likewise.
53681         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
53682         * modules/iconv_open (iconv.h): Likewise.
53683         * modules/locale (locale.h): Likewise.
53684         * modules/netinet_in (netinet/in.h): Likewise.
53685         * modules/sys_select (sys_select.h): Likewise.
53686         * modules/sys_socket (sys/socket.h): Likewise.
53687         * modules/sys_stat (sys/stat.h): Likewise.
53688         * modules/sysexits (sysexits.h): Likewise.
53689         * modules/unistd (unistd.h): Likewise.
53690
53691 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53692
53693         * modules/closein-tests (Makefile.am): Distribute
53694         `test-closein.sh'.
53695
53696 2007-05-17  Bruno Haible  <bruno@clisp.org>
53697
53698         * tests/test-printf-posix.output: Renamed from
53699         tests/test-fprintf-posix.out.
53700         * modules/fprintf-posix-tests: Update.
53701         * modules/printf-posix-tests: Update.
53702         * modules/vfprintf-posix-tests: Update.
53703         * modules/vprintf-posix-tests: Update.
53704         * tests/test-fprintf-posix.sh: Update.
53705         * tests/test-printf-posix.sh: Update.
53706         * tests/test-vfprintf-posix.sh: Update.
53707         * tests/test-vprintf-posix.sh: Update.
53708         Reported by Ralf Wildenhues.
53709
53710 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53711
53712         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
53713         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53714         GCC 4.2, which otherwise issues a lot of warnings.
53715         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
53716         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
53717         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
53718         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
53719         it should no longer be needed.
53720         * lib/string_.h: Likewise.
53721         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
53722         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
53723         * modules/inttypes (inttypes.h): Likewise.
53724         * modules/math (math.h): Likewise.
53725         * modules/search (search.h): Likewise.
53726         * modules/signal (signal.h): Likewise.
53727         * modules/stdint (stdint.h): Likewise.
53728         * modules/stdio (stdio.h): Likewise.
53729         * modules/stdlib (stdlib.h): Likewise.
53730         * modules/string (string.h): Likewise.
53731         * modules/sys_time (sys/time.h): Likewise.
53732         * modules/time (time.h): Likewise.
53733         * modules/wchar (wchar.h): Likewise.
53734         * modules/wctype (wtype.h): Likewise.
53735
53736 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53737
53738         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
53739
53740 2007-05-13  Bruno Haible  <bruno@clisp.org>
53741
53742         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
53743         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53744         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
53745         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53746         (gl_PREREQ_STRTOK_R): Don't require it here.
53747
53748 2007-05-13  Bruno Haible  <bruno@clisp.org>
53749
53750         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
53751         when used in C++ mode.
53752
53753 2007-05-12  Bruno Haible  <bruno@clisp.org>
53754
53755         * lib/linebuffer.h: Tweak doc.
53756         * lib/linebuffer.c: Likewise.
53757
53758 2007-05-12  James Youngman  <jay@gnu.org>
53759
53760         * lib/linebuffer.c (readlinebuffer_delim): New function,
53761         like readlinebuffer, but use a caller-specified delimiter.
53762         (readlinebuffer): Just call readlinebuffer_delim with '\n'
53763         as the delimiter.
53764         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
53765
53766 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53767
53768         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
53769         * modules/openat (Files): Remove openat-die.c.
53770         (Depends-on): Add openat-die.
53771         * modules/openat-die: New module.
53772
53773 2007-05-06  Bruno Haible  <bruno@clisp.org>
53774
53775         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
53776         Update with info about Cygwin.
53777         * doc/functions/fprintf.texi: Update.
53778         * doc/functions/printf.texi: Update.
53779         * doc/functions/snprintf.texi: Update.
53780         * doc/functions/sprintf.texi: Update.
53781         * doc/functions/vfprintf.texi: Update.
53782         * doc/functions/vprintf.texi: Update.
53783         * doc/functions/vsnprintf.texi: Update.
53784         * doc/functions/vsprintf.texi: Update.
53785         Reported by Eric Blake.
53786
53787 2007-05-06  Bruno Haible  <bruno@clisp.org>
53788
53789         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
53790         padding ourselves for the floating-point directives.
53791         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
53792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
53793         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53794         gl_PRINTF_FLAG_ZERO and test its result. Invoke
53795         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
53796         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53797         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53798         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53799         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53800         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53801         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53802         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53803         * tests/test-snprintf-posix.h (test_function): Also check the width
53804         and some flags in the %f directive.
53805         * tests/test-sprintf-posix.h (test_function): Likewise.
53806         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53807         * tests/test-vasprintf-posix.c (test_function): Likewise.
53808         * doc/functions/fprintf.texi: Update.
53809         * doc/functions/printf.texi: Update.
53810         * doc/functions/snprintf.texi: Update.
53811         * doc/functions/sprintf.texi: Update.
53812         * doc/functions/vfprintf.texi: Update.
53813         * doc/functions/vprintf.texi: Update.
53814         * doc/functions/vsnprintf.texi: Update.
53815         * doc/functions/vsprintf.texi: Update.
53816
53817 2007-05-06  Bruno Haible  <bruno@clisp.org>
53818
53819         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
53820         pass the ' flag character to sprintf or snprintf.
53821         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
53822         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
53823         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53824         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
53825         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
53826         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53827         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53828         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53829         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53830         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53831         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53832         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53833         * tests/test-snprintf-posix.h (test_function): Also check the grouping
53834         flag.
53835         * tests/test-sprintf-posix.h (test_function): Likewise.
53836         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53837         * tests/test-vasprintf-posix.c (test_function): Likewise.
53838         * doc/functions/fprintf.texi: Update.
53839         * doc/functions/printf.texi: Update.
53840         * doc/functions/snprintf.texi: Update.
53841         * doc/functions/sprintf.texi: Update.
53842         * doc/functions/vfprintf.texi: Update.
53843         * doc/functions/vprintf.texi: Update.
53844         * doc/functions/vsnprintf.texi: Update.
53845         * doc/functions/vsprintf.texi: Update.
53846
53847 2007-05-01  Bruno Haible  <bruno@clisp.org>
53848
53849         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
53850
53851 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
53852
53853         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
53854         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
53855
53856 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53857
53858         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
53859         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
53860         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
53861
53862 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
53863
53864         * lib/argp-help.c (struct hol_entry): New member `ord'.
53865         (HOL_ENTRY_PTRCMP): Use ord for comparison
53866         (hol_sort): Initialize ord.
53867
53868 2007-05-01  Bruno Haible  <bruno@clisp.org>
53869
53870         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
53871         Reported by Eric Blake.
53872         * doc/gnulib.texi (Function Substitutes): Update.
53873
53874 2007-05-01  Bruno Haible  <bruno@clisp.org>
53875
53876         * doc/functions.texi: Remove file, now redundant through
53877         doc/functions/*.texi.
53878
53879 2007-05-01  Bruno Haible  <bruno@clisp.org>
53880
53881         * modules/argp (Depends-on): Add sleep.
53882
53883 2007-05-01  Bruno Haible  <bruno@clisp.org>
53884
53885         * modules/sleep-tests: New file.
53886         * tests/test-sleep.c: New file.
53887
53888         * modules/sleep: New file.
53889         * lib/sleep.c: New file.
53890         * m4/sleep.m4: New file.
53891         * lib/unistd_.h (sleep): New declaration.
53892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
53893         HAVE_SLEEP.
53894         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
53895         * doc/functions/sleep.texi: Document the sleep module.
53896
53897 2007-05-01  Bruno Haible  <bruno@clisp.org>
53898
53899         * lib/sigprocmask.h: Remove file.
53900         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
53901         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
53902         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
53903         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
53904         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
53905         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
53906         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
53907         HAVE_SIGSET_T as a shell variable.
53908         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
53909         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
53910         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
53911         (Depends-on): Add signal. Remove verify.
53912         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
53913         (Include): Mention <signal.h> instead of sigprocmask.h.
53914         * NEWS: Mention the change.
53915         * lib/fatal-signal.c: Don't include sigprocmask.h.
53916
53917 2007-05-01  Bruno Haible  <bruno@clisp.org>
53918
53919         * modules/signal: New file.
53920         * lib/signal_.h: New file.
53921         * m4/signal_h.m4: New file.
53922
53923 2007-05-01  Bruno Haible  <bruno@clisp.org>
53924
53925         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
53926         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
53927         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
53928         HAVE_WCTYPE_CTMP_BUG into wctype.h.
53929
53930 2007-05-01  Bruno Haible  <bruno@clisp.org>
53931
53932         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
53933         configure time.
53934         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
53935         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
53936         * modules/sys_stat (Makefile.am): Substitute their values into
53937         sys/stat.h.
53938
53939 2007-05-01  Bruno Haible  <bruno@clisp.org>
53940
53941         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
53942         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
53943         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
53944
53945 2007-05-01  Bruno Haible  <bruno@clisp.org>
53946
53947         * doc/header/assert.texi: Undo last change: don't mention the gnulib
53948         'assert' module here.
53949
53950 2007-05-01  Bruno Haible  <bruno@clisp.org>
53951
53952         * doc/functions/*.texi: New files.
53953         * doc/functions/google-ranking.txt: New file.
53954         * doc/gnulib.texi (Function Substitutes): New chapter.
53955         (ctime, inet_ntoa): Remove sections.
53956         * doc/ctime.texi: Remove file.
53957         * doc/inet_ntoa.texi: Remove file.
53958         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
53959         dependencies.
53960         (%.info): New rule, specifying a --reference-limit.
53961
53962 2007-05-01  Bruno Haible  <bruno@clisp.org>
53963
53964         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
53965
53966 2007-05-01  Bruno Haible  <bruno@clisp.org>
53967
53968         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
53969         the portability of 'mkdir' to mingw systems.
53970
53971 2007-05-01  Bruno Haible  <bruno@clisp.org>
53972
53973         * doc/headers/google-ranking.txt: New file.
53974
53975 2007-04-30  Eric Blake  <ebb9@byu.net>
53976
53977         Prefer fseeko to fseek.
53978         * modules/getpass (Depends-on): Add fseeko.
53979         * lib/getpass.c (getpass): Use fseeko, not fseek.
53980
53981 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
53982
53983         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
53984         assumes the sorting is stable, while most qsort implementations
53985         are not.  Use argument addresses to ensure they never compare as
53986         equal.
53987
53988         * tests/test-argp-2.sh (usage-indent test): Fix output
53989         (func_compare): Restore diff options
53990         * tests/test-argp.c: Restore #include "progname.h"
53991
53992 2007-04-29  Bruno Haible  <bruno@clisp.org>
53993
53994         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
53995         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53996         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
53997         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53998         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
53999         (configure.ac): Define CHECK_SNPRINTF_POSIX.
54000         (TESTS, check_PROGRAMS): Add test-snprintf.
54001         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
54002         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
54003         (TESTS, check_PROGRAMS): Add test-vsnprintf.
54004         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
54005         assertions that fail on HP-UX, OSF/1, or IRIX.
54006         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
54007
54008 2007-04-29  Bruno Haible  <bruno@clisp.org>
54009
54010         * MODULES.html.sh (posix_functions): Remove 'contents'.
54011
54012 2007-04-29  Karl Berry  <karl@gnu.org>
54013
54014         * config/srclist.txt (gendocs_template_min): new entry.
54015
54016 2007-04-29  Bruno Haible  <bruno@clisp.org>
54017
54018         Work around fpurge bug on BSD systems.
54019         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
54020         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
54021         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
54022         fpurge to rpl_fpurge if the system already has this function.
54023         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
54024         the case where the system already has this function. Correct invariants
54025         on BSD systems.
54026         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
54027         BSD systems.
54028
54029 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54030
54031         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
54032         proposed by Sven Verdoolaege.
54033
54034         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
54035         options.
54036         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
54037         (usage and help tests): Update
54038
54039 2007-04-29  Bruno Haible  <bruno@clisp.org>
54040
54041         * tests/test-fflush.c (main): Use a file of size 17, not 10.
54042         Print more information in case of failure. Disable a test on BeOS.
54043
54044 2007-04-29  Bruno Haible  <bruno@clisp.org>
54045
54046         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
54047         This helps debugging on systems on which no gdb is available.
54048
54049 2007-04-29  Bruno Haible  <bruno@clisp.org>
54050
54051         * lib/freading.h: Improve comments.
54052         * lib/fwriting.h: Likewise.
54053         * tests/test-freading.c (main): Don't check freading immediately after
54054         repositioning. Needed for glibc.
54055
54056 2007-04-29  Bruno Haible  <bruno@clisp.org>
54057
54058         * lib/freading.c (freading): Trivial simplification.
54059
54060 2007-04-28  Bruno Haible  <bruno@clisp.org>
54061
54062         * tests/test-fwriting.c (main): Also test the interaction between
54063         fflush and fwriting.
54064         * modules/fwriting-tests (Depends-on): Add fflush.
54065
54066         * tests/test-freading.c (main): Also test the interaction between
54067         fflush and freading.
54068         * modules/freading-tests (Depends-on): Add fflush.
54069
54070 2007-04-28  Bruno Haible  <bruno@clisp.org>
54071
54072         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
54073         fseeko and ftello.
54074         Suggested by Eric Blake.
54075
54076 2007-04-28  Jim Meyering  <jim@meyering.net>
54077
54078         Avoid false-negative in gl_STDINT_H's C99 conformance test.
54079         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
54080         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
54081
54082 2007-04-27  Eric Blake  <ebb9@byu.net>
54083
54084         * doc/headers/assert.texi (assert.h): Document assert module use.
54085
54086 2007-04-27  Bruno Haible  <bruno@clisp.org>
54087
54088         * doc/headers/*.texi: New files.
54089         * doc/gnulib.texi (Header File Substitutes): New chapter.
54090         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
54091         dependencies.
54092         (standards.info ,standards.html, standards.dvi): Update dependencies.
54093         (mostlyclean, clean): New targets.
54094
54095 2007-04-27  Bruno Haible  <bruno@clisp.org>
54096
54097         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
54098         * modules/sysexits (Files, Makefile.am): Update.
54099
54100         * lib/sys_socket_.h: Renamed from lib/socket_.h.
54101         * modules/sys_socket (Files, Makefile.am): Update.
54102
54103         * lib/sys_stat_.h: Renamed from lib/stat_.h.
54104         * modules/sys_stat (Files, Makefile.am): Update.
54105
54106 2007-04-27  Eric Blake  <ebb9@byu.net>
54107
54108         * lib/freading.h: Improve comments.
54109         * lib/fwriting.h: Likewise.
54110         * lib/fflush.c: Likewise.
54111
54112         Fix closein for mingw.
54113         * modules/closein-tests: Add tests for closein.
54114         * tests/test-closein.c: New file.
54115         * tests/test-closein.sh: Likewise.
54116         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
54117         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
54118
54119 2007-04-27  Bruno Haible  <bruno@clisp.org>
54120
54121         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
54122         version is < 6.
54123         * lib/math_.h [__DECC]: Likewise.
54124         * lib/stdio_.h [__DECC]: Likewise.
54125         * lib/stdlib_.h [__DECC]: Likewise.
54126         * lib/string_.h [__DECC]: Likewise.
54127         * lib/time_.h [__DECC]: Likewise.
54128         * lib/wchar_.h [__DECC]: Likewise.
54129         * lib/wctype_.h [__DECC]: Likewise.
54130
54131 2007-04-27  Bruno Haible  <bruno@clisp.org>
54132
54133         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
54134
54135 2007-04-27  Bruno Haible  <bruno@clisp.org>
54136
54137         * lib/fflush.c: Add comments.
54138         * modules/fpurge-tests (Depends-on): Add fflush.
54139         * modules/freadable-tests (Depends-on): Likewise.
54140         * modules/fwritable-tests (Depends-on): Likewise.
54141
54142 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
54143
54144         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
54145         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
54146         Report by Bruno Haible <bruno@clisp.org>.
54147
54148 2007-04-26  Eric Blake  <ebb9@byu.net>
54149
54150         Fix fflush on mingw.
54151         * modules/fflush (Depends-on): Add freading.
54152         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
54153         but unread data.
54154
54155 2007-04-26  Eric Blake  <ebb9@byu.net>
54156         and Bruno Haible  <bruno@clisp.org>
54157
54158         Implement freading and fwriting.
54159         * lib/freading.c: New file.
54160         * lib/freading.h: Likewise.
54161         * m4/freading.m4: Likewise.
54162         * modules/freading: Likewise.
54163         * modules/freading-tests: Likewise.
54164         * tests/test-freading.c: Likewise.
54165         * lib/fwriting.c: New file.
54166         * lib/fwriting.h: Likewise.
54167         * m4/fwriting.m4: Likewise.
54168         * modules/fwriting: Likewise.
54169         * modules/fwriting-tests: Likewise.
54170         * tests/test-fwriting.c: Likewise.
54171         * MODULES.html.sh (File stream based Input/Output): Mention them.
54172
54173 2007-04-26  Bruno Haible  <bruno@clisp.org>
54174
54175         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
54176         'long' when we assume it.
54177         Suggested by Eric Blake.
54178
54179 2007-04-26  Bruno Haible  <bruno@clisp.org>
54180
54181         Ensure fseeko, ftello are declared on glibc systems.
54182         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
54183         * modules/fseeko (configure.ac-early): Likewise.
54184         * modules/ftello (configure.ac-early): Likewise.
54185         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
54186         AC_FUNC_FSEEKO for this.
54187         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
54188         (gl_CHECK_FSEEKO): Remove macro.
54189
54190 2007-04-26  Bruno Haible  <bruno@clisp.org>
54191
54192         * tests/test-fflush.c (main): Also check the ftell result after
54193         fflush and fseek/fseeko.
54194         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
54195         file descriptor position cache in the stream.
54196         * lib/fseeko.c (rpl_fseeko): Likewise.
54197
54198 2007-04-26  Bruno Haible  <bruno@clisp.org>
54199
54200         * modules/fflush-tests (Depends-on): Add fseeko.
54201
54202 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
54203             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54204
54205         * lib/argz_.h: ensure error_t definition is obtained in same
54206         mechanism system argz.h would have.
54207         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
54208         argz facilities are known bad.  Err on the side of caution if
54209         cross-compiling.
54210
54211 2007-04-25  Eric Blake  <ebb9@byu.net>
54212
54213         * lib/fpurge.c (includes): Use stdlib.h for free.
54214         * tests/test-fflush.c (main): Also test fflush-fseeko.
54215
54216 2007-04-25  Bruno Haible  <bruno@clisp.org>
54217
54218         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
54219         * lib/fseeko.c: New file.
54220         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
54221         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
54222         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
54223         gl_FUNC_FSEEKO.
54224         (gl_FUNC_FSEEKO): Invoke it.
54225         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
54226         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
54227         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
54228
54229 2007-04-25  Bruno Haible  <bruno@clisp.org>
54230
54231         * modules/fflush (Depends-on): Add ftello.
54232
54233 2007-04-25  Bruno Haible  <bruno@clisp.org>
54234
54235         * modules/ftello-tests: New file.
54236         * tests/test-ftello.c: New file.
54237
54238         * modules/ftello: New file.
54239         * m4/ftello.m4: New file.
54240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
54241         HAVE_FTELLO.
54242         * lib/stdio_.h (ftello): New declaration.
54243         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
54244         HAVE_FTELLO.
54245
54246 2007-04-25  Bruno Haible  <bruno@clisp.org>
54247
54248         * modules/fseeko-tests: New file.
54249         * tests/test-fseeko.c: New file.
54250
54251         * modules/fseeko: New file.
54252         * m4/fseeko.m4: New file.
54253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
54254         HAVE_FSEEKO.
54255         * lib/stdio_.h (fseeko): New declaration.
54256         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
54257         HAVE_FSEEKO.
54258
54259 2007-04-25  Bruno Haible  <bruno@clisp.org>
54260
54261         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
54262
54263 2007-04-25  Bruno Haible  <bruno@clisp.org>
54264
54265         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
54266         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
54267         * tests/test-unistd.c: Likewise.
54268         * tests/test-fcntl.c: Likewise.
54269
54270 2007-04-23  Eric Blake  <ebb9@byu.net>
54271
54272         * lib/fflush.c: Fix missing include.
54273         Reported by Bruno Haible.
54274
54275 2007-04-23  Bruno Haible  <bruno@clisp.org>
54276
54277         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
54278         Reported by Eric Blake.
54279
54280 2007-04-23  Bruno Haible  <bruno@clisp.org>
54281
54282         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
54283
54284 2007-04-23  Bruno Haible  <bruno@clisp.org>
54285
54286         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
54287
54288 2007-04-23  Bruno Haible  <bruno@clisp.org>
54289
54290         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
54291         Needed on HP-UX 11.
54292
54293 2007-04-16  Eric Blake  <ebb9@byu.net>
54294
54295         Make fflush rely on fpurge.
54296         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
54297         open coding all variants.
54298         * modules/fflush (Depends-on): Add fpurge and unistd.
54299         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
54300         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
54301
54302         Fix --with-tests compilation on cygwin.
54303         * modules/argmatch-tests (Makefile.am): List gnulib library first
54304         in LDADD.
54305         * modules/argp-tests (Makefile.am): Likewise.
54306         * modules/array-list-tests (Makefile.am): Likewise.
54307         * modules/array-oset-tests (Makefile.am): Likewise.
54308         * modules/avltree-list-tests (Makefile.am): Likewise.
54309         * modules/avltree-oset-tests (Makefile.am): Likewise.
54310         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54311         * modules/carray-list-tests (Makefile.am): Likewise.
54312         * modules/dirname-tests (Makefile.am): Likewise.
54313         * modules/frexp-tests (Makefile.am): Likewise.
54314         * modules/isnanl-tests (Makefile.am): Likewise.
54315         * modules/linked-list-tests (Makefile.am): Likewise.
54316         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54317         * modules/lock-tests (Makefile.am): Likewise.
54318         * modules/rbtree-list-tests (Makefile.am): Likewise.
54319         * modules/rbtree-oset-tests (Makefile.am): Likewise.
54320         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54321         * modules/tls-tests (Makefile.am): Likewise.
54322         * modules/tsearch-tests (Makefile.am): Likewise.
54323         * modules/xvasprintf-tests (Makefile.am): Likewise.
54324
54325         Fix fpurge for cygwin.
54326         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
54327         value.
54328         * modules/fpurge-tests (Depends-on): Clean up trash.
54329
54330 2007-04-16  Simon Josefsson  <simon@josefsson.org>
54331
54332         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
54333
54334         * m4/autobuild.m4: Re-indent.
54335
54336 2007-04-13  Bruno Haible  <bruno@clisp.org>
54337
54338         * modules/fpurge-tests: New file.
54339         * tests/test-fpurge.c: New file.
54340
54341         * modules/fpurge: New file.
54342         * lib/fpurge.h: New file.
54343         * lib/fpurge.c: New file.
54344         * m4/fpurge.m4: New file.
54345
54346 2007-04-13  Bruno Haible  <bruno@clisp.org>
54347
54348         * modules/fbufmode-tests: New file.
54349         * tests/test-fbufmode.c: New file.
54350
54351         * modules/fbufmode: New file.
54352         * lib/fbufmode.h: New file.
54353         * lib/fbufmode.c: New file.
54354         * m4/fbufmode.m4: New file.
54355
54356 2007-04-13  Bruno Haible  <bruno@clisp.org>
54357
54358         * modules/fwritable-tests: New file.
54359         * tests/test-fwritable.c: New file.
54360
54361         * modules/fwritable: New file.
54362         * lib/fwritable.h: New file.
54363         * lib/fwritable.c: New file.
54364         * m4/fwritable.m4: New file.
54365
54366 2007-04-13  Bruno Haible  <bruno@clisp.org>
54367
54368         * modules/freadable-tests: New file.
54369         * tests/test-freadable.c: New file.
54370
54371         * modules/freadable: New file.
54372         * lib/freadable.h: New file.
54373         * lib/freadable.c: New file.
54374         * m4/freadable.m4: New file.
54375
54376 2007-04-13  Bruno Haible  <bruno@clisp.org>
54377
54378         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
54379         MOSTLYCLEANFILES.
54380
54381 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54382
54383         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
54384         gzip bootstrap.conf to avoid dragging in i18n machinery.
54385         (gnulib_tool_option): Use it.
54386
54387 2007-04-13  Bruno Haible  <bruno@clisp.org>
54388
54389         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
54390         %F directives.
54391         * tests/test-vasprintf-posix.c (test_function): Likewise.
54392         * tests/test-snprintf-posix.h (test_function): Likewise.
54393         * tests/test-sprintf-posix.h (test_function): Likewise.
54394         * tests/test-fprintf-posix.h (test_function): Likewise.
54395         * tests/test-printf-posix.h (test_function): Likewise.
54396         * tests/test-fprintf-posix.out: Likewise.
54397
54398 2007-04-13  Bruno Haible  <bruno@clisp.org>
54399
54400         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
54401         * modules/tls-tests (configure.ac): Likewise.
54402         Reported by Arto C. Nirkko <anirkko@insel.ch>.
54403
54404 2007-04-13  Bruno Haible  <bruno@clisp.org>
54405
54406         * lib/tls.c (glthread_tls_get): Fix return type.
54407         Patch by Arto C. Nirkko <anirkko@insel.ch>.
54408
54409 2007-04-12  Eric Blake  <ebb9@byu.net>
54410
54411         * modules/gettime (Depends-on): Remove gettime.
54412         Reported by Dmitry V. Levin.
54413
54414 2007-04-12  Bruno Haible  <bruno@clisp.org>
54415
54416         * modules/fflush (Include): Mention <stdio.h>.
54417         * modules/strtoimax (Include): Mention <inttypes.h>.
54418         * modules/strtoumax (Include): Likewise.
54419
54420 2007-04-12  Eric Blake  <ebb9@byu.net>
54421
54422         * .cvsignore: New file.
54423         * .gitignore: Likewise.
54424
54425 2007-04-12  Bruno Haible  <bruno@clisp.org>
54426
54427         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
54428         not before, since $(LDADD) often contains libgnu.a.
54429         * modules/striconv-tests (test_striconv_LDADD): Likewise.
54430         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
54431         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
54432         Needed on Cygwin.
54433
54434 2007-04-12  Eric Blake  <ebb9@byu.net>
54435
54436         Work around glibc's failure to flush stdin on fclose.
54437         * lib/closein.c (close_stdin): Flush stdin before closing.
54438
54439         Work around glibc's failure to reset seekable stdin on exit.
54440         * modules/closein: New module.
54441         * lib/closein.c: New file.
54442         * lib/closein.h: Likewise.
54443         * m4/closein.m4: Likewise.
54444         * MODULES.html.sh (File stream based Input/Output): Document it.
54445
54446 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54447
54448         * gnulib-tool: Rename generated 'autobuild' script to
54449         'do-autobuild' in --create-megatestdir output.
54450
54451         * doc/gnulib.texi (Build robot for gnulib): Fix.
54452
54453 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54454
54455         * modules/sysexits (Depends-on): Add absolute-header.
54456
54457 2007-04-12  Eric Blake  <ebb9@byu.net>
54458
54459         No need to preserve errno on success.
54460         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
54461         Reported by Bruno Haible.
54462
54463 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54464
54465         * MODULES.html.sh (Support for maintaining and releasing
54466         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
54467
54468 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54469
54470         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
54471
54472 2007-04-12  Simon Josefsson  <simon@josefsson.org>
54473
54474         * modules/autobuild: New module.
54475
54476         * m4/autobuild.m4: New file.
54477
54478 2007-04-11  Bruno Haible  <bruno@clisp.org>
54479
54480         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
54481         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
54482         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
54483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
54484         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54485         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54486         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54487         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54488         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54489         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54490         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
54491         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54492         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54493         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
54494         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54495         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54496         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
54497         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54498         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54499         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
54500         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54501         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54502         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
54503         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54504         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54505         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
54506         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
54507         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
54508         Reported by Eric Blake.
54509
54510 2007-04-11  Bruno Haible  <bruno@clisp.org>
54511
54512         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
54513
54514 2007-04-10  Bruno Haible  <bruno@clisp.org>
54515
54516         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
54517         for NaN and Infinity. Needed on FreeBSD 6.1.
54518         * tests/test-vasnprintf-posix.c (test_function): Undo last change
54519         regarding results for "%010a" of Infinity and NaN.
54520         * tests/test-vasprintf-posix.c (test_function): Likewise.
54521         * tests/test-snprintf-posix.h (test_function): Likewise.
54522         * tests/test-sprintf-posix.h (test_function): Likewise.
54523         * tests/test-fprintf-posix.h (test_function): Likewise.
54524         * tests/test-printf-posix.h (test_function): Likewise.
54525         * tests/test-fprintf-posix.out: Likewise.
54526
54527 2007-04-10  Bruno Haible  <bruno@clisp.org>
54528
54529         * modules/locale-tests: New file.
54530         * tests/test-locale.c: New file.
54531
54532         * modules/locale: New file.
54533         * lib/locale_.h: New file.
54534         * m4/locale_h.m4: New file.
54535
54536 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
54537             Bruno Haible  <bruno@clisp.org>
54538
54539         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
54540         be determined, test for availability of the copysignf, copysign,
54541         copysignl functions.
54542         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
54543         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
54544         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
54545
54546 2007-04-09  Eric Blake  <ebb9@byu.net>
54547
54548         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
54549         * modules/stdio (Makefile.am): Support fflush.
54550         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54551         * modules/fflush: New file.
54552         * lib/fflush.c: Likewise.
54553         * m4/fflush.m4: Likewise.
54554         * modules/fflush-tests: New test.
54555         * tests/test-fflush.c: Likewise.
54556         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
54557
54558 2007-04-06  Bruno Haible  <bruno@clisp.org>
54559
54560         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
54561         (VASNPRINTF): Use signbit for faster determination whether to print a
54562         minus sign.
54563         * modules/vasnprintf (Files): Remove lib/float+.h.
54564         * modules/fprintf-posix (Depends-on): Add signbit.
54565         * modules/snprintf-posix (Depends-on): Likewise.
54566         * modules/sprintf-posix (Depends-on): Likewise.
54567         * modules/vasnprintf-posix (Depends-on): Likewise.
54568         * modules/vasprintf-posix (Depends-on): Likewise.
54569         * modules/vfprintf-posix (Depends-on): Likewise.
54570         * modules/vsnprintf-posix (Depends-on): Likewise.
54571         * modules/vsprintf-posix (Depends-on): Likewise.
54572
54573 2007-04-06  Bruno Haible  <bruno@clisp.org>
54574
54575         * tests/test-frexp.c (main): Test also the sign bit of zero results.
54576         * tests/test-frexpl.c (main): Likewise.
54577         * tests/test-ldexpl.c (main): Likewise.
54578         * modules/frexp-tests (Depends-on): Add signbit.
54579         * modules/frexpl-tests (Depdends-on): Likewise.
54580         * modules/ldexpl-tests (Depdends-on): Likewise.
54581
54582 2007-04-06  Bruno Haible  <bruno@clisp.org>
54583
54584         * modules/signbit-tests: New file.
54585         * tests/test-signbit.c: New file.
54586
54587         * modules/signbit: New file.
54588         * lib/signbitf.c: New file.
54589         * lib/signbitd.c: New file.
54590         * lib/signbitl.c: New file.
54591         * m4/signbit.m4: New file.
54592         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
54593         (signbit): New macro.
54594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
54595         REPLACE_SIGNBIT.
54596         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
54597         REPLACE_FREXPL into math.h.
54598
54599 2007-04-06  Bruno Haible  <bruno@clisp.org>
54600
54601         * modules/isnanf-nolibm-tests: New file.
54602         * tests/test-isnanf.c: New file.
54603
54604         * modules/isnanf-nolibm: New file.
54605         * lib/isnanf.h: New file.
54606         * lib/isnanf.c: New file.
54607         * lib/isnan.c: Consider the USE_FLOAT macro.
54608         * m4/isnanf.m4: New file.
54609
54610 2007-04-06  Bruno Haible  <bruno@clisp.org>
54611
54612         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
54613         (Link): New section.
54614
54615         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
54616
54617 2007-04-06  Bruno Haible  <bruno@clisp.org>
54618
54619         Assume the 'long double' type.
54620         * m4/longdouble.m4: Remove file.
54621         * config/srclist.txt: Don't mention longdouble.m4.
54622         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
54623         * lib/float+.h: Likewise.
54624         * lib/frexp.c: Likewise.
54625         * lib/printf-args.h: Likewise.
54626         * lib/printf-args.c: Likewise.
54627         * lib/printf-frexp.c: Likewise.
54628         * lib/printf-parse.c: Likewise.
54629         * lib/vasnprintf.c: Likewise.
54630         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
54631         * m4/intl.m4: Likewise.
54632         * m4/isnanl.m4: Likewise.
54633         * m4/printf.m4: Likewise.
54634         * m4/printf-frexpl.m4: Likewise.
54635         * m4/vasnprintf.m4: Likewise.
54636         * modules/allocsa (Files): Remove m4/longdouble.m4.
54637         * modules/gettext (Files): Likewise.
54638         * modules/relocatable-prog-wrapper (Files): Likewise.
54639         * modules/vasnprintf (Files): Likewise.
54640         * modules/isnanl (Files): Likewise.
54641         (Include): Simplify.
54642         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
54643         (Include): Simplify.
54644         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
54645         (Include): Simplify.
54646         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
54647         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54648         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
54649         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54650         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54651         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54652         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
54653         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54654         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54655         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54656         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
54657         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54658         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
54659         * tests/test-isnanl.c: Likewise.
54660         * tests/test-snprintf-posix.h: Likewise.
54661         * tests/test-sprintf-posix.h: Likewise.
54662         * tests/test-vasnprintf-posix.c: Likewise.
54663         * tests/test-vasnprintf-posix2.c: Likewise.
54664         * tests/test-vasprintf-posix.c: Likewise.
54665
54666 2007-04-06  Bruno Haible  <bruno@clisp.org>
54667
54668         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
54669         * lib/math_.h [__DECC]: Include the overridden include file through
54670         #include_next, outside the double-inclusion guard.
54671         * lib/stdio_.h [__DECC]: Likewise.
54672         * lib/stdlib_.h [__DECC]: Likewise.
54673         * lib/string_.h [__DECC]: Likewise.
54674         * lib/time_.h [__DECC]: Likewise.
54675         * lib/wchar_.h [__DECC]: Likewise.
54676         * lib/wctype_.h [__DECC]: Likewise.
54677         * lib/inttypes_.h [__DECC]: Likewise.
54678         Reported by Albert Chin <china@thewrittenword.com> in
54679         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
54680
54681 2007-04-04  Eric Blake  <ebb9@byu.net>
54682
54683         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
54684         1.5.x.
54685
54686 2007-04-04  Bruno Haible  <bruno@clisp.org>
54687
54688         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
54689         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
54690
54691 2007-04-04  Bruno Haible  <bruno@clisp.org>
54692
54693         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
54694         results for "%010a" of Infinity and NaN.
54695         * tests/test-vasprintf-posix.c (test_function): Likewise.
54696         * tests/test-snprintf-posix.h (test_function): Likewise.
54697         * tests/test-sprintf-posix.h (test_function): Likewise.
54698         * tests/test-fprintf-posix.h (test_function): Remove these tests.
54699         * tests/test-printf-posix.h (test_function): Likewise.
54700         * tests/test-fprintf-posix.out: Update.
54701         Needed for FreeBSD 6.1.
54702
54703 2007-04-04  Bruno Haible  <bruno@clisp.org>
54704
54705         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
54706         directly used by the gnulib modules nor by gnulib-tool.
54707
54708 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
54709
54710         * DEPENDENCIES: Give overall description of version dependency
54711         desirability.  Use more-typical names for apps.
54712         Add shell, coreutils, diffutils, grep, tar, gzip.
54713
54714 2007-04-04  Simon Josefsson  <simon@josefsson.org>
54715
54716         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
54717
54718 2007-04-04  Karl Berry  <karl@gnu.org>
54719
54720         * MODULES.html.sh (func_module): missing '.
54721
54722 2007-04-03  Bruno Haible  <bruno@clisp.org>
54723
54724         * modules/argmatch-tests (Makefile.am): New variable
54725         test_argmatch_LDADD.
54726         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
54727         * modules/array-list-tests (Makefile.am): New variable
54728         test_array_list_LDADD.
54729         * modules/array-oset-tests (Makefile.am): New variable
54730         test_array_oset_LDADD.
54731         * modules/avltree-list-tests (Makefile.am): New variable
54732         test_avltree_list_LDADD.
54733         * modules/avltree-oset-tests (Makefile.am): New variable
54734         test_avltree_oset_LDADD.
54735         * modules/avltreehash-list-tests (Makefile.am): New variable
54736         test_avltreehash_list_LDADD.
54737         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
54738         test_canonicalize_lgpl_LDADD.
54739         * modules/carray-list-tests (Makefile.am): New variable
54740         test_carray_list_LDADD.
54741         * modules/dirname-tests (Makefile.am): New variable
54742         test_dirname_LDADD.
54743         * modules/linked-list-tests (Makefile.am): New variable
54744         test_linked_list_LDADD.
54745         * modules/linkedhash-list-tests (Makefile.am): New variable
54746         test_linkedhash_list_LDADD.
54747         * modules/rbtree-list-tests (Makefile.am): New variable
54748         test_rbtree_list_LDADD.
54749         * modules/rbtree-oset-tests (Makefile.am): New variable
54750         test_rbtree_oset_LDADD.
54751         * modules/rbtreehash-list-tests (Makefile.am): New variable
54752         test_rbtreehash_list_LDADD.
54753         * modules/xvasprintf-tests (Makefile.am): New variable
54754         test_xvasprintf_LDADD.
54755         Reported by Eric Blake.
54756
54757 2007-04-03  Eric Blake  <ebb9@byu.net>
54758
54759         * DEPENDENCIES: Weaken m4 requirements.
54760
54761 2007-04-03  Bruno Haible  <bruno@clisp.org>
54762
54763         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
54764         * modules/isnanl-tests (configure.ac): Likewise.
54765
54766 2007-04-03  Ben Pfaff  <blp@gnu.org>
54767
54768         * modules/iconv_open: Add $(srcdir)/ to source directory
54769         references in Makefile fragments that call gperf, to fix VPATH
54770         builds.
54771
54772 2007-04-03  Bruno Haible  <bruno@clisp.org>
54773
54774         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
54775         * lib/ldexpl.c: Undo last change.
54776
54777 2007-04-03  Bruno Haible  <bruno@clisp.org>
54778
54779         * modules/printf-frexpl (Depends-on): Undo last change.
54780         (Files): Add m4/ldexpl.m4.
54781
54782 2007-04-03  Bruno Haible  <bruno@clisp.org>
54783
54784         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
54785         * modules/isnanl (Link): New section.
54786
54787         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
54788         * modules/frexp (Link): New section.
54789
54790         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
54791         * modules/frexpl (Link): New section.
54792
54793         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
54794         * modules/ldexpl (Link): New section.
54795
54796 2007-04-03  Bruno Haible  <bruno@clisp.org>
54797
54798         * modules/TEMPLATE-EXTENDED: New file.
54799         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
54800
54801 2007-04-03  Bruno Haible  <bruno@clisp.org>
54802
54803         * DEPENDENCIES: New file.
54804         Suggested by Simon Josefsson.
54805
54806 2007-04-03  Bruno Haible  <bruno@clisp.org>
54807
54808         * doc/gnulib.texi: Escape @.
54809
54810 2007-04-03  James Youngman  <jay@gnu.org>
54811         and Paul Eggert  <eggert@cs.ucla.edu>
54812
54813         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
54814         birthtime on all systems that have birthtime, not just those which
54815         use st_birthtimensec rather than st_birthtim.  Putting zero in
54816         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
54817         that the birth time is not available for files on an NFS mount.
54818
54819 2007-04-03  Simon Josefsson  <simon@josefsson.org>
54820
54821         * modules/memxor: Move back from crypto/, suggested by Bruno.
54822         * modules/crypto/hmac-sha1: Fix memxor dependency.
54823
54824         * modules/crypto/gc: Moved from ../.
54825
54826 2007-04-02  Eric Blake  <ebb9@byu.net>
54827
54828         * lib/ldexpl.c (includes): Avoid libm.
54829
54830         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
54831
54832 2007-04-02  Bruno Haible  <bruno@clisp.org>
54833
54834         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
54835         on IRIX.
54836
54837 2007-04-02  Bruno Haible  <bruno@clisp.org>
54838
54839         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
54840         x86 or x86_64 platforms running MacOS X.
54841         Reported by Ryan Schmidt <@ryandesign.com>.
54842
54843 2007-04-02  Bruno Haible  <bruno@clisp.org>
54844
54845         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
54846         i386.
54847
54848 2007-04-01  Simon Josefsson  <simon@josefsson.org>
54849
54850         * modules/crypto/arcfour: Moved from ../.
54851         * modules/crypto/arcfour-tests: Moved from ../.
54852         * modules/crypto/arctwo: Moved from ../.
54853         * modules/crypto/arctwo-tests: Moved from ../.
54854         * modules/crypto/des: Moved from ../.
54855         * modules/crypto/des-tests: Moved from ../.
54856         * modules/crypto/gc-arcfour: Moved from ../.
54857         * modules/crypto/gc-arcfour-tests: Moved from ../.
54858         * modules/crypto/gc-arctwo: Moved from ../.
54859         * modules/crypto/gc-arctwo-tests: Moved from ../.
54860         * modules/crypto/gc-des: Moved from ../.
54861         * modules/crypto/gc-des-tests: Moved from ../.
54862         * modules/crypto/gc-hmac-md5: Moved from ../.
54863         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
54864         * modules/crypto/gc-hmac-sha1: Moved from ../.
54865         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
54866         * modules/crypto/gc-md2: Moved from ../.
54867         * modules/crypto/gc-md2-tests: Moved from ../.
54868         * modules/crypto/gc-md4: Moved from ../.
54869         * modules/crypto/gc-md4-tests: Moved from ../.
54870         * modules/crypto/gc-md5: Moved from ../.
54871         * modules/crypto/gc-md5-tests: Moved from ../.
54872         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
54873         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
54874         * modules/crypto/gc-random: Moved from ../.
54875         * modules/crypto/gc-rijndael: Moved from ../.
54876         * modules/crypto/gc-rijndael-tests: Moved from ../.
54877         * modules/crypto/gc-sha1: Moved from ../.
54878         * modules/crypto/gc-sha1-tests: Moved from ../.
54879         * modules/crypto/gc-tests: Moved from ../.
54880         * modules/crypto/hmac-md5: Moved from ../.
54881         * modules/crypto/hmac-md5-tests: Moved from ../.
54882         * modules/crypto/hmac-sha1: Moved from ../.
54883         * modules/crypto/hmac-sha1-tests: Moved from ../.
54884         * modules/crypto/md2: Moved from ../.
54885         * modules/crypto/md2-tests: Moved from ../.
54886         * modules/crypto/md4: Moved from ../.
54887         * modules/crypto/md4-tests: Moved from ../.
54888         * modules/crypto/md5: Moved from ../.
54889         * modules/crypto/md5-tests: Moved from ../.
54890         * modules/crypto/memxor: Moved from ../.
54891         * modules/crypto/rijndael: Moved from ../.
54892         * modules/crypto/rijndael-tests: Moved from ../.
54893         * modules/crypto/sha1: Moved from ../.
54894
54895 2007-03-30  James Youngman  <jay@gnu.org>
54896
54897         * tests/test-stat-time.c (prepare_test): use chmod() rather than
54898         rename() to change the ctime of a file (because ctime is unaffected
54899         by rename on jfs2 on AIX 5.1).
54900         (main): Start by doing cleanup, in case a previous run failed leaving
54901         test files behind.
54902
54903 2007-03-31  Bruno Haible  <bruno@clisp.org>
54904
54905         Support old proprietary implementations of iconv.
54906         * modules/iconv_open: New file.
54907         * lib/iconv_.h: New file.
54908         * m4/iconv_h.m4: New file.
54909         * lib/iconv_open.c: New file.
54910         * lib/iconv_open-aix.gperf: New file.
54911         * lib/iconv_open-hpux.gperf: New file.
54912         * lib/iconv_open-irix.gperf: New file.
54913         * lib/iconv_open-osf.gperf: New file.
54914         * m4/iconv_open.m4: New file.
54915         * modules/linebreak (Depends-on): Add iconv_open.
54916         * modules/striconv (Depends-on): Likewise.
54917         * modules/striconveh (Depends-on): Likewise.
54918         * modules/unicodeio (Depends-on): Likewise.
54919         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
54920         (iconv_t)(-1).
54921         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
54922         conversion if cd is (iconv_t)(-1).
54923         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
54924         is not possible.
54925
54926 2007-03-31  Bruno Haible  <bruno@clisp.org>
54927
54928         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
54929         work on Solaris either. Protect also second use of "autodetect_jp".
54930
54931 2007-03-31  Bruno Haible  <bruno@clisp.org>
54932
54933         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
54934         the function is not present.
54935
54936 2007-03-31  Bruno Haible  <bruno@clisp.org>
54937
54938         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
54939         the function is not present.
54940
54941 2007-03-31  Bruno Haible  <bruno@clisp.org>
54942
54943         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
54944         a bug in HP-UX iconv_open().
54945
54946 2007-03-31  Bruno Haible  <bruno@clisp.org>
54947
54948         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
54949         (Mathematics <math.h>): New section, add fpieee.
54950         (Input/output <stdio.h>): Add fseterr.
54951         (Mathematics <math.h>): New section, add printf-frexp.
54952         (Container data structures): Add sublist.
54953         (Core language properties): Add fpucw, inline.
54954         (Functions for greatest-width integer types <inttypes.h>): Add
54955         imaxabs, imaxdiv, inttypes.
54956         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
54957         isnanl-nolibm, ldexp.
54958         (Mathematics <math.h>): New section, add printf-frexpl.
54959         (Support for systems lacking POSIX:2001): Add fprintf-posix,
54960         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
54961         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
54962         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
54963         (Unicode string functions): Add unistr/u*-mbtoucr.
54964         (Java): Add javacomp-script, javaexec-script.
54965         (C#): Add csharpcomp-script, csharpexec-script.
54966         (Support for building libraries and executables): Add havelib,
54967         relocatable-*.
54968         (Support for maintaining and releasing projects): Renamed from
54969         'Support for maintaining and release projects'. Add announce-gen.
54970
54971 2007-03-31  Bruno Haible  <bruno@clisp.org>
54972
54973         * README: Talk primarily about git.
54974         (git and CVS): Renamed from CVS.
54975         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
54976         gnulib is available through git.
54977         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
54978
54979 2007-03-30  Bruno Haible  <bruno@clisp.org>
54980
54981         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
54982         * lib/poll_.h: Likewise.
54983         * lib/stat_.h: Likewise.
54984         * lib/sys_time_.h: Likewise.
54985         * lib/sysexit_.h: Likewise.
54986         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
54987         * lib/stdbool_.h: Likewise.
54988         * lib/byteswap_.h: Add double-inclusion guard.
54989
54990 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
54991
54992         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
54993
54994 2007-03-30  Karl Berry  <karl@gnu.org>
54995
54996         * config/srclist-update: double space after USA in the license
54997         substitution, since that's how it's usually (?) written.
54998
54999 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55000
55001         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
55002         reported by Bruno Haible.
55003
55004 2007-03-29  Bruno Haible  <bruno@clisp.org>
55005
55006         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
55007         a bug in AIX iconv().
55008
55009 2007-03-29  Bruno Haible  <bruno@clisp.org>
55010
55011         * modules/ldexpl-tests: New file.
55012         * tests/test-ldexpl.c: New file.
55013
55014 2007-03-29  Bruno Haible  <bruno@clisp.org>
55015
55016         * lib/ldexpl.c: Include fpucw.h.
55017         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
55018         multiplication.
55019         * modules/ldexpl (Depends-on): Add fpucw.
55020
55021 2007-03-29  Bruno Haible  <bruno@clisp.org>
55022
55023         * modules/ldexpl: New file.
55024         * m4/ldexpl.m4: New file.
55025         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
55026         set.
55027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
55028         REPLACE_LDEXPL.
55029         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
55030         REPLACE_LDEXPL.
55031         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55032         gl_FUNC_LDEXPL_WORKS.
55033         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
55034         * modules/mathl (Files): Remove lib/ldexpl.c.
55035         (Depends-on): Add ldexpl.
55036
55037 2007-03-29  Bruno Haible  <bruno@clisp.org>
55038
55039         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
55040
55041 2007-03-29  Bruno Haible  <bruno@clisp.org>
55042
55043         * tests/test-striconveh.c (main): Don't assume that a direct conversion
55044         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
55045         and possibly also HP-UX.
55046         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
55047         work on AIX, IRIX, HP-UX, OSF/1.
55048         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
55049         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
55050         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
55051         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
55052         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
55053         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
55054
55055 2007-03-29  Bruno Haible  <bruno@clisp.org>
55056
55057         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
55058
55059 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55060
55061         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
55062         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
55063
55064 2007-03-29  Eric Blake  <ebb9@byu.net>
55065
55066         * lib/acl-internal.h: Remove redundant include.
55067         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
55068         Cygwin when a file is locked.
55069
55070 2007-03-29  Bruno Haible  <bruno@clisp.org>
55071
55072         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
55073         file.
55074         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
55075
55076 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
55077
55078         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
55079         try to remove a parent directory if the child couldn't be removed
55080         (except for the first rmdir, which could fail because the child
55081         doesn't exist).  Problem reported by Jeff Blaine in
55082         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
55083
55084 2007-03-28  Bruno Haible  <bruno@clisp.org>
55085
55086         * lib/striconveh.c (utf8conv_carefully): New function.
55087         (mem_cd_iconveh_internal): Invoke it.
55088
55089 2007-03-28  Bruno Haible  <bruno@clisp.org>
55090
55091         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
55092         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
55093         input.
55094         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
55095         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
55096         unistr/u8-uctomb.
55097
55098 2007-03-28  Bruno Haible  <bruno@clisp.org>
55099
55100         * modules/unistr/u8-mbtoucr: New file.
55101         * lib/unistr/u8-mbtoucr.c: New file.
55102         * modules/unistr/u16-mbtoucr: New file.
55103         * lib/unistr/u16-mbtoucr.c: New file.
55104         * modules/unistr/u16-mbtoucr: New file.
55105         * lib/unistr/u16-mbtoucr.c: New file.
55106         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
55107
55108 2007-03-27  Simon Josefsson  <simon@josefsson.org>
55109             Bruno Haible  <bruno@clisp.org>
55110
55111         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
55112         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
55113         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
55114
55115         * m4/stdio_h.m4: Add stubs for vasprintf too.
55116
55117         * modules/stdio: Support vasprintf in sed command.
55118
55119         * modules/vasprintf: Depend on stdio for prototypes.  Remove
55120         vasprintf.h.  Add stdio module indicator.
55121
55122         * lib/stdio_.h: Declare asprintf and vasprintf, based on
55123         vasprintf.h.
55124
55125         * lib/vasprintf.h: File removed.
55126
55127         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
55128         * lib/vasprintf.c: Ditto.
55129         * lib/xvasprintf.c: Ditto.
55130         * tests/test-vasprintf-posix.c: Ditto.
55131         * tests/test-vasprintf.c: Ditto.
55132
55133 2007-03-27  Bruno Haible  <bruno@clisp.org>
55134
55135         Make vasnprintf multithread-safe.
55136         * lib/vasnprintf.c (decimal_point_char): New function.
55137         (VASNPRINTF): Use it.
55138         Suggested by Simon Josefsson.
55139
55140 2007-03-27  Eric Blake  <ebb9@byu.net>
55141
55142         Support sub-second birthtime on cygwin.
55143         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
55144         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
55145         (get_stat_birthtime): Also work with st_birthtim.
55146
55147 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
55148
55149         * lib/stat-time.h (USE_BIRTHTIME): Remove.
55150         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
55151         (get_stat_birthtime_ns): Do not try to use "spare" fields.
55152         (get_stat_birthtime_ns): Simplify compile-time tests.
55153         (get_stat_birthtime): Change the API to look like
55154         get_stat_mtime etc., except return a negative tv_nsec on error.
55155         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
55156         Don't check for "spare" fields.
55157         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
55158         or for struct stat.st_birthtime, as these tests aren't used.
55159         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
55160
55161 2007-03-27  Bruno Haible  <bruno@clisp.org>
55162
55163         * lib/stat-time.h: Include <sys/stat.h>.
55164
55165 2007-03-27  James Youngman  <jay@gnu.org>
55166
55167         * lib/stat-time.h (get_stat_birthtime): New function for
55168           retrieving st_birthtime as provided by UFS2 (hence *BSD).
55169         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
55170           and its variants.
55171         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
55172         * modules/stat-time-test: New file.
55173         * tests/test-stat-time.c: New test, devised by Bruno Haible.
55174
55175 2007-03-26  Bruno Haible  <bruno@clisp.org>
55176
55177         Better support of signalling NaNs.
55178         * lib/atanl.c: Include isnanl.h.
55179         (atanl): Perform test for NaN at the beginning of the function and
55180         through a call to isnanl.
55181         * lib/cosl.c: Include isnanl.h.
55182         (cosl): Perform test for NaN at the beginning of the function and
55183         through a call to isnanl.
55184         * lib/ldexpl.c: Include isnanl.h.
55185         (ldexpl): Perform test for NaN through a call to isnanl.
55186         * lib/logl.c: Include isnanl.h.
55187         (logl): Perform test for NaN at the beginning of the function and
55188         through a call to isnanl.
55189         * lib/sinl.c: Include isnanl.h.
55190         (sinl): Perform test for NaN at the beginning of the function and
55191         through a call to isnanl.
55192         * lib/sqrtl.c: Include isnanl.h.
55193         (sqrtl): Perform test for NaN at the beginning of the function and
55194         through a call to isnanl.
55195         * lib/tanl.c: Include isnanl.h.
55196         (tanl): Perform test for NaN at the beginning of the function and
55197         through a call to isnanl.
55198         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
55199         * modules/mathl (Depends-on): Add isnanl.
55200
55201 2007-03-26  Eric Blake  <ebb9@byu.net>
55202
55203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
55204         regression in logic sense of previous patch.
55205
55206 2007-03-26  Bruno Haible  <bruno@clisp.org>
55207
55208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
55209         unportable shell command "if ! ...".
55210         Reported by Ralf Wildenhues.
55211
55212 2007-03-25  Bruno Haible  <bruno@clisp.org>
55213
55214         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
55215         <sysexits.h> file, and only add EX_CONFIG.
55216         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
55217         absolute file name and whether it is sufficient. Substitute also
55218         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
55219         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
55220         ABSOLUTE_SYSEXITS_H into sysexits.h.
55221
55222 2007-03-25  Bruno Haible  <bruno@clisp.org>
55223
55224         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
55225         hints is NULL.
55226
55227 2007-03-25  Bruno Haible  <bruno@clisp.org>
55228
55229         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
55230         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
55231
55232 2007-03-25  Bruno Haible  <bruno@clisp.org>
55233
55234         * lib/vasnprintf.c: Include langinfo.h.
55235         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
55236         multithread-safe.
55237         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
55238         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
55239         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55240         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55241         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55242         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55243         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55244         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
55245         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55246         Reported by Simon Josefsson.
55247
55248 2007-03-25  Bruno Haible  <bruno@clisp.org>
55249
55250         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
55251         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
55252         * modules/vasnprintf (Depends-on): Add stdint.
55253
55254 2007-03-25  Bruno Haible  <bruno@clisp.org>
55255
55256         * modules/fpieee: New file.
55257         * m4/fpieee.m4: New file.
55258         * modules/isnan-nolibm (Depends-on): Add fpieee.
55259         * modules/isnanl-nolibm (Depends-on): Add fpieee.
55260         * modules/isnanl (Depends-on): Add fpieee.
55261
55262 2007-03-25  Bruno Haible  <bruno@clisp.org>
55263
55264         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
55265
55266 2007-03-25  Bruno Haible  <bruno@clisp.org>
55267
55268         Avoid test failures on IRIX 6.5.
55269         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
55270         (main): Use it.
55271         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
55272         macros.
55273         (main): Use them.
55274
55275 2007-03-25  Bruno Haible  <bruno@clisp.org>
55276
55277         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
55278         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
55279         exists but doesn't work.
55280         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
55281         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
55282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
55283         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
55284         math.h.
55285
55286 2007-03-25  Bruno Haible  <bruno@clisp.org>
55287
55288         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
55289         returns inf. Needed on IRIX 6.5.
55290
55291 2007-03-25  Bruno Haible  <bruno@clisp.org>
55292
55293         * tests/test-frexpl.c: Include isnanl-nolibm.h.
55294         (main): Use isnanl instead of x != x idiom.
55295         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
55296
55297         * tests/test-frexp.c: Include isnan.h.
55298         (main): Use isnan instead of x != x idiom.
55299         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
55300
55301 2007-03-25  Bruno Haible  <bruno@clisp.org>
55302
55303         * tests/test-frexp.c (NaN): New function/macro.
55304         (main): Use it instead of 0.0 / 0.0.
55305         * tests/test-isnan.c (NaN): New function/macro.
55306         (main): Use it instead of 0.0 / 0.0.
55307         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
55308         (test_function): Use it instead of 0.0 / 0.0.
55309         * tests/test-vasprintf-posix.c (NaN): New function/macro.
55310         (test_function): Use it instead of 0.0 / 0.0.
55311         * tests/test-snprintf-posix.h (NaN): New function/macro.
55312         (test_function): Use it instead of 0.0 / 0.0.
55313         * tests/test-sprintf-posix.h (NaN): New function/macro.
55314         (test_function): Use it instead of 0.0 / 0.0.
55315         * tests/test-fprintf-posix.h (NaN): New function/macro.
55316         (test_function): Use it instead of 0.0 / 0.0.
55317         * tests/test-printf-posix.h (NaN): New function/macro.
55318         (test_function): Use it instead of 0.0 / 0.0.
55319
55320         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
55321
55322 2007-03-25  Bruno Haible  <bruno@clisp.org>
55323
55324         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
55325
55326 2007-03-25  Bruno Haible  <bruno@clisp.org>
55327
55328         * lib/regexec.c (merge_state_with_log): Make static.
55329
55330 2007-03-25  Bruno Haible  <bruno@clisp.org>
55331
55332         * lib/trigl.c (kernel_rem_pio2): Make static.
55333
55334 2007-03-25  Bruno Haible  <bruno@clisp.org>
55335
55336         * lib/sincosl.c (sincosl_table): Make static.
55337
55338 2007-03-25  Bruno Haible  <bruno@clisp.org>
55339
55340         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
55341         if the compiler does not support C99.
55342
55343 2007-03-25  Bruno Haible  <bruno@clisp.org>
55344
55345         * modules/time (Makefile.am): Ensure all rule action lines start with a
55346         tab.
55347
55348 2007-03-24  Bruno Haible  <bruno@clisp.org>
55349
55350         * modules/tsearch-tests: New file.
55351         * tests/test-tsearch.sh: New file.
55352         * tests/test-tsearch.c: New file, mostly copied from glibc.
55353
55354         * modules/search-tests: New file.
55355         * tests/test-search.c: New file.
55356
55357         * modules/search: New file.
55358         * lib/search_.h: New file, incorporating lib/tsearch.h.
55359         * m4/search_h.m4: New file.
55360         * lib/tsearch.h: Remove file.
55361         * lib/tsearch.c: Include search.h instead of tsearch.h.
55362         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
55363         HAVE_TSEARCH.
55364         * modules/tsearch (Files): Remove lib/tsearch.h.
55365         (Depends-on): Add search.
55366         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
55367         (Include): Change tsearch.h into search.h.
55368
55369 2007-03-24  Bruno Haible  <bruno@clisp.org>
55370
55371         * modules/fpucw: New file.
55372         * lib/fpucw.h: New file.
55373         * lib/frexp.c: Include fpucw.h.
55374         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55375         (FUNC): Use them.
55376         * lib/printf-frexp.c: Include fpucw.h.
55377         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
55378         (FUNC): Use them.
55379         * lib/vasnprintf.c: Include fpucw.h.
55380         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
55381         'long double' calculations.
55382         * tests/test-frexpl.c: Include fpucw.h.
55383         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55384         * tests/test-printf-frexpl.c: Include fpucw.h.
55385         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
55386         * modules/frexpl (Depends-on): Add fpucw.
55387         * modules/printf-frexpl (Depends-on): Likewise.
55388         * modules/fprintf-posix (Depends-on): Likewise.
55389         * modules/snprintf-posix (Depends-on): Likewise.
55390         * modules/sprintf-posix (Depends-on): Likewise.
55391         * modules/vasnprintf-posix (Depends-on): Likewise.
55392         * modules/vasprintf-posix (Depends-on): Likewise.
55393         * modules/vfprintf-posix (Depends-on): Likewise.
55394         * modules/vsnprintf-posix (Depends-on): Likewise.
55395         * modules/vsprintf-posix (Depends-on): Likewise.
55396         * modules/frexpl-tests (Depends-on): Likewise.
55397         * modules/printf-frexpl-tests (Depends-on): Likewise.
55398
55399 2007-03-24  Bruno Haible  <bruno@clisp.org>
55400
55401         * lib/float+.h: New file.
55402         * lib/isnan.c: Include float+.h.
55403         (SIZE): New macro.
55404         (FUNC): Compare only SIZE bytes of the value.
55405         * lib/vasnprintf.c: Include float+.h.
55406         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
55407         SIZEOF_LDBL or SIZEOF_DBL bytes.
55408         * modules/isnan-nolibm (Files): Add lib/float+.h.
55409         * modules/isnanl-nolibm (Files): Add lib/float+.h.
55410         * modules/isnanl (Files): Add lib/float+.h.
55411         * modules/vasnprintf (Files): Add lib/float+.h.
55412
55413 2007-03-24  Bruno Haible  <bruno@clisp.org>
55414
55415         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
55416         include isnanl-nolibm.h.
55417
55418 2007-03-24  Bruno Haible  <bruno@clisp.org>
55419
55420         * tests/test-read-file.c (main): Don't produce spurious output for
55421         expected situations. Make the test fail if it encountered unexpected
55422         results.
55423
55424 2007-03-24  Bruno Haible  <bruno@clisp.org>
55425
55426         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
55427         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
55428
55429 2007-03-24  Bruno Haible  <bruno@clisp.org>
55430
55431         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
55432
55433 2007-03-24  Bruno Haible  <bruno@clisp.org>
55434
55435         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
55436         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
55437
55438         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
55439         * modules/utf8-ucs4: Turn into a symbolic link to module
55440         unistr/u8-mbtouc.
55441
55442         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
55443         utf8-ucs4-unsafe.
55444         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
55445         unistr/u8-mbtouc-unsafe.
55446
55447         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
55448         * modules/utf16-ucs4: Turn into a symbolic link to module
55449         unistr/u16-mbtouc.
55450
55451         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
55452         utf16-ucs4-unsafe.
55453         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
55454         unistr/u16-mbtouc-unsafe.
55455
55456         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
55457         * modules/ucs4-utf8: Turn into a symbolic link to module
55458         unistr/u8-ubtomb.
55459
55460         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
55461         * modules/ucs4-utf16: Turn into a symbolic link to module
55462         unistr/u16-ubtomb.
55463
55464 2007-03-24  Bruno Haible  <bruno@clisp.org>
55465
55466         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
55467         Enable the function only if HAVE_INLINE.
55468         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
55469         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55470         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
55471         Enable the function only if HAVE_INLINE.
55472         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
55473         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
55474         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
55475         Enable the function only if HAVE_INLINE.
55476         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
55477         Enable the function only if HAVE_INLINE.
55478         * modules/utf8-ucs4: Update.
55479         * modules/utf8-ucs4-unsafe: Update.
55480         * modules/utf16-ucs4: Update.
55481         * modules/utf16-ucs4-unsafe: Update.
55482         * modules/ucs4-utf8: Update.
55483         * modules/ucs4-utf16: Update.
55484
55485 2007-03-24  Bruno Haible  <bruno@clisp.org>
55486
55487         * lib/utf8-ucs4.h: Remove file.
55488         * lib/utf8-ucs4-unsafe.h: Remove file.
55489         * lib/utf16-ucs4.h: Remove file.
55490         * lib/utf16-ucs4-unsafe.h: Remove file.
55491         * lib/ucs4-utf8.h: Remove file.
55492         * lib/ucs4-utf16.h: Remove file.
55493         * lib/unistr.h: Include their previous contents.
55494         * m4/utf-ucs4.m4: Remove file.
55495         * m4/ucs4-utf.m4: Remove file.
55496         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.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/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.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 (Files): Remove lib/utf16-ucs4.h.
55507         (Depends-on): Add unistr/base.
55508         (configure.ac): Remove gl_UTF_UCS4.
55509         (Makefile.am): Update.
55510         (Include): Change to unistr.h.
55511         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
55512         (Depends-on): Add unistr/base.
55513         (configure.ac): Remove gl_UTF_UCS4.
55514         (Makefile.am): Update.
55515         (Include): Change to unistr.h.
55516         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.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         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
55522         (Depends-on): Add unistr/base.
55523         (configure.ac): Remove gl_UCS4_UTF.
55524         (Makefile.am): Update.
55525         (Include): Change to unistr.h.
55526         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
55527         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
55528         utf8-ucs4-unsafe.h.
55529         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
55530         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
55531         utf16-ucs4-unsafe.h.
55532         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
55533         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
55534         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
55535         * lib/unistr/u8-strchr.c: Likewise.
55536         * lib/unistr/u8-strrchr.c: Likewise.
55537         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
55538         * lib/unistr/u16-strchr.c: Likewise.
55539         * lib/unistr/u16-strrchr.c: Likewise.
55540         * lib/striconveh.c: Update.
55541         * lib/linebreak.c: Update.
55542
55543 2007-03-24  Bruno Haible  <bruno@clisp.org>
55544
55545         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
55546         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
55547
55548 2007-03-22  Bruno Haible  <bruno@clisp.org>
55549
55550         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
55551
55552 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
55553
55554         * MODULES.html.sh (File system functions): New module write-any-file.
55555         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
55556         * m4/write-any-file.m4: New files.
55557
55558 2007-03-23  Eric Blake  <ebb9@byu.net>
55559
55560         * gnulib-tool: Rearrange space-tab sequences, since some editors
55561         like to eat them.
55562
55563 2007-03-23  Eric Blake  <ebb9@byu.net>
55564
55565         * lib/version-etc.c (version_etc_va): Update license wording to
55566         be more concise.  Recommended by Richard Stallman.
55567
55568 2007-03-22  Bruno Haible  <bruno@clisp.org>
55569
55570         * lib/poll.c (MSG_PEEK): New fallback definition.
55571
55572 2007-03-22  Bruno Haible  <bruno@clisp.org>
55573
55574         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
55575         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
55576         (main): Update.
55577         Fixes a compilation error on BeOS.
55578
55579 2007-03-22  Bruno Haible  <bruno@clisp.org>
55580
55581         * modules/frexpl-tests: New file.
55582         * tests/test-frexpl.c: New file.
55583
55584         * modules/frexpl: New file.
55585         * m4/frexpl.m4: New file.
55586         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
55587         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
55588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
55589         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
55590         (Depends-on): Add frexpl. Remove isnanl-nolibm.
55591         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
55592
55593 2007-03-22  Bruno Haible  <bruno@clisp.org>
55594
55595         * lib/frexpl.c: Share code with lib/frexp.c.
55596         * modules/mathl (Files): Add lib/frexp.c.
55597         (Depends-on): Add isnanl-nolibm.
55598
55599 2007-03-22  Bruno Haible  <bruno@clisp.org>
55600
55601         * modules/printf-frexp (Files): Add m4/frexp.m4.
55602         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
55603         only if the found frexp function actually works.
55604
55605 2007-03-22  Bruno Haible  <bruno@clisp.org>
55606
55607         * lib/frexp.c: Remove older implementation that uses divisions.
55608
55609 2007-03-21  Bruno Haible  <bruno@clisp.org>
55610
55611         * modules/frexp-tests: New file.
55612         * tests/test-frexp.c: New file.
55613
55614         * modules/frexp: New file.
55615         * lib/frexp.c: New file.
55616         * m4/frexp.m4: New file.
55617         * lib/math_.h (frexp): New declaration.
55618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
55619         REPLACE_FREXP.
55620         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
55621
55622 2007-03-21  Bruno Haible  <bruno@clisp.org>
55623
55624         * modules/isnanl-tests: New file.
55625         * tests/test-isnanl.c: New file.
55626
55627         * modules/isnanl: New file.
55628         * lib/isnanl.h: New file.
55629         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
55630         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
55631         gl_FUNC_ISNANL_WORKS.
55632         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
55633         New macros.
55634
55635 2007-03-21  Bruno Haible  <bruno@clisp.org>
55636
55637         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
55638         lib/isnanl.h.
55639         (Include): Update.
55640         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
55641         * lib/vasnprintf.c: Update.
55642         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
55643         tests/test-isnanl.h, remove tests/test-isnanl.c.
55644         (Makefile.am): Update.
55645         * tests/test-isnanl-nolibm.c: New file.
55646         * tests/test-isnanl.h: New file.
55647         * tests/test-isnanl.c: Remove file.
55648
55649 2007-03-21  Jim Meyering  <jim@meyering.net>
55650
55651         When trying to open ".", treat ESTALE like EACCES.
55652         * lib/savewd.c (savewd_save): Resort to forking not just upon
55653         failure with EACCES, but also when errno is ESTALE.
55654
55655 2007-03-20  Bruno Haible  <bruno@clisp.org>
55656
55657         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
55658         Needed on AIX 5.1. Reported by Matthew Woehlke.
55659
55660 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55661
55662         Suggestions by Bruno Haible:
55663         * lib/acl-internal.h: Include "gettext.h" rather than rolling
55664         our own.
55665         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
55666         * modules/acl (Depends-on): Add gettext.
55667
55668 2007-03-19  Bruno Haible  <bruno@clisp.org>
55669
55670         * modules/iconvme: Remove file.
55671         * lib/iconvme.h: Remove file.
55672         * lib/iconvme.c: Remove file.
55673         * m4/iconvme.m4: Remove file.
55674
55675 2007-03-19  Bruno Haible  <bruno@clisp.org>
55676
55677         * doc/relocatable-maint.texi: Break long shell script line.
55678         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55679
55680 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55681
55682         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
55683         handle file_has_acl.
55684         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
55685         * lib/acl.c: Move header inclusions and related macro defns into
55686         lib/acl-internal.h.
55687         (S_ISLNK): Remove defn, since that's now done for us.
55688         (file_has_acl): Move to lib/file-has-acl.c.
55689         Call acl_trivial if available.  This is the crucial part of the fix.
55690         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
55691         shared within the library.  Rewrite a bit, partly to make it compatible
55692         with the GNU coding style.
55693         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
55694         Remove unnecessary double-quotes.
55695         Don't test for acl_to_text; the build will catch that.
55696         Replace acl_entries if it doesn't exist and it is needed.
55697         Check for -lsec and acl_trivial (as used on Solaris 10).
55698         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
55699         lib/file-has-acl.c.
55700         (Depends-on): Add sys_stat, for S_ISLNK.
55701
55702 2007-03-19  Ben Pfaff  <blp@gnu.org>
55703
55704         * doc/gnulib.texi: Fix typos.
55705         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55706
55707 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55708
55709         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
55710         If size is zero here, buf must be zero.
55711
55712 2007-03-19  Simon Josefsson  <simon@josefsson.org>
55713
55714         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
55715         <bruno@clisp.org>.
55716
55717 2007-03-18  Bruno Haible  <bruno@clisp.org>
55718
55719         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
55720         Suggested by Eric Blake.
55721
55722 2007-03-18  Ben Pfaff  <blp@gnu.org>
55723
55724         * doc/relocatable.texi: Recommend using as prefix a directory
55725         that does not exist and will never be created.  Based on
55726         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
55727         and others.
55728
55729 2007-03-17  Bruno Haible  <bruno@clisp.org>
55730
55731         * lib/fchownat.c: Include lchown.h.
55732
55733 2007-03-17  Bruno Haible  <bruno@clisp.org>
55734
55735         Fix endless loop when the given allocated size was > INT_MAX.
55736         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
55737         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
55738         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
55739         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
55740         * lib/sprintf.c (sprintf): Likewise.
55741
55742 2007-03-17  Bruno Haible  <bruno@clisp.org>
55743
55744         * tests/test-argp-2.sh (func_compare): Output a context diff.
55745
55746 2007-03-17  Bruno Haible  <bruno@clisp.org>
55747
55748         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
55749         locale's decimal-point character.
55750
55751 2007-03-17  Bruno Haible  <bruno@clisp.org>
55752
55753         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
55754         before comparing it. Needed because on some platforms (e.g. x86) a
55755         'long double' occupies less bytes than sizeof (long double).
55756
55757 2007-03-17  Bruno Haible  <bruno@clisp.org>
55758
55759         * tests/test-crc.c (main): Make printf statements 64-bit clean.
55760         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
55761         * tests/test-getaddrinfo.c (simple): Likewise.
55762         * tests/test-read-file.c (main): Likewise.
55763
55764 2007-03-17  Bruno Haible  <bruno@clisp.org>
55765
55766         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
55767
55768 2007-03-17  Bruno Haible  <bruno@clisp.org>
55769
55770         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
55771         unused variable.
55772
55773 2007-03-17  Bruno Haible  <bruno@clisp.org>
55774
55775         * tests/test-c-strcasecmp.c: Include c-strcase.h.
55776         * tests/test-c-strncasecmp.c: Likewise.
55777
55778 2007-03-17  Bruno Haible  <bruno@clisp.org>
55779
55780         * modules/stdlib (Depends-on): Add unistd.
55781         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
55782         Needed for MacOS X 10.3.
55783
55784 2007-03-17  Bruno Haible  <bruno@clisp.org>
55785
55786         * lib/unistr/u-strdup.h: Include <stdlib.h>.
55787
55788 2007-03-17  Bruno Haible  <bruno@clisp.org>
55789
55790         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
55791
55792 2007-03-17  Bruno Haible  <bruno@clisp.org>
55793
55794         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
55795         to reflect files copied from gnulib (with or without modifications).
55796         Suggested by Jim Meyering.
55797
55798 2007-03-17  Eric Blake  <ebb9@byu.net>
55799
55800         * NEWS: Document stdlib change from 2007-02-18.
55801
55802 2007-03-17  Jim Meyering  <jim@meyering.net>
55803
55804         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
55805         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
55806         someone uses a name containing shell meta-characters.
55807         Reported by Alfred M. Szmidt.
55808
55809         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
55810
55811 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
55812
55813         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
55814         and copy gettext configuration files only if configure.ac contains
55815         a use of AM_GNU_GETTEXT_VERSION.
55816
55817 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
55818
55819         * build-aux/bootstrap (gnulib_name): New variable.
55820         (gnulib_tool_options): Use it.
55821
55822 2007-03-13  Simon Josefsson  <simon@josefsson.org>
55823
55824         * tests/test-des.c: Use new namespace.
55825
55826 2007-03-15  Bruno Haible  <bruno@clisp.org>
55827
55828         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
55829         Reported by James Youngman <jay@gnu.org>.
55830
55831 2007-03-15  Bruno Haible  <bruno@clisp.org>
55832
55833         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
55834         declared prototype. Needed with cc on OSF/1 5.1.
55835
55836 2007-03-15  Bruno Haible  <bruno@clisp.org>
55837
55838         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
55839         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
55840         (struct gl_list_implementation): Add dispose_fn argument to the
55841         'create_empty', 'create' methods.
55842         (struct gl_list_impl_base): Add field 'dispose_fn'.
55843         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
55844         argument.
55845         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
55846         dispose_fn argument.
55847         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
55848         dispose_fn on the dropped values.
55849         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
55850         dispose_fn argument.
55851         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
55852         dropped values.
55853         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
55854         (gl_tree_remove_node): Call dispose_fn on the dropped value.
55855         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
55856         (gl_tree_remove_node): Call dispose_fn on the dropped value.
55857         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
55858         argument.
55859         (gl_tree_list_free): Call dispose_fn on the dropped values.
55860         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
55861         the dropped values.
55862         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55863         Add dispose_fn argument.
55864         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
55865         Call dispose_fn on the dropped values.
55866         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
55867         Add dispose_fn argument.
55868         (gl_sublist_create): Initialize the 'dispose_fn' field.
55869         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
55870         * tests/test-array_list.c (main): Update.
55871         * tests/test-carray_list.c (main): Update.
55872         * tests/test-avltree_list.c (main): Update.
55873         * tests/test-rbtree_list.c (main): Update.
55874         * tests/test-avltreehash_list.c (main): Update.
55875         * tests/test-rbtreehash_list.c (main): Update.
55876         * tests/test-linked_list.c (main): Update.
55877         * tests/test-linkedhash_list.c (main): Update.
55878         * tests/test-array_oset.c (main): Update.
55879
55880 2007-03-15  Bruno Haible  <bruno@clisp.org>
55881
55882         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
55883         (gl_oset_create_empty): Add dispose_fn argument.
55884         (struct gl_oset_implementation): Add dispose_fn argument to
55885         'create_empty' method.
55886         (struct gl_oset_impl_base): Add dispose_fn field.
55887         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
55888         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
55889         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
55890         values.
55891         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
55892         (gl_tree_oset_free): Call dispose_fn on the dropped values.
55893         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
55894         dropped value.
55895         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
55896         dropped value.
55897         * tests/test-array_oset.c (main): Update.
55898         * tests/test-avltree_oset.c (main): Update.
55899         * tests/test-rbtree_oset.c (main): Update.
55900         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
55901
55902 2007-03-13  Bruno Haible  <bruno@clisp.org>
55903
55904         * tests/test-stdbool.c (i): Update after last patch.
55905
55906 2007-03-12  Bruno Haible  <bruno@clisp.org>
55907
55908         * lib/quotearg.c: Include <wctype.h> early, before the definition of
55909         the iswprint macro. Needed on Solaris 2.5.1.
55910
55911 2007-03-12  Bruno Haible  <bruno@clisp.org>
55912
55913         * tests/test-printf-frexp.c (main): Declare x as volatile.
55914
55915 2007-03-12  Simon Josefsson  <simon@josefsson.org>
55916
55917         * doc/gnulib.texi (Build robot for gnulib): New section.
55918
55919 2007-03-12  Jim Meyering  <jim@meyering.net>
55920
55921         * build-aux/bootstrap: New file.
55922         * build-aux/bootstrap.conf: New file, from coreutils.
55923
55924 2007-03-11  Bruno Haible  <bruno@clisp.org>
55925
55926         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
55927
55928 2007-03-12  Simon Josefsson  <simon@josefsson.org>
55929
55930         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
55931         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
55932         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
55933
55934 2007-03-11  Bruno Haible  <bruno@clisp.org>
55935
55936         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
55937         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
55938
55939 2007-03-11  Bruno Haible  <bruno@clisp.org>
55940
55941         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
55942         formula. Needed for SunPRO C 5.0.
55943
55944 2007-03-11  Bruno Haible  <bruno@clisp.org>
55945
55946         * modules/long-options (Depends-on): Add getopt.
55947
55948 2007-03-11  Bruno Haible  <bruno@clisp.org>
55949
55950         * modules/modechange (Depends-on): Add stdbool.
55951
55952 2007-03-11  Bruno Haible  <bruno@clisp.org>
55953
55954         * modules/i-ring (Depends-on): Add stdbool.
55955
55956 2007-03-11  Bruno Haible  <bruno@clisp.org>
55957
55958         * modules/gc-des (Depends-on): Add stdbool.
55959
55960 2007-03-11  Bruno Haible  <bruno@clisp.org>
55961
55962         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
55963
55964 2007-03-11  Bruno Haible  <bruno@clisp.org>
55965
55966         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
55967
55968 2007-03-11  Bruno Haible  <bruno@clisp.org>
55969
55970         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
55971
55972 2007-03-11  Bruno Haible  <bruno@clisp.org>
55973
55974         * lib/vasnprintf.c (sprintf): Undefine.
55975
55976 2007-03-11  Bruno Haible  <bruno@clisp.org>
55977
55978         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
55979         initializers in SunPRO C and Compaq C compilers.
55980
55981 2007-03-11  Bruno Haible  <bruno@clisp.org>
55982
55983         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
55984         decrementing code ANSI C compliant.
55985
55986 2007-03-11  Bruno Haible  <bruno@clisp.org>
55987
55988         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
55989         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
55990
55991 2007-03-11  Bruno Haible  <bruno@clisp.org>
55992
55993         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
55994         <stdbool.h> substitute doesn't pass.
55995
55996 2007-03-11  Bruno Haible  <bruno@clisp.org>
55997
55998         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
55999
56000 2007-03-11  Bruno Haible  <bruno@clisp.org>
56001
56002         * gnulib-tool (func_create_megatestdir): Create also an autobuild
56003         script, for submission to autobuild.josefsson.org.
56004
56005 2007-03-10  Bruno Haible  <bruno@clisp.org>
56006
56007         * modules/canonicalize-lgpl-tests: New file.
56008         * tests/test-canonicalize-lgpl.sh: New file.
56009         * tests/test-canonicalize-lgpl.c: New file.
56010
56011         * modules/c-strcase-tests: New file.
56012         * tests/test-c-strcase.sh: New file.
56013         * tests/test-c-strcasecmp.c: New file.
56014         * tests/test-c-strncasecmp.c: New file.
56015
56016         * modules/atexit-tests: New file.
56017         * tests/test-atexit.sh: New file.
56018         * tests/test-atexit.c: New file.
56019
56020 2007-03-10  Bruno Haible  <bruno@clisp.org>
56021
56022         * tests/test-binary-io.sh: Use temporary filenames that are not so
56023         likely to clash with those of other tests (in a parallel make).
56024         * tests/test-binary-io.c: Likewise.
56025
56026 2007-03-10  Bruno Haible  <bruno@clisp.org>
56027
56028         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
56029         fallback; use #error instead.
56030         Suggested by Simon Josefsson.
56031
56032 2007-03-10  Bruno Haible  <bruno@clisp.org>
56033
56034         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
56035         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
56036         first and the last.
56037
56038 2007-03-10  Bruno Haible  <bruno@clisp.org>
56039
56040         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
56041
56042 2007-03-10  Bruno Haible  <bruno@clisp.org>
56043
56044         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
56045         "make distcheck".
56046         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
56047         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
56048         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
56049
56050 2007-03-10  Bruno Haible  <bruno@clisp.org>
56051
56052         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
56053         variable.
56054         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
56055         variable.
56056
56057 2007-03-09  Eric Blake  <ebb9@byu.net>
56058         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
56059
56060         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
56061         types are not being provided by gnulib.
56062         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
56063         types are supported.
56064
56065 2007-03-10  Bruno Haible  <bruno@clisp.org>
56066
56067         * lib/stdio_.h (__attribute__): New macro.
56068         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
56069         vsprintf): Specify __attribute__ __format__ for GCC.
56070         Suggested by Eric Blake.
56071
56072 2007-03-09  Bruno Haible  <bruno@clisp.org>
56073
56074         * modules/printf-posix-tests: New file.
56075         * tests/test-printf-posix.sh: New file.
56076         * tests/test-printf-posix.c: New file.
56077
56078         * modules/printf-posix: New file.
56079         * lib/printf.c: New file.
56080         * m4/printf-posix-rpl.m4: New file.
56081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
56082         REPLACE_PRINTF.
56083         * lib/stdio_.h (printf): New declaration.
56084         (format, __format__, ____printf____, ____scanf____, ____strftime____,
56085         ____strfmon____): New macros.
56086         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
56087         REPLACE_PRINTF.
56088
56089 2007-03-09  Bruno Haible  <bruno@clisp.org>
56090
56091         * tests/test-vasnprintf-posix2.sh: New file.
56092         * tests/test-vasnprintf-posix2.c: New file.
56093         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
56094         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
56095         (Makefile.am): Activate test-vasnprintf-posix2.sh.
56096
56097         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
56098         a locale dependent decimal point, rather than always '.'.
56099
56100 2007-03-09  Eric Blake  <ebb9@byu.net>
56101
56102         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
56103         spite of platforms like Tandem/NSK that define it to -1.
56104
56105 2007-03-08  Bruno Haible  <bruno@clisp.org>
56106
56107         * modules/vprintf-posix-tests: New file.
56108         * tests/test-vprintf-posix.sh: New file.
56109         * tests/test-vprintf-posix.c: New file.
56110         * tests/test-printf-posix.h: New file.
56111
56112         * modules/vprintf-posix: New file.
56113         * lib/vprintf.c: New file.
56114         * m4/vprintf-posix.m4: New file.
56115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
56116         REPLACE_VPRINTF.
56117         * lib/stdio_.h (vprintf): New declaration.
56118         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
56119         REPLACE_VPRINTF.
56120
56121 2007-03-08  Bruno Haible  <bruno@clisp.org>
56122
56123         * modules/fprintf-posix-tests: New file.
56124         * tests/test-fprintf-posix.sh: New file.
56125         * tests/test-fprintf-posix.c: New file.
56126
56127         * modules/fprintf-posix: New file.
56128         * lib/fprintf.c: New file.
56129         * m4/fprintf-posix.m4: New file.
56130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
56131         REPLACE_FPRINTF.
56132         * lib/stdio_.h (fprintf): New declaration.
56133         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
56134         REPLACE_FPRINTF.
56135
56136 2007-03-08  Bruno Haible  <bruno@clisp.org>
56137
56138         * modules/vfprintf-posix-tests: New file.
56139         * tests/test-vfprintf-posix.sh: New file.
56140         * tests/test-vfprintf-posix.c: New file.
56141         * tests/test-fprintf-posix.h: New file.
56142         * tests/test-fprintf-posix.out: New file.
56143
56144         * modules/vfprintf-posix: New file.
56145         * lib/vfprintf.c: New file.
56146         * m4/vfprintf-posix.m4: New file.
56147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
56148         REPLACE_VFPRINTF.
56149         * lib/stdio_.h (vfprintf): New declaration.
56150         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
56151         REPLACE_VFPRINTF.
56152
56153 2007-03-08  Bruno Haible  <bruno@clisp.org>
56154
56155         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
56156
56157 2007-03-08  Bruno Haible  <bruno@clisp.org>
56158
56159         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
56160         instead of 'expr' invocations.
56161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56162         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56163         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56164         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56165         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56166         Suggested by Paul Eggert.
56167
56168 2007-03-08  Bruno Haible  <bruno@clisp.org>
56169
56170         * modules/fseterr-tests: New file.
56171         * tests/test-fseterr.c: New file.
56172
56173         * modules/fseterr: New file.
56174         * lib/fseterr.h: New file.
56175         * lib/fseterr.c: New file.
56176
56177 2007-03-08  Bruno Haible  <bruno@clisp.org>
56178
56179         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
56180         * lib/getopt_.h: Likewise.
56181         * lib/mbswidth.h: Likewise.
56182         * lib/setenv.h: Likewise.
56183         * lib/vasnprintf.h: Likewise.
56184         * lib/vasprintf.h: Likewise.
56185         * lib/verror.h: Likewise.
56186         * lib/xsetenv.h: Likewise.
56187         * lib/xvasprintf.h: Likewise.
56188
56189 2007-03-08  Jim Meyering  <jim@meyering.net>
56190
56191         * users.txt: Add parted.
56192
56193         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
56194
56195 2007-03-07  Bruno Haible  <bruno@clisp.org>
56196
56197         * m4/printf.m4: Make the shell script snippets copy&pastable.
56198
56199 2007-03-02  Bruno Haible  <bruno@clisp.org>
56200
56201         * lib/netinet_in_.h: New file.
56202         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
56203         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
56204         * modules/netinet_in (Files): Add lib/netinet_in_.h.
56205         (Depends-on): Add absolute-header.
56206         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
56207         into netinet/in.h.
56208
56209 2007-03-03  Bruno Haible  <bruno@clisp.org>
56210
56211         * lib/sys_select_.h: New file.
56212         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
56213         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
56214         * modules/sys_select (Files): Add lib/sys_select_.h.
56215         (Depends-on): Add absolute-header.
56216         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
56217         into sys/select.h.
56218
56219 2007-03-02  Bruno Haible  <bruno@clisp.org>
56220
56221         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
56222         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
56223         values.
56224         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
56225         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
56226         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
56227         * modules/sys_socket (Depends-on): Add absolute-header.
56228         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
56229         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
56230         (Include): Remove requirement of inclusion of <sys/types.h>.
56231
56232 2007-03-02  Bruno Haible  <bruno@clisp.org>
56233
56234         * lib/byteswap_.h (bswap_32): Fix formula.
56235
56236 2007-03-06  Bruno Haible  <bruno@clisp.org>
56237
56238         * modules/sprintf-posix-tests: New file.
56239         * tests/test-sprintf-posix.c: New file.
56240
56241         * modules/sprintf-posix: New file.
56242         * lib/sprintf.c: New file.
56243         * m4/sprintf-posix.m4: New file.
56244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
56245         REPLACE_SPRINTF.
56246         * lib/stdio_.h (sprintf): New declaration.
56247         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
56248         REPLACE_SPRINTF.
56249
56250 2007-03-06  Bruno Haible  <bruno@clisp.org>
56251
56252         * modules/vsprintf-posix-tests: New file.
56253         * tests/test-vsprintf-posix.c: New file.
56254         * tests/test-sprintf-posix.h: New file.
56255
56256         * modules/vsprintf-posix: New file.
56257         * lib/vsprintf.c: New file.
56258         * m4/vsprintf-posix.m4: New file.
56259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
56260         REPLACE_VSPRINTF.
56261         * lib/stdio_.h (vsprintf): New declaration.
56262         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
56263         REPLACE_VSPRINTF.
56264
56265 2007-03-06  Bruno Haible  <bruno@clisp.org>
56266
56267         * modules/vsnprintf (Depend-on): Remove minmax.
56268
56269 2007-03-06  Bruno Haible  <bruno@clisp.org>
56270
56271         * modules/snprintf-posix-tests: New file.
56272         * tests/test-snprintf-posix.c: New file.
56273
56274         * modules/snprintf-posix: New file.
56275         * m4/snprintf-posix.m4: New file.
56276         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
56277         gl_FUNC_SNPRINTF.
56278         (gl_FUNC_SNPRINTF): Invoke it.
56279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
56280         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
56281         is set.
56282         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
56283
56284 2007-03-06  Bruno Haible  <bruno@clisp.org>
56285
56286         * modules/vsnprintf-posix-tests: New file.
56287         * tests/test-vsnprintf-posix.c: New file.
56288         * tests/test-snprintf-posix.h: New file.
56289
56290         * modules/vsnprintf-posix: New file.
56291         * m4/vsnprintf-posix.m4: New file.
56292         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
56293         gl_FUNC_VSNPRINTF.
56294         (gl_FUNC_VSNPRINTF): Invoke it.
56295         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
56296         * lib/stdio_.h (vsnprintf): Define as a replacement if
56297         REPLACE_VSNPRINTF is set.
56298         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
56299
56300 2007-03-06  Bruno Haible  <bruno@clisp.org>
56301
56302         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
56303         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
56304
56305 2007-03-06  Bruno Haible  <bruno@clisp.org>
56306
56307         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
56308         (asinl): Declare also if HAVE_DECL_ASINL is set.
56309         (atanl): Declare also if HAVE_DECL_ATANL is set.
56310         (ceill): Declare also if HAVE_DECL_CEILL is set.
56311         (cosl): Declare also if HAVE_DECL_COSL is set.
56312         (expl): Declare also if HAVE_DECL_EXPL is set.
56313         (floorl): Declare also if HAVE_DECL_FLOORL is set.
56314         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
56315         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
56316         (logl): Declare also if HAVE_DECL_LOGL is set.
56317         (sinl): Declare also if HAVE_DECL_SINL is set.
56318         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
56319         (tanl): Declare also if HAVE_DECL_TANL is set.
56320         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
56321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
56322         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
56323         declaration of frexpl, ldexpl.
56324         * modules/printf-frexpl (Depends-on): Add math.
56325         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
56326
56327 2007-03-05  Bruno Haible  <bruno@clisp.org>
56328
56329         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
56330         frexpl and ldexpl are declared.
56331         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
56332
56333 2007-03-05  Bruno Haible  <bruno@clisp.org>
56334
56335         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
56336         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
56337
56338 2007-03-05  Bruno Haible  <bruno@clisp.org>
56339
56340         * lib/stdio_.h: Include <stddef.h>.
56341
56342 2007-03-05  Bruno Haible  <bruno@clisp.org>
56343
56344         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
56345
56346 2007-03-05  Bruno Haible  <bruno@clisp.org>
56347
56348         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
56349         NetBSD 4, from Ralf Wildenhues.
56350
56351 2007-03-04  Bruno Haible  <bruno@clisp.org>
56352
56353         * lib/vasprintf.h: Update #if logic for the case when the functions
56354         exist but are overridden.
56355
56356 2007-03-04  Bruno Haible  <bruno@clisp.org>
56357
56358         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
56359         implementations: glibc-2.4 and MacOS X 10.3.
56360         * tests/test-vasnprintf-posix.c (test_function): Test also the case
56361         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
56362         * tests/test-vasprintf-posix.c (test_function): Likewise.
56363
56364 2007-03-04  Bruno Haible  <bruno@clisp.org>
56365
56366         * modules/vasprintf-posix-tests: New file.
56367         * tests/test-vasprintf-posix.c: New file.
56368
56369         * modules/vasprintf-posix: New file.
56370         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
56371         defined.
56372         * m4/vasprintf-posix.m4: New file.
56373         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
56374         gl_FUNC_VASPRINTF.
56375         (gl_FUNC_VASPRINTF): Invoke it.
56376         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
56377         here.
56378         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
56379
56380 2007-03-04  Bruno Haible  <bruno@clisp.org>
56381
56382         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
56383         REPLACE_GETTIMEOFDAY.
56384         * modules/sys_time (Makefile.am): Likewise.
56385         * m4/sys_time_h.m4: Likewise.
56386         * m4/gettimeofday.m4: Likewise.
56387
56388 2007-03-04  Bruno Haible  <bruno@clisp.org>
56389
56390         * modules/vasnprintf-posix-tests: New file.
56391         * tests/test-vasnprintf-posix.c: New file.
56392
56393         * modules/vasnprintf-posix: New file.
56394         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
56395         printf-frexpl.h.
56396         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
56397         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
56398         REPLACE_VASNPRINTF is defined.
56399         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
56400         gl_FUNC_VASNPRINTF.
56401         (gl_FUNC_VASNPRINTF): Invoke it.
56402         * m4/vasnprintf-posix.m4: New file.
56403         * m4/printf.m4: New file.
56404
56405 2007-03-04  Bruno Haible  <bruno@clisp.org>
56406
56407         Compile progreloc.c only if --enable-relocatable is specified.
56408         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
56409         if --enable-relocatable was specified.
56410         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
56411         lib_SOURCES.
56412
56413 2007-03-04  Jim Meyering  <jim@meyering.net>
56414
56415         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
56416         Use it consistently, rather than enumerating errno constants.
56417
56418 2007-03-04  Bruno Haible  <bruno@clisp.org>
56419
56420         * modules/xvasprintf-tests: New file.
56421         * tests/test-xvasprintf.c: New file.
56422
56423         * modules/vasprintf-tests: New file.
56424         * tests/test-vasprintf.c: New file.
56425
56426         * modules/vasnprintf-tests: New file.
56427         * tests/test-vasnprintf.c: New file.
56428
56429         * modules/vsnprintf-tests: New file.
56430         * tests/test-vsnprintf.c: New file.
56431
56432         * modules/snprintf-tests: New file.
56433         * tests/test-snprintf.c: New file.
56434
56435 2007-03-04  Bruno Haible  <bruno@clisp.org>
56436
56437         Compile relocatable.c only if --enable-relocatable is specified.
56438         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
56439         gl_RELOCATABLE_LIBRARY.
56440         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
56441         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
56442         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
56443         gl_RELOCATABLE_LIBRARY.
56444         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
56445         (Makefile.am): Remove lib_SOURCES.
56446         * modules/relocatable-lib-lgpl (configure.ac): Invoke
56447         gl_RELOCATABLE_LIBRARY.
56448         (Makefile.am): Remove lib_SOURCES.
56449         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
56450         always.
56451         * modules/relocatable-prog-wrapper (configure.ac): Invoke
56452         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
56453
56454 2007-03-04  Bruno Haible  <bruno@clisp.org>
56455
56456         * modules/argmatch-tests: New file.
56457         * tests/test-argmatch.c: New file.
56458
56459         * tests/test-allocsa.c (main): Halve the number of loop runs.
56460
56461         * modules/alloca-opt-tests: New file.
56462         * tests/test-alloca-opt.c: New file.
56463
56464 2007-03-04  Jim Meyering  <jim@meyering.net>
56465
56466         Work around difference between Linux ACLs and Solaris 10 ZFS.
56467         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
56468         for EINVAL.
56469
56470 2007-03-03  Bruno Haible  <bruno@clisp.org>
56471
56472         * modules/relocatable-prog (Depends-on): Add back progreloc's
56473         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
56474
56475 2007-03-03  Bruno Haible  <bruno@clisp.org>
56476
56477         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
56478         * modules/relocatable-lib: New file.
56479
56480 2007-03-03  Bruno Haible  <bruno@clisp.org>
56481
56482         * modules/relocatable-prog: Renamed from modules/relocatable.
56483         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
56484
56485 2007-03-03  Bruno Haible  <bruno@clisp.org>
56486
56487         * modules/relocatable-script (Files): Add doc/relocatable.texi,
56488         m4/relocatable-lib.m4.
56489         (Depends-on): Remove 'relocatable'.
56490         (configure.ac): Add gl_RELOCATABLE_NOP.
56491
56492 2007-03-03  Bruno Haible  <bruno@clisp.org>
56493
56494         * modules/relocatable-prog-wrapper: New file.
56495         * modules/relocatable (Depends-on): Add it. Remove all other
56496         dependencies except progname.
56497         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
56498
56499         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
56500         (gl_FUNC_STRERROR): Nop.
56501         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
56502
56503         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
56504         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
56505
56506         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
56507         (gl_FUNC_READLINK): Update.
56508
56509         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
56510
56511 2007-03-03  Bruno Haible  <bruno@clisp.org>
56512
56513         * lib/xreadlink.c: Include <unistd.h> unconditionally.
56514         * modules/xreadlink (Depends-on): Add unistd.
56515         * modules/xreadlink-with-size (Depends-on): Likewise.
56516
56517 2007-03-03  Bruno Haible  <bruno@clisp.org>
56518
56519         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
56520         extracted from gt_FUNC_SETENV.
56521         (gt_FUNC_SETENV): Remove macro.
56522         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
56523         remove gt_FUNC_SETENV.
56524
56525 2007-03-03  Bruno Haible  <bruno@clisp.org>
56526
56527         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
56528         ENABLE_RELOCATABLE here.
56529         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
56530
56531 2007-03-03  Bruno Haible  <bruno@clisp.org>
56532
56533         * modules/rbtreehash-list-tests (Depends-on): Add progname.
56534         * tests/test-rbtreehash_list.c: Include progname.h.
56535         (main): Call set_program_name.
56536
56537         * modules/rbtree-oset-tests (Depends-on): Add progname.
56538         * tests/test-rbtree_oset.c: Include progname.h.
56539         (main): Call set_program_name.
56540
56541         * modules/rbtree-list-tests (Depends-on): Add progname.
56542         * tests/test-rbtree_list.c: Include progname.h.
56543         (main): Call set_program_name.
56544
56545         * modules/linked-list-tests (Depends-on): Add progname.
56546         * tests/test-linked_list.c: Include progname.h.
56547         (main): Call set_program_name.
56548
56549 2007-03-03  Bruno Haible  <bruno@clisp.org>
56550
56551         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
56552         All uses of __restrict changed to _Restrict_.
56553         * lib/glob_.h (__restrict): Remove macro.
56554
56555 2007-03-02  Bruno Haible  <bruno@clisp.org>
56556
56557         * modules/gettext (configure.ac): Require gettext infrastructure
56558         from version 0.16.1.
56559
56560 2007-03-02  Bruno Haible  <bruno@clisp.org>
56561
56562         * modules/linkedhash-list-tests (Depends-on): Add progname.
56563         * tests/test-linkedhash_list.c: Include progname.h.
56564         (main): Call set_program_name.
56565
56566         * modules/carray-list-tests (Depends-on): Add progname.
56567         * tests/test-carray_list.c: Include progname.h.
56568         (main): Call set_program_name.
56569
56570         * modules/avltreehash-list-tests (Depends-on): Add progname.
56571         * tests/test-avltreehash_list.c: Include progname.h.
56572         (main): Call set_program_name.
56573
56574         * modules/avltree-oset-tests (Depends-on): Add progname.
56575         * tests/test-avltree_oset.c: Include progname.h.
56576         (main): Call set_program_name.
56577
56578         * modules/avltree-list-tests (Depends-on): Add progname.
56579         * tests/test-avltree_list.c: Include progname.h.
56580         (main): Call set_program_name.
56581
56582         * modules/array-oset-tests (Depends-on): Add progname.
56583         * tests/test-array_oset.c: Include progname.h.
56584         (main): Call set_program_name.
56585
56586         * modules/array-list-tests (Depends-on): Add progname.
56587         * tests/test-array_list.c: Include progname.h.
56588         (main): Call set_program_name.
56589
56590         * modules/argp-tests (Depends-on): Add progname.
56591         * tests/test-argp.c: Include argp.h first. Include progname.h.
56592         (main): Call set_program_name.
56593
56594 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
56595
56596         * doc/gnulib-tool.texi (Initial import): Reword description of
56597         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
56598         limited effect even if defined after the first system include.
56599
56600 2007-03-01  Bruno Haible  <bruno@clisp.org>
56601
56602         * build-aux/config.libpath: Update to libtool-1.5.22.
56603         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56604
56605 2007-03-01  Bruno Haible  <bruno@clisp.org>
56606
56607         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
56608         foo_CFLAGS.
56609         Reported by Ralf Wildenhues.
56610
56611 2007-03-01  Bruno Haible  <bruno@clisp.org>
56612
56613         * build-aux/install-reloc: Remove object files left over by some
56614         compilers.
56615         Reported by Ralf Wildenhues.
56616
56617 2007-03-01  Bruno Haible  <bruno@clisp.org>
56618
56619         * build-aux/install-reloc: Break long lines.
56620
56621 2007-03-01  Bruno Haible  <bruno@clisp.org>
56622
56623         * doc/relocatable.texi: Document that it may not work on OpenBSD.
56624         Reported by Ralf Wildenhues.
56625
56626 2007-03-01  Bruno Haible  <bruno@clisp.org>
56627
56628         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
56629         include ordering constraints.
56630
56631 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56632
56633         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
56634         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
56635         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
56636         as another example.
56637         * lib/time_.h: Fix misspelling.
56638         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56639         Require gl_HEADER_TIME_H_DEFAULTS.
56640         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
56641         * m4/time_r.m4 (gl_TIME_R): Likewise.
56642         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
56643
56644 2007-03-01  Bruno Haible  <bruno@clisp.org>
56645
56646         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
56647         * m4/utimens.m4 (gl_UTIMENS): Likewise.
56648
56649 2007-03-01  Jim Meyering  <jim@meyering.net>
56650
56651         * modules/xreadlink (Maintainer): Add my name.
56652         * modules/xreadlink-with-size (Depends-on): Alphabetize.
56653
56654 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
56655             Bruno Haible  <bruno@clisp.org>
56656
56657         * build-aux/install-reloc: Compile also c-ctype.c.
56658         * build-aux/relocatable.sh.in: New file.
56659         * doc/relocatable.texi: New file.
56660         * doc/relocatable-maint.texi: New file.
56661         * doc/gnulib.texi: Include relocatable-maint.texi.
56662         * lib/progreloc.c: Include unistd.h unconditionally.
56663         * lib/relocwrapper.c: Include unistd.h unconditionally.
56664         Include c-ctype.h.
56665         (add_dotbin): Use c_tolower.
56666         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
56667         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
56668         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
56669         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
56670         to m4/relocatable-lib.m4.
56671         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
56672         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
56673         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
56674         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
56675         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
56676         * modules/relocatable: New file.
56677         * modules/relocatable-lib: New file.
56678         * modules/relocatable-script: New file.
56679
56680 2007-02-28  Bruno Haible  <bruno@clisp.org>
56681
56682         Import --enable-relocatable infrastructure.
56683         * build-aux/config.libpath: New file, from GNU gettext.
56684         * build-aux/install-reloc: New file, from GNU gettext.
56685         * build-aux/reloc-ldflags: New file, from GNU gettext.
56686         * lib/relocatable.h: New file, from GNU gettext.
56687         * lib/relocatable.c: New file, from GNU gettext.
56688         * lib/relocwrapper.c: New file, from GNU gettext.
56689         * m4/relocatable.m4: New file, from GNU gettext.
56690
56691 2007-02-28  Bruno Haible  <bruno@clisp.org>
56692
56693         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
56694
56695         * modules/xreadlink: New file, from GNU gettext with modifications.
56696         * lib/xreadlink.c: New file, from GNU gettext.
56697         * lib/xreadlink.h: Add comments.
56698         (xreadlink): New declaration.
56699
56700         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
56701         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
56702         lib/xreadlink-with-size.c.
56703         (configure.ac): Remove gl_XREADLINK invocation.
56704         (Makefile.am): Augment lib_SOURCES.
56705         * m4/xreadlink.m4: Remove file.
56706         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
56707         (xreadlink_with_size): Renamed from xreadink.
56708         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
56709         * modules/canonicalize (Depends-on): Replace xreadlink with
56710         xreadlink-with-size.
56711         * lib/canonicalize.c (canonicalize_filename_mode): Update.
56712
56713 2007-02-25  Jim Meyering  <jim@meyering.net>
56714
56715         * build-aux/announce-gen: When complaining about excess arguments,
56716         list them.
56717
56718 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56719
56720         * README: Document signed integer overflow situation more
56721         accurately.
56722
56723 2007-02-25  Bruno Haible  <bruno@clisp.org>
56724
56725         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
56726         'a' or 'A' conversion.
56727
56728 2007-02-25  Bruno Haible  <bruno@clisp.org>
56729
56730         * modules/filename: Renamed from modules/pathname.
56731         (Files): Replace lib/pathname.h with lib/filename.h. Replace
56732         lib/concatpath.c with lib/concat-filename.c.
56733         (Makefile.am): Update.
56734         (Include): Replace pathname.h with filename.h.
56735         * lib/filename.h: Renamed from lib/pathname.h.
56736         (concatenated_filename): Renamed from concatenated_pathname.
56737         * lib/concat-filename.c: Renamed from lib/concatpath.c.
56738         (concatenated_filename): Renamed from concatenated_pathname.
56739         * lib/findprog.c: Include filename.h instead of pathname.h.
56740         (find_in_path): Update.
56741         * lib/javacomp.c: Include filename.h instead of pathname.h.
56742         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56743         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56744         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56745         is_oldgcj_14_13_usable, is_javac_usable): Update.
56746         * lib/javaexec.c: Include filename.h instead of pathname.h.
56747         (execute_java_class): Update.
56748         * modules/findprog: Update.
56749         * modules/javacomp: Update.
56750         * modules/javaexec: Update.
56751         * MODULES.html.sh (File system functions): Add 'filename', remove
56752         'pathname'.
56753
56754 2007-02-25  Bruno Haible  <bruno@clisp.org>
56755
56756         * modules/printf-frexpl-tests: New file.
56757         * tests/test-printf-frexpl.c: New file.
56758
56759         * modules/printf-frexpl: New file.
56760         * lib/printf-frexpl.h: New file.
56761         * lib/printf-frexpl.c: New file.
56762         * m4/printf-frexpl.m4: New file.
56763
56764 2007-02-25  Bruno Haible  <bruno@clisp.org>
56765
56766         * modules/printf-frexp-tests: New file.
56767         * tests/test-printf-frexp.c: New file.
56768
56769         * modules/printf-frexp: New file.
56770         * lib/printf-frexp.h: New file.
56771         * lib/printf-frexp.c: New file.
56772         * m4/printf-frexp.m4: New file.
56773
56774 2007-02-25  Bruno Haible  <bruno@clisp.org>
56775
56776         Assume automake >= 1.10 for the tests.
56777         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
56778         * modules/arctwo-tests: Likewise.
56779         * modules/argp-tests: Likewise.
56780         * modules/avltree-list-tests: Likewise.
56781         * modules/avltree-oset-tests: Likewise.
56782         * modules/avltreehash-list-tests: Likewise.
56783         * modules/carray-list-tests: Likewise.
56784         * modules/crc-tests: Likewise.
56785         * modules/des-tests: Likewise.
56786         * modules/gc-arcfour-tests: Likewise.
56787         * modules/gc-arctwo-tests: Likewise.
56788         * modules/gc-des-tests: Likewise.
56789         * modules/gc-hmac-md5-tests: Likewise.
56790         * modules/gc-hmac-sha1-tests: Likewise.
56791         * modules/gc-md2-tests: Likewise.
56792         * modules/gc-md4-tests: Likewise.
56793         * modules/gc-md5-tests: Likewise.
56794         * modules/gc-pbkdf2-sha1-tests: Likewise.
56795         * modules/gc-rijndael-tests: Likewise.
56796         * modules/gc-sha1-tests: Likewise.
56797         * modules/gc-tests: Likewise.
56798         * modules/getaddrinfo-tests: Likewise.
56799         * modules/hmac-md5-tests: Likewise.
56800         * modules/hmac-sha1-tests: Likewise.
56801         * modules/linked-list-tests: Likewise.
56802         * modules/linkedhash-list-tests: Likewise.
56803         * modules/lock-tests: Likewise.
56804         * modules/md2-tests: Likewise.
56805         * modules/md4-tests: Likewise.
56806         * modules/md5-tests: Likewise.
56807         * modules/rbtree-list-tests: Likewise.
56808         * modules/rbtree-oset-tests: Likewise.
56809         * modules/rbtreehash-list-tests: Likewise.
56810         * modules/read-file-tests: Likewise.
56811         * modules/rijndael-tests: Likewise.
56812         * modules/stdint-tests: Likewise.
56813         * modules/tls-tests: Likewise.
56814
56815 2007-02-24  Bruno Haible  <bruno@clisp.org>
56816
56817         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
56818         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
56819         function; instead check whether isnan with a double argument links.
56820         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
56821         function; instead check whether isnan with a 'long double' argument
56822         links.
56823         Reported by Eric Blake <ebb9@byu.net>.
56824
56825 2007-02-24  Bruno Haible  <bruno@clisp.org>
56826
56827         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
56828         defined.
56829         * lib/isnanl.c: Remove all code. Just include isnan.c.
56830         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
56831
56832 2007-02-25  Jim Meyering  <jim@meyering.net>
56833
56834         Avoid conflicting types for 'unsetenv' on FreeBSD.
56835         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
56836         conflicting with FreeBSD's (5.0 and 6.1) function declaration
56837         in stdlib.h.
56838
56839 2007-02-24  Bruno Haible  <bruno@clisp.org>
56840
56841         * modules/isnanl-nolibm-tests: New file.
56842         * tests/test-isnanl.c: New file.
56843
56844         * modules/isnanl-nolibm: New file.
56845         * lib/isnanl.h: New file.
56846         * lib/isnanl.c: New file.
56847         * m4/isnanl.m4: New file.
56848
56849 2007-02-24  Bruno Haible  <bruno@clisp.org>
56850
56851         * modules/isnan-nolibm-tests: New file.
56852         * tests/test-isnan.c: New file.
56853
56854         * modules/isnan-nolibm: New file.
56855         * lib/isnan.h: New file.
56856         * lib/isnan.c: New file.
56857         * m4/isnan.m4: New file.
56858
56859 2007-02-24  Bruno Haible  <bruno@clisp.org>
56860
56861         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
56862         assume that an exponent fits in 20 bits.
56863
56864 2007-02-24  Jim Meyering  <jim@meyering.net>
56865
56866         * m4/regex.m4: Update the description of the configure-time option,
56867         --without-included-regex, to state accurately what the defaults are,
56868         and perhaps to give people an idea why using this option is risky.
56869
56870 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
56871
56872         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
56873         loops on small arguments.  This attempts to avoid the problem
56874         Bruno Haible reported for AIX 4.3.2 in
56875         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
56876
56877 2007-02-23  Bruno Haible  <bruno@clisp.org>
56878
56879         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
56880         Needed for help2man.
56881
56882 2007-02-23  Karl Berry  <karl@gnu.org>
56883
56884         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
56885         exists, foo.h should be cvs-ignored, not committed.
56886
56887 2007-02-23  Eric Blake  <ebb9@byu.net>
56888
56889         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
56890         * lib/stat-time.h (includes): Likewise.
56891         * lib/utimecmp.c (includes): Likewise.
56892         * lib/utimens.h (includes): Likewise.
56893         * lib/getdate.y (includes): Also include "timespec.h" for use
56894         internal to the module.
56895         * modules/utimens (Depends-on): Revert yesterday's patch.
56896         * modules/nanosleep (Depends-on): Add missing dependency.
56897
56898 2007-02-22  Bruno Haible  <bruno@clisp.org>
56899
56900         * lib/glob.c: Don't include getlogin_r.h.
56901
56902 2007-02-22  Jim Meyering  <jim@meyering.net>
56903
56904         * modules/utimens (Depends-on): Add timespec, required for
56905         utimens.h's inclusion of timespec.h.
56906
56907 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
56908
56909         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
56910         long unreadable paths in GNU/Linux.  Problem reported by Andreas
56911         Schwab in
56912         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
56913         I'll try to think of a better way to fix the Solaris problem.
56914
56915         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
56916         like glibc; on Solaris 10, it fails with errno == EINVAL.
56917         POSIX says the behavior is unspecified if the first argument is NULL,
56918         so play it safe and never pass NULL to the system getcwd.
56919
56920 2007-02-21  Jim Meyering  <jim@meyering.net>
56921
56922         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
56923         of gettimeofday.  It would conflict with the one now always
56924         provided via sys_time_.h.  Reported by Matthew Woehlke, as
56925         an IRIX 6.5 build failure.
56926
56927 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
56928
56929         Minor fixups to port to Solaris 10 with Sun C 5.8.
56930         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
56931         * modules/getcwd (Depends-on): Add dirfd.
56932         * lib/putenv.c (putenv): #undef it.
56933         (rpl_putenv): New decl.
56934         (malloc, free): Include <stdlib.h> rather than prototyping separately.
56935
56936 2007-02-20  Bruno Haible  <bruno@clisp.org>
56937
56938         * modules/stdio-tests: New file.
56939         * tests/test-stdio.c: New file.
56940
56941         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
56942         (Depends-on): Add stdio.
56943         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
56944         (Include): Use <stdio.h> instead of vsnprintf.h.
56945         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
56946         HAVE_DECL_VSNPRINTF.
56947         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
56948
56949         * modules/snprintf (Files): Remove lib/snprintf.h.
56950         (Depends-on): Add stdio.
56951         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
56952         (Include): Use <stdio.h> instead of snprintf.h.
56953         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
56954         HAVE_DECL_SNPRINTF.
56955         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
56956         * lib/getaddrinfo.c: Likewise.
56957
56958         * modules/stdio: New file.
56959         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
56960         * lib/snprintf.h: Remove file.
56961         * lib/vsnprintf.h: Remove file.
56962         * lib/.cppi-disable: Remove snprintf.h.
56963         * m4/stdio_h.m4: New file.
56964         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
56965
56966 2007-02-20  Jim Meyering  <jim@meyering.net>
56967
56968         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
56969         used by e.g., mingw.  From Bruno Haible.
56970
56971 2007-02-19  Bruno Haible  <bruno@clisp.org>
56972
56973         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
56974         warnings.
56975         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56976
56977 2007-02-19  Bruno Haible  <bruno@clisp.org>
56978
56979         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
56980         from mingw users.
56981
56982 2007-02-19  Bruno Haible  <bruno@clisp.org>
56983
56984         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
56985         warnings.
56986         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
56987
56988 2007-02-19  Jim Meyering  <jim@meyering.net>
56989
56990         Don't use FD after a successful "fdopendir (fd)".
56991         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
56992         Reset it by calling dirfd on the just-obtained DIR*.
56993
56994         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
56995         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
56996
56997 2007-02-18  Bruno Haible  <bruno@clisp.org>
56998
56999         * lib/readlink.c: Include <unistd.h>.
57000         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
57001         HAVE_READLINK.
57002         * modules/readlink (Depends-on): Add unistd.
57003         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57004         (Include): Add <unistd.h>.
57005
57006         * lib/getlogin_r.h: Remove file.
57007         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
57008         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
57009         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
57010         HAVE_DECL_GETLOGIN_R.
57011         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
57012         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57013         (Include): Use <unistd.h> instead of getlogin_r.h.
57014
57015         * lib/getcwd.h: Remove file.
57016         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
57017         * lib/xgetcwd.c: Likewise.
57018         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
57019         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
57020         * modules/getcwd (Files): Remove lib/getcwd.h.
57021         (Depends-on): Add unistd.
57022         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57023         (Include): Use <unistd.h> instad of getcwd.h.
57024
57025         * lib/ftruncate.c: Include <unistd.h> first.
57026         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
57027         Set HAVE_FTRUNCATE.
57028         * modules/ftruncate (Depends-on): Add unistd.
57029         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57030
57031         * lib/fchdir.c: Include <unistd.h> first.
57032         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
57033         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
57034         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
57035         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57036         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
57037
57038         * lib/dup2.c: Include <unistd.h> first.
57039         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
57040         HAVE_DUP2.
57041         * modules/dup2 (Depends-on): Add unistd.
57042         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57043
57044         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
57045         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
57046         REPLACE_CHOWN. Don't define chown as a macro here.
57047         * modules/chown (Depends-on): Add unistd.
57048         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57049
57050         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
57051         Add definition for GL_LINK_WARNING.
57052         (chown, dup2): New declarations.
57053         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
57054         link warning.
57055         (ftruncate): New declaration.
57056         (getcwd): New declaration, taken from old getcwd.h.
57057         (getlogin_r): New declaration, taken from old getlogin_r.h.
57058         (readlink): New declaration.
57059         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
57060         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
57061         (gl_PREREQ_UNISTD): Remove macro.
57062         (gl_UNISTD_MODULE_INDICATOR): New macro.
57063         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
57064         many new variables. Don't set UNISTD_H.
57065         * modules/unistd (Description): Change.
57066         (Depends-on): Add link-warning.
57067         (configure.ac): Update.
57068         (Makefile.am): Create unistd.h always. Substitute many new variables
57069         into it.
57070
57071 2007-02-18  Bruno Haible  <bruno@clisp.org>
57072
57073         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
57074         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
57075         HAVE_GETSUBOPT.
57076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
57077         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
57078         * lib/getsubopt.h: Remove file.
57079         * modules/getsubopt (Files): Remove lib/getsubopt.h.
57080         (Depends-on): Add stdlib.
57081         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57082         (Includes): Use <stdlib.h> instead of getsubopt.h.
57083         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
57084         Set HAVE_GETSUBOPT.
57085         * lib/getsubopt.c: Don't include getsubopt.h.
57086
57087 2007-02-18  Bruno Haible  <bruno@clisp.org>
57088
57089         * modules/fchdir (Depends-on): Add dup2.
57090
57091 2007-02-18  Bruno Haible  <bruno@clisp.org>
57092
57093         * lib/stdlib_.h: Handle glibc's special invocation convention
57094         specially.
57095
57096 2007-02-18  Bruno Haible  <bruno@clisp.org>
57097
57098         * modules/stdlib-tests: New file.
57099         * tests/test-stdlib.c: New file.
57100
57101         * modules/mkstemp (Files): Remove lib/mkstemp.h.
57102         (Depends-on): Add stdlib.
57103         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57104         (Includes): Use <stdlib.h> instead of mkstemp.h.
57105         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57106         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
57107         * lib/mkstemp.c: Don't include mkstemp.h.
57108         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
57109         * lib/stdlib--.h: Don't include mkstemp.h.
57110
57111         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
57112         (Depends-on): Add stdlib.
57113         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57114         (Includes): Use <stdlib.h> instead of mkdtemp.h.
57115         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
57116         HAVE_MKDTEMP.
57117         * lib/mkdtemp.c: Don't include mkdtemp.h.
57118         * lib/clean-temp.c: Don't include mkdtemp.h.
57119
57120         * modules/exit (Files): Remove lib/exit.h.
57121         (Depends-on): Add stdlib.
57122         (Makefile.am): Remove lib_SOURCES.
57123         (Include): Use <stdlib.h> instead of exit.h.
57124         * lib/argmatch.c: Don't include exit.h.
57125         * lib/execute.c: Likewise.
57126         * lib/pagealign_alloc.c: Likewise.
57127         * lib/pipe.c: Likewise.
57128         * lib/wait-process.c: Likewise.
57129         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
57130         * lib/exitfail.c: Likewise.
57131         * lib/savewd.c: Likewise.
57132         * lib/xsetenv.c: Likewise.
57133
57134         * modules/stdlib: New file.
57135         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
57136         and extra comments about mkstemp().
57137         * lib/exit.h: Remove file.
57138         * lib/mkdtemp.h: Remove file.
57139         * lib/mkstemp.h: Remove file.
57140         * m4/stdlib_h.m4: New file.
57141         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
57142
57143 2007-02-18  Bruno Haible  <bruno@clisp.org>
57144
57145         * modules/math-tests: New file.
57146         * tests/test-math.c: New file.
57147
57148         * modules/math: New file.
57149         * modules/mathl (Files): Remove lib/mathl.h.
57150         (Depends-on): Add math.
57151         (Makefile.am): Don't mention mathl.h.
57152         (Include): Use <math.h> instead of mathl.h.
57153         * lib/math_.h: New file.
57154         * lib/mathl.h: Remove file.
57155         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
57156         mathl.h.
57157         * lib/asinl.c: Likewise.
57158         * lib/atanl.c: Likewise.
57159         * lib/ceill.c: Likewise.
57160         * lib/cosl.c: Likewise.
57161         * lib/expl.c: Likewise.
57162         * lib/floorl.c: Likewise.
57163         * lib/frexpl.c: Likewise.
57164         * lib/ldexpl.c: Likewise.
57165         * lib/logl.c: Likewise.
57166         * lib/sincosl.c: Likewise.
57167         * lib/sinl.c: Likewise.
57168         * lib/sqrtl.c: Likewise.
57169         * lib/tanl.c: Likewise.
57170         * lib/trigl.c: Likewise.
57171         * m4/math_h.m4: New file.
57172         * MODULES.html.sh (Mathematics): Add math.
57173
57174 2007-02-17  Bruno Haible  <bruno@clisp.org>
57175
57176         * modules/wctype-tests: New file.
57177         * tests/test-wctype.c: New file.
57178
57179         * modules/wchar-tests: New file.
57180         * tests/test-wchar.c: New file.
57181
57182         * modules/unistd-tests: New file.
57183         * tests/test-unistd.c: New file.
57184
57185         * modules/time-tests: New file.
57186         * tests/test-time.c: New file.
57187
57188         * modules/sysexits-tests: New file.
57189         * tests/test-sysexits.c: New file.
57190
57191         * modules/sys_time-tests: New file.
57192         * tests/test-sys_time.c: New file.
57193
57194         * modules/sys_stat-tests: New file.
57195         * tests/test-sys_stat.c: New file.
57196
57197         * modules/sys_socket-tests: New file.
57198         * tests/test-sys_socket.c: New file.
57199
57200         * modules/sys_select-tests: New file.
57201         * tests/test-sys_select.c: New file.
57202
57203         * modules/string-tests: New file.
57204         * tests/test-string.c: New file.
57205
57206         * modules/stdbool-tests: New file.
57207         * tests/test-stdbool.c: New file.
57208
57209         * modules/netinet_in-tests: New file.
57210         * tests/test-netinet_in.c: New file.
57211
57212         * modules/inttypes-tests: New file.
57213         * tests/test-inttypes.c: New file.
57214
57215         * modules/fcntl-tests: New file.
57216         * tests/test-fcntl.c: New file.
57217
57218         * modules/byteswap-tests: New file.
57219         * tests/test-byteswap.c: New file.
57220
57221         * modules/arpa_inet-tests: New file.
57222         * tests/test-arpa_inet.c: New file.
57223
57224 2007-02-17  Bruno Haible  <bruno@clisp.org>
57225
57226         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
57227         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
57228         if the corresponding module is not enabled. Emit link warnings if
57229         the function is used nevertheless.
57230         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
57231         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
57232         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
57233         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
57234         * modules/inttypes (Depends-on): Add link-warning.
57235         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57236         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
57237         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
57238         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
57239         * modules/imaxdiv (configure.ac): Likewise.
57240         * modules/strtoimax (configure.ac): Likewise.
57241         * modules/strtoumax (configure.ac): Likewise.
57242
57243 2007-02-17  Bruno Haible  <bruno@clisp.org>
57244
57245         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
57246         gl_STRING_MODULE_INDICATOR_DEFAULTS.
57247         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
57248         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
57249
57250 2007-02-17  Bruno Haible  <bruno@clisp.org>
57251
57252         * modules/link-warning: New file.
57253         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
57254         * lib/string_.h (GL_LINK_WARNING): Remove definition.
57255         * modules/string (Depends-on): Add link-warning.
57256         (Makefile.am): Copy the contents of build-aux/link-warning.h into
57257         string.h.
57258         * MODULES.html.sh (Support for building libraries and executables): Add
57259         link-warning.
57260
57261 2007-02-17  Bruno Haible  <bruno@clisp.org>
57262
57263         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
57264         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
57265         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
57266         long lines.
57267
57268 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
57269             Bruno Haible  <bruno@clisp.org>
57270
57271         * modules/tmpfile: New file.
57272         * lib/tmpfile.c: New file.
57273         * m4/tmpfile.m4: New file.
57274         * MODULES.html.sh (func_all_modules): New section "Input/output".
57275
57276 2007-02-15  Bruno Haible  <bruno@clisp.org>
57277
57278         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
57279         (supports_delete_on_close): New function.
57280         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
57281
57282 2007-02-14  Bruno Haible  <bruno@clisp.org>
57283
57284         * modules/mbspcasecmp-tests: New file.
57285         * tests/test-mbspcasecmp.sh: New file.
57286         * tests/test-mbspcasecmp.c: New file.
57287
57288         New module mbspcasecmp.
57289         * modules/mbspcasecmp: New file.
57290         * lib/mbspcasecmp.c: New file.
57291         * lib/string_.h (strncasecmp): Change warning message.
57292         (mbspcasecmp): New declaration.
57293         * m4/mbspcasecmp.m4: New file.
57294         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57295         GNULIB_MBSPCASECMP.
57296         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
57297         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
57298
57299 2007-02-14  Bruno Haible  <bruno@clisp.org>
57300
57301         * modules/mbsncasecmp-tests: New file.
57302         * tests/test-mbsncasecmp.sh: New file.
57303         * tests/test-mbsncasecmp.c: New file.
57304
57305         New module mbsncasecmp.
57306         * modules/mbsncasecmp: New file.
57307         * lib/mbsncasecmp.c: New file.
57308         * lib/string_.h (mbsncasecmp): New declaration.
57309         * m4/mbsncasecmp.m4: New file.
57310         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57311         GNULIB_MBSNCASECMP.
57312         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
57313         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
57314
57315 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
57316
57317         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
57318         Verify that it doesn't overlap with our flags.
57319         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
57320         do not have the desired effect in multibyte locales; instead, use
57321         mbscasecmp.
57322         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
57323         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
57324         we don't require GNU fnmatch ourselves (if our users require it, they
57325         should do so explicitly).
57326
57327         Fix regex code so it doesn't rely on strcasecmp.
57328         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
57329         Otherwise, include gnulib's langinfo.h.
57330         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
57331         undesirable behavior in non-C locales.  Instead, rely on localecharset.
57332         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
57333         * modules/regex (FILES): Remove m4/codeset.m4.
57334         (Depends-on): Add localcharset.  Remove strcase.
57335
57336 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57337
57338         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
57339         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
57340
57341 2007-02-13  Bruno Haible  <bruno@clisp.org>
57342
57343         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
57344         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57345
57346 2007-02-12  Bruno Haible  <bruno@clisp.org>
57347
57348         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57349         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
57350         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
57351         time warning rather than a link error.
57352
57353 2007-02-12  Bruno Haible  <bruno@clisp.org>
57354
57355         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
57356         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57357         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57358
57359 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57360
57361         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
57362         args, not 2.
57363
57364 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57365
57366         New module 'time', so that apps can include <time.h> as per
57367         POSIX and GNU instead of separate include files like time_r.h
57368         and timegm.h.  This implementation tries out a simpler approach
57369         for replacing decls in standard include files (as compared to
57370         the string module), somewhat as an experiment.
57371
57372         * config/srclist.txt: Comment out mktime.c for now.
57373         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
57374         since it doesn't apply any more.  Use generic wording instead.
57375         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
57376         'time'.
57377         * lib/time_.h, m4/time_h.m4, modules/time: New files.
57378         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
57379         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
57380         Don't include <sys/types.h>; no longer needed since we assume C89.
57381         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
57382         * lib/strftime.c: Likewise.
57383         * lib/time_r.c: Likewise.
57384         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
57385         * lib/nanosleep.c: Include <time.h> first, to check interface.
57386         * lib/strptime.c: Likewise.
57387         * lib/time_r.c: Likewise.
57388         * lib/timegm.c: Likewise.
57389         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
57390         needed.
57391         * lib/timegm.c: Don't include timegm.h; no longer needed.
57392         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
57393         time.h now handles any problems in that area.
57394         (struct timespec, nanosleep): Remove; time.h now arranges for these.
57395         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
57396         that time.h defines struct timespec.
57397         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
57398         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
57399         handles that.
57400         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
57401         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
57402         needed.  Set REPLACE_LOCALTIME.
57403         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
57404         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
57405         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
57406         nanosleep; time_h.m4 now does that.  Don't require
57407         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
57408         module handles this now.
57409         * modules/getdate (Depends-on): Remove timespec.  Add time.
57410         * modules/nanosleep (Depends-on): Likewise.
57411         * modules/stat-time (Depends-on): Likewise.
57412         * modules/nanosleep (Include): Include time.h, not timespec.h.
57413         * modules/strptime (Files): Remove lib/strptime.h.
57414         (Depends-on): Add extensions, time.
57415         (Include): Include time.h, not strptime.h.
57416         * modules/time_r (Files): Remove lib/time_r.h.
57417         (Depends-on): Add time.
57418         (Include): Include time.h, not time_r.h.
57419         * modules/timegm: Likewise.
57420         * modules/timespec (Description): Now does timespec-related decls
57421         of our own, instead of struct timespec itself.
57422         (Depends-on): Add time; remove extensions.
57423         (Maintainer): Add self.
57424         * modules/utimecmp (Depends-on): Add time; remove timespec.
57425         * modules/utimens (Depends-on): Likewise.
57426         * modules/xnanosleep (Depends-on): Likewise.
57427
57428 2007-02-11  Bruno Haible  <bruno@clisp.org>
57429
57430         * lib/c-strstr.c: Include allocsa.h.
57431         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57432         * lib/c-strcasestr.c: Include allocsa.h.
57433         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57434         * lib/strcasestr.c: Include allocsa.h.
57435         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
57436         * lib/mbsstr.c: Include allocsa.h.
57437         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57438         allocsa/freesa instead of malloc/free.
57439         * lib/mbscasestr.c: Include allocsa.h.
57440         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
57441         allocsa/freesa instead of malloc/free.
57442         * modules/c-strstr (Depends-on): Add allocsa.
57443         * modules/c-strcasestr (Depends-on): Likewise.
57444         * modules/strcasestr (Depends-on): Likewise.
57445         * modules/mbsstr (Depends-on): Likewise.
57446         * modules/mbscasestr (Depends-on): Likewise.
57447
57448 2007-02-11  Bruno Haible  <bruno@clisp.org>
57449
57450         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
57451
57452         * modules/mbsspn-tests: New file.
57453         * tests/test-mbsspn.sh: New file.
57454         * tests/test-mbsspn.c: New file.
57455
57456 2007-02-11  Bruno Haible  <bruno@clisp.org>
57457
57458         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
57459
57460         * modules/mbspbrk-tests: New file.
57461         * tests/test-mbspbrk.sh: New file.
57462         * tests/test-mbspbrk.c: New file.
57463
57464 2007-02-11  Bruno Haible  <bruno@clisp.org>
57465
57466         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
57467         unneeded cast.
57468
57469         * modules/mbscspn-tests: New file.
57470         * tests/test-mbscspn.sh: New file.
57471         * tests/test-mbscspn.c: New file.
57472
57473 2007-02-11  Bruno Haible  <bruno@clisp.org>
57474
57475         * modules/mbscasecmp-tests: New file.
57476         * tests/test-mbscasecmp.sh: New file.
57477         * tests/test-mbscasecmp.c: New file.
57478
57479 2007-02-11  Bruno Haible  <bruno@clisp.org>
57480
57481         Ensure O(n) worst-case complexity of mbscasestr.
57482         * lib/mbscasestr.c: Include stdbool.h.
57483         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57484         functions.
57485         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
57486         the bookkeeping indicates that it's worth it.
57487         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
57488
57489         * modules/mbscasestr-tests: New file.
57490         * tests/test-mbscasestr1.c: New file.
57491         * tests/test-mbscasestr2.sh: New file.
57492         * tests/test-mbscasestr2.c: New file.
57493         * tests/test-mbscasestr3.sh: New file.
57494         * tests/test-mbscasestr3.c: New file.
57495         * tests/test-mbscasestr4.sh: New file.
57496         * tests/test-mbscasestr4.c: New file.
57497         * m4/locale-tr.m4: New file.
57498
57499 2007-02-11  Bruno Haible  <bruno@clisp.org>
57500
57501         Ensure O(n) worst-case complexity of mbsstr.
57502         * lib/mbsstr.c: Include stdbool.h.
57503         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
57504         functions.
57505         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
57506         bookkeeping indicates that it's worth it.
57507         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
57508
57509         * modules/mbsstr-tests: New file.
57510         * tests/test-mbsstr1.c: New file.
57511         * tests/test-mbsstr2.sh: New file.
57512         * tests/test-mbsstr2.c: New file.
57513         * tests/test-mbsstr3.sh: New file.
57514         * tests/test-mbsstr3.c: New file.
57515         * m4/locale-fr.m4: New file.
57516
57517 2007-02-11  Bruno Haible  <bruno@clisp.org>
57518
57519         * lib/mbsrchr.c (mbsrchr): Fix bug.
57520
57521         * modules/mbsrchr-tests: New file.
57522         * tests/test-mbsrchr.sh: New file.
57523         * tests/test-mbsrchr.c: New file.
57524
57525 2007-02-11  Bruno Haible  <bruno@clisp.org>
57526
57527         * lib/mbschr.c (mbschr): Fix bug.
57528
57529         * modules/mbschr-tests: New file.
57530         * tests/test-mbschr.sh: New file.
57531         * tests/test-mbschr.c: New file.
57532         * m4/locale-zh.m4: New file.
57533
57534 2007-02-11  Bruno Haible  <bruno@clisp.org>
57535
57536         Support for copying multibyte string iterators.
57537         * lib/mbiter.h: Include <string.h>.
57538         (mbiter_multi_copy): New function.
57539         (mbi_copy): New macro.
57540         * lib/mbuiter.h: Include <string.h>.
57541         (mbuiter_multi_copy): New function.
57542         (mbui_copy): New macro.
57543
57544 2007-02-11  Bruno Haible  <bruno@clisp.org>
57545
57546         New module mbslen.
57547         * modules/mbslen: New file.
57548         * lib/mbslen.c: New file.
57549         * lib/string_.h (mbslen): New declaration.
57550         * m4/mbslen.m4: New file.
57551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57552         GNULIB_MBSLEN.
57553         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
57554         * MODULES.html.sh (Internationalization functions): Add mbslen.
57555
57556 2007-02-11  Bruno Haible  <bruno@clisp.org>
57557
57558         Ensure O(n) worst-case complexity of strcasestr substitute.
57559         * lib/strcasestr.c: Include stdbool.h.
57560         (knuth_morris_pratt): New function.
57561         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57562         bookkeeping indicates that it's worth it.
57563         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
57564
57565         * modules/strcasestr-tests: New file.
57566         * tests/test-strcasestr.c: New file.
57567
57568 2007-02-11  Bruno Haible  <bruno@clisp.org>
57569
57570         Ensure O(n) worst-case complexity of c_strcasestr.
57571         * lib/c-strcasestr.c: Include stdbool.h, string.h.
57572         (knuth_morris_pratt): New function.
57573         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
57574         the bookkeeping indicates that it's worth it.
57575         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
57576
57577         * modules/c-strcasestr-tests: New file.
57578         * tests/test-c-strcasestr.c: New file.
57579
57580 2007-02-11  Bruno Haible  <bruno@clisp.org>
57581
57582         Ensure O(n) worst-case complexity of c_strstr.
57583         * lib/c-strstr.c: Include stdbool.h, string.h.
57584         (knuth_morris_pratt): New function.
57585         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
57586         bookkeeping indicates that it's worth it.
57587         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
57588
57589         * lib/c-strstr.c: Complete rewrite for maintainability.
57590
57591         * modules/c-strstr-tests: New file.
57592         * tests/test-c-strstr.c: New file.
57593
57594 2007-02-11  Bruno Haible  <bruno@clisp.org>
57595
57596         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
57597         5.2.1 and earlier, whereby \055 was treated just like the range
57598         delimiter '-'.
57599         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57600
57601 2007-02-08  Bruno Haible  <bruno@clisp.org>
57602
57603         * modules/regex (Depends-on): Add stdbool.
57604         Reported by Dalibor Topic <robilad@kaffe.org>.
57605
57606 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
57607
57608         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
57609         Prefer returning from main to exiting from it.
57610         Remove unnecessary parens after sizeof.
57611
57612 2007-02-05  Bruno Haible  <bruno@clisp.org>
57613
57614         New module mbssep.
57615         * modules/mbssep: New file.
57616         * lib/mbssep.c: New file.
57617         * lib/string_.h (strsep): Add a conditional link warning.
57618         (mbssep): New declaration.
57619         * m4/mbssep.m4: New file.
57620         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57621         GNULIB_MBSSEP.
57622         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
57623         * MODULES.html.sh (Internationalization functions): Add mbssep.
57624
57625 2007-02-05  Bruno Haible  <bruno@clisp.org>
57626
57627         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
57628         Optimize search in case of 1 delimiter.
57629
57630 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57631
57632         * lib/acl.h: Include sys/types.h before sys/acl.h.
57633
57634 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57635
57636         Merge upstream fix for glibc bugzilla #3957:
57637
57638         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
57639
57640         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
57641         bit for RE_HAT_LISTS_NOT_NEWLINE.
57642         (build_charclass_op): Remove bogus comment.
57643
57644 2007-02-05  Simon Josefsson  <simon@josefsson.org>
57645
57646         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
57647
57648 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57649
57650         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
57651         * lib/memmem.c [!defined _LIBC]: Include config.h.
57652
57653 2007-02-04  Bruno Haible  <bruno@clisp.org>
57654
57655         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
57656         warning message.
57657
57658 2007-02-04  Bruno Haible  <bruno@clisp.org>
57659
57660         New module mbstok_r.
57661         * modules/mbstok_r: New file.
57662         * lib/mbstok_r.c: New file.
57663         * lib/string_.h (strtok_r): Change argument names to match the
57664         comments. Add a conditional link warning.
57665         (mbstok_r): New declaration.
57666         * m4/mbstok_r.m4: New file.
57667         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57668         GNULIB_MBSTOK_R.
57669         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
57670         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
57671
57672 2007-02-04  Bruno Haible  <bruno@clisp.org>
57673
57674         New module mbsspn.
57675         * modules/mbsspn: New file.
57676         * lib/mbsspn.c: New file.
57677         * lib/string_.h (strspn): Add a conditional link warning.
57678         (mbsspn): New declaration.
57679         * m4/mbsspn.m4: New file.
57680         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57681         GNULIB_MBSSPN.
57682         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
57683         * MODULES.html.sh (Internationalization functions): Add mbsspn.
57684
57685 2007-02-04  Bruno Haible  <bruno@clisp.org>
57686
57687         New module mbspbrk.
57688         * modules/mbspbrk: New file.
57689         * lib/mbspbrk.c: New file.
57690         * lib/string_.h (strpbrk): Add a conditional link warning.
57691         (mbspbrk): New declaration.
57692         * m4/mbspbrk.m4: New file.
57693         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57694         GNULIB_MBSPBRK.
57695         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
57696         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
57697
57698 2007-02-04  Bruno Haible  <bruno@clisp.org>
57699
57700         New module mbscspn.
57701         * modules/mbscspn: New file.
57702         * lib/mbscspn.c: New file.
57703         * lib/string_.h (strcspn): Add a conditional link warning.
57704         (mbscspn): New declaration.
57705         * m4/mbscspn.m4: New file.
57706         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57707         GNULIB_MBSCSPN.
57708         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
57709         * MODULES.html.sh (Internationalization functions): Add mbscspn.
57710
57711 2007-02-04  Bruno Haible  <bruno@clisp.org>
57712
57713         New module mbscasestr, reduced goal of strcasestr.
57714         * modules/mbscasestr: New file.
57715         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
57716         (mbscasestr): Renamed from strcasestr.
57717         * lib/strcasestr.c: Don't include mbuiter.h.
57718         (strcasestr): Remove support for multibyte locales.
57719         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
57720         Change the conditional link warning.
57721         (mbscasestr): New declaration.
57722         * m4/mbscasestr.m4: New file.
57723         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
57724         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
57725         REPLACE_STRCASESTR.
57726         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
57727         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57728         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57729         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
57730         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
57731         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57732         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
57733         (Depends-on): Remove mbuiter.
57734         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
57735
57736 2007-02-04  Bruno Haible  <bruno@clisp.org>
57737
57738         Simplify handling of strncasecmp.
57739         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
57740         the conditional link warning.
57741         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57742         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
57743         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
57744         * modules/strcase (configure.ac): Don't invoke
57745         gl_STRING_MODULE_INDICATOR.
57746         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
57747
57748 2007-02-04  Bruno Haible  <bruno@clisp.org>
57749
57750         New module mbscasecmp, reduced goal of strcasecmp.
57751         * modules/mbscasecmp: New file.
57752         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
57753         (mbscasecmp): Renamed from strcasecmp.
57754         * lib/strcasecmp.c: Don't include mbuiter.h.
57755         (strcasecmp): Remove support for multibyte locales.
57756         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
57757         Change the conditional link warning.
57758         (mbscasecmp): New declaration.
57759         * m4/mbscasecmp.m4: New file.
57760         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
57761         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
57762         REPLACE_STRCASECMP.
57763         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
57764         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57765         GNULIB_MBSCASECMP.
57766         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
57767         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
57768         * modules/strcase (Files): Remove m4/mbrtowc.m4.
57769         (Depends-on): Remove mbuiter.
57770         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
57771
57772 2007-02-04  Bruno Haible  <bruno@clisp.org>
57773
57774         New module mbsstr. Remove module strstr.
57775         * modules/mbsstr: New file.
57776         * modules/strstr: Remove file.
57777         * lib/mbsstr.c: Renamed from lib/strstr.c.
57778         (mbsstr): Renamed from strstr.
57779         * lib/string_.h (strstr): Remove declaration. Change the conditional
57780         link warning.
57781         (mbsstr): New declaration.
57782         * m4/mbsstr.m4: New file.
57783         * m4/strstr.m4: Remove file.
57784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
57785         REPLACE_STRSTR.
57786         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
57787         Don't initialize GNULIB_STRSTR.
57788         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
57789         substitute GNULIB_STRSTR and REPLACE_STRSTR.
57790         * MODULES.html.sh (Internationalization functions): Add mbsstr.
57791         (Support for systems lacking ANSI C 89): Remove strstr.
57792
57793 2007-02-04  Bruno Haible  <bruno@clisp.org>
57794
57795         New module mbsrchr.
57796         * modules/mbsrchr: New file.
57797         * lib/mbsrchr.c: New file.
57798         * lib/string_.h (strrchr): Add a conditional link warning.
57799         (mbsrchr): New declaration.
57800         * m4/mbsrchr.m4: New file.
57801         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57802         GNULIB_MBSRCHR.
57803         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
57804         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
57805
57806 2007-02-04  Bruno Haible  <bruno@clisp.org>
57807
57808         New module mbschr.
57809         * modules/mbschr: New file.
57810         * lib/mbschr.c: New file.
57811         * lib/string_.h (strchr): Add a conditional link warning.
57812         (mbschr): New declaration.
57813         * m4/mbschr.m4: New file.
57814         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57815         GNULIB_MBSCHR.
57816         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
57817         * MODULES.html.sh (Internationalization functions): Add mbschr.
57818
57819 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57820
57821         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
57822
57823         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
57824
57825 2007-02-04  Bruno Haible  <bruno@clisp.org>
57826
57827         New module description section 'configure.ac-early'.
57828         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
57829         (func_get_autoconf_early_snippet): New function.
57830         (func_import, func_create_testdir): Use it. Remove special cases for
57831         modules 'extensions' and 'lock'.
57832         * modules/extensions (configure.ac-early): Require
57833         gl_USE_SYSTEM_EXTENSIONS.
57834         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
57835
57836 2007-02-04  Bruno Haible  <bruno@clisp.org>
57837
57838         Make use of gcj-4.3's -fsource and -ftarget option.
57839         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
57840         and if so try the options -fsource and -ftarget.
57841         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
57842         source_version, ftarget_option, target_version arguments.
57843         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
57844         (is_envjavac_oldgcj_14_14_usable): Renamed from
57845         is_envjavac_gcj_14_14_usable.
57846         (is_envjavac_oldgcj_14_13_usable): Renamed from
57847         is_envjavac_gcj_14_13_usable.
57848         (is_gcj_present): Update.
57849         (is_gcj_43, is_gcj43_usable): New functions.
57850         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
57851         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
57852         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
57853         try the options -fsource and -ftarget.
57854
57855 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57856
57857         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
57858         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
57859         larger value.
57860
57861 2007-02-03  Jim Meyering  <jim@meyering.net>
57862
57863         Give tools a better chance to allocate space for very large buffers.
57864         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
57865
57866         Make pwd and readlink work also when run with an unreadable parent dir
57867         on systems with openat support.
57868         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
57869         provided getcwd function, even when we have openat support.
57870         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
57871
57872 2007-02-02  Bruno Haible  <bruno@clisp.org>
57873
57874         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57875         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
57876         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
57877         portability problems if one of these functions is only used on specific
57878         platforms.
57879         Reported by Paul Eggert.
57880
57881 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
57882
57883         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
57884         is causing more trouble than it's curing.
57885         * lib/regex_internal.h (__mempcpy): Remove.
57886         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
57887         (and make the code a tad smaller to boot).
57888         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
57889
57890 2007-02-02  Jim Meyering  <jim@meyering.net>
57891
57892         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
57893         section, not in the Makefile.am: one.
57894
57895 2007-02-02  Eric Blake  <ebb9@byu.net>
57896
57897         * lib/strchrnul.c: Always include config.h first.
57898
57899         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
57900         gnulib strstr is not necessary here.
57901
57902 2007-02-02  Simon Josefsson  <simon@josefsson.org>
57903
57904         * m4/socklen.m4: Fix typo.
57905
57906 2007-02-02  Eric Blake  <ebb9@byu.net>
57907
57908         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
57909         * modules/netinet_in (Makefile.am): Likewise.
57910
57911 2007-02-01  Bruno Haible  <bruno@clisp.org>
57912
57913         * lib/string_.h (GL_LINK_WARNING): New macro.
57914         (strcasecmp, strstr, strcasestr): If provided by the system,
57915         conditionally define as a macro that leads to a warning instead of to
57916         an error.
57917         (strncasecmp): Conditionally define as a macro that leads to a warning.
57918
57919 2007-02-01  Karl Berry  <karl@gnu.org>
57920
57921         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
57922
57923 2007-02-01  Bruno Haible  <bruno@clisp.org>
57924
57925         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
57926         renamings.
57927
57928 2007-02-01  Eric Blake  <ebb9@byu.net>
57929
57930         * modules/regex (Depends-on): Revert dependence on mempcpy.
57931         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
57932         module's definition of mempcpy.
57933         Reported by Paul Eggert.
57934
57935 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
57936
57937         * lib/string_.h: If the gnulib module XYZ is not present, undefine
57938         the symbol XYZ before redefining it.  This fixes a problem with
57939         programs that don't use XYZ, when compiled on systems that define
57940         XYZ to something else.
57941
57942 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
57943
57944         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
57945         occurs when "mkdir -m foo" creates a setgid directory that is (1)
57946         writeable to group or other and (2) is intended to have a special
57947         mode bit that is set or cleared.  In such a case, the directory
57948         should be neither group- nor other-writeable until the special
57949         mode bits are right.
57950
57951 2007-01-31  Eric Blake  <ebb9@byu.net>
57952
57953         * modules/mountlist (Depends-on): Add strstr.
57954
57955         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
57956         bug.
57957         * modules/string (Makefile.am): Remove redundant replacement.
57958         * modules/regex (Depends-on): Add mempcpy.
57959
57960 2007-01-31  Bruno Haible  <bruno@clisp.org>
57961
57962         New module description field 'Link'.
57963         * gnulib-tool (func_usage): Document --extract-link-directive.
57964         (sed_extract_prog): Recognize 'Link' directive.
57965         (func_get_link_directive): New function.
57966         (func_import): Show summary of link directives.
57967         Handle --extract-link-directive option.
57968         * modules/acl (Link): New section.
57969         * modules/clock-time (Link): New section.
57970         * modules/euidaccess (Link): New section.
57971         * modules/gettext (Link): New section.
57972         * modules/iconv (Link): New section.
57973         * modules/lock (Link): New section.
57974         * modules/nanosleep (Link): New section.
57975         * modules/readline (Link): New section.
57976
57977 2007-01-27  Bruno Haible  <bruno@clisp.org>
57978
57979         Enforce the use of gnulib modules for unportable <string.h> functions.
57980         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
57981         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
57982         (gl_HEADER_STRING_H_BODY): Require it.
57983         * lib/string_.h: If the gnulib module XYZ is not present, redefine
57984         the symbol XYZ to one that gives a link error.
57985         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
57986         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
57987         * modules/mempcpy (configure.ac): Likewise.
57988         * modules/memrchr (configure.ac): Likewise.
57989         * modules/stpcpy (configure.ac): Likewise.
57990         * modules/stpncpy (configure.ac): Likewise.
57991         * modules/strcase (configure.ac): Likewise.
57992         * modules/strcasestr (configure.ac): Likewise.
57993         * modules/strchrnul (configure.ac): Likewise.
57994         * modules/strdup (configure.ac): Likewise.
57995         * modules/strndup (configure.ac): Likewise.
57996         * modules/strnlen (configure.ac): Likewise.
57997         * modules/strpbrk (configure.ac): Likewise.
57998         * modules/strsep (configure.ac): Likewise.
57999         * modules/strstr (configure.ac): Likewise.
58000         * modules/strtok_r (configure.ac): Likewise.
58001
58002 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
58003
58004         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
58005
58006 2007-01-30  Jim Meyering  <jim@meyering.net>
58007
58008         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
58009
58010 2007-01-29  Bruno Haible  <bruno@clisp.org>
58011
58012         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
58013         * lib/execute.c: Likewise.
58014         * lib/pipe.c: Likewise.
58015         * lib/printf-args.h: Likewise.
58016         * lib/printf-args.c: Likewise.
58017         * lib/printf-parse.c: Likewise.
58018         * lib/vasnprintf.c: Likewise.
58019
58020 2007-01-29  Eric Blake  <ebb9@byu.net>
58021
58022         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
58023         declaration.
58024
58025 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58026
58027         * lib/strptime.h (strptime): Use 'restrict' for args where
58028         POSIX requires this.
58029         * lib/strptime.c (strptime): Likewise.
58030         Change license notice from LGPL to GPL, since gnulib-tool will
58031         change this as needed.
58032         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
58033         defined.
58034         Include "strptime.h" first, to check interface.
58035         Do not #undef _LIBC and _NL_CURRENT.
58036         Do not include <stdlib.h>; no longer needed.
58037         Include "time_r.h" and declare ptime_locale_status
58038         only if _LIBC is not defined.
58039         (__P): Remove unused macro.
58040         (match_string): Bring back glibc version, but use it only if _LIBC
58041         is defined.
58042         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
58043         Remove unnecessary assertion and abort() call.
58044         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
58045         * m4/strptime.m4: Fix serial number comment.
58046         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
58047         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
58048         (Depends-on): Add time_r.
58049
58050 2007-01-29  Bruno Haible  <bruno@clisp.org>
58051
58052         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58053         strptime.
58054         * modules/strptime (Depends-on): Add stdbool.
58055         * lib/strptime.h: Include <time.h> always. Add comments.
58056
58057 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58058
58059         * modules/strptime: New file.
58060         * lib/strptime.h: New file.
58061         * lib/strptime.c: New file.
58062         * m4/strptime.m4: New file.
58063
58064 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58065
58066         * MODULES.html.sh: New module mpsort.
58067         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
58068
58069         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
58070         a circularity problem with HP-UX ia64 reported by Bob Proulx in
58071         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
58072         All uses changed.
58073         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
58074         All uses changed.
58075         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
58076         to _Restrict_.
58077         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
58078         the parameter matches the prototype.
58079
58080 2007-01-28  Jim Meyering  <jim@meyering.net>
58081
58082         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
58083         sys/time.h here, reverting that part of the previous patch:
58084         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
58085
58086 2007-01-28  Bruno Haible  <bruno@clisp.org>
58087
58088         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
58089         value of $(SYS_TIME_H).
58090         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
58091         remove it conditionally, too. [added by Jim Meyering]
58092         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
58093         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58094         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
58095         GETTIMEOFDAY_REPLACEMENT to 1.
58096
58097 2007-01-28  Bruno Haible  <bruno@clisp.org>
58098
58099         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
58100         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
58101         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
58102         Set UNISTD_H instead of UNISTD_H2.
58103         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
58104
58105 2007-01-28  Bruno Haible  <bruno@clisp.org>
58106
58107         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
58108         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
58109
58110 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58111
58112         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
58113         (func_create_testdir): Ensure C locale for `grep' and `tr'
58114         character ranges.
58115         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
58116         ACLOCAL_AMFLAGS parsing state machine.
58117
58118 2007-01-27  Bruno Haible  <bruno@clisp.org>
58119
58120         * modules/unistr/base: Update.
58121
58122 2007-01-27  Bruno Haible  <bruno@clisp.org>
58123
58124         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
58125         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
58126         * modules/unistr/u32-mbtouc-unsafe: Renamed from
58127         modules/unistr/u32-mbtouc.
58128         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
58129         * lib/unistr.h: Update.
58130         * lib/linebreak.c: Update.
58131         * modules/unistr/u32-mbtouc: Renamed from
58132         modules/unistr/u32-mbtouc-safe.
58133         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
58134         * lib/unistr.h: Update.
58135         * lib/unistr/u32-to-u8.c: Update.
58136         * lib/unistr/u32-to-u16.c: Update.
58137
58138 2007-01-27  Bruno Haible  <bruno@clisp.org>
58139
58140         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
58141         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
58142         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
58143         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
58144         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
58145         * modules/unistr/u16-mbtouc-unsafe: Renamed from
58146         modules/unistr/u16-mbtouc.
58147         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
58148         * lib/unistr.h: Update.
58149         * lib/linebreak.c: Update.
58150         * modules/linebreak: Update.
58151         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
58152         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
58153         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
58154         * modules/unistr/u16-mbtouc: Renamed from
58155         modules/unistr/u16-mbtouc-safe.
58156         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
58157         * lib/unistr.h: Update.
58158         * lib/unistr/u16-to-u8.c: Update.
58159         * modules/unistr/u16-to-u8: Update.
58160         * lib/unistr/u16-to-u32.c: Update.
58161         * modules/unistr/u16-to-u32: Update.
58162
58163 2007-01-27  Bruno Haible  <bruno@clisp.org>
58164
58165         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
58166         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
58167         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
58168         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
58169         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
58170         * modules/unistr/u8-mbtouc-unsafe: Renamed from
58171         modules/unistr/u8-mbtouc.
58172         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
58173         * lib/unistr.h: Update.
58174         * lib/striconveh.c: Update.
58175         * modules/striconveh: Update.
58176         * lib/linebreak.c: Update.
58177         * modules/linebreak: Update.
58178         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
58179         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
58180         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
58181         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
58182         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
58183         * lib/unistr.h: Update.
58184         * lib/striconveh.c: Update.
58185         * modules/striconveh: Update.
58186         * lib/unistr/u8-to-u16.c: Update.
58187         * modules/unistr/u8-to-u16: Update.
58188         * lib/unistr/u8-to-u32.c: Update.
58189         * modules/unistr/u8-to-u32: Update.
58190
58191 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58192
58193         Sync from Libtool.
58194         * lib/argz.c: Do not include strings.h nor memory.h, include
58195         string.h unconditionally.  Patch by Simon Josefsson.
58196
58197 2007-01-27  Bruno Haible  <bruno@clisp.org>
58198
58199         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
58200         from gl_HEADER_STRING_H_BODY.
58201         (gl_HEADER_STRING_H_BODY): Require it.
58202         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
58203         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58204         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58205         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58206         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58207         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
58208         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58209         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58210         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
58211         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58212         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58213         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
58214         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58215         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58216         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58217
58218 2007-01-27  Bruno Haible  <bruno@clisp.org>
58219
58220         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
58221         check_PROGRAMS into noinst_PROGRAMS.
58222         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
58223         check_PROGRAMS in this case.
58224         (func_import): Set for_test to false.
58225         (func_create_testdir): Set for_test to true.
58226
58227 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58228             Bruno Haible  <bruno@clisp.org>
58229
58230         * modules/strcasestr (Files): Remove lib/strcasestr.h.
58231         (Depends-on): Add string.
58232         (Includes): Use <string.h> instead of strcasestr.h.
58233         * modules/string (Makefile.am): Also substitute the value of
58234         REPLACE_STRCASESTR.
58235         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
58236         assume strcasestr is declared in <string.h> not <strings.h>. Also
58237         set REPLACE_STRCASESTR.
58238         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
58239         REPLACE_STRCASESTR.
58240         * lib/strcasestr.h: Remove file.
58241         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
58242         * lib/string_.h (strcasestr): New declaration.
58243
58244 2007-01-27  Bruno Haible  <bruno@clisp.org>
58245
58246         * lib/string_.h: Use 'extern'.
58247
58248 2007-01-27  Jim Meyering  <jim@meyering.net>
58249
58250         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
58251         of set-but-not-used local, "q".
58252
58253         * lib/mempcpy.c: Include <config.h> before <string.h>.
58254         This fixes a compilation error on HP-UX, due to the system's
58255         "restrict"-using mempcpy prototype.
58256
58257 2007-01-26  Bruno Haible  <bruno@clisp.org>
58258
58259         Small optimization.
58260         * lib/javacomp.c: Include c-strstr.h.
58261          (is_envjavac_gcj): Use c_strstr instead of strstr.
58262         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
58263
58264 2007-01-26  Bruno Haible  <bruno@clisp.org>
58265
58266         * MODULES.html.sh (Unicode string functions): Add the new modules.
58267
58268         * modules/uniconv/u32-strconv-to-locale: New file.
58269         * lib/uniconv/u32-strconv-to-locale.c: New file.
58270
58271         * modules/uniconv/u16-strconv-to-locale: New file.
58272         * lib/uniconv/u16-strconv-to-locale.c: New file.
58273
58274         * modules/uniconv/u8-strconv-to-locale: New file.
58275         * lib/uniconv/u8-strconv-to-locale.c: New file.
58276
58277         * modules/uniconv/u32-strconv-from-locale: New file.
58278         * lib/uniconv/u32-strconv-from-locale.c: New file.
58279
58280         * modules/uniconv/u16-strconv-from-locale: New file.
58281         * lib/uniconv/u16-strconv-from-locale.c: New file.
58282
58283         * modules/uniconv/u8-strconv-from-locale: New file.
58284         * lib/uniconv/u8-strconv-from-locale.c: New file.
58285
58286         * modules/uniconv/u32-strconv-to-enc: New file.
58287         * lib/uniconv/u32-strconv-to-enc.c: New file.
58288         * modules/uniconv/u32-strconv-to-enc-tests: New file.
58289         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
58290
58291         * modules/uniconv/u16-strconv-to-enc: New file.
58292         * lib/uniconv/u16-strconv-to-enc.c: New file.
58293         * lib/uniconv/u-strconv-to-enc.h: New file.
58294         * modules/uniconv/u16-strconv-to-enc-tests: New file.
58295         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
58296
58297         * modules/uniconv/u8-strconv-to-enc: New file.
58298         * lib/uniconv/u8-strconv-to-enc.c: New file.
58299         * modules/uniconv/u8-strconv-to-enc-tests: New file.
58300         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
58301
58302         * modules/uniconv/u32-strconv-from-enc: New file.
58303         * lib/uniconv/u32-strconv-from-enc.c: New file.
58304         * modules/uniconv/u32-strconv-from-enc-tests: New file.
58305         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
58306
58307         * modules/uniconv/u16-strconv-from-enc: New file.
58308         * lib/uniconv/u16-strconv-from-enc.c: New file.
58309         * modules/uniconv/u16-strconv-from-enc-tests: New file.
58310         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
58311
58312         * modules/uniconv/u8-strconv-from-enc: New file.
58313         * lib/uniconv/u8-strconv-from-enc.c: New file.
58314         * lib/uniconv/u-strconv-from-enc.h: New file.
58315         * modules/uniconv/u8-strconv-from-enc-tests: New file.
58316         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
58317
58318         * modules/uniconv/u32-conv-from-enc: New file.
58319         * lib/uniconv/u32-conv-from-enc.c: New file.
58320         * modules/uniconv/u32-conv-from-enc-tests: New file.
58321         * tests/uniconv/test-u32-conv-from-enc.c: New file.
58322
58323         * modules/uniconv/u16-conv-from-enc: New file.
58324         * lib/uniconv/u16-conv-from-enc.c: New file.
58325         * lib/uniconv/u-conv-from-enc.h: New file.
58326         * modules/uniconv/u16-conv-from-enc-tests: New file.
58327         * tests/uniconv/test-u16-conv-from-enc.c: New file.
58328
58329         * modules/uniconv/u8-conv-from-enc: New file.
58330         * lib/uniconv/u8-conv-from-enc.c: New file.
58331         * modules/uniconv/u8-conv-from-enc-tests: New file.
58332         * tests/uniconv/test-u8-conv-from-enc.c: New file.
58333
58334         * modules/uniconv/base: New file.
58335         * lib/uniconv.h: New file.
58336
58337 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
58338
58339         * doc/gnulib-tool.texi (Initial import): Update to match current
58340         behavior with strdup module.
58341         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
58342         * lib/memmem.h: Remove; all uses removed.  This is now done
58343         by <string.h>.
58344         * lib/mempcpy.h: Likewise.
58345         * lib/memrchr.h: Likewise.
58346         * lib/stpcpy.h: Likewise.
58347         * lib/stpncpy.h: Likewise.
58348         * lib/strcase.h: Likewise.
58349         * lib/strchrnul.h: Likewise.
58350         * lib/strdup.h: Likewise.
58351         * lib/strndup.h: Likewise.
58352         * lib/strnlen.h: Likewise.
58353         * lib/strpbrk.h: Likewise.
58354         * lib/strsep.h: Likewise.
58355         * lib/strstr.h: Likewise.
58356         * lib/strtok_r.h: Likewise.
58357         * lib/string_.h: New file.
58358         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
58359         Rely on <string.h> instead.
58360         * lib/canon-host.c: Likewise.
58361         * lib/chdir-long.c: Likewise.
58362         * lib/concatpath.c: Likewise.
58363         * lib/exclude.c: Likewise.
58364         * lib/fchdir.c: Likewise.
58365         * lib/getaddrinfo.c: Likewise.
58366         * lib/getcwd.c: Likewise.
58367         * lib/getsubopt.c: Likewise.
58368         * lib/glob.c: Likewise.
58369         * lib/hard-locale.c: Likewise.
58370         * lib/iconvme.c: Likewise.
58371         * lib/javacomp.c: Likewise.
58372         * lib/mempcpy.c: Likewise.
58373         * lib/memrchr.c: Likewise.
58374         * lib/regex_internal.h: Likewise.
58375         * lib/stpncpy.c: Likewise.
58376         * lib/strcasecmp.c: Likewise.
58377         * lib/strchrnul.c: Likewise.
58378         * lib/strdup.c: Likewise.
58379         * lib/striconv.c: Likewise.
58380         * lib/striconveh.c: Likewise.
58381         * lib/striconveha.c: Likewise.
58382         * lib/strncasecmp.c: Likewise.
58383         * lib/strndup.c: Likewise.
58384         * lib/strnlen.c: Likewise.
58385         * lib/strsep.c: Likewise.
58386         * lib/strstr.c: Likewise.
58387         * lib/strtok_r.c: Likewise.
58388         * lib/userspec.c: Likewise.
58389         * lib/w32spawn.h: Likewise.
58390         * lib/xstrndup.c: Likewise.
58391         * lib/mountlist.c (strstr): Remove decl.
58392         * m4/string_h.m4: New file.
58393         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
58394         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
58395         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
58396         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
58397         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
58398         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
58399         Set REPLACE_STRCASECMP if necessary.
58400         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
58401         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
58402         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
58403         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
58404         HAVE_DECL_STRDUP if necessary.
58405         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
58406         since gl_FUNC_STRNDUP does that now.
58407         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
58408         Check for decl here...
58409         (gl_PREREQ_STRNLEN): ... not here.
58410         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
58411         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
58412         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
58413         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
58414         necessary.
58415         * modules/string: New file.
58416         * modules/memmem (Files): Remove special-purpose include file.
58417         (Depends-on): Add string.
58418         (Include): Include <string.h>, not the removed file.
58419         * modules/mempcpy: Likewise.
58420         * modules/memrchr: Likewise.
58421         * modules/stpcpy: Likewise.
58422         * modules/stpncpy: Likewise.
58423         * modules/strcase: Likewise.
58424         * modules/strchrnul: Likewise.
58425         * modules/strdup: Likewise.
58426         * modules/strndup: Likewise.
58427         * modules/strnlen: Likewise.
58428         * modules/strpbrk: Likewise.
58429         * modules/strsep: Likewise.
58430         * modules/strstr: Likewise.
58431         * modules/strtok_r: Likewise.
58432         * tests/test-dirname.c: Don't include "strdup.h", since
58433         <string.h> now suffices.
58434         * tests/test-memmem.c: Don't include "memmem.h", since
58435         <string.h> now suffices.
58436
58437 2007-01-25  Bruno Haible  <bruno@clisp.org>
58438
58439         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
58440         *resultp is 0.
58441
58442         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
58443         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
58444         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
58445         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
58446
58447         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
58448         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
58449         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
58450         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
58451         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
58452         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
58453
58454 2007-01-24  Bruno Haible  <bruno@clisp.org>
58455
58456         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
58457         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
58458         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
58459         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
58460         gl_FUNC_FTS_CORE.
58461         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
58462         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
58463         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58464         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
58465         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
58466         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
58467         gl_FUNC_FCHOWNAT.
58468         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
58469         gl_FUNC_STRFTIME.
58470         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
58471         Reported by Ralf Wildenhues.
58472
58473 2007-01-24  Bruno Haible  <bruno@clisp.org>
58474
58475         Drop AC_REQUIRE calls that are redundant with the module dependencies.
58476         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
58477         gl_GETADDRINFO.
58478         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
58479         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
58480         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
58481
58482 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
58483
58484         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
58485         Don't use 'exit'; just return from 'main'.
58486         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
58487
58488         * lib/fnmatch_.h: Readjust white space and comments to match
58489         glibc, to avoid spurious diffs.
58490
58491 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58492
58493         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
58494         2004-12-01 change by Jakub Jelinek, since this code won't compile
58495         if !LIBC.  Problem reported by Bob Proulx.
58496
58497 2007-01-23  Bruno Haible  <bruno@clisp.org>
58498
58499         * lib/striconveh.c: Include c-strcaseeq.h.
58500         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
58501         * modules/striconveh (Depends-on): Add c-strcaseeq.
58502
58503 2007-01-23  Bruno Haible  <bruno@clisp.org>
58504
58505         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
58506
58507         * modules/c-strcaseeq: New file.
58508         * lib/c-strcaseeq.h: New file.
58509
58510         * modules/streq: New file.
58511         * lib/streq.h: New file.
58512
58513 2007-01-23  Bruno Haible  <bruno@clisp.org>
58514
58515         * modules/striconveha-tests: New file.
58516         * tests/test-striconveha.c: New file.
58517
58518         * lib/striconveha.h: Include <stdbool.h>.
58519         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
58520         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
58521         (mem_iconveha_notranslit): Renamed from mem_iconveha.
58522         (mem_iconveha): New function.
58523         (str_iconveha_notranslit): Renamed from str_iconveha.
58524         (str_iconveha): New function.
58525         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
58526         c-strcase.
58527
58528 2007-01-23  Bruno Haible  <bruno@clisp.org>
58529
58530         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
58531         encodings without forgiving before trying any encoding with handler.
58532         (str_iconveha): Try all encodings without forgiving before trying any
58533         encoding with handler.
58534
58535 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58536
58537         Import the following changes from libc.
58538
58539         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
58540
58541         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
58542
58543         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
58544
58545         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
58546         normal_bracket label.
58547
58548         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
58549
58550         [BZ #361]
58551         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
58552         to normal_bracket after fetching the next character.
58553
58554 2007-01-22  Bruno Haible  <bruno@clisp.org>
58555
58556         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
58557         argument.
58558         * lib/striconveh.c (iconv_carefully_1): New function.
58559         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
58560         argument.
58561         (str_cd_iconveh): Update.
58562         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
58563         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
58564         * tests/test-striconveh.c (MAGIC): New macro.
58565         (new_offsets): New function.
58566         (main): Test call with and without offsets.
58567
58568 2007-01-22  Bruno Haible  <bruno@clisp.org>
58569
58570         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
58571         * modules/sys_select (Makefile.am): Likewise.
58572         * modules/sys_socket (Makefile.am): Likewise.
58573         * modules/sys_time (Makefile.am): Likewise.
58574
58575 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
58576
58577         * modules/gettimeofday (License): Change from GPL to LGPL, since
58578         gettimeofday is a library function.
58579
58580 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58581
58582         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
58583
58584 2007-01-21  Bruno Haible  <bruno@clisp.org>
58585
58586         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
58587
58588 2007-01-21  Bruno Haible  <bruno@clisp.org>
58589
58590         * modules/striconveha: New file.
58591         * lib/striconveha.h: New file.
58592         * lib/striconveha.c: New file.
58593         * MODULES.html.sh (Internationalization functions): Add striconveha.
58594         * lib/striconv.c (str_iconv): Optimize the case of an empty input
58595         string.
58596         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
58597
58598 2007-01-21  Bruno Haible  <bruno@clisp.org>
58599
58600         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
58601         * lib/striconveh.c (str_iconveh): Likewise.
58602
58603 2007-01-21  Bruno Haible  <bruno@clisp.org>
58604
58605         * lib/striconveh.h (mem_iconveh): New declaration.
58606         * lib/striconveh.c (mem_iconveh): New function.
58607         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
58608
58609 2007-01-21  Bruno Haible  <bruno@clisp.org>
58610
58611         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
58612
58613         * lib/striconveh.h (mem_cd_iconveh): Change specification.
58614         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
58615         original result buffer.
58616         (str_cd_iconveh): Update.
58617         * tests/test-striconveh.c (main): Update.
58618
58619         * lib/striconv.h (mem_cd_iconv): Change specification.
58620         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
58621         result buffer.
58622         (str_cd_iconv): Update.
58623         * tests/test-striconv.c (main): Update.
58624
58625 2007-01-21  Bruno Haible  <bruno@clisp.org>
58626
58627         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
58628
58629 2007-01-20  Jim Meyering  <jim@meyering.net>
58630
58631         * lib/userspec.c (parse_with_separator): If a user or group string
58632         starts with "+", skip the corresponding name-to-ID look-up, since
58633         such a look-up must fail: user and group names may not include "+".
58634
58635 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58636
58637         * lib/poll.c: Include sys/time.h and time.h unconditionally,
58638         since we now assume the sys_time module.
58639         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
58640         check for sys/time.h; no longer needed.
58641         * modules/poll (Depends-on): Depend on sys_time.
58642
58643 2007-01-18  Bruno Haible  <bruno@clisp.org>
58644
58645         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
58646         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58647
58648         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
58649         gettimeofday.
58650
58651         * tests/test-gettimeofday.c: Include <time.h>.
58652         (dummy): Remove variable.
58653
58654         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
58655         gl_HEADER_SYS_TIME_H.
58656         (gl_HEADER_SYS_TIME_H): New macro.
58657
58658         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
58659         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58660         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
58661         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
58662         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58663         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
58664         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
58665         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58666         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
58667         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
58668         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58669
58670         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
58671         last change; it caused a compilation error when cross-compiling to
58672         Cygwin.
58673
58674 2007-01-18  Jim Meyering  <jim@meyering.net>
58675
58676         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
58677         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
58678         than the race-prone "test -d sys || mkdir sys".
58679         (configure.ac): Use AC_PROG_MKDIR_P.
58680         * modules/sys_select: Likewise.
58681         * modules/sys_socket: Likewise.
58682         * modules/sys_time: Likewise.
58683
58684 2007-01-18  Eric Blake  <ebb9@byu.net>
58685
58686         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
58687         replace gettimeofday.
58688         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
58689         name, to avoid infinite recursion.
58690
58691 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
58692
58693         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
58694         module sys_time.
58695         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
58696         assume timespec.h defines struct timeval.
58697         * lib/settime.c: Likewise.
58698         * lib/utimens.c: Likewise.
58699         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
58700         since we now assume the gettimeofday module.
58701         * lib/tempname.c (__gen_tempname): Likewise.
58702         * lib/gettimeofday.h: Remove.
58703         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
58704         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
58705         Include <time.h>, for 'time()'.
58706         (localtime_buffer_addr): Also use this workaround if
58707         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
58708         to simplify the uses.  All uses changed.
58709         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
58710         that #undef is inside {}, and 'const' follows type name consistently.
58711         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
58712         (gettimeofday): Do not use the maximum possible value for
58713         tv->tv_usec, since that might break usages other than ls.c.
58714         Instead, we'll leave ls.c alone.  This undoes today's patch
58715         by Bruno.  Add a compile-time warning for 1s-clock resolution;
58716         we've never observed the problem but might as well keep the
58717         canary.
58718         * lib/nanosleep.c: Include timespec.h first, for interface check.
58719         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
58720         now assume the sys_time module.
58721         * lib/tempname.c: Likewise.
58722         * lib/timespec.h: Likewise.
58723         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
58724         needed.
58725         * lib/strftime.c: Likewise.
58726         * lib/timespec.h: Likewise.
58727         * lib/posixtm.c: Include posixtm.h first, for interface check.
58728         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
58729         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
58730         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
58731         * lib/sys_time_.h: New file.
58732         * lib/timespec.h (struct timespec): Use long int, not long.
58733         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58734         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
58735         Remove obsolescent call to AC_HEADER_TIME.
58736         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58738         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58739         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
58740         Likewise.
58741         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
58742         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
58743         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
58744         into the sys_time module.  Check for gettimeofday just once.
58745         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
58746         for gettimeofday signature to just check the signature.  Merely
58747         compile it, since linking doesn't test signature.  Improve test for
58748         whether gettimeofday.o is actually needed.
58749         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
58750         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
58751         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
58752         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58753         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
58754         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
58755         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
58756         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
58757         than worrying about sys/time.h.
58758         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58759         Don't bother worrying about TIME_WITH_SYS_TIME.
58760         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
58761         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
58762         * m4/sys_time_h.m4: New file.
58763         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
58764         Don't include sys/time.h.  Return from main rather than exiting.
58765         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
58766         all uses changed.
58767         * modules/gethrxtime (Depends-on): Add sys_time.
58768         * modules/gettime (Depends-on): Likewise.
58769         * modules/gettimeofday (Depends-on): Likewise.
58770         * modules/nanosleep (Depends-on): Likewise.
58771         * modules/settime (Depends-on): Likewise.
58772         * modules/tempname (Depends-on): Likewise.
58773         * modules/utimens (Depends-on): Likewise.
58774         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
58775         (Include): Change back to <sys/time.h>.
58776         (Maintainer): Add self.
58777         * modules/sys_time: New file.
58778         * modules/tempname (Depends-on): Add gettimeofday.
58779         * tests/test-gettimeofday.c: Include <sys/time.h>
58780         rather than gettimeofday.h.
58781
58782 2007-01-17  Bruno Haible  <bruno@clisp.org>
58783
58784         * gnulib-tool (func_get_license): Revert last patch. Instead, let
58785         the license default to GPL.
58786         (func_create_testdir): Don't complain if a module is LGPL and its
58787         tests module depends on GPLed modules.
58788
58789 2007-01-17  Bruno Haible  <bruno@clisp.org>
58790
58791         * lib/gettimeofday.c (gettimeofday): Add code for the case
58792         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
58793         maximum possible value for tv->tv_usec, rather than the minimum one.
58794
58795 2005-10-08  Martin Lambers  <marlam@marlam.de>
58796 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58797 2007-01-16  Bruno Haible  <bruno@clisp.org>
58798
58799         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
58800         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
58801         gl_FUNC_GETTIMEOFDAY.
58802         (Include): Add gettimeofday.h.
58803         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
58804         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
58805         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
58806         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
58807         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
58808         * lib/gettimeofday.h: New file.
58809         * lib/gettimeofday.c: Include <sys/timeb.h>.
58810         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
58811         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58812         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
58813         fall back on time().
58814
58815         * tests/test-gettimeofday.c: New file.
58816         * modules/gettimeofday-tests: New file.
58817
58818 2007-01-16  Eric Blake  <ebb9@byu.net>
58819
58820         * modules/fnmatch (Depends-on): Depend on wchar.
58821         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
58822         * m4/fnmatch.m4: Likewise.
58823         * modules/mbchar (Makefile.am): Assume <wchar.h>.
58824         * m4/mbchar.m4: Likewise.
58825         * modules/mbswidth (Depends-on): Depend on wchar.
58826         * lib/mbswidth.c: Assume <wchar.h>.
58827         * m4/mbswidth.m4: Likewise.
58828         * modules/quotearg (Depends-on): Depend on wchar.
58829         * lib/quotearg.c: Assume <wchar.h>.
58830         * m4/quotearg.m4: Likewise.
58831         * modules/regex (Depends-on): Depend on wchar.
58832         * lib/regex_internal.h: Assume <wchar.h>.
58833         * m4/regex.m4: Likewise.
58834         * modules/stdint (Depends-on): Depend on wchar.
58835         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
58836         * m4/stdint.m4: Likewise.
58837         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
58838         * modules/strftime (Depends-on): Depend on wchar.
58839         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
58840         * modules/strtol (Depends-on): Depend on wchar.
58841         * lib/strtol.c: Assume <wchar.h>.
58842         * modules/wcwidth (Depends-on): Depend on wchar.
58843         * lib/wcwidth.h: Assume <wchar.h>.
58844         * m4/wcwidth.m4: Likewise.
58845
58846 2007-01-16  Bruno Haible  <bruno@clisp.org>
58847
58848         * modules/csharpexec-script: New, created from...
58849         * modules/csharpexec: ... this.
58850
58851 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58852
58853         * modules/javaexec-script: New, created from...
58854         * modules/javaexec: ... this.
58855
58856 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58857
58858         * modules/poll (Dependencies): Add sys_select.
58859
58860 2007-01-15  Jim Meyering  <jim@meyering.net>
58861
58862         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
58863         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
58864         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
58865         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
58866
58867 2007-01-15  Bruno Haible  <bruno@clisp.org>
58868
58869         * modules/striconveh: New file.
58870         * lib/striconveh.h: New file.
58871         * lib/striconveh.c: New file.
58872         * MODULES.html.sh (Internationalization functions): Add striconveh.
58873
58874         * modules/striconveh-tests: New file.
58875         * tests/test-striconveh.c: New file.
58876
58877 2007-01-15  Bruno Haible  <bruno@clisp.org>
58878
58879         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
58880         not from GNU libiconv or GNU libc.
58881
58882 2007-01-15  Bruno Haible  <bruno@clisp.org>
58883
58884         * doc/gnulib-intro.texi (Copyright): Explain the different license
58885         terms for module descriptions, autoconf macros, tests, documentation.
58886
58887 2007-01-14  Bruno Haible  <bruno@clisp.org>
58888
58889         * modules/striconv-tests: New file.
58890         * tests/test-striconv.c: New file.
58891
58892 2007-01-14  Bruno Haible  <bruno@clisp.org>
58893
58894         * modules/iconv-tests: New file.
58895         * tests/test-iconv.c: New file.
58896
58897 2007-01-14  Bruno Haible  <bruno@clisp.org>
58898
58899         * gnulib-tool (func_get_license): For test modules, use the license of
58900         the main module.
58901
58902 2007-01-14  Bruno Haible  <bruno@clisp.org>
58903
58904         * modules/iconv (Include): Clarify that <iconv.h> can only be included
58905         if iconv is found to exist.
58906
58907 2007-01-14  Bruno Haible  <bruno@clisp.org>
58908
58909         * modules/c-ctype-tests: New file.
58910         * tests/test-c-ctype.c: New file.
58911
58912 2007-01-14  Bruno Haible  <bruno@clisp.org>
58913
58914         * modules/binary-io-tests: New file.
58915         * tests/test-binary-io.sh: New file.
58916         * tests/test-binary-io.c: New file.
58917
58918 2007-01-14  Bruno Haible  <bruno@clisp.org>
58919
58920         * modules/array-oset-tests: New file.
58921         * tests/test-array_oset.c: New file.
58922
58923 2007-01-14  Bruno Haible  <bruno@clisp.org>
58924
58925         * modules/array-list-tests: New file.
58926         * tests/test-array_list.c: New file.
58927
58928 2007-01-14  Bruno Haible  <bruno@clisp.org>
58929
58930         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
58931         and make.
58932         Reported by Simon Josefsson in
58933         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
58934
58935 2007-01-14  Bruno Haible  <bruno@clisp.org>
58936
58937         * modules/allocsa-tests: New file.
58938         * tests/test-allocsa.c: New file.
58939
58940 2007-01-14  Bruno Haible  <bruno@clisp.org>
58941
58942         * modules/fchdir (Depends-on): Add absolute-header.
58943         * modules/unistd (Depends-on): Likewise.
58944
58945 2006-12-30  Bruno Haible  <bruno@clisp.org>
58946
58947         * modules/fchdir: New file.
58948         * modules/unistd (Files): Add lib/unistd_.h.
58949         (Makefile.am): Generate unistd.h from unistd_.h.
58950         * lib/fchdir.c: New file.
58951         * lib/dirent_.h: New file.
58952         * lib/unistd_.h: New file.
58953         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
58954         * m4/fchdir.m4: New file.
58955         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
58956         (gl_HEADER_UNISTD): Invoke it.
58957         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
58958         function.
58959         * lib/backupfile.c (opendir, closedir): Undefine.
58960         * lib/chown.c (open, close): Undefine.
58961         * lib/clean-temp.c (open, close): Undefine.
58962         * lib/copy-file.c (open, close): Undefine.
58963         * lib/execute.c (open, close): Undefine.
58964         * lib/fsusage.c (open, close): Undefine.
58965         * lib/gc-gnulib.c (open, close): Undefine.
58966         * lib/getcwd.c (opendir, closedir): Undefine.
58967         * lib/glob.c (opendir, closedir): Undefine.
58968         * lib/javacomp.c (open, close): Undefine.
58969         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
58970         * lib/openat-proc.c (open, close): Undefine.
58971         * lib/pagealign_alloc.c (open, close): Undefine.
58972         * lib/pipe.c (open, close): Undefine.
58973         * lib/progreloc.c (open, close): Undefine.
58974         * lib/savedir.c (opendir, closedir): Undefine.
58975         * lib/utime.c (open, close): Undefine.
58976         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
58977
58978 2007-01-10  Bruno Haible  <bruno@clisp.org>
58979
58980         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
58981
58982 2007-01-12  Eric Blake  <ebb9@byu.net>
58983
58984         Provide a robust <wchar.h>.  Further simplifications are now
58985         possible in other modules, but not included here.
58986         * modules/wchar: New module.
58987         * m4/wchar.m4: New file.
58988         * lib/wchar_.h: Likewise.
58989         * modules/mbchar (Depends-on): Depend on wchar, as the first use
58990         of the new module.
58991         * MODULES.html.sh (Extended multibyte and wide character utilities):
58992         New section.
58993
58994 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
58995
58996         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
58997         to a reasonable default for memory allocation.
58998         (xreadlink): Don't allocate a huge buffer, to work around a buggy
58999         file system that reports garbage st_size values for symlinks.
59000         Problem reported by Liyang Hu.
59001
59002 2007-01-11  Simon Josefsson  <simon@josefsson.org>
59003
59004         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
59005         Emacs .#* auto-save files).
59006
59007 2007-01-11  Bruno Haible  <bruno@clisp.org>
59008
59009         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
59010         directory.
59011
59012 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
59013
59014         Use @...@ consistently in lib/wctype_.h.
59015         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
59016         on it being set to 1 or 0.
59017         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
59018         go back to AC_SUBSTing it.
59019         * modules/wctype (Makefile.am): Undo previous change.
59020
59021 2007-01-10  Eric Blake  <ebb9@byu.net>
59022
59023         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
59024         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
59025         * modules/wctype (Makefile.am): Likewise.
59026         Reported by Chris McGuire.
59027
59028 2007-01-10  Jim Meyering  <jim@meyering.net>
59029
59030         fts.c: a small readability/maintainability improvement
59031         * lib/fts.c (fts_read): Make this code slightly more readable and
59032         maintainable by hoisting the "sp->fts_cur = p" assignments to
59033         immediately follow the statements that set P.  Derived from
59034         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
59035
59036 2007-01-10  Eric Blake  <ebb9@byu.net>
59037
59038         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
59039         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
59040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59041         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
59042         Reported by Chris McGuire.
59043
59044 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59045
59046         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
59047         in sed script.
59048
59049 2007-01-09  Bruno Haible  <bruno@clisp.org>
59050
59051         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
59052         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
59053         variables.
59054         (func_module): Use them.
59055
59056 2007-01-09  Bruno Haible  <bruno@clisp.org>
59057
59058         * modules/unistr/base: New file.
59059         * lib/unistr.h: New file.
59060
59061         * modules/unistr/u8-to-u16: New file.
59062         * lib/unistr/u8-to-u16.c: New file.
59063
59064         * modules/unistr/u8-to-u32: New file.
59065         * lib/unistr/u8-to-u32.c: New file.
59066
59067         * modules/unistr/u16-to-u8: New file.
59068         * lib/unistr/u16-to-u8.c: New file.
59069
59070         * modules/unistr/u16-to-u32: New file.
59071         * lib/unistr/u16-to-u32.c: New file.
59072
59073         * modules/unistr/u32-to-u8: New file.
59074         * lib/unistr/u32-to-u8.c: New file.
59075
59076         * modules/unistr/u32-to-u16: New file.
59077         * lib/unistr/u32-to-u16.c: New file.
59078
59079         * modules/unistr/u8-check: New file.
59080         * modules/unistr/u16-check: New file.
59081         * modules/unistr/u32-check: New file.
59082         * lib/unistr/u8-check.c: New file.
59083         * lib/unistr/u16-check.c: New file.
59084         * lib/unistr/u32-check.c: New file.
59085
59086         * modules/unistr/u8-chr: New file.
59087         * modules/unistr/u16-chr: New file.
59088         * modules/unistr/u32-chr: New file.
59089         * lib/unistr/u8-chr.c: New file.
59090         * lib/unistr/u16-chr.c: New file.
59091         * lib/unistr/u32-chr.c: New file.
59092
59093         * modules/unistr/u8-cmp: New file.
59094         * modules/unistr/u16-cmp: New file.
59095         * modules/unistr/u32-cmp: New file.
59096         * lib/unistr/u8-cmp.c: New file.
59097         * lib/unistr/u16-cmp.c: New file.
59098         * lib/unistr/u32-cmp.c: New file.
59099
59100         * modules/unistr/u8-cpy: New file.
59101         * modules/unistr/u16-cpy: New file.
59102         * modules/unistr/u32-cpy: New file.
59103         * lib/unistr/u8-cpy.c: New file.
59104         * lib/unistr/u16-cpy.c: New file.
59105         * lib/unistr/u32-cpy.c: New file.
59106         * lib/unistr/u-cpy.h: New file.
59107
59108         * modules/unistr/u8-cpy-alloc: New file.
59109         * modules/unistr/u16-cpy-alloc: New file.
59110         * modules/unistr/u32-cpy-alloc: New file.
59111         * lib/unistr/u8-cpy-alloc.c: New file.
59112         * lib/unistr/u16-cpy-alloc.c: New file.
59113         * lib/unistr/u32-cpy-alloc.c: New file.
59114         * lib/unistr/u-cpy-alloc.h: New file.
59115
59116         * modules/unistr/u8-endswith: New file.
59117         * modules/unistr/u16-endswith: New file.
59118         * modules/unistr/u32-endswith: New file.
59119         * lib/unistr/u8-endswith.c: New file.
59120         * lib/unistr/u16-endswith.c: New file.
59121         * lib/unistr/u32-endswith.c: New file.
59122         * lib/unistr/u-endswith.h: New file.
59123
59124         * modules/unistr/u8-mblen: New file.
59125         * modules/unistr/u16-mblen: New file.
59126         * modules/unistr/u32-mblen: New file.
59127         * lib/unistr/u8-mblen.c: New file.
59128         * lib/unistr/u16-mblen.c: New file.
59129         * lib/unistr/u32-mblen.c: New file.
59130
59131         * modules/unistr/u8-mbtouc: New file.
59132         * modules/unistr/u16-mbtouc: New file.
59133         * modules/unistr/u32-mbtouc: New file.
59134         * lib/unistr/u8-mbtouc.c: New file.
59135         * lib/unistr/u16-mbtouc.c: New file.
59136         * lib/unistr/u32-mbtouc.c: New file.
59137
59138         * modules/unistr/u8-mbtouc-safe: New file.
59139         * modules/unistr/u16-mbtouc-safe: New file.
59140         * modules/unistr/u32-mbtouc-safe: New file.
59141         * lib/unistr/u8-mbtouc-safe.c: New file.
59142         * lib/unistr/u16-mbtouc-safe.c: New file.
59143         * lib/unistr/u32-mbtouc-safe.c: New file.
59144
59145         * modules/unistr/u8-move: New file.
59146         * modules/unistr/u16-move: New file.
59147         * modules/unistr/u32-move: New file.
59148         * lib/unistr/u8-move.c: New file.
59149         * lib/unistr/u16-move.c: New file.
59150         * lib/unistr/u32-move.c: New file.
59151         * lib/unistr/u-move.h: New file.
59152
59153         * modules/unistr/u8-next: New file.
59154         * modules/unistr/u16-next: New file.
59155         * modules/unistr/u32-next: New file.
59156         * lib/unistr/u8-next.c: New file.
59157         * lib/unistr/u16-next.c: New file.
59158         * lib/unistr/u32-next.c: New file.
59159
59160         * modules/unistr/u8-prev: New file.
59161         * modules/unistr/u16-prev: New file.
59162         * modules/unistr/u32-prev: New file.
59163         * lib/unistr/u8-prev.c: New file.
59164         * lib/unistr/u16-prev.c: New file.
59165         * lib/unistr/u32-prev.c: New file.
59166
59167         * modules/unistr/u8-set: New file.
59168         * modules/unistr/u16-set: New file.
59169         * modules/unistr/u32-set: New file.
59170         * lib/unistr/u8-set.c: New file.
59171         * lib/unistr/u16-set.c: New file.
59172         * lib/unistr/u32-set.c: New file.
59173         * lib/unistr/u-set.h: New file.
59174
59175         * modules/unistr/u8-startswith: New file.
59176         * modules/unistr/u16-startswith: New file.
59177         * modules/unistr/u32-startswith: New file.
59178         * lib/unistr/u8-startswith.c: New file.
59179         * lib/unistr/u16-startswith.c: New file.
59180         * lib/unistr/u32-startswith.c: New file.
59181         * lib/unistr/u-startswith.h: New file.
59182
59183         * modules/unistr/u8-stpcpy: New file.
59184         * modules/unistr/u16-stpcpy: New file.
59185         * modules/unistr/u32-stpcpy: New file.
59186         * lib/unistr/u8-stpcpy.c: New file.
59187         * lib/unistr/u16-stpcpy.c: New file.
59188         * lib/unistr/u32-stpcpy.c: New file.
59189         * lib/unistr/u-stpcpy.h: New file.
59190
59191         * modules/unistr/u8-stpncpy: New file.
59192         * modules/unistr/u16-stpncpy: New file.
59193         * modules/unistr/u32-stpncpy: New file.
59194         * lib/unistr/u8-stpncpy.c: New file.
59195         * lib/unistr/u16-stpncpy.c: New file.
59196         * lib/unistr/u32-stpncpy.c: New file.
59197         * lib/unistr/u-stpncpy.h: New file.
59198
59199         * modules/unistr/u8-strcat: New file.
59200         * modules/unistr/u16-strcat: New file.
59201         * modules/unistr/u32-strcat: New file.
59202         * lib/unistr/u8-strcat.c: New file.
59203         * lib/unistr/u16-strcat.c: New file.
59204         * lib/unistr/u32-strcat.c: New file.
59205         * lib/unistr/u-strcat.h: New file.
59206
59207         * modules/unistr/u8-strchr: New file.
59208         * modules/unistr/u16-strchr: New file.
59209         * modules/unistr/u32-strchr: New file.
59210         * lib/unistr/u8-strchr.c: New file.
59211         * lib/unistr/u16-strchr.c: New file.
59212         * lib/unistr/u32-strchr.c: New file.
59213
59214         * modules/unistr/u8-strcmp: New file.
59215         * modules/unistr/u16-strcmp: New file.
59216         * modules/unistr/u32-strcmp: New file.
59217         * lib/unistr/u8-strcmp.c: New file.
59218         * lib/unistr/u16-strcmp.c: New file.
59219         * lib/unistr/u32-strcmp.c: New file.
59220
59221         * modules/unistr/u8-strcpy: New file.
59222         * modules/unistr/u16-strcpy: New file.
59223         * modules/unistr/u32-strcpy: New file.
59224         * lib/unistr/u8-strcpy.c: New file.
59225         * lib/unistr/u16-strcpy.c: New file.
59226         * lib/unistr/u32-strcpy.c: New file.
59227         * lib/unistr/u-strcpy.h: New file.
59228
59229         * modules/unistr/u8-strcspn: New file.
59230         * modules/unistr/u16-strcspn: New file.
59231         * modules/unistr/u32-strcspn: New file.
59232         * lib/unistr/u8-strcspn.c: New file.
59233         * lib/unistr/u16-strcspn.c: New file.
59234         * lib/unistr/u32-strcspn.c: New file.
59235         * lib/unistr/u-strcspn.h: New file.
59236
59237         * modules/unistr/u8-strdup: New file.
59238         * modules/unistr/u16-strdup: New file.
59239         * modules/unistr/u32-strdup: New file.
59240         * lib/unistr/u8-strdup.c: New file.
59241         * lib/unistr/u16-strdup.c: New file.
59242         * lib/unistr/u32-strdup.c: New file.
59243         * lib/unistr/u-strdup.h: New file.
59244
59245         * modules/unistr/u8-strlen: New file.
59246         * modules/unistr/u16-strlen: New file.
59247         * modules/unistr/u32-strlen: New file.
59248         * lib/unistr/u8-strlen.c: New file.
59249         * lib/unistr/u16-strlen.c: New file.
59250         * lib/unistr/u32-strlen.c: New file.
59251         * lib/unistr/u-strlen.h: New file.
59252
59253         * modules/unistr/u8-strmblen: New file.
59254         * modules/unistr/u16-strmblen: New file.
59255         * modules/unistr/u32-strmblen: New file.
59256         * lib/unistr/u8-strmblen.c: New file.
59257         * lib/unistr/u16-strmblen.c: New file.
59258         * lib/unistr/u32-strmblen.c: New file.
59259
59260         * modules/unistr/u8-strmbtouc: New file.
59261         * modules/unistr/u16-strmbtouc: New file.
59262         * modules/unistr/u32-strmbtouc: New file.
59263         * lib/unistr/u8-strmbtouc.c: New file.
59264         * lib/unistr/u16-strmbtouc.c: New file.
59265         * lib/unistr/u32-strmbtouc.c: New file.
59266
59267         * modules/unistr/u8-strncat: New file.
59268         * modules/unistr/u16-strncat: New file.
59269         * modules/unistr/u32-strncat: New file.
59270         * lib/unistr/u8-strncat.c: New file.
59271         * lib/unistr/u16-strncat.c: New file.
59272         * lib/unistr/u32-strncat.c: New file.
59273         * lib/unistr/u-strncat.h: New file.
59274
59275         * modules/unistr/u8-strncmp: New file.
59276         * modules/unistr/u16-strncmp: New file.
59277         * modules/unistr/u32-strncmp: New file.
59278         * lib/unistr/u8-strncmp.c: New file.
59279         * lib/unistr/u16-strncmp.c: New file.
59280         * lib/unistr/u32-strncmp.c: New file.
59281
59282         * modules/unistr/u8-strncpy: New file.
59283         * modules/unistr/u16-strncpy: New file.
59284         * modules/unistr/u32-strncpy: New file.
59285         * lib/unistr/u8-strncpy.c: New file.
59286         * lib/unistr/u16-strncpy.c: New file.
59287         * lib/unistr/u32-strncpy.c: New file.
59288         * lib/unistr/u-strncpy.h: New file.
59289
59290         * modules/unistr/u8-strnlen: New file.
59291         * modules/unistr/u16-strnlen: New file.
59292         * modules/unistr/u32-strnlen: New file.
59293         * lib/unistr/u8-strnlen.c: New file.
59294         * lib/unistr/u16-strnlen.c: New file.
59295         * lib/unistr/u32-strnlen.c: New file.
59296         * lib/unistr/u-strnlen.h: New file.
59297
59298         * modules/unistr/u8-strpbrk: New file.
59299         * modules/unistr/u16-strpbrk: New file.
59300         * modules/unistr/u32-strpbrk: New file.
59301         * lib/unistr/u8-strpbrk.c: New file.
59302         * lib/unistr/u16-strpbrk.c: New file.
59303         * lib/unistr/u32-strpbrk.c: New file.
59304         * lib/unistr/u-strpbrk.h: New file.
59305
59306         * modules/unistr/u8-strrchr: New file.
59307         * modules/unistr/u16-strrchr: New file.
59308         * modules/unistr/u32-strrchr: New file.
59309         * lib/unistr/u8-strrchr.c: New file.
59310         * lib/unistr/u16-strrchr.c: New file.
59311         * lib/unistr/u32-strrchr.c: New file.
59312
59313         * modules/unistr/u8-strspn: New file.
59314         * modules/unistr/u16-strspn: New file.
59315         * modules/unistr/u32-strspn: New file.
59316         * lib/unistr/u8-strspn.c: New file.
59317         * lib/unistr/u16-strspn.c: New file.
59318         * lib/unistr/u32-strspn.c: New file.
59319         * lib/unistr/u-strspn.h: New file.
59320
59321         * modules/unistr/u8-strstr: New file.
59322         * modules/unistr/u16-strstr: New file.
59323         * modules/unistr/u32-strstr: New file.
59324         * lib/unistr/u8-strstr.c: New file.
59325         * lib/unistr/u16-strstr.c: New file.
59326         * lib/unistr/u32-strstr.c: New file.
59327         * lib/unistr/u-strstr.h: New file.
59328
59329         * modules/unistr/u8-strtok: New file.
59330         * modules/unistr/u16-strtok: New file.
59331         * modules/unistr/u32-strtok: New file.
59332         * lib/unistr/u8-strtok.c: New file.
59333         * lib/unistr/u16-strtok.c: New file.
59334         * lib/unistr/u32-strtok.c: New file.
59335         * lib/unistr/u-strtok.h: New file.
59336
59337         * modules/unistr/u8-uctomb: New file.
59338         * modules/unistr/u16-uctomb: New file.
59339         * modules/unistr/u32-uctomb: New file.
59340         * lib/unistr/u8-uctomb.c: New file.
59341         * lib/unistr/u16-uctomb.c: New file.
59342         * lib/unistr/u32-uctomb.c: New file.
59343
59344         * MODULES.html.sh (Unicode string functions): Add the new modules.
59345
59346 2007-01-08  Bruno Haible  <bruno@clisp.org>
59347
59348         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
59349         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
59350         subdirectories.
59351
59352 2007-01-08  Karl Berry  <karl@gnu.org>
59353
59354         * doc/error.texi: mention that main() fns must set program_name
59355         when progname is used.
59356
59357 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
59358
59359         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
59360         WCTYPE_H is empty, for the benefit of builds from non-distclean
59361         directories.  Problem reported by Eric Blake in
59362         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
59363
59364 2007-01-08  Bruno Haible  <bruno@clisp.org>
59365
59366         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
59367         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
59368         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
59369         PROVIDE_CANONICALIZE_FILENAME_MODE.
59370         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
59371
59372 2007-01-08  Bruno Haible  <bruno@clisp.org>
59373
59374         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
59375         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
59376         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
59377         * lib/fts.c: Likewise.
59378         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
59379
59380 2006-12-25  Bruno Haible  <bruno@clisp.org>
59381
59382         * modules/utf8-ucs4-safe: New file.
59383         * lib/utf8-ucs4-safe.h: New file.
59384         * lib/unistr/utf8-ucs4-safe.c: New file.
59385
59386         * modules/utf16-ucs4-safe: New file.
59387         * lib/utf16-ucs4-safe.h: New file.
59388         * lib/unistr/utf16-ucs4-safe.c: New file.
59389
59390         * MODULES.html.sh (Unicode string functions): Add the new modules.
59391
59392 2007-01-08  Bruno Haible  <bruno@clisp.org>
59393
59394         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
59395         (Depends-on): Add unitypes.
59396         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59397         (u8_mbtouc_aux): Move out to separate file.
59398         (u8_mbtouc): Use ucs4_t, uint8_t types.
59399         * lib/unistr/utf8-ucs4.c: New file.
59400
59401         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
59402         (Depends-on): Add unitypes.
59403         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
59404         (u16_mbtouc_aux): Move out to separate file.
59405         (u16_mbtouc): Use ucs4_t, uint16_t types.
59406         * lib/unistr/utf16-ucs4.c: New file.
59407
59408         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
59409         (Depends-on): Add unitypes.
59410         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
59411         (u8_uctomb_aux): Move out to separate file.
59412         (u8_uctomb): Use ucs4_t, uint8_t types.
59413         * lib/unistr/ucs4-utf8.c: New file.
59414
59415         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
59416         (Depends-on): Add unitypes.
59417         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
59418         (u16_uctomb_aux): Move out to separate file.
59419         (u16_uctomb): Use ucs4_t, uint16_t types.
59420         * lib/unistr/ucs4-utf16.c: New file.
59421
59422 2006-12-25  Bruno Haible  <bruno@clisp.org>
59423
59424         * modules/unitypes: New file.
59425         * lib/unitypes.h: New file.
59426         * MODULES.html.sh (func_all_modules): New section "Unicode string
59427         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
59428         this section. Add unitypes.
59429
59430 2007-01-08  Bruno Haible  <bruno@clisp.org>
59431
59432         Avoid variable names that conflict with those from libtool.
59433         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
59434         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
59435         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
59436         library_names_spec to acl_library_names_spec, hardcode_* to
59437         acl_hardcode_*.
59438         Reported by Ralf Wildenhues.
59439
59440 2007-01-08  Bruno Haible  <bruno@clisp.org>
59441
59442         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
59443         definition.
59444         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
59445         definition.
59446         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
59447         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
59448         definition.
59449         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
59450         definition.
59451         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
59452         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
59453         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
59454         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
59455         definition.
59456         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
59457         definition.
59458         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
59459         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
59460         GC_USE_<algorithm>.
59461         * lib/gc-libgcrypt.c: Likewise.
59462         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
59463         * modules/gc-arctwo (configure.ac): Likewise.
59464         * modules/gc-des (configure.ac): Likewise.
59465         * modules/gc-hmac-md5 (configure.ac): Likewise.
59466         * modules/gc-hmac-sha1 (configure.ac): Likewise.
59467         * modules/gc-md2 (configure.ac): Likewise.
59468         * modules/gc-md4 (configure.ac): Likewise.
59469         * modules/gc-md5 (configure.ac): Likewise.
59470         * modules/gc-random (configure.ac): Likewise.
59471         * modules/gc-rijndael (configure.ac): Likewise.
59472         * modules/gc-sha1 (configure.ac): Likewise.
59473
59474 2007-01-08  Bruno Haible  <bruno@clisp.org>
59475
59476         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
59477         macro definition.
59478         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
59479         definition.
59480         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
59481         definition.
59482         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
59483         * modules/fcntl-safer (configure.ac): Likewise.
59484         * modules/fopen-safer (configure.ac): Likewise.
59485         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
59486         GNULIB_FWRITEERROR macro definition.
59487
59488 2007-01-08  Bruno Haible  <bruno@clisp.org>
59489
59490         * m4/gnulib-common.m4: New file.
59491         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
59492         (func_get_filelist): Add m4/gnulib-common.m4.
59493
59494 2007-01-08  Bruno Haible  <bruno@clisp.org>
59495
59496         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
59497         command.
59498
59499 2007-01-08  Jim Meyering  <jim@meyering.net>
59500
59501         Use a more robust test for a "can't happen" condition.
59502         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
59503         narrowed the st_size value.  Presuming the "can't happen" condition
59504         is true, that narrowing could conceivably convert an invalid st_size
59505         value into a valid one.  Instead, use a change based on Matthew
59506         Woehlke's original patch.
59507
59508         Slight readability improvement: use an assert-like macro
59509         in place of literal "abort ()" uses.
59510         * lib/fts.c (fts_assert): Define.
59511         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
59512         Use this macro instead of a bare 'abort'.
59513
59514 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
59515
59516         Don't worry about using IRIX 5.3's wctype.h broken definitions;
59517         simply work around them.
59518         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
59519         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
59520         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
59521         declaring.
59522         Don't bother to define as macros, since the standard doesn't require it.
59523         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
59524         longer worry about IRIX 5.3.
59525         (HAVE_WCTYPE_CTMP_BUG): Remove.
59526
59527 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59528
59529         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
59530         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
59531         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59532         Problems reported by Georg Schwarz for IRIX 5.3.
59533
59534         * gnulib-tool (autoconf_minversion): Take the maximum version number
59535         found, not the minimum.  Problem reported by James Youngman.
59536
59537 2007-01-03  Karl Berry  <karl@gnu.org>
59538
59539         * doc/error.texi: new file, explaining interaction with progname.
59540         * doc/gnulib.texi: include it.  Update copyright.
59541
59542 2007-01-03  Simon Josefsson  <simon@josefsson.org>
59543
59544         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
59545         AC_CANONICAL_HOST, to improve autobuild outputs.
59546
59547 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
59548             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59549
59550         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
59551         sockets, server sockets, and other file descriptors.  Count errors
59552         to compute the return value.  Reorder the code a bit to be easier
59553         to follow.  Don't set event bits that were not requested (except
59554         POLLERR and POLLHUP).
59555
59556 2007-01-01  Bruno Haible  <bruno@clisp.org>
59557
59558         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
59559
59560 2007-01-03  Jim Meyering  <jim@meyering.net>
59561
59562         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
59563
59564 2007-01-02  Bruno Haible  <bruno@clisp.org>
59565
59566         * modules/settime (Include): Require timespec.h.
59567         * modules/nanosleep (Include): Likewise.
59568
59569 2007-01-01  Bruno Haible  <bruno@clisp.org>
59570
59571         * gnulib-tool (func_emit_copyright_notice): Bump year.
59572         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
59573
59574 2007-01-01  Bruno Haible  <bruno@clisp.org>
59575
59576         Improve support for OpenBSD.
59577         * build-aux/config.rpath (libname_spec): Export.
59578         (library_names_spec): New variable. Export.
59579         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
59580         library_names_spec from the config.rpath output. Locate shared library
59581         through the name pattern in library_names_spec.
59582
59583 2007-01-01  Eric Blake  <ebb9@byu.net>
59584
59585         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
59586
59587 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
59588
59589         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
59590         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
59591         assume the C locale, and avoid an "eval" that could cause trouble.
59592         Problem with SORT reported by Bob Proulx.
59593
59594         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
59595         Define.  Trivial patch from Henning Nielsen Lund, originally
59596         sent to bug-grep@gnu.org today.
59597
59598 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59599
59600         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
59601         struct stat.  Problem reported by Henning Nielsen Lund.
59602         * lib/acl.c: Include acl.h first, to check interface.  Don't
59603         bother to include sys/types.h and sys/stat.h again.
59604
59605 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59606
59607         Import the following change from libc; problem reported by
59608         Sven Verdoolaege.
59609
59610         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
59611
59612         [BZ #1373]
59613         * lib/argp.h: Remove __NTH for __argp_usage inline function.
59614
59615 2006-12-28  Jim Meyering  <jim@meyering.net>
59616
59617         * build-aux/announce-gen: Do not assume that the package
59618         builds any of tar.gz, tar.bz2, and .xdelta files.
59619         Suggestion from Simon Josefsson.
59620
59621 2006-12-28  Simon Josefsson  <simon@josefsson.org>
59622
59623         * modules/announce-gen: New file.
59624
59625 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
59626
59627         * lib/mbchar.h: Just include <wctype.h>; the wctype module
59628         handles its gotchas now.
59629         * lib/mbswidth.c: Likewise.
59630         * lib/wcwidth.h: Likewise.
59631         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
59632         and iswcntrl; the wctype module does this stuff now.
59633         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59634         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59635         * modules/mbchar (Depends-on): Add wctype.
59636         * modules/mbswidth (Depends-on): Likewise.
59637         * modules/wcwidth (Depends-on): Likewise.
59638
59639 2006-12-27  Eric Blake  <ebb9@byu.net>
59640
59641         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
59642         module uses more than what <wctype.h> is required to provide.
59643
59644 2006-12-26  Eric Blake  <ebb9@byu.net>
59645
59646         * gnulib-tool (sed_extract_prog): Avoid space-tab.
59647
59648 2006-12-26  Eric Blake  <ebb9@byu.net>
59649
59650         * modules/absolute-header: New module.
59651         * modules/fcntl (Depends-on): Depend on it.
59652         * modules/inttypes (Depends-on): Likewise.
59653         * modules/stdint (Depends-on): Likewise.
59654         * modules/sys_stat (Depends-on): Likewise.
59655         * modules/wctype (Depends-on): Likewise.
59656         * MODULES.html.sh (Support for building libraries and
59657         executables): Document it.
59658
59659 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59660
59661         * gnulib-tool (SED): Remove, undoing previous change.
59662         The problem was that it broke coreutils on Solaris, because
59663         "sed --posix" leaked into a makefile.
59664         (sed): New alias, if 'alias' and GNU sed.
59665
59666 2006-12-24  Jim Meyering  <jim@meyering.net>
59667
59668         Work around an fchownat bug in glibc-2.4:
59669         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
59670         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
59671         in spite of the -P option.
59672         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
59673         New macros.
59674         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
59675         * modules/openat (Files): Add lib/fchownat.c.
59676         * lib/openat.c (fchownat): Don't define here.  Move to...
59677         * lib/fchownat.c: ...this new file.
59678
59679 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59680
59681         Fix bug reported by Bruno Haible in
59682         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
59683         where quotearg.c didn't compile on Mac OS X 10.2 because it
59684         lacks <wchar.h> and wint_t.
59685         * lib/wctype_.h (__wctype_wint_t): New type.
59686         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
59687         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
59688         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
59689         Arg is now of type __wctype_wint_t, not wint_t.
59690         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
59691         substitute HAVE_WINT_T.
59692         * modules/wctype (Files): Add m4/wint_t.m4.
59693         (wctype.h): Substitute HAVE_WINT_T.
59694
59695 2006-12-23  Bruno Haible  <bruno@clisp.org>
59696
59697         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
59698
59699 2006-12-23  Bruno Haible  <bruno@clisp.org>
59700
59701         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
59702         S_ISLNK.
59703         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
59704         mingw.
59705
59706 2006-12-22  Bruno Haible  <bruno@clisp.org>
59707
59708         * lib/copy-file.c: Include acl.h.
59709         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
59710         Close the file descriptors only after being done with copy_acl.
59711         * modules/copy-file (Depends-on): Add acl.
59712
59713 2006-12-22  Bruno Haible  <bruno@clisp.org>
59714
59715         * gnulib-tool (SED): New variable.
59716         Use $SED instead of sed everywhere.
59717
59718 2006-12-22  Bruno Haible  <bruno@clisp.org>
59719
59720         * modules/no-c++: New file.
59721         * m4/no-c++.m4: New file.
59722         * MODULES.html.sh (Support for building libraries and executables):
59723         Add no-c++.
59724
59725 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59726
59727         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59728         Include <limits.h>, and use its INT_MAX to rewrite the
59729         j loop so that it does not overflow 'int'.  Problem reported by
59730         Ralf Wildenhues in
59731         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
59732         Play it safe by shifting left by 1 rather than multiplying by 2,
59733         as GCC is less likely to optimize this away when the value
59734         is signed (when it assumes overflow leads to undefined behavior).
59735         Also, don't assume time_t uses two's complement.
59736
59737 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59738
59739         * MODULES.html.sh: New module wctype.
59740         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
59741         * lib/fnmatch.c: Don't bother to include <wchar.h> before
59742         <wctype.h>, since the new wctype module should fix this.
59743         * lib/quotearg.c: Include <wctype.h> unconditionally, since
59744         the wctype module should arrange for it.
59745         * lib/regex_internal.h: Likewise.
59746         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
59747         since the wctype module should handle this now.
59748         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
59749         * modules/fnmatch (Depends-on): Add wctype.
59750         * modules/quotearg (Depends-on): Likewise.
59751         * modules/regex (Depends-on): Likewise.
59752
59753 2006-12-19  Bruno Haible  <bruno@clisp.org>
59754
59755         * lib/strdup.h [C++]: Wrap definitions in extern "C".
59756         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
59757
59758 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59759
59760         * modules/savewd (Depends-on): Fix dependency on fcntl.
59761
59762 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59763
59764         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
59765         conforms to C99, rather than relying on the user's environment
59766         setting of STDINT_H.
59767
59768 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59769         and Eric Blake  <ebb9@byu.net>
59770
59771         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
59772         This is more consistent with the other defines here.
59773         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
59774         Port to z/OS.  Problem reported by Paul Gilmartin.
59775         Change local vars to use gl_ prefix rather than ac_.
59776         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
59777         with other defines.
59778         * modules/double-slash-root: New module.
59779         * modules/dirname (Files): Remove m4/double-slash-root.m4.
59780         (Depends-on): Add double-slash-root.
59781         * MODULES.html.sh (File system functions): Mention new module.
59782
59783 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
59784
59785         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
59786         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
59787         This is for the benefit of gzip, which doesn't do i18n.
59788
59789 2006-12-12  Jim Meyering  <jim@meyering.net>
59790
59791         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
59792         Reported by Andreas Schwab <schwab@suse.de>.
59793
59794 2006-12-12  Bruno Haible  <bruno@clisp.org>
59795
59796         Merge these changes.
59797         2006-09-05  Bruno Haible  <bruno@clisp.org>
59798         * lib/iconvme.c (iconv_string): No need to save and restore errno when
59799         iconv_alloc succeeded.
59800         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
59801         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
59802         test for " && dest " at the end - dest is always != NULL there. Call
59803         iconv with 4xNULL arguments initially, to reset the state. Call iconv
59804         with 2xNULL arguments, also to flush the state storage. Handle the
59805         IRIX iconv behaviour. Realloc the final result, to throw away unused
59806         memory.
59807
59808 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
59809
59810         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
59811         and fchmodat unconditionally, since glibc 2.4 has them.
59812         Problem reported by Arkadiusz Miskiewicz.
59813
59814 2006-12-10  Bruno Haible  <bruno@clisp.org>
59815
59816         * gnulib-tool (func_import): Show the include files only for those
59817         modules that are copied and specified.
59818         Reported by Karl Berry.
59819
59820 2006-12-08  Jim Meyering  <jim@meyering.net>
59821
59822         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
59823         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
59824
59825         * build-aux/announce-gen: Add two new options, both optional:
59826         --bootstrap-tools=TOOL_LIST
59827               a comma-separated list of tools, e.g.,
59828               autoconf,automake,bison,gnulib
59829         --gnulib-snapshot-date=DATE
59830               if gnulib is in the bootstrap tool list,
59831               then report this as the snapshot date.
59832               If not specified, use the current date/time.
59833               If you specify a date here, be sure it's UTC.
59834
59835 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59836
59837         * tests/test-argp-2.sh: Fix test to match actual output.
59838         (func_compare): Fix sed script to be portable.
59839
59840 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
59841
59842         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
59843         workaround for this case.  It is not autoconfigured now; offhand
59844         it's hard to see how to autoconfigure it.
59845
59846 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59847
59848         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
59849         a directory that is about to be chowned.  Such a directory's
59850         initial file permissions should permit the owner only and this
59851         should not be changed until after the chown, since the group and
59852         other bits would be incorrect if they granted permission before
59853         the chown.
59854
59855         Fix porting problem for iswctype reported by Georg Schwarz in:
59856         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
59857         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
59858         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
59859         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
59860         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59861
59862 2006-12-03  Jim Meyering  <jim@meyering.net>
59863
59864         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
59865         p->fts_statp may not yet be defined.
59866         (fts_read): Instead, set it in the caller, once p->fts_statp is
59867         sure to be defined, and corresponds to a top-level directory.
59868         This bug made du -x fail.  Here's the coreutils test case:
59869         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
59870         Reported by Mike Frysinger.
59871
59872 2006-12-01  Jim Meyering  <jim@meyering.net>
59873
59874         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
59875         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
59876         Reported by Simon Josefsson.
59877
59878 2006-11-30  Jim Meyering  <jim@meyering.net>
59879
59880         * m4/warning.m4: Use the all-permissive copyright notice
59881         recommended by RMS (rather than LGPL).
59882         * m4/vararrays.m4: Likewise.
59883         * m4/flexmember.m4: Likewise.
59884
59885 2006-11-29  Bruno Haible  <bruno@clisp.org>
59886
59887         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59888         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
59889         using +=.
59890         Reported by Simon Josefsson <simon@josefsson.org>.
59891
59892 2006-11-28  James Youngman <jay@gnu.org>
59893
59894         * README: Advise users that they might find the bug-gnulib@gnu.org
59895         and autotools-announce@gnu.org mailing lists useful.
59896
59897 2006-11-28  Bruno Haible  <bruno@clisp.org>
59898
59899         * m4/ptrdiff_max.m4: Remove file.
59900
59901 2006-11-21  Bruno Haible  <bruno@clisp.org>
59902
59903         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
59904         _AC_COMPUTE_INT.
59905         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59906         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
59907         _AC_COMPUTE_INT.
59908         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59909         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
59910         _AC_COMPUTE_INT.
59911         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59912
59913 2006-11-28  Jim Meyering  <jim@meyering.net>
59914
59915         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
59916         warning from "gcc -Wshadow" about shadowing the builtin.
59917
59918 2006-11-27  Bruno Haible  <bruno@clisp.org>
59919
59920         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
59921         _AC_COMPUTE_INT.
59922         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59923
59924 2006-11-27  Bruno Haible  <bruno@clisp.org>
59925             Paul Eggert  <eggert@cs.ucla.edu>
59926
59927         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
59928
59929 2006-11-26  Bruno Haible  <bruno@clisp.org>
59930
59931         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59932         noinst_LTLIBRARIES.
59933
59934 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
59935             Bruno Haible  <bruno@clisp.org>
59936
59937         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
59938         if compiling with "gcc -ansi".
59939
59940 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
59941
59942         Fix some incompatibilities with gcc -ansi -pedantic.
59943         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
59944         if compiling pedantically with GCC, unless it's C99 or later.
59945         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
59946         it mishandles gcc -ansi -pedantic as well.
59947         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
59948         if gcc -pedantic.
59949         * lib/regexec.c (check_node_accept_bytes): Don't use auto
59950         initializers for struct if -pedantic, unless it's C99 or later.
59951
59952 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
59953
59954         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
59955         Don't close an fd more than once. Identical atimes indicate
59956         success, not failure.
59957
59958 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
59959
59960         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
59961
59962 2006-11-23  Jim Meyering  <jim@meyering.net>
59963
59964         * build-aux/announce-gen: New file.  From coreutils.
59965
59966 2006-11-22  Jim Meyering  <jim@meyering.net>
59967
59968         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
59969         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
59970         (fts_read): Use a temporary to narrow the overused st_size member
59971         before using it in a switch statement.  Reported by Matthew Woehlke.
59972
59973         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
59974         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
59975
59976 2006-11-20  Bruno Haible  <bruno@clisp.org>
59977
59978         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
59979         changequote instead of pairs of brackets.
59980         Reported by Andreas Schwab <schwab@suse.de>.
59981
59982 2006-11-21  Jim Meyering  <jim@meyering.net>
59983
59984         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
59985         so as to remain compatible with older compilers.
59986         Patch from Michael Deutschmann.
59987
59988 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59989
59990         * MODULES.html.sh (File system functions): Add openat.
59991
59992         * lib/openat.h (rpl_fstatat): New macro, if
59993         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
59994         (fstatat): Define to rpl_fstatat under the same conditions,
59995         unless COMPILING_FSTATAT.
59996         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
59997         seems to have the bug.
59998         * lib/fstatat.c: New file.
59999         * modules/openat (Files): Add it.
60000
60001 2006-11-20  Bruno Haible  <bruno@clisp.org>
60002
60003         * Makefile: New file.
60004
60005 2006-11-20  Jim Meyering  <jim@meyering.net>
60006
60007         The beginnings of syntax-related checks for gnulib.
60008         * lib/Makefile: New file.
60009         * lib/t-idcache: New script.  Ensure that the two halves of
60010         idcache.c stay in sync.
60011
60012         * lib/idcache.c: Adjust comments in user- and group- portions to
60013         be more accurate, and to be consistent with one another.
60014
60015 2006-11-20  Jim Meyering  <jim@meyering.net>
60016
60017         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
60018         continue using the flexible array member (thus, this module performs
60019         half as many malloc calls), with the addition that...
60020         (getgroup, getuser): Consistently record a non-match via an empty
60021         "name" string, and map an empty string match to a NULL return value.
60022         * modules/idcache (Depends-on): Re-add flexmember.
60023
60024         * lib/idcache.c (getuser): Remove all uses of the register keyword.
60025         (getuidbyname, getgroup, getgidbyname): Likewise.
60026
60027         Use cleaner syntax: NULL rather than 0.
60028         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
60029
60030 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60031
60032         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
60033         It mishandled the case where the group was missing.
60034         Problem reported by Greg Schafer.
60035         * modules/idcache: Likewise.
60036
60037 2006-11-18  Jim Meyering  <jim@meyering.net>
60038
60039         * check-module (%exempt_header): Add exception for some
60040         conditionally-included headers.
60041
60042         * modules/i-ring (Depends-on): Add verify.
60043         (License): Change to LGPL.
60044
60045 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60046
60047         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
60048         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
60049         and inttostr.h.  Use snprintf rather than uinttostr, so that
60050         LGPLed code doesn't depend on GPLed.
60051
60052 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60053
60054         * modules/inline (License): Change from GPL to LGPL.
60055
60056 2006-11-17  Jim Meyering  <jim@meyering.net>
60057
60058         * modules/d-type (License): Switch to LGPL.
60059
60060 2006-11-15  Bruno Haible  <bruno@clisp.org>
60061
60062         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
60063
60064 2006-11-15  Eric Blake  <ebb9@byu.net>
60065
60066         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
60067         the module dependency.
60068
60069 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60070             Bruno Haible  <bruno@clisp.org>
60071
60072         * gnulib-tool (func_create_testdir): Add license consistency check.
60073
60074 2006-11-15  Eric Blake  <ebb9@byu.net>
60075
60076         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
60077         random "(cached)" in configure output.
60078
60079 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60080
60081         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
60082         test for conforming inttypes.h is both announced and cached.
60083
60084         * MODULES.html.sh (seen_modules, seen_files): New variables.
60085         (func_module): Rewrite to use a few less gnulib-tool and sed
60086         invocations.  Avoid a couple of quadratic algorithms for ...
60087         (missed_modules, missed_files): ... these, with ...
60088         (func_append, func_tmpdir): ... these new functions, from
60089         gnulib-tool.  Analogously, install traps for cleanup.
60090
60091         * tests/test-gc.c (main): Remove unused variables.
60092         * tests/test-read-file.c: Include stdlib.h, for 'free'.
60093
60094 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
60095
60096         * modules/inttostr (License): Change to LGPL.
60097
60098 2006-11-14  Eric Blake  <ebb9@byu.net>
60099
60100         * modules/tempname (License): Change to LGPL.
60101
60102 2006-11-14  Eric Blake  <ebb9@byu.net>
60103
60104         * doc/functions.texi (Function Portability): *printf functions on
60105         Cygwin now understand all POSIX size specifiers.
60106
60107 2006-11-14  Bruno Haible  <bruno@clisp.org>
60108
60109         * modules/c-ctype (License): Change to LGPL.
60110
60111 2006-11-12  Bruno Haible  <bruno@clisp.org>
60112
60113         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60114         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
60115         for GNOME libraries, for which the include files are installed in
60116         subdirectories of $prefix/include.
60117
60118 2006-11-12  Bruno Haible  <bruno@clisp.org>
60119
60120         * m4/lib-link.m4: Require at least autoconf-2.54.
60121         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
60122         name to underscores for the --with option.
60123
60124 2006-11-13  Bruno Haible  <bruno@clisp.org>
60125
60126         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
60127         the tests directory.
60128         Reported by Ralf Wildenhues.
60129
60130 2006-11-13  Bruno Haible  <bruno@clisp.org>
60131
60132         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
60133         (func_emit_initmacro_end): Undo the override here.
60134         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
60135         Works around the famous automake error in coreutils.
60136
60137 2006-11-13  Eric Blake  <ebb9@byu.net>
60138
60139         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
60140         element, not its node.
60141
60142 2006-11-12  Bruno Haible  <bruno@clisp.org>
60143
60144         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
60145         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
60146
60147 2006-11-12  Bruno Haible  <bruno@clisp.org>
60148
60149         * gnulib-tool: New option --local-symlink.
60150         (func_usage): Document it.
60151         (lsymbolic): New variable.
60152         (func_import, func_create_testdir): If --symlink was not specified,
60153         test whether --local-symlink was specified and the file comes from
60154         the local_gnulib_dir.
60155
60156 2006-11-12  Bruno Haible  <bruno@clisp.org>
60157
60158         * gnulib-tool (func_ln): New function.
60159         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
60160
60161 2006-11-12  Bruno Haible  <bruno@clisp.org>
60162
60163         Finish support for source files in subdirectories.
60164         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
60165         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
60166         AUTOMAKE_OPTIONS.
60167         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
60168
60169 2006-11-12  Bruno Haible  <bruno@clisp.org>
60170
60171         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60172         EXTRA_lib_SOURCES augmentation.
60173         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
60174
60175 2006-11-12  Jim Meyering  <jim@meyering.net>
60176
60177         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
60178         file descriptors.  This also averts a failure on systems with
60179         native openat support when a traversed directory lacks "x" access.
60180         * lib/fts_.h: Include "i-ring.h"
60181         (struct FTS) [fts_fd_ring]: New member.
60182         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
60183         (FCHDIR): Add parentheses.
60184         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
60185         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
60186         When descending, rather than simply closing the previous
60187         fts_cwd_fd value, push that file descriptor onto the ring.
60188         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
60189         (fts_open): Initialize the new fd_ring member.
60190         (fts_close): Clear the ring.
60191         (fts_safe_changedir): When possible, use our new fd_ring to skip
60192         the diropen and fstat and dev/ino comparison that would normally
60193         accompany a virtual `chdir ("..")'.
60194
60195         * modules/fts (Depends-on): Add i-ring.
60196         * modules/i-ring: New module.
60197         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
60198         * m4/i-ring.m4: New file.
60199
60200 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60201
60202         * gnulib-tool (func_create_testdir): Fix replacement of
60203         `build-aux' in configure.ac.  Run autotools in gltests
60204         subdirectory.
60205         (func_create_testdir, func_create_megatestdir, test): There is
60206         no need for '--force' in most autotool invocations in a new
60207         tree.  Actually fail the whole test if any of the tools, or the
60208         configure or make stages fail.
60209
60210         Sync from Automake.
60211         * build-aux/gnupload: Revert last change.  Add pointer to upload
60212         instructions of the GNU Maintenance Instructions.
60213         Suggestion by Karl Berry.
60214
60215 2006-11-10  Jim Meyering  <jim@meyering.net>
60216
60217         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
60218
60219 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60220
60221         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
60222         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
60223         (bind_textdomain_codeset) [! ENABLE_NLS]:
60224         Evaluate all the arguments.  That way, callers get compatible behavior
60225         if the arguments have side effects.  Also, it avoids some GCC
60226         diagnostics in some cases; Joel E. Denny reported problems when Bison
60227         was configured with --enable-gcc-warnigs.
60228
60229 2006-11-10  Jim Meyering  <jim@meyering.net>
60230
60231         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
60232         relevant options in CFLAGS (like -O, -fno-inline) are taken into
60233         account.
60234
60235 2006-11-10  Jim Meyering  <jim@meyering.net>
60236
60237         * modules/inline: New file/module.
60238         * modules/xalloc (Files): Remove m4/inline.m4.
60239         (Depends-on): Add inline, instead.
60240         * modules/oset: Likewise.
60241         * modules/list: Likewise.
60242
60243 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60244
60245         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
60246         Problem reported by Matthew Woehlke.
60247
60248 2006-11-09  Bruno Haible  <bruno@clisp.org>
60249
60250         * lib/tempname.c (gen_tempname): Remove variant that invokes
60251         __gen_tempname.
60252         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
60253         __gen_tempname.
60254
60255 2006-11-08  Bruno Haible  <bruno@clisp.org>
60256
60257         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
60258         to 'yes' instead of 'cross-compiling'.
60259
60260 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
60261
60262         * lib/quotearg.h (quotearg_free): New decl.
60263         * lib/quotearg.c (quotearg_free): New function.
60264         (slot0, nslots, slotvec0, slotvec):
60265         Now file-scope so that quotearg_free can get at them.
60266
60267 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60268
60269         Sync from Automake.
60270         * build-aux/gnupload: Add missing 'gnu' to example URL.
60271         Report by Karl Berry.
60272
60273 2006-11-08  Bruno Haible  <bruno@clisp.org>
60274
60275         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
60276         Suggested by Paul Eggert.
60277
60278 2006-11-08  Jim Meyering  <jim@meyering.net>
60279
60280         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
60281         It's already included if !_LIBC.
60282         (fts_safe_changedir): Add a comment.
60283
60284 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60285
60286         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
60287         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
60288         Matthew Woehlke.
60289
60290         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
60291         definitions up, to avoid colliding with change below.
60292         (static_inline) [HAVE_INLINE]: New macro.
60293         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
60294         Provide extern decls when !HAVE_INLINE.  Do not define unless
60295         static_inline is defined, either by us or by xmalloc.c.  Use
60296         static_inline rather than static inline.
60297         (XCALLOC): Optimize sizeof(T) = 1 case.
60298         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
60299
60300 2006-11-07  Bruno Haible  <bruno@clisp.org>
60301
60302         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
60303         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
60304         AC_C_INLINE.
60305         * modules/xalloc (Files): Add m4/inline.m4.
60306
60307 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60308
60309         * README: Fix typo.
60310         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
60311         (Miscellanous Notes): ...from this.
60312
60313 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60314
60315         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
60316         Mention that offsetof should be used instead of sizeof.
60317         From Bruno Haible.
60318
60319 2006-11-07  Bruno Haible  <bruno@clisp.org>
60320
60321         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
60322
60323 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60324
60325         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60326         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
60327         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60328         (gl_tree_add_before, gl_tree_add_after):
60329         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
60330         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
60331         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60332         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
60333         (gl_linked_add_after, gl_linked_add_at): Likewise.
60334         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
60335         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
60336         (gl_tree_add_before, gl_tree_add_after): Likewise.
60337         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
60338         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
60339         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60340
60341 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60342
60343         * lib/gl_oset.h: Use C comment style, not C++ comment style.
60344
60345 2006-11-06  Bruno Haible  <bruno@clisp.org>
60346
60347         * m4/inline.m4: New file.
60348         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
60349         * modules/list (Files): Add m4/inline.m4.
60350         * modules/oset (Files): Likewise.
60351
60352 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
60353
60354         * lib/idcache.c: Include <stddef.h>, for offsetof.
60355         (struct userid.name): Change from char * to a flexible array member.
60356         All uses changed.
60357         * modules/idcache (Depends-on): Add flexmember.
60358
60359         * MODULES.html.sh (Core language properties): New module flexmember.
60360         * modules/flexmember, m4/flexmember.m4: New files.
60361
60362         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
60363         inline functions that are identical with the old xnmalloc_inline,
60364         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
60365         that we can avoid some unnecessary integer multiplications and
60366         divisions in the common case where the element size is known at
60367         compile time.
60368         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
60369         needed.
60370         (xnboundedmalloc): Remove.
60371         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
60372         arguments, for consistency with rest of this header.
60373         (xcharalloc): Rewrite using XNMALLOC.
60374         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
60375         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
60376         versions have been moved to lib/xalloc.h and renamed to be the
60377         non-*_inline versions.
60378         (xmalloc, xrealloc): Implement without reference to the xnmalloc
60379         and xnrealloc functions, since those functions are now inline and
60380         now call us.
60381         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
60382         renaming described above.
60383         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
60384         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
60385         captures the dependency in AC_C_INLINE.
60386
60387         New module canonicalize-lgpl, proposed by Charles Wilson in
60388         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
60389         with a few small changes afterwards.
60390         * MODULES.html.sh (File system functions): New module
60391         canonicalize-lgpl.
60392         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
60393         and canonicalize_file_name.
60394         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
60395         * modules/canonicalize-lgpl: New files.
60396
60397 2006-11-05  Bruno Haible  <bruno@clisp.org>
60398
60399         * gnulib-tool (func_import, func_create_testdir): Create directories
60400         also for files in subdirectories of lib/.
60401
60402 2006-11-05  Bruno Haible  <bruno@clisp.org>
60403
60404         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
60405         ANSI C compliant.
60406
60407 2006-11-03  Bruno Haible  <bruno@clisp.org>
60408
60409         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
60410         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
60411         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
60412         (xnboundedmalloc): New inline function.
60413         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
60414         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
60415         xmalloc.
60416         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
60417         xmalloc.
60418         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
60419         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
60420         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
60421         xmalloc.
60422         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60423         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
60424         xmalloc.
60425         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
60426         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60427         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
60428         xmalloc.
60429         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
60430         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
60431         gl_tree_add_after): Use XMALLOC instead of xmalloc.
60432         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
60433         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
60434         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
60435         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
60436
60437 2006-11-03  Bruno Haible  <bruno@clisp.org>
60438
60439         * lib/c-ctype.h [C++]: Define functions without name mangling.
60440         * lib/fwriteerror.h [C++]: Likewise.
60441         * lib/gcd.h [C++]: Likewise.
60442         * lib/linebreak.h [C++]: Likewise.
60443
60444 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60445
60446         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
60447         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
60448         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
60449         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60450         Check for functions and headers just once.
60451         Check for declaration of canonicalize_file_name.
60452         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
60453
60454 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60455
60456         * gnulib-tool (func_import): Fix typo in actioncmd.
60457
60458 2006-11-02  Bruno Haible  <bruno@clisp.org>
60459
60460         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
60461         newline sequence in the Makefile.am snippet as a space, like "make"
60462         does.
60463         Reported by Roger Persson <perrog@gmail.com>.
60464
60465 2006-11-01  Bruno Haible  <bruno@clisp.org>
60466
60467         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
60468         already declared in <string.h>.
60469         * lib/strcase.h (strncasecmp): Don't declare it if yes.
60470
60471 2006-11-01  Bruno Haible  <bruno@clisp.org>
60472
60473         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
60474         * lib/strcase.h: Include <string.h>.
60475         (strcasecmp): Define to rpl_strcasecmp here.
60476
60477 2006-11-01  Bruno Haible  <bruno@clisp.org>
60478
60479         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
60480
60481 2006-11-01  Eric Blake  <ebb9@byu.net>
60482
60483         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
60484
60485         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
60486
60487 2006-10-29  Bruno Haible  <bruno@clisp.org>
60488
60489         Make it compile in C++ mode.
60490         * lib/full-write.c (full_rw): Add a cast.
60491
60492 2006-11-01  Bruno Haible  <bruno@clisp.org>
60493
60494         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
60495         be POSIX compliant.
60496         Reported by Roger Persson <perrog@gmail.com>.
60497
60498 2006-11-01  Eric Blake  <ebb9@byu.net>
60499
60500         * lib/getopt_.h: Fix comments.
60501
60502 2006-10-31  Eric Blake  <ebb9@byu.net>
60503
60504         * modules/tmpdir (Depends-on): Add sys_stat.
60505         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
60506         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
60507         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
60508         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
60509         tempname.
60510
60511 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
60512
60513         Avoid some C++ diagnostics reported by Bruno Haible.
60514         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
60515         xmalloc.
60516         (quotearg_alloc): Use xcharalloc rather than xmalloc.
60517         (struct slotvec): Move to top level.
60518         (quotearg_n_options): Rewrite to avoid xmalloc.
60519         * lib/xalloc.h (xcharalloc): New function.
60520         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
60521         [defined __cplusplus]: Add function template that provides result
60522         type propagation.  This part of the change is from Bruno Haible.
60523
60524 2006-10-29  Bruno Haible  <bruno@clisp.org>
60525
60526         Make it compile in C++ mode.
60527         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
60528         * lib/strnlen1.c (strnlen1): Cast memchr result.
60529         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
60530         * lib/clean-temp.c (string_equals, string_hash): Add casts.
60531         (create_temp_dir): Rename local variable 'template'.
60532         (compile_csharp_using_sscli): Add cast.
60533         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
60534         * lib/findprog.c (find_in_path): Likewise.
60535         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
60536         * lib/wait-process.c (register_slave_subprocess): Likewise.
60537
60538 2006-10-22  Bruno Haible  <bruno@clisp.org>
60539
60540         * modules/tsearch: New file.
60541         * lib/tsearch.h: New file.
60542         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
60543         * m4/tsearch.m4: New file.
60544         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
60545
60546 2006-10-29  Eric Blake  <ebb9@byu.net>
60547
60548         * lib/arcfour.c: Assume config.h.
60549         * lib/arctwo.c: Likewise.
60550         * lib/base64.c: Likewise.
60551         * lib/check-version.c: Likewise.
60552         * lib/crc.c: Likewise.
60553         * lib/des.c: Likewise.
60554         * lib/gc-gnulib.c: Likewise.
60555         * lib/gc-libgcrypt.c: Likewise.
60556         * lib/gc-pbkdf2-sha1.c: Likewise.
60557         * lib/getaddrinfo.c: Likewise.
60558         * lib/getdelim.c: Likewise.
60559         * lib/getline.c: Likewise.
60560         * lib/hmac-md5.c: Likewise.
60561         * lib/hmac-sha1.c: Likewise.
60562         * lib/iconvme.c: Likewise.
60563         * lib/md2.c: Likewise.
60564         * lib/md4.c: Likewise.
60565         * lib/memxor.c: Likewise.
60566         * lib/read-file.c: Likewise.
60567         * lib/readline.c: Likewise.
60568         * lib/rijndael-alg-fst.c: Likewise.
60569         * lib/rijndael-api-fst.c: Likewise.
60570         * lib/xgetdomainname.c: Likewise.
60571
60572 2006-10-28  Eric Blake  <ebb9@byu.net>
60573
60574         * lib/xstrndup.c: Assume config.h.
60575
60576 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
60577
60578         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
60579         stat-macros.h is now for our own macros, whereas stat_h is for
60580         macros in the <sys/stat.h> name space.
60581         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
60582         (STAT_MACROS_H): Remove.
60583         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
60584         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
60585         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
60586         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
60587         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
60588         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
60589         Move these macros to ...
60590         * lib/stat_.h: here.  Don't include stat-macros.h.
60591         * lib/canonicalize.c: Don't include stat-macros.h.
60592         * lib/chown.c: Likewise.
60593         * lib/euidaccess.c: Likewise.
60594         * lib/file-type.c: Likewise.
60595         * lib/filemode.c: Likewise.
60596         * lib/glob.c: Likewise.
60597         * lib/isapipe.c: Likewise.
60598         * lib/lchown.c: Likewise.
60599         * lib/lstat.c: Likewise.
60600         * lib/mkdir-p.c: Likewise.
60601         * lib/rmdir.c: Likewise.
60602         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
60603         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
60604         unless mkdir isn't declared, to speed up 'configure'.
60605         Always create sys/stat.h, since it's unlikely any real sys/stat.h
60606         would define all the S_* symbols.
60607         * modules/canonicalize (Depends-on):
60608         Depend on sys_stat, not stat-macros.
60609         * modules/chown: Likewise.
60610         * modules/euidaccess: Likewise.
60611         * modules/filemode: Likewise.
60612         * modules/file-type: Likewise.
60613         * modules/glob: Likewise.
60614         * modules/isapipe: Likewise.
60615         * modules/lchown: Likewise.
60616         * modules/lstat: Likewise.
60617         * modules/mkancesdirs: Likewise.
60618         * modules/rmdir: Likewise.
60619         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
60620         * modules/modechange: Likewise.
60621         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
60622         (configure.ac): Remove gl_STAT_MACROS.
60623         * modules/sys_stat (Depends-on): Remove stat-macros.
60624
60625 2006-10-27  Bruno Haible  <bruno@clisp.org>
60626
60627         * m4/signed.m4: Remove file.
60628         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
60629         invocation.
60630         * modules/vasnprintf (Files): Remove m4/signed.m4.
60631
60632 2006-10-27  Bruno Haible  <bruno@clisp.org>
60633
60634         Update to GNU gettext 0.16.
60635         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
60636         m4/inttypes-h.m4, m4/signed.m4.
60637         * m4/gettext.m4: Update to GNU gettext 0.16.
60638         * m4/intl.m4: New file, from GNU gettext.
60639         * m4/intldir.m4: New file, from GNU gettext.
60640         * config/srclist.txt: Update
60641
60642 2006-10-27  Eric Blake  <ebb9@byu.net>
60643
60644         * MODULES.html.sh: Document tempname.
60645         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
60646         dependencies.
60647         (Files): Move lib/tempname.c...
60648         * modules/tempname: ...to this new module.
60649         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
60650         (gl_PREREQ_TEMPNAME): Move...
60651         * m4/tempname.m4: ...to this new file.
60652         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
60653         * modules/sys_stat (Depends-on): Add stat-macros.
60654         * lib/stat_.h (includes): Pick up stat macros.
60655         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
60656         if stat macros are broken.
60657         * lib/tempname.c (includes): No need to include "stat-macros.h".
60658         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
60659         (direxists, __path_search) [!_LIBC]: Don't compile these in
60660         gnulib; the tmpdir module covers that.
60661         * lib/tempname.h: New file.
60662
60663 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60664
60665         * COPYING: Explain how gnulib-tool converts licence headers.
60666         Almost all wording by Eric Blake.
60667
60668 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
60669
60670         * lib/mbchar.h (is_basic_table): Make read-only.
60671         * lib/mbchar.c (is_basic_table): Likewise.
60672         Reported by John Darrington.
60673
60674 2006-10-25  Bruno Haible  <bruno@clisp.org>
60675
60676         * lib/progname.h (set_program_name): Undefine before defining.
60677
60678 2006-10-25  Bruno Haible  <bruno@clisp.org>
60679
60680         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
60681         false for non-gcc C++ compilers.
60682         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60683
60684 2006-10-24  Bruno Haible  <bruno@clisp.org>
60685
60686         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
60687         iconv implementations like Irix iconv.
60688
60689 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60690
60691         * modules/vararrays: New file.
60692         * m4/vararrays.m4: New file, taken from diffutils.
60693         * MODULES.html.sh: New module vararrays.
60694
60695 2006-10-24  Karl Berry  <karl@gnu.org>
60696
60697         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
60698         Don't call GNU Unix.
60699
60700 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60701
60702         * users.txt: Add Libtool.
60703
60704         Sync from Libtool:
60705
60706         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60707
60708         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
60709         to gnulib's policy of including config.h unconditionally.
60710
60711 2006-10-24  Bruno Haible  <bruno@clisp.org>
60712
60713         * modules/wcwidth (Files): Add m4/wint_t.m4.
60714         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
60715         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
60716
60717 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60718
60719         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
60720         to pacify GCC with some -W flags enabled.  Problem reported by
60721         Bruno Haible.
60722
60723 2006-10-24  Jim Meyering  <jim@meyering.net>
60724
60725         * MODULES.html.sh: Remove uinttostr.  It's not a module.
60726         Reported by Karl Berry.
60727
60728 2006-10-23  Bruno Haible  <bruno@clisp.org>
60729
60730         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
60731
60732 2006-10-24  Bruno Haible  <bruno@clisp.org>
60733
60734         * lib/gl_list.h: Use C comment style, not C++ comment style.
60735
60736 2006-10-23  Eric Blake  <ebb9@byu.net>
60737
60738         * lib/getaddrinfo.c (includes): Add missing include.
60739
60740 2006-10-23  Bruno Haible  <bruno@clisp.org>
60741             Paul Eggert  <eggert@cs.ucla.edu>
60742
60743         Ability to rename obstack_free.
60744         * lib/obstack.h (__obstack_free): New macro. Declare instead of
60745         obstack_free.
60746         (obstack_free): Invoke the __obstack_free macro.
60747         * lib/obstack.c (obstack_free): Use __obstack_free macro.
60748
60749 2006-10-23  Bruno Haible  <bruno@clisp.org>
60750             Paul Eggert  <eggert@cs.ucla.edu>
60751
60752         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
60753         __argc, __argv from the declaration. (They are defined as macros on
60754         mingw.)
60755
60756 2006-10-22  Bruno Haible  <bruno@clisp.org>
60757
60758         * doc/gnulib-intro.texi: New file.
60759         * doc/gnulib.texi: Include it.
60760
60761 2006-10-21  Bruno Haible  <bruno@clisp.org>
60762
60763         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
60764         "Introduction", "Miscellanous Notes", "Particular Modules".
60765
60766 2006-10-21  Bruno Haible  <bruno@clisp.org>
60767
60768         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60769         Change mostlyclean-local rule to avoid sh syntax error from bash
60770         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
60771
60772 2006-10-23  Jim Meyering  <jim@meyering.net>
60773
60774         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
60775         in place of snprintf.
60776
60777         * modules/inttostr (Files): Add lib/uinttostr.c.
60778         * lib/uinttostr.c (inttostr): New file/function.
60779         * lib/inttostr.h (uinttostr): Declare.
60780         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
60781         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60782         Add uinttostr.
60783         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
60784
60785 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60786
60787         * lib/canonicalize.c (ELOOP): Define if not already defined.
60788         Problem reported by Bruno Haible in
60789         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
60790
60791 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60792
60793         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
60794         Problem reported by Perry Smith and Ville Laurikari.
60795
60796         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
60797         uses.
60798
60799 2006-10-19  Bruno Haible  <bruno@clisp.org>
60800
60801         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
60802         for mingw.
60803
60804 2006-10-19  Bruno Haible  <bruno@clisp.org>
60805
60806         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
60807         Needed for mingw.
60808
60809 2006-10-19  Bruno Haible  <bruno@clisp.org>
60810
60811         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
60812
60813 2006-10-19  Bruno Haible  <bruno@clisp.org>
60814
60815         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
60816         it.
60817
60818 2006-10-19  Bruno Haible  <bruno@clisp.org>
60819
60820         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
60821         invocation.
60822
60823 2006-10-19  Bruno Haible  <bruno@clisp.org>
60824
60825         * gnulib-tool (func_create_testdir): Don't include ftruncate and
60826         mountlist by default.
60827
60828 2006-10-16  Bruno Haible  <bruno@clisp.org>
60829
60830         * lib/c-strstr.c: Include c-strstr.h.
60831
60832 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60833
60834         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
60835         in a slash.
60836
60837 2006-10-18  Bruno Haible  <bruno@clisp.org>
60838
60839         * lib/lock.h [C++]: Wrap definitions in extern "C".
60840
60841 2006-10-18  Bruno Haible  <bruno@clisp.org>
60842
60843         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
60844         gl_LIBOBJS list.
60845
60846 2006-10-18  Bruno Haible  <bruno@clisp.org>
60847
60848         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
60849
60850 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
60851
60852         * lib/xstrtol.h: Include gettext.h.
60853         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
60854         Problem reported by Eric Blake.
60855         * modules/xstrtol (Depends-on): Add gettext-h.
60856
60857 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
60858
60859         * lib/strftime.c (advance): New macro.
60860         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
60861         incomplete type, so you can't add 0 to it.  Problem and patch
60862         reported by Eelco Dolstra for dietlibc.
60863
60864 2006-10-18  Jim Meyering  <jim@meyering.net>
60865
60866         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
60867         type for a local, and rename it: s/up/user_proc/.
60868
60869 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60870
60871         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
60872         READ_UTMP_USER_PROCESS.
60873         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
60874
60875 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60876
60877         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
60878         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
60879
60880 2006-10-17  Eric Blake  <ebb9@byu.net>
60881
60882         * lib/sigprocmask.c (sigprocmask): Fix typo.
60883
60884         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
60885
60886         * modules/clean-temp (Makefile.am): Don't add to make output...
60887         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
60888         config.h.
60889
60890 2006-10-17  Bruno Haible  <bruno@clisp.org>
60891
60892         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
60893         differently if DEFAULT_TEXT_DOMAIN is set.
60894
60895 2006-10-16  Bruno Haible  <bruno@clisp.org>
60896
60897         * lib/clean-temp.c: Include fwriteerror.h.
60898
60899 2006-10-16  Bruno Haible  <bruno@clisp.org>
60900
60901         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
60902
60903 2006-10-16  Bruno Haible  <bruno@clisp.org>
60904
60905         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
60906         * lib/sigprocmask.h: Include <sys/types.h>.
60907         (sigset_t): Use the system's definition if present.
60908
60909 2006-10-17  Eric Blake  <ebb9@byu.net>
60910
60911         * lib/xvasprintf.c (includes): Assume config.h.
60912         * lib/xasprintf.c (includes): Likewise.
60913
60914 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60915
60916         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
60917         at least as wide as intmax_t.
60918
60919 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
60920
60921         (Imported from Automake.)
60922         * build-aux/gnupload: Update to version 1.1 of directive file.
60923
60924 2006-10-16  Eric Blake  <ebb9@byu.net>
60925
60926         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
60927         match Automake 1.10a.
60928
60929 2006-10-14  Bruno Haible  <bruno@clisp.org>
60930
60931         * modules/sigprocmask: New file.
60932         * lib/sigprocmask.h: New file.
60933         * lib/sigprocmask.c: New file.
60934         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
60935         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
60936         request sigprocmask.o.
60937         (gl_PREREQ_SIGPROCMASK): New macro.
60938         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
60939         (Depends-on): Add sigprocmask.
60940         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
60941         gt_SIGNALBLOCKING. Test for 'raise' only once.
60942         * lib/fatal-signal.c: Include sigprocmask.h.
60943         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
60944         unblock_fatal_signals): Define always.
60945         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60946         sigprocmask.
60947
60948 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
60949
60950         Sync from Automake.
60951         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
60952         which incorrectly sets the mode of an existing destination
60953         directory.  In some cases the unpatched install-sh could do the
60954         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
60955         system.  We hope this is rare in practice, but it's clearly worth
60956         fixing.  Problem reported by Alex Unleashed in
60957         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
60958         Also, don't bother to check for -m bugs unless we're using -m;
60959         suggested by Stepan Kasal.
60960
60961 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60962
60963         Sync from Automake.
60964         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
60965         `-c' flag, so they appear at the same position as in %FASTDEP%
60966         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
60967         which ignores unknown options only after the first non-option.
60968         Bug report against M4 by Nelson H. F. Beebe.
60969
60970 2006-10-13  Jim Meyering  <jim@meyering.net>
60971
60972         Fix a bug in yesterday's change.
60973         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
60974         p->fts_statp->st_dev would be used uninitialized.
60975         Ensures that we always call fts_stat on the very first entry.
60976         Miklos Szeredi reported that find -xdev stopped working.
60977
60978 2006-10-12  Bruno Haible  <bruno@clisp.org>
60979
60980         * gnulib-tool (func_get_automake_snippet): Append an automatically
60981         computed EXTRA_DIST augmentation.
60982         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
60983         * modules/alloca-opt (Makefile.am): Likewise.
60984         * modules/allocsa (Makefile.am): Likewise.
60985         * modules/arcfour (Makefile.am): Likewise.
60986         * modules/arctwo (Makefile.am): Likewise.
60987         * modules/argmatch (Makefile.am): Likewise.
60988         * modules/argz (Makefile.am): Likewise.
60989         * modules/atexit (Makefile.am): Likewise.
60990         * modules/backupfile (Makefile.am): Likewise.
60991         * modules/byteswap (Makefile.am): Likewise.
60992         * modules/c-strtod (Makefile.am): Likewise.
60993         * modules/c-strtold (Makefile.am): Likewise.
60994         * modules/calloc (Makefile.am): Likewise.
60995         * modules/canon-host (Makefile.am): Likewise.
60996         * modules/canonicalize (Makefile.am): Likewise.
60997         * modules/chdir-long (Makefile.am): Likewise.
60998         * modules/chdir-safer (Makefile.am): Likewise.
60999         * modules/check-version (Makefile.am): Likewise.
61000         * modules/chown (Makefile.am): Likewise.
61001         * modules/cloexec (Makefile.am): Likewise.
61002         * modules/close-stream (Makefile.am): Likewise.
61003         * modules/closeout (Makefile.am): Likewise.
61004         * modules/crc (Makefile.am): Likewise.
61005         * modules/csharpexec (Makefile.am): Likewise.
61006         * modules/cycle-check (Makefile.am): Likewise.
61007         * modules/des (Makefile.am): Likewise.
61008         * modules/dev-ino (Makefile.am): Likewise.
61009         * modules/dirfd (Makefile.am): Likewise.
61010         * modules/dirname (Makefile.am): Likewise.
61011         * modules/dup2 (Makefile.am): Likewise.
61012         * modules/eealloc (Makefile.am): Likewise.
61013         * modules/error (Makefile.am): Likewise.
61014         * modules/euidaccess (Makefile.am): Likewise.
61015         * modules/exclude (Makefile.am): Likewise.
61016         * modules/exitfail (Makefile.am): Likewise.
61017         * modules/fcntl-safer (Makefile.am): Likewise.
61018         * modules/fcntl (Makefile.am): Likewise.
61019         * modules/file-type (Makefile.am): Likewise.
61020         * modules/fileblocks (Makefile.am): Likewise.
61021         * modules/filemode (Makefile.am): Likewise.
61022         * modules/filenamecat (Makefile.am): Likewise.
61023         * modules/fnmatch (Makefile.am): Likewise.
61024         * modules/fopen-safer (Makefile.am): Likewise.
61025         * modules/fpending (Makefile.am): Likewise.
61026         * modules/fprintftime (Makefile.am): Likewise.
61027         * modules/free (Makefile.am): Likewise.
61028         * modules/fsusage (Makefile.am): Likewise.
61029         * modules/ftruncate (Makefile.am): Likewise.
61030         * modules/fts (Makefile.am): Likewise.
61031         * modules/gc-arcfour (Makefile.am): Likewise.
61032         * modules/gc-des (Makefile.am): Likewise.
61033         * modules/gc-hmac-md5 (Makefile.am): Likewise.
61034         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
61035         * modules/gc-md4 (Makefile.am): Likewise.
61036         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61037         * modules/gc-sha1 (Makefile.am): Likewise.
61038         * modules/gc (Makefile.am): Likewise.
61039         * modules/getaddrinfo (Makefile.am): Likewise.
61040         * modules/getcwd (Makefile.am): Likewise.
61041         * modules/getdelim (Makefile.am): Likewise.
61042         * modules/getdomainname (Makefile.am): Likewise.
61043         * modules/getgroups (Makefile.am): Likewise.
61044         * modules/gethostname (Makefile.am): Likewise.
61045         * modules/gethrxtime (Makefile.am): Likewise.
61046         * modules/getline (Makefile.am): Likewise.
61047         * modules/getloadavg (Makefile.am): Likewise.
61048         * modules/getlogin_r (Makefile.am): Likewise.
61049         * modules/getndelim2 (Makefile.am): Likewise.
61050         * modules/getopt (Makefile.am): Likewise.
61051         * modules/getpagesize (Makefile.am): Likewise.
61052         * modules/getpass-gnu (Makefile.am): Likewise.
61053         * modules/getpass (Makefile.am): Likewise.
61054         * modules/getsubopt (Makefile.am): Likewise.
61055         * modules/gettime (Makefile.am): Likewise.
61056         * modules/gettimeofday (Makefile.am): Likewise.
61057         * modules/getugroups (Makefile.am): Likewise.
61058         * modules/getusershell (Makefile.am): Likewise.
61059         * modules/glob (Makefile.am): Likewise.
61060         * modules/group-member (Makefile.am): Likewise.
61061         * modules/hard-locale (Makefile.am): Likewise.
61062         * modules/hash (Makefile.am): Likewise.
61063         * modules/hmac-md5 (Makefile.am): Likewise.
61064         * modules/hmac-sha1 (Makefile.am): Likewise.
61065         * modules/human (Makefile.am): Likewise.
61066         * modules/idcache (Makefile.am): Likewise.
61067         * modules/imaxabs (Makefile.am): Likewise.
61068         * modules/imaxdiv (Makefile.am): Likewise.
61069         * modules/inet_ntop (Makefile.am): Likewise.
61070         * modules/inet_pton (Makefile.am): Likewise.
61071         * modules/intprops (Makefile.am): Likewise.
61072         * modules/inttostr (Makefile.am): Likewise.
61073         * modules/inttypes (Makefile.am): Likewise.
61074         * modules/isapipe (Makefile.am): Likewise.
61075         * modules/javaversion (Makefile.am): Likewise.
61076         * modules/lchmod (Makefile.am): Likewise.
61077         * modules/lchown (Makefile.am): Likewise.
61078         * modules/localcharset (Makefile.am): Likewise.
61079         * modules/long-options (Makefile.am): Likewise.
61080         * modules/lstat (Makefile.am): Likewise.
61081         * modules/malloc (Makefile.am): Likewise.
61082         * modules/mathl (Makefile.am): Likewise.
61083         * modules/mbchar (Makefile.am): Likewise.
61084         * modules/md2 (Makefile.am): Likewise.
61085         * modules/md4 (Makefile.am): Likewise.
61086         * modules/md5 (Makefile.am): Likewise.
61087         * modules/memcasecmp (Makefile.am): Likewise.
61088         * modules/memchr (Makefile.am): Likewise.
61089         * modules/memcmp (Makefile.am): Likewise.
61090         * modules/memcoll (Makefile.am): Likewise.
61091         * modules/memcpy (Makefile.am): Likewise.
61092         * modules/memmem (Makefile.am): Likewise.
61093         * modules/memmove (Makefile.am): Likewise.
61094         * modules/mempcpy (Makefile.am): Likewise.
61095         * modules/memrchr (Makefile.am): Likewise.
61096         * modules/memset (Makefile.am): Likewise.
61097         * modules/memxor (Makefile.am): Likewise.
61098         * modules/mkancesdirs (Makefile.am): Likewise.
61099         * modules/mkdir-p (Makefile.am): Likewise.
61100         * modules/mkdir (Makefile.am): Likewise.
61101         * modules/mkdtemp (Makefile.am): Likewise.
61102         * modules/mkstemp (Makefile.am): Likewise.
61103         * modules/mktime (Makefile.am): Likewise.
61104         * modules/modechange (Makefile.am): Likewise.
61105         * modules/mountlist (Makefile.am): Likewise.
61106         * modules/nanosleep (Makefile.am): Likewise.
61107         * modules/obstack (Makefile.am): Likewise.
61108         * modules/openat (Makefile.am): Likewise.
61109         * modules/pagealign_alloc (Makefile.am): Likewise.
61110         * modules/pathmax (Makefile.am): Likewise.
61111         * modules/physmem (Makefile.am): Likewise.
61112         * modules/poll (Makefile.am): Likewise.
61113         * modules/posixtm (Makefile.am): Likewise.
61114         * modules/posixver (Makefile.am): Likewise.
61115         * modules/putenv (Makefile.am): Likewise.
61116         * modules/quote (Makefile.am): Likewise.
61117         * modules/quotearg (Makefile.am): Likewise.
61118         * modules/raise (Makefile.am): Likewise.
61119         * modules/read-file (Makefile.am): Likewise.
61120         * modules/readline (Makefile.am): Likewise.
61121         * modules/readlink (Makefile.am): Likewise.
61122         * modules/readtokens (Makefile.am): Likewise.
61123         * modules/readutmp (Makefile.am): Likewise.
61124         * modules/realloc (Makefile.am): Likewise.
61125         * modules/regex (Makefile.am): Likewise.
61126         * modules/rename-dest-slash (Makefile.am): Likewise.
61127         * modules/rename (Makefile.am): Likewise.
61128         * modules/rijndael (Makefile.am): Likewise.
61129         * modules/rmdir (Makefile.am): Likewise.
61130         * modules/rpmatch (Makefile.am): Likewise.
61131         * modules/safe-read (Makefile.am): Likewise.
61132         * modules/safe-write (Makefile.am): Likewise.
61133         * modules/same-inode (Makefile.am): Likewise.
61134         * modules/same (Makefile.am): Likewise.
61135         * modules/save-cwd (Makefile.am): Likewise.
61136         * modules/savedir (Makefile.am): Likewise.
61137         * modules/setenv (Makefile.am): Likewise.
61138         * modules/settime (Makefile.am): Likewise.
61139         * modules/sha1 (Makefile.am): Likewise.
61140         * modules/sig2str (Makefile.am): Likewise.
61141         * modules/snprintf (Makefile.am): Likewise.
61142         * modules/stat-macros (Makefile.am): Likewise.
61143         * modules/stat-time (Makefile.am): Likewise.
61144         * modules/stdbool (Makefile.am): Likewise.
61145         * modules/stdint (Makefile.am): Likewise.
61146         * modules/stdlib-safer (Makefile.am): Likewise.
61147         * modules/stpcpy (Makefile.am): Likewise.
61148         * modules/stpncpy (Makefile.am): Likewise.
61149         * modules/strcase (Makefile.am): Likewise.
61150         * modules/strcasestr (Makefile.am): Likewise.
61151         * modules/strchrnul (Makefile.am): Likewise.
61152         * modules/strcspn (Makefile.am): Likewise.
61153         * modules/strdup (Makefile.am): Likewise.
61154         * modules/strerror (Makefile.am): Likewise.
61155         * modules/strftime (Makefile.am): Likewise.
61156         * modules/strndup (Makefile.am): Likewise.
61157         * modules/strnlen (Makefile.am): Likewise.
61158         * modules/strpbrk (Makefile.am): Likewise.
61159         * modules/strsep (Makefile.am): Likewise.
61160         * modules/strstr (Makefile.am): Likewise.
61161         * modules/strtod (Makefile.am): Likewise.
61162         * modules/strtoimax (Makefile.am): Likewise.
61163         * modules/strtok_r (Makefile.am): Likewise.
61164         * modules/strtol (Makefile.am): Likewise.
61165         * modules/strtoll (Makefile.am): Likewise.
61166         * modules/strtoul (Makefile.am): Likewise.
61167         * modules/strtoull (Makefile.am): Likewise.
61168         * modules/strtoumax (Makefile.am): Likewise.
61169         * modules/strverscmp (Makefile.am): Likewise.
61170         * modules/sys_socket (Makefile.am): Likewise.
61171         * modules/sys_stat (Makefile.am): Likewise.
61172         * modules/sysexits (Makefile.am): Likewise.
61173         * modules/time_r (Makefile.am): Likewise.
61174         * modules/timegm (Makefile.am): Likewise.
61175         * modules/timespec (Makefile.am): Likewise.
61176         * modules/tmpfile-safer (Makefile.am): Likewise.
61177         * modules/trim (Makefile.am): Likewise.
61178         * modules/unistd-safer (Makefile.am): Likewise.
61179         * modules/unlinkdir (Makefile.am): Likewise.
61180         * modules/unlocked-io (Makefile.am): Likewise.
61181         * modules/userspec (Makefile.am): Likewise.
61182         * modules/utime (Makefile.am): Likewise.
61183         * modules/utimecmp (Makefile.am): Likewise.
61184         * modules/utimens (Makefile.am): Likewise.
61185         * modules/vasnprintf (Makefile.am): Likewise.
61186         * modules/vasprintf (Makefile.am): Likewise.
61187         * modules/vsnprintf (Makefile.am): Likewise.
61188         * modules/xalloc (Makefile.am): Likewise.
61189         * modules/xgetcwd (Makefile.am): Likewise.
61190         * modules/xnanosleep (Makefile.am): Likewise.
61191         * modules/xreadlink (Makefile.am): Likewise.
61192         * modules/xstrtod (Makefile.am): Likewise.
61193         * modules/xstrtol (Makefile.am): Likewise.
61194         * modules/xstrtold (Makefile.am): Likewise.
61195         * modules/yesno (Makefile.am): Likewise.
61196         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
61197
61198 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61199
61200         * modules/error (Makefile.am): Distribute files through
61201         EXTRA_DIST, not lib_SOURCES.
61202
61203 2006-10-12  Eric Blake  <ebb9@byu.net>
61204
61205         * modules/error (Makefile.am): Distribute files in /lib.
61206         * modules/obstack (Makefile.am): Likewise.
61207
61208 2006-10-12  Bruno Haible  <bruno@clisp.org>
61209
61210         * modules/acl (Makefile.am): Distribute all files in lib/ through
61211         EXTRA_DIST.
61212         * modules/arcfour (Makefile.am): Likewise.
61213         * modules/arctwo (Makefile.am): Likewise.
61214         * modules/argmatch (Makefile.am): Likewise.
61215         * modules/argz (Makefile.am): Likewise.
61216         * modules/atexit (Makefile.am): Likewise.
61217         * modules/backupfile (Makefile.am): Likewise.
61218         * modules/c-strtod (Makefile.am): Likewise.
61219         * modules/c-strtold (Makefile.am): Likewise.
61220         * modules/calloc (Makefile.am): Likewise.
61221         * modules/canon-host (Makefile.am): Likewise.
61222         * modules/canonicalize (Makefile.am): Likewise.
61223         * modules/chdir-long (Makefile.am): Likewise.
61224         * modules/chdir-safer (Makefile.am): Likewise.
61225         * modules/check-version (Makefile.am): Likewise.
61226         * modules/chown (Makefile.am): Likewise.
61227         * modules/cloexec (Makefile.am): Likewise.
61228         * modules/close-stream (Makefile.am): Likewise.
61229         * modules/closeout (Makefile.am): Likewise.
61230         * modules/crc (Makefile.am): Likewise.
61231         * modules/cycle-check (Makefile.am): Likewise.
61232         * modules/des (Makefile.am): Likewise.
61233         * modules/dirfd (Makefile.am): Likewise.
61234         * modules/dirname (Makefile.am): Likewise.
61235         * modules/dup2 (Makefile.am): Likewise.
61236         * modules/euidaccess (Makefile.am): Likewise.
61237         * modules/exclude (Makefile.am): Likewise.
61238         * modules/exitfail (Makefile.am): Likewise.
61239         * modules/fcntl-safer (Makefile.am): Likewise.
61240         * modules/file-type (Makefile.am): Likewise.
61241         * modules/fileblocks (Makefile.am): Likewise.
61242         * modules/filemode (Makefile.am): Likewise.
61243         * modules/filenamecat (Makefile.am): Likewise.
61244         * modules/fnmatch (Makefile.am): Likewise.
61245         * modules/fopen-safer (Makefile.am): Likewise.
61246         * modules/fpending (Makefile.am): Likewise.
61247         * modules/fprintftime (Makefile.am): Likewise.
61248         * modules/free (Makefile.am): Likewise.
61249         * modules/fsusage (Makefile.am): Likewise.
61250         * modules/ftruncate (Makefile.am): Likewise.
61251         * modules/fts (Makefile.am): Likewise.
61252         * modules/gc (Makefile.am): Likewise.
61253         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
61254         * modules/getaddrinfo (Makefile.am): Likewise.
61255         * modules/getcwd (Makefile.am): Likewise.
61256         * modules/getdelim (Makefile.am): Likewise.
61257         * modules/getdomainname (Makefile.am): Likewise.
61258         * modules/getgroups (Makefile.am): Likewise.
61259         * modules/gethostname (Makefile.am): Likewise.
61260         * modules/gethrxtime (Makefile.am): Likewise.
61261         * modules/getline (Makefile.am): Likewise.
61262         * modules/getloadavg (Makefile.am): Likewise.
61263         * modules/getlogin_r (Makefile.am): Likewise.
61264         * modules/getopt (Makefile.am): Likewise.
61265         * modules/getpass (Makefile.am): Likewise.
61266         * modules/getpass-gnu (Makefile.am): Likewise.
61267         * modules/getsubopt (Makefile.am): Likewise.
61268         * modules/gettime (Makefile.am): Likewise.
61269         * modules/gettimeofday (Makefile.am): Likewise.
61270         * modules/getugroups (Makefile.am): Likewise.
61271         * modules/getusershell (Makefile.am): Likewise.
61272         * modules/glob (Makefile.am): Likewise.
61273         * modules/group-member (Makefile.am): Likewise.
61274         * modules/hard-locale (Makefile.am): Likewise.
61275         * modules/hash (Makefile.am): Likewise.
61276         * modules/hmac-md5 (Makefile.am): Likewise.
61277         * modules/hmac-sha1 (Makefile.am): Likewise.
61278         * modules/human (Makefile.am): Likewise.
61279         * modules/idcache (Makefile.am): Likewise.
61280         * modules/imaxabs (Makefile.am): Likewise.
61281         * modules/imaxdiv (Makefile.am): Likewise.
61282         * modules/inet_ntop (Makefile.am): Likewise.
61283         * modules/inet_pton (Makefile.am): Likewise.
61284         * modules/inttostr (Makefile.am): Likewise.
61285         * modules/isapipe (Makefile.am): Likewise.
61286         * modules/lchown (Makefile.am): Likewise.
61287         * modules/long-options (Makefile.am): Likewise.
61288         * modules/lstat (Makefile.am): Likewise.
61289         * modules/malloc (Makefile.am): Likewise.
61290         * modules/mathl (Makefile.am): Likewise.
61291         * modules/mbchar (Makefile.am): Likewise.
61292         * modules/md2 (Makefile.am): Likewise.
61293         * modules/md4 (Makefile.am): Likewise.
61294         * modules/md5 (Makefile.am): Likewise.
61295         * modules/memcasecmp (Makefile.am): Likewise.
61296         * modules/memchr (Makefile.am): Likewise.
61297         * modules/memcmp (Makefile.am): Likewise.
61298         * modules/memcoll (Makefile.am): Likewise.
61299         * modules/memcpy (Makefile.am): Likewise.
61300         * modules/memmem (Makefile.am): Likewise.
61301         * modules/memmove (Makefile.am): Likewise.
61302         * modules/mempcpy (Makefile.am): Likewise.
61303         * modules/memrchr (Makefile.am): Likewise.
61304         * modules/memset (Makefile.am): Likewise.
61305         * modules/memxor (Makefile.am): Likewise.
61306         * modules/mkancesdirs (Makefile.am): Likewise.
61307         * modules/mkdir (Makefile.am): Likewise.
61308         * modules/mkdir-p (Makefile.am): Likewise.
61309         * modules/mkdtemp (Makefile.am): Likewise.
61310         * modules/mkstemp (Makefile.am): Likewise.
61311         * modules/mktime (Makefile.am): Likewise.
61312         * modules/modechange (Makefile.am): Likewise.
61313         * modules/mountlist (Makefile.am): Likewise.
61314         * modules/nanosleep (Makefile.am): Likewise.
61315         * modules/openat (Makefile.am): Likewise.
61316         * modules/pagealign_alloc (Makefile.am): Likewise.
61317         * modules/physmem (Makefile.am): Likewise.
61318         * modules/poll (Makefile.am): Likewise.
61319         * modules/posixtm (Makefile.am): Likewise.
61320         * modules/posixver (Makefile.am): Likewise.
61321         * modules/putenv (Makefile.am): Likewise.
61322         * modules/quote (Makefile.am): Likewise.
61323         * modules/quotearg (Makefile.am): Likewise.
61324         * modules/raise (Makefile.am): Likewise.
61325         * modules/read-file (Makefile.am): Likewise.
61326         * modules/readline (Makefile.am): Likewise.
61327         * modules/readlink (Makefile.am): Likewise.
61328         * modules/readtokens (Makefile.am): Likewise.
61329         * modules/readutmp (Makefile.am): Likewise.
61330         * modules/realloc (Makefile.am): Likewise.
61331         * modules/regex (Makefile.am): Likewise.
61332         * modules/rename (Makefile.am): Likewise.
61333         * modules/rename-dest-slash (Makefile.am): Likewise.
61334         * modules/rijndael (Makefile.am): Likewise.
61335         * modules/rmdir (Makefile.am): Likewise.
61336         * modules/rpmatch (Makefile.am): Likewise.
61337         * modules/safe-read (Makefile.am): Likewise.
61338         * modules/safe-write (Makefile.am): Likewise.
61339         * modules/same (Makefile.am): Likewise.
61340         * modules/save-cwd (Makefile.am): Likewise.
61341         * modules/savedir (Makefile.am): Likewise.
61342         * modules/setenv (Makefile.am): Likewise.
61343         * modules/settime (Makefile.am): Likewise.
61344         * modules/sha1 (Makefile.am): Likewise.
61345         * modules/sig2str (Makefile.am): Likewise.
61346         * modules/snprintf (Makefile.am): Likewise.
61347         * modules/stdlib-safer (Makefile.am): Likewise.
61348         * modules/stpcpy (Makefile.am): Likewise.
61349         * modules/stpncpy (Makefile.am): Likewise.
61350         * modules/strcase (Makefile.am): Likewise.
61351         * modules/strcasestr (Makefile.am): Likewise.
61352         * modules/strchrnul (Makefile.am): Likewise.
61353         * modules/strcspn (Makefile.am): Likewise.
61354         * modules/strdup (Makefile.am): Likewise.
61355         * modules/strerror (Makefile.am): Likewise.
61356         * modules/strftime (Makefile.am): Likewise.
61357         * modules/strndup (Makefile.am): Likewise.
61358         * modules/strnlen (Makefile.am): Likewise.
61359         * modules/strpbrk (Makefile.am): Likewise.
61360         * modules/strsep (Makefile.am): Likewise.
61361         * modules/strstr (Makefile.am): Likewise.
61362         * modules/strtod (Makefile.am): Likewise.
61363         * modules/strtoimax (Makefile.am): Likewise.
61364         * modules/strtok_r (Makefile.am): Likewise.
61365         * modules/strtol (Makefile.am): Likewise.
61366         * modules/strtoll (Makefile.am): Likewise.
61367         * modules/strtoul (Makefile.am): Likewise.
61368         * modules/strtoull (Makefile.am): Likewise.
61369         * modules/strtoumax (Makefile.am): Likewise.
61370         * modules/strverscmp (Makefile.am): Likewise.
61371         * modules/time_r (Makefile.am): Likewise.
61372         * modules/timegm (Makefile.am): Likewise.
61373         * modules/tmpfile-safer (Makefile.am): Likewise.
61374         * modules/unistd-safer (Makefile.am): Likewise.
61375         * modules/unlinkdir (Makefile.am): Likewise.
61376         * modules/userspec (Makefile.am): Likewise.
61377         * modules/utime (Makefile.am): Likewise.
61378         * modules/utimecmp (Makefile.am): Likewise.
61379         * modules/utimens (Makefile.am): Likewise.
61380         * modules/vasnprintf (Makefile.am): Likewise.
61381         * modules/vasprintf (Makefile.am): Likewise.
61382         * modules/vsnprintf (Makefile.am): Likewise.
61383         * modules/xalloc (Makefile.am): Likewise.
61384         * modules/xgetcwd (Makefile.am): Likewise.
61385         * modules/xnanosleep (Makefile.am): Likewise.
61386         * modules/xreadlink (Makefile.am): Likewise.
61387         * modules/xstrtod (Makefile.am): Likewise.
61388         * modules/xstrtol (Makefile.am): Likewise.
61389         * modules/xstrtold (Makefile.am): Likewise.
61390         * modules/yesno (Makefile.am): Likewise.
61391
61392 2006-10-12  Jim Meyering  <jim@meyering.net>
61393
61394         * m4/getloadavg.m4: Revert the change below.
61395
61396         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
61397         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
61398         fail with a symlink, which is what coreutils' ./bootstrap now
61399         creates by default.
61400
61401 2006-10-12  Bruno Haible  <bruno@clisp.org>
61402
61403         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
61404         mingw.
61405         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
61406         MSVC and mingw explicitly.
61407
61408 2006-10-11  Simon Josefsson  <jas@extundo.com>
61409             Bruno Haible  <bruno@clisp.org>
61410
61411         Add support for multiple gnulib-tool invocations in the scope of a
61412         single configure.ac file.
61413         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
61414         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
61415         with the same contents as the _LIBADD variable.
61416         (func_emit_initmacro_start, func_emit_initmacro_end,
61417         func_emit_initmacro_done): New functions.
61418         (func_import, func_create_testdir): Invoke them. Allow the identifiers
61419         gl_LIBOBJS and gl_LTLIBOBJS.
61420
61421 2006-10-11  Bruno Haible  <bruno@clisp.org>
61422
61423         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
61424         (func_create_testdir): Don't create po/Makefile.am, don't invoke
61425         autoreconf. Instead, invoke autopoint explicitly but move back the
61426         *.m4 files from gnulib.
61427
61428 2006-10-11  Bruno Haible  <bruno@clisp.org>
61429
61430         * gnulib-tool (func_usage): Make module names after --create-testdir
61431         optional.
61432         (func_create_testdir): If no module was specified, use nearly all
61433         modules.
61434
61435 2006-10-12  Jim Meyering  <jim@meyering.net>
61436
61437         Big performance improvement for fts-based tools that use FTS_NOSTAT.
61438         Avoid spurious inode-mismatch problems on non-POSIX file systems.
61439         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
61440         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
61441         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
61442         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
61443         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
61444         (fts_set_stat_required): New function.
61445         (fts_open): Defer the calls to fts_stat, if possible or requested.
61446         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
61447         into fts_stat itself.
61448         (fts_read): Perform any required (deferred) fts_stat call.
61449         (fts_build): Likewise, for the directory we're about to open and read.
61450         In the readdir loop, carefully decide whether each entry will require
61451         an eventual call to fts_stat, using dirent.d_type info if available.
61452         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
61453         a command line argument into this function.  Update all callers.
61454         Map a return value of FTS_DOT to FTS_D for a command line argument.
61455         * modules/fts (Depends-on): Add d-type.  Alphabetize.
61456         Thanks to Miklos Szeredi for his tenacity and for the initial
61457         bug report about "find" failing on a FUSE-based file system.
61458
61459         * lib/fts.c (fts_open): Use consistent indentation.
61460
61461 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61462
61463         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
61464         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
61465         reported by Jim Meyering.  All uses of cache variables renamed
61466         to match Autoconf's.
61467         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
61468         the other one.
61469
61470         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
61471         Fix misspelling in diagnostic.
61472
61473 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61474
61475         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
61476         defined.  Problem reported by Matthew Woehlke.
61477
61478         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
61479         Add support for Tandem NonStop R series.
61480         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
61481         Use new macro.
61482
61483         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
61484         (has_trailing_slash): Omit size arg; all callers changed.
61485         Omit 'inline', since it doesn't help performance and we'd
61486         need to configure it.
61487         Don't count //, ///, etc. as having a trailing slash.
61488         As a side effect, this removes a C99ism reported by Matthew Woehlke.
61489         (rpl_rename_dest_slash): On failure, use rename's errno rather
61490         than (in some cases) an incorrect or junk errno.
61491         Simplify code by removing need to compute length; this does
61492         cause it to make two passes instead of one over the file name,
61493         but it's worth it.
61494
61495         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
61496         change, since Autoconf's version may no longer be appropriate now
61497         that we are using CVS Autoconf's version.  Add support for Tandem.
61498
61499 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61500             Bruno Haible  <bruno@clisp.org>
61501
61502         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
61503         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
61504         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
61505         gl_AC_TYPE_LONG_LONG.
61506
61507         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
61508         instead of HAVE_LONG_LONG.
61509         * lib/printf-args.c (printf_fetchargs): Likewise.
61510         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
61511         * lib/vasnprintf.c (VASNPRINTF): Likewise.
61512         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
61513         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
61514         gl_AC_TYPE_LONG_LONG.
61515
61516 2006-10-11  Bruno Haible  <bruno@clisp.org>
61517
61518         * m4/longlong.m4: Add comments.
61519         * m4/ulonglong.m4: Likewise.
61520
61521 2006-10-10  Bruno Haible  <bruno@clisp.org>
61522
61523         Make it possible to #define stpcpy, strdup to aliases.
61524         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
61525         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
61526
61527 2006-10-10  Bruno Haible  <bruno@clisp.org>
61528
61529         Make it possible to #define gcd to an alias.
61530         * lib/gcd.c: Include config.h.
61531
61532 2006-10-10  Bruno Haible  <bruno@clisp.org>
61533
61534         Make it possible to #define c_isascii to an alias.
61535         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
61536         defined. Undefine the macros before defining them, to avoid gcc
61537         warnings.
61538         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
61539         define NO_C_CTYPE_MACROS early.
61540
61541 2006-10-10  Bruno Haible  <bruno@clisp.org>
61542
61543         Make it possible to #define set_program_name to an alias.
61544         * lib/progname.c: Don't undefine set_program_name; instead, undefine
61545         ENABLE_RELOCATABLE early.
61546
61547 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61548
61549         Port to Tandem NSK OSS, which has 64-bit signed int but at most
61550         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
61551         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
61552         More generally, don't assume that 64-bit signed int is available
61553         if unsigned int is, and vice versa.
61554         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
61555         unsigned symbols, not on their signed counterparts.
61556         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
61557         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
61558         (UINT64_C, UINTMAX_C):
61559         Likewise.
61560         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
61561         unsigned counterparts.
61562         (Have_long_long, Unsigned): New macros.
61563         (Int): Renamed from INT.
61564         (strtoimax): Use the new macros.
61565         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
61566         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
61567         * modules/inttypes (inttypes.h): Substitute
61568         HAVE_UNSIGNED_LONG_LONG_INT.
61569         * modules/stdint (stdint.h): Likewise.
61570         (Files): Add m4/ulonglong.m4.
61571
61572 2006-10-10  Bruno Haible  <bruno@clisp.org>
61573
61574         Fix a gcc -Wshadow warning.
61575         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
61576         to 'bucket'.
61577         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
61578         gl_linked_indexof_from_to): Likewise.
61579         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
61580         Likewise.
61581         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
61582         Likewise.
61583         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
61584         Reported by Eric Blake.
61585
61586 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
61587
61588         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
61589         for NetBSD.  Problem reported by Bruno Haible.
61590
61591 2006-10-09  Jim Meyering  <jim@meyering.net>
61592
61593         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
61594         Patch from Bruno Haible.
61595
61596 2006-10-09  Jim Meyering  <jim@meyering.net>
61597
61598         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
61599         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
61600         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
61601
61602 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61603
61604         Don't include <config.h> twice; this doesn't work in some cases,
61605         e.g., when config.h has "#define intmax_t long long int" and
61606         we include <config.h>, <inttypes.h>, <config.h> in that order.
61607         Problem reported by Matthew Woehlke in:
61608         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
61609         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
61610         * lib/fts-cycle.c: Don't include config.h.
61611         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
61612         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
61613         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
61614         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
61615         inttypes.h.
61616         * lib/xstrtoumax.c: Likewise.
61617         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
61618         __strtol and the like, so that this module is more like its siblings.
61619         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
61620         Remove; no longer needed now that we assume gnulib inttypes.h.
61621
61622 2006-10-08  Bruno Haible  <bruno@clisp.org>
61623
61624         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
61625         option.
61626
61627 2006-10-07  Jim Meyering  <jim@meyering.net>
61628
61629         * modules/inttypes (inttypes.h): Revert what seems to have been
61630         an inadvertent part of today's change: use "|", not "/" in the
61631         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
61632
61633 2006-10-07  Bruno Haible  <bruno@clisp.org>
61634
61635         * modules/sublist: New file.
61636
61637 2006-10-07  Bruno Haible  <bruno@clisp.org>
61638
61639         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
61640         * modules/argz (argz.h): Likewise.
61641         * modules/arpa_inet (arpa/inet.h): Likewise.
61642         * modules/byteswap (byteswap.h): Likewise.
61643         * modules/configmake (configmake.h): Likewise.
61644         * modules/fcntl (fcntl.h): Likewise.
61645         * modules/fnmatch (fnmatch.h): Likewise.
61646         * modules/getopt (getopt.h): Likewise.
61647         * modules/glob (glob.h): Likewise.
61648         * modules/inttypes (inttypes.h): Likewise.
61649         * modules/netinet_in (netinet/in.h): Likewise.
61650         * modules/poll (poll.h): Likewise.
61651         * modules/stdbool (stdbool.h): Likewise.
61652         * modules/stdint (stdint.h): Likewise.
61653         * modules/sys_select (sys/select.h): Likewise.
61654         * modules/sys_socket (sys/socket.h): Likewise.
61655         * modules/sys_stat (sys/stat.h): Likewise.
61656         * modules/sysexits (sysexits.h): Likewise.
61657         * modules/unistd (unistd.h): Likewise.
61658         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61659         Add a "DO NOT EDIT" comment to the generated file.
61660         (func_import): Likewise for gnulib-comp.m4.
61661
61662 2006-10-07  Bruno Haible  <bruno@clisp.org>
61663
61664         * lib/gl_sublist.h: New file.
61665         * lib/gl_sublist.c: New file.
61666
61667 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61668
61669         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
61670         name (relative to the original working directory) and the file
61671         name component (relative to the temporary working directory).  All
61672         callers changed.
61673         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
61674         * lib/mkdir-p.c (make_dir_parents): Likewise.
61675         * lib/mkdir-p.h (make_dir_parents): Likewise.
61676
61677 2006-10-06  Eric Blake  <ebb9@byu.net>
61678
61679         Define several macros for use by the clean-temp module.
61680         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
61681         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
61682         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
61683
61684         * lib/clean-temp.h (close_stream_temp): New declaration.
61685         * lib/clean-temp.c (includes): Pull in headers according to what
61686         other modules are in use.
61687         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
61688
61689 2006-10-06  Bruno Haible  <bruno@clisp.org>
61690
61691         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
61692         instead of fopen, fwriteerror.
61693
61694 2006-10-06  Bruno Haible  <bruno@clisp.org>
61695
61696         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
61697         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
61698         int.
61699         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
61700         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
61701         Return an error indicator.
61702         Suggested by Eric Blake.
61703
61704 2006-10-06  Bruno Haible  <bruno@clisp.org>
61705
61706         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
61707         Reported by Eric Blake.
61708
61709 2006-10-06  Bruno Haible  <bruno@clisp.org>
61710
61711         * modules/closeout (Description): Mention stderr too.
61712
61713 2006-10-06  Bruno Haible  <bruno@clisp.org>
61714         and Paul Eggert  <eggert@cs.ucla.edu>
61715
61716         * lib/closeout.c (close_stdout): Also close stderr.
61717         * lib/closeout.h: Update comment.
61718
61719 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61720
61721         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
61722         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
61723         * lib/dirchownmod.c: Include lchown.h.
61724         * lib/lchown.c: Don't include files that lchown.h now includes.
61725         Don't declare chown, since lchown.h now does that.
61726         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
61727         (lchown): Define to rpl_chown if lchown is declared but
61728         does not exist.  Declare using a prototype if lchown is not
61729         declared.  Add a copyright notice.
61730         * lib/mkstemp.h: Include <unistd.h>.
61731         * lib/openat.c: Include lchown.h.
61732
61733         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
61734         we now test for that separately.
61735         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
61736         rather than O_NOFOLLOW, when testing whether it's possible to
61737         avoid a race condition reliably.
61738         * lib/savewd.c (savewd_chdir): Likewise.
61739
61740         Remove macros that are no longer needed now that stdint.h is
61741         reliable.
61742         * lib/fsusage.c (UINTMAX_MAX): Remove.
61743         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
61744         * lib/utimecmp.c (SIZE_MAX): Remove.
61745
61746         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
61747
61748         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
61749         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
61750         O_NOATIME works.
61751
61752 2006-10-05  Bruno Haible  <bruno@clisp.org>
61753
61754         * lib/gl_list.h (gl_sortedlist_search_from_to,
61755         gl_sortedlist_indexof_from_to): New declarations.
61756         (gl_list_implementation): New fields sortedlist_search_from_to,
61757         sortedlist_indexof_from_to.
61758         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
61759         inline functions.
61760         * lib/gl_list.c (gl_sortedlist_search_from_to,
61761         gl_sortedlist_indexof_from_to): New functions.
61762         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
61763         function.
61764         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
61765         (gl_array_sortedlist_search_from_to): New function.
61766         (gl_array_list_implementation): Update.
61767         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
61768         function.
61769         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
61770         (gl_carray_sortedlist_search_from_to): New function.
61771         (gl_carray_list_implementation): Update.
61772         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
61773         gl_linked_sortedlist_indexof_from_to): New functions.
61774         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61775         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61776         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
61777         gl_tree_sortedlist_indexof_from_to): New functions.
61778         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61779         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61780         Update.
61781         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61782         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
61783         Update.
61784
61785 2006-10-05  Bruno Haible  <bruno@clisp.org>
61786
61787         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
61788         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
61789         (struct gl_list_implementation): Add fields search_from_to,
61790         indexof_from_to. Remove fields search, indexof.
61791         (gl_list_search): Use the search_from_to method.
61792         (gl_list_search_from, gl_list_search_from_to): New functions.
61793         (gl_list_indexof): Use the indexof_from_to method.
61794         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61795         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
61796         (gl_list_search_from, gl_list_search_from_to): New functions.
61797         (gl_list_indexof): Use the indexof_from_to method.
61798         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61799         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
61800         gl_array_indexof. Add start_index, end_index arguments.
61801         (gl_array_search_from_to): Renamed from gl_array_search. Add
61802         start_index, end_index arguments.
61803         (gl_array_remove, gl_array_list_implementation): Update.
61804         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
61805         gl_carray_indexof. Add start_index, end_index arguments.
61806         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
61807         start_index, end_index arguments.
61808         (gl_carray_remove, gl_carray_list_implementation): Update.
61809         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
61810         gl_linked_search. Add start_index, end_index arguments.
61811         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
61812         start_index, end_index arguments.
61813         (gl_linked_remove): Update.
61814         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61815         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61816         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
61817         field to 'size_t'.
61818         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
61819         gl_tree_search. Add start_index, end_index arguments.
61820         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
61821         start_index, end_index arguments.
61822         (gl_tree_remove): Update.
61823         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61824         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61825         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
61826         function.
61827         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
61828         gl_tree_search. Add start_index, end_index arguments.
61829         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
61830         start_index, end_index arguments.
61831         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61832         Update.
61833         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61834
61835 2006-10-05  Bruno Haible  <bruno@clisp.org>
61836
61837         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
61838
61839         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
61840         fwriteerror_temp): New declarations.
61841         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
61842         (descriptors): New variable.
61843         (cleanup): First, close the descriptors.
61844         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
61845         fclose_temp, fwriteerror_temp): New functions.
61846
61847 2006-10-04  Jim Meyering  <jim@meyering.net>
61848
61849         * lib/fts.c (fts_open): Tiny comment change.
61850
61851 2006-10-04  Bruno Haible  <bruno@clisp.org>
61852
61853         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
61854         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
61855         gl_LOCK_BODY.
61856         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
61857         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
61858         gl_LOCK_EARLY_BODY.
61859         (gl_LOCK): Require gl_LOCK_BODY.
61860
61861 2006-10-04  Bruno Haible  <bruno@clisp.org>
61862
61863         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
61864         (gl_oset_search_atleast): New declaration.
61865         (struct gl_oset_implementation): Add field 'search_atleast'.
61866         (gl_oset_search_atleast): New inline function.
61867         * lib/gl_oset.c (gl_oset_search_atleast): New function.
61868         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
61869         (gl_array_oset_implementation): Update.
61870         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
61871         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
61872         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
61873
61874 2006-10-04  Bruno Haible  <bruno@clisp.org>
61875
61876         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
61877
61878 2006-10-03  Bruno Haible  <bruno@clisp.org>
61879
61880         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
61881         from gl_avltreehash_list_implementation.
61882
61883 2006-10-03  Bruno Haible  <bruno@clisp.org>
61884
61885         * lib/gl_oset.c (gl_oset_add): Fix return type.
61886
61887 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
61888
61889         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
61890
61891 2006-10-02  Eric Blake  <ebb9@byu.net>
61892
61893         * modules/strnlen (Depends-on): Add extensions.
61894
61895 2006-10-02  Eric Blake  <ebb9@byu.net>
61896
61897         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
61898         definition in 2.60+.
61899
61900 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
61901
61902         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
61903         checks.
61904
61905 2006-10-02  Bruno Haible  <bruno@clisp.org>
61906
61907         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
61908         to the AUTOMAKE_OPTIONS.
61909         Reported by Jim Meyering.
61910
61911 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
61912
61913         Work around bug in Solaris 10 /proc file system:
61914         /proc/self/fd/NNN/.. isn't the parent directory of
61915         the directory whose file descriptor is NNN.  This needs to
61916         be worked around at run time, not compile time, since a
61917         program might be built on Solaris 8, where things work, and
61918         run on Solaris 10.
61919         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
61920         to use the following interface instead:
61921         (OPENAT_BUFFER_SIZE): New macro.
61922         (openat_proc_name): New function.
61923         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
61924         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
61925         Likewise.
61926         * lib/openat-proc.c: New file.
61927         * modules/openat (Files): Add lib/openat-proc.c.
61928         (Depends-on): Add same-inode, stdbool.
61929         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
61930
61931 2006-09-29  Bruno Haible  <bruno@clisp.org>
61932
61933         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
61934         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
61935         argument. Set stdout_closed before testing for ferror, not after.
61936         (fwriteerror, fwriteerror_no_ebadf): New functions.
61937
61938 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61939
61940         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
61941
61942 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
61943
61944         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
61945         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
61946
61947 2006-09-28  Jim Meyering  <jim@meyering.net>
61948
61949         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
61950         Include <unistd.h>.
61951
61952 2006-09-28  Bruno Haible  <bruno@clisp.org>
61953
61954         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
61955         * modules/linkedhash-list (Depends-on): Likewise.
61956         * modules/rbtreehash-list (Depends-on): Likewise.
61957
61958 2006-09-28  Bruno Haible  <bruno@clisp.org>
61959
61960         * lib/strndup.h: Simplify the redefinition of strndup.
61961         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
61962         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
61963
61964 2006-09-28  Bruno Haible  <bruno@clisp.org>
61965
61966         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
61967         * lib/gl_linkedhash_list.c: Likewise.
61968         * lib/gl_rbtreehash_list.c: Likewise.
61969
61970 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
61971
61972         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
61973         getaddrinfo.
61974
61975         * lib/__fpending.h: Don't include <stdio_ext.h> unless
61976         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
61977         it causes <stdio_ext.h> to cause a compile-time error.
61978         Problem reported by Nelson H. F. Beebe.
61979         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
61980         of HAVE_DECL___PENDING.
61981
61982         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
61983         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
61984         declaration.
61985
61986 2006-09-27  Jim Meyering  <jim@meyering.net>
61987
61988         This file could end up with a definition for a function
61989         named __strndup, rather than rpl_strndup on a system with
61990         incomplete weak_alias support.
61991         * lib/strndup.c (strndup): Rename from __strndup.
61992         Remove #defines that used to map __strndup to strndup.
61993         Don't use K&R prototypes.
61994         Remove LIBC-related code, since this file is not sync'd with glibc.
61995         * lib/strndup.h: Revamp, accordingly.
61996         * m4/strndup.m4: Modernize.
61997
61998 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
61999
62000         * modules/savewd (Depends-on): Add 'raise'.
62001         * lib/savewd.c: Include <signal.h>, for 'raise'.
62002
62003 2006-09-26  Jim Meyering  <jim@meyering.net>
62004
62005         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
62006         when we detect Darwin 8.7.0's acl_get_file bug.
62007         Rearrange to perform the new (below) run-test while $LIBS
62008         contains any acl-related library.  Set USE_ACL at the end.
62009         (gl_ACL_GET_FILE): New function.
62010
62011 2006-09-26  Eric Blake  <ebb9@byu.net>
62012
62013         * lib/verror.c: Include <config.h> unconditionally.
62014
62015 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
62016
62017         * modules/clock-time (Maintainer): Add self.
62018         * modules/getlogin_r (Depends-on): Add extensions.
62019
62020 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62021
62022         * modules/clock-time: New module.
62023         * modules/nanosleep (Depends-on): Add clock-time.
62024         * modules/gethrxtime (Depends-on): Likewise.
62025         * modules/gettime (Depends-on): Likewise.
62026         * modules/settime (Depends-on): Likewise.
62027
62028         * modules/fts-lgpl: Depend on openat.
62029         * modules/mkancesdirs: Depend on savewd.
62030         * modules/mkdir-p: Likewise.
62031
62032 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62033
62034         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
62035
62036         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
62037         `gl_have_arbitrary_file_name_length_limit' to
62038         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
62039         actually works between configure runs.
62040
62041 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62042             Bruno Haible  <bruno@clisp.org>
62043
62044         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
62045
62046 2006-09-25  Jim Meyering  <jim@meyering.net>
62047
62048         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
62049         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
62050
62051 2006-09-25  Eric Blake  <ebb9@byu.net>
62052
62053         * gnulib-tool (func_import, func_create_testdir): Fix typos in
62054         exec's in 2006-09-18 patch when shuffling fds.
62055
62056 2006-09-25  Bruno Haible  <bruno@clisp.org>
62057
62058         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
62059         Reported by Jim Meyering.
62060
62061 2006-09-24  Jim Meyering  <jim@meyering.net>
62062
62063         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
62064         compare a pointer against a literal "0".  That caused failures with
62065         at least HP-UX's hpcc.
62066
62067 2006-09-22  Simon Josefsson  <jas@extundo.com>
62068
62069         * modules/gc-sha1:
62070         * modules/gc-md4:
62071         * modules/gc-hmac-sha1:
62072         * modules/gc-hmac-md5:
62073         * modules/gc-des:
62074         * modules/gc-arcfour: Distribute more files.
62075
62076 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62077
62078         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
62079         (gl_linked_iterator_from_to): Initialize struct completely.
62080         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
62081         (gl_tree_iterator_from_to): Likewise
62082         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
62083         * lib/gl_array_list.c [lint] (gl_array_iterator)
62084         (gl_array_iterator_from_to): Likewise.
62085         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
62086         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
62087         (gl_carray_iterator_from_to): Likewise.
62088
62089         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
62090         * lib/md4.c (md4_process_block): Remove unused variable.
62091         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
62092         parentheses for clarity.
62093
62094 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62095
62096         * modules/bison-i18n (Depends-on): Add gettext.
62097
62098 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62099
62100         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
62101         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62102         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
62103         also add missing comma that caused broken test.
62104         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
62105         stdlib.h, for `abort'.
62106         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
62107         variables.
62108         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
62109         include unistd.h if present, for `rmdir'.
62110         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
62111         variables.
62112         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
62113         in the process include standard headers for prototypes.
62114         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
62115         gets declared on GNU/Linux.
62116         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
62117         unistd.h, for `rmdir'.
62118         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
62119
62120         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
62121         always true.
62122         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
62123
62124         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
62125
62126 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62127
62128         * gnulib-tool (func_version): Create output all at once.  This
62129         may help avoid triggering unnecessary SIGPIPEs, and at any
62130         rate it doesn't hurt.
62131
62132 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62133             Bruno Haible  <bruno@clisp.org>
62134
62135         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
62136         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62137         * m4/signed.m4 (bh_C_SIGNED): Likewise.
62138
62139         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
62140         (gl_FUNC_VASPRINTF): Invoke it.
62141
62142 2006-09-22  Bruno Haible  <bruno@clisp.org>
62143
62144         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
62145         getloadavg.c as first argument.
62146
62147 2006-09-22  Bruno Haible  <bruno@clisp.org>
62148
62149         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
62150         at the beginning of the gl_INIT macro.
62151         * modules/getloadavg (configure.ac): Pass $gl_source_base to
62152         gl_GETLOADAVG.
62153
62154 2006-09-22  Bruno Haible  <bruno@clisp.org>
62155
62156         * gnulib-tool (func_create_megatestdir): Don't include the config-h
62157         module.
62158         Suggested by Ralf Wildenhues.
62159
62160 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62161
62162         Import this patch from libc:
62163
62164         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
62165
62166         * lib/regex_internal.c (re_string_reconstruct): Handle
62167         offset < pstr->valid_raw_len && pstr->offsets_needed case.
62168         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
62169         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
62170         re_string_context_at.
62171
62172         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
62173         now requires it.
62174         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
62175         gl_REGEX now does it for us.
62176         (gl_REGEX): Add test taken from
62177         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
62178
62179         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
62180         Check that large offsets work.  Modernize Autoconf usages.
62181         Prefer "yes" to mean a good thing rather than a bad.
62182         Don't put "#define mkstemp" in config.h, as this might interfere
62183         with standard system headers that "#define mkstemp mkstemp64".
62184
62185         * modules/mkstemp (Depends-on): Add extensions, so that
62186         mkstemp is visible on some platforms.
62187         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
62188         (Include): Change to "mkstemp.h" from <stdlib.h>.
62189         (Files): Add mkstemp.h.
62190
62191         * lib/mkstemp.h: New file, since some standard headers
62192         #define mkstemp.
62193         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
62194         Include "mkstemp.h".
62195         Make the _LIBC code resemble glibc original more,
62196         e.g., use K&R style.
62197         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
62198         (mkstemp): Remove, since mkstemp.h does this for us.
62199         * lib/stdlib--.h: Include mkstemp.h.
62200
62201         Import this patch from libc:
62202
62203         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62204
62205         * lib/tempname.c (__gen_tempname): Change attempts_min
62206         into a macro.  Use preprocessor to decide how to initialize
62207         attempts [Coverity CID 67].
62208
62209 2006-09-20  Bruno Haible  <bruno@clisp.org>
62210
62211         * lib/mkdtemp.c: Import from libc.
62212         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
62213                 * sysdeps/posix/tempname.c (__gen_tempname): Change
62214                 attempts_min into a macro.  Use preprocessor to decide how to
62215                 initialize attempts [Coverity CID 67].
62216         2001-11-27  Paul Eggert  <eggert@twinsun.com>
62217                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
62218                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
62219
62220 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62221
62222         * gnulib-tool (func_exit): New function, to allow to pass the
62223         exit status portably through the trap.  Use everywhere.
62224         (--help, --version): Signal a write error.
62225         (trap): catch SIGPIPE, for write errors.
62226         Exit at the end of the trap, with the correct exit status.
62227
62228 2006-09-19  Karl Berry  <karl@gnu.org>
62229
62230         * doc/gnulib.texi: note about the license texinfo files.
62231
62232 2006-09-19  Eric Blake  <ebb9@byu.net>
62233
62234         * gnulib-tool: Avoid space-tab.
62235
62236 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62237
62238         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
62239         that prevented coreutils 6.1 from building.  Problem reported
62240         by Petter Reinholdtsen.
62241
62242 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
62243
62244         * gnulib-tool (avoidlist): Fix typo that broke options like
62245         --avoid=lock that are used by coreutils bootstrap.
62246
62247 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
62248
62249         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
62250         more systematically.
62251
62252 2006-09-18  Jim Meyering  <jim@meyering.net>
62253
62254         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
62255
62256 2006-09-18  Bruno Haible  <bruno@clisp.org>
62257
62258         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
62259
62260 2006-09-18  Bruno Haible  <bruno@clisp.org>
62261
62262         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
62263         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
62264         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
62265         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
62266         * m4/gettext.m4: Require autoconf >= 2.52.
62267         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
62268         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
62269         of gl_cv_header_inttypes_h.
62270
62271 2006-09-18  Bruno Haible  <bruno@clisp.org>
62272
62273         * lib/javaversion.c: Include configmake.h.
62274
62275 2006-09-18  Bruno Haible  <bruno@clisp.org>
62276
62277         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
62278         avoid that the while loops be executed in a subshell.
62279
62280 2006-09-18  Bruno Haible  <bruno@clisp.org>
62281
62282         * MODULES.html.sh (func_module): Break long lines.
62283         Suggested by Bruce Korb <bkorb@gnu.org>.
62284
62285 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62286
62287         Speed up by a factor of 1.12.
62288         * gnulib-tool (nl): New variable.
62289         (func_import): Rewrite include directive extraction to only read each
62290         directive once.
62291
62292 2006-09-17  Bruno Haible  <bruno@clisp.org>
62293
62294         * modules/javaversion (Makefile.am): Remove DEFS setting.
62295         (Depends-on): Add configmake, for PKGDATADIR definition.
62296
62297 2006-09-17  Bruno Haible  <bruno@clisp.org>
62298
62299         * gnulib-tool (func_create_testdir): Rewrite all files at once.
62300
62301 2006-09-17  Bruno Haible  <bruno@clisp.org>
62302
62303         * gnulib-tool (func_append): New function, stolen from libtool.m4.
62304         (func_modules_transitive_closure, func_modules_add_dummy,
62305         func_modules_to_filelist, func_import, func_create_testdir,
62306         func_create_megatestdir, ...): Use it wherever possible.
62307         Suggested by Ralf Wildenhues.
62308
62309 2006-09-16  Karl Berry  <karl@gnu.org>
62310
62311         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
62312         to avoid sectioning errors.
62313         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
62314         [ifinfo]: blank line after @center-ed titles.
62315         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
62316         Spell FSF address consistently with others.
62317         (These changes approved by rms.)
62318
62319 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62320
62321         Speed up by a factor of 1.61.
62322         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
62323         already checked module names again.
62324
62325 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62326
62327         Speed up by a factor of 1.13.
62328         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
62329         for new_files, and the input to func_add_or_update.
62330
62331 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62332
62333         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
62334         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
62335
62336 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62337
62338         * modules/mkancesdirs (Depends-on): Add fcntl.
62339         * modules/savewd: New file.
62340         * MODULES.html.sh (File system functions): Add savewd.
62341
62342         * modules/configmake (Makefile.am): Add support for the
62343         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
62344
62345 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62346
62347         * m4/savewd.m4: New file.
62348
62349 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
62350
62351         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
62352         (dirchownmod): New arg FD.  All callers changed.
62353         Use FD rather than opening the directory ourself, as opening is
62354         now the caller's responsibility.
62355         * lib/dirchownmod.h: Likewise.
62356         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
62357         hosts that require <sys/types.h> before <sys/stat.h>.  Include
62358         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
62359         (test_dir): Remove.
62360         (mkancesdirs): Return length of prefix of FILE that has already
62361         been made, or -2 if there is a child doing the work.  Redo
62362         algorithm so that it is O(N) rather than O(N**2).  Optimize away
62363         ".", and treat ".." specially since it might stray back into
62364         already-created areas.  Use a subprocess if necessary.  New arg
62365         WD; all users changed.  MAKE_DIR function should now return 1
62366         if it creates a directory that is not readable.  Return -2 if
62367         a child process is spun off.
62368         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
62369         Adjust signature to match code.
62370         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
62371         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
62372         all users changed.
62373         * lib/savewd.c, lib/savewd.h: New files.
62374
62375 2006-09-15  Jim Meyering  <jim@meyering.net>
62376
62377         * modules/rename-dest-slash: New module.
62378         * MODULES.html.sh (posix_compat): Add it here.
62379
62380         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
62381
62382 2006-09-15  Jim Meyering  <jim@meyering.net>
62383
62384         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
62385         file.
62386
62387         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
62388
62389 2006-09-15  Jim Meyering  <jim@meyering.net>
62390
62391         * lib/rename-dest-slash.c (has_trailing_slash): Use
62392         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
62393         (rpl_rename_dest_slash): Perform the cheaper trailing slash
62394         test before testing whether SRC is a directory.
62395         Suggestions from Bruno Haible.
62396
62397         Avoid a warning about an unused variable.
62398         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
62399         into the #ifdef block where it's used.
62400
62401         * lib/rename-dest-slash.c: New file.
62402
62403 2006-09-14  Bruno Haible  <bruno@clisp.org>
62404
62405         * lib/allocsa.c: Include <config.h> unconditionally.
62406         * lib/asnprintf.c: Likewise.
62407         * lib/asprintf.c: Likewise.
62408         * lib/c-strcasecmp.c: Likewise.
62409         * lib/c-strcasestr.c: Likewise.
62410         * lib/c-strncasecmp.c: Likewise.
62411         * lib/c-strstr.c: Likewise.
62412         * lib/classpath.c: Likewise.
62413         * lib/clean-temp.c: Likewise.
62414         * lib/concatpath.c: Likewise.
62415         * lib/copy-file.c: Likewise.
62416         * lib/csharpcomp.c: Likewise.
62417         * lib/csharpexec.c: Likewise.
62418         * lib/execute.c: Likewise.
62419         * lib/fatal-signal.c: Likewise.
62420         * lib/findprog.c: Likewise.
62421         * lib/fwriteerror.c: Likewise.
62422         * lib/gl_array_list.c: Likewise.
62423         * lib/gl_array_oset.c: Likewise.
62424         * lib/gl_avltree_list.c: Likewise.
62425         * lib/gl_avltree_oset.c: Likewise.
62426         * lib/gl_avltreehash_list.c: Likewise.
62427         * lib/gl_carray_list.c: Likewise.
62428         * lib/gl_linked_list.c: Likewise.
62429         * lib/gl_linkedhash_list.c: Likewise.
62430         * lib/gl_list.c: Likewise.
62431         * lib/gl_oset.c: Likewise.
62432         * lib/gl_rbtree_list.c: Likewise.
62433         * lib/gl_rbtree_oset.c: Likewise.
62434         * lib/gl_rbtreehash_list.c: Likewise.
62435         * lib/imaxabs.c: Likewise.
62436         * lib/imaxdiv.c: Likewise.
62437         * lib/javacomp.c: Likewise.
62438         * lib/javaexec.c: Likewise.
62439         * lib/javaversion.c: Likewise.
62440         * lib/linebreak.c: Likewise.
62441         * lib/localcharset.c: Likewise.
62442         * lib/lock.c: Likewise.
62443         * lib/mbchar.c: Likewise.
62444         * lib/mbswidth.c: Likewise.
62445         * lib/mkdtemp.c: Likewise.
62446         * lib/pipe.c: Likewise.
62447         * lib/printf-args.c: Likewise.
62448         * lib/printf-parse.c: Likewise.
62449         * lib/progname.c: Likewise.
62450         * lib/progreloc.c: Likewise.
62451         * lib/readlink.c: Likewise.
62452         * lib/sh-quote.c: Likewise.
62453         * lib/stpcpy.c: Likewise.
62454         * lib/stpncpy.c: Likewise.
62455         * lib/strcasecmp.c: Likewise.
62456         * lib/strcasestr.c: Likewise.
62457         * lib/strcspn.c: Likewise.
62458         * lib/striconv.c: Likewise.
62459         * lib/strncasecmp.c: Likewise.
62460         * lib/strnlen1.c: Likewise.
62461         * lib/strstr.c: Likewise.
62462         * lib/strtok_r.c: Likewise.
62463         * lib/tls.c: Likewise.
62464         * lib/tmpdir.c: Likewise.
62465         * lib/unicodeio.c: Likewise.
62466         * lib/unsetenv.c: Likewise.
62467         * lib/vasnprintf.c: Likewise.
62468         * lib/vasprintf.c: Likewise.
62469         * lib/wait-process.c: Likewise.
62470         * lib/xallocsa.c: Likewise.
62471         * lib/xsetenv.c: Likewise.
62472         * lib/xstriconv.c: Likewise.
62473
62474 2006-09-13  Simon Josefsson  <jas@extundo.com>
62475
62476         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
62477         that internally, suggested by Ralf Wildenhues
62478         <Ralf.Wildenhues@gmx.de>.
62479
62480 2006-09-13  Simon Josefsson  <jas@extundo.com>
62481
62482         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
62483         @LIBOBJS@.
62484         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62485
62486 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62487
62488         * lib/_fpending.c: Include <config.h> unconditionally, since we no
62489         longer worry about uses that don't define HAVE_CONFIG_H.
62490         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
62491         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
62492         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
62493         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
62494         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
62495         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
62496         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
62497         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
62498         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
62499         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
62500         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
62501         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
62502         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
62503         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
62504         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
62505         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
62506         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
62507         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
62508         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
62509         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
62510         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
62511         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
62512         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
62513         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
62514         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
62515         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
62516         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
62517         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
62518         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
62519         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
62520         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
62521         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
62522         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
62523         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
62524         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
62525         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
62526         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
62527         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
62528         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
62529         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
62530         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
62531         Likewise.
62532
62533 2006-09-13  Eric Blake  <ebb9@byu.net>
62534
62535         * lib/getopt.c: Fix typo in last commit.
62536
62537 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62538
62539         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
62540         dgettext.
62541
62542 2006-09-12  Jim Meyering  <jim@meyering.net>
62543
62544         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
62545         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
62546         Reported by Nelson H. F. Beebe.
62547
62548 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62549
62550         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
62551         program_invocation_name and program_invocation_short_name are
62552         initialized.
62553         * lib/argp-namefrob.h: Move declarations of program_invocation_name
62554         and program_invocation_short_name to argp.h, so they are visible
62555         to user programs.
62556         * lib/argp.h: Likewise
62557
62558 2006-09-10  Bruno Haible  <bruno@clisp.org>
62559
62560         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62561         m4/inttypes_h.m4, m4/uintmax_t.m4.
62562
62563 2006-09-10  Bruno Haible  <bruno@clisp.org>
62564
62565         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
62566         gl_AC_TYPE_UINTMAX_T.
62567
62568 2006-09-10  Bruno Haible  <bruno@clisp.org>
62569
62570         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
62571
62572 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62573
62574         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
62575         convention.  Text proposed by Bruno Haible.
62576         (struct argp_option): Document the use of N_() wrappers.
62577
62578         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
62579         '\v', and translate the two parts separately, instead of feeding
62580         the whole string to gettext.  This allows to exclude
62581         '\v' from the strings visible to the translator by writing doc
62582         strings as N_("..") "\v" N_("..").
62583
62584 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
62585
62586         * config/srclist.txt: Undo latest change; the bug was fixed.
62587
62588 2006-09-09  Bruno Haible  <bruno@clisp.org>
62589
62590         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
62591         assignments if building a library without libtool.
62592         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
62593         in func_emit_lib_Makefile_am.
62594         (func_import): When building a static library libfoo.a, arrange to
62595         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
62596         (func_create_testdir): Likewise.
62597         * modules/gc (configure.ac, Makefile.am): If building statically,
62598         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
62599         * modules/iconvme (configure.ac, Makefile.am): Likewise.
62600         * modules/striconv (configure.ac, Makefile.am): Likewise.
62601         Based on a suggestion by Ralf Wildenhues.
62602
62603 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62604
62605         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62606         Check for unistd.h too, since Autoconf doesn't assume POSIX.
62607         Also:
62608
62609         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62610         Add year_2050_test to catch glibc bug 2821
62611         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62612
62613         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62614         Prefer #ifdef to #if.
62615
62616         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
62617         Return from 'main' instead of calling 'exit'.
62618
62619 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62620
62621         * lib/mktime.c (guess_time_tm): Fix bug where mktime
62622         returned the maximum time_t value rather than (time_t) -1.
62623         Problem originally reported by William Bardwell
62624         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
62625
62626         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62627         Moved to here ...
62628         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
62629         ... from here.
62630
62631 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
62632
62633         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
62634         2821 is fixed.
62635
62636 2006-09-08  Jim Meyering  <jim@meyering.net>
62637
62638         Don't make generated files read-only.  That would bother too many
62639         people.  However, do retain the ability to work when targets are
62640         read-only: remove the destination and temporary files before writing
62641         them (when generated via sed or echo), or by using the -f option for
62642         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
62643         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62644         * modules/byteswap, modules/configmake, modules/fcntl:
62645         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62646         * modules/localcharset, modules/netinet_in, modules/poll:
62647         * modules/stdbool, modules/stdint, modules/sys_select:
62648         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62649
62650 2006-09-08  Jim Meyering  <jim@meyering.net>
62651
62652         Avoid new build failure on FreeBSD 6.0.
62653         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
62654         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
62655         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
62656
62657 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62658
62659         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
62660
62661 2006-09-07  Jim Meyering  <jim@meyering.net>
62662
62663         Fix global typo in last change: use chmod u-w, not chmod u-x.
62664         Spotted by Paul Eggert and Bruce Korb.
62665         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62666         * modules/byteswap, modules/configmake, modules/fcntl:
62667         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62668         * modules/localcharset, modules/netinet_in, modules/poll:
62669         * modules/stdbool, modules/stdint, modules/sys_select:
62670         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62671
62672 2006-09-06  Jim Meyering  <jim@meyering.net>
62673
62674         Make generated files be read-only.
62675         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
62676         Ensure that each generated file is now read-only.
62677         * modules/argz: Likewise.
62678         * modules/arpa_inet: Likewise.
62679         * modules/byteswap: Likewise.
62680         * modules/configmake: Likewise.
62681         * modules/fcntl: Likewise.
62682         * modules/fnmatch: Likewise.
62683         * modules/getopt: Likewise.
62684         * modules/glob: Likewise.
62685         * modules/inttypes: Likewise.
62686         * modules/netinet_in: Likewise.
62687         * modules/poll: Likewise.
62688         * modules/stdbool: Likewise.
62689         * modules/stdint: Likewise.
62690         * modules/sys_select: Likewise.
62691         * modules/sys_socket: Likewise.
62692         * modules/sys_stat: Likewise.
62693         * modules/sysexits: Likewise.
62694         * modules/localcharset: Same as above, but continue using temporary
62695         file named "t-$@" (why different?) rather than the "$@-t" used
62696         everywhere else.
62697
62698         * modules/sysexits (Makefile.am): Replace literal occurrences
62699         of "sysexit.h" more readable, and more consistent, "$@".
62700
62701 2006-09-06  Bruno Haible  <bruno@clisp.org>
62702
62703         * modules/striconv: New file.
62704         * modules/xstriconv: New file.
62705         * MODULES.html.sh (Internationalization functions): Add striconv,
62706         xstriconv.
62707
62708 2006-09-06  Bruno Haible  <bruno@clisp.org>
62709
62710         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
62711         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
62712         not using libtool correctly.
62713
62714 2006-09-06  Bruno Haible  <bruno@clisp.org>
62715
62716         * lib/striconv.h: New file.
62717         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
62718         iconvstring.c.
62719         * lib/xstriconv.h: New file.
62720         * lib/xstriconv.c: New file.
62721
62722 2006-09-06  Bruno Haible  <bruno@clisp.org>
62723
62724         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62725         lib_..._LDFLAGS.
62726
62727 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62728
62729         * lib/argz_.h: Sync from Libtool.
62730
62731         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
62732                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62733
62734         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
62735
62736 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62737
62738         * modules/trim: New file.
62739
62740 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62741
62742         * lib/trim.h: New file.
62743         * lib/trim.c: New file.
62744
62745 2006-09-05  Bruno Haible  <bruno@clisp.org>
62746
62747         * MODULES.html.sh (String handling): Add trim.
62748
62749 2006-09-04  Karl Berry  <karl@gnu.org>
62750
62751         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
62752         until next release.
62753
62754 2006-09-03  Bruno Haible  <bruno@clisp.org>
62755
62756         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
62757         correctly.
62758
62759 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62760
62761         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
62762         not gl_GETLOADAVG.  Omit unneeded semicolons.
62763         Problems reported by Ralf Wildenhues in
62764         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62765         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
62766         at the end, which is the usual gnulib style.
62767
62768         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
62769         of doing all the work ourselves.
62770         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
62771         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
62772
62773 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62774
62775         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
62776         Problem reported by Ralf Wildenhues in
62777         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62778
62779         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
62780         HAVE_STRUCT_STATFS_F_FSTYPENAME.
62781
62782 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62783
62784         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
62785         yesterday's patch by changing test -n to test -z.
62786
62787 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62788
62789         * modules/getloadavg (Files): Add m4/getloadavg.m4.
62790         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
62791         the former is now obsolescent.
62792
62793         * modules/chdir-long (Depends-on): Add fcntl.
62794
62795 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62796
62797         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
62798         obsolescent, and programs should use gnulib instead.
62799         * m4/getloadavg.m4: New file, with contents taken from Autoconf
62800         but with prefixes changed.
62801
62802 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62803
62804         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
62805         or stdbool.h, because they might not exist while configuring.
62806
62807         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
62808         Don't include unistd.h or limits.h; not needed, since chdir-long.h
62809         does that for us.
62810         (O_DIRECTORY): Remove.
62811
62812 2006-08-31  Eric Blake  <ebb9@byu.net>
62813
62814         * gnulib-tool: Don't let emacs change spaces to TAB.
62815
62816 2006-08-31  Bruno Haible  <bruno@clisp.org>
62817
62818         * gnulib-tool: When calling func_import more than once, do it in a
62819         subshell.
62820         Reported by Eric Blake <ebb9@byu.net>.
62821
62822 2006-08-31  Bruno Haible  <bruno@clisp.org>
62823
62824         * gnulib-tool (nl): Remove variable.
62825         (sed_transform_lib_file): Use more robust test for config-h module.
62826         (func_import): Fix typo in 2006-08-25 patch.
62827
62828 2006-08-31  Bruno Haible  <bruno@clisp.org>
62829
62830         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
62831         specified, augment Makefile.am variables instead of assigning them.
62832
62833 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62834
62835         Work around a bug in both the Linux and SunOS 64-bit kernels:
62836         nanosleep mishandles sleeps for longer than 2**31 seconds.
62837         Problem reported by Frank v Waveren in
62838         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
62839         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
62840         Check for nanosleep bug.
62841         (LIB_NANOSLEEP): Append clock_gettime library if needed.
62842
62843 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62844
62845         Work around a bug in both the Linux and SunOS 64-bit kernels:
62846         nanosleep mishandles sleeps for longer than 2**31 seconds.
62847         Problem reported by Frank v Waveren in
62848         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
62849         * lib/nanosleep.c (BILLION): New constant.
62850         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
62851         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
62852         implementation.
62853
62854 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62855
62856         * modules/nanosleep (Depends-on): Add gettime.
62857
62858 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62859         and Simon Josefsson  <jas@extundo.com>
62860         and Oskar Liljeblad  <oskar@osk.mine.nu>
62861
62862         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
62863         * gnulib-tool (func_import): New license type 'unmodifiable license
62864         text'.
62865         * modules/fdl: Use it.  Longer description.
62866         * module/gpl, module/lgpl: New files.
62867
62868 2006-08-30  Jim Meyering  <jim@meyering.net>
62869
62870         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
62871         shadowing the parameter.
62872
62873 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62874
62875         Sync from Libtool:
62876
62877         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62878
62879         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
62880         sharing with gnulib.  Report by Eric Blake.
62881
62882 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62883
62884         * modules/isapipe: New file.
62885         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
62886
62887 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62888
62889         * modules/configmake (Makefile.am): Add a comment, and omit
62890         the CONFIGMAKE_ prefix from generated macro names.  Suggested
62891         by Bruno Haible.
62892
62893 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62894
62895         * m4/isapipe.m4: New file.
62896
62897 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62898
62899         * lib/isapipe.c, lib/isapipe.h: New files.
62900
62901 2006-08-29  Jim Meyering  <jim@meyering.net>
62902
62903         * modules/configmake (Makefile.am): Make configmake.h depend on
62904         Makefile.  Otherwise, a stale configmake.h could hang around.
62905
62906 2006-08-29  Eric Blake  <ebb9@byu.net>
62907
62908         * lib/error.c (error_at_line, print_errno_message): Match libc, after
62909         resolution of upstream bug 3044.
62910
62911 2006-08-29  Bruno Haible  <bruno@clisp.org>
62912
62913         * modules/localcharset (Depends-on): Add configmake.
62914         (Makefile.am): Remove setting of LIBDIR through DEFS.
62915
62916 2006-08-29  Bruno Haible  <bruno@clisp.org>
62917
62918         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
62919         defined.
62920
62921 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62922
62923         * modules/fcntl: New file.
62924         * modules/chdir-safer (Depends-on): Add fcntl.
62925         * modules/fts: Likewise.
62926         * modules/mkdir-p: Likewise.
62927
62928         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
62929         This undoes the most recent change, since we're now addressing the
62930         problem in a different way.
62931
62932         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
62933         into output, since the output might be called Makefile.am even
62934         if $makefile_name is something different.
62935         (func_import): Use $makefile_am rather than
62936         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
62937         empty.
62938
62939         * modules/inttypes (Files): Add m4/inttypes-h.m4.
62940
62941 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62942
62943         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
62944         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
62945         recent change to stdint.m4, since we're now addressing the problem in a
62946         different way.
62947
62948 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62949
62950         * m4/fcntl_h.m4: New file.
62951
62952 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62953
62954         * lib/fcntl_.h: New file.
62955         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
62956         the fcntl module.
62957         * lib/dirchownmod.c: Likewise.
62958         * lib/fts.c: Likewise.
62959
62960         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
62961         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
62962         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
62963         just before including <inttypes.h>, to avoid circular inclusion.
62964
62965 2006-08-28  Jim Meyering  <jim@meyering.net>
62966
62967         * doc/visibility.texi: Actually read and correct the grammar of the
62968         sentence affected by yesterday's change.
62969
62970 2006-08-28  Eric Blake  <ebb9@byu.net>
62971
62972         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
62973         needs wrapper.
62974
62975 2006-08-28  Eric Blake  <ebb9@byu.net>
62976
62977         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
62978
62979 2006-08-28  Eric Blake  <ebb9@byu.net>
62980
62981         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
62982
62983 2006-08-28  Bruno Haible  <bruno@clisp.org>
62984
62985         * modules/c-strstr: New file, from GNU gettext.
62986         * MODULES.html.sh (String handling): Add c-strstr.
62987
62988 2006-08-28  Bruno Haible  <bruno@clisp.org>
62989
62990         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
62991         macros.
62992         Reported by Eric Blake.
62993
62994 2006-08-28  Bruno Haible  <bruno@clisp.org>
62995
62996         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
62997         (VASNPRINTF): Return a string of length > INT_MAX without failing.
62998         * lib/vasprintf.c: Include errno.h, limits.h.
62999         (EOVERFLOW): New fallback definition.
63000         (vasprintf): Test here whether the string length is > INT_MAX.
63001         * lib/vsnprintf.c: Include errno.h, limits.h.
63002         (EOVERFLOW): New fallback definition.
63003         (vsnprintf): Fix bug when generated string was too long for the buffer.
63004         Test here whether the string length is > INT_MAX.
63005
63006 2006-08-28  Bruno Haible  <bruno@clisp.org>
63007
63008         * lib/inttypes_.h (SCNX*): Remove definitions.
63009         Reported by Eric Blake.
63010
63011 2006-08-28  Bruno Haible  <bruno@clisp.org>
63012
63013         * lib/c-strstr.h: New file, from GNU gettext.
63014         * lib/c-strstr.c: New file, from GNU gettext.
63015
63016 2006-08-28  Bruno Haible  <bruno@clisp.org>
63017
63018         * gnulib-tool: Reorder some statements.
63019
63020 2006-08-28  Bruno Haible  <bruno@clisp.org>
63021
63022         * gnulib-tool: New option --makefile-name.
63023         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
63024         $makefile_name.
63025         (func_import): Write $makefile_name to the cache file, and read it from
63026         there unless explicitly specified. Use $makefile_name as file name
63027         instead of Makefile.am. Adjust the recommendations accordingly.
63028
63029 2006-08-28  Bruno Haible  <bruno@clisp.org>
63030
63031         * gnulib-tool (func_verify_module): Check against misapplying patch.
63032
63033 2006-08-28  Bruno Haible  <bruno@clisp.org>
63034
63035         * gnulib-tool (func_relativize, func_relconcat): New functions.
63036         Give an error if --local-dir is given with --update.
63037         Remove trailing slashes from $local_gnulib_dir.
63038         (func_import): Store the relativized $local_gnulib_dir in
63039         gnulib-cache.m4, and read it from there if not specified explicitly.
63040
63041 2006-08-28  Bruno Haible  <bruno@clisp.org>
63042
63043         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
63044         is the current directory. Respect also $local_gnulib_dir.
63045
63046 2006-08-28  Bruno Haible  <bruno@clisp.org>
63047             Simon Josefsson  <jas@extundo.com>
63048
63049         BeOS portability.
63050         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
63051
63052 2006-08-27  Jim Meyering  <jim@meyering.net>
63053
63054         * doc/visibility.texi: Remove duplicate word: "pointer".
63055
63056 2006-08-26  Bruno Haible  <bruno@clisp.org>
63057
63058         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
63059         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
63060         (Makefile.am): Create inttypes.h from inttypes_.h.
63061         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
63062
63063         * modules/imaxabs: New file.
63064
63065         * modules/imaxdiv: New file.
63066
63067 2006-08-26  Bruno Haible  <bruno@clisp.org>
63068
63069         * m4/inttypes.m4: New file.
63070         * m4/_inttypes_h.m4: Remove file.
63071         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
63072         PRI_MACROS_BROKEN.
63073         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
63074
63075         * m4/imaxabs.m4: New file.
63076
63077         * m4/imaxdiv.m4: New file.
63078
63079 2006-08-26  Bruno Haible  <bruno@clisp.org>
63080
63081         * lib/inttypes_.h: New file.
63082         * lib/inttypes.h: Remove file.
63083         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
63084
63085         * lib/imaxabs.c: New file.
63086
63087         * lib/imaxdiv.c: New file.
63088
63089 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63090
63091         New config-h module, so that "make" output needn't be cluttered
63092         by -DHAVE_CONFIG_H.
63093         * MODULES.html.sh (Support for building libraries and executables):
63094         Add config-h.
63095         * modules/config-h: New file.
63096         * gnulib-tool (nl, sed_transform_lib_file): New vars.
63097         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
63098         the config-h module is used.
63099
63100         New configmake module, so that "make" output needn't be cluttered
63101         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
63102         * MODULES.html.sh (Support for building libraries and executables):
63103         Add configmake.
63104         * modules/configmake: New file.
63105
63106 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
63107
63108         * m4/config-h.m4: New file.
63109
63110 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63111
63112         * config/srclist.txt: Add elisp-comp.
63113
63114 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
63115
63116         * MODULES.html.sh (Support for building libraries and executables):
63117         Add elisp-comp.
63118         * build-aux/elisp-comp: New file.
63119         * modules/elisp-comp: New file.
63120
63121 2006-08-24  Bruno Haible  <bruno@clisp.org>
63122
63123         * gnulib-tool (func_create_testdir): Use non-default values of
63124         sourcebase and m4base.
63125
63126 2006-08-24  Bruno Haible  <bruno@clisp.org>
63127
63128         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
63129         HTML structure.
63130
63131 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
63132
63133         * modules/openat (Depends-on): Add lchown.
63134
63135 2006-08-23  Bruno Haible  <bruno@clisp.org>
63136
63137         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
63138         of gl_LOCK_EARLY instead of gl_LOCK.
63139
63140 2006-08-23  Bruno Haible  <bruno@clisp.org>
63141
63142         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
63143         on OSF/1 to no.
63144         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
63145
63146 2006-08-23  Bruno Haible  <bruno@clisp.org>
63147
63148         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
63149         as unusable.
63150
63151         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
63152         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
63153         (gl_LOCK): New macro.
63154
63155 2006-08-22  Simon Josefsson  <jas@extundo.com>
63156
63157         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
63158         to md5 module.
63159
63160 2006-08-22  Simon Josefsson  <jas@extundo.com>
63161
63162         * MODULES.html.sh: Add "Support for maintaining and release
63163         projects".
63164
63165         * build-aux/gnupload: New file, from coreutils.
63166
63167 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63168
63169         Avoid the need for AC_LIBSOURCES in m4 macros.
63170         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
63171         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
63172         * modules/check-version (EXTRA_DIST): Add check-version.h.
63173         * modules/crc (EXTRA_DIST): Add crc.h.
63174         * modules/des (EXTRA_DIST): Add des.h.
63175         * modules/gc (EXTRA_DIST): Add gc.h.
63176         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
63177         * modules/getline (EXTRA_DIST): Add getline.h.
63178         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
63179         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
63180         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
63181         * modules/md2 (EXTRA_DIST): Add md2.h.
63182         * modules/md4 (EXTRA_DIST): Add md4.h.
63183         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
63184         * modules/read-file (EXTRA_DIST): Add read-file.h.
63185         * modules/readline (EXTRA_DIST): Add readline.h.
63186         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
63187         rijndael-api-fst.h.
63188
63189 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63190
63191         * m4/rijndael.m4 (gl_ARCFOUR):
63192         * m4/arctwo.m4 (gl_ARCTWO):
63193         * m4/check-version.m4 (gl_CHECK_VERSION):
63194         * m4/crc.m4 (gl_CRC):
63195         * m4/des.m4 (gl_DES):
63196         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
63197         * m4/gc.m4 (gl_GC):
63198         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
63199         * m4/getline.m4 (gl_FUNC_GETLINE):
63200         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
63201         * m4/hmac-md5.m4 (gl_HMAC_MD5):
63202         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
63203         * m4/md2.m4 (gl_MD2):
63204         * m4/md4.m4 (gl_MD4):
63205         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
63206         * m4/read-file.m4 (gl_FUNC_READ_FILE):
63207         * m4/readline.m4 (gl_FUNC_READLINE):
63208         * m4/rijndael.m4 (gl_RIJNDAEL):
63209         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63210         to get the necessary .h files and whatnot.
63211
63212 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
63213
63214         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
63215         gnulib rather than the other way around.
63216         * config/srclistvars.sh (COREUTILS): Remove.
63217
63218 2006-08-22  Jim Meyering  <jim@meyering.net>
63219
63220         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
63221
63222         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
63223
63224 2006-08-22  Eric Blake  <ebb9@byu.net>
63225
63226         * modules/regexprops-generic: New file.
63227         * MODULES.html.sh (Support for building documentation): List it.
63228
63229 2006-08-22  Eric Blake  <ebb9@byu.net>
63230
63231         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
63232         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
63233         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
63234         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
63235
63236 2006-08-22  Bruno Haible  <bruno@clisp.org>
63237
63238         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
63239         and lib_LTLIBRARIES like the other lib_* variables.
63240
63241 2006-08-22  Bruno Haible  <bruno@clisp.org>
63242
63243         * build-aux/x-to-1.in: New file, from GNU gettext.
63244
63245 2006-08-22  Bruno Haible  <bruno@clisp.org>
63246
63247         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
63248         <utmpx.h> exists.
63249
63250 2006-08-22  Bruno Haible  <bruno@clisp.org>
63251
63252         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
63253         <utmpx.h> exists.
63254
63255 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63256
63257         BeOS portability.
63258         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
63259         exist.
63260         Problem reported by Bruno Haible.
63261
63262 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63263
63264         Avoid the need for AC_LIBSOURCES in m4 macros.
63265         * modules/acl (EXTRA_DIST): Add acl.h.
63266         * modules/argmatch (Files): Add m4/argmatch.m4.
63267         (configure.ac): Add gl_ARGMATCH.
63268         (EXTRA_DIST): Renamed from lib_SOURCES, for
63269         consistency with the other modules.  Remove argmatch.c.
63270         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
63271         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
63272         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
63273         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
63274         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
63275         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
63276         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
63277         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
63278         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
63279         * modules/closeout (EXTRA_DIST): Add closeout.h.
63280         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
63281         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
63282         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
63283         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
63284         dirname.h; remove basename.c and stripslash.c.
63285         * modules/exclude (EXTRA_DIST): Add exclude.h.
63286         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
63287         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
63288         * modules/file-type (EXTRA_DIST): Add file-type.h.
63289         * modules/filemode (EXTRA_DIST): Add filemode.h.
63290         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
63291         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63292         * modules/fpending (EXTRA_DIST): Add __fpending.h.
63293         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
63294         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
63295         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
63296         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
63297         * modules/getdate (EXTRA_DIST): Add getdate.c.
63298         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
63299         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
63300         * modules/getpass (EXTRA_DIST): Add getpass.h.
63301         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
63302         * modules/group-member (EXTRA_DIST): Add group-member.h.
63303         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
63304         * modules/hash (EXTRA_DIST): Add hash.h.
63305         * modules/human (EXTRA_DIST): Add human.h.
63306         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
63307         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
63308         * modules/lchown (EXTRA_DIST): Add lchown.h.
63309         * modules/long-options (EXTRA_DIST): Add long-options.h.
63310         * modules/lstat (EXTRA_DIST): Add lstat.h.
63311         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
63312         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
63313         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
63314         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
63315         * modules/memxor (EXTRA_DIST): Add memxor.h.
63316         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
63317         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
63318         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
63319         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
63320         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
63321         * modules/physmem (EXTRA_DIST): Add physmem.h.
63322         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
63323         * modules/posixver (EXTRA_DIST): Add posixver.h.
63324         * modules/quote (EXTRA_DIST): Add quote.h.
63325         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
63326         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
63327         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
63328         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
63329         regex_internal.h regexec.c.
63330         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
63331         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
63332         * modules/same (EXTRA_DIST): Add same.h.
63333         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
63334         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
63335         * modules/savedir (EXTRA_DIST): Add savedir.h.
63336         * modules/sha1 (EXTRA_DIST): Add sha1.h.
63337         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
63338         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
63339         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
63340         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
63341         * modules/strdup (EXTRA_DIST): Add strdup.h.
63342         * modules/strftime (EXTRA_DIST): Add strftime.h.
63343         * modules/strndup (EXTRA_DIST): Add strndup.h.
63344         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
63345         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
63346         * modules/time_r (EXTRA_DIST): Add time_r.h.
63347         * modules/timespec (EXTRA_DIST): Add timespec.h.
63348         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
63349         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
63350         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
63351         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
63352         * modules/userspec (EXTRA_DIST): Add userspec.h.
63353         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
63354         * modules/utimens (EXTRA_DIST): Add utimens.h.
63355         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
63356         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
63357         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
63358         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
63359         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
63360         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
63361         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
63362         * modules/yesno (EXTRA_DIST): Add yesno.h.
63363
63364 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
63365
63366         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
63367
63368         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
63369         * m4/dev-ino.m4, same-inode.m4: Remove.
63370
63371         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
63372         * m4/acl.m4 (AC_FUNC_ACL):
63373         * m4/backupfile.m4 (gl_BACKUPFILE):
63374         * m4/c-strtod.m4 (gl_C99_STRTOLD):
63375         * m4/canon-host.m4 (gl_CANON_HOST):
63376         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63377         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
63378         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
63379         * m4/cloexec.m4 (gl_CLOEXEC):
63380         * m4/close-stream.m4 (gl_CLOSE_STREAM):
63381         * m4/closeout.m4 (gl_CLOSEOUT):
63382         * m4/dirfd.m4 (gl_FUNC_DIRFD):
63383         * m4/dirname.m4 (gl_DIRNAME):
63384         * m4/exclude.m4 (gl_EXCLUDE):
63385         * m4/exitfail.m4 (gl_EXITFAIL):
63386         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
63387         * m4/file-type.m4 (gl_FILE_TYPE):
63388         * m4/filemode.m4 (gl_FILEMODE):
63389         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
63390         * m4/fpending.m4 (gl_FUNC_FPENDING):
63391         * m4/fprintftime.m4 (gl_FPRINTFTIME):
63392         * m4/fts.m4 (gl_FUNC_FTS):
63393         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
63394         * m4/getdate.m4 (gl_GETDATE):
63395         * m4/gethrxtime.m4 (gl_GETHRXTIME):
63396         * m4/getpagesize.m4 (gl_GETPAGESIZE):
63397         * m4/getpass.m4 (gl_FUNC_GETPASS):
63398         * m4/gettime.m4 (gl_GETTIME):
63399         * m4/getugroups.m4 (gl_GETUGROUPS):
63400         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
63401         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
63402         * m4/hard-locale.m4 (gl_HARD_LOCALE):
63403         * m4/hash.m4 (gl_HASH):
63404         * m4/idcache.m4 (gl_IDCACHE):
63405         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
63406         * m4/lchown.m4 (gl_FUNC_LCHOWN):
63407         * m4/long-options.m4 (gl_LONG_OPTIONS):
63408         * m4/lstat.m4 (gl_FUNC_LSTAT):
63409         * m4/md5.m4 (gl_MD5):
63410         * m4/memcasecmp.m4 (gl_MEMCASECMP):
63411         * m4/memcoll.m4 (gl_MEMCOLL):
63412         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
63413         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
63414         * m4/memxor.m4 (gl_MEMXOR):
63415         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
63416         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
63417         * m4/modechange.m4 (gl_MODECHANGE):
63418         * m4/mountlist.m4 (gl_MOUNTLIST):
63419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63420         * m4/openat.m4 (gl_FUNC_OPENAT):
63421         * m4/pathmax.m4 (gl_PATHMAX):
63422         * m4/physmem.m4 (gl_PHYSMEM):
63423         * m4/posixtm.m4 (gl_POSIXTM):
63424         * m4/posixver.m4 (gl_POSIXVER):
63425         * m4/quote.m4 (gl_QUOTE):
63426         * m4/quotearg.m4 (gl_QUOTEARG):
63427         * m4/readtokens.m4 (gl_READTOKENS):
63428         * m4/readutmp.m4 (gl_READUTMP):
63429         * m4/regex.m4 (gl_REGEX):
63430         * m4/safe-read.m4 (gl_SAFE_READ):
63431         * m4/safe-write.m4 (gl_SAFE_WRITE):
63432         * m4/same.m4 (gl_SAME):
63433         * m4/save-cwd.m4 (gl_SAVE_CWD):
63434         * m4/savedir.m4 (gl_SAVEDIR):
63435         * m4/settime.m4 (gl_SETTIME):
63436         * m4/sha1.m4 (gl_SHA1):
63437         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
63438         * m4/stat-macros.m4 (gl_STAT_MACROS):
63439         * m4/stat-time.m4 (gl_STAT_TIME):
63440         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
63441         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
63442         * m4/strdup.m4 (gl_FUNC_STRDUP):
63443         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
63444         * m4/strndup.m4 (gl_FUNC_STRNDUP):
63445         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
63446         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
63447         * m4/time_r.m4 (gl_TIME_R):
63448         * m4/timespec.m4 (gl_TIMESPEC):
63449         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
63450         * m4/unlinkdir.m4 (gl_UNLINKDIR):
63451         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
63452         * m4/userspec.m4 (gl_USERSPEC):
63453         * m4/utimecmp.m4 (gl_UTIMECMP):
63454         * m4/utimens.m4 (gl_UTIMENS):
63455         * m4/xalloc.m4 (gl_XALLOC):
63456         * m4/xgetcwd.m4 (gl_XGETCWD):
63457         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
63458         * m4/xreadlink.m4 (gl_XREADLINK):
63459         * m4/xstrtod.m4 (gl_XSTRTOD):
63460         * m4/yesno.m4 (gl_YESNO):
63461         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
63462         to get the necessary .h files and whatnot.
63463
63464 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
63465             Bruno Haible  <bruno@clisp.org>
63466
63467         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
63468         /bin/sh understanding of '!' conditional negation.
63469
63470 2006-08-21  Jim Meyering  <jim@meyering.net>
63471
63472         * modules/openat (Depends-on): Really alphabetize.
63473
63474         * modules/acl (Depends-on): Add error and quote.
63475
63476         * check-module (find_included_lib_files): Add at-func.c to the
63477         ok-to-include-more-than-once white list.
63478
63479         * modules/openat (Depends-on): Add lstat.  Alphabetize.
63480
63481 2006-08-21  Bruno Haible  <bruno@clisp.org>
63482
63483         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63484         Emit a pkgdata_DATA variable only if some snippets add contents to it.
63485         Reported by Martin Lambers <marlam@marlam.de>.
63486
63487 2006-08-21  Bruno Haible  <bruno@clisp.org>
63488
63489         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
63490         specify an installation location, don't emit a noinst_LIBRARIES or
63491         noinst_LTLIBRARIES assignment.
63492
63493 2006-08-21  Bruno Haible  <bruno@clisp.org>
63494
63495         BeOS portability.
63496         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
63497         BeOS has mbrtowc() but no <wctype.h>.
63498
63499 2006-08-21  Bruno Haible  <bruno@clisp.org>
63500
63501         BeOS portability.
63502         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
63503         exist.
63504
63505 2006-08-21  Bruno Haible  <bruno@clisp.org>
63506
63507         BeOS portability.
63508         * lib/mbchar.h: Include <wctype.h> only if it exists.
63509
63510 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63511
63512         Remove files that are no longer needed by their respective modules.
63513         * m4/obstack.m4: Remove.
63514         * m4/strerror_r.m4: Remove.
63515         * m4/uint32_t.m4: Remove.
63516         * m4/uintptr_t.m4: Remove.
63517         * m4/ullong_max.m4: Remove.
63518         * m4/xstrtoimax.m4: Remove.
63519         * m4/xstrtoumax.m4: Remove.
63520
63521         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
63522         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
63523         dependencies now capture this.
63524
63525         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
63526         Do not use AC_LIBSOURCES, since gnulib modules now do this.
63527         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
63528         * m4/human.m4 (gl_HUMAN): Likewise.
63529         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
63530         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
63531
63532         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
63533
63534         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
63535         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
63536         stdint.
63537         * m4/human.m4 (gl_HUMAN): Likewise.
63538         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
63539         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
63540         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63541         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63542         * m4/xstrtol (gl_XSTRTOL): Likewise.
63543
63544         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
63545         AC_TYPE_LONG_LONG_INT.
63546         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
63547         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
63548         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
63549         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
63550
63551         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
63552         on stdbool.
63553
63554         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
63555         (gl_PREREQ_XSTRTOUL): Remove.
63556
63557         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
63558
63559         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
63560         mode.
63561
63562 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63563
63564         Add and change modules to make it easier for coreutils to use
63565         gnulib-tool.
63566         * modules/backupfile (Files): Remove m4/d-ino.m4.
63567         (Depends-on): Add d-ino.
63568         * modules/cycle-check (Depends-on): Add stdint.
63569         (lib_SOURCES): Add cycle-check.h.
63570         * modules/d-ino: New module.
63571         * modules/d-type: New module.
63572         * modules/error (Files): Remove m4/strerror_r.m4.
63573         * modules/filemode (Files): Add m4/st_dm_mode.m4.
63574         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
63575         m4/inttypes_h.m4, m4/uintmax_t.m4.
63576         (Depends-on): Add stdint.
63577         (lib_SOURCES): Add fsusage.h.
63578         * modules/getcwd (Files): Remove d-ino.m4.
63579         (Depends-on): Add d-ino.
63580         * modules/getndelim2 (Depends-on): Add stdint.
63581         * modules/glob (Files): Remove m4/d-type.m4.
63582         (Depends-on): Add d-type.
63583         * modules/host-os: New module.
63584         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
63585         m4/inttypes_h.m4, m4/uintmax_t.m4.
63586         * Depends-on: Add stdint.
63587         (lib_SOURCES): Add human.h.
63588         * modules/inttostr (Files): Remove m4/intmax_t.m4,
63589         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
63590         m4/uintmax_t.m4, m4/ulonglong.m4.
63591         (Depends-on): Add stdint.
63592         (EXTRA_DIST): Add inttostr.h.
63593         * modules/lchmod: New module.
63594         * modules/link-follow: New module.
63595         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
63596         (Depends-on): Add lchmod.
63597         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
63598         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
63599         (Depends-on): Add stdint.
63600         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
63601         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
63602         (Depends-on): Add stdint.
63603         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
63604         * modules/perl: New module.
63605         * modules/regex (Depends-on): Add stdint.
63606         * modules/rmdir-errno: New module.
63607         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63608         m4/intmax_t.m4.
63609         (Depends-on): Add stdint.
63610         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
63611         m4/uintmax_t.m4.
63612         (Depends-on): Add stdint.
63613         * modules/unlink-busy: New module.
63614         * modules/utimecmp (Depends-on): Add stdint.
63615         * modules/uptime: New module.
63616         * modules/winsz-ioctl: New module.
63617         * modules/winsz-termios: New module.
63618         * modules/xnanosleep (Depends-on): Add nanosleep.
63619         * modules/ullong_max: Remove.
63620         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
63621         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
63622         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
63623         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
63624         (Depends-on): Add inttypes.
63625         (lib_SOURCES): Add xstrtol.h.
63626         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
63627         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
63628         * MODULES.html.sh: Move 'assert' into the assert section.
63629         Move 'dummy' into the linking section.
63630         Remove ullong_max.
63631         Add section for compatibility checks for POSIX:2001 functions,
63632         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
63633         winsz-ioctl, and winsz-termios into it.
63634         Add lchmod.
63635         Add top-level Misc section and put host-os, perl, and uptime
63636         into it.
63637
63638 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63639
63640         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
63641         now assume the stdint module.  Do not include inttypes.h.
63642         * lib/fsusage.h: Likewise.
63643         * lib/getndelim2.c: Likewise.
63644         * lib/human.h: Likewise.
63645         * lib/inttostr.h: Likewise.
63646         * lib/obstack.c: Likewise.
63647         * lib/regex_internal.h: Likewise.
63648         * lib/tempname.c: Likewise.
63649         * lib/utimecmp.c: Likewise.
63650         * lib/xstrtol.h: Likewise.
63651
63652         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
63653
63654         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
63655         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
63656         * lib/xtime.h: Likewise.
63657
63658 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63659
63660         * modules/openat (Files): Add lib/fchmodat.c.
63661         Fixes problem reported by Jay Youngman.
63662
63663 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63664
63665         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
63666         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
63667
63668 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
63669             Bruno Haible  <bruno@clisp.org>
63670
63671         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
63672         and is a script that invokes bison. Tighten the code. Add comments.
63673
63674 2006-08-18  Jim Meyering  <jim@meyering.net>
63675
63676         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
63677         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
63678         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
63679         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
63680
63681 2006-08-18  Bruno Haible  <bruno@clisp.org>
63682
63683         * modules/bison-i18n: New file.
63684         * MODULES.html.sh (Internationalization functions): Add it.
63685
63686 2006-08-18  Bruno Haible  <bruno@clisp.org>
63687
63688         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
63689         sys/statvfs.h. When getmntinfo was found, check its declaration and
63690         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
63691
63692 2006-08-18  Bruno Haible  <bruno@clisp.org>
63693
63694         * m4/bison-i18n.m4: New file, from bison.
63695
63696 2006-08-18  Bruno Haible  <bruno@clisp.org>
63697
63698         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
63699         (ME_DUMMY): Treat "kernfs" as a dummy.
63700         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
63701
63702 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63703
63704         Update from coreutils.
63705
63706         2006-08-15  Jim Meyering  <jim@meyering.net>
63707
63708         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
63709
63710         2006-01-17  Jim Meyering  <jim@meyering.net>
63711
63712         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
63713
63714         2006-01-11  Jim Meyering  <jim@meyering.net>
63715
63716         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
63717         Check for the lchmod function.
63718
63719 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63720
63721         Update from coreutils.
63722
63723         * lib/__fpending.h: Add copyright notice.
63724         * lib/fprintftime.h: Likewise.
63725         * lib/savedir.c: Use (C) in copyright notice.
63726         * lib/savedir.h: Likewise.
63727
63728         2006-08-15  Jim Meyering  <jim@meyering.net>
63729
63730         * lib/at-func.c: New file, with the logic of all emulated at-functions.
63731         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
63732         in support of the EXPECTED_ERRNO macro.
63733         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
63734         definitions.  Instead, define the appropriate symbols and include
63735         "at-func.c".
63736         * lib/mkdirat.c (mkdirat): Likewise.
63737         * lib/fchmodat.c (fchmodat): Likewise.
63738         (ENOSYS): Remove definition.
63739         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
63740         it.  Don't include "unistd--.h" -- it wasn't ever used.
63741
63742         2006-01-17  Jim Meyering  <jim@meyering.net>
63743
63744         Rewrite fts.c not to change the current working directory,
63745         by using openat, fstatat, fdopendir, etc..
63746
63747         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
63748         (HAVE_OPENAT_SUPPORT): Define.
63749         [_LIBC] (fchdir): Don't undef or define; no longer used.
63750         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
63751         Now, this `function' always succeeds, and consumes its file descriptor
63752         parameter -- so callers must not close such FDs.  Update callers.
63753         (diropen_fd, opendirat, cwd_advance_fd): New functions.
63754         (diropen): Add parameter, SP.  Adjust all callers.
63755         Implement using diropen_fd, rather than open.
63756         (fts_open): Initialize new member, fts_cwd_fd.
63757         Remove fts_rft-setting code.
63758         (fts_close): Close fts_cwd_fd, if necessary.
63759         (__opendir2): Define in terms of opendir or opendirat,
63760         depending on whether the FST_NOCHDIR flag is set.
63761         (fts_build): Since fts_safe_changedir consumes its FD, and since
63762         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
63763         and close the dup'd file descriptor upon failure.
63764         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
63765         (fts_safe_changedir): Tweak semantics to reflect that this function
63766         now calls cwd_advance_fd and hence consumes its FD argument.
63767         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
63768         [struct FTS] (fts_rft): Remove now-unused member.
63769         [struct FTS] (fts_cycle.state): Improve comment.
63770
63771         * lib/openat.c (openat_needs_fchdir): New function.
63772         * lib/openat.h (openat_needs_fchdir): Declare it.
63773
63774 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63775
63776         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
63777         Problem and fix reported by Pádraig Brady in
63778         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
63779
63780 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63781
63782         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
63783
63784 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63785
63786         * lib/memcoll.c (memcoll): Optimize for the common case where the
63787         arguments are bytewise equal.
63788
63789 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63790
63791         * doc/regexprops-generic.texi: Add a copyright notice.
63792
63793 2006-08-15  Bruno Haible  <bruno@clisp.org>
63794
63795         * modules/tmpdir (License): Change to LGPL.
63796
63797 2006-08-15  Bruno Haible  <bruno@clisp.org>
63798
63799         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
63800         module.
63801
63802 2006-08-14  Simon Josefsson  <jas@extundo.com>
63803
63804         * config/srclist.txt: Add gnupload.
63805
63806 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63807
63808         Change copyright notice from LGPL 2 to GPL 2, since that's the
63809         standard form used in the gnulib repository.
63810         * tests/test-lock.c: Likewise.
63811         * tests/test-stdint.c: Likewise.
63812         * tests/test-tls.c: Likewise.
63813
63814         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
63815         prelude-manager.  User shorter URLs for GNU projects, without '?'.
63816         Add copyright notice.
63817
63818         * check-module: Add copyright notice.  Output a copyright
63819         notice if "--version" is specified.
63820         * modules/COPYING: New file.
63821         * tests/test-getaddrinfo.c: Add copyright notice.
63822         * tests/test-verify.c: Likewise.
63823
63824 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63825
63826         Change copyright notice from LGPL 2 to GPL 2, since that's the
63827         standard form used in the gnulib repository.
63828         * lib/lock.c: LGPL -> GPL.
63829         * lib/lock.h: Likewise.
63830         * lib/strnlen1.c: Likewise.
63831         * lib/strnlen1.h: Likewise.
63832         * lib/tls.c: Likewise.
63833         * lib/tls.h: Likewise.
63834         * lib/tmpdir.c: Likewise.
63835
63836         * lib/TODO: Remove; this belongs only in coreutils.
63837
63838 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63839
63840         Add copyright notices to long-enough files that lack them, since
63841         otherwise the files aren't clearly free.  Use the same notice that
63842         getdate.texi already uses.
63843         * doc/alloca-opt.texi: Add copyright notice.
63844         * doc/alloca.texi: Likewise.
63845         * doc/ctime.texi: Likewise.
63846         * doc/functions.texi: Likewise.
63847         * doc/gcd.texi: Likewise.
63848         * doc/gnulib-tool.texi: Likewise.
63849         * doc/inet_ntoa.texi: Likewise.
63850         * doc/visibility.texi: Likewise.
63851
63852         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
63853         * doc/quote.texi: Add copyright notice.
63854
63855         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
63856         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
63857         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
63858         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
63859         is now obsolete, and give a pointer to the Sun list.
63860         Add copyright notice.
63861
63862 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63863
63864         * config/srclistvars.sh: Add copyright notice.
63865
63866 2006-08-14  Eric Blake  <ebb9@byu.net>
63867
63868         Import the following change from libc:
63869
63870         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
63871
63872         Upstream bug 2997.
63873         * lib/misc/error.c: Add space between program name and message if file
63874         name is missing.
63875
63876 2006-08-12  Karl Berry  <karl@gnu.org>
63877
63878         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
63879         remove, these originate in gnulib now.
63880
63881 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63882
63883         * doc/Makefile (standards.info standards.html standards.dvi):
63884         Also depend on make-stds.texi.
63885
63886 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
63887
63888         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
63889         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
63890
63891         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
63892         in wchar_t.  Problem reported by Eric Blake.
63893
63894         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
63895         LEN is smaller than SIZE.  Suggested by Bruno Haible.
63896         Also, help the compiler to keep LEN in a register.
63897
63898 2006-08-11  Eric Blake  <ebb9@byu.net>
63899
63900         * users.txt: Sort.  Add tar.
63901
63902 2006-08-11  Bruno Haible  <bruno@clisp.org>
63903
63904         * users.txt: New file.
63905
63906 2006-08-11  Bruno Haible  <bruno@clisp.org>
63907
63908         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
63909         before <wchar.h>. Needed for OSF/1 and BSD/OS.
63910
63911 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63912
63913         * modules/snprintf (Depends-on): Remove minmax.
63914         (Maintainer): Add self and Bruno.
63915
63916 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63917
63918         * lib/.cppi-disable: Add snprintf.h, socket_.h.
63919         * lib/snprintf.c: Include <errno.h> and <limits.h>.
63920         (EOVERFLOW): Define if the system does not.
63921         Do not include "minmax.h"; it wasn't used.
63922         (snprintf): Don't assume size_t promotes to an unsigned type.
63923         Fix bug when generated string was too long for the buffer: the
63924         buffer's contents are supposed to be the initial prefix of the
63925         output.  Don't assume vasnprintf returns EOVERFLOW if the size
63926         exceeds INT_MAX; do the check ourselves.
63927
63928         Import the following changes from libc:
63929
63930         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
63931
63932         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
63933         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
63934         set wc to the byte which couldn't be converted.
63935         (re_string_reconstruct): Don't clear valid_raw_len before calling
63936         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
63937         tip_context using re_string_context_at.
63938
63939         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
63940
63941         * lib/posix/regex.h: g++ still cannot handled [restrict].
63942
63943         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
63944
63945         * lib/posix/regex.h: Remove special handling for VMS.
63946
63947 2006-08-10  Jim Meyering  <jim@meyering.net>
63948
63949         * modules/same-inode: New module.
63950         * modules/dev-ino: New module.
63951         * modules/cycle-check: Depend on these modules, rather than simply
63952         including their .h files.
63953         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
63954         required via m4/cycle-check.m4.
63955         * modules/same: Depend on new same-inode module, rather than
63956         including same-inode.h.
63957         * modules/chdir-safer: New file.
63958
63959         * modules/chown (Depends-on): Add stat-macros.
63960
63961 2006-08-10  Jim Meyering  <jim@meyering.net>
63962
63963         * m4/cycle-check.m4: New file.
63964         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
63965         * m4/dev-ino.m4, m4/same-inode.m4: New files.
63966
63967 2006-08-10  Eric Blake  <ebb9@byu.net>
63968
63969         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
63970         in from original proposal.
63971
63972 2006-08-10  Eric Blake  <ebb9@byu.net>
63973         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63974
63975         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
63976         namespace.
63977
63978 2006-08-10  Bruno Haible  <bruno@clisp.org>
63979
63980         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
63981         as well.
63982
63983 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63984
63985         Sync from coreutils.
63986
63987         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
63988
63989         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
63990         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
63991
63992 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63993
63994         * modules/restrict: Remove; no longer needed now that we assume
63995         Autoconf 2.59 or later.
63996         * MODULES.html.sh: Remove 'restrict'.
63997         * modules/argp (Depends-on): Remove 'restrict'.
63998         * modules/base64 (Depends-on): Likewise.
63999         * modules/gc (Depends-on): Likewise.
64000         * modules/getaddrinfo (Depends-on): Likewise.
64001         * modules/glob (Depends-on): Likewise.
64002         * modules/inet_ntop (Depends-on): Likewise.
64003         * modules/inet_pton (Depends-on): Likewise.
64004         * modules/memxor (Depends-on): Likewise.
64005         * modules/regex (Depends-on): Likewise.
64006         * modules/strtok_r (Depends-on): Likewise.
64007         * modules/time_r (Depends-on): Likewise.
64008
64009 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
64010
64011         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
64012         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
64013         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64014         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
64015         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
64016         * m4/memxor.m4 (gl_MEMXOR): Likewise.
64017         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
64018         gl_C_RESTRICT replaced by AC_C_RESTRICT.
64019
64020         Merge from coreutils.
64021         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
64022         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
64023         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64024         * m4/time_r.m4 (gl_TIME_R): Likewise.
64025
64026 2006-08-09  Karl Berry  <karl@gnu.org>
64027
64028         * config/srclist.txt: no more gettext-tools, per Bruno.
64029
64030 2006-08-08  Eric Blake  <ebb9@byu.net>
64031
64032         * modules/verror: New module.
64033         * MODULES.html.sh: Document it.
64034
64035 2006-08-08  Eric Blake  <ebb9@byu.net>
64036
64037         * lib/verror.h, lib/verror.c: New files.
64038
64039 2006-08-08  Eric Blake  <ebb9@byu.net>
64040
64041         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
64042         verror_at_line output complies with GNU Coding Standards even when
64043         file is NULL.
64044
64045 2006-08-07  Bruno Haible  <bruno@clisp.org>
64046
64047         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
64048         versions of AIX.
64049         Reported by Ralf Wildenhues.
64050
64051 2006-08-07  Bruno Haible  <bruno@clisp.org>
64052
64053         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
64054         in an AC_DEFUN. Needed so that the autoconf snippets can use
64055         AC_REQUIRE.
64056
64057 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64058
64059         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64060         Initialize pkgdata_DATA.
64061         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
64062         overriding it.
64063
64064 2006-08-06  Eric Blake  <ebb9@byu.net>
64065
64066         * lib/error.h: Fold in some upstream changes from glibc.
64067         * lib/error.c: Likewise.
64068
64069 2006-08-04  Bruno Haible  <bruno@clisp.org>
64070
64071         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64072         Make the mostlyclean-local rule depend on mostlyclean-generic.
64073         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
64074
64075 2006-07-31  Bruno Haible  <bruno@clisp.org>
64076
64077         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
64078         <stdlib.h>, <string.h>.
64079
64080 2006-07-30  Bruno Haible  <bruno@clisp.org>
64081
64082         * modules/readlink (License): Change to LGPL.
64083
64084 2006-07-30  Bruno Haible  <bruno@clisp.org>
64085
64086         * modules/javaversion (Makefile.am): Distribute javaversion.java and
64087         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
64088         set PKGDATADIR to point to it.
64089
64090 2006-07-30  Bruno Haible  <bruno@clisp.org>
64091
64092         * modules/csharpexec (configure.ac): Comment out macro invocation.
64093         * modules/javaexec (configure.ac): Likewise.
64094         * modules/javacomp-script (configure.ac): Likewise.
64095
64096         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
64097
64098 2006-07-30  Bruno Haible  <bruno@clisp.org>
64099
64100         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
64101         linked-list.
64102
64103 2006-07-30  Bruno Haible  <bruno@clisp.org>
64104
64105         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
64106
64107 2006-07-30  Bruno Haible  <bruno@clisp.org>
64108
64109         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64110         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
64111         get removed.
64112
64113 2006-07-29  Bruno Haible  <bruno@clisp.org>
64114
64115         Make it possible for gnulib-tool to work with locally modified or
64116         augmented gnulib repositories.
64117         * gnulib-tool (func_usage): Document --local-dir option.
64118         (local_gnulib_dir): New variable.
64119         Handle --local-dir option.
64120         (func_lookup_file): New function.
64121         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
64122         (func_get_description, func_get_filelist, func_get_description,
64123         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
64124         func_get_automake_snippet, func_get_include_directive,
64125         func_get_license, func_get_maintainer): Use func_lookup_file.
64126         (func_import, func_create_testdir): Use func_lookup_file.
64127
64128 2006-07-29  Bruno Haible  <bruno@clisp.org>
64129
64130         * modules/setenv (Depends-on): Add unistd.
64131
64132 2006-07-29  Bruno Haible  <bruno@clisp.org>
64133
64134         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
64135
64136 2006-07-29  Bruno Haible  <bruno@clisp.org>
64137
64138         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
64139
64140 2006-07-29  Bruno Haible  <bruno@clisp.org>
64141
64142         * gnulib-tool (import, update): If there is no Makefile.am, look at
64143         aclocal.m4, instead of bailing out.
64144
64145 2006-07-29  Bruno Haible  <bruno@clisp.org>
64146
64147         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
64148         Categorize the options by when they are useful.
64149
64150 2006-07-29  Bruno Haible  <bruno@clisp.org>
64151
64152         * gnulib-tool (func_usage): Document option --no-libtool.
64153         Handle option --no-libtool.
64154         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
64155         for changed semantics of $libtool variable.
64156         (func_import): Likewise. If libtool is not used, show this through
64157         an option --no-libtool.
64158         (func_create_testdir): Update.
64159
64160 2006-07-29  Bruno Haible  <bruno@clisp.org>
64161
64162         * gnulib-tool (func_import): Extend error message about missing
64163         --doc-base.
64164
64165 2006-07-29  Bruno Haible  <bruno@clisp.org>
64166
64167         * gnulib-tool (func_import): Don't create the $docbase directory if
64168         there is no file to store there.
64169
64170 2006-07-29  Bruno Haible  <bruno@clisp.org>
64171
64172         * gnulib-tool (autoconf_minversion): If a --dir option is given and
64173         relevant, look for configure.ac there, not in the current directory.
64174         Also use a simple search for AC_PREREQ, not "autoconf --trace".
64175
64176 2006-07-29  Bruno Haible  <bruno@clisp.org>
64177
64178         * gnulib-tool (SORT): New variable.
64179         (func_usage): Undocument --assume-autoconf option.
64180         Remove --assume-autoconf option handling.
64181         (autoconf_minversion): Determine from the contents of configure.ac.
64182         (func_import): Remove autoconf_minversion handling.
64183         Suggested by Eric Blake.
64184
64185 2006-07-29  Bruno Haible  <bruno@clisp.org>
64186
64187         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
64188
64189 2006-07-29  Bruno Haible  <bruno@clisp.org>
64190
64191         * config/srclist.txt (*setenv.[ch]): Remove rules.
64192
64193 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64194
64195         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
64196
64197 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64198
64199         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
64200         arpa/inet.h.
64201
64202 2006-07-28  Simon Josefsson  <jas@extundo.com>
64203
64204         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
64205         * modules/inet_pton (Depends-on): Likewise.
64206
64207 2006-07-28  Simon Josefsson  <jas@extundo.com>
64208
64209         * m4/netinet_in_h.m4: New file.
64210
64211 2006-07-28  Simon Josefsson  <jas@extundo.com>
64212
64213         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
64214         #include's.
64215
64216 2006-07-28  Simon Josefsson  <jas@extundo.com>
64217
64218         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
64219         #include's.
64220
64221 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
64222
64223         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
64224         setgid on directories only if they set these bits.
64225         * lib/modechange.h: Remove obsolete comment about masks.
64226
64227 2006-07-28  Eric Blake  <ebb9@byu.net>
64228
64229         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
64230         macro expansion.
64231
64232 2006-07-28  Bruno Haible  <bruno@clisp.org>
64233
64234         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
64235
64236 2006-07-28  Bruno Haible  <bruno@clisp.org>
64237
64238         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
64239
64240 2006-07-28  Bruno Haible  <bruno@clisp.org>
64241
64242         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
64243         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
64244         Define fallbacks.
64245         Avoids link error on FreeBSD 4.x.
64246         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64247
64248         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
64249         encoding.
64250         * lib/mbswidth.c (iswcntrl): Likewise.
64251
64252 2006-07-27  Bruno Haible  <bruno@clisp.org>
64253
64254         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
64255         test.
64256
64257 2006-07-27  Bruno Haible  <bruno@clisp.org>
64258
64259         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
64260         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
64261         defined.
64262
64263 2006-07-26  Eric Blake  <ebb9@byu.net>
64264
64265         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
64266
64267 2006-07-26  Eric Blake  <ebb9@byu.net>
64268
64269         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
64270         like mingw that lack mkstemp.
64271         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
64272         avoid compilation warning on mingw.
64273
64274 2006-07-26  Bruno Haible  <bruno@clisp.org>
64275
64276         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
64277         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
64278         INT_FAST*_MIN, INTPTR_MIN.
64279
64280 2006-07-25  Bruno Haible  <bruno@clisp.org>
64281
64282         * modules/version-etc (Depends-on): Add stdarg.
64283
64284 2006-07-25  Bruno Haible  <bruno@clisp.org>
64285
64286         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
64287         complex commands.
64288
64289 2006-07-25  Bruno Haible  <bruno@clisp.org>
64290
64291         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
64292         defined in <stdarg.h> or config.h.
64293
64294 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64295
64296         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
64297         (gl_STDIO_SAFER): Remove.
64298
64299 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
64300
64301         * MODULES.html.sh (File stream based Input/Output):
64302         Add fopen-safer, tmpfile-safer; remove stdio-safer.
64303         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
64304         * modules/fopen-safer, modules/tmpfile-safer: New files.
64305         * modules/stdio-safer: Remove.
64306
64307 2006-07-24  Bruno Haible  <bruno@clisp.org>
64308
64309         * modules/tmpdir: New file.
64310         * MODULES.html.sh (File system functions): Add it.
64311
64312 2006-07-24  Bruno Haible  <bruno@clisp.org>
64313
64314         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
64315         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
64316
64317 2006-07-24  Bruno Haible  <bruno@clisp.org>
64318
64319         * modules/clean-temp: New file.
64320
64321 2006-07-24  Bruno Haible  <bruno@clisp.org>
64322
64323         * m4/tmpdir.m4: New file, from GNU gettext.
64324
64325 2006-07-24  Bruno Haible  <bruno@clisp.org>
64326
64327         * lib/tmpdir.h: New file, from GNU gettext.
64328         * lib/tmpdir.c: New file, from GNU gettext.
64329
64330 2006-07-24  Bruno Haible  <bruno@clisp.org>
64331
64332         * lib/clean-temp.h: New file, from GNU gettext.
64333         * lib/clean-temp.c: New file, from GNU gettext.
64334
64335 2006-07-23  Eric Blake  <ebb9@byu.net>
64336
64337         * modules/stdio-safer (Files): Add tmpfile-safer.c.
64338         (Depends-on): Add binary-io.
64339
64340 2006-07-23  Eric Blake  <ebb9@byu.net>
64341
64342         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
64343
64344 2006-07-23  Eric Blake  <ebb9@byu.net>
64345
64346         * lib/tmpfile-safer.c: New file.
64347         * lib/stdio-safer.h (fopen_safer): Add prototype.
64348         * lib/stdio--.h (tmpfile): Make safer.
64349
64350 2006-07-23  Bruno Haible  <bruno@clisp.org>
64351
64352         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
64353         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
64354         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
64355         gl_linked_remove_at): Use it.
64356
64357 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64358         and Simon Josefsson <jas@extundo.com>
64359
64360         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
64361
64362         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
64363
64364 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64365
64366         * modules/close-stream: New file.
64367         * modules/closeout (Description): Make it clear that it exits
64368         with a diagnostic on error.
64369         (Depends-on): Add close-stream.  Remove fpending, stdbool.
64370         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
64371
64372 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64373
64374         * m4/close-stream.m4: New file.
64375
64376 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64377
64378         * lib/close-stream.c, lib/close-stream.h: New files.
64379
64380 2006-07-22  Bruno Haible  <bruno@clisp.org>
64381
64382         Merge from GNU gettext 0.15.
64383
64384         2006-05-01  Bruno Haible  <bruno@clisp.org>
64385
64386                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
64387
64388         2006-07-22  Bruno Haible  <bruno@clisp.org>
64389
64390                 * modules/javaversion: New file.
64391                 * MODULES.html.sh (Java): Add javaversion.
64392
64393         2006-03-12  Bruno Haible  <bruno@clisp.org>
64394
64395                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
64396
64397         2005-12-04  Bruno Haible  <bruno@clisp.org>
64398
64399                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
64400                 (untested).
64401
64402         2006-06-21  Bruno Haible  <bruno@clisp.org>
64403
64404                 Avoid warnings from recent versions of mcs.
64405                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
64406                 -o, -L, -r any more. Use options documented since mcs-1.0
64407                 instead. Similarly for -g.
64408
64409         2005-12-04  Bruno Haible  <bruno@clisp.org>
64410
64411                 * build-aux/csharpcomp.sh.in: Suffix for resources is
64412                 .resources, not .resource.
64413
64414         2005-07-09  Bruno Haible  <bruno@clisp.org>
64415
64416                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
64417                 add a .dll suffix.
64418                 Reported by Mark Junker <mjscod@gmx.de>.
64419
64420         2006-07-22  Bruno Haible  <bruno@clisp.org>
64421
64422                 * modules/gettext: Upgrade to gettext-0.15.
64423                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
64424                 m4/visibility.m4.
64425                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
64426
64427 2006-07-22  Bruno Haible  <bruno@clisp.org>
64428
64429         Merge from GNU gettext 0.15.
64430
64431         2006-03-25  Bruno Haible  <bruno@clisp.org>
64432
64433                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
64434
64435         2006-07-21  Bruno Haible  <bruno@clisp.org>
64436
64437                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
64438                 "1.1".
64439
64440         2006-05-09  Bruno Haible  <bruno@clisp.org>
64441
64442                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
64443                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
64444                 for the conftestver execution.
64445
64446         2006-05-01  Bruno Haible  <bruno@clisp.org>
64447
64448                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
64449                 optional target-version argument. Verify that the compiler
64450                 groks source of the specified source-version, or add -source
64451                 option as necessary. Verify that the compiler produces
64452                 bytecode in the specified target-version, or add -target and
64453                 -source options as necessary. Make the result of the test
64454                 available as variable CONF_JAVAC. Also log error output in
64455                 config.log.
64456
64457         2006-03-11  Bruno Haible  <bruno@clisp.org>
64458
64459                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
64460
64461         2006-05-09  Bruno Haible  <bruno@clisp.org>
64462
64463                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
64464                 CLASSPATH_SEPARATOR to a semicolon.
64465
64466         2006-03-12  Bruno Haible  <bruno@clisp.org>
64467
64468                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
64469                 available as variable CONF_JAVA, for subsequent autoconf
64470                 tests. Also log error output in config.log.
64471
64472         2006-07-19  Bruno Haible  <bruno@clisp.org>
64473
64474                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
64475                 that getline works on glibc2 systems. Needed to avoid trouble
64476                 in relocatable.c.
64477                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
64478
64479         2005-12-04  Bruno Haible  <bruno@clisp.org>
64480
64481                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
64482                 launcher (untested).
64483
64484         2005-12-04  Bruno Haible  <bruno@clisp.org>
64485
64486                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
64487
64488         2006-07-22  Bruno Haible  <bruno@clisp.org>
64489
64490                 * gettext.m4: Update from GNU gettext-0.15.
64491                 * nls.m4: Likewise.
64492                 * po.m4: Likewise.
64493                 * inttypes-pri.m4: Likewise.
64494                 * inttypes-h.m4: Renamed from inttypes.m4.
64495                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
64496
64497 2006-07-22  Bruno Haible  <bruno@clisp.org>
64498
64499         Merge from GNU gettext 0.15.
64500
64501         2005-07-05  Bruno Haible  <bruno@clisp.org>
64502
64503                 * printf-args.c (printf_fetchargs): Work around broken
64504                 definition of wint_t on mingw.
64505
64506         2005-02-12  Bruno Haible  <bruno@clisp.org>
64507
64508                 * xallocsa.h: Add extern "C" for C++.
64509
64510         2006-05-17  Bruno Haible  <bruno@clisp.org>
64511
64512                 Cygwin portability.
64513                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
64514
64515         2006-04-30  Bruno Haible  <bruno@clisp.org>
64516
64517                 * progreloc.c: Include <mach-o/dyld.h> if available.
64518                 (find_executable): Use _NSGetExecutablePath when possible.
64519
64520         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64521
64522                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
64523                 function.
64524
64525         2005-12-29  Bruno Haible  <bruno@clisp.org>
64526
64527                 * progreloc.c (set_program_name_and_installdir): Fix
64528                 compilation error.
64529
64530         2005-12-04  Bruno Haible  <bruno@clisp.org>
64531
64532                 Cygwin portability.
64533                 * progreloc.c: Include <windows.h> also on Cygwin.
64534                 (find_executable): Add support for Cygwin.
64535                 (set_program_name_and_installdir): Handle also platforms with
64536                 nonempty EXEEXT.
64537
64538         2006-07-11  Bruno Haible  <bruno@clisp.org>
64539
64540                 * javacomp.c: Fix a comment.
64541                 Reported by Jim Meyering.
64542
64543         2006-04-30  Bruno Haible  <bruno@clisp.org>
64544
64545                 * javacomp.h (compile_java_class): Add source_version,
64546                 target_version arguments.
64547                 * javacomp.c: Rewritten to choose only a compiler that
64548                 respects the specified source_version and target_version.
64549
64550         2006-06-27  Bruno Haible  <bruno@clisp.org>
64551
64552                 Assume correct S_ISDIR macro.
64553                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
64554
64555         2006-07-22  Bruno Haible  <bruno@clisp.org>
64556
64557                 * javaversion.h: New file, from GNU gettext.
64558                 * javaversion.c: New file, from GNU gettext.
64559                 * javaversion.java: New file, from GNU gettext.
64560                 * javaversion.class: New file, from GNU gettext.
64561
64562         2006-05-17  Bruno Haible  <bruno@clisp.org>
64563
64564                 Cygwin portability.
64565                 * javaexec.c (execute_java_class): Test for jview program
64566                 also on Cygwin.
64567
64568         2006-04-09  Bruno Haible  <bruno@clisp.org>
64569
64570                 * fatal-signal.c: Don't include string.h.
64571                 (at_fatal_signal): Use a copying loop instead of memcpy.
64572
64573         2005-12-04  Bruno Haible  <bruno@clisp.org>
64574
64575                 * csharpexec.c: Add support for 'clix' launcher (untested).
64576                 (execute_csharp_using_sscli): New function.
64577                 (execute_csharp_program): Call it.
64578
64579         2006-06-21  Bruno Haible  <bruno@clisp.org>
64580
64581                 Avoid warnings from recent versions of mcs.
64582                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
64583                 -o, -L, -r any more. Use options documented since mcs-1.0
64584                 instead. Similarly for -g.
64585
64586         2005-07-09  Bruno Haible  <bruno@clisp.org>
64587
64588                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
64589                 add a .dll suffix.
64590                 Reported by Mark Junker <mjscod@gmx.de>.
64591
64592         2006-06-17  Bruno Haible  <bruno@clisp.org>
64593
64594                 * config.charset: Update for NetBSD 3.0.
64595
64596         2006-05-17  Bruno Haible  <bruno@clisp.org>
64597
64598                 Cygwin portability.
64599                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
64600
64601         2006-05-16  Bruno Haible  <bruno@clisp.org>
64602
64603                 * localcharset.c [CYGWIN]: Include <windows.h>.
64604                 (get_charset_aliases): For Cygwin, return the same CPxxx
64605                 aliases list as under WIN32.
64606                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
64607                 the environment variables. Fall back to GetACP().
64608
64609         2006-04-05  Bruno Haible  <bruno@clisp.org>
64610
64611                 * config.charset: Update Juan Manuel Guerrero's address.
64612
64613         2005-02-12  Bruno Haible  <bruno@clisp.org>
64614
64615                 * allocsa.h: Add extern "C" for C++.
64616
64617         2005-02-10  Bruno Haible  <bruno@clisp.org>
64618
64619                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
64620                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
64621
64622         2006-07-22  Bruno Haible  <bruno@clisp.org>
64623
64624                 * gettext.h: Update to GNU gettext-0.15.
64625
64626 2006-07-22  Bruno Haible  <bruno@clisp.org>
64627
64628         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
64629         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
64630         lib-prefix.m4, longdouble.m4, ssize_t.m4.
64631
64632 2006-07-21  Eric Blake  <ebb9@byu.net>
64633
64634         * modules/stdlib-safer: New file.
64635         * MODULES.html.sh (File stream based Input/Output): Add
64636         stdlib-safer.
64637
64638 2006-07-21  Eric Blake  <ebb9@byu.net>
64639
64640         * lib/stdlib-safer.h: New file from coreutils, required by
64641         stdlib--.h.
64642
64643 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
64644
64645         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
64646
64647 2006-07-20  Bruno Haible  <bruno@clisp.org>
64648
64649         * gnulib-tool: Recognize new option --assume-autoconf.
64650         (autoconf_minversion): New variable.
64651         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
64652
64653 2006-07-20  Bruno Haible  <bruno@clisp.org>
64654
64655         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
64656
64657 2006-07-19  Derek R. Price  <derek@ximbiot.com>
64658
64659         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
64660         Reindent and repaginate.
64661
64662 2006-07-19  Derek Price  <derek@ximbiot.com>
64663
64664         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
64665         Correct grammar.
64666
64667 2006-07-17  Bruno Haible  <bruno@clisp.org>
64668
64669         * modules/list: New file.
64670         * modules/array-list: New file.
64671         * modules/carray-list, modules/carray-list-tests: New files.
64672         * modules/linked-list, modules/linked-list-tests: New files.
64673         * modules/avltree-list, modules/avltree-list-tests: New files.
64674         * modules/rbtree-list, modules/rbtree-list-tests: New files.
64675         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
64676         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
64677         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
64678         * modules/oset: New file.
64679         * modules/array-oset: New file.
64680         * modules/avltree-oset, modules/avltree-oset-tests: New files.
64681         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
64682         * tests/test-carray_list.c: New file.
64683         * tests/test-linked_list.c: New file.
64684         * tests/test-avltree_list.c: New file.
64685         * tests/test-rbtree_list.c: New file.
64686         * tests/test-linkedhash_list.c: New file.
64687         * tests/test-avltreehash_list.c: New file.
64688         * tests/test-rbtreehash_list.c: New file.
64689         * tests/test-avltree_oset.c: New file.
64690         * tests/test-rbtree_oset.c: New file.
64691         * MODULES.html.sh (Container data structures): New section.
64692
64693 2006-07-17  Bruno Haible  <bruno@clisp.org>
64694
64695         * m4/gl_list.m4: New file.
64696
64697 2006-07-17  Bruno Haible  <bruno@clisp.org>
64698
64699         * lib/gl_list.h: New file.
64700         * lib/gl_list.c: New file.
64701         * lib/gl_array_list.h: New file.
64702         * lib/gl_array_list.c: New file.
64703         * lib/gl_carray_list.h: New file.
64704         * lib/gl_carray_list.c: New file.
64705         * lib/gl_linked_list.h: New file.
64706         * lib/gl_linked_list.c: New file.
64707         * lib/gl_anylinked_list1.h: New file.
64708         * lib/gl_anylinked_list2.h: New file.
64709         * lib/gl_avltree_list.h: New file.
64710         * lib/gl_avltree_list.c: New file.
64711         * lib/gl_anyavltree_list1.h: New file.
64712         * lib/gl_anyavltree_list2.h: New file.
64713         * lib/gl_rbtree_list.h: New file.
64714         * lib/gl_rbtree_list.c: New file.
64715         * lib/gl_anyrbtree_list1.h: New file.
64716         * lib/gl_anyrbtree_list2.h: New file.
64717         * lib/gl_anytree_list1.h: New file.
64718         * lib/gl_anytree_list2.h: New file.
64719         * lib/gl_linkedhash_list.h: New file.
64720         * lib/gl_linkedhash_list.c: New file.
64721         * lib/gl_anyhash_list1.h: New file.
64722         * lib/gl_anyhash_list2.h: New file.
64723         * lib/gl_avltreehash_list.h: New file.
64724         * lib/gl_avltreehash_list.c: New file.
64725         * lib/gl_rbtreehash_list.h: New file.
64726         * lib/gl_rbtreehash_list.c: New file.
64727         * lib/gl_anytreehash_list1.h: New file.
64728         * lib/gl_anytreehash_list2.h: New file.
64729
64730         * lib/gl_oset.h: New file.
64731         * lib/gl_oset.c: New file.
64732         * lib/gl_array_oset.h: New file.
64733         * lib/gl_array_oset.c: New file.
64734         * lib/gl_avltree_oset.h: New file.
64735         * lib/gl_avltree_oset.c: New file.
64736         * lib/gl_rbtree_oset.h: New file.
64737         * lib/gl_rbtree_oset.c: New file.
64738         * lib/gl_anytree_oset.h: New file.
64739
64740 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64741
64742         * m4/mkancesdirs.m4: New file.
64743         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
64744         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
64745         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
64746         it.
64747
64748 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64749
64750         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
64751         * lib/mkancesdirs.h: New files.
64752         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
64753         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
64754         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
64755         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
64756         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
64757         callers changed.  Revamp internals significantly, by not
64758         attempting to create directories that are temporarily more
64759         permissive than the final results.  Do not attempt to use
64760         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
64761         This removes some race conditions, fixes some bugs, and simplifies
64762         things.  Use new dirchownmod function to do owner and mode changes.
64763         * lib/mkdir-p.h: Likewise.
64764         * lib/modechange.c (octal_to_mode): New function.
64765         (struct mode_change): New member mentioned.
64766         (make_node_op_equals): New arg mentioned.  All callers changed.
64767         (mode_compile): Keep track of which mode bits the user has explicitly
64768         mentioned.
64769         (mode_adjust): New arg DIR, so that we implement the X op correctly.
64770         New arg PMODE_BITS, to keep track of which mode bits the user
64771         mentioned; it treats S_ISUID and S_ISGID speciall.
64772         All callers changed.
64773         * lib/modechange.h: Likewise.
64774
64775 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64776
64777         * MODULES.html.sh: Add mkancestors.
64778         * modules/mkancesdirs: New module.
64779         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
64780         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
64781         The chdir-safer and afs files are now orphans; I'll remove them
64782         unless someone speaks up.
64783         Add lib/dirchownmod.c, lib/dirchownmod.h.
64784         (Depends-on): Remove alloca, chown, save-cwd, dirname.
64785         Add lchown, mkancesdirs.
64786         (Maintainer): Add self.
64787
64788 2006-07-15  Karl Berry  <karl@gnu.org>
64789
64790         * gnulib-tool: help message wording/arrangement.
64791
64792 2006-07-14  Simon Josefsson  <jas@extundo.com>
64793
64794         * doc/gnulib.texi (Libtool and Windows): New section.
64795
64796 2006-07-12  Simon Josefsson  <jas@extundo.com>
64797
64798         * modules/gendocs (License): Fix license, approved by Karl.
64799
64800 2006-07-12  Eric Blake  <ebb9@byu.net>
64801
64802         * MODULES.html.sh: Add gendocs.
64803
64804 2006-07-11  Eric Blake  <ebb9@byu.net>
64805
64806         * modules/fdl: New module, to install doc/fdl.texi.
64807         * MODULES.html.sh: Add new section for documentation modules.
64808         * gnulib-tool: Avoid space-tab.
64809         (--doc-base): New option, to manage files from doc.
64810
64811 2006-07-11  Eric Blake  <ebb9@byu.net>
64812
64813         * m4/absolute-header.m4: Fix comments to match recent change.
64814
64815 2006-07-11  Eric Blake  <ebb9@byu.net>
64816
64817         * gnulib-tool: List --doc-base before --tests-base.
64818
64819 2006-07-11  Derek R. Price  <derek@ximbiot.com>
64820
64821         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
64822
64823 2006-07-11  Bruno Haible  <bruno@clisp.org>
64824
64825         * README: Mention where to put documentation.
64826
64827 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64828
64829         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
64830
64831 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
64832
64833         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
64834         to stdint.m4.
64835
64836 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
64837
64838         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
64839         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
64840         "no/such/file/stdint.h" when there is no such file, so that
64841         the resulting C code can be parsed by dodgy compilers.
64842         Problems reported by Bob Proulx.
64843
64844 2006-07-10  Derek R. Price  <derek@ximbiot.com>
64845
64846         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
64847         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
64848         macros into the GNU _D_EXACT_NAMLEN.
64849         * lib/savedir.c:  Likewise.
64850         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
64851
64852 2006-07-10  Derek R. Price  <derek@ximbiot.com>
64853         and Paul Eggert  <eggert@cs.ucla.edu>
64854
64855         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
64856         * m4/savedir.m4:
64857         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
64858         macros into the GNU _D_EXACT_NAMLEN.
64859
64860 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64861
64862         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
64863         around the absolute name, to work around a problem with the HP-UX
64864         11.23 native C compiler, reported by Bob Proulx.
64865
64866 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64867
64868         * doc/maintain.texi, make-stds.texi: Sync from
64869         <http://savannah.gnu.org/projects/gnustandards>.
64870
64871 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64872
64873         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
64874
64875 2006-07-09  Jim Meyering  <jim@meyering.net>
64876
64877         * m4/glob.m4: Remove a doubled word in a comment.
64878
64879 2006-07-09  Jim Meyering  <jim@meyering.net>
64880
64881         * lib/argp-pv.c: Remove a doubled word in a comment.
64882         * lib/check-version.c (check_version): Likewise.
64883         * lib/javacomp.c (compile_java_class): Likewise.
64884
64885 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64886
64887         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
64888         for the benefit of people using Autoconf 2.60.  If you want to
64889         support older Autoconf versions you can copy m4/onceonly_2_57.m4
64890         (or m4/onceonly.m4, if pre-2.57) manually.
64891
64892 2006-07-08  Jim Meyering  <jim@meyering.net>
64893
64894         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
64895         comment.
64896         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
64897         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
64898         comment.
64899
64900 2006-07-08  Jim Meyering  <jim@meyering.net>
64901
64902         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
64903
64904 2006-07-07  Simon Josefsson  <jas@extundo.com>
64905
64906         * tests/test-crc.c: Change expected crc value, the test vector
64907         were probably computed using the old broken crc.c?
64908
64909 2006-07-06  Simon Josefsson  <jas@extundo.com>
64910
64911         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
64912         now the canonical place for the M4 file).
64913
64914         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
64915         from the sys_socket dependency now.
64916
64917         * modules/inet_pton (Files): Ditto.
64918
64919         * modules/inet_ntop (Files): Ditto.
64920
64921 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64922
64923         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
64924         not gl_PREREQ_GETUSERSHELL.
64925
64926 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64927
64928         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
64929         with only one argument, for Autoconf 2.60.
64930         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
64931         expand to nothing, so add a shell command to avoid syntax error.
64932         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64933
64934 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64935
64936         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
64937
64938 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64939
64940         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
64941         no longer needed.  Check for isblank decl.
64942         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
64943         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
64944         of existence.
64945
64946 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64947
64948         * lib/getloadavg.c: Use __VMS, not VMS.
64949         * lib/getopt.c: Likewise.
64950         * lib/getpagesize.h: Likewise.
64951         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
64952         and probably does not work.
64953
64954 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64955
64956         * lib/.cppi-disable: Add wcwidth.
64957         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
64958         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
64959         (ISGRAPH): Remove.  All uses changed to isgraph.
64960         (FOLD) [!defined _LIBC]: Remove special case.
64961         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
64962         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
64963         HAVE_ISBLANK.
64964         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
64965         case.
64966
64967 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64968
64969         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
64970         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
64971         brackets.  Other minor changes to suppress some compiler
64972         warnings.
64973
64974 2006-07-06  Derek R. Price  <derek@ximbiot.com>
64975         and Paul Eggert  <eggert@cs.ucla.edu>
64976
64977         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
64978         of invoking obsolescent AC_HEADER_DIRENT macro.
64979         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
64980         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
64981         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
64982         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
64983         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
64984         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64985         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
64986         * m4/readdir.m4: Remove; no longer needed.
64987
64988 2006-07-06  Derek R. Price  <derek@ximbiot.com>
64989         and Paul Eggert  <eggert@cs.ucla.edu>
64990
64991         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
64992         Don't worry about this obsolete case any more.
64993         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
64994         directories.
64995         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
64996         worry about this obsolete case any more.
64997         * lib/fts.c: Likewise.
64998         * lib/getcwd.c: Likewise.
64999         * lib/glob.h: Likewise.
65000         * lib/savedir.c: Likewise.
65001
65002 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65003
65004         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
65005         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
65006         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
65007         needed.
65008         All uses removed.
65009         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65010         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65011         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
65012         needed.
65013         * m4/getdate.m4 (gl_GETDATE): Likewise.
65014         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65015         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65016         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65017         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65018         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
65019         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65020         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
65021         needed.
65022
65023 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65024
65025         * lib/memcasecmp.c: Include <limits.h>.
65026         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
65027         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
65028         Don't assume isdigit succeeds only on '0' through '9'.
65029
65030 2006-07-05  Eric Blake  <ebb9@byu.net>
65031
65032         * modules/getaddrinfo (Depends-on): Add snprintf.
65033
65034 2006-07-05  Eric Blake  <ebb9@byu.net>
65035
65036         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
65037         to avoid 'header present but could not be compiled' on cygwin.
65038
65039 2006-07-05  Eric Blake  <ebb9@byu.net>
65040
65041         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
65042         missing from netdb.h.
65043         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
65044
65045 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65046
65047         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
65048         no longer needed.
65049         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
65050         * m4/getdate.m4 (gl_GETDATE): Likewise.
65051         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
65052         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
65053         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
65054         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
65055         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65056
65057 2006-07-05  Derek R. Price  <derek@ximbiot.com>
65058
65059         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
65060         All uses of is_space replaced by isspace.
65061         * lib/exit.h: Don't talk about STDC_HEADERS.
65062         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
65063         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
65064         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
65065         replaced by isprint etc.
65066         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
65067         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65068         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
65069         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
65070         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
65071         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
65072
65073 2006-07-05  Bruno Haible  <bruno@clisp.org>
65074
65075         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
65076         the function exists, before testing against AIX.
65077         Reported by Martin Lambers <marlam@marlam.de>.
65078
65079 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65080
65081         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
65082         From Mark D. Baushke.
65083
65084 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
65085
65086         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
65087         to the absolute name, not just one, to bypass Sun C 5.8's
65088         "warning: #include of /usr/include/... may be non-portable".
65089
65090 2006-07-04  Eric Blake  <ebb9@byu.net>
65091
65092         * modules/dirname-tests: New test module.
65093         * tests/test-dirname.c: New file, replacing dirname.c
65094         TEST_DIRNAME section that was recently deleted.
65095
65096 2006-07-04  Bruno Haible  <bruno@clisp.org>
65097
65098         Assume ANSI C header files and <ctype.h> functions.
65099         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
65100         (mbsnwidth): Use isprint, iscntrl instead.
65101
65102 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65103
65104         Merge from coreutils.
65105         * MODULES.html.sh: Add xstrtold.
65106         * modules/xstrtold: New file.
65107         * modules/cycle-check (Files): Add lib/same-inode.h.
65108         * modules/dirname (Files): Add m4/double-slash-root.m4.
65109         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
65110         * modules/mkdir-p (Files): Add lib/same-inode.h.
65111         * modules/same (Files): Add lib/same-inode.h.
65112
65113 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65114
65115         * m4/absolute-header.m4: Renamed from full-header-path.m4.
65116         This is to keep the terminology clean; POSIX talks about
65117         "absolute pathnames", not "full pathnames", but the GNU
65118         Coding Standards say to use "path" for something else;
65119         so use "absolute" to keep both sides happy.
65120         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
65121         Set gl_absolute_header, not gl_full_header_path.
65122         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
65123         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
65124         All uses changed.
65125
65126         Merge from coreutils.
65127
65128         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65129
65130         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
65131         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
65132         want to require the building of c-strtod.o.
65133         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
65134         needs -lm directly.
65135         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
65136
65137         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65138
65139         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
65140         --as-needed option if available.  Problem reported by Albert Chin in
65141         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
65142         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
65143         cc merely issues a bunch of annoying warnings for --as-needed
65144         (this problem was reported by Bob Proulx).  Also, try linking with
65145         -lm to detect a bug in binutils 2.16 (this problem was reported
65146         by Ralf Wildenhues).
65147
65148         2006-06-18  Jim Meyering  <jim@meyering.net>
65149
65150         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
65151         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
65152         macro.
65153         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
65154         also check for glibc-2.4's abort-inducing bug.
65155
65156         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
65157         Low-probability clean-up should be to use rmdir to get rid of
65158         the just-created directory, not unlink.
65159
65160         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
65161         configure fail, and request a bug report to inform us about it.
65162         Add a comment that, barring reports to the contrary, in 2007 we'll
65163         assume ftruncate is universally available.
65164
65165         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65166
65167         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
65168
65169         2006-03-12  Jim Meyering  <jim@meyering.net>
65170
65171         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
65172         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
65173         * m4/same.m4 (gl_SAME): Likewise.
65174         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
65175
65176         2006-03-11  Eric Blake  <ebb9@byu.net>
65177
65178         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
65179         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
65180         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
65181         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
65182
65183 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65184
65185         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
65186         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
65187         reported by Mark D. Baushke, one in
65188         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
65189
65190         Merge from coreutils.
65191
65192         * lib/.cppi-disable: Add stdint_.h.
65193         * lib/.cvsignore: Add stdint.h.
65194
65195         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
65196
65197         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
65198         both double and long double versions.
65199         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
65200         * lib/xstrtold.c: New file.
65201         * lib/xstrtod.h (xstrtold): New decl.
65202
65203         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65204
65205         * lib/filemode.c (setst): Remove.
65206         (strmode): Rewrite to avoid setst.  This makes the code shorter,
65207         (arguably) clearer, and the generated code is a bit smaller on my
65208         Debian GNU/Linux stable x86 host.
65209
65210         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
65211
65212         * lib/filemode.c: Include "filemode.h" first, to test the interface.
65213         Assume that filemode.h includes sys/types.h and sys/stat.h.
65214         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
65215         (ftypelet): Reorder to put common cases first, for efficiency.
65216         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
65217         to do 'M'.
65218         (strmode): Renamed from mode_string, and now stores 12 bytes instead
65219         of 10, for compatibility with FreeBSD.  All callers changed.
65220         (filemodestring): Now stores 12 bytes instead of 10, and sets file
65221         types that can't be deduced solely from st_mode.  First arg is now a
65222         const pointer.
65223         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
65224         (strmode): Renamed from mode_string.
65225         (filemodestring): New decl.
65226         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
65227         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
65228         needed.
65229         (S_ISPORT, S_ISWHT): New macros, if not already defined.
65230
65231         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
65232
65233         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
65234         fsusage.h now does that.  Include fsusage.h first, to test interface.
65235         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
65236         at most one method (the old code could have generated decls that
65237         didn't conform to C89, not that this was ever exercised).
65238         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
65239
65240         2006-03-19  Jim Meyering  <jim@meyering.net>
65241
65242         Work even in a chroot where d_ino values for entries in "/"
65243         don't match the stat.st_ino values for the same names.
65244         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
65245         number, iterate through all entries again, using lstat instead.
65246         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
65247         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
65248
65249         * lib/getcwd.c (__getcwd): Clarify a comment.
65250         Use memcpy in place of a call to strcpy.
65251
65252         2006-03-12  Jim Meyering  <jim@meyering.net>
65253
65254         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
65255         matches that of the current directory (which we're about to chdir ".."
65256         out of), then save the dev-ino of the parent, instead.
65257
65258         * lib/same-inode.h (SAME_INODE): New file/macro.
65259         * lib/chdir-safer.c (SAME_INODE): Remove definition.
65260         Include "same-inode.h", instead.
65261         * lib/same.c: Likewise.
65262         * lib/cycle-check.h: Include "same-inode.h".
65263         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
65264         * lib/cycle-check.c (SAME_INODE): Remove definition.
65265         * lib/root-dev-ino.h: Include "same-inode.h".
65266
65267         2006-03-11  Eric Blake  <ebb9@byu.net>
65268
65269         * lib/same.c (same_name): s/base_name/last_component/
65270         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
65271         * lib/filenamecat.c (file_name_concat): Likewise.
65272
65273         2006-03-11  Eric Blake  <ebb9@byu.net>,
65274                     Paul Eggert  <eggert@cs.ucla.edu>
65275
65276         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
65277         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
65278         drive prefix.
65279         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
65280         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
65281         (last_component): New method.
65282         * lib/dirname.c (dir_len): Determine when drive letters need a
65283         subsequent slash.  Preserve // when it is special.
65284         (dir_name): Don't append dot when drive letter is absolute.
65285         [TEST_DIRNAME]: Move into a full-blown gnulib test.
65286         * lib/basename.c (base_name): New semantics - malloc the result.
65287         Preserve // when it is special.  Preserve relative files that look
65288         like drive letters.
65289         (base_len): Preserve // when it is special.
65290         (last_component): New method, similar to old base_name semantics.
65291         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
65292         base_name.  Strip redundant slashes from ///.
65293
65294 2006-07-03  Jim Meyering  <jim@meyering.net>
65295
65296         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
65297         macro is used before the first cycle_check call.
65298
65299 2006-07-03  Eric Blake  <ebb9@byu.net>
65300
65301         * modules/dirname (Depends-on): Add xstrndup.
65302
65303 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65304
65305         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
65306         test cases, so that config.log is a bit easier to follow.
65307
65308 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65309
65310         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
65311         both are 64 bits, since this seems to be the tradition, and this
65312         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
65313         we ever run into a host that prefers long long to long in this
65314         case, we'll need another configure-time test.  Problem reported by
65315         Jim Meyering.
65316
65317 2006-07-02  Eric Blake  <ebb9@byu.net>
65318
65319         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
65320
65321 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65322
65323         * modules/inttypes (Depends-on): No longer depends on stdint.
65324         * modules/stdint (Description): Say more about assumptions.
65325         Say that the fast types might differ.  Say macros are used.
65326         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
65327         (Makefile.am): Revise list of substituted symbols to match
65328         new stdint.m4.
65329         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
65330         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
65331         * tests/test-stdint.c (verify_same_types)
65332         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
65333         the code conforms to C99/C89.
65334         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
65335         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
65336
65337 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65338
65339         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
65340         but fix a bug, by requiring at least 64 bits.
65341         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65342         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
65343         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
65344         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65345
65346         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
65347         changes.  Make 2.59 a prerequisite.  Check and substitute for
65348         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
65349         inttypes.h.  Do not use special include files; just use the
65350         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
65351         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
65352         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
65353         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
65354         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
65355         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
65356         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
65357         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
65358         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
65359         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
65360         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
65361         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
65362         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
65363         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
65364         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
65365         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
65366         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
65367         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
65368         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
65369         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
65370         WINT_MAX.  Check for C99 conformance more strictly, by detecting
65371         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
65372         not check for things that C99 does not require, e.g., int8_t.  If
65373         a test isn't needed unless <stdint.h> isn't working, and is
65374         unlikely to be needed for any other reason, then don't do it
65375         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
65376         size_t, since we assume C89 freestanding at least.  Do not check
65377         for sig_atomic_t, wchar_t, or wint_t, since the code now does
65378         the right thing even if the types are not defined.  Instead use:
65379         (gl_STDINT_TYPE_PROPERTIES): New macro.
65380         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
65381         testing whether <sys/types.h> clashes, as Autoconf does this for
65382         us now.  All uses removed.
65383         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
65384         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
65385         (gl_CHECK_TYPE_SAME):
65386         Remove; no longer needed.
65387         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
65388         exists, since we'll return 0 anyway in that case.
65389         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
65390
65391 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65392
65393         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
65394         possible collision with system files.
65395         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
65396         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
65397         WCHAR_MIN and WCHAR_MAX in this case.
65398         (<stddef.h>): Do not include; no longer needed.
65399         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
65400         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
65401         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
65402         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
65403         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
65404         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
65405         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
65406         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
65407         !defined(__c99))]: Include in this case too, since it's harmless
65408         now.
65409         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
65410         dangerous to do so.
65411         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
65412         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
65413         (_STDINT_MIN, _STDINT_MAX): New macros.
65414         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
65415         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
65416         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
65417         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
65418         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
65419         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
65420         macros, not typedefs; this simplifies things quite a bit.
65421         Use long int for all types narrower than int64_t.
65422         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
65423         Define in terms of long long int or int64_t or long int,
65424         not int64_t or int32_t.  This saves some compile-time testing.
65425         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
65426         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
65427         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
65428         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
65429         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
65430         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
65431         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
65432         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
65433         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
65434         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
65435         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65436         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65437         undef any previous version and define our own version, for
65438         simplicity and consistency with the new macros for types.
65439         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
65440         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
65441         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
65442         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
65443         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
65444         @WINT_T_SUFFIX@ to keep things simple here.
65445         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
65446         Simplify by assuming typical 8/16/32/64 host, since we're
65447         already doing that elsewhere anyway.
65448         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
65449         and assume long long int is 64 bits if available.  This
65450         speeds up 'configure'.
65451
65452 2006-07-01  Eric Blake  <ebb9@byu.net>
65453
65454         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
65455         Reported by Andreas Buening.
65456
65457 2006-07-01  Eric Blake  <ebb9@byu.net>
65458
65459         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
65460
65461 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
65462
65463         * lib/getaddrinfo.c: fixed typo
65464
65465 2006-06-29  Jim Meyering  <jim@meyering.net>
65466
65467         * modules/strftime (Maintainer): Add my name, since with the
65468         FPRINTFTIME changes strftime.c has forked from glibc.
65469
65470 2006-06-29  Eric Blake  <ebb9@byu.net>
65471
65472         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
65473
65474 2006-06-29  Eric Blake  <ebb9@byu.net>
65475
65476         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
65477
65478 2006-06-29  Eric Blake  <ebb9@byu.net>
65479
65480         * lib/stat_.h: New file.
65481
65482 2006-06-29  Eric Blake  <ebb9@byu.net>
65483
65484         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
65485         unused static function.
65486
65487 2006-06-29  Eric Blake  <ebb9@byu.net>
65488
65489         * doc/functions.texi (Function Portability): Document missing lstat
65490         on mingw.
65491
65492 2006-06-29  Eric Blake  <ebb9@byu.net>
65493
65494         * MODULES.html.sh: Add sys_stat.
65495         * modules/sys_stat: New module.
65496         * modules/mkstemp (Depends-on): Add sys_stat.
65497
65498 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65499
65500         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
65501
65502 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65503
65504         * m4/c-bs-a.m4: Removed.
65505
65506 2006-06-29  Derek R. Price  <derek@ximbiot.com>
65507
65508         * lib/strftime.c: Assume strftime() exists.
65509
65510 2006-06-29  Derek Price  <derek@ximbiot.com>
65511
65512         * modules/c-bs-a: Removed - \a is C89.
65513         * MODULES.html.sh: Remove c-bs-a.
65514
65515 2006-06-29  Bruno Haible  <bruno@clisp.org>
65516
65517         * modules/wcwidth (License): Change to LGPL.
65518
65519 2006-06-28  Simon Josefsson  <jas@extundo.com>
65520
65521         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
65522         on _WIN32.
65523
65524         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
65525         getnameinfo.
65526
65527 2006-06-28  Simon Josefsson  <jas@extundo.com>
65528
65529         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
65530
65531 2006-06-28  Simon Josefsson  <jas@extundo.com>
65532
65533         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
65534         functions there.  It will succeed on Windows XP, but on Windows
65535         2000 and (presumably) earlier, it will fail, and use the internal
65536         re-implementation.
65537         (use_win32_p): New function.
65538         (getaddrinfo): Use strtoul on servname, to support numeric ports.
65539         Support AI_NUMERICSERV to disable getservbyname.
65540         (getnameinfo): New function, only supports
65541         NI_NUMERICHOST|NI_NUMERICSERV for now.
65542
65543         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
65544         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
65545         getnameinfo.
65546
65547 2006-06-28  Eric Blake  <ebb9@byu.net>
65548
65549         * modules/wcwidth: New file.
65550         * modules/mbchar (Depends-on): Add wcwidth.
65551         * modules/mbswidth (Depends-on): Add wcwidth.
65552         * MODULES.html.sh: Add wcwidth.
65553
65554 2006-06-28  Eric Blake  <ebb9@byu.net>
65555
65556         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
65557         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
65558
65559 2006-06-28  Eric Blake  <ebb9@byu.net>
65560
65561         * lib/xvasprintf.h: Fix comments.
65562
65563 2006-06-28  Eric Blake  <ebb9@byu.net>
65564
65565         * lib/mbchar.h (wcwidth): Include wcwidth.h.
65566         * lib/mbswidth.c (wcwidth): Move from here...
65567         * lib/wcwidth.h: ...to this new file.
65568
65569 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65570
65571         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
65572
65573         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
65574         it's obsolete.
65575         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
65576
65577 2006-06-28  Derek R. Price  <derek@ximbiot.com>
65578
65579         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
65580         Autoconf 2.60 says this stuff was obsolete.
65581
65582 2006-06-28  Bruno Haible  <bruno@clisp.org>
65583
65584         * modules/wcwidth (Files): Add m4/wchar_t.m4.
65585
65586 2006-06-28  Bruno Haible  <bruno@clisp.org>
65587
65588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
65589         gt_TYPE_WCHAR_T.
65590
65591 2006-06-28  Bruno Haible  <bruno@clisp.org>
65592
65593         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
65594         declaration for wcwidth.
65595         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
65596
65597 2006-06-28  Bruno Haible  <bruno@clisp.org>
65598
65599         * lib/mkdtemp.c [MINGW]: Include <io.h>.
65600         (mkdir): Define using _mkdir.
65601
65602 2006-06-28  Bruno Haible  <bruno@clisp.org>
65603
65604         * lib/getaddrinfo.h: Fix POSIX URL.
65605         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
65606         _WIN32.
65607         (use_win32_p): Make static.
65608         (getaddrinfo): Reject service name if it is empty or does not consist
65609         solely of decimal digits, or if its value is > 65535.
65610         (getnameinfo): Remove useless casts.
65611
65612 2006-06-27  Simon Josefsson  <jas@extundo.com>
65613
65614         * modules/sys_select: New file, suggested by Bruno Haible, Paul
65615         Eggert and Martin Lambers.
65616
65617 2006-06-27  Simon Josefsson  <jas@extundo.com>
65618
65619         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
65620         Eggert and Martin Lambers.
65621
65622 2006-06-27  Bruno Haible  <bruno@clisp.org>
65623
65624         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
65625         result to 0, not to empty.
65626         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
65627
65628 2006-06-27  Bruno Haible  <bruno@clisp.org>
65629
65630         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
65631
65632 2006-06-26  Simon Josefsson  <jas@extundo.com>
65633
65634         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
65635         present.
65636
65637 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
65638
65639         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
65640         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
65641         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
65642
65643 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
65644
65645         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
65646
65647 2006-06-26  Bruno Haible  <bruno@clisp.org>
65648
65649         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
65650
65651 2006-06-26  Bruno Haible  <bruno@clisp.org>
65652
65653         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
65654
65655 2006-06-26  Bruno Haible  <bruno@clisp.org>
65656
65657         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
65658         SGI C compiler in pre-C99 mode.
65659         Suggested by Mark D. Baushke and Larry Jones.
65660
65661 2006-06-26  Bruno Haible  <bruno@clisp.org>
65662
65663         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
65664         WCHAR_MAX.
65665         Reported by Mark D. Baushke and Larry Jones.
65666
65667 2006-06-26  Bruno Haible  <bruno@clisp.org>
65668
65669         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
65670         in pre-C99 mode.
65671         Suggested by Mark D. Baushke and Larry Jones.
65672
65673 2006-06-23  Simon Josefsson  <jas@extundo.com>
65674             Bruno Haible  <bruno@clisp.org>
65675
65676         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
65677         Emit mostlyclean-local rule.
65678         (func_emit_tests_Makefile_am): Likewise.
65679         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
65680
65681 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
65682
65683         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
65684
65685 2006-06-23  Bruno Haible  <bruno@clisp.org>
65686
65687         * tests/test-stdint.c: Update to match ISO C 99 Technical
65688         Corrigendum 1.
65689
65690 2006-06-23  Bruno Haible  <bruno@clisp.org>
65691
65692         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
65693
65694 2006-06-23  Bruno Haible  <bruno@clisp.org>
65695
65696         * lib/stdint_.h: Treat IRIX like OpenBSD.
65697
65698 2006-06-23  Bruno Haible  <bruno@clisp.org>
65699
65700         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
65701         ISO C 99 Technical Corrigendum 1.
65702
65703 2006-06-22  Simon Josefsson  <jas@extundo.com>
65704
65705         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
65706         MinGW.
65707
65708 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65709
65710         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
65711         needed.  Some compiler complained about some of them.  Problem reported
65712         by Larry Jones in
65713         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
65714
65715 2006-06-21  Simon Josefsson  <jas@extundo.com>
65716
65717         * tests/test-getaddrinfo.c: New file.
65718
65719         * modules/getaddrinfo-tests: New file.
65720
65721         * MODULES.html.sh: Add inet_pton.
65722
65723         * modules/inet_pton: New file.
65724
65725 2006-06-21  Simon Josefsson  <jas@extundo.com>
65726
65727         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
65728         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
65729         of using the (limited) gnulib implementation on Windows XP.
65730
65731         * m4/inet_pton.m4: New file.
65732
65733 2006-06-21  Simon Josefsson  <jas@extundo.com>
65734
65735         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
65736         variable.
65737
65738         * lib/socket_.h: Don't define WINVER.
65739
65740         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
65741         slightly modified to work in gnulib.
65742
65743 2006-06-21  Simon Josefsson  <jas@extundo.com>
65744
65745         * doc/gnulib.texi (Windows sockets): Add.
65746
65747 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65748
65749         * lib/read-file.c (fread_file): Start with buffer allocation of
65750         0 bytes rather than 1 byte; this simplifies the code.
65751         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
65752         code to free buffer and save/restore errno.
65753         (internal_read_file): Remove unused local.
65754
65755 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65756
65757         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
65758         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
65759         Problem reported by Denis Excoffier in
65760         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
65761
65762 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65763
65764         * modules/sys_socket, modules/socklen: Include sys/types since
65765         FreeBSD 4.x's sys/socket.h needs it.
65766
65767 2006-06-19  Simon Josefsson  <jas@extundo.com>
65768
65769         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
65770
65771 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65772
65773         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
65774
65775 2006-06-19  Bruno Haible  <bruno@clisp.org>
65776
65777         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
65778         and FULL_PATH_INTTYPES_H in angle brackets.
65779         Reported by Mark D. Baushke <mdb@gnu.org>.
65780
65781 2006-06-17  Eric Blake  <ebb9@byu.net>
65782
65783         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
65784         errno.
65785
65786 2006-06-17  Bruno Haible  <bruno@clisp.org>
65787
65788         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
65789         <sys/inttypes.h>.
65790
65791 2006-06-17  Bruno Haible  <bruno@clisp.org>
65792
65793         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
65794         whether errno is declared. Assume <errno.h> declares errno.
65795
65796 2006-06-17  Bruno Haible  <bruno@clisp.org>
65797
65798         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
65799
65800 2006-06-17  Bruno Haible  <bruno@clisp.org>
65801
65802         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
65803         problem on Solaris 2.5.1.
65804
65805 2006-06-16  Eric Blake  <ebb9@byu.net>
65806
65807         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
65808         * lib/unicodeio.c [!defined errno]: Likewise.
65809         * lib/strtol.c [!defined errno]: Likewise.
65810         * lib/strtod.c [!defined errno]: Likewise.
65811
65812 2006-06-15  Eric Blake  <ebb9@byu.net>
65813
65814         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
65815
65816 2006-06-15  Eric Blake  <ebb9@byu.net>
65817
65818         * config/srclist.txt (ssize_t.m4): Lose sync.
65819
65820 2006-06-15  Bruno Haible  <bruno@clisp.org>
65821
65822         * modules/stdint (Files): Include m4/full-header-path.m4,
65823         m4/size_max.m4, m4/wchar_t.m4.
65824         (Makefile.am): Many more substitutions.
65825         * modules/stdint-tests: New file.
65826         * tests/test-stdint.c: New file.
65827
65828 2006-06-15  Bruno Haible  <bruno@clisp.org>
65829
65830         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
65831         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
65832         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
65833         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
65834         gl_CHECK_TYPE_SAME): New macros.
65835
65836 2006-06-15  Bruno Haible  <bruno@clisp.org>
65837
65838         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
65839
65840 2006-06-15  Bruno Haible  <bruno@clisp.org>
65841
65842         * lib/stdint_.h: Rewritten to be fully auto-configured.
65843         Fixes bug on HP-UX/IA64.
65844
65845 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
65846
65847         * lib/getdate.y (__attribute__): Don't define if already defined.
65848         Problem reported by Larry Jones.
65849         * lib/utimens.c (__attribute__): Likewise.
65850
65851 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
65852
65853         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
65854         reported by Andreas Schwab.
65855
65856 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65857             Bruno Haible  <bruno@clisp.org>
65858
65859         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
65860         check for the declaration of strnlen and a run test that exposes the
65861         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
65862         rpl_strndup.
65863
65864 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65865             Bruno Haible  <bruno@clisp.org>
65866
65867         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
65868
65869 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65870
65871         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
65872         compile test, for Tru64 4.0D.
65873
65874 2006-05-28  Karl Berry  <karl@gnu.org>
65875
65876         * config/srclist.txt (printf-args.c): lose sync.
65877
65878 2006-05-26  Martin Lambers  <marlam@marlam.de>
65879
65880         * lib/getpass.c: Updates the test for the native W32 API, and adds
65881         missing includes, thus fixing compilation warnings.
65882
65883 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65884
65885         * lib/exclude.c (exclude_fnmatch): New function.
65886         (excluded_file_name): Call exclude_fnmatch.
65887         * lib/exclude.h (excluded_file_name): New prototype
65888
65889 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
65890
65891         * lib/tempname.c (small_open, large_open): New macros.
65892         (__open, __open64) [!_LIBC]: Remove.
65893         (__gen_tempname): Use small_open and large_open instead of __open
65894         and __open64.  This fixes a portability bug on HP-UX 11.11i
65895         reported by Simon Wing-Tang in
65896         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
65897
65898 2006-05-24  Bruno Haible  <bruno@clisp.org>
65899
65900         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
65901         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
65902         Reported by Thorsten Maerz <torte@netztorte.de> via
65903         Aaron Stone <aaron@serendipity.cx>.
65904
65905 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65906
65907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
65908         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
65909         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
65910         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
65911         not really conditional on the cache.
65912         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
65913
65914 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65915
65916         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
65917         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
65918         (my_usleep): Don't mishandle maximum value.
65919
65920 2006-05-19  Jim Meyering  <jim@meyering.net>
65921
65922         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
65923
65924 2006-05-17  Bruno Haible  <bruno@clisp.org>
65925
65926         Cygwin portability.
65927         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
65928
65929 2006-05-17  Bruno Haible  <bruno@clisp.org>
65930
65931         * lib/stdint_.h: Fix recognition of Cygwin.
65932
65933 2006-05-15  Bruno Haible  <bruno@clisp.org>
65934
65935         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
65936         on libtool patch by Ralf Wildenhues.
65937
65938 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65939
65940         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
65941         test for C99 conformance; (bool) 0.5 is an integer constant
65942         expression, but (bool) -0.5 is not.  Problem reported by Fedor
65943         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
65944
65945 2006-05-11  Simon Josefsson  <jas@extundo.com>
65946
65947         * m4/xvasprintf.m4: Fix obvious typo.
65948
65949 2006-05-11  Jim Meyering  <jim@meyering.net>
65950
65951         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
65952         James Lemley.
65953
65954 2006-05-10  Simon Josefsson  <jas@extundo.com>
65955
65956         * lib/md4.c: Typo fix, update copyright years.
65957         (K1, K2): Don't use L because it turn computations into 64-bit on
65958         64-bit platforms.
65959
65960 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
65961
65962         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
65963         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
65964         unwanted sign propagation, e.g., on hosts with 64-bit int.
65965         There still are some problems with reeelly weird theoretical hosts
65966         (e.g., 33-bit int) but it's not worth worrying about now.
65967         * lib/sha1.c (rol): Likewise.
65968         (K1, K2, K3, K4): Remove unnecessary L suffix.
65969
65970 2006-05-10  Bruno Haible  <bruno@clisp.org>
65971
65972         * lib/des.c: Cast to avoid warnings.
65973
65974 2006-05-09  Bruno Haible  <bruno@clisp.org>
65975
65976         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
65977         (Depends-on): Depend also on xsize, stdarg.
65978         (configure.ac): Add gl_XVASPRINTF.
65979
65980 2006-05-09  Bruno Haible  <bruno@clisp.org>
65981
65982         * m4/xvasprintf.m4: New file.
65983
65984 2006-05-09  Bruno Haible  <bruno@clisp.org>
65985
65986         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
65987         (EOVERFLOW): Define fallback value.
65988         (xstrcat): New function.
65989         (xvasprintf): Recognize the special case of a string concatenation.
65990
65991 2006-05-08  Eric Blake  <ebb9@byu.net>
65992
65993         * gnulib-tool (func_version): Base copyright year on CVS date.
65994         (func_emit_copyright_notice): New function.
65995         (func_emit_lib_Makefile_am): Use it.
65996         (func_emit_tests_Makefile_am): Likewise.
65997         (func_import): Likewise.
65998
65999 2006-05-08  Bruno Haible  <bruno@clisp.org>
66000
66001         * modules/stdarg: New file.
66002         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
66003
66004 2006-05-08  Bruno Haible  <bruno@clisp.org>
66005
66006         * m4/stdarg.m4: New file, from GNU gettext.
66007
66008 2006-05-08  Bruno Haible  <bruno@clisp.org>
66009
66010         * config/srclist.txt (build-aux/config.rpath): different from latest
66011         release.
66012
66013 2006-05-08  Bruno Haible  <bruno@clisp.org>
66014
66015         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
66016
66017 2006-05-05  Jim Meyering  <jim@meyering.net>
66018
66019         * m4/warning.m4: New file, derived from bison's file by the same name.
66020
66021 2006-05-03  Bruno Haible  <bruno@clisp.org>
66022
66023         * lib/stdint_.h: Shorter URL.
66024         * lib/inttypes.h: Likewise.
66025
66026 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66027
66028         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
66029
66030 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66031
66032         * lib/verify.h: Document the internals better.  Most of this change
66033         was written by Bruno Haible.
66034
66035 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66036
66037         * doc/verify.texi: New file, partly based on a proposal by
66038         Bruno Haible.
66039
66040 2006-05-02  Bruno Haible  <bruno@clisp.org>
66041
66042         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
66043         test from here...
66044         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
66045
66046 2006-04-29  Bruno Haible  <bruno@clisp.org>
66047
66048         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
66049         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
66050
66051 2006-04-29  Bruno Haible  <bruno@clisp.org>
66052
66053         * gnulib-tool: Make --update option actually work.
66054
66055 2006-04-29  Bruno Haible  <bruno@clisp.org>
66056
66057         * doc/gcd.texi: New file.
66058         * doc/gnulib.texi: Include it.
66059
66060 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
66061
66062         * lib/getdate.y (get_date): When adding relative date, start with the
66063         initial time, not with the result of the first mktime call.
66064
66065 2006-04-25  Bruno Haible  <bruno@clisp.org>
66066
66067         * gnulib-tool (func_import): Output the include directives in three
66068         blocks, sorted separately.
66069         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66070
66071 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66072
66073         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
66074         to define main with arguments, for C++.  Reported by Eric Blake.
66075         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
66076         Prefer 'int main ()' to 'int main (void)', for C++.
66077         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
66078         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
66079         for 'main', for C99 and C++.
66080
66081 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
66082
66083         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
66084         Don't assume that exit status -1 is valid.
66085         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66086         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
66087         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
66088         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
66089         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
66090         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
66091         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
66092         functions can be used without declaring them, or that you can
66093         exit with status -1.
66094         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
66095
66096 2006-04-24  Karl Berry  <karl@gnu.org>
66097
66098         * config/srclist.txt (longdouble.m4): sync lost.
66099
66100 2006-04-24  Eric Blake  <ebb9@byu.net>
66101
66102         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
66103
66104 2006-04-24  Bruno Haible  <bruno@clisp.org>
66105
66106         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
66107         poll() implementation in AIX.
66108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66109
66110 2006-04-24  Bruno Haible  <bruno@clisp.org>
66111
66112         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
66113         assigned exactly once.
66114
66115 2006-04-23  Claudio Fontana  <claudio@gnu.org>
66116             Bruno Haible  <bruno@clisp.org>
66117
66118         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
66119         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
66120         for AM_CPPFLAGS.
66121
66122 2006-04-23  Bruno Haible  <bruno@clisp.org>
66123
66124         * modules/copy-file: Depend on unistd.
66125         * modules/execute: Likewise.
66126         * modules/fatal-signal: Likewise.
66127         * modules/findprog: Likewise.
66128         * modules/mkdtemp : Likewise.
66129         * modules/pipe: Likewise.
66130         * modules/wait-process: Likewise.
66131
66132 2006-04-23  Bruno Haible  <bruno@clisp.org>
66133
66134         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
66135         condition was already detected.
66136         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66137
66138 2006-04-23  Bruno Haible  <bruno@clisp.org>
66139
66140         * lib/copy-file.c: Include <unistd.h> unconditionally.
66141         * lib/execute.c: Likewise.
66142         * lib/fatal-signal.c: Likewise.
66143         * lib/findprog.c: Likewise.
66144         * lib/mkdtemp.c: Likewise.
66145         * lib/pipe.h: Likewise.
66146         * lib/pipe.c: Likewise.
66147         * lib/wait-process.h: Likewise.
66148
66149 2006-04-23  Bruno Haible  <bruno@clisp.org>
66150
66151         * gnulib-tool (func_usage): Fix --import description. Document
66152         --update.
66153         (func_import): Create temporary file in a temporary directory, if
66154         --dry-run is specified. Silence errors from 'grep' when there are no
66155         m4 files in $m4dir.
66156         (func_create_testdir): Silence errors from 'grep' when there are no
66157         m4 files in $m4dir.
66158         Reported by Karl Berry <karl@freefriends.org>.
66159
66160 2006-04-20  Bruno Haible  <bruno@clisp.org>
66161
66162         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
66163         one argument, so that the code will be portable to Autoconf 2.60.
66164         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
66165         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66166         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
66167
66168 2006-04-19  Derek Price  <derek@ximbiot.com>
66169             Eric Blake  <ebb9@byu.net>
66170
66171         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
66172         rather than "/full/path.h".  Update comment to match.  Shorten &
66173         generalize m4_translit call via AS_TR_CPP.
66174
66175 2006-04-19  Derek Price  <derek@ximbiot.com>
66176             Eric Blake  <ebb9@byu.net>
66177
66178         * lib/inttypes.h: Correct grammar in comment.
66179
66180 2006-04-18  Derek Price  <derek@ximbiot.com>
66181             Paul Eggert  <eggert@cs.ucla.edu>
66182
66183         * modules/inttypes: New file.
66184         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
66185
66186 2006-04-18  Derek Price  <derek@ximbiot.com>
66187             Paul Eggert  <eggert@cs.ucla.edu>
66188
66189         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
66190         New files.
66191
66192 2006-04-18  Derek Price  <derek@ximbiot.com>
66193             Paul Eggert  <eggert@cs.ucla.edu>
66194
66195         * lib/inttypes.h: New file.
66196         * lib/strtoimax.c: Assume <inttypes.h>.
66197
66198 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
66199
66200         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
66201         isn't mounted.  Problem reported by Kir Kolyshkin.
66202
66203 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66204
66205         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
66206         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
66207         Derek R. Price.
66208         * lib/regex.h (RE_DUP_MAX): Update comment to match current
66209         implementation.
66210
66211 2006-04-12  Eric Blake  <ebb9@byu.net>
66212
66213         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
66214         is now done automatically by the corresponding Autoconf macro.
66215
66216 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
66217
66218         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
66219         time_r.h.
66220
66221 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66222
66223         Merge regex changes from libc, removing some of our
66224         POSIX-conformance changes that were rejected and redoing them in a
66225         less-intrusive way.
66226
66227         * lib/regcomp.c (re_compile_internal, init_dfa):
66228         Length arg is now size_t, not Idx.  All uses changed.
66229         (peek_token): Forward decl now says internal_function.
66230         (__re_error_msgid, __re_error_msgid_idx):
66231         Now static rather than extern with attribute_hidden.
66232         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
66233         For some reason libc prefers K&R style defns for external functions.
66234         (regerror) [!defined _LIBC]: Likewise.
66235         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
66236         (seek_collating_symbol_entry, lookup_collation_sequence_value):
66237         (build_range_exp, build_collating_symbol):
66238         Use K&R-style defn.
66239         (re_compile_fastmap): Use '\0' to memset, not 0.
66240         (utf8_sb_map): Make the calculations more obvious.
66241         (init_dfa, parse_bracket_exp, build_charclass_op):
66242         Call calloc and cast result, as glibc does.
66243         (init_word_char, fetch_token, peek_token, peek_token_bracket):
66244         (build_range_exp, build_collating_symbol):
66245         Now internal functions.
66246
66247         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
66248
66249         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
66250         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
66251         Don't depend on VMS; depend on __VMS instead, for POSIX
66252         namespace cleanness.
66253         (regoff_t): Define to ssize_t, not long int.
66254
66255         Remove the REG_ macros named below.  Instead, make the old names
66256         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
66257         __USE_GNU_REGEX.
66258         (REG_BACKSLASH_ESCAPE_IN_LISTS):
66259         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
66260         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
66261         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
66262         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
66263         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
66264         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
66265         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
66266         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
66267         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
66268         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
66269         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
66270         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
66271         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
66272         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
66273         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
66274         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
66275         (REG_NREGS):
66276         Remove.  All uses replaced by the old RE_* names.
66277         (RE_BACKSLASH_ESCAPE_IN_LISTS):
66278         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
66279         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
66280         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
66281         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
66282         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
66283         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
66284         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
66285         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
66286         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
66287         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
66288         Don't bother having these macros be independent of each others'
66289         values, since they no longer exist in the POSIX name space.
66290
66291         Rename the following member names back to their old names,
66292         unless !__USE_GNU_REGEX.  All uses changed back.
66293         (buffer): Renamed from re_buffer.
66294         (allocated): Renamed from re_allocated.
66295         (used): Renamed from re_used.
66296         (syntax): Renamed from re_syntax.
66297         (fastmap): Renamed from re_fastmap.
66298         (translate): Renamed from re_translate.
66299         (can_be_null): Renamed from re_can_be_null.
66300         (regs_allocated): Renamed from re_regs_allocated.
66301         (fastmap_accurate): Renamed from re_fastmap_accurate.
66302         (no_sub): Renamed from re_no_sub.
66303         (not_bol): Renamed from re_not_bol.
66304         (not_eol): Renamed from re_not_eol.
66305         (newline_anchor): Renamed from re_newline_anchor.
66306         (num_regs): Renamed from rm_num_regs.
66307         (start): Renamed from rm_start.
66308         (end): Renamed from rm_end.
66309
66310         (free_state): Move up a bit.
66311
66312         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
66313         #define to be empty.
66314         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
66315         when that is what is intended.
66316         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
66317         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
66318         (MAX): New macro.
66319         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
66320         All uses changed back to re_malloc, etc.  It's now the caller's
66321         responsibility to check for overflow; all callers changed.
66322         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
66323         (re_x2nrealloc): Remove.
66324         (free_state): Remove decl.
66325
66326         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
66327         (re_set_registers, re_exec):
66328         Use K&R-style defn.
66329
66330         2006-01-31  Roland McGrath  <roland@redhat.com>
66331
66332         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
66333         Reported by Mike Frysinger <vapier@gentoo.org>.
66334
66335         2006-01-15  Andreas Jaeger  <aj@suse.de>
66336
66337         [BZ #1950]
66338         * lib/regex_internal.c (re_string_reconstruct): Adjust for
66339         build_wcs_upper_buffer change.
66340         (build_wcs_upper_buffer): Change return type.
66341
66342         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
66343
66344         * lib/regex_internal.h: Include <stdint.h> if available.
66345
66346         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
66347
66348         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
66349
66350         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66351
66352         * lib/regcomp.c: Adjust for changed secondary hash function.
66353
66354         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
66355
66356         * lib/regex.h: Pretty printing.
66357         Clean up namespace a bit.
66358
66359         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
66360
66361         * lib/regexec.c (update_cur_sifted_state, check_arrival,
66362         check_arrival_add_next_nodes): Avoid using uninitialized variable.
66363
66364         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66365                     Ulrich Drepper  <drepper@redhat.com>
66366
66367         [BZ #1302]
66368         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
66369         changed.
66370         (bitset_word_t): Renamed from bitset_word.  All uses changed.
66371
66372         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
66373
66374         [BZ #281]
66375         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
66376         * lib/regcomp.c: Remove unnecessary uses of
66377         unsigned RE_TRANSLATE_TYPE.
66378         * lib/regex_internal.h: Likewise.
66379         * lib/regex_internal.c: Likewise.
66380         * lib/regexec.c: Likewise.
66381         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
66382
66383         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
66384
66385         * lib/regexec.c (find_recover_state): Remove unnecessary
66386         initialization.
66387         (transit_state_bkref): Make DFA a const pointer.
66388         (get_subexp): Likewise.
66389         (check_arrival): Likewise.
66390         (update_cur_sifted_state): Likewise.
66391         (re_search_internal): Likewise.
66392         (prune_impossible_nodes): Likewise.
66393         (acquire_init_state_context): Likewise.
66394         (proceed_next_node): Likewise.
66395         (set_regs): Likewise.
66396         (free_fail_stack_return): Likewise.
66397         (check_arrival_expand_ecl): Mark DFA parameter as const.
66398         (check_arrival_expand_ecl_sub): Likewise.
66399         (check_subexp_limits): Likewise.
66400         (sub_epsilon_src_nodes):  Likewise.
66401         (add_epsilon_src_nodes):  Likewise.
66402         (merge_state_array): Likewise.
66403         (update_regs): Likewise.
66404         (build_trtable): Likewise.
66405         (sift_states_backward): Mark MCTX parameter as const.
66406         (build_sifted_states): Likewise.
66407         (update_cur_sifted_state): Likewise.
66408         (sift_states_mkref): Likewise.
66409         (check_arrival_expand_ecl): Mark eclosure as const.
66410         (check_dst_limits_calc_pos_1): Likewise.
66411         * lib/regex_internal.h (re_match_context_t): Make dfa a const
66412         pointer.
66413
66414         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
66415
66416         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
66417         (transit_state_sb): Likewise.
66418         (transit_state_mb): Likewise.
66419         (sift_states_iter_mb): Likewise.
66420         (check_arrival_add_next_nodes): Likewise.
66421         (check_node_accept_bytes): Change first parameter to pointer-to-const.
66422         [_LIBC] (re_search_2_stub): Use mempcpy.
66423
66424         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
66425         mbrtowc for very simple UTF-8 case.
66426
66427         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
66428         a pointer-to-const.
66429         (re_acquire_state_context): Likewise.
66430         * lib/regex_internal.h: Adjust prototypes.
66431
66432         * lib/regex.c: Prevent using C++ compilers.
66433
66434         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
66435         (re_acquire_state_context): Likewise.
66436
66437 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66438
66439         * modules/regex (Depends-on): Add ssize_t.
66440
66441 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66442
66443         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
66444         translation table.
66445
66446 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
66447
66448         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
66449
66450 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
66451             Bruno Haible  <bruno@clisp.org>
66452
66453         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
66454         <sys/types.h> and <inttypes.h>.
66455
66456 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66457
66458         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
66459         `__error_t_defined', so argp.h will not typedef the former.
66460
66461 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66462
66463         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
66464         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
66465         glibc names.  Even if glibc is changed to conform to POSIX, the
66466         traditional names will be available anyway, since regex depends on
66467         the extensions module.  Also, fix a longstanding typo in the
66468         implementation of Spencer ERE test #75 from grep 2.3.  Problems
66469         reported by Emanuele Giaquinta.  Also, change sense of cached
66470         variable, so that the message makes sense.
66471
66472 2006-03-24  Simon Josefsson  <jas@extundo.com>
66473
66474         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
66475         including some doc fixes.
66476         (base64_encode_alloc): Fix +1 bug on allocation failures.
66477
66478 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66479
66480         * lib/base64.c (base64_encode): Do not read past end of array with
66481         unsanitized input on systems with CHAR_BIT > 8.
66482
66483 2006-03-24  Eric Blake  <ebb9@byu.net>
66484
66485         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
66486
66487 2006-03-22  Karl Berry  <karl@gnu.org>
66488
66489         * config/srclist.txt (*setenv.[ch]): get from coreutils.
66490         * config/srclistvars.sh (COREUTILS): new var.
66491
66492 2006-03-17  Jim Meyering  <jim@meyering.net>
66493
66494         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
66495         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
66496
66497 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66498
66499         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
66500         no longer needs it.  Instead, check that regoff_t is as least
66501         as wide as ptrdiff_t.
66502
66503         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
66504         so that our regex.h stays compatible with the installed regex.
66505         This is helpful for installers who configure --without-included-regex.
66506         Problem reported by Emanuele Giaquinta.
66507
66508 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
66509
66510         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
66511         Typedef to long int, not to off_, as POSIX will likely change
66512         in that direction.
66513
66514 2006-03-15  Eric Blake  <ebb9@byu.net>
66515
66516         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
66517
66518 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66519
66520         * lib/argp-help.c (validate_uparams): Fix typo
66521         * lib/argp-parse.c (argp_default_options): Consistently begin help
66522         messages with a lowercase letter.
66523
66524 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
66525
66526         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
66527         overrun buffers and shouldn't be used (much as gets shouldn't be
66528         used).
66529         * lib/time_r.c (asctime_r, ctime_r): Likewise.
66530
66531 2006-03-08  Simon Josefsson  <jas@extundo.com>
66532
66533         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
66534         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66535
66536 2006-03-08  Simon Josefsson  <jas@extundo.com>
66537
66538         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
66539         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66540
66541 2006-03-08  Simon Josefsson  <jas@extundo.com>
66542
66543         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
66544         signal that configure disabled the device.
66545
66546 2006-03-08  Simon Josefsson  <jas@extundo.com>
66547
66548         * build-aux/maint.mk: Fix refresh-po, to handle no translated
66549         languages.
66550
66551 2006-03-07  Simon Josefsson  <jas@extundo.com>
66552
66553         * modules/getopt (Depends-on): Add unistd.
66554
66555         * modules/unistd: New file.
66556
66557 2006-03-07  Simon Josefsson  <jas@extundo.com>
66558
66559         * modules/gc-random: New file.
66560
66561 2006-03-07  Simon Josefsson  <jas@extundo.com>
66562
66563         * m4/unistd_h.m4: New file.
66564
66565 2006-03-07  Simon Josefsson  <jas@extundo.com>
66566
66567         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
66568         test to be side-effect free by storing the result in the cache
66569         variable gl_cv_lib_readline, and moving the assignment of
66570         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
66571         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66572
66573 2006-03-07  Simon Josefsson  <jas@extundo.com>
66574
66575         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
66576         error on missing devices (the functions will return an error).
66577
66578         * m4/gc.m4: Move random stuff to gc-random.m4
66579
66580 2006-03-07  Simon Josefsson  <jas@extundo.com>
66581
66582         * lib/unistd_.h: New file.
66583
66584 2006-03-07  Simon Josefsson  <jas@extundo.com>
66585
66586         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
66587
66588 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66589
66590         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
66591         Problem reported by Juan Manuel Guerrero.
66592
66593 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66594
66595         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
66596         the unistd module.
66597         * lib/getlogin_r.c: Likewise.
66598         * lib/getlogin_r.h: Likewise.
66599         * lib/glob.c: Likewise.
66600         * lib/pagealign_alloc.c: Likewise.
66601         * lib/unistd_.h: Remove; no longer needed.
66602
66603 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
66604
66605         * MODULES.html.sh (Support for systems lacking POSIX:2001):
66606         Add unistd.
66607         * modules/c-stack (Depends-on): Add unistd.
66608         * modules/getlogin_r: Likewise.
66609         * modules/glob: Likewise.
66610         * modules/pagealign_alloc: Likewise.
66611         * modules/unistd (Files): Remove lib/unistd_.h.
66612         (EXTRA_DIST): Remove.
66613         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
66614         need unistd_.h.
66615         (MOSTLYCLEANFILES): Remove unistd.h-t.
66616
66617 2006-03-03  Simon Josefsson  <jas@extundo.com>
66618
66619         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
66620
66621 2006-03-03  Simon Josefsson  <jas@extundo.com>
66622
66623         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
66624         libidn and bison.
66625
66626 2006-03-03  Simon Josefsson  <jas@extundo.com>
66627
66628         * build-aux/maint.mk: Add indent target.
66629
66630 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
66631
66632         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
66633         our replacement poll.h in any case, to avoid a differing
66634         declaration from a system header.  Seen on AIX.
66635
66636 2006-03-01  Simon Josefsson  <jas@extundo.com>
66637
66638         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
66639         <kasal@ucw.cz>.
66640
66641 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66642
66643         * modules/gettime (Depends-on): Add extensions module.
66644         * modules/nanosleep (Depends-on): Likewise.
66645         * modules/settime (Depends-on): Likewise.
66646
66647 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66648
66649         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
66650         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
66651         pedantically.
66652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66653         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
66654
66655         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
66656         not "==".  Reported by Ralf Wildenhues.
66657
66658 2006-03-01  Karl Berry  <karl@gnu.org>
66659
66660         * doc/Copyright/request-*: new files, synced from gnuorg.
66661
66662 2006-03-01  Karl Berry  <karl@gnu.org>
66663
66664         * config/srclist.txt (Copyright/*): new entries.
66665
66666 2006-02-28  Simon Josefsson  <jas@extundo.com>
66667
66668         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
66669
66670 2006-02-27  Simon Josefsson  <jas@extundo.com>
66671
66672         * lib/base64.h: Indent #define's.  From Jim Meyering
66673         <jim@meyering.net>.
66674
66675 2006-02-27  Jim Meyering  <jim@meyering.net>
66676
66677         Revert the change of 2006-02-24, so these files can continue
66678         to be sync'd from gettext.
66679         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
66680         of `config.h'.
66681
66682 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66683
66684         * modules/intprops: New file.
66685         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66686         Add intprops.
66687         * modules/getloadavg (Files): Remove lib/intprops.h.
66688         (Depends-on): Add intprops.
66689         * modules/human: Likewise.
66690         * modules/inttostr: Likewise.
66691         * modules/openat: Likewise.
66692         * modules/sig2str: Likewise.
66693         * modules/userspec: Likewise.
66694         * modules/utimecmp: Likewise.
66695         * modules/xnanosleep: Likewise.
66696         * modules/xstrtol: Likewise.
66697
66698 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
66699
66700         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
66701         * modules/lock-tests (TESTS): Use $(EXEEXT).
66702         * modules/tls-tests: Likewise.
66703         * modules/argp-tests: Likewise.
66704         (check_PROGRAMS): New var, replacing...
66705         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
66706
66707 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66708
66709         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
66710         `config.h'.
66711
66712 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66713
66714         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
66715
66716 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66717
66718         Sync from coreutils.
66719         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
66720         gl_CHDIR_SAFER.
66721
66722 2006-02-22  Jim Meyering  <jim@meyering.net>
66723
66724         Sync from coreutils.
66725         * m4/chdir-safer.m4: New file.
66726
66727 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66728
66729         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
66730         AT_FDCWD exceeds INT_MAX.
66731         * lib/openat.h (AT_FDCWD): Likewise.
66732
66733 2006-02-17  Eric Blake  <address@hidden>
66734
66735         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
66736
66737 2006-02-16  Simon Josefsson  <jas@extundo.com>
66738
66739         * modules/getaddrinfo (Depends-on): Add sys_socket.
66740
66741 2006-02-15  Simon Josefsson  <jas@extundo.com>
66742
66743         * build-aux/maint.mk: Add dsyntax-check rule.
66744
66745 2006-02-15  Eric Blake  <ebb9@byu.net>
66746
66747         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
66748         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
66749         'present but cannot compile' warnings on cygwin.
66750         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
66751         use ws2tcpip.h if sys/socket.h works.
66752         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
66753         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
66754
66755 2006-02-14  Simon Josefsson  <jas@extundo.com>
66756
66757         * modules/maintainer-makefile (Files): Rename.
66758
66759         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
66760         and (the local) Makefile.cfg to maint-cfg.mk.
66761
66762         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
66763         to the latter.
66764
66765         * modules/maintainer-makefile: New module.
66766
66767         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
66768         severaly stripped to make it possible to build it up from scratch
66769         with reliable tests.
66770
66771         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
66772         fixes to permit overriding the default actions when configure and
66773         makefile are not available.
66774
66775 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
66776
66777         Sync from coreutils.
66778         * modules/lstat (Depends-on): Don't depend on xalloc.
66779         (License): Change from GPL to LGPL, since this is now simply a
66780         replacement for a libc function.
66781
66782 2006-02-14  Jim Meyering  <jim@meyering.net>
66783
66784         Sync from coreutils.
66785
66786         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
66787         failure on deficient systems, and simplify gnulib lgpl dependencies.
66788         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
66789         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
66790
66791         * lib/xalloc-die.c: Remove unused definition of N_.
66792
66793 2006-02-14  Jim Meyering  <jim@meyering.net>
66794
66795         Sync from coreutils.
66796         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
66797         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
66798         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
66799         double-quote uses of that variable, to accommodate the rare case in
66800         which getmntent is available in none of the libraries checked.  This
66801         happens at least on FreeBSD 5.0.
66802
66803 2006-02-13  Simon Josefsson  <jas@extundo.com>
66804
66805         * gnulib-tool (Usage): Fix --import, from
66806         karl@freefriends.org (Karl Berry).
66807
66808 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66809
66810         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
66811
66812 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
66813
66814         * lib/argp-namefrob.h: Restore changes accidentally lost during the
66815         "autoupdate" on 2005-12-12.
66816
66817 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
66818
66819         * modules/closeout (Depends-on): Remove atexit.
66820
66821 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
66822
66823         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
66824         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
66825
66826 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
66827
66828         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
66829         __EXTENSIONS__ if this causes compilation to fail.  Problem
66830         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
66831         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
66832
66833 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
66834
66835         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
66836         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
66837         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
66838         All uses changed.
66839
66840 2006-01-26  Simon Josefsson  <jas@extundo.com>
66841
66842         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
66843         prototype is visible on mingw32.
66844
66845         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
66846         for mingw32.
66847
66848         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
66849         mingw32).
66850
66851 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66852
66853         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
66854         attempt to open for write; this always fails, at least on POSIX
66855         hosts.  This reinstates the 2006-01-09 change, which was
66856         inadvertently removed.
66857
66858 2006-01-26  Bruno Haible  <bruno@clisp.org>
66859
66860         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
66861         Reported by Paul Eggert.
66862
66863 2006-01-26  Bruno Haible  <bruno@clisp.org>
66864             Paul Eggert  <eggert@cs.ucla.edu>
66865
66866         * lib/stdbool_.h (_Bool)
66867         [(! (defined __cplusplus || defined __BEOS__)
66868           && !defined __GNUC__
66869           && !(defined __HP_cc || defined __xlc__
66870                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
66871                || defined __sgi))]:
66872         #define to signed char in these cases too; this simplifies
66873         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
66874         etc., separately) and makes it more conservative.
66875
66876 2006-01-25  Simon Josefsson  <jas@extundo.com>
66877
66878         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
66879         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
66880         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
66881
66882 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66883
66884         * lib/argp-namefrob.h: Bugfix. Remove stray #
66885
66886 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
66887
66888         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
66889         so that we test the test.
66890         Check for yet another HP-UX cc bug involving *bool |= bool.
66891
66892 2006-01-25  Karl Berry  <karl@gnu.org>
66893
66894         * config/srclist.txt (vasnprintf.c): sync lost.
66895
66896 2006-01-25  Jim Meyering  <jim@meyering.net>
66897
66898         Sync from the stable (b5) branch of coreutils:
66899
66900         * lib/fts.c (fts_children): Don't let close() clobber errno from
66901         failed fchdir().
66902
66903         * lib/fts.c (fts_stat): When following a symlink-to-directory,
66904         don't necessarily interpret stat-fails+lstat-succeeds as indicating
66905         a dangling symlink.  That can also happen at least for ELOOP.
66906         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
66907         FYI, this bug predates the inclusion of fts.c in coreutils.
66908
66909         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
66910         in their own block, so pre-c99 compilers don't object.
66911
66912         Avoid the double-free (first in fts_read, second in fts_close) that
66913         would occur when an `active' directory is made inaccessible (e.g.,
66914         via chmod a-x) during a traversal.
66915         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
66916         before returning.  Reproduce this failure by
66917         mkdir -p a/b; cd a; chmod a-x . b
66918         Reported by Stavros Passas.
66919
66920 2006-01-25  Jim Meyering  <jim@meyering.net>
66921
66922         * lib/fileblocks.c: Remove more useless parentheses.
66923         * lib/readutmp.h: Likewise.
66924
66925 2006-01-25  Bruno Haible  <bruno@clisp.org>
66926
66927         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
66928         warnings.
66929         Reported by Paul Eggert.
66930
66931 2006-01-25  Bruno Haible  <bruno@clisp.org>
66932
66933         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
66934         rid of a trap command. For Solaris sh.
66935         Reported by Mark D. Baushke <mdb@gnu.org>.
66936
66937 2006-01-24  Simon Josefsson  <jas@extundo.com>
66938
66939         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
66940         Bruno.
66941
66942 2006-01-24  Karl Berry  <karl@gnu.org>
66943
66944         * config/srclist.txt (argp-namefrob.h): sync lost.
66945
66946 2006-01-24  Jim Meyering  <jim@meyering.net>
66947
66948         * modules/openat (Files): Add lib/intprops.h.
66949         From Mark D. Baushke.
66950
66951 2006-01-24  Jim Meyering  <jim@meyering.net>
66952
66953         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
66954         Reported by Mark D. Baushke.
66955
66956 2006-01-24  Jim Meyering  <jim@meyering.net>
66957
66958         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
66959
66960 2006-01-24  Bruno Haible  <bruno@clisp.org>
66961
66962         * modules/strnlen (Maintainer): Change from glibc to all.
66963
66964 2006-01-24  Bruno Haible  <bruno@clisp.org>
66965
66966         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
66967         Patch by Paul Eggert.
66968
66969 2006-01-24  Bruno Haible  <bruno@clisp.org>
66970
66971         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
66972         already has it.
66973         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
66974         2005-11-26.
66975
66976         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
66977         'signed char' to avoid problems with the built-in _Bool type.
66978         Reported by Paul Eggert on 2005-11-26.
66979
66980 2006-01-24  Bruno Haible  <bruno@clisp.org>
66981
66982         * gnulib-tool (func_import): Avoid constructing complicated sed
66983         expressions inside backquote.
66984         Report and solution by Mark D. Baushke <mdb@gnu.org>.
66985
66986 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
66987
66988         These changes imported from libc.
66989         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
66990         test and two separate function calls.
66991         * lib/strndup.c (__strndup): Add libc_hidden_def.
66992
66993 2006-01-23  Simon Josefsson  <jas@extundo.com>
66994
66995         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
66996         Remove the test_*_SOURCES variable: automake infers it by default.
66997         * modules/tls-tests: Likewise.
66998
66999 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67000
67001         Work around porting bugs reported by Dieter in
67002         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
67003         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
67004         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
67005         Include "getopt.h" first, to check interface.
67006         (getenv): Declare only if defined HAVE_DECL_GETENV &&
67007         !HAVE_DECL_GETENV.
67008         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
67009         (__strndup): Revert to K&R-style function dfns, the glibc style.
67010         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
67011         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
67012         Include strnlen.h first, to get prototype properly.
67013         (strnlen): Renamed from __strnlen.
67014         Remove weak alias.
67015
67016 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67017
67018         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
67019
67020 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67021
67022         * config/srclist.txt: Adjust to reflect glibc reorganization.
67023         This affects only comments.
67024
67025 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67026
67027          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
67028          Reported by Bruce Korb <bkorb@gnu.org>.
67029
67030 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
67031
67032         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
67033         to pacify gcc -Wswitch-default.
67034
67035 2006-01-22  Bruno Haible  <bruno@clisp.org>
67036
67037         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
67038         temporary buffer for sprintf, take into account the precision also
67039         for 'd', 'i', 'u', 'o', 'x', 'X'.
67040
67041 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67042
67043         * modules/argp-tests: New module
67044         * tests/test-argp.c: New file
67045         * tests/test-argp-2.sh: New file
67046
67047 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
67048
67049         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
67050         (__argp_base_name): Removed
67051         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
67052         typo.
67053         (__argp_base_name): Provide macro definition or extern declaration
67054         depending on the configuration
67055
67056 2006-01-20  Simon Josefsson  <jas@extundo.com>
67057
67058         * modules/inet_ntop (Depends-on): Depend on sys_socket.
67059
67060 2006-01-20  Simon Josefsson  <jas@extundo.com>
67061
67062         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
67063
67064 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67065
67066         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
67067         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
67068         Suggested by Bruno Haible.
67069
67070 2006-01-20  Karl Berry  <karl@gnu.org>
67071
67072         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
67073         until changes propagate, I guess.
67074
67075 2006-01-19  Simon Josefsson  <jas@extundo.com>
67076
67077         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
67078
67079 2006-01-19  Simon Josefsson  <jas@extundo.com>
67080
67081         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
67082
67083 2006-01-19  Simon Josefsson  <jas@extundo.com>
67084
67085         * gnulib-tool: Set check_PROGRAMS.
67086
67087         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67088         modules/des-tests, modules/gc-arcfour-tests,
67089         modules/gc-arctwo-tests, modules/gc-des-tests,
67090         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67091         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67092         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67093         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67094         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67095         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
67096         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
67097         test_*_SOURCES.
67098
67099 2006-01-18  Simon Josefsson  <jas@extundo.com>
67100
67101         * modules/socklen (Depends-on): Depend on sys_socket.
67102
67103 2006-01-18  Simon Josefsson  <jas@extundo.com>
67104
67105         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
67106         modules/des-tests, modules/gc-arcfour-tests,
67107         modules/gc-arctwo-tests, modules/gc-des-tests,
67108         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
67109         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
67110         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
67111         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
67112         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
67113         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
67114         $(EXEEXT) to automake TESTS variable, for mingw32.
67115
67116 2006-01-17  Simon Josefsson  <jas@extundo.com>
67117
67118         * modules/socklen (Include): Need sys/socket.h.
67119
67120 2006-01-17  Bruno Haible  <bruno@clisp.org>
67121
67122         * modules/ssize_t (Include): Add <sys/types.h>.
67123
67124 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
67125
67126         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
67127         it's not portable and it doesn't work with cross-compiles.
67128         Problem reported by Bruno Haible.  Fix missing-$ typo in
67129         'test "gl_cv_ignore_unused_libraries" ...' that prevented
67130         -zignore from being used with Sun's C compiler.
67131
67132 2006-01-12  Simon Josefsson  <jas@extundo.com>
67133
67134         * lib/base64.c: Fix warning, reported by Bruno Haible
67135         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
67136
67137 2006-01-12  Bruno Haible  <bruno@clisp.org>
67138
67139         * modules/ldd: New file.
67140         * build-aux/ldd.sh.in: New file.
67141         * MODULES.html.sh (Support for building libraries and executables): Add
67142         ldd.
67143
67144 2006-01-12  Bruno Haible  <bruno@clisp.org>
67145
67146         * m4/ldd.m4: New file.
67147
67148 2006-01-12  Bruno Haible  <bruno@clisp.org>
67149
67150         * gnulib-tool (func_import, func_create_testdir): Don't go into an
67151         endless loop while replacing $auxdir with build-aux.
67152
67153 2006-01-11  Simon Josefsson  <jas@extundo.com>
67154
67155         * lib/stdint_.h (SIZE_MAX): Add missing (.
67156
67157 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
67158
67159         Sync from coreutils.
67160         * lib/md5.c: Fix commentary typos.
67161         (alignof, UNALIGNED_P): No need for a GCC-specific version.
67162         * lib/md5.h (__attribute__): Remove; unused.
67163         * lib/sha1.c: Fix commentary to match md5 better.
67164         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
67165         so that we don't need to worry about alignment.  All uses changed.
67166         This merges the 2005-10-28 md5 change into sha1.
67167
67168 2006-01-11  Jim Meyering  <jim@meyering.net>
67169
67170         Sync from coreutils.
67171         * lib/md5.c (OP): Fix spacing.
67172
67173 2006-01-11  Bruno Haible  <bruno@clisp.org>
67174
67175         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67176         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
67177         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
67178
67179 2006-01-11  Bruno Haible  <bruno@clisp.org>
67180
67181         Ensure automatic ordering between gl_LOCK and gl_ARGP.
67182         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
67183         the "early" section as well.
67184
67185 2006-01-11  Bruno Haible  <bruno@clisp.org>
67186
67187         Avoid "ar: no archive members specified" error on MacOS X.
67188         * gnulib-tool (func_modules_add_dummy): New function.
67189         (func_import, func_create_testdir): Invoke it.
67190
67191 2006-01-11  Bruno Haible  <bruno@clisp.org>
67192
67193         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
67194         with $auxdir in AC_CONFIG_FILES statements.
67195
67196 2006-01-11  Bruno Haible  <bruno@clisp.org>
67197
67198         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67199         Initialize also noinst_HEADERS to empty.
67200
67201 2006-01-11  Bruno Haible  <bruno@clisp.org>
67202
67203         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
67204         variables.
67205         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
67206         autoreconf.
67207
67208 2006-01-11  Bruno Haible  <bruno@clisp.org>
67209
67210         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
67211         overridable by the user.
67212         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67213
67214 2006-01-10  Simon Josefsson  <jas@extundo.com>
67215
67216         * modules/sys_socket: New file.
67217
67218 2006-01-10  Simon Josefsson  <jas@extundo.com>
67219
67220         * m4/sys_socket_h.m4: New file.
67221
67222 2006-01-10  Simon Josefsson  <jas@extundo.com>
67223
67224         * lib/socket_.h: New file.
67225
67226 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67227
67228         * modules/readutmp (Maintainer): Add myself.
67229
67230 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67231
67232         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
67233         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
67234         People who are still concerned with buggy memcmp implementations
67235         can invoke gl_FUNC_MEMCMP themselves.
67236
67237 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67238
67239         * lib/regex_internal.h (BITSET_WORD_BITS):
67240         Work around a bug in 64-bit PGC (before version 6.1-2), where the
67241         preprocessor mishandles large unsigned values as if they were signed.
67242         Problem reported by Claudio Fontana in
67243         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
67244
67245 2006-01-10  Jim Meyering  <jim@meyering.net>
67246
67247         Avoid the double-free (first in fts_read, second in fts_close) that
67248         would occur when an `active' directory is made inaccessible (e.g.,
67249         via chmod a-x) during a traversal.
67250         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
67251         before returning.  Reproduce this failure by
67252         mkdir -p a/b; cd a; chmod a-x . b
67253         Reported by Stavros Passas.
67254
67255         Sync from coreutils.
67256         * lib/sha1.c: Tweak grammar in a comment.
67257
67258 2006-01-10  Jim Meyering  <jim@meyering.net>
67259
67260         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
67261         Patch by Joerg Sonnenberger.
67262
67263 2006-01-10  Bruno Haible  <bruno@clisp.org>
67264
67265         * modules/readutmp: Depend on module free.
67266         * modules/strtok_r: Depend on module restrict.
67267
67268 2006-01-10  Bruno Haible  <bruno@clisp.org>
67269
67270         * modules/gettext (configure.ac): Add an invocation of
67271         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
67272
67273 2006-01-10  Bruno Haible  <bruno@clisp.org>
67274
67275         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
67276         Reported by Werner Lemberg <wl@gnu.org>.
67277
67278 2006-01-10  Bruno Haible  <bruno@clisp.org>
67279
67280         * lib/localcharset.c: Update from GNU gettext.
67281
67282 2006-01-10  Bruno Haible  <bruno@clisp.org>
67283
67284         * lib/argp.h (__const): Remove macro. Use const instead.
67285         * lib/argp-fmtstream.h (__const): Likewise.
67286         * lib/glob_.h (__const): Remove macro.
67287         * lib/glob-libc.h: Use const instead of __const.
67288
67289 2006-01-10  Bruno Haible  <bruno@clisp.org>
67290
67291         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
67292         variable.
67293         Needed to avoid an automake error regarding the 'gettext' module.
67294
67295 2006-01-09  Simon Josefsson  <jas@extundo.com>
67296
67297         * modules/inet_ntop (Depends-on): Add restrict.
67298
67299 2006-01-09  Simon Josefsson  <jas@extundo.com>
67300
67301         * modules/gc-rijndael-tests (License): Put under LGPL.
67302
67303         * modules/gc-des-tests (License): Likewise.
67304
67305         * modules/gc-arcfour-tests (License): Likewise.
67306
67307         * modules/gc-arctwo-tests (License): Likewise.
67308
67309         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
67310
67311         * modules/gc-hmac-sha1-tests (Files): Likewise.
67312
67313         * modules/gc-hmac-md5-tests (License): Likewise.
67314
67315         * modules/gc-sha1-tests (License): Likewise.
67316
67317         * modules/gc-md5-tests (License): Likewise.
67318
67319         * modules/gc-md4-tests (License): Likewise.
67320
67321         * modules/gc-md2-tests (License): Likewise.
67322
67323         * modules/gc-tests (License): Likewise.
67324
67325         * modules/des-tests (License): Likewise.
67326
67327         * modules/md4-tests (License): Likewise.
67328
67329         * modules/md2-tests (License): Likewise.
67330
67331 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67332
67333         Sync from coreutils:
67334
67335         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
67336         * modules/lib-ignore: New file.
67337         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
67338         chdir-safer.m4, lchmod.m4.
67339         * modules/openat: Add mkdirat.c, openat-priv.h.
67340
67341 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67342
67343         Sync from coreutils.
67344         * m4/lib-ignore.m4: New file.
67345         * m4/lchmod.m4: New file.
67346
67347 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67348
67349         Sync from coreutils.
67350         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
67351         for write access: POSIX says that must fail.
67352         * lib/fts.c (diropen): Likewise.
67353         * lib/save-cwd.c (save_cwd): Likewise.
67354         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
67355         well, for minor improvements on hosts that lack O_DIRECTORY.
67356         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
67357         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
67358         Fall back on chown if open failed with EACCES.
67359
67360         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
67361         Report an error at compile-time if only a 1-second nominal clock
67362         resolution is found.
67363
67364         * lib/lchmod.h: New file.
67365         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
67366         (make_dir_parents): Use lchown rather than chown, and
67367         lchmod rather than chmod.
67368
67369         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
67370         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
67371         "proc" reported by n0dalus.
67372
67373         * lib/mountlist.c: Include <limits.h>.
67374         (dev_from_mount_options)
67375         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
67376         New function.  It no longer assumes "dev=" has the System V meaning
67377         on Linux (since it doesn't).  It also parses "dev=" more carefully.
67378         (read_file_system_list)
67379         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
67380         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
67381         dev= in that case.
67382
67383         * lib/posixtm.h (PDS_PRE_2000): New macro.
67384         * lib/posixtm.c (year): Arg is now syntax_bits rather than
67385         allow_century.  All usages changed.  Reject dates outside the range
67386         1969-1999 if PDS_PRE_2000 is used.
67387
67388 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
67389
67390         Sync from coreutils.
67391         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
67392         (Time of day items): Mention the possibility of leap seconds.
67393         Problem reported by Dr. David Alan Gilbert.
67394
67395 2006-01-09  Jim Meyering  <jim@meyering.net>
67396
67397         Sync from coreutils.
67398
67399         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
67400
67401         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
67402
67403         * lib/modechange.c (mode_compile): Reject an invalid mode string
67404         that starts with an octal digit.  From Andreas Gruenbacher.
67405
67406         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
67407         and dup to open_safer and dup_safer, respectively.
67408         (openat_permissive): Fix typo in comment.
67409
67410         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
67411         "gettext.h"; either no longer needed or are guaranteed by openat.h.
67412         (_): Remove; no longer needed.
67413         (openat): Renamed from rpl_openat; no need for rpl_openat
67414         since openat.h renames openat for us.
67415         Replace most of the body with a call to openat_permissive,
67416         to avoid duplicate code.
67417         Port to (probably hypothetical) environments were mode_t is
67418         wider than int.
67419         (openat_permissive): Require mode arg, so that we can check
67420         types better.  Put it just after flags.  Change cwd failure
67421         indicator from pointer-to-bool to pointer-to-errno-value.
67422         All callers changed.
67423         Invoke openat_save_fail and/or openat_restore_fail if
67424         cwd_errno is null, so that openat can call us.
67425         (openat_permissive, fdopendir, fstatat, unlinkat):
67426         Simplify errno handling to avoid some duplicate code,
67427         as it's OK to set errno on success.
67428         * lib/openat.h: Revamp code so that function macros depend on
67429         __OPENAT_PREFIX only, not also on AT_FDCWD.
67430         (openat_ro): Remove.  Caller changed to use openat_permissive.
67431         (openat_permissive): Now a macro, if not a function.
67432         (openat_restore_fail, openat_save_fail): Now always functions,
67433         since mkdirat needs them even if __OPENAT_PREFIX is defined.
67434
67435         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
67436         and openat.c.
67437         * lib/mkdirat.c: Include openat-priv.h.
67438         Remove definitions of macros defined therein.
67439         * lib/openat.c: Likewise.
67440
67441         * lib/mkdirat.c (mkdirat): New file and function.
67442         * lib/openat.h (mkdirat): Declare.
67443
67444         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
67445
67446         * lib/openat.h (openat_permissive): Declare.
67447         (openat_ro): Define.
67448
67449         * lib/openat.c (EXPECTED_ERRNO): New macro.
67450         (openat_permissive): New function -- used in remove.c rewrite.
67451         (all functions): Set errno just before returning, only if there
67452         was an actual failure.
67453         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
67454
67455         Emulate openat-family functions using Linux's procfs, if possible.
67456         Idea and some code based on Ulrich Drepper's glibc changes.
67457
67458         * lib/openat.c: (BUILD_PROC_NAME): New macro.
67459         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
67460         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
67461         before falling back on save_cwd and restore_cwd.
67462         (fdopendir, fstatat, unlinkat): Likewise.
67463
67464         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
67465         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
67466
67467         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
67468         as second argument to va_arg.  Otherwise, some versions of gcc
67469         warn that `if this code is reached, the program will abort'.
67470
67471 2006-01-09  Jim Meyering  <jim@meyering.net>
67472
67473         Sync from coreutils.
67474         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
67475         Require openat-priv.h.
67476
67477 2006-01-09  Bruno Haible  <bruno@clisp.org>
67478
67479         * modules/strnlen (Include): Use strnlen.h.
67480
67481 2006-01-09  Bruno Haible  <bruno@clisp.org>
67482
67483         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
67484
67485 2006-01-09  Bruno Haible  <bruno@clisp.org>
67486
67487         * lib/sysexit_.h (EX_OK): New macro.
67488         Suggested by Martin Lambers <marlam@marlam.de>.
67489
67490 2006-01-09  Bruno Haible  <bruno@clisp.org>
67491
67492         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
67493         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
67494
67495 2006-01-09  Bruno Haible  <bruno@clisp.org>
67496
67497         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
67498         numbers.
67499
67500 2006-01-09  Bruno Haible  <bruno@clisp.org>
67501
67502         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
67503         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
67504         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
67505         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
67506
67507 2006-01-09  Bruno Haible  <bruno@clisp.org>
67508
67509         * build-aux/javacomp.sh.in: New file, moved from lib/.
67510         * modules/javacomp-script (Files): Update.
67511         (configure.ac): Add AC_CONFIG_FILES invocation.
67512         (EXTRA_DIST): Remove variable.
67513
67514         * build-aux/javaexec.sh.in: New file, moved from lib/.
67515         * modules/javaexec (Files): Update.
67516         (configure.ac): Add AC_CONFIG_FILES invocation.
67517         (EXTRA_DIST): Remove javaexec.sh.in.
67518
67519         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
67520         * modules/csharpcomp-script (Files): Update.
67521         (configure.ac): Add AC_CONFIG_FILES invocation.
67522         (EXTRA_DIST): Remove variable.
67523
67524         * build-aux/csharpexec.sh.in: New file, moved from lib/.
67525         * modules/csharpexec (Files): Update.
67526         (configure.ac): Add AC_CONFIG_FILES invocation.
67527         (EXTRA_DIST): Remove csharpexec.sh.in.
67528
67529 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67530
67531         Sync from coreutils.
67532
67533         Add POSIX ACL support
67534         * lib/acl.h (copy_acl, set_acl): Add declarations.
67535         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
67536         systems other than Linux.
67537         (chmod_or_fchmod): New function: use fchmod when possible,
67538         and chmod otherwise.
67539         (file_has_acl): Add a POSIX ACL implementation, with a
67540         Linux-specific subcase.
67541         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
67542         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
67543         acls are unsupported.
67544         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
67545         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
67546         are unsupported.
67547
67548 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
67549
67550         Sync from coreutils.
67551         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
67552
67553 2006-01-07  Bruno Haible  <bruno@clisp.org>
67554
67555         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
67556         gl_EARLY.
67557
67558 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67559
67560         * lib/strftime.c (tzname): Don't declare if it is already #defined.
67561         Problem reported for Mingw by Mark Junker.
67562
67563 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67564
67565         * README: Gnulib normally doesn't generate a tarball.
67566
67567 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
67568
67569         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
67570         long int, not int, for nanosecond counts, so that people who are
67571         used to POSIX struct timespec won't be surprised.  Reported by Jim
67572         Meyering.
67573
67574 2005-12-28  Bruno Haible  <bruno@clisp.org>
67575
67576         * build-aux/config.rpath: Update from GNU gettext.
67577
67578 2005-12-16  Jim Meyering  <jim@meyering.net>
67579
67580         * modules/fprintftime: New module.
67581         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
67582
67583 2005-12-16  Jim Meyering  <jim@meyering.net>
67584
67585         * m4/fprintftime.m4: New file.
67586
67587 2005-12-16  Jim Meyering  <jim@meyering.net>
67588
67589         * lib/fprintftime.c, lib/fprintftime.h: New files.
67590
67591 2005-12-15  Simon Josefsson  <jas@extundo.com>
67592
67593         * modules/socklen (configure.ac): Fix M4 macro name, to align with
67594         new m4/socklen.m4.
67595
67596 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67597
67598         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
67599         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
67600
67601 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67602
67603         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
67604         * lib/argp-help.c (fill_in_uparams): Check if the constructed
67605         struct uparams is valid. Fall back to the default values if it is
67606         not.
67607
67608 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67609
67610         * modules/argp (Files): Add argp-pin.c
67611         (Depends-on): dirname
67612         (lib_SOURCES): Add argp-pin.c
67613
67614 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67615
67616         * m4/argp.m4:  Check if program_invocation_name and
67617         program_invocation_short_name are declared and define appropriate
67618         macros if they are not.
67619
67620 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67621
67622         * lib/argp-help.c (__argp_base_name): New function
67623         (__argp_short_program_name): Rewrite using __argp_base_name
67624         * lib/argp-namefrob.h: Define program_invocation_name and
67625         program_invocation_short_name if requested
67626         (__argp_base_name): Add prototype
67627         * lib/argp-parse.c (argp_def): Use gettext wrappers
67628         (argp_default_parser): Use __argp_base_name
67629         * lib/argp-pin.c: New file. Defines program_invocation_name and
67630         program_invocation_short_name on systems that lack them.
67631
67632 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67633
67634         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
67635         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67636         porting problem reported by Georg Schwarz in
67637         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67638
67639 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67640
67641         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
67642         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67643         porting problem reported by Georg Schwarz in
67644         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67645
67646 2005-12-05  Bruno Haible  <bruno@clisp.org>
67647
67648         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
67649         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
67650         Reported by Mark Junker <mjscod@gmx.de>.
67651
67652 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
67653
67654         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
67655         Use implementation from Albert Chin, with some
67656         comments/corrections by Stepan Kasal and myself.
67657
67658 2005-12-02  Bruno Haible  <bruno@clisp.org>
67659
67660         * gnulib-tool (func_import): Accept GPLed build tool modules when
67661         --lgpl is given.
67662         * modules/csharpcomp-script: New file.
67663         * modules/csharpcomp: Depend on it.
67664         * modules/javacomp-script: New file.
67665         * modules/javacomp: Depend on it.
67666         Suggested by Simon Josefsson.
67667
67668 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
67669
67670         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
67671         statement, to work around an HP-UX 10.20 compiler bug reported by
67672         Peter O'Gorman.
67673
67674 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67675
67676         * modules/savedir (Depends-on): Add openat.
67677
67678 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67679
67680         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
67681         (uintmax_t) [defined uintmax_t]: Do not declare.
67682         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
67683         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
67684         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
67685         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
67686         sake of portability to weird hosts that C allows (though we don't
67687         know of any practical examples).
67688
67689         * lib/savedir.h (fdsavedir): New decl.
67690         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
67691         contains most of the former guts of savedir.
67692         (savedir): Use savedirstream.
67693         Include "openat.h".
67694
67695 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67696
67697         * modules/obstack (Files): Add m4/ulonglong.m4.
67698         Problem reported by Davide Angelocola.
67699
67700 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
67701
67702         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
67703         coreutils no longer futzes with rounding modes.
67704
67705 2005-11-14  Jim Meyering  <jim@meyering.net>
67706
67707         * lib/mkstemp-safer.c: Include <config.h>, required for possible
67708         replacement of mkstemp.
67709
67710 2005-11-10  Simon Josefsson  <jas@extundo.com>
67711
67712         * lib/readline.c: Remove EOL.
67713
67714 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67715
67716         * modules/gethrxtime (Depends-on): Add gettime.
67717
67718 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67719
67720         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
67721         or gettimeofday; no longer needed.
67722
67723 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67724
67725         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
67726         time business.
67727         (gethrxtime) [! (HAVE_NANOUPTIME
67728         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
67729         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
67730         our own approximation.
67731
67732 2005-11-08  Eric Blake  <ebb9@byu.net>
67733
67734         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67735
67736 2005-11-08  Eric Blake  <ebb9@byu.net>
67737
67738         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67739
67740 2005-11-04  Bruno Haible  <bruno@clisp.org>
67741
67742         * gnulib-tool: Implement --update mode.
67743
67744 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67745
67746         Fix porting problem reported by Theodoros V. Kalamatianos.
67747         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
67748         Don't assume that futimes failing means we must fail.
67749
67750 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67751
67752         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
67753         variables to suggest the intended function of the PATH_MAX check.
67754
67755 2005-10-30  Kean Johnston  <jkj@sco.com>
67756
67757         Trivial changes to support SCO systems.
67758         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
67759         as PATH_MAX.
67760         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
67761         where __ptr is null when no I/O is pending.
67762
67763 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67764
67765         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
67766         leave errno alone.  Problem reported by Dmitry V. Levin.
67767
67768 2005-10-28  Simon Josefsson  <jas@extundo.com>
67769
67770         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
67771         Test more.
67772
67773         * tests/test-gc-md2.c, tests/test-md2.c: New files.
67774
67775         * modules/md2, modules/md2-tests: New files.
67776
67777 2005-10-28  Simon Josefsson  <jas@extundo.com>
67778
67779         * m4/inet_ntop.m4: More tests.
67780
67781         * m4/gc-md2.m4, md2.m4: New file.
67782
67783 2005-10-28  Simon Josefsson  <jas@extundo.com>
67784
67785         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
67786         "restrict" keywords, as per POSIX.  Protect the function
67787         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
67788         Don't use K&R prototypes.  Check the sprintf return values.
67789         Re-define EAFNOSUPPORT if not present.  Indent.
67790
67791         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
67792         suggested by Bruno Haible <bruno@clisp.org>.
67793
67794         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
67795
67796         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
67797
67798         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
67799         libgcrypt).
67800
67801         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
67802
67803         * lib/md2.h, lib/md2.c: New files.
67804
67805 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
67806
67807         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
67808         errno alone.  Problem reported by Frederic Jolliton.
67809
67810 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67811
67812         * modules/verify (License): Change from GPL to LGPL.  This is a
67813         tiny module and there are apparently near-equivalents that are
67814         under the BSD license.
67815
67816 2005-10-24  Simon Josefsson  <jas@extundo.com>
67817
67818         * modules/sha1: Relicense to LGPL.
67819
67820 2005-10-24  Simon Josefsson  <jas@extundo.com>
67821
67822         * lib/md4.h: Shrink buffer size, now that we changed the type.
67823
67824 2005-10-23  Simon Josefsson  <jas@extundo.com>
67825
67826         * gnulib-tool (func_import): Fix --tests-base.
67827
67828 2005-10-22  Simon Josefsson  <jas@extundo.com>
67829
67830         * modules/arcfour (Depends-on): Need stdint.
67831
67832 2005-10-22  Simon Josefsson  <jas@extundo.com>
67833
67834         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
67835         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
67836
67837 2005-10-22  Simon Josefsson  <jas@extundo.com>
67838
67839         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
67840         suggested by Bruno Haible <bruno@clisp.org>.
67841
67842 2005-10-22  Simon Josefsson  <jas@extundo.com>
67843
67844         * lib/crc.h: Include stddef.h, for size_t.
67845
67846 2005-10-22  Simon Josefsson  <jas@extundo.com>
67847
67848         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
67849         arcfour_context struct (simplify test vector testing in GNU
67850         Shishi).
67851
67852 2005-10-21  Simon Josefsson  <jas@extundo.com>
67853
67854         * modules/des, modules/des-tests: New files.
67855
67856         * modules/gc-des, modules/gc-des-tests: New files.
67857
67858         * tests/test-des.c, tests/test-gc-des.c: New file.
67859
67860 2005-10-21  Simon Josefsson  <jas@extundo.com>
67861
67862         * modules/arctwo, modules/arctwo-tests: New files.
67863
67864         * tests/test-arctwo.c: New file.
67865
67866         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
67867
67868         * tests/test-gc-arctwo.c: New file.
67869
67870 2005-10-21  Simon Josefsson  <jas@extundo.com>
67871
67872         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
67873         Bruno Haible <bruno@clisp.org>.
67874
67875         * m4/gc-des.m4: New file.
67876
67877 2005-10-21  Simon Josefsson  <jas@extundo.com>
67878
67879         * m4/arctwo.m4: New file.
67880
67881         * m4/gc-arctwo.m4: New file.
67882
67883 2005-10-21  Simon Josefsson  <jas@extundo.com>
67884
67885         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
67886         block.
67887
67888 2005-10-21  Simon Josefsson  <jas@extundo.com>
67889
67890         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
67891         <bruno@clisp.org>.
67892
67893         * lib/hmac-sha1.c (hmac_sha1): Likewise.
67894
67895         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
67896         Bruno Haible <bruno@clisp.org>.
67897
67898         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
67899         <bruno@clisp.org>.
67900
67901 2005-10-21  Simon Josefsson  <jas@extundo.com>
67902
67903         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
67904
67905 2005-10-21  Simon Josefsson  <jas@extundo.com>
67906
67907         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
67908
67909 2005-10-21  Simon Josefsson  <jas@extundo.com>
67910
67911         * lib/des.h, lib/des.c: New files.
67912
67913         * lib/gc-gnulib.c: Support DES.c
67914
67915 2005-10-21  Simon Josefsson  <jas@extundo.com>
67916
67917         * lib/arctwo.h, lib/arctwo.c: New files.
67918
67919         * lib/gc-gnulib.c: Support ARCTWO.
67920
67921 2005-10-21  Simon Josefsson  <jas@extundo.com>
67922
67923         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
67924         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67925
67926 2005-10-21  Simon Josefsson  <jas@extundo.com>
67927
67928         * gnulib-tool (func_import, func_create_testdir): Define automake
67929         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
67930         Makefile.am snippet),
67931         suggested by Bruno Haible <bruno@clisp.org>.
67932
67933         * modules/gc (Makefile.am): Use it.
67934
67935 2005-10-21  Bruno Haible  <bruno@clisp.org>
67936
67937         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
67938         patch.
67939
67940 2005-10-19  Simon Josefsson  <jas@extundo.com>
67941
67942         * tests/test-gc-rijndael.c: New file.
67943
67944         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
67945
67946 2005-10-19  Simon Josefsson  <jas@extundo.com>
67947
67948         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
67949         interface too.
67950
67951 2005-10-19  Simon Josefsson  <jas@extundo.com>
67952
67953         * tests/test-gc-arcfour.c: New file.
67954
67955         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
67956
67957 2005-10-19  Simon Josefsson  <jas@extundo.com>
67958
67959         * modules/gc-md4, modules/gc-md4-tests: New file.
67960
67961         * tests/test-gc-md4.c: New file.
67962
67963 2005-10-19  Simon Josefsson  <jas@extundo.com>
67964
67965         * m4/gc-md4.m4: New file.
67966
67967 2005-10-19  Simon Josefsson  <jas@extundo.com>
67968
67969         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
67970         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
67971         <kasal@ucw.cz>.
67972
67973 2005-10-19  Simon Josefsson  <jas@extundo.com>
67974
67975         * m4/gc-arcfour.m4: New file.
67976
67977         * m4/gc-rijndael.m4: New file.
67978
67979 2005-10-19  Simon Josefsson  <jas@extundo.com>
67980
67981         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
67982
67983 2005-10-19  Simon Josefsson  <jas@extundo.com>
67984
67985         * lib/gc-gnulib.c: Support ARCFOUR.
67986
67987 2005-10-19  Simon Josefsson  <jas@extundo.com>
67988
67989         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
67990         support.
67991
67992         * lib/gc.h: Add ECB enum type.
67993
67994         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
67995
67996 2005-10-18  Simon Josefsson  <jas@extundo.com>
67997
67998         * tests/test-md5.c: New file.
67999
68000         * modules/md5-tests: New file.
68001
68002 2005-10-18  Simon Josefsson  <jas@extundo.com>
68003
68004         * tests/test-md4.c: New file.
68005
68006         * modules/md4, modules/md4-tests: New files.
68007
68008 2005-10-18  Simon Josefsson  <jas@extundo.com>
68009
68010         * m4/md4.m4: New file.
68011
68012 2005-10-18  Simon Josefsson  <jas@extundo.com>
68013
68014         * lib/md4.h, lib/md4.c: New files, based on md5.?.
68015
68016 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
68017
68018         * gnulib-tool (func_create_testdir): Omit the second check whether
68019         BUILT_SOURCES in nonempty.
68020
68021 2005-10-17  Simon Josefsson  <jas@extundo.com>
68022
68023         * tests/test-rijndael.c: New file.
68024
68025 2005-10-17  Simon Josefsson  <jas@extundo.com>
68026
68027         * modules/sha1: Depend on stdint instead of md5.
68028
68029         * modules/md5: Depend on stdint, remove uint32_t.
68030
68031 2005-10-17  Simon Josefsson  <jas@extundo.com>
68032
68033         * modules/gc-sha1-tests: New file.
68034
68035         * tests/test-gc-sha1.c: New file.
68036
68037 2005-10-17  Simon Josefsson  <jas@extundo.com>
68038
68039         * m4/md5.m4: Remove call to uint32_t.m4.
68040
68041 2005-10-17  Simon Josefsson  <jas@extundo.com>
68042
68043         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
68044
68045         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
68046         md5.h.
68047
68048         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
68049
68050         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
68051
68052 2005-10-17  Simon Josefsson  <jas@extundo.com>
68053
68054         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
68055
68056 2005-10-17  Simon Josefsson  <jas@extundo.com>
68057
68058         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
68059
68060 2005-10-17  Simon Josefsson  <jas@extundo.com>
68061
68062         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
68063
68064         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
68065
68066 2005-10-17  Bruno Haible  <bruno@clisp.org>
68067
68068         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
68069         that it can also be used in a test.
68070
68071 2005-10-16  Bruno Haible  <bruno@clisp.org>
68072
68073         * gnulib-tool (func_emit_tests_Makefile_am): Also define
68074         TESTS_ENVIRONMENT, so that individual tests can augment it.
68075
68076         * gnulib-tool (func_create_testdir): Use an intermediate target for
68077         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
68078         macros, like $(ALLOCA_H), which cannot be passed through the command
68079         line.
68080
68081 2005-10-15  Simon Josefsson  <jas@extundo.com>
68082
68083         * modules/rijndael-tests: New file.
68084
68085         * modules/rijndael: New file.
68086
68087 2005-10-15  Simon Josefsson  <jas@extundo.com>
68088
68089         * m4/rijndael.m4: New file.
68090
68091 2005-10-15  Simon Josefsson  <jas@extundo.com>
68092
68093         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
68094
68095         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
68096
68097 2005-10-14  Simon Josefsson  <jas@extundo.com>
68098
68099         * tests/test-arcfour.c: New file.
68100
68101         * modules/arcfour, modules/arcfour-tests: New files.
68102
68103 2005-10-14  Simon Josefsson  <jas@extundo.com>
68104
68105         * m4/arcfour.m4: New file.
68106
68107 2005-10-14  Simon Josefsson  <jas@extundo.com>
68108
68109         * lib/arcfour.h, lib/arcfour.c: New files.
68110
68111 2005-10-14  Roland McGrath  <roland@redhat.com>
68112
68113         Import from libc.  [BZ #1331]
68114         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
68115         macro argument.
68116         Reported by Matej Vela <vela@debian.org>.
68117
68118 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68119
68120         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
68121         include <wchar.h>; no longer needed.
68122
68123 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68124
68125         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
68126
68127 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
68128         and  Ulrich Drepper  <drepper@redhat.com>
68129
68130         Import from libc.
68131         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
68132         instead of inline stream orientation test and two separate
68133         function calls.  Pay no attention to USE_IN_LIBIO.
68134
68135 2005-10-13  Simon Josefsson  <jas@extundo.com>
68136
68137         * modules/gc-hmac-md5-tests: New file.
68138
68139         * tests/test-gc-hmac-sha1.c: New file.
68140
68141         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
68142
68143         * modules/gc-hmac-md5-tests: New file.
68144
68145         * tests/test-gc-md5.c: New file.
68146
68147         * modules/gc-md5-tests: New file.
68148
68149 2005-10-13  Simon Josefsson  <jas@extundo.com>
68150
68151         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
68152         Move memory allocation outside of loop.
68153
68154 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
68155
68156         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
68157         intermediate directory is in a read-only file system.  Problem
68158         reported by Eric Blake.
68159
68160 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
68161
68162         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
68163
68164 2005-10-12  Simon Josefsson  <jas@extundo.com>
68165
68166         * tests/test-hmac-sha1.c: New file.
68167
68168         * modules/hmac-sha1-tests: New file.
68169
68170         * modules/hmac-sha1: New file.
68171
68172 2005-10-12  Simon Josefsson  <jas@extundo.com>
68173
68174         * modules/gc-sha1: New file.
68175
68176 2005-10-12  Simon Josefsson  <jas@extundo.com>
68177
68178         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
68179
68180         * tests/test-gc-pbkdf2-sha1.c: New file.
68181
68182 2005-10-12  Simon Josefsson  <jas@extundo.com>
68183
68184         * modules/gc-md5, modules/gc-hmac-md5: New files.
68185
68186         * modules/gc (Files): Remove md5, memxor and hmac files.
68187
68188 2005-10-12  Simon Josefsson  <jas@extundo.com>
68189
68190         * m4/gc-pbkdf2-sha1.m4: New file.
68191
68192         * m4/gc-hmac-sha1.m4: New file.
68193
68194         * m4/gc-sha1: New file.
68195
68196         * m4/hmac-sha1.m4: New file.
68197
68198 2005-10-12  Simon Josefsson  <jas@extundo.com>
68199
68200         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
68201
68202         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
68203
68204 2005-10-12  Simon Josefsson  <jas@extundo.com>
68205
68206         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
68207         suggested by Bruno Haible <bruno@clisp.org>.
68208
68209 2005-10-12  Simon Josefsson  <jas@extundo.com>
68210
68211         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
68212
68213 2005-10-12  Simon Josefsson  <jas@extundo.com>
68214
68215         * lib/gc-pbkdf2-sha1.c: New file.
68216
68217         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
68218
68219 2005-10-12  Simon Josefsson  <jas@extundo.com>
68220
68221         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
68222
68223         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
68224
68225 2005-10-12  Simon Josefsson  <jas@extundo.com>
68226
68227         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
68228         GC_USE_HMAC_MD5, respectively.
68229
68230         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
68231         (gc_md5): Fix typo.
68232
68233         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
68234
68235         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
68236
68237         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
68238
68239 2005-10-12  Bruno Haible  <bruno@clisp.org>
68240
68241         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
68242         Reported by Stepan Kasal <kasal@ucw.cz>.
68243
68244 2005-10-11  Simon Josefsson  <jas@extundo.com>
68245
68246         * tests/test-crc.c: New file.
68247
68248         * modules/crc, modules/crc-tests: New files.
68249
68250 2005-10-11  Simon Josefsson  <jas@extundo.com>
68251
68252         * m4/crc.m4: New file.
68253
68254 2005-10-11  Simon Josefsson  <jas@extundo.com>
68255
68256         * lib/gc.h: Add gc_hash and gc_hash_buffer.
68257
68258         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
68259
68260         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
68261
68262 2005-10-11  Simon Josefsson  <jas@extundo.com>
68263
68264         * lib/crc.h, lib/crc.c: New files.
68265
68266         * lib/gc.h (gc_hash_buffer): Add doc.
68267
68268 2005-10-11  Bruno Haible  <bruno@clisp.org>
68269
68270         * modules/c-strcasestr: New file.
68271         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
68272
68273 2005-10-11  Bruno Haible  <bruno@clisp.org>
68274
68275         * modules/c-strcase: New file.
68276         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
68277
68278 2005-10-11  Bruno Haible  <bruno@clisp.org>
68279
68280         * lib/strcasecmp.c: Include limits.h.
68281         (strcasecmp): Avoid integer overflow on exotic platforms.
68282         * lib/strncasecmp.c: Include limits.h.
68283         (strncasecmp): Avoid integer overflow on exotic platforms.
68284         Reported by Paul Eggert.
68285
68286 2005-10-11  Bruno Haible  <bruno@clisp.org>
68287
68288         * lib/c-strcasestr.h: New file, from GNU gettext.
68289         * lib/c-strcasestr.c: New file, from GNU gettext.
68290
68291 2005-10-11  Bruno Haible  <bruno@clisp.org>
68292
68293         * lib/c-strcase.h: New file, from GNU gettext.
68294         * lib/c-strcasecmp.c: New file, from GNU gettext.
68295         * lib/c-strncasecmp.c: New file, from GNU gettext.
68296
68297 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68298
68299         * modules/mempcpy (License): GPL -> LGPL.
68300         * modules/strchrnul (License): Likewise.
68301         * modules/sysexits (License): Likewise.
68302
68303 2005-10-08  Simon Josefsson  <jas@extundo.com>
68304
68305         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
68306
68307 2005-10-07  Simon Josefsson  <jas@extundo.com>
68308
68309         * m4/memxor.m4: Remove gl_C_RESTRICT call.
68310
68311 2005-10-06  Simon Josefsson  <jas@extundo.com>
68312
68313         * tests/test-hmac-md5.c: New file.
68314
68315         * modules/hmac-md5-tests: New file.
68316
68317         * modules/hmac-md5: New file.
68318
68319 2005-10-06  Simon Josefsson  <jas@extundo.com>
68320
68321         * m4/hmac-md5.m4: New file.
68322
68323         * m4/memxor.m4: Require gl_C_RESTRICT.
68324
68325 2005-10-06  Simon Josefsson  <jas@extundo.com>
68326
68327         * lib/memxor.c (memxor): Avoid casts and warnings.
68328
68329 2005-10-06  Simon Josefsson  <jas@extundo.com>
68330
68331         * lib/hmac-md5.c: New file.
68332
68333         * lib/hmac.h: New file.
68334
68335 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68336
68337         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
68338         promotes to int, not unsigned int, to catch the AIX 5.3
68339         compiler bug.
68340
68341 2005-10-05  Simon Josefsson  <jas@extundo.com>
68342
68343         * modules/memxor: New file.
68344
68345         * modules/iconv (Files): Move config.rpath to havelib, it is used
68346         there.
68347
68348         * modules/havelib (Files): Add config.rpath.
68349
68350 2005-10-05  Simon Josefsson  <jas@extundo.com>
68351
68352         * m4/memxor.m4: New file.
68353
68354 2005-10-05  Simon Josefsson  <jas@extundo.com>
68355
68356         * lib/memxor.c (memxor): Fix compiler error.
68357
68358         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
68359         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
68360
68361         * lib/memxor.h, lib/memxor.c: New files.
68362
68363         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
68364         we assume all systems have it, suggested by Jim Meyering
68365         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
68366         any systems lack sys/socket.h; mingw32 is known to lack it, but we
68367         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
68368         same reasons.
68369
68370 2005-10-05  Simon Josefsson  <jas@extundo.com>
68371
68372         * config/srclist.txt: Add glibc bug 1423 for md5.h.
68373
68374 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68375
68376         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
68377         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
68378         needed, since the source code now assumes these .h files.
68379
68380 2005-10-05  Derek Price  <derek@ximbiot.com>
68381
68382         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
68383
68384 2005-10-05  Bruno Haible  <bruno@clisp.org>
68385
68386         * modules/stdint (License): Change to LGPL.
68387
68388 2005-10-04  Simon Josefsson  <jas@extundo.com>
68389
68390         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
68391         D. Baushke" <mdb@gnu.org>.
68392
68393 2005-10-04  Bruno Haible  <bruno@clisp.org>
68394
68395         * lib/verify.h (verify_true): Provide alternative definition for C++.
68396
68397 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
68398
68399         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
68400         (SSIZE_MAX): New macro, if not already defined.
68401         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
68402         than 2 GiB.
68403
68404 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68405
68406         Sync from coreutils.
68407         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
68408         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
68409         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
68410         ULLONG_MAX doesn't work with 2.7.2.1.
68411
68412 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68413
68414         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
68415         From Ben Pfaff.
68416
68417         * modules/exclude (Depends-on): Depend on verify.
68418         * modules/strtoimax (Depends-on): Likewise.
68419         * modules/utimecmp (Depends-on): Likewise.
68420
68421 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
68422
68423         * lib/exclude.c: Include verify.h.
68424         (verify): Remove.  All callers changed to use verify.h's version.
68425         * lib/strtoimax.c: Likewise.
68426         * lib/utimecmp.c: Likewis.e
68427
68428         Sync from coreutils.
68429         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
68430         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
68431         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
68432         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
68433         bother returning ENOSYS if settimeofday or stime fails; just let
68434         them return whatever errno they want to return.
68435         * lib/utimens.c: Include unistd.h, for dup2.
68436         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
68437         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
68438
68439 2005-10-02  Jim Meyering  <jim@meyering.net>
68440
68441         Sync from coreutils.
68442         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
68443         from glibc-2.2.5 that fails for read-only files.
68444
68445 2005-10-02  Jim Meyering  <jim@meyering.net>
68446
68447         Sync from coreutils.
68448         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
68449         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
68450         `#if HAVE_CONFIG_H'.
68451         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
68452         Remove AT_FDCWD test.
68453         Do not consume the fd unless successful.
68454         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
68455         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
68456         block, so that we don't even try to compile it if settimeofday is
68457         available.  This works around a compilation failure on OSF1 V5.1,
68458         due to stime requiring a `long int*' while tv_sec is `int'.
68459
68460 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
68461
68462         Sync from coreutils.
68463         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
68464         against `yes', rather than just testing for nonempty.
68465
68466 2005-10-01  Simon Josefsson  <jas@extundo.com>
68467
68468         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
68469         and Darwin.
68470
68471         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
68472         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
68473         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
68474         freeaddrinfo and gai_strerror are declared by the POSIX headers.
68475         Check if struct addrinfo is declared.
68476
68477 2005-10-01  Simon Josefsson  <jas@extundo.com>
68478
68479         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
68480         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
68481         AI_* and EAI_* definitions.  Protect function declarations.
68482
68483 2005-10-01  Jim Meyering  <jim@meyering.net>
68484
68485         Sync from coreutils.
68486
68487         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
68488         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
68489         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
68490         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68491         in the inet and nsl libraries.  Required on Solaris 5.7.
68492
68493 2005-10-01  Jim Meyering  <jim@meyering.net>
68494
68495         Sync from coreutils.
68496         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
68497         in the inet and nsl libraries.  Required on Solaris 5.7.
68498
68499 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
68500
68501         * lib/getdelim.c (getdelim): Remove unused variables.
68502
68503 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68504
68505         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
68506         so that the code works even with ancient cpp.  Portability problem
68507         with GCC 2.7.2.1 reported by Thomas M.Ott.
68508
68509 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68510
68511         * modules/regex (Depends-on): Add strcase.
68512
68513         * modules/gethostname (Licence): Change from GPL to LGPL, since
68514         gethostname.c is a trivial implementation of a standard library
68515         function.
68516         * modules/poll (License): Change from GPL to LGPL, since it's
68517         derived from LGPL code.
68518
68519 2005-09-27  Jim Meyering  <jim@meyering.net>
68520
68521         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
68522         HAVE_CONFIG_H.
68523
68524         * lib/intprops.h (signed_type_or_expr__): Define.
68525         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
68526         for unsigned types.
68527
68528 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68529
68530         * lib/verify.h (verify_expr): Remove, replacing with:
68531         (verify_true): New macro that returns true instead of void.
68532         (verify_type__): Remove.
68533         (verify): Use verify_true rather than verify_type__.
68534
68535 2005-09-26  Bruno Haible  <bruno@clisp.org>
68536
68537         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
68538         is necessary.
68539         (lib_SOURCES): Remove mbchar.c.
68540         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
68541         (Files): Add m4/mbrtowc.m4.
68542         * modules/mbiter: Likewise.
68543         * modules/mbuiter: Likewise.
68544
68545 2005-09-26  Bruno Haible  <bruno@clisp.org>
68546
68547         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
68548         compile mbchar.c if they are not both present.
68549         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
68550         * m4/mbiter.m4 (gl_MBITER): Likewise.
68551         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
68552         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
68553         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
68554
68555 2005-09-25  Jim Meyering  <jim@meyering.net>
68556
68557         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
68558         also uses socklen_t.
68559
68560 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
68561
68562         * lib/utimens.c (ENOSYS): Define if not already defined.
68563         (futimens): Support having a null PATH if the file descriptor
68564         is nonnegative.
68565
68566         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
68567         Remove.
68568         (__attribute): Define to empty unless GCC 3.1 or later.
68569         This works around a core dump on OpenBSD 3.4, which has GCC
68570         2.95.3, which dumps core when given __attribute__(()).  It also
68571         simplifies other tests, since we really don't want to bother with
68572         worrying about which ancient version of GCC supported what.
68573         Original problem reported by Yoann Vandoorselaere, with part of
68574         the fix suggested by Derek Price.
68575
68576 2005-09-24  Jim Meyering  <jim@meyering.net>
68577
68578         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
68579         so we can once again use a positive bitfield width of 1 -- now we
68580         don't have to explain why we were using a bitfield width of 2.
68581
68582 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68583
68584         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
68585         and similarly for the other external symbols.  Problem reported
68586         by James Gallager.
68587
68588         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
68589         bug reported by Jim Meyering.
68590
68591         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
68592         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
68593         not needed, since socklen is a prerequisite module.
68594
68595 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
68596
68597         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
68598         Problem reported by Eric Blake.
68599         (getaddrinfo): Initialize se so that it's not garbage.
68600         Redo internal storage allocation so that it doesn't make unportable
68601         assumptions about alignment.
68602         Fix a memory leak.
68603
68604         * lib/utimens.c (futimens): Use futimesat if available.
68605         Prefer it to futimes since it doesn't have the futimes bug.
68606
68607         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
68608         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
68609         Instead, declare a function that returns a pointer to an array,
68610         and use verify_type__ to declare the size of the array.
68611         Problem and germ of a solution reported by Bruno Haible.
68612         (verify_type__): Use 2, not 1, for bitfield size, to avoid
68613         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
68614
68615 2005-09-23  Jim Meyering  <jim@meyering.net>
68616
68617         Sync from coreutils.
68618         Correct build failure (socklen_t not defined) on at least
68619         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
68620         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
68621
68622 2005-09-23  Jim Meyering  <jim@meyering.net>
68623
68624         * modules/getaddrinfo (Depends-on): Add socklen.
68625
68626 2005-09-23  Bruno Haible  <bruno@clisp.org>
68627
68628         * tests/test-verify.c: New file.
68629
68630 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68631
68632         Sync from coreutils.
68633
68634         * modules/argmatch (Depends-on): Add verify.
68635         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
68636         unistd-safer.
68637         * modules/save-cwd (Depends-on): Likewise.
68638
68639         * modules/openat (Files): Add lib/openat-die.c.
68640         (Depends-on): Remove error, exitfail.
68641         Add dirname.
68642
68643         * modules/verify: New file.
68644         * MODULES.html.sh (Diagnostics <assert.h>): New section,
68645         with "verify" module.
68646
68647 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68648
68649         Sync from coreutils.
68650
68651         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
68652         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
68653         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
68654         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
68655         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
68656         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
68657         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
68658         Don't bother checking for string.h, stdlib.h, unistd.h.
68659         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
68660         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
68661         module's job.
68662         * m4/jm-macros.m4 (gl_MACROS): Likewise.
68663         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
68664
68665         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
68666         (gl_GETDATE): Use it.
68667
68668         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
68669
68670 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68671
68672         Sync from coreutils.
68673
68674         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
68675         stat-time.h.
68676         * lib/argmatch.h: Include verify.h
68677         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
68678         (ARGMATCH_ASSERT): Remove; unused.
68679         * lib/canonicalize.c: Assume STDC_HEADERS.
68680         * lib/exclude.c: Include "strcase.h".
68681         * lib/regex_internal.h [!defined _LIBC]: Likewise.
68682         * lib/getusershell.c: Include stdio--.h rather than stdio.h
68683         and stdio-safer.h.
68684         (getusershell): Call fopen, not fopen_safer.
68685         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
68686         Do not include unistd-safer.h.
68687         (save_cwd): Don't call fd_safer; no longer needed
68688         now that we include fcntl--.h.
68689
68690         * lib/getdate.y (relative_time): New type.
68691         (RELATIVE_TIME_0): New constant.
68692         (parser_control): Use relative_time instead of doing it ourselves.
68693         (%union): Add new relative_time rel member.
68694         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
68695         Now typeless.
68696         (relunit, relunit_snumber): Now of type rel.
68697         (zone, rel, relunit, get_date): Adjust to above changes.
68698
68699         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
68700         Do not include unistd-safer.h.
68701         (getloadavg): Don't call fd_safer; no longer needed
68702         now that we include fcntl--.h.
68703
68704         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
68705         (make_dir_parents): Treat ENOSYS like EEXIST.
68706
68707         Improve quality of diagnostics on restore_cwd failure.
68708         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
68709         (make_dir_parents): Last arg is now int * (for errno), not bool *.
68710         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
68711         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
68712         each time through the loop.  Do not diagnose restore_cwd failure;
68713         that is the caller's job (and perhaps the caller does not care).
68714
68715         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
68716         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
68717         If the file already exists but is not a directory, don't bother
68718         to try to make its parents.
68719         Close potential file descriptor leak if we can't chdir("/") (!).
68720         Don't always return true if chdir($PWD) fails; return true only
68721         if the requested action was done successfully (except for the
68722         chdir($PWD)).
68723         Don't log final directory unless we actually made it.
68724         Refactor to avoid duplicate code to fix up permissions.
68725         Don't attempt to fix up parent permissions if chdir($PWD) fails.
68726
68727         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
68728         to make it a bit faster and (I hope) clearer.
68729         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
68730         Fix bug in formats like %2N.
68731
68732         * lib/verify.h: New file.
68733
68734 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68735
68736         Sync from coreutils.
68737         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
68738
68739 2005-09-22  Jim Meyering  <jim@meyering.net>
68740
68741         Sync from coreutils.
68742
68743         * m4/lstat.m4 (gl_FUNC_LSTAT):
68744         Use AC_LIBSOURCES to require lstat.c and lstat.h.
68745         Remove obsolete comment.
68746         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
68747         * m4/xstrtod.m4: Likewise.
68748
68749         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
68750
68751 2005-09-22  Jim Meyering  <jim@meyering.net>
68752
68753         Sync from coreutils.
68754
68755         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
68756
68757         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
68758         the .tm_year member, since otherwise gcc-4.0 would now warn about
68759         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
68760
68761         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
68762         order to avoid an unsuppressible warning from gcc on 64-bit systems.
68763
68764         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
68765         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
68766         when run in a time zone for which daylight savings time is in effect
68767         for the starting date.
68768
68769         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
68770         stop us from restricting permissions of just-created absolute-named
68771         directories.
68772         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
68773         to restore initial working directory.
68774         * lib/mkdir-p.c (make_dir_parents): New parameter:
68775         different_working_dir, to tell caller if/when we change the working
68776         directory and are unable to return to the initial one.
68777         * lib/mkdir-p.h (make_dir_parents): Update prototype.
68778         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
68779         `return false'.  This fixes a bug introduced on 2004-07-30.
68780
68781         * lib/openat.c (fdopendir): Be sure to close the supplied
68782         file descriptor before returning.  This makes our replacement
68783         implementation a little closer to Solaris's, where fdopendir
68784         ties the file descriptor to the returned DIR* pointer.
68785         * lib/openat.c (unlinkat): New function.
68786         * lib/openat.h (unlinkat): Add prototype.
68787         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
68788         (openat_restore_fail): Rename from openat_restore_die.
68789         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
68790
68791         Provide an alternative to exiting immediately upon save_cwd or
68792         restore_cwd failure.  Now, an application can arrange e.g.,
68793         to perform a longjump in that case.
68794         * lib/openat.c: Include dirname.h.
68795         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
68796         (rpl_openat, fdopendir, fstatat): Call openat_save_die
68797         and openat_restore_die rather than calling error directly.
68798         Don't include "error.h" or "exitfail.h"; they're no longer needed.
68799
68800         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
68801         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
68802         define.
68803
68804         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
68805         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
68806                             int utc, int nanoseconds);
68807         Background:
68808         date should not have to allocate a megabyte of virtual memory to
68809         handle a format argument like +%1048575T.  When implemented with
68810         strftime, it must allocate such a buffer, use strftime to fill it
68811         in, print it, then free it.
68812         With fprintftime, it simply prints everything and exits.
68813         With no need for memory allocation, that's one fewer way to fail.
68814         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
68815         optional field width, not before, so we accept %9:z, not %:9z.
68816         (my_strftime): Be sure to use L_('x') for literals.
68817
68818         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
68819         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
68820         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
68821         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
68822         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
68823         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
68824         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
68825         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
68826         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
68827         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
68828         * lib/xgethostname.c, lib/xreadlink.c:
68829         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
68830
68831         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
68832         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
68833         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
68834         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68835         and don't include <sys/file.h>).
68836
68837 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
68838
68839         Sync from coreutils.
68840
68841         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
68842         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
68843         [!LDAV_DONE]: Avoid unused variable warning.
68844
68845 2005-09-21  Bruno Haible  <bruno@clisp.org>
68846
68847         * lib/unicodeio.h (unicode_to_mb): New declaration.
68848
68849 2005-09-20  Derek Price  <derek@ximbiot.com>
68850
68851         * lib/getaddrinfo.c: Don't include <netdb.h> included from
68852         getaddrinfo.h.
68853
68854 2005-09-20  Bruno Haible  <bruno@clisp.org>
68855
68856         * gnulib-tool: Remove trailing slashes from the values specified for
68857         --source-base, --m4-base, --tests-base, --aux-dir.
68858         Suggested by Simon Josefsson <jas@extundo.com>.
68859
68860 2005-09-20  Bruno Haible  <bruno@clisp.org>
68861
68862         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
68863         func_modules_to_filelist, func_import, func_create_testdir): Make all
68864         sorting results locale-independent, so that gnulib-cache.m4 doesn't
68865         change when gnulib-tool is invoked in a different locale.
68866
68867 2005-09-19  Simon Josefsson  <jas@extundo.com>
68868
68869         * m4/socklen.m4: Fix typo.
68870
68871 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68872
68873         Use a consistent style for including <config.h>.
68874         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
68875         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
68876         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
68877         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
68878         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
68879         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
68880         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
68881         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
68882         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
68883         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
68884         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
68885         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
68886         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
68887         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
68888         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
68889         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
68890         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
68891         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
68892         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
68893         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
68894         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
68895         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
68896         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
68897         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
68898         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
68899         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
68900         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
68901         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
68902         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
68903         lib/xstrtoumax.c, lib/yesno.c:
68904         Standardize inclusion of config.h.
68905         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
68906         lib/inttostr.h:  Removed inclusion of config.h from header files.
68907         * lib/inttostr.c:  Adjusted in-tree users.
68908         * lib/timespec.h: Remove superfluous warning to include config.h.
68909         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
68910         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
68911         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
68912         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
68913         config.h with HAVE_CONFIG_H.
68914
68915 2005-09-19  Jim Meyering  <jim@meyering.net>
68916
68917         * modules/pathmax (License): Change to LGPL.
68918
68919 2005-09-19  Derek Price  <derek@ximbiot.com>
68920
68921         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
68922
68923 2005-09-19  Bruno Haible  <bruno@clisp.org>
68924
68925         * gnulib-tool (import): Provide default for --tests-base.
68926
68927 2005-09-19  Bruno Haible  <bruno@clisp.org>
68928
68929         * doc/quote.texi: New file, extracted from gnulib.texi.
68930         * doc/ctime.texi: New file, extracted from gnulib.texi.
68931         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
68932         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
68933         * doc/gnulib.texi: Include them.
68934
68935 2005-09-18  Bruno Haible  <bruno@clisp.org>
68936
68937         Portability fix.
68938         * gnulib-tool (func_readlink): New function.
68939         (func_ln_if_changed): Use it.
68940
68941 2005-09-18  Bruno Haible  <bruno@clisp.org>
68942
68943         * gnulib-tool: Support --with-tests also with --import.
68944         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
68945         (func_import): Use variables $testsbase and $inctests. Emit a
68946         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
68947         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
68948         SUBDIRS += $testsdir.
68949         (func_create_testdir): Update.
68950
68951 2005-09-18  Bruno Haible  <bruno@clisp.org>
68952
68953         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
68954         instead of $dry_run.
68955         (func_cp_if_changed, func_mv_if_changed): Remove functions.
68956         (func_ln_if_changed): Don't handle dry-run here.
68957         (func_import): In dry-run mode, detect more precisely which actions
68958         would be performed, and don't use "...ing" verbs.
68959
68960 2005-09-18  Bruno Haible  <bruno@clisp.org>
68961
68962         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
68963         (func_import): Use join on two temporary files instead of three nested
68964         loops, in order to determine which files are new or old.
68965
68966 2005-09-18  Bruno Haible  <bruno@clisp.org>
68967
68968         * gnulib-tool (func_import): Comment out code that spits out the
68969         new files with --dry-run.
68970
68971 2005-09-18  Bruno Haible  <bruno@clisp.org>
68972
68973         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
68974
68975 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68976
68977         * lib/stat-time.h: New file.
68978         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
68979         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
68980         in a different way.
68981         (timespec_cmp): New function.
68982         * lib/utimecmp.c: Include stat-time.h.
68983         (SYSCALL_RESOLUTION): Depend on whether various struct stat
68984         members exist, not on the obsolescent ST_MTIM_NSEC.
68985         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
68986
68987 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68988
68989         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
68990
68991 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68992
68993         * MODULES.html.sh (File system functions): Add stat-time.
68994         * modules/stat-time: New file.
68995         * modules/timespec (Files): Remove m4/st_mtim.m4; this
68996         is now done in a different way, by the stat-time module.
68997         * modules/utimecmp (Depends-on): Add stat-time.
68998
68999 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69000
69001         * m4/st_mtim.m4: Remove.  Superseded by...
69002         * m4/stat-time.m4: New file.
69003         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
69004         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
69005
69006 2005-09-15  Derek Price  <derek@ximbiot.com>
69007
69008         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
69009
69010 2005-09-15  Derek Price  <derek@ximbiot.com>
69011
69012         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
69013         * lib/regex_internal.c: Ditto, using this...
69014         (__GNUC_PREREQ): ...new macro.
69015         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
69016         using...
69017         (__GNUC_PREREQ): ...this new macro.
69018
69019         * lib/strstr.h: Include string.h. Define strstr as a macro here.
69020
69021 2005-09-15  Derek Price  <derek@ximbiot.com>
69022             Paul Eggert  <eggert@cs.ucla.edu>
69023
69024         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
69025         changes, consolidating in...
69026         * lib/regex_internal.h: ...this file.
69027
69028 2005-09-13  Jim Meyering  <jim@meyering.net>
69029
69030         * lib/canon-host.c: Filter through gnu indent and reword comments
69031         slightly.
69032         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
69033
69034 2005-09-13  Derek Price  <derek@ximbiot.com>
69035
69036         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
69037         failure.
69038         Reported by Jim Meyering  <jim@meyering.net>.
69039
69040 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69041
69042         * lib/base64.c: Typo.
69043         (base64_encode): Put b64str in initialized data section.
69044
69045 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
69046
69047         Merge glibc and coreutils changes into gnulib, plus a few
69048         extra fixes.
69049         * lib/md5.c: Use #error rather than a string.
69050         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
69051         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
69052         (__attribute__): Define to empty for non recent-GCC.
69053         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
69054         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
69055         Renamed from their non-__ counterparts, with new macros replacing
69056         them if not _LIBC.  Add __THROW attribute.
69057         (rol): Remove.
69058         (struct md5_ctx): Align buffer if using GCC.
69059         * lib/sha1.h (struct sha1_ctx): Likewise.
69060         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
69061         The old name was backwards.
69062         (NOTSWAP): Remove; not used.
69063         (rol): New macro, moved here from md5.h.
69064         (sha1_process_block): Remove a FIXME that doesn't make sense.
69065
69066 2005-09-12  Derek Price  <derek@ximbiot.com>
69067
69068         Return usable errors from canon-host.
69069         * lib/canon-host.h: New file.
69070         * lib/canon-host.c (canon_host): Wrap...
69071         (canon_host_r): ...this new function, which now relies exclusively on
69072         getaddrinfo.
69073         (ch_strerror): New function.
69074         (last_cherror): New global.
69075         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
69076         interface.
69077         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
69078         void *.
69079         (freeaddrinfo): Free ai->ai_canonname when set.
69080
69081 2005-09-12  Derek Price  <derek@ximbiot.com>
69082
69083         Make canon-host require getaddrinfo.
69084         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
69085         AC_LIBSOURCE canon-host.h.  Call...
69086         (gl_PREREQ_CANON_HOST): ...this new function, which requires
69087         gl_GETADDRINFO.
69088         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
69089
69090 2005-09-12  Derek Price  <derek@ximbiot.com>
69091
69092         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
69093         LGPL.
69094         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
69095
69096 2005-09-12  Derek Price  <derek@ximbiot.com>
69097
69098         * lib/gai_strerror.c: Include config.h when available.  Include
69099         getaddrinfo.h before other headers to test interface.
69100         Reported by Larry Jones <lawrence.jones@ugs.com>.
69101
69102 2005-09-12  Derek Price  <derek@ximbiot.com>
69103             Paul Eggert  <eggert@cs.ucla.edu>
69104
69105         * modules/glob (Files): Add glob-libc.h.
69106
69107 2005-09-12  Derek Price  <derek@ximbiot.com>
69108             Paul Eggert  <eggert@cs.ucla.edu>
69109
69110         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
69111         glob_.h, glob-libc.h.
69112         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
69113
69114 2005-09-12  Derek Price  <derek@ximbiot.com>
69115             Paul Eggert  <eggert@cs.ucla.edu>
69116
69117         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
69118         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
69119         protecting things that should be done only in gnulib contexts.
69120         * lib/glob_.h: New file, containing only the glob things needed for
69121         gnulib.
69122         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
69123         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
69124         (glob, globfree, glob_pattern_p): Now defined simply in terms of
69125         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
69126         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
69127         and to respect the namespace rules better.
69128
69129 2005-09-08  Simon Josefsson  <jas@extundo.com>
69130
69131         * modules/socklen: New file.
69132
69133 2005-09-08  Simon Josefsson  <jas@extundo.com>
69134
69135         * m4/socklen.m4: New file.
69136
69137 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69138
69139         * modules/utimens (Files): Add m4/utimbuf.m4, since
69140         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
69141         Reported by Sergey Poznyakoff.
69142
69143 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69144
69145         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
69146         definitions, since that's the preferred style in glibc.
69147         Fix a minor spacing issue, and update copyright notice to match
69148         glibc's.
69149
69150 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69151
69152         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
69153
69154 2005-09-06  Simon Josefsson  <jas@extundo.com>
69155
69156         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
69157         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
69158
69159 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69160
69161         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
69162         warning.
69163
69164 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69165
69166         * config/srclist.txt: Add glibc bug 1302.
69167
69168 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
69169
69170         Change bitset word type from unsigned int to unsigned long int,
69171         as this has better performance on typical 64-bit hosts.
69172         Port bitset code to hosts with unusual word sizes.
69173         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
69174         (build_collating_symbol):
69175         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
69176         argument is a bitset.  This is merely a style issue, but it makes
69177         it clearer that an entire array is expected.
69178         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
69179         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
69180         Port to the case where bitset_word is not the same as unsigned int.
69181         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69182         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
69183         Likewise.
69184         * lib/regexec.c (check_dst_limits_calc_pos_1,
69185         check_subexp_matching_top):
69186         (build_trtable, group_nodes_into_DFAstates):
69187         Likewise.
69188         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
69189         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
69190         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
69191         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
69192         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
69193         * lib/regcomp.c (optimize_subexps, lower_subexp):
69194         Work even if bitset_word has holes in its bitwise representation.
69195         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
69196         * lib/regexec.c (check_dst_limits_calc_pos_1,
69197         check_subexp_matching_top):
69198         Likewise.
69199         * lib/regex_internal.c (re_string_reconstruct):
69200         Don't assume UCHAR_MAX == 255.
69201         * lib/regex_internal.h (bitset_set_all): Likewise.
69202         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
69203         All uses changed.
69204         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
69205         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
69206         All uses changed.
69207         (BITSET_WORD_MAX): New macro.
69208         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
69209         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
69210         (bitset_empty, bitset_copy):
69211         Prefer sizeof (bitset) to multiplying it out ourselves.
69212         (bitset_not_merge): Remove; unused.
69213         (bitset_contain): Return bool, not unsigned int with one bit on.
69214         All callers changed.
69215         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
69216         alignment than re_node_set; do this by defining a new internal
69217         type struct dests_alloc and using it to allocate memory.
69218
69219 2005-09-05  Bruno Haible  <bruno@clisp.org>
69220
69221         * gnulib-tool (func_import): Fix comparison in handling of symbolic
69222         links.
69223
69224 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
69225
69226         * modules/size_max (Makefile.am): Add size_max.h
69227
69228 2005-09-04  Derek Price  <derek@ximbiot.com>
69229
69230         * gnulib-tool (func_import): Fix reversed $symbolic logic.
69231
69232 2005-09-03  Simon Josefsson  <jas@extundo.com>
69233
69234         * gnulib-tool: Fix typo.
69235
69236 2005-09-03  Simon Josefsson  <jas@extundo.com>
69237
69238         * config/srclist.txt: Add glibc bug 1293.
69239
69240 2005-09-03  Derek Price  <derek@ximbiot.com>
69241
69242         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
69243         From Larry Jones <lawrence.jones@ugs.com>.
69244
69245 2005-09-02  Simon Josefsson  <jas@extundo.com>
69246
69247         * modules/socklen: New file.
69248
69249 2005-09-02  Simon Josefsson  <jas@extundo.com>
69250
69251         * modules/havelib: New module.
69252
69253         * modules/gettext, modules/iconv, modules/lock, modules/readline:
69254         Use havelib.
69255
69256 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69257
69258         Check for arithmetic overflow when calculating sizes, to prevent
69259         some buffer-overflow issues.  These patches are conservative, in the
69260         sense that when I couldn't determine whether an overflow was possible,
69261         I inserted a run-time check.
69262         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
69263         macros.
69264         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
69265         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
69266         (re_xnrealloc, re_x2nrealloc): New inline functions.
69267         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
69268         parse_bracket_exp):
69269         (build_equiv_class, build_charclass): Check for arithmetic overflow
69270         in size expression calculations.
69271         * lib/regex_internal.c (re_string_realloc_buffers):
69272         (build_wcs_upper_buffer, re_node_set_add_intersect):
69273         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
69274         (re_dfa_add_node, register_state): Likewise.
69275         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
69276         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
69277         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
69278         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
69279
69280 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
69281
69282         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69283         m4/ulonglong.m4.  Problem reported by Martin Lambers.
69284
69285 2005-09-02  Bruno Haible  <bruno@clisp.org>
69286
69287         Support for lib vs. lib64 distinction on biarch platforms.
69288         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
69289         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
69290         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
69291
69292 2005-09-02  Bruno Haible  <bruno@clisp.org>
69293
69294         * gnulib-tool (import): In the other first-use case, provide defaults
69295         as well.
69296
69297 2005-09-02  Bruno Haible  <bruno@clisp.org>
69298
69299         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
69300         patches not yet found in the latest gettext release.
69301
69302 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69303
69304         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
69305         to avoid a collision with bits/local_lim.h in glibc.
69306         All uses changed.  Problem reported by Dmitry V. Levin in
69307         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
69308
69309         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
69310         bugs in int versus size_t comparisons.
69311         (re_string_context_at): Fix bug where the code assumed that
69312         Idx is signed.
69313
69314         Use bool where appropriate.
69315         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
69316         All callers changed.
69317         (calc_eclosure_iter): Likewise, for ROOT arg.
69318         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
69319         (build_charclass_op): Likewise, for NON_MATCH arg.
69320         * lib/regex_internal.c (re_string_allocate, re_string_construct):
69321         (re_string_construct_common): Likewise, for ICASE arg.
69322         * lib/regexec.c (re_search_2_stub, re_search_stub):
69323         Likewise, for RET_LEN arg.
69324         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
69325         (set_regs): Likewise, for FL_BACKTRACK arg.
69326         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
69327         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
69328         (calc_eclosure_iter, parse_bracket_exp):
69329         Use bool for internal variables that are booleans.
69330         * lib/regexec.c (re_search_internal, check_matching,
69331         proceed_next_node):
69332         (set_regs, build_sifted_states, sift_states_bkref):
69333         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
69334         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69335         (find_collation_sequence_value):
69336         Likewise.
69337         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
69338         (re_node_set_compare):
69339         Return bool, not int. All callers changed.
69340         * lib/regexec.c (check_halt_node_context, check_dst_limits):
69341         (build_trtable, check_node_accept): Likewise.
69342         * lib/regex_internal.h: Include stdbool.h.
69343
69344         Fix bugs uncovered when converting to bool.
69345         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
69346         failure instead of charging ahead blindly.
69347         * lib/regex_internal.c (register_state): Likewise.
69348         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
69349         for freeing internal storage.
69350         (group_nodes_into_DFA_states): Use unsigned int, not int, for
69351         bitset pieces used as boolean, to avoid undefined behavior
69352         on hosts that do int overflow checking.
69353
69354 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69355
69356         * config/srclist.txt: Add glibc bugs 1285-1287.
69357
69358 2005-09-01  Jim Meyering  <jim@meyering.net>
69359
69360         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
69361         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
69362         Require gl_STAT_MACROS, too.
69363
69364 2005-09-01  Bruno Haible  <bruno@clisp.org>
69365
69366         * gnulib-tool (import): In the first-use case, provide defaults.
69367
69368 2005-09-01  Bruno Haible  <bruno@clisp.org>
69369
69370         * gnulib-tool (func_import): Remove the .tmp files.
69371
69372 2005-09-01  Bruno Haible  <bruno@clisp.org>
69373
69374         * gnulib-tool (func_import): Fix handling of symbolic links.
69375
69376 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69377
69378         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
69379         old glibc regex code mishandles strings longer than 2**31 bytes.
69380         This patch fixes this when the regex code is used in gnulib
69381         (i.e., outside glibc).
69382
69383         This patch should not affect the use of the regex code inside
69384         glibc.  No doubt this problem also needs to be handled for glibc
69385         as well, but the result will be an incompatible change to the
69386         glibc ABI, and the old ABI will have to be supported too.  That
69387         can be the the subject for another patch.
69388
69389         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
69390         governing whether the rest of this patch is active.  By default,
69391         the macro is disabled and the patch has no effect.
69392         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
69393         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
69394         (struct re_pattern_buffer, re_search, re_search_2, re_match):
69395         (re_match_2, re_set_registers): Use the new types.
69396         * lib/regex_internal.h (Idx, re_hashval_t): New types.
69397         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
69398         New macros.
69399         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
69400         (re_string_context_at, bin_tree_t, re_dfastate_t):
69401         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
69402         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
69403         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
69404         (re_string_char_size_at, re_string_wchar_at):
69405         (re_string_elem_size_at):
69406         Use the new types and macros to port to 64-bit hosts.
69407         Use unsigned types for internal values, so that the code
69408         mostly works even for arrays larger than SSIZE_MAX.
69409         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
69410         (search_duplicated_node, calc_eclosure_iter, fetch_number):
69411         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
69412         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
69413         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
69414         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
69415         (calc_inveclosure, parse_dup_op, build_range_exp):
69416         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
69417         (fetch_number, create_token_tree, mark_opt_subexp):
69418         Likewise.
69419         * lib/regex_internal.c (re_string_construct_common,
69420         create_ci_newstate):
69421         (create_cd_newstate, re_string_allocate, re_string_construct):
69422         (re_string_realloc_buffers, build_wcs_upper_buffer):
69423         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69424         (re_string_reconstruct, re_string_peek_byte_case):
69425         (re_string_fetch_byte_case, re_string_context_at):
69426         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69427         (re_node_set_init_copy, re_node_set_add_intersect):
69428         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69429         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69430         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69431         (re_acquire_state, re_acquire_state_context, register_state):
69432         Likewise.
69433         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
69434         search_cur_bkref_entry):
69435         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
69436         (re_search_internal, re_search_2_stub, re_search_stub)
69437         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
69438         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
69439         (update_cur_sifted_state, check_dst_limits):
69440         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69441         (check_subexp_limits, sift_states_bkref, merge_state_array):
69442         (check_subexp_matching_top, get_subexp, get_subexp_sub):
69443         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
69444         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69445         (expand_bkref_cache, check_node_accept_bytes):
69446         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
69447         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
69448         (acquire_init_state_context, check_halt_node_context):
69449         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
69450         (sift_states_backward, clean_state_log_if_needed):
69451         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
69452         (find_recover_state, transit_state_sb, transit_state_mb):
69453         (transit_state_bkref, build_trtable, match_ctx_clean):
69454         Likewise.
69455         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
69456         to work around an assumption that REG_MISSING is negative.
69457
69458         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
69459         (seek_collating_symbol_entry) [defined _LIBC]:
69460         (lookup_collation_sequence_value) [defined _LIBC]:
69461         (build_range_exp, build_collating_symbol) [defined _LIBC]:
69462         Use prototypes rather than old-style function definitions.
69463         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
69464         (transit_state_sb) [0]:
69465         (find_collation_sequence_value) [defined _LIBC]: Likewise.
69466
69467         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
69468         rm_eo.
69469
69470         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
69471         (optimize_subexps, lower_subexp):
69472         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
69473         since the signed shift might overflow.  Use 1u<<31 instead.
69474         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
69475         Likewise.
69476         * lib/regexec.c (check_dst_limits_calc_pos_1,
69477         check_subexp_matching_top): Likewise.
69478
69479         * lib/regcomp.c (optimize_subexps, lower_subexp):
69480         Use CHAR_BIT rather than 8, for clarity.
69481         * lib/regexec.c (check_dst_limits_calc_pos_1):
69482         (check_subexp_matching_top): Likewise.
69483         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
69484         have to worry about portability issues when shifting it left.
69485         Remove no-longer-needed test for table_size > 0.
69486         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
69487         in a word, as the resulting behavior is undefined.
69488         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
69489         in one case, a <= should have been an <, and in another case the
69490         whole test was missing.
69491         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
69492         the standard name CHAR_BIT.
69493         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
69494         this is not true on one's complement and signed-magnitude hosts.
69495
69496         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
69497         next_last_offset.
69498         (struct re_dfa_t): Remove unused member states_alloc.
69499         * lib/regcomp.c (init_dfa): Don't initialize unused members.
69500
69501 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69502
69503         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
69504         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
69505         and large-file glibc and in 32-bit large-file Solaris.
69506
69507 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69508
69509         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
69510         lengths fit in regoff_t; this isn't true if regoff_t is the same
69511         width as size_t.
69512         * lib/regex.c (re_search_internal): 5th arg is LAST_START
69513         (= START + RANGE) instead of RANGE.  This avoids overflow
69514         problems when regoff_t is the same width as size_t.
69515         All callers changed.
69516         (re_search_2_stub): Check for overflow when adding the
69517         sizes of the two strings.
69518         (re_search_stub): Check for overflow when adding START
69519         to RANGE; if it occurs, substitute the extreme value.
69520
69521 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69522
69523         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
69524
69525 2005-08-31  Jim Meyering  <jim@meyering.net>
69526
69527         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
69528         a pointer-to-const.
69529         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
69530         (register_state): Likewise.
69531         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
69532         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
69533         (group_nodes_into_DFAstates): Likewise.
69534
69535 2005-08-31  Jim Meyering  <jim@meyering.net>
69536
69537         * check-module: Add a FIXME comment.
69538
69539 2005-08-31  Eric Blake  <ebb9@byu.net>
69540
69541         * modules/unistd-safer (Files): Add unistd--.h.
69542         * modules/stdio-safer (Files): Add stdio--.h.
69543
69544 2005-08-31  Derek Price  <derek@ximbiot.com>
69545
69546         * lib/getdelim.c (getdelim): Return EOF on EOF.
69547         Reported by Larry Jones <lawrence.jones@ugs.com>.
69548
69549 2005-08-31  Bruno Haible  <bruno@clisp.org>
69550
69551         Avoid unnecessary diffs in the generated lib/Makefile.am.
69552         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
69553         the generated files.
69554         (func_import): Don't set cmd.
69555
69556 2005-08-31  Bruno Haible  <bruno@clisp.org>
69557
69558         * lib/strstr.c: Include <stddef.h>, for NULL.
69559         * lib/strcasestr.c: Likewise.
69560         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69561
69562 2005-08-31  Bruno Haible  <bruno@clisp.org>
69563
69564         * gnulib-tool: New option --macro-prefix.
69565         (func_import): Use macro_prefix.
69566         (import): Handle option --macro-prefix.
69567
69568 2005-08-31  Bruno Haible  <bruno@clisp.org>
69569
69570         * gnulib-tool (import): Rename most ac_* variables to cached_*.
69571         Also use new variables cached_lgpl, cached_libtool.
69572
69573 2005-08-31  Bruno Haible  <bruno@clisp.org>
69574
69575         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
69576         always instantiating them.
69577
69578 2005-08-31  Bruno Haible  <bruno@clisp.org>
69579
69580         * gnulib-tool (func_import): Read the previous cached settings
69581         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
69582         earlier added by gnulib but are now dropped. Warn when a gnulib file
69583         overwrites a non-gnulib file.
69584
69585 2005-08-31  Bruno Haible  <bruno@clisp.org>
69586
69587         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
69588         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
69589         projects that don't keep autogenerated files in CVS. Put into
69590         actioncmd only the specified modules, not the transitive closure.
69591
69592 2005-08-31  Bruno Haible  <bruno@clisp.org>
69593
69594         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
69595         Create directories that shall be filled.
69596         (import): Don't look for gl_* macros in configure.ac. Recurse across
69597         all directories containing a gnulib-cache.m4 files, if meaningful.
69598
69599 2005-08-31  Bruno Haible  <bruno@clisp.org>
69600
69601         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
69602         (import): Set seen_libtool when we see gl_LIBTOOL.
69603
69604 2005-08-31  Bruno Haible  <bruno@clisp.org>
69605
69606         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
69607         declaration macro definitions from generated gnulib.m4.
69608
69609 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
69610
69611         * lib/iconvme.h: Add prototype for iconv_alloc.
69612
69613 2005-08-29  Simon Josefsson  <jas@extundo.com>
69614
69615         * lib/iconvme.c: Fix errno.
69616
69617 2005-08-29  Bruno Haible  <bruno@clisp.org>
69618
69619         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
69620         that it works when the directory contains spaces.
69621
69622 2005-08-29  Bruno Haible  <bruno@clisp.org>
69623
69624         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
69625
69626 2005-08-29  Bruno Haible  <bruno@clisp.org>
69627
69628         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
69629         Emit more advice.
69630
69631 2005-08-29  Bruno Haible  <bruno@clisp.org>
69632         and Stepan Kasal  <kasal@ucw.cz>
69633
69634         * check-module: If more parameters are given, check each of them
69635         separately; add more exceptions, as noted by Jim Meyering.
69636         (check_module): New procedure.
69637         (%exempt_header): Now contains all exceptions.
69638
69639 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
69640
69641         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
69642
69643 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69644
69645         * lib/iconvme.c: Split iconv_string into iconv_alloc.
69646
69647 2005-08-28  Bruno Haible  <bruno@clisp.org>
69648
69649         * m4/gnulib-tool.m4: New file.
69650
69651 2005-08-27  Jim Meyering  <jim@meyering.net>
69652
69653         * modules/unistd-safer (Files): Add pipe-safer.c.
69654         * modules/fcntl-safer (Files): Add creat-safer.c.
69655
69656 2005-08-27  Jim Meyering  <jim@meyering.net>
69657
69658         * m4/stdlib-safer.m4: New file.  From coreutils.
69659         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
69660         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
69661         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
69662         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
69663         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
69664
69665 2005-08-27  Jim Meyering  <jim@meyering.net>
69666
69667         * lib/fopen-safer.c: Merge minor changes from coreutils.
69668         * lib/dup-safer.c: Likewise.
69669         * lib/fd-safer.c: Likewise.
69670
69671         Merge from coreutils.
69672         * lib/stdio--.h: New file.
69673         * lib/stdlib--.h: New file.
69674         * lib/mkstemp-safer.c: New file.
69675
69676         GNU tar needs these.
69677         * lib/pipe-safer.c: New file.
69678         * lib/creat-safer.c: New file.
69679         * lib/fcntl--.h (creat): Define to creat_safer.
69680         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
69681         * lib/unistd--.h (pipe): Define to pipe_safer.
69682         * lib/unistd-safer.h: Declare pipe_safer.
69683
69684 2005-08-26  Simon Josefsson  <jas@extundo.com>
69685
69686         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
69687         Haible <bruno@clisp.org>.
69688
69689 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
69690
69691         * lib/regex_internal.h: Remove all references to
69692         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
69693         or better.
69694         (bitset_not, bitset_merge, bitset_not_merge):
69695         (bitset_mask, re_string_allocate, re_string_construct):
69696         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
69697         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
69698         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
69699         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
69700         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69701         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69702         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
69703         (re_acquire_state_context):
69704         Remove unnecessary forward decls.
69705         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
69706         Put __attribute at function definition,
69707         now that the function decl has been removed.
69708         * lib/regex_internal.c (re_string_peek_byte_case):
69709         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
69710         Likewise.
69711
69712 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
69713
69714         * m4/regex.m4: Add AC_PREREQ(2.50).
69715         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
69716
69717 2005-08-25  Simon Josefsson  <jas@extundo.com>
69718
69719         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
69720         __fsetlocking.
69721
69722 2005-08-25  Simon Josefsson  <jas@extundo.com>
69723
69724         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
69725         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
69726         GLIBC specific code.
69727
69728 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69729
69730         Make regex safe for g++.  This fixes one real bug (an "err"
69731         that should have been "*err").  g++ problem reported by
69732         Sam Steingold.
69733         * lib/regex_internal.h (re_calloc): New macro, consistent with
69734         re_malloc etc.  All callers of calloc changed to use re_calloc.
69735         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
69736         not int.  All callers changed.
69737         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
69738         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
69739         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
69740         (find_recover_state): Change "err" to "*err"; this fixes what
69741         appears to be a real bug.
69742         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
69743         versus int.
69744
69745 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69746
69747         * modules/regex (Depends-on): Add malloc, since the code
69748         assumes that !malloc(0) means failure.
69749
69750 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69751
69752         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
69753
69754         alloca modernization/simplification for regex.
69755         * lib/regex.c: Remove portability cruft for alloca.  This no longer
69756         needs to be at the start of the file, and can be moved into
69757         regex_internal.h and simplified.
69758         * lib/regex_internal.h: Include <alloca.h>.
69759         (__libc_use_alloca) [!defined _LIBC]: New macro.
69760         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
69761         now works outside glibc.
69762
69763 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69764
69765         * config/srclist.txt: Add glibc bugs 1241, 1245.
69766
69767 2005-08-25  Jim Meyering  <jim@meyering.net>
69768
69769         * lib/open-safer.c: Include <config.h>.
69770         Otherwise, we'd lose LARGEFILE support in any file using
69771         e.g. "fcntl--.h"
69772
69773 2005-08-25  Bruno Haible  <bruno@clisp.org>
69774
69775         * m4/minmax.m4: Require autoconf 2.52.
69776         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
69777         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
69778         alternatives of translit over the alphabet.
69779         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
69780
69781 2005-08-24  Simon Josefsson  <jas@extundo.com>
69782
69783         * tests/test-getpass.c: New file.
69784
69785 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69786
69787         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
69788         for GNU regex features.
69789
69790 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69791
69792         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
69793         * lib/regex.h (regerror): Likewise.
69794
69795         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
69796         requires this.  (The code never needed it.)
69797
69798         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
69799         All uses of recently-renamed identifiers changed to use the new,
69800         POSIX-compliant names.  The code will build and run just fine
69801         without these changes, but it's better to eat our own dog food
69802         and use the standard-conforming names.
69803
69804         * lib/regex.h: Fix a multitude of POSIX name space violations.
69805         These changes have an effect only for programs that define
69806         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
69807         do not change anything for programs compiled in the normal way.
69808         Also, there is no effect on the ABI.
69809
69810         (_REGEX_SOURCE): New macro.
69811         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
69812         defined and _GNU_SOURCE is not; this fixes a name space violation.
69813
69814         Rename the following macros to obey POSIX requirements.
69815         The old names are still visible as macros if _REGEX_SOURCE is defined.
69816         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
69817         RE_BACKSLASH_ESCAPE_IN_LISTS.
69818         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
69819         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
69820         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
69821         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
69822         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
69823         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
69824         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
69825         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
69826         (REG_INTERVALS): renamed from RE_INTERVALS.
69827         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
69828         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
69829         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
69830         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
69831         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
69832         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
69833         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
69834         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
69835         RE_UNMATCHED_RIGHT_PAREN_ORD.
69836         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
69837         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
69838         (REG_DEBUG): renamed from RE_DEBUG.
69839         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
69840         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
69841         unusual, since we can't clash with the POSIX REG_ICASE.
69842         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
69843         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
69844         (REG_NO_SUB): renamed from RE_NO_SUB.
69845         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
69846         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
69847         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
69848         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
69849         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
69850         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
69851         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
69852         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
69853         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
69854         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
69855         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
69856         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
69857         RE_SYNTAX_POSIX_MINIMAL_BASIC.
69858         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
69859         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
69860         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
69861         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
69862         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
69863         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
69864         (REG_FIXED): Renamed from REGS_FIXED.
69865         (REG_NREGS): Renamed from RE_NREGS.
69866
69867         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
69868         of other REG_* macros, since POSIX says the user is allowed to
69869         #undef these macros selectively.
69870
69871         (reg_errcode_t): Update comment stating what other tables need
69872         to be consistent.
69873
69874         Rename the following enum values to obey POSIX requirements.
69875         The old names are still visible as macros.
69876         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
69877         is not defined, since GNU is supposed to be a superset of POSIX as
69878         much as possible, and since we want reg_errcode_t to be a signed
69879         type for implementation consistency.
69880         (_REG_NOERROR): Renamed from REG_NOERROR.
69881         (_REG_NOMATCH): Renamed from REG_NOMATCH.
69882         (_REG_BADPAT): Renamed from REG_BADPAT.
69883         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
69884         (_REG_ECTYPE): Renamed from REG_ECTYPE.
69885         (_REG_EESCAPE): Renamed from REG_EESCAPE.
69886         (_REG_ESUBREG): Renamed from REG_ESUBREG.
69887         (_REG_EBRACK): Renamed from REG_EBRACK.
69888         (_REG_EPAREN): Renamed from REG_EPAREN.
69889         (_REG_EBRACE): Renamed from REG_EBRACE.
69890         (_REG_BADBR): Renamed from REG_BADBR.
69891         (_REG_ERANGE): Renamed from REG_ERANGE.
69892         (_REG_ESPACE): Renamed from REG_ESPACE.
69893         (_REG_BADRPT): Renamed from REG_BADRPT.
69894         (_REG_EEND): Renamed from REG_EEND.
69895         (_REG_ESIZE): Renamed from REG_ESIZE.
69896         (_REG_ERPAREN): Renamed from REG_ERPAREN.
69897         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
69898         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
69899         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
69900         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
69901
69902         (_REG_RE_NAME, _REG_RM_NAME): New macros.
69903         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
69904         changed.  But support the old name if the new one is not defined
69905         and if _REGEX_SOURCE.
69906
69907         Change the following member names in struct re_pattern_buffer.
69908         The old names are still supported if !_REGEX_SOURCE.
69909         The new names are always supported, regardless of _REGEX_SOURCE.
69910         (re_buffer): Renamed from buffer.
69911         (re_allocated): Renamed from allocated.
69912         (re_used): Renamed from used.
69913         (re_syntax): Renamed from syntax.
69914         (re_fastmap): Renamed from fastmap.
69915         (re_translate): Renamed from translate.
69916         (re_can_be_null): Renamed from can_be_null.
69917         (re_regs_allocated): Renamed from regs_allocated.
69918         (re_fastmap_accurate): Renamed from fastmap_accurate.
69919         (re_no_sub): Renamed from no_sub.
69920         (re_not_bol): Renamed from not_bol.
69921         (re_not_eol): Renamed from not_eol.
69922         (re_newline_anchor): Renamed from newline_anchor.
69923
69924         Change the following member names in struct re_registers.
69925         The old names are still supported if !_REGEX_SOURCE.
69926         The new names are always supported, regardless of _REGEX_SOURCE.
69927         (rm_num_regs): Renamed from num_regs.
69928         (rm_start): Renamed from start.
69929         (rm_end): Renamed from end.
69930
69931         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
69932         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
69933         Prepend __ to parameter names.
69934
69935         Undo yesterday's changes.
69936
69937 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69938
69939         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
69940         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
69941         lib/regex.c.
69942
69943 2005-08-24  Jim Meyering  <jim@meyering.net>
69944
69945         Sync from coreutils.
69946         * m4/fcntl-safer.m4: New file.
69947
69948         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
69949         and object files for this module.
69950
69951 2005-08-24  Jim Meyering  <jim@meyering.net>
69952
69953         Sync from coreutils.
69954         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
69955
69956 2005-08-24  Jim Meyering  <jim@meyering.net>
69957
69958         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
69959         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
69960
69961 2005-08-24  Jim Meyering  <jim@meyering.net>
69962
69963         * modules/fcntl-safer: New module.
69964         * modules/fts (Depends-on): Add fcntl-safer.
69965         * MODULES.html.sh (File descriptor based Input/Output):
69966         Add fcntl-safer.
69967
69968 2005-08-24  Bruno Haible  <bruno@clisp.org>
69969
69970         Support for unit test modules.
69971         * modules/README: Mention tests modules.
69972         * modules/TEMPLATE-TESTS: New file.
69973         * gnulib-tool: New options --extract-tests-module, --with-tests and
69974         --tests-base (unused for the moment).
69975         (testsbase, inctests): New variables.
69976         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
69977         (func_verify_module): Exclude TEMPLATE-TESTS.
69978         (func_verify_nontests_module, func_verify_tests_module): New functions.
69979         (func_get_dependencies): Add implicit dependency for tests modules.
69980         (func_get_tests_module): New function.
69981         (func_modules_transitive_closure): When --with-tests was specified,
69982         include the unit tests as well, unless explicitly avoided.
69983         (func_emit_lib_Makefile_am): Ignore the tests modules here.
69984         (func_emit_tests_Makefile_am): New function.
69985         (func_create_testdir): When --with-tests was specified, emit a
69986         tests/ directory.
69987         * MODULES.html.sh (Future developments): Update.
69988
69989 2005-08-24  Bruno Haible  <bruno@clisp.org>
69990
69991         * modules/tls-tests: New file.
69992         * tests/test-tls.c: New file, from GNU gettext.
69993
69994 2005-08-24  Bruno Haible  <bruno@clisp.org>
69995
69996         * modules/lock-tests: New file.
69997         * tests/test-lock.c: New file, from GNU gettext.
69998
69999 2005-08-24  Bruno Haible  <bruno@clisp.org>
70000
70001         * lib/lock.h: Add multiple inclusion guard.
70002         * lib/tls.h: Add multiple inclusion guard.
70003
70004 2005-08-24  Bruno Haible  <bruno@clisp.org>
70005
70006         * gnulib-tool: Add support for the --aux-dir option to
70007         --create-testdir, --create-megatestdir, --test, --megatest.
70008         (func_create_testdir, func_create_megatestdir): Optionally emit a
70009         AC_CONFIG_AUX_DIR directive.
70010         (create-testdir, create-megatestdir, test, megatest): Provide a
70011         default value for $auxdir.
70012
70013 2005-08-24  Bruno Haible  <bruno@clisp.org>
70014
70015         * gnulib-tool (import): Use compound statement instead of subshell
70016         where possible.
70017
70018 2005-08-24  Bruno Haible  <bruno@clisp.org>
70019
70020         * gnulib-tool (import): Change --aux-dir default to "build-aux".
70021
70022 2005-08-24  Bruno Haible  <bruno@clisp.org>
70023
70024         * gnulib-tool (func_version): Update.
70025
70026 2005-08-24  Bruno Haible  <bruno@clisp.org>
70027
70028         * gnulib-tool (func_import, func_create_testdir,
70029         func_create_megatestdir): Quote all autoconf macro arguments.
70030
70031 2005-08-24  Bruno Haible  <bruno@clisp.org>
70032
70033         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
70034         option --force, because --force causes the aclocal.m4 of each
70035         subdirectory to be newer than the corresponding config.h.in.
70036
70037 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70038
70039         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
70040         All contents moved to gl_REGEX.
70041         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
70042         assume that it does.
70043
70044 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70045
70046         * lib/regex.h (REG_NOSYS)
70047         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
70048         Define, since POSIX requires it as of 2001.
70049         (_REG_ENOSYS)
70050         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
70051         New private symbol, used to keep the enum signed in all cases.
70052         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
70053         Youngman in
70054         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
70055
70056         * lib/regex_internal.c (re_string_skip_chars, register_state):
70057         (calc_state_hash):
70058         Remove forward decls; no longer needed now that we use prototypes.
70059         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
70060         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
70061         (clean_state_log_if_needed): Likewise.
70062
70063 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70064
70065         * config/srclist.txt: Add glibc bugs 1231-1233.
70066
70067 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70068
70069         Fix problems reported by Sam Steingold in
70070         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
70071         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
70072         assumed that reg_errcode_t is a signed type, which is not
70073         necessarily true if _XOPEN_SOURCE is not defined.
70074         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
70075         since some compilers warn about it otherwise.
70076
70077 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70078
70079         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
70080         (init_word_char, create_initial_state, duplicate_node_closure):
70081         (fetch_token, peek_token_bracket, build_range_exp):
70082         (build_collating_symbol): Remove forward decls; no longer needed
70083         now that we use prototypes.
70084
70085         * lib/regcomp.c:
70086         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
70087         (re_compile_fastmap_iter, regcomp, regerror, regfree):
70088         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
70089         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
70090         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
70091         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
70092         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
70093         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
70094         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
70095         (build_range_exp, build_collating_symbol, parse_bracket_exp):
70096         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
70097         (build_charclass, build_charclass_op, fetch_number, create_tree):
70098         (create_token_tree, mark_opt_subexp, duplicate_tree):
70099         Use prototypes rather than old-style definitions.
70100
70101         * lib/regex_internal.c:
70102         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
70103         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
70104         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
70105         (re_string_reconstruct, re_string_peek_byte_case):
70106         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
70107         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
70108         (re_node_set_init_copy, re_node_set_add_intersect):
70109         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
70110         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
70111         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
70112         (re_acquire_state, re_acquire_state_context, register_state):
70113         (create_ci_newstate, create_cd_newstate, free_state):
70114         Likewise.
70115         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
70116         re_search_2):
70117         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
70118         (re_search_internal, prune_impossible_nodes):
70119         (acquire_init_state_context, check_matching, static):
70120         (check_halt_node_context, check_halt_state_context, proceed_next_node):
70121         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
70122         (update_regs, sift_states_backward, build_sifted_states):
70123         (clean_state_log_if_needed, merge_state_array):
70124         (update_cur_sifted_state, add_epsilon_src_nodes):
70125         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
70126         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
70127         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
70128         (find_recover_state, check_subexp_matching_top, transit_state_mb):
70129         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
70130         (check_arrival, check_arrival_add_next_nodes):
70131         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
70132         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
70133         (check_node_accept_bytes, check_node_accept, extend_buffers):
70134         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
70135         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
70136         (sift_ctx_init):
70137         Likewise.
70138
70139         * lib/regex_internal.h:
70140         (re_string_allocate, re_string_construct, re_string_reconstruct):
70141         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
70142         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
70143         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
70144         (re_string_context_at, re_string_peek_byte_case):
70145         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
70146         is defined, since we now use prototypes always.
70147
70148         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
70149         C89 or better.  All uses removed.
70150
70151 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70152
70153         * config/srclist.txt: Add glibc bugs 1220-1227.
70154
70155 2005-08-20  Jim Meyering  <jim@meyering.net>
70156
70157         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
70158         of unused local, dfa.
70159
70160 2005-08-20  Bruno Haible  <bruno@clisp.org>
70161
70162         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
70163
70164 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70165
70166         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
70167         (re_node_set_insert_last, re_dfa_add_node):
70168         Rename local variables to avoid GCC shadowing warnings.
70169
70170 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70171
70172         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
70173         [defined lint]: Suppress bogus uninitialized-variable warnings.
70174
70175         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
70176         and let the caller return REG_ESPACE if out of space.  This
70177         removes an uninitialied-variable warning with GCC 4.0.1, and also
70178         avoids taking the address of a local variable.  All callers
70179         changed.
70180
70181 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70182
70183         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
70184         $LIBCSRC/posix/regexec.c.
70185         Add glibc bug 1217 for regcomp.c.
70186
70187 2005-08-19  Jim Meyering  <jim@meyering.net>
70188
70189         * lib/regexec.c (proceed_next_node): Redo local variables to
70190         avoid GCC shadowing warnings.
70191
70192 2005-08-18  Bruno Haible  <bruno@clisp.org>
70193
70194         * lib/strstr.c (strstr): Fix return value in multibyte case.
70195         * lib/strcasestr.c (strcasestr): Likewise.
70196
70197 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70198
70199         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
70200
70201 2005-08-17  Jim Meyering  <jim@meyering.net>
70202
70203         Make the %s format (seconds since the epoch) work for a negative
70204         number and when used with a zero-padded field width, e.g. %015s.
70205
70206         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
70207         label so that it precedes the code to set `digits'.  Otherwise,
70208         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
70209         print `00-22'.  Now, it prints `-0022', as it should.
70210
70211 2005-08-17  Bruno Haible  <bruno@clisp.org>
70212
70213         * modules/strstr (Files): Add m4/mbrtowc.m4.
70214         (Depends-on): Add mbuiter.
70215
70216 2005-08-17  Bruno Haible  <bruno@clisp.org>
70217
70218         * modules/strcasestr: New file.
70219         * MODULES.html.sh (String handling, based on ANSI C 89): Add
70220         strcasestr.
70221
70222 2005-08-17  Bruno Haible  <bruno@clisp.org>
70223
70224         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
70225
70226 2005-08-17  Bruno Haible  <bruno@clisp.org>
70227
70228         * modules/mbuiter: New file.
70229         * MODULES.html.sh (Extended multibyte and wide character utilities):
70230         Add mbuiter.
70231
70232 2005-08-17  Bruno Haible  <bruno@clisp.org>
70233
70234         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
70235         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
70236
70237 2005-08-17  Bruno Haible  <bruno@clisp.org>
70238
70239         * m4/strcasestr.m4: New file.
70240
70241 2005-08-17  Bruno Haible  <bruno@clisp.org>
70242
70243         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
70244         * lib/strstr.c: Completely rewritten, with multibyte locale support.
70245
70246 2005-08-17  Bruno Haible  <bruno@clisp.org>
70247
70248         * lib/strcasestr.h: New file.
70249         * lib/strcasestr.c: New file.
70250
70251 2005-08-17  Bruno Haible  <bruno@clisp.org>
70252
70253         * lib/strcasecmp.c: Use mbuiter.h.
70254
70255 2005-08-17  Bruno Haible  <bruno@clisp.org>
70256
70257         * lib/mbuiter.h: New file.
70258
70259 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70260
70261         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
70262         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
70263         and gl_GETOPT are both invoked via different paths (as happens
70264         with GNU tar CVS because it uses both argp and getopt), the former
70265         wins.
70266
70267 2005-08-16  Bruno Haible  <bruno@clisp.org>
70268
70269         * modules/tls: New file.
70270         * MODULES.html.sh (Multithreading): Add tls.
70271
70272 2005-08-16  Bruno Haible  <bruno@clisp.org>
70273
70274         * modules/strnlen1: New file.
70275         * MODULES.html.sh (String handling): Add strnlen1.
70276
70277 2005-08-16  Bruno Haible  <bruno@clisp.org>
70278
70279         * modules/strcase (Files): Add m4/mbrtowc.m4.
70280         (Depends-on): Add strnlen1, mbchar.
70281
70282 2005-08-16  Bruno Haible  <bruno@clisp.org>
70283
70284         * modules/mbiter: New file.
70285         * MODULES.html.sh (Extended multibyte and wide character utilities):
70286         Add mbiter.
70287
70288 2005-08-16  Bruno Haible  <bruno@clisp.org>
70289
70290         * modules/mbfile: New file.
70291         * MODULES.html.sh (Extended multibyte and wide character utilities):
70292         Add mbfile.
70293
70294 2005-08-16  Bruno Haible  <bruno@clisp.org>
70295
70296         * modules/mbchar: New file.
70297         * MODULES.html.sh (Extended multibyte and wide character utilities):
70298         New section.
70299
70300 2005-08-16  Bruno Haible  <bruno@clisp.org>
70301
70302         * m4/tls.m4: New file, from GNU gettext.
70303
70304 2005-08-16  Bruno Haible  <bruno@clisp.org>
70305
70306         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
70307         always.
70308         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
70309
70310 2005-08-16  Bruno Haible  <bruno@clisp.org>
70311
70312         * m4/mbiter.m4: New file.
70313
70314 2005-08-16  Bruno Haible  <bruno@clisp.org>
70315
70316         * m4/mbfile.m4: New file.
70317
70318 2005-08-16  Bruno Haible  <bruno@clisp.org>
70319
70320         * m4/mbchar.m4: New file.
70321
70322 2005-08-16  Bruno Haible  <bruno@clisp.org>
70323
70324         * lib/tls.h: New file, from GNU gettext.
70325         * lib/tls.c: New file, from GNU gettext.
70326
70327 2005-08-16  Bruno Haible  <bruno@clisp.org>
70328
70329         * lib/strnlen1.h: New file.
70330         * lib/strnlen1.c: New file.
70331
70332 2005-08-16  Bruno Haible  <bruno@clisp.org>
70333
70334         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
70335         (mbi_init): Update.
70336         (mbi_avail, mbi_advance): Let the iteration end before the terminating
70337         NUL byte, not after it.
70338
70339 2005-08-16  Bruno Haible  <bruno@clisp.org>
70340
70341         * lib/strcase.h (strcasecmp): Add note in comments.
70342         * lib/strncasecmp.c: Use code from strcasecmp.c.
70343         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
70344         (strcasecmp): Work correctly in multibyte locales.
70345
70346 2005-08-16  Bruno Haible  <bruno@clisp.org>
70347
70348         * lib/mbiter.h: New file.
70349
70350 2005-08-16  Bruno Haible  <bruno@clisp.org>
70351
70352         * lib/mbfile.h: New file.
70353
70354 2005-08-16  Bruno Haible  <bruno@clisp.org>
70355
70356         * lib/mbchar.h: New file.
70357         * lib/mbchar.c: New file.
70358
70359 2005-08-16  Bruno Haible  <bruno@clisp.org>
70360
70361         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
70362         the valid ones. Makes the comparison operations transitive:
70363         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
70364         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
70365
70366 2005-08-15  Simon Josefsson  <jas@extundo.com>
70367
70368         * modules/ssize_t (License): Change to 'unlimited'.
70369
70370         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
70371
70372 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70373
70374         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
70375         Add comments for each pending glibc patch.
70376
70377 2005-08-15  Bruno Haible  <bruno@clisp.org>
70378
70379         * lib/regex.h (__restrict_arr): Don't define to __restrict if
70380         __cplusplus is defined.
70381
70382 2005-08-14  Jim Meyering  <jim@meyering.net>
70383
70384         Sync from coreutils.
70385
70386         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
70387         Use the hash-table-based cycle-detection code not just when
70388         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
70389         Reported by James Youngman in
70390         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
70391         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
70392         FTS_TIGHT_CYCLE_CHECK.
70393         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
70394         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
70395         once again.
70396         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
70397         * lib/fts.c (fd_safer): Remove decl.
70398         Include fcntl--.h rather than unistd-safer.h
70399         (fts_safe_changedir): Don't call fd_safer; no longer needed
70400         now that we include fcntl--.h.
70401
70402 2005-08-12  Simon Josefsson  <jas@extundo.com>
70403
70404         * modules/getndelim2: Use ssize_t module.
70405         * modules/getnline: Likewise.
70406         * modules/safe-read: Likewise.
70407         * modules/xreadlink: Likewise.
70408
70409         * modules/ssize_t: New file.
70410
70411 2005-08-12  Simon Josefsson  <jas@extundo.com>
70412
70413         * m4/readline.m4: Look for termcap, curses or ncurses if required.
70414
70415 2005-08-12  Simon Josefsson  <jas@extundo.com>
70416
70417         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70418         ssize_t.
70419
70420 2005-08-12  Simon Josefsson  <jas@extundo.com>
70421
70422         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
70423         readline, getdelim and check_version.
70424         (Support for systems lacking ISO C 99: Sizes of integer types):
70425         Add size_max.
70426
70427 2005-08-12  Bruno Haible  <bruno@clisp.org>
70428
70429         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
70430
70431 2005-08-11  Simon Josefsson  <jas@extundo.com>
70432
70433         * modules/readline: New file.
70434
70435         * modules/strnlen (Files): Add strnlen.h.
70436
70437 2005-08-11  Simon Josefsson  <jas@extundo.com>
70438
70439         * m4/readline.m4: New file.
70440
70441 2005-08-11  Simon Josefsson  <jas@extundo.com>
70442
70443         * lib/readline.h, readline.c: New file.
70444
70445 2005-08-11  Simon Josefsson  <jas@extundo.com>
70446
70447         * doc/gnulib.texi (Initial import, Finishing touches): Mention
70448         gl_AVOID.
70449
70450 2005-08-11  Bruno Haible  <bruno@clisp.org>
70451
70452         * lib/strnlen.h (strnlen): Change parameter name to match comment.
70453
70454 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
70455
70456         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
70457
70458 2005-08-10  Simon Josefsson  <jas@extundo.com>
70459
70460         * tests/test-iconvme.c: New file.
70461
70462 2005-08-10  Simon Josefsson  <jas@extundo.com>
70463
70464         * m4/strnlen.m4: New file.
70465
70466         * m4/strndup.m4: Don't check for strnlen declaration, done in
70467         strnlen.m4.
70468
70469 2005-08-10  Simon Josefsson  <jas@extundo.com>
70470
70471         * lib/strndup.c: Use strnlen.h.
70472
70473         * lib/strnlen.h: New file.
70474
70475 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70476
70477         * README: Typos.
70478
70479 2005-08-02  Simon Josefsson  <jas@extundo.com>
70480
70481         * modules/readline: New file.
70482
70483 2005-08-02  Simon Josefsson  <jas@extundo.com>
70484
70485         * modules/getdelim: New file.
70486
70487         * modules/getline: Rewrite, don't use getndelim2.
70488
70489 2005-08-02  Simon Josefsson  <jas@extundo.com>
70490
70491         * m4/getline.m4: Separate out getdelim stuff into separate module.
70492
70493         * m4/getdelim.m4: New file.
70494
70495 2005-08-02  Simon Josefsson  <jas@extundo.com>
70496
70497         * lib/getline.h, getline.c: Rewrite.
70498
70499         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
70500
70501 2005-07-31  Bruno Haible  <bruno@clisp.org>
70502
70503         * lib/lock.h (gl_lock_initializer): New macro.
70504         (gl_lock_define_initialized): Use it.
70505         (gl_rwlock_initializer): New macro.
70506         (gl_rwlock_define_initialized): Use it.
70507         (gl_recursive_lock_initializer): New macro.
70508         (gl_recursive_lock_define_initialized): Use it.
70509
70510 2005-07-30  Karl Berry  <karl@gnu.org>
70511
70512         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
70513         Report from Ben Pfaff, regarding getopt.
70514
70515 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
70516
70517         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
70518         normal way.
70519         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
70520         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
70521         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
70522         (gl_GETOPT): Use the new macros.  Most of the implementation
70523         is moved to the new macros.  This is for programs like Emacs
70524         that don't want all the functionality of gl_GETOPT.
70525
70526 2005-07-26  Bruno Haible  <bruno@clisp.org>
70527
70528         * m4/lock.m4: Update from GNU gettext.
70529
70530 2005-07-26  Bruno Haible  <bruno@clisp.org>
70531
70532         * lib/lock.h: Update from GNU gettext.
70533         * lib/lock.c: Update from GNU gettext.
70534
70535 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
70536
70537         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
70538         obsolescent AC_TRY_RUN.  Include the default includes files, for
70539         'exit'.
70540
70541 2005-07-24  Bruno Haible  <bruno@clisp.org>
70542
70543         * modules/visibility: New file.
70544         * MODULES.html.sh (Misc): Add visibility.
70545
70546 2005-07-24  Bruno Haible  <bruno@clisp.org>
70547
70548         * m4/visibility.m4: New file.
70549
70550 2005-07-24  Bruno Haible  <bruno@clisp.org>
70551
70552         * doc/visibility.texi: New file.
70553
70554 2005-07-22  Bruno Haible  <bruno@clisp.org>
70555
70556         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
70557         $(ALLOCA_H), redundant through BUILT_SOURCES.
70558         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
70559         redundant through BUILT_SOURCES.
70560         * modules/byteswap (Makefile.am): Remove explicit dependency on
70561         $(BYTESWAP_H), redundant through BUILT_SOURCES.
70562         * modules/fnmatch (Makefile.am): Remove explicit dependency on
70563         $(FNMATCH_H), redundant through BUILT_SOURCES.
70564         * modules/getopt (Makefile.am): Remove explicit dependency on
70565         $(GETOPT_H), redundant through BUILT_SOURCES.
70566         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
70567         redundant through BUILT_SOURCES.
70568         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
70569         redundant through BUILT_SOURCES.
70570         * modules/stdbool (Makefile.am): Remove explicit dependency on
70571         $(STDBOOL_H), redundant through BUILT_SOURCES.
70572         * modules/stdint (Makefile.am): Remove explicit dependency on
70573         $(STDINT_H), redundant through BUILT_SOURCES.
70574         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
70575         Remove explicit dependency on $(SYSEXITS_H).
70576         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
70577
70578 2005-07-18  Simon Josefsson  <jas@extundo.com>
70579
70580         * lib/check-version.c (check_version): Accept identical versions too.
70581
70582 2005-07-18  Bruno Haible  <bruno@clisp.org>
70583
70584         * modules/lock: New file.
70585         * MODULES.html.sh (Multithreading): New section.
70586
70587 2005-07-18  Bruno Haible  <bruno@clisp.org>
70588
70589         * m4/lock.m4: New file, from GNU gettext.
70590
70591 2005-07-18  Bruno Haible  <bruno@clisp.org>
70592
70593         * lib/lock.h: New file, from GNU gettext.
70594         * lib/lock.c: New file, from GNU gettext.
70595
70596 2005-07-18  Bruno Haible  <bruno@clisp.org>
70597
70598         * lib/lock.h (gl_once_t): New type.
70599         (gl_once_define, gl_once): New macros.
70600         * lib/lock.c (fresh_once): New variable.
70601         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
70602         functions.
70603
70604 2005-07-16  Simon Josefsson  <jas@extundo.com>
70605
70606         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
70607         workaround, suggested by Bruno.
70608
70609 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70610
70611         * modules/xalloc (Depends-on): Add xalloc-die.
70612         * modules/xvasprintf (Depends-on): Add xalloc-die.
70613
70614 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
70615
70616         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
70617         with a minor change.
70618
70619 2005-07-15  Bruno Haible  <bruno@clisp.org>
70620
70621         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
70622         When using lib/poll.c, define poll as rpl_poll.
70623
70624 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
70625
70626         * modules/argp (Depends-on): Remove unlocked-io.
70627
70628 2005-07-14  Derek Price  <derek@ximbiot.com>
70629
70630         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
70631         for glob symlink bug.
70632
70633 2005-07-14  Bruno Haible  <bruno@clisp.org>
70634
70635         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
70636         Instead, test for *_unlocked function declarations directly.
70637
70638 2005-07-11  Simon Josefsson  <jas@extundo.com>
70639
70640         * modules/size_max: New file.
70641
70642         * modules/xsize: Depend on size_max module for size_max.m4.
70643
70644 2005-07-11  Simon Josefsson  <jas@extundo.com>
70645
70646         * lib/size_max.h: New file.
70647
70648 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
70649
70650         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
70651         copyright symbol and the year.
70652         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
70653         (version_etc_va): Use parameterized copyright notice.
70654         Reword to conform to the current GNU coding standards.
70655
70656 2005-07-11  Karl Berry  <karl@gnu.org>
70657
70658         * doc/gnulib.texi (Quoting): new node.
70659         (Initial import): more info, from Patrice.
70660
70661 2005-07-11  Bruno Haible  <bruno@clisp.org>
70662
70663         * gnulib-tool (func_usage): Document option --avoid.
70664         (Command line options): Handle --avoid.
70665         (func_acceptable): New function.
70666         (func_modules_transitive_closure): Use it.
70667
70668 2005-07-11  Bruno Haible  <bruno@clisp.org>
70669
70670         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
70671         Reported by Jim Meyering.
70672
70673 2005-07-10  Bruno Haible  <bruno@clisp.org>
70674
70675         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
70676         Needed when size_t is smaller than 'unsigned int'.
70677         Reported by Paul Eggert.
70678
70679 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70680
70681         * modules/argp (Depends-on): Add unlocked-io
70682
70683 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70684
70685         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
70686         block of defines.
70687
70688 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70689
70690         * config/srclist.txt: Comment out regcomp.c, since we have a porting
70691         fix now.
70692
70693 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
70694         and Paul Eggert  <eggert@cs.ucla.edu>
70695
70696         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
70697         in wint_t, not wchar_t.  Remove now-unnecessary cast.
70698
70699 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70700
70701         * modules/regex (Files): Add lib/regex_internal.c,
70702         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
70703         (Depends-on): Add extensions.
70704         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
70705
70706 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70707
70708         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
70709         pathconf.
70710         * m4/same.m4 (gl_SAME): Likewise.
70711         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
70712
70713         * m4/regex.m4: Adjust to new libc regex implementation.
70714         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
70715         all the .c and .h parts of (the new) regex.
70716         Quote the m4 stuff better.
70717         Check for RE_ICASE bug of old gnulib.
70718         Check for REG_STARTEND of recent libc.
70719         Rename local variables from jm_* to gl_*.
70720         Quote operand of "test -f".
70721         Say "recent enough" version of libc, not "version 2".
70722         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
70723         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
70724         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
70725         Remove check for btowc, isascii.
70726         Require AM_LANGINFO_CODESET.
70727
70728 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70729
70730         * lib/regex.c, regex.h: Sync from libc.
70731         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
70732         * lib/regexec.c:
70733         New files, synced from libc, except that regex_internal.h
70734         currently has a small porting fix.
70735
70736 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70737
70738         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
70739         regex_internal.c, regexec.c.
70740         Add regex_internal.h too, but as a comment, since the libc version
70741         is currently broken in gnulib mode.
70742
70743 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70744
70745         Support programs like Emacs that use gnulib but not gettext.
70746         * MODULES.html.sh (Internationalization functions): Add gettext-h.
70747         * modules/gettext-h: New file.
70748         * modules/gettext (Files): Remove lib/gettext.h.
70749         (Depends-on): Add gettext-h.
70750         (Makefile.am): Remove lib_SOURCES.
70751         * modules/argmatch, modules/c-stack, modules/closeout:
70752         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
70753         * modules/execute, modules/file-type, modules/getaddrinfo:
70754         * modules/getopt, modules/human, modules/javacomp:
70755         * modules/javaexec, modules/mkdir-p, modules/obstack:
70756         * modules/openat, modules/pagealign_alloc, modules/pipe:
70757         * modules/quotearg, modules/regex, modules/rpmatch:
70758         * modules/unicodeio, modules/userspec, modules/version-etc:
70759         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
70760         * modules/xsetenv:
70761         Depend on gettext-h, not gettext.
70762
70763 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70764
70765         * gnulib-tool (func_import): Add support for 'public domain' license.
70766         * modules/alloca, modules/atexit, modules/memmove:
70767         Now public domain, not GPL.
70768         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
70769         * modules/realloc, modules/strerror, modules/strtod:
70770         Now LGPL, not GPL.
70771
70772 2005-07-05  Bruno Haible  <bruno@clisp.org>
70773
70774         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
70775         autoconf CVS. Needed for mingw.
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         * modules/strftime (Depends-on): Remove dependency on tzset.
70781
70782 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70783
70784         Remove the dependency of the strftime module on the tzset module.
70785         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
70786         gl_FUNC_TZSET_CLOBBER.
70787
70788 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70789
70790         Remove the dependency of the strftime module on the tzset module.
70791         * lib/strftime.c (my_strftime)
70792         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
70793         Copy the input structure, to work around some of the bug with
70794         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
70795         Solaris releases, you should also use the tzset module, but we won't
70796         require it as a dependency any more since we don't want LGPLed code
70797         to depend on GPLed code.
70798
70799 2005-07-02  Jim Meyering  <jim@meyering.net>
70800
70801         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
70802         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
70803         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
70804         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
70805
70806 2005-07-02  Jim Meyering  <jim@meyering.net>
70807
70808         * lib/backupfile.c (backup_args): Change a `0' to NULL.
70809
70810 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70811
70812         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
70813         declares only 'struct timespec;' (!).
70814
70815 2005-07-01  Jim Meyering  <jim@meyering.net>
70816
70817         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
70818         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
70819         * lib/save-cwd.c, tempname.c:
70820         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70821         and don't include <sys/file.h>).
70822
70823 2005-06-29  Jim Meyering  <jim@meyering.net>
70824
70825         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
70826         type name.  Use the variable name instead.
70827         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
70828         Likewise.
70829
70830 2005-06-28  Simon Josefsson  <jas@extundo.com>
70831
70832         * modules/check-version (Files): Add check-version.m4.
70833
70834 2005-06-28  Simon Josefsson  <jas@extundo.com>
70835
70836         * m4/check-version.m4: New file, suggested by Jim Meyering
70837         <jim@meyering.net>.
70838
70839 2005-06-28  Simon Josefsson  <jas@extundo.com>
70840
70841         * lib/check-version.h, lib/check-version.c: New files.
70842
70843 2005-06-28  Simon Josefsson  <jas@extundo.com>
70844
70845         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
70846         collision with global variable.  Better indentation.  Don't
70847         increment buffer pointer beyond buffer end.  Based on comments
70848         from Paul Eggert <eggert@cs.ucla.edu>.
70849
70850         * lib/base64.h: Indent.
70851
70852 2005-06-28  Simon Josefsson  <jas@extundo.com>
70853
70854         * doc/gnulib.texi (Library version handling): New section.
70855
70856 2005-06-28  Jim Meyering  <jim@meyering.net>
70857
70858         * check-module (find_included_lib_files): Hard-code another
70859         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
70860         but modules/fts-lgpl (correctly) does not list those files.
70861
70862         * modules/canonicalize (Files): Add lib/pathmax.h.
70863
70864 2005-06-25  Simon Josefsson  <jas@extundo.com>
70865
70866         * modules/check-version: New file.
70867
70868 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
70869
70870         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
70871         initializer of struct addrinfo, as an indication that we don't
70872         care how many members the structure has.
70873
70874 2005-06-24  Derek Price  <derek@ximbiot.com>
70875         and Bruno Haible  <bruno@clisp.org>
70876
70877         Remove stat module & update lstat.
70878         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
70879         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70880         * m4/stat.m4: Remove this file.
70881
70882 2005-06-24  Derek Price  <derek@ximbiot.com>
70883         and Bruno Haible  <bruno@clisp.org>
70884
70885         Remove stat module & update lstat.
70886         * lib/stat.c: Remove this file...
70887         (slash_aware_lstat): ...moving this content and its support...
70888         * lib/lstat.c (rpl_lstat): ...into here.
70889         * lib/lstat.h: New file.
70890
70891 2005-06-24  Derek Price  <derek@ximbiot.com>
70892         and Bruno Haible  <bruno@clisp.org>
70893
70894         Remove stat module & update lstat.
70895         * config/srclist.txt (libc sources): Remove stat.
70896
70897 2005-06-24  Derek Price  <derek@ximbiot.com>
70898         and Bruno Haible  <bruno@clisp.org>
70899
70900         Remove stat module & update lstat.
70901         * MODULES.html.sh (stat): Remove.
70902         * MODULES.html: Regenerated.
70903         * modules/lstat (Description): Correct function name.
70904         (Files): Add "lstat.h".
70905         (Depends-on): Remove stat, add xalloc, stat-macros.
70906         * modules/stat: Remove this file.
70907         (Include): Add "lstat.h", remove <sys/stat.h>.
70908
70909 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
70910
70911         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
70912         (ranged_convert): Don't save conversion in a temporary struct.
70913         This causes a warning with GCC 4.0.0, and anyway in the typical
70914         case it's not worth the extra 100 bytes or so of code.
70915         (ranged_convert, __mktime_internal): When calling a function via a
70916         pointer P, use P () rather than (*P) (), as we now assume C89 or
70917         better.
70918
70919 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70920
70921         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
70922         "who -r" failed to give output.  Problem reported by Tim Waugh.
70923
70924         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
70925         (xcalloc): Use it to avoid needless tests.
70926         Problem reported by Jim Meyering.
70927
70928 2005-06-20  Derek Price  <derek@ximbiot.com>
70929
70930         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
70931         unnecessary for Autoconfs > 2.59c.
70932
70933 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70934
70935         * lib/argp.h (__option_is_short): Check upper limit of
70936         __key. Isprint() requires its argument to have the value
70937         of an unsigned char or EOF.
70938
70939 2005-06-16  Jim Meyering  <jim@meyering.net>
70940
70941         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
70942         when either N or S is zero.
70943
70944 2005-06-16  Derek Price  <derek@ximbiot.com>
70945
70946         * m4/bison.m4: Declare YACC & YFLAGS precious.
70947
70948 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
70949
70950         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
70951         multibyte string or pattern, fall back on unibyte matching.
70952         Problem reported by James Youngman.
70953
70954 2005-06-08  Bruno Haible  <bruno@clisp.org>
70955
70956         * modules/csharpcomp: New file.
70957         * MODULES.html.sh (C#): Add csharpcomp.
70958
70959 2005-06-08  Bruno Haible  <bruno@clisp.org>
70960
70961         * m4/csharpcomp.m4: New file, from GNU gettext.
70962
70963 2005-06-08  Bruno Haible  <bruno@clisp.org>
70964
70965         * lib/csharpcomp.h: New file, from GNU gettext.
70966         * lib/csharpcomp.c: New file, from GNU gettext.
70967         * lib/csharpcomp.sh.in: New file, from GNU gettext.
70968
70969 2005-06-08  Bruno Haible  <bruno@clisp.org>
70970
70971         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
70972         warning on mingw.
70973
70974 2005-06-07  Derek Price  <derek@ximbiot.com>
70975
70976         Sync from CVS.
70977         * lib/glob_.h: Indent nested #ifdef.
70978
70979 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70980
70981         Sync from coreutils.
70982         Use "file name" when talking about file names, instead of "filename"
70983         or "path", as per the GNU coding standards.
70984         * lib/mkdir-p.c: Renamed from makepath.c.
70985         (make_dir_parents): Renamed from make_path.  All callers changed.
70986         * lib/mkdir-p.h: Likewise.  All includers changed.
70987         * lib/filenamecat.c: Renamed from path-concat.c.
70988         (file_name_concat): Renamed from path_concat.  All callers changed.
70989         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
70990         * lib/filenamecat.h: Likewise.  All includers changed.
70991         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
70992         in comments or local variable names.
70993         * lib/basename.c: Likewise.
70994         * lib/canonicalize.c, canonicalize.h: Likewise.
70995         * lib/dirname.c, dirname.h: Likewise.
70996         * lib/euidaccess.c: Likewise.
70997         * lib/exclude.c: Likewise
70998         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
70999         * lib/fsusage.c, fsuage.h: Likewise.
71000         * lib/fts.c, fts_.h: Likewise.
71001         * lib/getcwd.c: Likewise.
71002         * lib/getloadavg.c: Likewise.
71003         * lib/mkstemp.c: Likewise.
71004         * lib/mountlist.c, mountlist.h: Likewise.
71005         * lib/openat.c, openat.h: Likewise.
71006         * lib/readlink-stub.c: Likewise.
71007         * lib/readutmp.c, readutmp.h: Likewise.
71008         * lib/rename.c: Likewise.
71009         * lib/rmdir.c: Likewise.
71010         * lib/same.c: Likewise.
71011         * lib/savedir.c: Likewise.
71012         * lib/stripslash.c: Likewise.
71013         * lib/tempname.c: Likewise.
71014         * lib/xreadlink.c: Likewise.
71015         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
71016         All uses changed.
71017         * lib/exclude.h: Likewise.
71018
71019         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
71020         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71021         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
71022         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71023         * lib/pathmax.h: Include <limits.h> unconditionally, since other
71024         files have been getting away with it for years (MORE/BSD 4.3
71025         is extinct now).
71026         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
71027         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
71028
71029         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
71030         Define to 256, not 255, as per modern POSIX.
71031
71032 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71033
71034         Sync from coreutils.
71035         Use "file name" when talking about file names, instead of "filename"
71036         or "path", as per the GNU coding standards.
71037         * MODULES.html.sh: mkdir-p renamed from makepath.
71038         filenamecat renamed from path-concat.
71039         * modules/filenamecat: Renamed from modules/path-concat.
71040         (Files): filenamecat.h and filenamecat.c renamed from
71041         path-concat.h and path-concat.c.
71042         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
71043         (Include): filenamecat.h, not path-concat.h.
71044         * modules/mkdir-p: Renamed from modules/makepath.
71045         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
71046         makepath.c.
71047         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
71048         (Include): mkdir-p.h, not makepath.h.
71049
71050 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
71051
71052         Sync from coreutils.
71053         * m4/mkdir-p.m4: Renamed from makepath.m4.
71054         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
71055         Rename files from makepath.c to mkdir-p.c, and from
71056         makepath.h to mkdir-p.h.
71057         * m4/filenamecat.m4: Renamed from path-concat.m4.
71058         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
71059         Rename files from path-concat.c to filenamecat.c,
71060         and from path-concat.h to filenamecat.h.
71061         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
71062         "file name" in local variables or comments.
71063         * m4/rename.m4: Likewise.
71064
71065 2005-06-01  Bruno Haible  <bruno@clisp.org>
71066
71067         * modules/csharpexec: New file.
71068         * MODULES.html.sh (C#): New section.
71069
71070 2005-06-01  Bruno Haible  <bruno@clisp.org>
71071
71072         * m4/csharp.m4: New file, from GNU gettext.
71073         * m4/csharpexec.m4: New file, from GNU gettext.
71074
71075 2005-06-01  Bruno Haible  <bruno@clisp.org>
71076
71077         * lib/csharpexec.h: New file, from GNU gettext.
71078         * lib/csharpexec.c: New file, from GNU gettext.
71079         * lib/csharpexec.sh.in: New file, from GNU gettext.
71080
71081 2005-05-31  Derek Price  <derek@ximbiot.com>
71082             Paul Eggert  <eggert@cs.ucla.edu>
71083
71084         Sync from cvs.
71085         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71086
71087 2005-05-31  Derek Price  <derek@ximbiot.com>
71088             Paul Eggert  <eggert@cs.ucla.edu>
71089
71090         Sync from cvs.
71091         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
71092
71093 2005-05-29  Derek Price  <derek@ximbiot.com>
71094
71095         * config/srclist.txt (glob_.h, glob.c): Add these files.
71096
71097 2005-05-29  Derek Price  <derek@ximbiot.com>
71098
71099         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
71100         * modules/glob: New file.
71101         * modules/getlogin_r: Add link to POSIX spec in description.
71102
71103 2005-05-29  Derek Price  <derek@ximbiot.com>
71104             Paul Eggert  <eggert@cs.ucla.edu>
71105
71106         * m4/glob.m4: New file.
71107
71108 2005-05-29  Derek Price  <derek@ximbiot.com>
71109             Paul Eggert  <eggert@cs.ucla.edu>
71110
71111         * lib/glob_.h, lib/glob.c: New files.
71112
71113 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71114
71115         * modules/fts (Files): Remove m4/inttypes-pri.m4.
71116         * modules/fts-lgpl (Depends-on): Remove gettext.
71117
71118 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71119
71120         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
71121         and don't require gt_INTTYPES_PRI.
71122
71123 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
71124
71125         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
71126
71127         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
71128         the configuration hassle isn't worth it.
71129         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
71130         (LONGEST_MODIFIER, PRIuMAX): Remove.
71131
71132 2005-05-27  Bruno Haible  <bruno@clisp.org>
71133
71134         * lib/getlogin_r.h: Remove second include of <stddef.h>.
71135
71136 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
71137
71138         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
71139         _POSIX_PTHREAD_SEMANTICS for Solaris.
71140
71141 2005-05-25  Derek Price  <derek@ximbiot.com>
71142
71143         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
71144
71145 2005-05-25  Derek Price  <derek@ximbiot.com>
71146             Paul Eggert  <eggert@cs.ucla.edu>
71147
71148         * modules/getlogin_r, m4/getlogin_r.m4: New files.
71149         * lib/getlogin_r.c, getlogin_r.h: New files.
71150
71151 2005-05-25  Bruno Haible  <bruno@clisp.org>
71152             Derek Price  <derek@ximbiot.com>
71153
71154         * lib/getlogin_r.h: Simplify API documentation.
71155
71156 2005-05-23  Derek Price  <derek@ximbiot.com>
71157
71158         * modules/minmax (Files): Add m4/minmax.m4.
71159         (configure.ac): Add gl_MINMAX.
71160
71161 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71162
71163         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
71164         so that unistd-safer.h (GPL'ed code) need not be included.
71165
71166 2005-05-22  Bruno Haible  <bruno@clisp.org>
71167
71168         * m4/minmax.m4: New file.
71169         Based on a patch by Derek Price <derek@ximbiot.com>.
71170
71171 2005-05-22  Bruno Haible  <bruno@clisp.org>
71172
71173         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
71174         (INT64_MIN): Fix definition.
71175         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
71176
71177         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
71178         NEED_SIGNED_INT_TYPES.
71179
71180         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
71181         HAVE_SYSTEM_INTTYPES.
71182
71183 2005-05-22  Bruno Haible  <bruno@clisp.org>
71184
71185         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
71186         Also include <sys/param.h> if it defines MIN, MAX.
71187         Based on a patch by Derek Price <derek@ximbiot.com>.
71188
71189 2005-05-21  Jim Meyering  <jim@meyering.net>
71190
71191         * modules/fts (Files): Add m4/inttypes-pri.m4.
71192         (Depends-on): Add lstat and remove gettext.  Alphabetize.
71193
71194 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71195
71196         New fts module.
71197         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
71198         (setup_dir, free_dir): New functions.
71199         (enter_dir, leave_dir): Define trivial
71200         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
71201         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
71202         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
71203         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
71204         Move to fts-cycle.c.
71205         (fts_open): Use setup_dir.
71206         (fts_close): Use free_dir.
71207         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
71208         This adds a label and some gotos, but the alternatives were messier.
71209         Check for memory allocation failure when entering a dir.
71210         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
71211         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
71212         (FTS): New member fts_cycle, that is a union that contains the
71213         old active_dir_ht and cycle_state.  All uses changed to mention
71214         fts_cycle.ht and fts_cycle.state.
71215         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
71216         fts.c, with the following changes:
71217         (setup_dir, free_dir): New functions.
71218         (enter_dir): Now returns bool.  Return true if successful, false
71219         if memory exhausted.  All callers changed.
71220         Do not bother partly cleaning up on
71221         memory allocation failure; that is free_dir's job.
71222         However, free ad if hash_insert fails, to avoid memory leak.
71223         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
71224         fts->fts_options to see which union member to use.
71225
71226 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71227
71228         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
71229         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
71230
71231 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71232
71233         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
71234
71235 2005-05-20  Jim Meyering  <jim@meyering.net>
71236
71237         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
71238         Now a macro, to pacify GCC.
71239
71240 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71241
71242         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
71243         of -1.
71244
71245 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
71246
71247         * lib/chown.c (rpl_chown): Return -1 on failure.
71248
71249 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71250
71251         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
71252         Don't check for stddef.h.
71253         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
71254         don't use its results.
71255         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
71256         since we include them unconditionally.  Don't require
71257         AM_STDBOOL_H, since stdbool is a prerequisite.
71258         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
71259         since we assume C89 or better.
71260         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
71261         as we don't use their results.
71262         Don't check for fchdir, memmove, memset, strrchr, as we use
71263         them unconditionally.
71264         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
71265         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
71266
71267 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
71268
71269         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
71270         Include <stddef.h> unconditionally, since we assume C89 now.
71271         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
71272         * lib/fts.c: Include fts_.h first, to check interface.
71273         Do not include intprops.h; no longer needed.
71274         Include cycle-check.h and hash.h, since fts_.h no longer does.
71275         Remove unnecessary casts of closedir to void.
71276         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
71277         decide whether to decrement nlinks.
71278         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
71279         (FTS): Use struct hash_table * instead of Hash_table, so that
71280         we no longer need to include hash.h here.
71281
71282 2005-05-18  Jim Meyering  <jim@meyering.net>
71283
71284         * modules/dirfd (License): Change to LGPL.  Most of the code
71285         is already in the public domain.
71286
71287 2005-05-18  Jim Meyering  <jim@meyering.net>
71288
71289         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
71290         Reported by Yoann Vandoorselaere.
71291
71292 2005-05-17  Jim Meyering  <jim@meyering.net>
71293
71294         * m4/fts.m4: New file, from coreutils.
71295
71296 2005-05-17  Jim Meyering  <jim@meyering.net>
71297
71298         * lib/fts.c, lib/fts_.h: New files, from coreutils.
71299
71300 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71301
71302         Sync from coreutils.
71303         * m4/unlinkdir.m4: New file.
71304
71305 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         Sync from coreutils.
71308         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
71309         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
71310         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
71311         White space changes only.
71312         * lib/makepath.c (make_path): Port to hosts where leading "//" is
71313         special.
71314         * lib/yesno.c: Include getline.h, not ctype.h.
71315         (yesno): Don't remove leading white space; POSIX doesn't allow it.
71316         Use getline to remove arbitrary restriction on response length.
71317
71318 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71319
71320         * config/srclist-update: Spell out "Street" in FSF postal
71321         mail address; this is the style the FSF seems to prefer.
71322
71323         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
71324         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
71325         this updates FSF postal mail address.
71326
71327         Sync from coreutils.
71328         * modules/unlinkdir: New file.
71329         * modules/yesno (Depends-on): Add getline.
71330         * MODULES.html.sh (File system functions): Add unlinkdir.
71331
71332 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71333
71334         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
71335         lib/strsep.h:
71336         Change the initial comment to refer to GPL, not LGPL.
71337         gnulib-tool will change it to LGPL as needed.
71338
71339         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
71340         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
71341         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
71342         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
71343         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
71344         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
71345         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
71346         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
71347         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
71348         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
71349         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
71350         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
71351         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
71352         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
71353         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
71354         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
71355         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
71356         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
71357         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
71358         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
71359         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
71360         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
71361         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
71362         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
71363         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
71364         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
71365         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
71366         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
71367         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
71368         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
71369         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
71370         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
71371         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
71372         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
71373         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
71374         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
71375         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
71376         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
71377         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
71378         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
71379         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
71380         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
71381         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
71382         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
71383         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
71384         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
71385         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
71386         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
71387         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
71388         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
71389         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71390         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
71391         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
71392         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
71393         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
71394         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
71395         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
71396         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
71397         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
71398         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
71399         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
71400         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
71401         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
71402         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
71403         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
71404         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
71405         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
71406         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
71407         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
71408         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
71409         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
71410         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
71411         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
71412         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
71413         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
71414         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
71415         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
71416         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
71417         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
71418         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
71419         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
71420         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
71421         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
71422         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
71423         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
71424         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
71425         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
71426         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
71427         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
71428         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
71429         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
71430         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
71431         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
71432         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
71433         lib/yesno.c, lib/yesno.h:
71434         Update FSF postal mail address.
71435
71436 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71437
71438         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
71439         tests/test-memmem.c, tests/test-stpncpy.c:
71440         Update FSF postal mail address.
71441
71442 2005-05-13  Bruno Haible  <bruno@clisp.org>
71443
71444         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
71445         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
71446         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
71447         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
71448         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
71449         Add support for 64-bit integers in the MSVC compiler.
71450
71451 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71452
71453         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
71454
71455 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
71456
71457         * gnulib-tool (func_import): Sort and uniquify recommended includes.
71458
71459 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
71460
71461         * doc/getdate.texi (General date syntax): Don't say that date
71462         date --iso-8601=ns generates acceptable dates; it doesn't yet.
71463         Problem reported by Nic Ferrier.
71464
71465 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71466
71467         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
71468         specified in ai_socktype. Fix invalid ai_protocol
71469         check. ai_protocol is usually set to 0 or depending on
71470         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
71471         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
71472         ai_socktype / ai_protocol in the returned addrinfo structure.
71473
71474 2005-05-10  Simon Josefsson  <jas@extundo.com>
71475
71476         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
71477         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71478
71479 2005-05-10  Karl Berry  <karl@gnu.org>
71480
71481         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
71482         (from http://www.gnu.org/licenses).
71483         * doc/COPYING.LIB: also rename to COPYING.LESSER.
71484         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
71485         fdl.texi suffices.
71486
71487 2005-05-10  Karl Berry  <karl@gnu.org>
71488
71489         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
71490         (COPYING.DOC): remove.
71491
71492         * config/srclist-update: new FSF address.
71493
71494 2005-05-10  Derek Price  <derek@ximbiot.com>
71495
71496         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
71497         possible.
71498
71499 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71500             Bruno Haible  <bruno@clisp.org>
71501
71502         * modules/inet_ntop: New file.
71503         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71504         inet_ntop.
71505
71506 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71507             Bruno Haible  <bruno@clisp.org>
71508
71509         * m4/inet_ntop.m4: New file.
71510
71511 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71512             Bruno Haible  <bruno@clisp.org>
71513
71514         * lib/inet_ntop.h: New file.
71515         * lib/inet_ntop.c: New file, from glibc with modifications.
71516
71517 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
71518
71519         * modules/time_r (License): Change to LGPL.
71520         * modules/extensions (License): Change to LGPL.  Actually,
71521         the license is more permissive than that, but currently gnulib-tool
71522         doesn't know how to handle more-permissive licenses.
71523
71524         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
71525         Problem reported by Dave Love.
71526
71527 2005-05-08  Jim Meyering  <jim@meyering.net>
71528
71529         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
71530         blank.
71531
71532 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71533
71534         * modules/argmatch (Depends-on): Add stdbool.
71535         * modules/backupfile (Depends-on): Likewise.
71536         * modules/chdir-long (Depends-on): Likewise.
71537         * modules/closeout (Depends-on): Likewise.
71538         * modules/cycle-check (Depends-on): Likewise.
71539         * modules/dirname (Depends-on): Likewise.
71540         * modules/fnmatch (Depends-on): Likewise.
71541         * modules/fsusage (Depends-on): Likewise.
71542         * modules/fwriteerror (Depends-on): Likewise.
71543         * modules/getcwd (Depends-on): Likewise.
71544         * modules/getloadavg (Depends-on): Likewise.
71545         * modules/hard-locale (Depends-on): Likewise.
71546         * modules/makepath (Depends-on): Likewise.
71547         * modules/mountlist (Depends-on): Likewise.
71548         * modules/nanosleep (Depends-on): Likewise.
71549         * modules/posixtm (Depends-on): Likewise.
71550         * modules/quotearg (Depends-on): Likewise.
71551         * modules/readtokens (Depends-on): Likewise.
71552         * modules/readtokens0 (Depends-on): Likewise.
71553         * modules/readutmp (Depends-on): Likewise.
71554         * modules/save-cwd (Depends-on): Likewise.
71555         * modules/strftime (Depends-on): Likewise.
71556         * modules/userspec (Depends-on): Likewise.
71557         * modules/utimecmp (Depends-on): Likewise.
71558         * modules/xgetcwd (Depends-on): Likewise.
71559         * modules/xnanosleep (Depends-on): Likewise.
71560         * modules/xstrtod (Depends-on): Likewise.
71561         * modules/yesno (Depends-on): Likewise.
71562
71563 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
71564
71565         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
71566         needless checks.
71567
71568 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71569
71570         Merge from coreutils.  Among other things,
71571         add bulletproofing for cases where stdin, stdout, or stderr are closed.
71572         * lib/fd-safer.c: New file.
71573         * lib/fcntl-safer.h, open-safer.c: Remove.
71574         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
71575         * lib/dup-safer.c: Include unistd-safer.h first.
71576         Don't include errno.h.
71577         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
71578         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
71579         * lib/file-type.c: Rely on file-type.h change.
71580         * lib/getloadavg.c: Include unistd-safer.h.
71581         (getloadavg): Use safer open.
71582         * lib/getusershell.c: Include "stdio-safer.h".
71583         (getusershell): Use safer fopen.
71584         * lib/long-options.c (long_options): Use NULL rather than 0.
71585         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
71586         'free'.
71587         * lib/modechange.c: Likewise.
71588         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
71589         (MODE_DONE): New constant.
71590         (struct mode_change): Remove 'next' member.
71591         (make_node_op_equals): New function; like the old one of the
71592         same name, except it allocates an array.
71593         (mode_compile, mode_create_from_ref): Use it.
71594         (mode_compile): Allocate result as an array, not a linked list.
71595         Parse octal string ourself, so that we catch mistakes like "+0".
71596         (mode_adjust): Arg is an array, not a linked list.
71597         * lib/modechange.c: Include stat-macros.h, xalloc.h.
71598         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
71599         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
71600         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
71601         Remove.  This is now stat-macros.h's job.
71602         (talloc): Remove.  All callers replaced by xalloc, so that
71603         our invokers don't have to worry about reporting memory failures.
71604         (make_node_op_equals): Remove.
71605         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71606         New constants.
71607         (struct mode_change): Moved here from modechange.h.
71608         (mode_append_entry): Remove.
71609         (mode_compile): Remove MASKED_OPS arg, since it encouraged
71610         apps to have incorrect behavior.  Use simpler algorithm for head
71611         and tail.  Don't futz with umask; that's now the job of mode_adjust.
71612         Detect more invalid usages rather than having somewhat-random behavior.
71613         Don't insert an "a=" action, as that leads to incorrect behavior.
71614         (mode_compile, mode_create_from_ref): Return NULL on error instead
71615         of an enum, since now there's only one way to have an error.  All
71616         callers changed.
71617         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
71618         at the correct time.  Simplify calculation of "+u" and its ilk.
71619         Don't mishandle "+X".
71620         (mode_free): Remove "register" and localize decls.
71621         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
71622         (struct mode_change): Move to modechange.c; callers don't
71623         need to see this stuff.
71624         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
71625         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
71626         (mode_change, mode_adjust): Reflect the new signatures noted above.
71627         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
71628         that might redefine system include files.
71629         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
71630         (my_usleep): Use NULL rather than (void *) 0.
71631         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
71632         Use siginterrupt to specify that system calls should be interrupted.
71633         (rpl_nanosleep): Move initialization of suspended closer to call of
71634         my_usleep.
71635         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
71636         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
71637         (desirable_utmp_entry): New function.
71638         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
71639         using x2nrealloc, to simplify logic.
71640         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
71641         size calculation.  Do not assume utmp file is a regular file.
71642         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
71643         (READ_UTMP_CHECK_PIDS): New constant.
71644         * lib/save-cwd.c: Include unistd-safer.h.
71645         (save_cwd): Use fd_safer.
71646         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
71647         [!_LIBC] Include "stat-macros.h" instead.
71648         * lib/unistd-safer.h (fd_safer): New decl.
71649
71650 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71651
71652         * modules/getloadavg (Depends-on): Add unistd-safer.
71653         * modules/getusershell (Depends-on): Add stdio-safer.
71654         * modules/lstat (Depends-on): Remove xalloc.
71655         * modules/mkstemp (Depends-on): Add stat-macros.
71656         * modules/modechange (Depends-on): Remove xstrtol.
71657         Add stat-macros, xalloc.
71658         * modules/save-cwd (Depends-on): Add unistd-safer.
71659         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
71660         * modules/unistd-safer (Files): Add lib/fd-safer.c
71661         (Makefile.am): Remove lib_SOURCES.
71662
71663         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
71664         Remove fcntl-safer; unistd-safer supersedes it.
71665
71666 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71667
71668         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
71669         AC_HEADER_STAT.
71670         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
71671         (gl_PREREQ_CHOWN): Remove.
71672         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
71673         it.  Don't require AC_HEADER_STAT.
71674         (gl_PREREQ_LSTAT): Remove.
71675         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
71676         Don't require AC_HEADER_STAT.
71677         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
71678         (gl_PREREQ_RMDIR): Remove.
71679         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
71680         mention stat-macros.h or AC_HEADER_STAT, since we'll make
71681         the stat-macros module a prerequisite.
71682         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
71683         * m4/filemode.m4 (gl_FILEMODE): Likewise.
71684         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
71685         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
71686         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
71687         variable names.
71688         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
71689         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
71690         variable prefixes.
71691         * m4/fcntl-safer.m4: Remove.
71692         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
71693         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
71694         Invoke gl_PREREQ_FD_SAFER.
71695         (gl_PREREQ_FD_SAFER): New macro.
71696         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
71697         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
71698         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
71699         Remove duplicate call to AC_LIBOBJ(readutmp).
71700         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
71701
71702         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
71703         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
71704
71705 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71706
71707         * MODULES.html.sh (Misc): Add byteswap.
71708
71709 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71710
71711         * modules/getcwd (Depends-on): Add extensions.
71712         * modules/openat (Depends-on): Likewise.
71713
71714 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71715
71716         * modules/byteswap: New file.
71717
71718 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71719
71720         * m4/byteswap.m4: New file.
71721
71722 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71723
71724         * lib/byteswap_.h: New file.
71725
71726 2005-04-25  Karl Berry  <karl@gnu.org>
71727
71728         * m4/gettext.m4: Update from GNU gettext 0.14.4.
71729
71730 2005-04-25  Albert Chin  <china@thewrittenword.com>
71731
71732         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
71733         Toolkit C bug.
71734
71735 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
71736
71737         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
71738         (func_ln_if_changed): Remove forcibly for no error message
71739         in case file does not exist.
71740
71741 2005-04-19  Simon Josefsson  <jas@extundo.com>
71742
71743         * gnulib-tool (Options): Make --symlink mean --symbolic.
71744
71745 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
71746
71747         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
71748
71749 2005-04-16  Simon Josefsson  <jas@extundo.com>
71750
71751         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
71752
71753 2005-04-15  Simon Josefsson  <jas@extundo.com>
71754
71755         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
71756
71757 2005-04-15  Simon Josefsson  <jas@extundo.com>
71758
71759         * gnulib-tool: Rename --symlink to --symbolic.
71760
71761 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
71762
71763         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
71764         symbolic links to files instead of copying/moving.  Add --aux-dir,
71765         specifying directory relative --dir where auxiliary build tools
71766         are placed.
71767
71768 2005-04-14  Bruno Haible  <bruno@clisp.org>
71769
71770         * modules/allocsa (License): Change to LGPL.
71771         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71772
71773 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71774
71775         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
71776         that "UTC +1 second" continues to work.  Problem reported
71777         by Dmitry V. Levin.
71778         (relunit_snumber): New rule.
71779         (relunit): Use it.
71780
71781 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71782
71783         * lib/getdate.y (universal_time_zone_table): New constant.
71784         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
71785         universal_time_zone_table.
71786         (lookup_zone): Prefer universal_time_zone_table to
71787         local_time_zone_table, so that "GMT" time stamps are allowed in
71788         London during the summer.  Problem reported by Ian Abbott.
71789
71790 2005-04-12  Jim Meyering  <jim@meyering.net>
71791
71792         * lib/human.c (humblock): Set *options even when returning due to
71793         xstrtoumax conversion failure.  Thanks to a used-uninitialized
71794         warning from gcc-4.
71795
71796 2005-04-09  Jim Meyering  <jim@meyering.net>
71797
71798         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
71799         -Wuninitialized: initialize tm0.tm_year.
71800
71801 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71802
71803         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
71804         count, since there's no maximum.  All uses changed.
71805         Add member dsts_seen.
71806         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
71807         not being INT_MAX.
71808         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
71809         Use pc_rels_seen to decide whther a date is absolute.
71810
71811         * lib/getdate.y (number): Don't overwrite year.
71812         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
71813         check.
71814
71815 2005-04-02  Simon Josefsson  <jas@extundo.com>
71816
71817         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
71818         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
71819
71820 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
71821
71822         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
71823         where no absolute path name can be longer than PATH_MAX.
71824
71825 2005-03-27  Jim Meyering  <jim@meyering.net>
71826
71827         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
71828
71829 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
71830
71831         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
71832         "one's complement" -> "ones' complement" in comment, as per Knuth.
71833         "value of type" -> "type or expression" in comment.
71834         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
71835
71836 2005-03-26  Jim Meyering  <jim@meyering.net>
71837
71838         Comment nits.
71839         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
71840         Correct typos: s/or/of/.
71841
71842 2005-03-26  Jim Meyering  <jim@meyering.net>
71843
71844         * modules/check-include-files: Move to ../ and rename to...
71845         * check-module: ...this.
71846
71847 2005-03-25  Jim Meyering  <jim@meyering.net>
71848
71849         * modules/xvasprintf (Files): Add xalloc.h.
71850
71851 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71852
71853         * modules/gettext (Files): config/config.rpath ->
71854         build-aux/config.rpath
71855         * modules/iconv (Files): Likewise.
71856         Problem reported by Oskar Liljeblad.
71857
71858 2005-03-23  Jim Meyering  <jim@meyering.net>
71859
71860         * modules/check-include-files: New script to check for
71861         missing dependencies, multiple includes, etc.
71862
71863         * modules/c-strtold (Depends-on): Add xalloc.
71864         * modules/c-strtod (Depends-on): Add xalloc.
71865         * modules/hash (Depends-on): Add xalloc.
71866         (Files): Remove lib/xalloc.h.
71867
71868         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
71869         * modules/userspec (Files): Add lib/inttostr.h.
71870
71871 2005-03-23  Jim Meyering  <jim@meyering.net>
71872
71873         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
71874
71875 2005-03-22  Jim Meyering  <jim@meyering.net>
71876
71877         * modules/stat-macros: New module.
71878         * modules/canonicalize, modules/euidaccess, modules/file-type,
71879         * modules/filemode, modules/lchown, modules/makepath,
71880         * modules/rmdir, modules/stat: Depend on new stat-macros module
71881         rather than listing lib/stat-macros.h manually.
71882         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
71883
71884 2005-03-22  Jim Meyering  <jim@meyering.net>
71885
71886         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
71887
71888 2005-03-22  Bruno Haible  <bruno@clisp.org>
71889
71890         * config/srclist.txt: Replace target directory 'config' with
71891         'build-aux'.
71892         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
71893         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
71894         ../build-aux/.
71895
71896 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
71897
71898         * modules/chdir-long (Depends-on): Add mempcpy.
71899
71900         * modules/acl, modules/backupfile, modules/c-strtod,
71901         modules/c-strtold, modules/canon-host, modules/canonicalize,
71902         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
71903         modules/exclude, modules/exitfail, modules/file-type,
71904         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
71905         modules/getdate, modules/getline, modules/getpagesize,
71906         modules/getpass, modules/getugroups, modules/group-member,
71907         modules/hard-locale, modules/hash, modules/human, modules/idcache,
71908         modules/inttostr, modules/long-options, modules/makepath,
71909         modules/md5, modules/memcasecmp, modules/memcoll,
71910         modules/modechange, modules/mountlist, modules/path-concat,
71911         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
71912         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
71913         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
71914         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
71915         modules/strftime, modules/strndup, modules/strverscmp,
71916         modules/timespec, modules/unlocked-io, modules/userspec,
71917         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
71918         modules/yesno:
71919         Remove lib_SOURCES line from Makefile.am section, as this is now
71920         done automatically by the corresponding Autoconf macro.
71921
71922 2005-03-21  Jim Meyering  <jim@meyering.net>
71923
71924         Changes imported from coreutils.
71925
71926         * lib/cycle-check.c: Don't include xalloc.h.
71927
71928         * lib/path-concat.c: Don't include assert.h.
71929         (path_concat): Remove assertion that would have triggered
71930         for ABASE starting with more than one slash.
71931         Reported by Andreas Schwab.
71932
71933         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
71934         properly when ABASE is an absolute file name.
71935         Correct the description of this function.
71936         Include <assert.h>.
71937         Add an assertion and a test driver.
71938         This fixes a bug introduced on 2004-07-02.
71939         Andreas Schwab reported the resulting failure of cp --parents:
71940         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
71941
71942 2005-03-21  Jim Meyering  <jim@meyering.net>
71943
71944         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
71945         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
71946
71947 2005-03-21  Jim Meyering  <jim@meyering.net>
71948         and  Paul Eggert  <eggert@cs.ucla.edu>
71949
71950         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
71951         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
71952         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
71953         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
71954         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
71955         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
71956         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
71957         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
71958         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
71959         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
71960         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
71961         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
71962         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
71963         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
71964         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
71965         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
71966         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
71967         for these modules.
71968
71969 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
71970
71971         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
71972         (which shouldn't happen), generate nothing instead of returning 0
71973         immediately, so that nstrftime (NULL, ...) doesn't return 0.
71974
71975 2005-03-16  Bruno Haible  <bruno@clisp.org>
71976
71977         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
71978         HAVE_LONGLONG_64BIT.
71979
71980 2005-03-16  Bruno Haible  <bruno@clisp.org>
71981
71982         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
71983         HAVE_LONGLONG_64BIT.
71984
71985 2005-03-16  Bruno Haible  <bruno@clisp.org>
71986
71987         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
71988         HAVE_LONGLONG_64BIT.
71989
71990 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71991
71992         * lib/strftime.c (my_strftime): Prepend space to format so that we can
71993         reliably distinguish strftime failure from empty output on POSIX
71994         hosts.
71995
71996 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71997
71998         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
71999         (iconv_string): Don't guess a size-zero buffer, as that might cause
72000         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
72001         result would be 'too large', where 'too large' is (heuristically)
72002         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
72003         overflow concerns.  This will prevent some unwanted malloc failures
72004         when the inputs are very large.
72005
72006 2005-03-15  Karl Berry  <karl@gnu.org>
72007
72008         * config/srclist.txt (config.rpath): from gettext.
72009         * config/config.rpath: update.
72010
72011 2005-03-15  Bruno Haible  <bruno@clisp.org>
72012
72013         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
72014         to 'negate'.
72015
72016         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
72017         variable.
72018
72019         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
72020         results.
72021
72022 2005-03-14  Simon Josefsson  <jas@extundo.com>
72023
72024         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
72025         <fx@gnu.org>.
72026
72027 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
72028
72029         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
72030         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
72031         intprops.h.
72032         * lib/strtol.c: Likewise.
72033
72034 2005-03-14  Jim Meyering  <jim@meyering.net>
72035
72036         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
72037         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
72038         to be nonzero so that we (and caller) can detect the difference
72039         between a valid zero-length expansion and an error return, even
72040         when the underlying strftime fails before writing anything into
72041         that location.
72042
72043 2005-03-14  Bruno Haible  <bruno@clisp.org>
72044
72045         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
72046         Update from GNU gettext 0.14.3.
72047
72048 2005-03-10  Jim Meyering  <jim@meyering.net>
72049
72050         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
72051
72052 2005-03-10  Jim Meyering  <jim@meyering.net>
72053
72054         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
72055         so that this module works on systems without fchdir.
72056
72057 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
72058
72059         Factor int-properties macros into a single file, except for
72060         glibc-related files.
72061         * lib/intprops.h: New file.
72062         * lib/getloadavg.c: Include it instead of limits.h.
72063         (INT_STRLEN_BOUND): Remove.
72064         * lib/human.c: Include intprops.h.
72065         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
72066         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
72067         302/1000.
72068         * lib/inttostr.h: Include intprops.h instead of limits.h.
72069         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
72070         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
72071         for consistency with intprops.h.
72072         (time_t_is_integer, twos_complement_arithmetic): Use them.
72073         * lib/sig2str.h: Include <signal.h>, intprops.h.
72074         (INT_STRLEN_BOUND): Remove.
72075         * lib/strftime.c (TYPE_SIGNED): Remove.
72076         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
72077         * lib/strtol.c: Adjust comments to match intprops.h.
72078         * lib/userspec.c: Include intprops.h.
72079         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
72080         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
72081         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
72082         instead of rolling our own expressions.
72083         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
72084
72085         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
72086         instead of int.
72087         (my_strftime): Do not mishandle years close to INT_MAX, by doing
72088         the right thing even if adding 1900 would overflow.  Similarly
72089         for tm_mon + 1 and tm_yday + 1.
72090         Make %Y always equivalent to %C%y, and similarly for %G and %g.
72091         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
72092         (DO_SIGNED_NUMBER): New macro.
72093         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
72094
72095 2005-03-07  Bruno Haible  <bruno@clisp.org>
72096
72097         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
72098
72099 2005-03-07  Bruno Haible  <bruno@clisp.org>
72100
72101         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
72102
72103 2005-03-04  Derek R. Price  <derek@ximbiot.com>
72104
72105         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
72106         (func_import): Only replace files via --import when they have actually
72107         changed.
72108
72109 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72110
72111         * m4/mmap-anon.m4: New file.
72112         * m4/pagealign_alloc.m4: New file.
72113
72114 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72115             Bruno Haible  <bruno@clisp.org>
72116
72117         * modules/pagealign_alloc: New file.
72118         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
72119
72120 2005-03-03  Derek R. Price  <derek@ximbiot.com>
72121             Bruno Haible  <bruno@clisp.org>
72122
72123         * lib/pagealign_alloc.h: New file.
72124         * lib/pagealign_alloc.c: New file.
72125
72126 2005-03-03  Bruno Haible  <bruno@clisp.org>
72127
72128         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
72129         Use an all-permissive copyright notice, recommended by RMS.
72130
72131 2005-03-02  Bruno Haible  <bruno@clisp.org>
72132
72133         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
72134         of AIX, the replacement has to be done only after <string.h> is
72135         included, therefore not in config.h. stpncpy.h does the replacement,
72136         and stpncpy.c uses it.
72137
72138 2005-03-02  Bruno Haible  <bruno@clisp.org>
72139
72140         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
72141         stpncpy.c uses it.
72142
72143 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72144
72145         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
72146         The workaround isn't strictly needed for POSIX conformance, and
72147         it's too much of a pain to configure and maintain.  We'll ask
72148         people to fix their kernels instead.
72149         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
72150         (NANOSLEEP_BUG_WORKAROUND): Remove.
72151         (xnanosleep): Remove the workaround.
72152
72153 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72154
72155         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
72156         Reported by Derek Price.
72157         (Include): Add "timespec.h".
72158
72159         * modules/xnanosleep (Depends-on): Remove gethrxtime.
72160
72161 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72162
72163         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
72164         to detect nanosleep bug.
72165
72166 2005-03-01  Bruno Haible  <bruno@clisp.org>
72167
72168         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
72169
72170 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72171
72172         * modules/gethrxtime: New file.
72173         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
72174         (Depends-on): Add gethrxtime.
72175         (configure.ac): Add gl_XNANOSLEEP.
72176         (Makefile.am): Remove lib_SOURCES line.
72177
72178 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72179
72180         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
72181         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
72182
72183 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72184
72185         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
72186         * lib/timespec.h (gettime): Return void, since it always
72187         succeeds now.  All uses changed.
72188         * lib/gettime.c (gettime): Likewise.
72189         [HAVE_NANOTIME]: Prefer nanotime.
72190         Assume gettimeofday succeeds, as POSIX requires.
72191         Assime time () succeeds, since other code already does.
72192         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
72193         (timespec_subtract): Remove.
72194         (NANOSLEEP_BUG_WORKAROUND): New constant.
72195         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
72196         things considerably.  Use it only on GNU/Linux hosts, since the
72197         workaround shouldn't be needed elsewhere.
72198
72199 2005-02-24  Bruno Haible  <bruno@clisp.org>
72200
72201         * modules/gettext (Files): Add m4/glibc2.m4.
72202
72203 2005-02-24  Bruno Haible  <bruno@clisp.org>
72204
72205         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
72206         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
72207         * m4/progtest.m4:
72208         Update from GNU gettext 0.14.2.
72209         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
72210
72211 2005-02-24  Bruno Haible  <bruno@clisp.org>
72212
72213         * lib/localcharset.c: Update from GNU gettext 0.14.2.
72214         * lib/config.charset: Update from GNU gettext 0.14.2.
72215
72216 2005-02-24  Bruno Haible  <bruno@clisp.org>
72217
72218         * lib/gettext.h: Update from GNU gettext 0.14.2.
72219
72220 2005-02-23  Simon Josefsson  <jas@extundo.com>
72221
72222         * m4/iconvme.m4: New file.
72223
72224 2005-02-23  Jim Meyering  <jim@meyering.net>
72225
72226         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
72227         change.
72228         Thanks to Bruno Haible for catching it.
72229
72230 2005-02-22  Simon Josefsson  <jas@extundo.com>
72231
72232         * modules/iconvme: New file.
72233
72234         * MODULES.html.sh: Add iconvme.
72235
72236 2005-02-22  Simon Josefsson  <jas@extundo.com>
72237
72238         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
72239
72240 2005-02-22  Simon Josefsson  <jas@extundo.com>
72241
72242         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
72243
72244 2005-02-22  Jim Meyering  <jim@meyering.net>
72245
72246         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
72247         s/ifndef/ifdef/.
72248
72249 2005-02-20  Neil Conway  <neilc@samurai.com>
72250
72251         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
72252         returned by OSX/Darwin if the specified buffer is not large
72253         enough for the hostname.
72254
72255 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72256
72257         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
72258         pass it to _help, otherwise the latter coredumps trying to
72259         dereference state.root_argp.
72260
72261 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72262
72263         * modules/chdir-long (Depends-on): Add memrchr.
72264         * modules/memrchr (Files): Add lib/memrchr.h.
72265         (Include): "memrchr.h".
72266
72267 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72268
72269         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
72270
72271 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72272
72273         * lib/memrchr.h: New file.
72274         * lib/chdir-long.c: Include it.
72275         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
72276         Don't bother including stddef.h.
72277
72278 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72279
72280         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
72281         inclusion.
72282         Include <sys/types.h>, for dev_t.
72283         (ME_DUMMY, ME_REMOTE): Move from here....
72284         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
72285         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
72286         Dmitry V. Levin.
72287         Include mountlist.h first, to test the interface.
72288
72289 2005-01-29  Bruno Haible  <bruno@clisp.org>
72290
72291         * lib/progname.c (program_name): Initialize.
72292         Needed when linking statically on MacOS X.
72293
72294 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72295
72296         Sync from coreutils.
72297         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
72298         (Depends-on): Add c-strtod.
72299         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
72300
72301 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72302
72303         Sync from coreutils.
72304         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
72305
72306         Remove files that are specific to coreutils.
72307         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
72308
72309 2005-01-28  Bruno Haible  <bruno@clisp.org>
72310
72311         * modules/javacomp: New file.
72312         * MODULES.html.sh (Java): Add javacomp.
72313
72314 2005-01-28  Bruno Haible  <bruno@clisp.org>
72315
72316         * m4/javacomp.m4: New file, from GNU gettext.
72317
72318 2005-01-28  Bruno Haible  <bruno@clisp.org>
72319
72320         * lib/javacomp.sh.in: New file, from GNU gettext.
72321         * lib/javacomp.h: New file, from GNU gettext.
72322         * lib/javacomp.c: New file, from GNU gettext.
72323
72324 2005-01-26  Simon Josefsson  <jas@extundo.com>
72325
72326         * lib/gai_strerror.c: Use GPL in header.
72327
72328 2005-01-26  Bruno Haible  <bruno@clisp.org>
72329
72330         * modules/javaexec: New file.
72331         * MODULES.html.sh (Java): Add javaexec.
72332
72333 2005-01-26  Bruno Haible  <bruno@clisp.org>
72334
72335         * m4/javaexec.m4: New file, from GNU gettext.
72336
72337 2005-01-26  Bruno Haible  <bruno@clisp.org>
72338
72339         * lib/javaexec.sh.in: New file, from GNU gettext.
72340         * lib/javaexec.h: New file, from GNU gettext.
72341         * lib/javaexec.c: New file, from GNU gettext.
72342
72343 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72344
72345         * modules/lchown (Depends-on): Remove lchown.h
72346
72347 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72348
72349         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
72350         must be defined if the header file was not found, in order
72351         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
72352
72353 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72354
72355         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
72356         initializers for struct pentry_state.
72357         (__argp_error): Check return value of __asprintf
72358         (__argp_failure): Translate error message
72359
72360         * lib/argp-parse.c: Removed braces around the expansion of N_()
72361
72362 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72363
72364         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
72365         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
72366         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
72367         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
72368         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
72369         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
72370         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
72371         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
72372         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
72373         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
72374         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
72375         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
72376         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
72377         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
72378         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
72379         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
72380         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
72381         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
72382         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
72383         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
72384         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
72385         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
72386         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
72387         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
72388         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
72389         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
72390         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
72391         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
72392         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
72393         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
72394         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
72395         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
72396         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
72397         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
72398         xstrtol.m4, xstrtoumax.m4, yesno.m4:
72399         Use an all-permissive copyright notice, recommended by RMS.
72400
72401 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
72402
72403         * modules/chdir-long (Depends-on): Remove mempcpy.
72404
72405 2005-01-21  Jim Meyering  <jim@meyering.net>
72406
72407         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
72408         same value as for Solaris 9.
72409
72410         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
72411         component length.  This included changing the parameter to be
72412         of type `char *' rather than `char const *'.
72413         * lib/chdir-long.h (chdir_long): Update prototype.
72414
72415         * lib/openat.c (fdopendir, fstatat): New functions.
72416         * lib/openat.h: Include headers required for use of DIR and struct
72417         stat.
72418         [AT_SYMLINK_NOFOLLOW]: Define.
72419         (fdopendir, fstatat): Add prototypes.
72420
72421 2005-01-21  Bruno Haible  <bruno@clisp.org>
72422
72423         * modules/classpath: New file.
72424         * MODULES.html.sh (Java): Add classpath.
72425
72426 2005-01-21  Bruno Haible  <bruno@clisp.org>
72427
72428         * lib/classpath.h: New file, from GNU gettext.
72429         * lib/classpath.c: New file, from GNU gettext.
72430
72431 2005-01-20  Simon Josefsson  <jas@extundo.com>
72432
72433         * modules/version-etc-fsf: New file.
72434
72435 2005-01-20  Simon Josefsson  <jas@extundo.com>
72436
72437         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
72438         * lib/version-etc.c: Remove version_etc_copyright.
72439         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
72440         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
72441
72442 2005-01-20  Simon Josefsson  <jas@extundo.com>
72443
72444         * lib/base64.h (isbase64): Add.
72445
72446         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
72447         using a unsigned prototype, don't inline.
72448         (base64_decode): Use it.
72449
72450 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72451
72452         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
72453         it.
72454
72455 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72456
72457         * lib/save-cwd.c (save_cwd): Remove code to support the case
72458         where fchdir is missing or flaky.
72459
72460 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72461
72462         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
72463
72464 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72465
72466         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
72467         AC_LIBSOURCES now does this.
72468         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
72469         with new ullong_max module.
72470
72471 2005-01-19  Bruno Haible  <bruno@clisp.org>
72472
72473         * modules/sh-quote: New file.
72474         * MODULES.html.sh (Executing programs): Add sh-quote.
72475
72476 2005-01-19  Bruno Haible  <bruno@clisp.org>
72477
72478         * lib/sh-quote.h: New file, from GNU gettext.
72479         * lib/sh-quote.c: New file, from GNU gettext.
72480
72481 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72482
72483         Merge from coreutils.
72484         * m4/ullong_max.m4: New file.
72485         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
72486         (gl_MACROS): Assume localeconv exists.
72487
72488 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72489
72490         Merge changes from coreutils, as described below in several
72491         changelogs dated today.
72492
72493         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
72494         (O_DIRECTORY): Remove; not needed here, since "." must be
72495         a directory.  All uses removed.
72496         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
72497         universal on Suns, and we also need to test for IRIX.
72498         Revamp code to use 'if' rather than '#if'.
72499         Avoid unnecessary comparison of cwd->desc to 0.
72500
72501         * lib/utimens.c (futimens): Robustify the previous patch, by checking
72502         for known valid error numbers rather than observed invalid ones.
72503
72504 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
72505
72506         * modules/ullong_max: New file.
72507
72508         * modules/chdir-long, modules/openat: New files.
72509         * modules/save-cwd (Depends-on): Depend on chdir-long.
72510         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
72511
72512 2005-01-18  Jim Meyering  <jim@meyering.net>
72513
72514         Merge from coreutils.
72515         * m4/chdir-long.m4, m4/openat.m4: New files.
72516         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
72517         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
72518         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
72519         is sane and DOES follow symlinks.  Besides, testing 20 different
72520         systems found no broken chown implementations.
72521         Prompted by a change in rsync's copy of this macro.
72522         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
72523
72524         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
72525
72526         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
72527         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
72528         NULL-means-set-to-current-time semantics.
72529         Remove temporary file immediately, rather than waiting
72530         for configure's at-exit trap code to do it.
72531
72532 2005-01-18  Jim Meyering  <jim@meyering.net>
72533
72534         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72535
72536         * lib/utimens.c (futimens): Account for the fact that futimes
72537         can also fail with errno == ENOSYS or errno == ENOENT.
72538         Patch from Dmitry V. Levin.
72539
72540         Change the name of the robust chdir function from chdir to chdir_long.
72541         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
72542         (restore_cwd): Use chdir_long, not chdir.
72543         * lib/chdir-long.c: Renamed from chdir.c.
72544         * lib/chdir-long.h: Renamed from chdir.h.
72545         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
72546         Hurd.
72547
72548 2005-01-18  Bruno Haible  <bruno@clisp.org>
72549
72550         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
72551         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
72552         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
72553         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
72554         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
72555         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
72556         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
72557         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
72558         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
72559         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
72560         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
72561         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
72562         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
72563         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
72564         Use an all-permissive copyright notice, recommended by RMS.
72565
72566 2005-01-18  Bob Proulx  <bob@proulx.com>
72567
72568         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
72569         simplify offsetof() macro construct to avoid compile failure with
72570         native HP-UX 11.0 ANSI C compiler.
72571
72572 2005-01-17  Bruno Haible  <bruno@clisp.org>
72573
72574         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
72575         redundant because stpncpy.m4 takes care of it.
72576
72577 2005-01-17  Bruno Haible  <bruno@clisp.org>
72578
72579         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
72580
72581 2005-01-17  Bruno Haible  <bruno@clisp.org>
72582
72583         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
72584         used.
72585
72586 2005-01-17  Bruno Haible  <bruno@clisp.org>
72587
72588         * lib/fwriteerror.h (fwriteerror): Change specification to include
72589         fclose.
72590         * lib/fwriteerror.c: Include <stdbool.h>.
72591         (fwriteerror): At the end, close the file stream. Record whether
72592         stdout was already closed.
72593
72594 2005-01-17  Bruno Haible  <bruno@clisp.org>
72595
72596         * lib/execute.c (environ): Declare if needed.
72597         * lib/pipe.c (environ): Likewise.
72598         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
72599
72600 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72601
72602         * modules/argp: Depend on vsnprintf
72603
72604 2005-01-10  Jim Meyering  <jim@meyering.net>
72605
72606         * modules/closeout (Depends-on): Add atexit.
72607
72608 2005-01-06  Bruno Haible  <bruno@clisp.org>
72609
72610         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
72611
72612 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72613
72614         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
72615         definitions to be after all include files, to avoid collisions.
72616         Problem reported by Bob Proulx.
72617
72618 2005-01-04  Jim Meyering  <jim@meyering.net>
72619
72620         Changes imported from coreutils.
72621         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
72622         as the mkstemp template, use a temporary directory and an
72623         8.3-friendly template to avoid trouble on systems like DJGPP.
72624         Reported by Juan M. Guerrero via Stepan Kasal.
72625         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
72626         close. Remove the temporary directory right away, rather than waiting
72627         for configure's at-exit trap code to do it.
72628         Suggestion from Stepan Kasal.
72629
72630 2005-01-01  Simon Josefsson  <jas@extundo.com>
72631
72632         * gnulib-tool: Print #include directives when --import'ing.
72633
72634 2004-12-28  Simon Josefsson  <jas@extundo.com>
72635
72636         * tests/test-base64.c: Include required header files.  Remove
72637         unused variables.
72638
72639 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72640
72641         * modules/error (Depends-on): Remove gettext.
72642
72643 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72644
72645         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
72646         not needed.  This removes a dependency on the gettext module.
72647         [defined _LIBC]: Do not include <libintl.h>; not needed.
72648
72649 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72650
72651         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
72652         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
72653
72654 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72655
72656         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
72657         HAVE_DECL_STRTOLD.
72658
72659 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72660
72661         * modules/getdate (Depends-on): Remove alloca-opt.
72662
72663 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72664
72665         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
72666
72667 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72668
72669         * lib/argp-parse.c: Include <stddef.h>.
72670         (alignof, alignto): New macros.
72671         (parser_init): Don't assume that void * is aligned sufficiently
72672         for struct option.
72673
72674         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
72675         need to extend the stack.
72676         (YYINITDEPTH): New macro, so that the initial stack isn't overly
72677         large.
72678
72679 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72680
72681         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
72682
72683 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72684
72685         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
72686         (2004-10-24) change.  Apparently this was a false alarm.
72687
72688         * modules/getdate: Depend on alloca-opt, not alloca.
72689
72690 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72691
72692         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
72693         Remove now-obsolete comment about AIX.
72694         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
72695         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
72696         (YYMAXDEPTH): New macro.
72697
72698 2004-12-18  Simon Josefsson  <jas@extundo.com>
72699
72700         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
72701
72702 2004-12-18  Bruno Haible  <bruno@clisp.org>
72703
72704         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
72705
72706 2004-12-18  Bruno Haible  <bruno@clisp.org>
72707
72708         * lib/fatal-signal.c (fatal_signals): Make non-const.
72709         (init_fatal_signals): New function.
72710         (uninstall_handlers, install_handlers): Ignore signals that were set to
72711         SIG_IGN.
72712         (at_fatal_signal): Call init_fatal_signals.
72713         (init_fatal_signal_set): Likewise. Ignore signals that were set to
72714         SIG_IGN.
72715         Reported by Paul Eggert.
72716
72717 2004-12-18  Bruno Haible  <bruno@clisp.org>
72718
72719         * doc/alloca.texi: New file.
72720         * doc/alloca-opt.texi: New file.
72721
72722 2004-12-17  Jim Meyering  <jim@meyering.net>
72723
72724         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
72725         Otherwise, install-sh could exit with improper exit status when
72726         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
72727
72728 2004-12-16  Simon Josefsson  <jas@extundo.com>
72729
72730         * tests/test-base64.c: Add license.
72731
72732 2004-12-15  Stepan Kasal  <address@hidden>
72733
72734         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
72735
72736 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
72737
72738         * modules/getcwd (Files): Add m4/d-ino.m4.
72739         Suggested by Mark D. Baushke.
72740
72741 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72742
72743         * lib/getdate.y (textint): New member "negative".
72744         (time_zone_hhmm): New function.
72745         Expect 14 shift-reduce conflicts, not 13.
72746         (o_colon_minutes): New rule.
72747         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
72748         (yylex): Set the "negative" member of signed numbers.
72749
72750 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72751
72752         * doc/getdate.texi (Time of day items, Time zone items):
72753         Describe new formats +00:00, UTC+00:00.
72754
72755 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72756
72757         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
72758         spurious "-l"s.  Problem reported by Stepan Kasal.
72759
72760 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
72761
72762         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
72763         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
72764
72765 2004-12-04  Simon Josefsson  <jas@extundo.com>
72766
72767         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
72768         Vandoorselaere <yoann@prelude-ids.org>.
72769
72770 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72771
72772         Changes imported from coreutils.
72773         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
72774         exist.
72775         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
72776
72777 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72778
72779         Changes imported from coreutils.
72780         * lib/hard-locale.c: Assume <locale.h> exists.
72781         Include "strdup.h".
72782         (GLIBC_VERSION): New macro.
72783         (hard_locale): Assume setlocale exists.
72784         Rewrite to avoid #ifdef.
72785         Use strdup rather than malloc + strcpy.
72786         * lib/human.c: Assume <locale.h> exists.
72787         (human_readable): Assume localeconv exists.
72788
72789 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72790
72791         * modules/hard-locale (Depends-on): Add strdup.
72792
72793 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72794
72795         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
72796         convert T2, not T.  (Imported from libc.)
72797
72798 2004-11-30  Simon Josefsson  <jas@extundo.com>
72799
72800         * modules/restrict (License): Change to LGPL.
72801
72802 2004-11-30  Simon Josefsson  <jas@extundo.com>
72803
72804         * m4/restrict.m4: Add copyright and copying conditions.
72805
72806 2004-11-30  Simon Josefsson  <jas@extundo.com>
72807
72808         * m4/base64.m4: New file.
72809
72810 2004-11-30  Simon Josefsson  <jas@extundo.com>
72811
72812         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
72813         base64.
72814
72815         * tests/test-base64.c: New file.
72816
72817         * modules/base64: New file.
72818
72819 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
72820
72821         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
72822         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
72823
72824         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
72825
72826 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
72827
72828         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
72829         (__getcwd.c): Don't restore errno; glibc doesn't.
72830         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
72831         first, falling back to our code only if its results look suspicious.
72832         Ensure that the resulting buffer is only as large as necessary.
72833
72834         * lib/readutmp.c: Include readutmp.h first.
72835         Include <errno.h>, since readutmp.h no longer does that.
72836         * lib/readutmp.h: Don't include <errno.h>,
72837         <sys/param.h>, <time.h>; not needed to establish interface.
72838         (errno): Remove decl.
72839         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
72840         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
72841         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
72842
72843 2004-11-28  Simon Josefsson  <jas@extundo.com>
72844
72845         * lib/base64.h, base64.c: New file.
72846
72847 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72848
72849         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
72850
72851 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72852
72853         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
72854         (Depends-on): Remove pathmax, same.  Add mempcpy.
72855         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
72856         (Makefile.am): Append getcwd.h to lib_SOURCES.
72857         (Include): Add getcwd.h.
72858         (Maintainer): Change from Jim Meyering to "all, glibc",
72859         since getdate now uses intended-for-glibc code.
72860         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
72861         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
72862
72863 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72864
72865         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
72866         HP's ANSI C compiler.
72867         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
72868         Declaring int functions causes warnings on some modern systems and
72869         shouldn't be needed to compile on ancient ones.
72870         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
72871         defined.
72872
72873         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
72874         with the following changes.
72875         (__set_errno): Parenthesize properly.
72876         Include <stdbool.h>.
72877         (MIN, MAX, MATCHING_INO): New macros.
72878         (__getcwd): Define with prototype, not K&R form.
72879         Use heuristics to allocate default buffer on stack if possible.
72880         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
72881         behavior, and to avoid the PATH_MAX limit when computing
72882         ../../../../...
72883         Use MATCHING_INO to compare inode number to file.
72884         Check for arithmetic overflow in size calculations.
72885         Fix bug in reallocation of dot array that caused getcwd to fail
72886         on directories nested deeper than 75.
72887         Be more careful about saving errno on error.
72888         Do not use realloc; use only free+malloc, as this is a bit
72889         more flexible and avoids a needless copy operation.
72890         Do not inspect st_dev and st_ino for symbolic links; POSIX
72891         doesn't specify the latter.
72892         Check for closedir errors.
72893         Avoid needless casts.
72894         Use "#ifdef weak_alias" around weak_alias, to be like other
72895         glibc code.
72896         The following changes to getcwd.c have effect only when used in
72897         gnulib; they have no effect inside glibc proper.
72898         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
72899         as alloca isn't used.
72900         (alloca, __alloca): Likewise.
72901         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
72902         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72903         unconditionally, as gnulib assumes C89 or better.
72904         Do not include <sys/param.h>.
72905         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
72906         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
72907         better.
72908         (NULL) [!defined NULL]: Remove; we assume C89 or better.
72909         Include <dirent.h> in a way that is compatible with modern Autoconf.
72910         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
72911         New macros, if not already defined.
72912         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
72913         Use "_LIBC", not "defined _LIBC", for consistency.
72914         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
72915         a mempcpy module.
72916         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
72917         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
72918         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
72919         credit only to Jim Meyering and adjust the copyright dates.
72920         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
72921         <stdlib.h>, <unistd.h>, "pathmax.h".
72922         Instead, include "xgetcwd.h" (first) and "getcwd.h".
72923         (INITIAL_BUFFER_SIZE): Remove.
72924         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
72925
72926 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72927
72928         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
72929         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
72930         Use the _ONCE methods, for efficiency.
72931         Check for fcntl.h.  In test program, include <errno.h>
72932         and <fcntl.h> if available.  Remove old K&R cruft from
72933         test program.  Check for common errors in GNU/Linux,
72934         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
72935         don't do AC_LIBOBJ, as that's getcwd.m4's job.
72936         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
72937         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
72938         name accordingly.
72939         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
72940         accommodate new getcwd.c.
72941         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
72942         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
72943         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
72944         that's all we need now.
72945
72946 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72947
72948         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
72949         argp-parse.c depends on getopt internals, that means we should
72950         always use our getopt, to be on the safe side.
72951         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
72952         order not to spoil the result of an eventual previous invocation
72953         of gl_GETOPT_SUBSTITUTE.
72954
72955 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72956
72957         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
72958         redefinition warnings. To avoid them, include the defines
72959         in `#if !defined __need_getopt ... #endif'. The only place
72960         where __getopt_argv_const is used is in definitions
72961         of getopt_long and getopt_long_only below, which are as well
72962         protected by `#ifndef __need_getopt'.
72963         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
72964         __need_getopt after including <stdio.h> and <unistd.h> These
72965         headers might have defined it.
72966
72967 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
72968
72969         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
72970
72971 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
72972
72973         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
72974         (futimens): New function, which uses futimes if available.
72975         (futimens, utimens): Support timespec==NULL, with same semantics
72976         as utime and utimens.
72977         * lib/utimens.h (futimens): New decl.
72978
72979 2004-11-23  Jim Meyering  <jim@meyering.net>
72980
72981         * lib/getopt_.h: Remove trailing blanks.
72982
72983 2004-11-23  Jim Meyering  <jim@meyering.net>
72984
72985         * lib/__fpending.c: Add comment.
72986
72987 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
72988
72989         * modules/canonicalize (Depends-on): Add xreadlink.
72990         Problem reported by James Youngman.
72991
72992 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72993
72994         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
72995         New macros.
72996         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
72997         optopt): Use them instead of invoking ## directly; otherwise, the
72998         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
72999
73000 2004-11-19  Bruno Haible  <bruno@clisp.org>
73001
73002         * lib/strtok_r.c: Move comments from here...
73003         * lib/strtok_r.h: ... to here.
73004
73005 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73006
73007         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
73008         implementations that mishandle size_t overflow.
73009
73010 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73011
73012         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
73013         might fail.  Problem reported by Yoann Vandoorselaere.
73014         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
73015         implementations that mishandle size_t overflow.
73016
73017 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73018
73019         * modules/canon-host (Depends-on): Add strdup.
73020
73021 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73022
73023         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
73024
73025 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73026
73027         * lib/canon-host.c: Include "strdup.h".
73028         (canon_host): Use getaddrinfo if available, so that IPv6 works.
73029         Use strdup instead of malloc/strcpy to duplicate strings.
73030
73031         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
73032         (human_space_before_unit): New constant.
73033         * lib/human.c (human_readable): Support it.
73034
73035         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
73036         (xgetcwd): Set errno correctly when failing.
73037         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
73038         the failure is actually due to a PATH_MAX problem.
73039
73040         Further getopt changes to make it more likely that glibc will
73041         buy the changes back.
73042         * lib/getopt.c (POSIXLY_CORRECT): New constant.
73043         (getopt): Use it, so to preserve glibc semantic
73044         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
73045         when compiling for libc.
73046         * lib/getopt_.h (__getopt_argv_const): Bring it back.
73047         (getopt_long, getopt_long_only): Use it.
73048
73049         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73050         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
73051         (getopt): Argv is now char * const *, as per standard.
73052         (_getopt_internal_r, _getopt_internal): Argv is now char **,
73053         not char *__getopt_argv_const *.
73054         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73055         _getopt_long_only_r): Likewise.
73056         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
73057         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73058         _getopt_long_r, _getopt_long_only_r): Likewise.
73059         * lib/getopt_.h (__getopt_argv_const): Remove.
73060         (getopt): Argv is now char * const *, as per standard.
73061
73062         * lib/getdate.y (tORDINAL): New token.
73063         (day, relunit): Allow it for relative times.
73064         (relative_time_table): Use tORDINAL for ordinals.
73065
73066 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73067
73068         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
73069         Document that "second" isn't allowed as an ordinal number.
73070
73071 2004-11-16  Jim Meyering  <jim@meyering.net>
73072
73073         * modules/closeout (Depends-on): Add fpending.
73074
73075 2004-11-15  Jim Meyering  <jim@meyering.net>
73076
73077         * lib/closeout.c: Include "__fpending.h" once again.
73078         Include <stdbool.h>.
73079         (close_stdout): Don't fail just because stdout was closed initially,
73080         since some programs don't write to stdout in the normal course of
73081         operation (other than --version and --help), and we don't want this
73082         function to make e.g. `touch file >&-' fail.
73083         But do fail if it was closed and someone has tried to write to it.
73084         E.g., `printf foo >&-' must fail.
73085
73086 2004-11-13  Jim Meyering  <jim@meyering.net>
73087
73088         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
73089
73090 2004-11-12  Simon Josefsson  <jas@extundo.com>
73091
73092         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
73093         small doc fix is still pending.
73094
73095 2004-11-11  Simon Josefsson  <jas@extundo.com>
73096
73097         * modules/strtok_r: New file.
73098
73099         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73100         strtok_r.
73101
73102 2004-11-11  Simon Josefsson  <jas@extundo.com>
73103
73104         * m4/strtok_r.m4: New file.
73105
73106         * m4/getopt.m4: Replace opterr.
73107
73108 2004-11-11  Simon Josefsson  <jas@extundo.com>
73109
73110         * lib/strtok_r.h, strtok_r.c: New file.
73111
73112 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73113
73114         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
73115         of replacing opterr, getopt, etc.  This should handle the
73116         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
73117
73118 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
73119
73120         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
73121         we can stop lying to compilers about the constness of argv when we
73122         are compiled outside glibc.
73123         (getopt, getopt_long, getopt_long_only): Use it.
73124         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
73125         _getopt_internal, getopt): Likewise.
73126         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
73127         _getopt_long_only_r): Likewise.
73128         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
73129         _getopt_long_r, _getopt_long_only_r): Likewise.
73130
73131         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
73132         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
73133         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
73134         the other external symbols.
73135         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
73136         declaration, since the above renaming now works around collisions.
73137
73138 2004-11-11  Jim Meyering  <jim@meyering.net>
73139
73140         * lib/linebreak.c: Remove trailing blanks.
73141         * lib/alloca_.h: Likewise.
73142         * lib/acosl.c: Likewise.
73143         * lib/euidaccess.c: Likewise.
73144         * lib/allocsa.h: Likewise.
73145
73146 2004-11-10  Simon Josefsson  <jas@extundo.com>
73147
73148         * m4/getaddrinfo.m4: New file.
73149
73150 2004-11-10  Simon Josefsson  <jas@extundo.com>
73151
73152         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
73153
73154 2004-11-10  Simon Josefsson  <jas@extundo.com>
73155
73156         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73157         getaddrinfo.
73158
73159         * modules/getaddrinfo: New file.
73160
73161 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73162
73163         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
73164
73165 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73166
73167         * lib/mktime.c (SHR): New macro, which is a portable
73168         substitute for >> that should work even on Crays.
73169         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
73170         Problem reported by Mark D. Baushke in
73171         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
73172         * lib/getdate.y (SHR): Likewise.
73173         (tm_diff): Use it.
73174         * lib/strftime.c (SHR): Likewise.
73175         (tm_diff): Use it.
73176         * lib/quotearg.c (struct quoting_options): Use unsigned int for
73177         quote_these_too, so that right shifts are well defined.  All uses
73178         changed.
73179
73180 2004-11-10  Jim Meyering  <jim@meyering.net>
73181
73182         Ensure that no close failure goes unreported.
73183         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
73184         return early when it seems there's nothing to flush.
73185         Don't include __fpending.h.
73186
73187 2004-11-10  Jim Meyering  <jim@meyering.net>
73188
73189         * modules/closeout (Depends-on): Remove fpending.
73190
73191 2004-11-10  Jim Meyering  <jim@meyering.net>
73192
73193         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
73194
73195 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73196
73197         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
73198         gl_FUNC_STRFTIME.
73199         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
73200         and AC_REQUIRE when possible, to avoid duplicate checks.
73201         Check for <wchar.h>.
73202
73203 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73204
73205         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
73206
73207 2004-11-09  Bruno Haible  <bruno@clisp.org>
73208
73209         * m4/sockpfaf.m4: New file.
73210
73211 2004-11-05  Bruno Haible  <bruno@clisp.org>
73212
73213         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
73214         Reported by Mark D. Baushke <mdb@cvshome.org>.
73215
73216 2004-11-04  Bruno Haible  <bruno@clisp.org>
73217
73218         2004-09-11  Bruno Haible  <bruno@clisp.org>
73219                 * allocsa.valgrind: New file.
73220         2004-02-06  Bruno Haible  <bruno@clisp.org>
73221                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
73222                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
73223                 Reported by Christopher Seip <chris.seip@hp.com>.
73224
73225 2004-11-04  Bruno Haible  <bruno@clisp.org>
73226
73227         * modules/allocsa (Files): Add lib/allocsa.valgrind.
73228         (Makefile.am): Distribute it.
73229
73230 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73231
73232         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
73233         with errno == ERANGE if the buffer is too small.
73234         Problem reported by Mark D. Baushke.
73235
73236 2004-11-03  Albert Chin  <china@thewrittenword.com>
73237             Paul Eggert  <eggert@cs.ucla.edu>
73238
73239         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
73240         equivalent, substitute $ac_type for equivalent type rather than
73241         blindly using uint32_t *always* which won't work if uint32_t is not
73242         available.  Define _UINT32_T to work around typedef of uint32_t if
73243         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
73244         2.5.1.
73245
73246 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73247
73248         * m4/jm-macros.m4: Sync from coreutils.
73249         (gl_MACROS): Check for mbrlen, for pathchk.
73250         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
73251
73252 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73253
73254         * lib/xreadlink.c (MAXSIZE): New macro.
73255         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
73256         size does not exceed MAXSIZE.  Avoid cast.
73257         As suggested by Mark D. Baushke in
73258         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
73259         if readlink fails with buffer size just under MAXSIZE, try again
73260         with MAXSIZE.
73261
73262 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
73263
73264         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
73265
73266 2004-11-02  Derek R. Price  <derek@ximbiot.com>
73267         and  Paul Eggert  <eggert@cs.ucla.edu>
73268
73269         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
73270         (get_date): Overparenthesize to avoid GCC warning.
73271
73272 2004-11-02  Bruno Haible  <bruno@clisp.org>
73273
73274         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
73275         returns void.
73276
73277 2004-11-02  Bruno Haible  <bruno@clisp.org>
73278
73279         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
73280         function returns void.
73281
73282 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73283
73284         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
73285         fflush_unlocked, flockfile, funlockfile, funlockfile,
73286         fputs_unlocked, putc_unlocked.
73287
73288 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
73289
73290         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73291         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
73292         already declared.
73293
73294 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73295
73296         * modules/getdate (Files): Add doc/getdate.texi.
73297         (Depends-on): Add setenv, xalloc.
73298
73299 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73300
73301         * lib/getdate.y: Add support for TZ="foo" within a date string.
73302         Fix some bugs near time_t boundaries.  Reject dates with
73303         out-of-range components, e.g., "Sept 31".
73304         Include <stdlib.h>, "setenv.h", "xalloc.h".
73305         (ISDIGIT_LOCALE): Remove; unused.
73306         Note that the TZ and time functions used here are not reentrant.
73307         (mktime_ok, get_tz): New functions.
73308         (TZBUFSIZE): New constant.
73309         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
73310         This requires that we sometimes generate our own TZ="XXX..." setting.
73311
73312 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73313
73314         * doc/getdate.texi: New file, from coreutils with modifications for
73315         the new TZ parsing.
73316
73317 2004-10-27  Derek R. Price  <derek@ximbiot.com>
73318
73319         * lib/mktime.c (not_equal_tm): Remove redundant check.
73320
73321 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73322
73323         * modules/regex (lib_SOURCES): Add regex.c.
73324         Reported by James Youngman in
73325         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
73326
73327 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73328
73329         * lib/getdate.y: Use Bison 1.875 features, and some minor
73330         code cleanups.  This change does not affect semantics.
73331         Don't include <stdlib.h>; no longer needed.
73332         Don't include unlocked-io.h; only the "#if TEST" code uses
73333         stdio, and performance isn't crucial there.
73334         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
73335         Bison 1.875 features as described below.
73336         All uses of "PC." replaced by "pc->".
73337         (YYSTYPE): Add a forward declaration.
73338         (yylex, yyerror): Use full prototypes in forward decls.
73339         Use "%pure-parser" rather than obsolescent "%pure_parser".
73340         Use %parse-param and %lex-param instead of obsolescent
73341         YYPARSE_PARAM and YYLEX_PARAM.
73342         (meridian_table, month_and_day_table, time_units_table,
73343         relative_time_table, time_zone_table, military_table,
73344         lookup_zone, lookup_word, get_date):
73345         Use NULL instead of 0 where appropriate.
73346         (to_hour): Avoid abort (), to avoid a dependency on
73347         stdlib.h.
73348         (yyerror, yylex): Now accepts parser_control * arg.
73349         (main) [TEST]: Use '\0' rather than 0 for char.
73350
73351 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73352
73353         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
73354
73355 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
73356
73357         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
73358         It's now the caller's responsibility to handle the case where
73359         !HAVE_GETPAGESIZE && !defined getpagesize.
73360
73361         * lib/mktime.c (leapyear): Arg is long int, not int.
73362
73363 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
73364
73365         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
73366
73367 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73368
73369         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
73370         missing.  Problem reported by James Youngman.
73371
73372 2004-10-16  Simon Josefsson  <jas@extundo.com>
73373
73374         * gnulib-tool: Fix comments.  Fix parse problem.
73375         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
73376
73377 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
73378
73379         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
73380         implementation of getopt_long.  Problem reported by Alexander Taler in:
73381         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
73382
73383 2004-10-15  Bruno Haible  <bruno@clisp.org>
73384
73385         * gnulib-tool: Untabify. Initialize supplied_libname.
73386         (func_usage): More homogenous output.
73387         (func_modules_transitive_closure, func_modules_to_filelist,
73388         func_emit_lib_Makefile_am): New functions.
73389         (func_import): New function, extracted from big case statement. Use
73390         func_get_license, func_modules_transitive_closure,
73391         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
73392         opt_lgpl. Don't use test -a, as it's not portable.
73393         (func_create_testdir): Use func_modules_transitive_closure,
73394         func_modules_to_filelist, func_emit_lib_Makefile_am.
73395
73396 2004-10-15  Bruno Haible  <bruno@clisp.org>
73397
73398         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
73399
73400 2004-10-15  Bruno Haible  <bruno@clisp.org>
73401
73402         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
73403         the portions belonging to each module.
73404         Suggested by Derek Robert Price <derek@ximbiot.com>.
73405
73406 2004-10-12  Simon Josefsson  <jas@extundo.com>
73407
73408         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
73409         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
73410         to real functions.
73411
73412 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73413
73414         * modules/vsnprintf: New file.
73415
73416 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73417
73418         * m4/vsnprintf.m4: New file.
73419
73420 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73421
73422         * lib/vsnprintf.h: New file.
73423         * lib/vsnprintf.c: New file.
73424
73425 2004-10-11  Bruno Haible  <bruno@clisp.org>
73426
73427         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
73428         vsnprintf.
73429
73430 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73431
73432         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
73433
73434 2004-10-07  Bruno Haible  <bruno@clisp.org>
73435
73436         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
73437         fits into the provided buffer.
73438
73439 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73440
73441         * lib/diacrit.c, diacrit.h: Add GPL notice.
73442
73443         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
73444         notice.
73445         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
73446         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
73447         This avoids a potential constant-folding bug.
73448
73449 2004-10-05  Bruno Haible  <bruno@clisp.org>
73450
73451         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
73452         for the declaration of strsep.
73453
73454 2004-10-05  Bruno Haible  <bruno@clisp.org>
73455
73456         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
73457
73458 2004-10-04  Simon Josefsson  <jas@extundo.com>
73459
73460         * modules/memmem: New file.
73461         * tests/test-memmem.c: New file.
73462         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
73463
73464 2004-10-04  Simon Josefsson  <jas@extundo.com>
73465
73466         * m4/memmem.m4: New file.
73467
73468 2004-10-04  Simon Josefsson  <jas@extundo.com>
73469
73470         * lib/memmem.h: New file.
73471         * lib/memmem.c: New file, taken from glibc.
73472
73473 2004-10-04  Simon Josefsson  <jas@extundo.com>
73474
73475         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
73476         '#ifdef USE_UNLOCKED_IO'.
73477
73478 2004-10-04  Simon Josefsson  <jas@extundo.com>
73479
73480         * config/srclist.txt: Add memmem from glibc.
73481
73482 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73483
73484         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
73485
73486         * modules/argmatch, modules/argp, modules/closeout, modules/error,
73487         modules/exclude, modules/getdate, modules/getline,
73488         modules/getndelim2, modules/getpass, modules/getpass-gnu,
73489         modules/getusershell, modules/linebuffer, modules/md5,
73490         modules/mountlist, modules/posixtm, modules/readtokens,
73491         modules/readutmp, modules/regex, modules/sha1,
73492         modules/version-etc, modules/yesno:
73493         Remove dependency on unlocked-io.
73494
73495 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73496
73497         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
73498
73499         * m4/unlocked-io.m4: Add copyright notice.
73500         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
73501
73502 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73503
73504         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
73505         * lib/xmalloc.c (xmemdup): Likewise.
73506         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
73507         XFREE): Remove these long-obsolescent macros.
73508         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
73509         * lib/xstrdup.c: Remove.
73510
73511         * lib/regex.c (re_comp): Cast gettext return value to char *,
73512         Problem reported by Martin Neitzel via Mark D. Baushke.
73513
73514 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
73515
73516         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
73517         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
73518         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
73519         regex.c, sha1.c, version-etc.c, yesno.c:
73520         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
73521         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
73522         the includer's responsibility.
73523
73524         Sync from coreutils.
73525
73526         * lib/modechange.c (mode_compile): Don't decrement a pointer that
73527         points to the start of a string, as the C Standard says the
73528         resulting behavior is undefined.
73529
73530         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
73531         simple -> simple_backups, numbered_existing ->
73532         numbered_existing_backups, numbered -> numbered_backups
73533         to avoid shadowing problems.  All uses changed.
73534         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
73535         * lib/backupfile.c (check_extension, numbered_backup):
73536         Rename locals to avoid shadowing 'basename'.
73537         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
73538         once.
73539
73540         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
73541         * lib/.cvsignore: Add getopt.h.
73542
73543 2004-10-04  Bruno Haible  <bruno@clisp.org>
73544
73545         * modules/README: New file.
73546         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
73547         not a module.
73548
73549 2004-10-02  Jim Meyering  <jim@meyering.net>
73550
73551         * lib/dirfd.h, getpagesize.h: Add copyright notice.
73552
73553 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73554
73555         * modules/strsep: New file.
73556
73557 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73558
73559         * m4/strsep.m4: New file.
73560
73561 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73562
73563         * lib/strsep.h: New file.
73564         * lib/strsep.c: New file.
73565
73566 2004-10-01  Simon Josefsson  <jas@extundo.com>
73567
73568         * lib/snprintf.c (snprintf): Handle size==0.
73569
73570 2004-10-01  Simon Josefsson  <jas@extundo.com>
73571             Bruno Haible  <bruno@clisp.org>
73572
73573         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
73574         (snprintf): Declare 'args'.
73575
73576 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
73577
73578         * lib/snprintf.c: Remove comments as to why each header is needed.
73579
73580 2004-10-01  Bruno Haible  <bruno@clisp.org>
73581
73582         * MODULES.html.sh: Add strsep.
73583
73584 2004-09-30  Simon Josefsson  <jas@extundo.com>
73585
73586         * modules/snprintf: New file.
73587
73588 2004-09-30  Simon Josefsson  <jas@extundo.com>
73589
73590         * m4/snprintf.m4: New file.
73591
73592 2004-09-30  Simon Josefsson  <jas@extundo.com>
73593
73594         * lib/snprintf.h, lib/snprintf.c: New files.
73595
73596 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73597
73598         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
73599         (hol_entry_help): Never translate an empty string.
73600         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
73601         * lib/argp.h (OPTION_NO_TRANS): New option.
73602
73603 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73604
73605         * modules/argp (Maintainer): Replace Simon Josefsson
73606         by Sergey Poznyakoff.
73607
73608 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73609
73610         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
73611         changes merged back into glibc.
73612
73613 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
73614
73615         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
73616
73617 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73618
73619         * lib/xvasprintf.c: Include xalloc.h.
73620         (xvasprintf): Use xalloc_die, not xmalloc_die.
73621
73622 2004-09-29  Bruno Haible  <bruno@clisp.org>
73623
73624         * modules/alloca-opt: New file, derived from modules/alloca.
73625         * modules/allocsa: Depend on alloca-opt instead of alloca.
73626         * modules/setenv: Likewise.
73627         * modules/vasnprintf: Likewise.
73628         * MODULES.html.sh: Add alloca-opt.
73629
73630 2004-09-28  Simon Josefsson  <jas@extundo.com>
73631
73632         * gnulib-tool: New parameter --lgpl, to asseert that modules are
73633         LGPL, and to replace license template from GPL to LGPL.
73634
73635 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73636
73637         * modules/dummy: Change license to LGPL.
73638
73639 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73640
73641         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
73642
73643 2004-09-24  Simon Josefsson  <jas@extundo.com>
73644
73645         * modules/minmax (License): Change from GPL to LGPL.
73646
73647 2004-09-23  Simon Josefsson  <jas@extundo.com>
73648
73649         * gnulib-tool (--import): Typo.
73650
73651 2004-09-23  Simon Josefsson  <jas@extundo.com>
73652
73653         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
73654
73655 2004-09-22  Bruno Haible  <bruno@clisp.org>
73656
73657         * modules/*: Add 'License' field.
73658         * gnulib-tool: Accept --extract-license option.
73659         (func_get_license): New function.
73660
73661 2004-09-21  Bruno Haible  <bruno@clisp.org>
73662
73663         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
73664         Reported by Simon Josefsson.
73665
73666 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73667
73668         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
73669         gl_AC_TYPE_LONG_LONG.
73670
73671 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73672
73673         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
73674
73675 2004-09-18  Simon Josefsson  <jas@extundo.com>
73676         and  Paul Eggert  <eggert@cs.ucla.edu>
73677
73678         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
73679         calls with autoreconf.  Define GL_LIB.
73680
73681 2004-09-14  Karl Berry  <karl@gnu.org>
73682
73683         * config/srclist.txt: unsync setenv.c, sigh.
73684
73685 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73686
73687         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
73688         Problem reported by Bruno Haible in:
73689         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
73690
73691 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73692
73693         * config/srclist.txt: Comment out argp-pvh.c.
73694
73695 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
73696
73697         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
73698         in case some system header has #define'd it.  Problem reported by
73699         Soeren D. Schulze in
73700         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
73701
73702 2004-09-09  Karl Berry  <karl@gnu.org>
73703
73704         * regex.[ch]: delete from the root.  These were supposed to be
73705                 synced with emacs cvs, but this has not happened for about
73706                 a year, and anyway nothing else uses emacs regex.[ch].
73707                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
73708                 lib/regex[.ch] is untouched.
73709
73710 2004-09-09  Bruno Haible  <bruno@clisp.org>
73711
73712         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
73713
73714 2004-09-09  Bruno Haible  <bruno@clisp.org>
73715
73716         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
73717         modifications.
73718         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
73719
73720 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73721
73722         * modules/xvasprintf: New file.
73723         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
73724
73725 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73726
73727         * lib/xvasprintf.h: New file.
73728         * lib/xvasprintf.c: New file.
73729         * lib/xasprintf.c: New file.
73730
73731 2004-09-08  Bruno Haible  <bruno@clisp.org>
73732
73733         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
73734
73735 2004-09-08  Bruno Haible  <bruno@clisp.org>
73736
73737         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
73738         length is > INT_MAX.
73739         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
73740         more.
73741
73742 2004-09-08  Bruno Haible  <bruno@clisp.org>
73743
73744         * lib/stdint_.h: New file, taken from GNU clisp.
73745
73746 2004-09-08  Bruno Haible  <bruno@clisp.org>
73747             Oskar Liljeblad  <oskar@osk.mine.nu>
73748
73749         * modules/stdint: New file.
73750         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
73751
73752 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73753
73754         Import from coreutils.
73755         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
73756         strings on unbounded length.  alloca's performance benefits aren't
73757         that important here.
73758         (V_STRDUP): Remove.
73759         (parse_with_separator): New function, with most of the internals
73760         of the old parse_user_spec.  Allow user to omit both user and group,
73761         for compatibility with FreeBSD.
73762         Clone only the user name, not the entire spec.
73763         Do not set *uid, *gid unless entirely successful.
73764         Avoid memory leak in some failing cases.
73765         Fix regression for USER.GROUP reported by Dmitry V. Levin in
73766         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
73767         (parse_user_spec): Rewrite to use parse_with_separator.
73768
73769 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73770
73771         * modules/userspec: Don't depend on alloca.
73772
73773 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73774
73775         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
73776
73777 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73778
73779         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
73780         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
73781         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
73782
73783 2004-08-16  Simon Josefsson  <jas@extundo.com>
73784
73785         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
73786         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
73787         Add --dry-run for --import.
73788         Let user provided command line parameters override configure.ac
73789         settings.
73790
73791 2004-08-12  Simon Josefsson  <jas@extundo.com>
73792
73793         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
73794         as discussed with Paul Eggert in threads rooted at
73795         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
73796         and
73797         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
73798         Before, the test was empty, and relied on ELIDE_CODE in source
73799         code.)
73800         (gl_PREREQ_GETOPT): New macro.
73801         (gl_GETOPT): Use them.
73802
73803 2004-08-12  Simon Josefsson  <jas@extundo.com>
73804
73805         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
73806         * lib/getopt_.h: Renamed from getopt.h.
73807
73808 2004-08-12  Simon Josefsson  <jas@extundo.com>
73809
73810         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
73811         Change default library name from libfoo to libgnu.
73812         Now, if you have a configure.ac that says:
73813                 gl_SOURCE_BASE(gl)
73814                 gl_M4_BASE(gl/m4)
73815                 gl_MODULES(error getopt etcetera)
73816                 gl_INIT
73817         you can import all you need by running:
73818                 ../gnulib/gnulib-tool --import
73819
73820         * modules/getopt (Files): Rename getopt.h to getopt_.h.
73821         (Makefile.am): Rewrite, use logic from argz.
73822         (Include): Use <getopt.h> instead of "getopt.h".
73823
73824 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73825
73826         * modules/argp (Files): Add m4/unlocked-io.m4.
73827         (Depends-on): Add extensions.
73828
73829 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73830
73831         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
73832         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
73833         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
73834         Check for program_invocation_name, program_invocation_short_name,
73835         flockfile, funlockfile, features.h, _getopt_long_only_r.
73836
73837 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73838
73839         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
73840         its complicated substitute.
73841         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
73842         and program_invocation_name.
73843         (__argp_basename) [!_LIBC]: Remove; the only use was
73844         replaced by its body.
73845         (__argp_short_program_name): Change condition from
73846         !defined __argp_short_program_name to
73847         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
73848         to match argp-namefrob.h.
73849         (__argp_failure): Don't assume strerror_r returns char *.
73850         * lib/argp-parse.c (N_): Define unconditionally.
73851         (argp_default_options): Fill out initializers with 0 to avoid
73852         gcc warnings.
73853
73854 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73855
73856         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
73857         getopt1.c.
73858
73859 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73860
73861         Merge from coreutils.
73862
73863         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
73864
73865         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
73866         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
73867
73868 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73869
73870         Merge from coreutils.
73871
73872         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
73873         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
73874         for Reliant Unix 5.43.
73875
73876         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
73877         (union fooround): Use uintmax_t, not long int.
73878         The rest is a merge from libc:
73879         [defined _LIBC]: Include <shlib-compat.h>.
73880         (_obstack) [defined _LIBC]: Remove after 2.3.4.
73881
73882         * lib/settime.c (settime): Recode to avoid warning with
73883         Sun Forte C 6U2.
73884
73885         * lib/strverscmp.c: Convert to UTF-8.
73886
73887 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73888
73889         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73890         m4/uintmax_t.m4.
73891
73892 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73893
73894         * modules/xalloc-die: New file.
73895         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
73896
73897         * modules/md5 (Files): Add m4/uint32_t.m4.
73898         * modules/sha1: Renamed from modules/sha.
73899         (Files):
73900         Rename lib/sha.h to lib/sha1.h.
73901         Rename lib/sha.c to lib/sha1.c.
73902         Rename m4/sha.m4 to m4/sha1.m4.
73903         (lib_SOURCES): Likewise.
73904         (configure.ac): Rename gl_SHA to gl_SHA1.
73905         (Include): sha.h -> sha1.h.
73906
73907 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73908
73909         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
73910         * m4/sha1.m4: Renamed from sha.m4.
73911         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
73912
73913 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73914
73915         * lib/obstack.h (obstack_empty_p):
73916         Don't assume that chunk->contents is suitably aligned.
73917         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
73918         Likewise. Problem reported by Benno in
73919         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
73920
73921         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
73922         readable.  This could be improved further but it'd take some work.
73923
73924 2004-08-08  Simon Josefsson  <jas@extundo.com>
73925
73926         * modules/xgethostname (Depends-on): Remove exit and error (not
73927         used).
73928
73929         * modules/getpass-gnu: Add getpass.h.
73930         (Depends-on): Add stdbool.
73931         * modules/getpass: Add getpass.h.
73932
73933 2004-08-08  Simon Josefsson  <jas@extundo.com>
73934
73935         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
73936         Check getpass declaration.
73937
73938 2004-08-08  Simon Josefsson  <jas@extundo.com>
73939
73940         * lib/xgethostname.c: Don't include error.h (not used).
73941
73942         * lib/getpass.h: Add.
73943         * lib/getpass.c: Include getpass.h first.
73944
73945 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
73946
73947         * lib/xalloc-die.c: New file.
73948         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
73949         All uses removed.
73950         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
73951         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
73952         xalloc-die.c.
73953         (_, N_, xalloc_die): Move to xalloc-die.c.
73954         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
73955         so that we needn't mess with xalloc_msg_memory_exhausted.
73956
73957         * lib/sha1.h: Renamed from sha.h.
73958         (SHA1_H): Renamed from _SHA_H.
73959         (sha1_ctx): Renamed from sha_ctx.
73960         (sha1_init_ctx): Renamed from sha_init_ctx.
73961         (sha1_process_block): Renamed from sha_process_block.
73962         (sha1_process_bytes): Renamed from sha_process_bytes.
73963         (sha1_finish_ctx): Renamed from sha_finish_ctx.
73964         (sha1_read_ctx): Renamed from sha_read_ctx.
73965         (sha1_stream): Renamed from sha_stream.
73966         (sha1_buffer): Renamed from sha_buffer.
73967         * lib/sha1.c: Likewise; renamed from sha.c.
73968         Do not include <sys/types.h>.
73969         Include <stddef.h> rather than <stdlib.h>.
73970
73971 2004-08-08  Bruno Haible  <bruno@clisp.org>
73972
73973         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
73974         FILESYSTEM_PREFIX_LEN.
73975         * lib/progreloc.c: Likewise.
73976         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
73977
73978 2004-08-06  Simon Josefsson  <jas@extundo.com>
73979
73980         * modules/progname (Depends-on): Don't depend on stdbool.
73981
73982 2004-08-06  Simon Josefsson  <jas@extundo.com>
73983
73984         * modules/getsubopt: New file.
73985         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73986         getsubopt.
73987
73988 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73989
73990         More merge from coreutils.
73991
73992         * m4/utimens.m4, m4/utimecmp.m4: New files.
73993         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
73994         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
73995         prereq.m4, sha.m4: Import changes from coreutils.
73996
73997 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73998
73999         More merge from coreutils.
74000         * modules/raise, modules/readtokens0, modules/utimens:
74001         * modules/utimecmp, module/xnanosleep: New files.
74002         * modules/strftime: Add lib/strftime.h.
74003         Change include from <time.h> to "strftime.h".
74004         * modules/yesno: Add lib/yesno.h.
74005         * modules/backupfile: Remove lib/addext.c.
74006         * modules/euidaccess: Add stat-macros.h.
74007         * modules/canonicalize, modules/euidaccess,
74008         modules/filemode, modules/lchown, modules/makepath,
74009         modules/rmdir, modules/stat: Likewise.
74010
74011 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
74012
74013         Merge from tar.
74014         * lib/argp-help.c (make_hol, hol_append): Don't assume that
74015         SIZE_MAX is a valid preprocessor constant.
74016         (__argp_basename): Change from "#ifndef _LIBC"
74017         to "#ifndef __argp_short_program_name", so that
74018         we don't compile these functions for tar.
74019
74020         More merges from coreutils.
74021         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
74022         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
74023         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
74024         * lib/addext.c: Remove; no longer needed.
74025         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
74026         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
74027         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
74028         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
74029         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
74030         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
74031         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
74032         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
74033         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
74034         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74035         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
74036         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
74037         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
74038         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
74039         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
74040         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
74041         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
74042         Import changes from coreutils.
74043
74044 2004-08-05  Simon Josefsson  <jas@extundo.com>
74045
74046         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
74047
74048 2004-08-05  Simon Josefsson  <jas@extundo.com>
74049
74050         * m4/getsubopt.m4: New file.
74051
74052 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74053
74054         Merge from coreutils.
74055
74056         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
74057         * m4/getcwd-path-max.m4: New files.
74058
74059         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
74060         FILESYSTEM_PREFIX_LEN ->
74061         FILE_SYSTEM_PREFIX_LEN.
74062         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
74063         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
74064         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
74065         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
74066
74067         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
74068         prerequisite modules now handle the DOS stuff.
74069         Don't check for unistd.h.
74070
74071 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74072
74073         Merge from coreutils.
74074
74075         * lib/.gdb-history: Remove; this doesn't belong here.
74076
74077         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
74078         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
74079         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
74080         * lib/getcwd.c: New files.
74081
74082         * lib/dirname.h: Include <stdbool.h>.
74083         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
74084         for consistency with POSIX terminology.  All uses changed.
74085         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
74086         (strip_trailing_slashes): Use bool for booleans.
74087         * lib/stripslash.c (strip_trailing_slashes): Likewise.
74088
74089         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
74090         sometimes returns a positive errno value even when it succeeds.
74091         (print_errno_message) [!LIBC]: Fall back on strerror if
74092         __strerror_r fails.
74093
74094         * lib/path-concat.c (mempcpy): Don't define if a system header defines
74095         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
74096         (longest_relative_suffix): New function.
74097         (path_concat): Use it.  Assume first argument is not NULL.
74098         Port to DOS.  Omit redundant separators.
74099         Report an error instead of returning NULL.
74100         Use mempcpy instead of memcpy.
74101         (xpath_concat): Remove: not declared or used.
74102
74103         * lib/same.h: Include <stdbool.h>
74104         (same_name): Return bool, not int.
74105         * lib/same.c (same_name): Likewise.
74106         (errno): Don't declare; we assume C89 or better now.
74107
74108         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
74109         if not already defined.
74110
74111         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
74112         * lib/dup-safer.c (errno): Likewise.
74113
74114 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
74115
74116         Merge from coreutils.
74117         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
74118         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
74119         * modules/path-concat: Don't depend on strdup.
74120
74121 2004-08-03  Simon Josefsson  <jas@extundo.com>
74122
74123         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
74124         * lib/progname.h: Don't include stdbool.h.
74125
74126 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74127
74128         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
74129         * MODULES.html.sh (func_all_modules): Remove fatal.
74130
74131 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
74134
74135 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
74136
74137         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
74138         working.
74139
74140 2004-08-02  Simon Josefsson  <jas@extundo.com>
74141
74142         * lib/getsubopt.h: New file, with comments from Bruno Haible.
74143         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
74144         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
74145
74146 2004-08-01  Simon Josefsson  <jas@extundo.com>
74147
74148         * lib/xgetdomainname.c: Include stdlib.h, for free().
74149
74150 2004-07-19  Bruno Haible  <bruno@clisp.org>
74151
74152         * MODULES.html.sh (func_all_modules): Add dummy.
74153
74154 2004-07-16  Simon Josefsson  <jas@extundo.com>
74155
74156         * modules/dummy: New file.
74157
74158 2004-07-16  Simon Josefsson  <jas@extundo.com>
74159
74160         * lib/dummy.c: New file.
74161
74162 2004-07-16  Bruno Haible  <bruno@clisp.org>
74163
74164         * lib/backupfile.h: Add extern "C" for C++.
74165         * lib/closeout.h: Likewise.
74166         * lib/copy-file.h: Likewise.
74167         * lib/findprog.h: Likewise.
74168         * lib/full-write.h: Likewise.
74169         * lib/pathname.h: Likewise.
74170         * lib/progname.h: Likewise.
74171         * lib/stpcpy.h: Likewise.
74172         * lib/stpncpy.h: Likewise.
74173         * lib/strcase.h: Likewise.
74174         * lib/strstr.h: Likewise.
74175         * lib/xalloc.h: Likewise.
74176
74177         * lib/mbswidth.h: Add extern "C" for C++.
74178         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
74179
74180 2004-07-13  Robert Millan  <robertmh@gnu.org>
74181
74182         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
74183
74184 2004-07-09  Simon Josefsson  <jas@extundo.com>
74185
74186         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
74187         failed without this.)
74188
74189 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74190
74191         * modules/chown (Files): Add lib/fchown-stub.c, since
74192         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
74193
74194 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74195
74196         * lib/fchown-stub.c: New file.
74197
74198 2004-06-24  Jim Meyering  <jim@meyering.net>
74199
74200         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
74201
74202 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74203
74204         * modules/argz: Omit "#include".
74205
74206         * MODULES.html.sh (func_all_modules): Add calloc, to match
74207         2004-06-01 addition of calloc module.
74208
74209 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74210
74211         * m4/argz.m4: New file, which is autoupdated from libtool.
74212
74213 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74214
74215         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
74216         libtool.
74217
74218 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74219
74220         * config/srclist-update: Don't insist on "USA." before the
74221         close-comment, as libtool omits the period and puts the */ on a
74222         separate line.
74223         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
74224         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
74225
74226 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
74227
74228         * modules/argz: New file.
74229         * MODULES.html.sh (func_all_modules): Add argz.
74230
74231 2004-06-12  Jim Meyering  <jim@meyering.net>
74232         and  Paul Eggert  <eggert@cs.ucla.edu>
74233
74234         * modules/hash (Files): Add lib/xalloc.h.
74235         * modules/pipe (Depends-on): Add wait-process.
74236         * modules/stat (Depends-on): Add xalloc.
74237         * modules/userspec (Files): Add lib/userspec.h.
74238         * modules/xstrto
74239
74240         Upgrade from gettext-0.13.
74241         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
74242         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
74243         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
74244
74245 2004-06-10  Jim Meyering  <jim@meyering.net>
74246
74247         * lib/calloc.c: New file.
74248
74249 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
74250
74251         * lib/getdate.y (yylex): Allow space between sign and number.
74252         Problem reported by Dan Jacobson.
74253
74254 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74255
74256         Merge from coreutils CVS.
74257
74258         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
74259         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
74260         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
74261         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
74262         xstrtol.m4: Fix copyright date and/or serial number.
74263
74264         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
74265         See if we need an fchown replacement.
74266         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
74267         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
74268         and use the replacement function if we detect either defect.
74269
74270         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
74271         gl_UTIMECMP.
74272
74273 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
74274         and  Jim Meyering  <jim@meyering.net>
74275
74276         Merge from coreutils CVS.
74277
74278         * lib/stat-macros.h: New file, with contents from file-type.h
74279         and coreutils' system.h.
74280         * lib/file-type.c: Include "stat-macros.h".
74281         * lib/file-type.h (file_type): Move all macro definitions to new file,
74282         stat-macros.h.
74283
74284         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
74285         Wrap old code with this conditional.
74286         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
74287         function that does not dereference symlinks.
74288         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
74289
74290         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
74291         dependency problems.
74292         (xreadlink): Accept new arg SIZE, for efficiency.
74293         All decls and uses changed.
74294         * lib/xreadlink.h: Include <stddef.h>, for size_t.
74295
74296         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
74297         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
74298
74299         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
74300         sysexits.h.
74301
74302 2004-06-01  Jim Meyering  <jim@meyering.net>
74303
74304         * m4/calloc.m4: New file.
74305
74306 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
74307
74308         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
74309         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
74310         Also, fix a typo in a diagnostic.
74311
74312 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74313
74314         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
74315         or AC_FUNC_REALLOC.
74316
74317 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
74318
74319         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
74320         macros to be defined.
74321         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
74322         the allocator returns NULL because the requested size is zero.
74323
74324 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74325
74326         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
74327         var.  Add comment explaining why libc still defines it.  This
74328         merges the following patch from glibc:
74329         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
74330
74331 2004-05-20  Andreas Schwab  <schwab@suse.de>
74332
74333         * m4/free.m4: Replace free if it not known to work, not the other
74334         way round.
74335
74336 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74337
74338         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
74339         present in glibc since revision 1.1 of this file.
74340         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
74341         obstack_alignment_mask, obstack_alloc, obstack_base,
74342         obstack_blank, obstack_blank_fast, obstack_chunk_size,
74343         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
74344         obstack_grow0, obstack_init, obstack_int_grow,
74345         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
74346         obstack_next_free, obstack_object_size, obstack_ptr_grow,
74347         obstack_ptr_grow_fast, obstack_room): Remove declarations of
74348         nonexistent functions.
74349
74350 2004-05-18  Karl Berry  <karl@gnu.org>
74351
74352         * config/srclist.txt: break link for vasnprintf.c.
74353
74354 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74355
74356         Port obstack to the AS/400, where pointers are 16 bytes wide and
74357         you cannot cast an integer to a valid pointer.  This patch is
74358         currently waiting to be integrated into glibc; see
74359         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
74360
74361         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
74362         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
74363         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
74364         (struct obstack): temp member is now a union of a pointer and
74365         an integer, instead of an integer.  All integer uses changed.
74366         This does not affect the physical layout of struct obstack,
74367         except on hosts (like the AS/400) where the size or alignment of
74368         void * is greater than that of ptrdiff_t.
74369         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
74370         __STDC__)]: Store temporary in pointer member of union, not
74371         integer member.
74372         * lib/obstack.c: Include <stddef.h>, for offsetof.
74373         (struct fooalign): Remove; it doesn't need a name.
74374         (union fooround): Change double to long double, and add void *.
74375         (DEFAULT_ALIGNMENT): Use offsetof to compute.
74376         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
74377         not a macro.  Hence the values are always int; so remove all
74378         casts-to-int in uses.
74379
74380 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
74381
74382         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
74383         we can get this patch merged into glibc.
74384
74385 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74386             Paul Eggert  <eggert@cs.ucla.edu>
74387
74388         * m4/argp: Depend on alloca.
74389
74390 2004-05-17  Derek R. Price  <derek@ximbiot.com>
74391             Paul Eggert  <eggert@cs.ucla.edu>
74392
74393         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
74394         freecoding.
74395
74396 2004-05-17  Bruno Haible  <bruno@clisp.org>
74397
74398         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
74399         precision that consists of a '.' followed by an empty digit string.
74400         Patch by Tor Lillqvist <tml@iki.fi>.
74401
74402 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74403
74404         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
74405         for backward compatibility with older code.  We need our own
74406         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
74407         it under some other name, and our alloca.h will define it.
74408
74409 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
74410             Derek Price  <derek@ximbiot.com>
74411
74412         * lib/alloca.c: Include <alloca.h>, to get our interface.
74413         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
74414         include <alloca.h> first.  Use C89 prototype for alloca; this
74415         requires including <stddef.h> for size_t.  Use extern "C" if C++.
74416         Use #elif for simplicity, since we can assume C89 now.
74417         Don't try to source the system alloca.h since it will not be found
74418         and to prevent recursively including its replacement.
74419         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
74420         * lib/regex.c: Likewise.
74421
74422 2004-05-16  Derek Price  <derek@ximbiot.com>
74423             Paul Eggert  <eggert@cs.ucla.edu>
74424
74425         getline cleanup.  This changes the getndelim2 API: both order of
74426         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
74427         no delimiter).
74428
74429         * lib/getline.c: Don't include stddef.h or stdio.h, since our
74430         interface does that.
74431         (getline): Always use getdelim, so that we don't have two
74432         copies of this code.
74433         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
74434         if available.
74435         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
74436         (GETNDELIM2_MAXIMUM): New macro.
74437         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
74438         instead of the old practice of delim2==0.  All callers changed.
74439         Return -1 on overflow, instead of returning junk.
74440         Do not set *linesize unless allocation succeeds.
74441         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
74442         that we include sys/types.h.
74443         * lib/getnline.h: Likewise.
74444         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
74445         (getndelim2): Reorder arguments.
74446         * lib/getnline.c (getnline, getndelim):
74447         Don't discard the NMAX argument.
74448         (getnline): Invoke getndelim, to avoid code duplication.
74449         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
74450         of (size_t) -1 by callers of the getnline family.
74451
74452 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74453
74454         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
74455         Check for gettimeofday.
74456         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
74457         Check for settimeofday, stime.
74458
74459 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74460
74461         * lib/nanosleep.c (suspended): Change its type from int to
74462         sig_atomic_t volatile.
74463         (first_call): Make it private to rpl_nanosleep, and have it
74464         be zero initially as that's a bit faster.
74465         (my_usleep): Round up fractional times instead of truncating them,
74466         as this is the usual meaning for 'sleep'.
74467
74468         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
74469         doesn't work.
74470         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
74471         (ENOSYS): Define if not defined.
74472         (settime): Fall back on stime if it exists and settimeofday fails.
74473         But don't bother with fallbacks if a method fails with errno == EPERM.
74474
74475 2004-05-11  Jim Meyering  <jim@meyering.net>
74476
74477         Prior to this change, the save_cwd caller required read access to the
74478         current directory on most systems (ones with the fchdir function).
74479
74480         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
74481         fails, try write-only, and finally, resort to using xgetcwd.
74482
74483 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74484
74485         * lib/obstack.c, obstack.h: Import changes from libc.
74486
74487 2004-04-28  Bruno Haible  <bruno@clisp.org>
74488
74489         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
74490         also implicitly appends .exe to executables.
74491         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
74492         accepts Windows pathnames.
74493         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74494         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74495         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
74496         Treat Cygwin like Windows, since it now accepts Windows pathnames.
74497         Reported by Derek Robert Price <derek@ximbiot.com>.
74498
74499 2004-04-21  Karl Berry  <karl@gnu.org>
74500
74501         * config/srclist.txt (localcharset.c): break sync.
74502
74503 2004-04-20  Paul Eggert  <eggert@twinsun.com>
74504
74505         * m4/host-os.m4: Add a copyright notice.
74506
74507 2004-04-20  Jim Meyering  <jim@meyering.net>
74508
74509         Change UTILS_ to gl_ in AC_DEFINE'd names.
74510         Change utils_- and jm_-prefixed variables, too.
74511         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
74512         UTILS_FUNC_MKDIR_TRAILING_SLASH.
74513         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
74514
74515         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
74516         Don't emit trailing blanks.
74517         Also rename jm_-prefixed variables to have gl_ prefix.
74518
74519         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
74520         Also rename jm_-prefixed variables to have gl_ prefix.
74521
74522         * m4/jm-macros.m4: Reflect the renamings.
74523         * m4/prereq.m4: Likewise.
74524
74525 2004-04-20  Jim Meyering  <jim@meyering.net>
74526
74527         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
74528         memory.
74529
74530 2004-04-20  Jim Meyering  <jim@meyering.net>
74531             Bruno Haible  <bruno@clisp.org>
74532
74533         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
74534         memory when realloc fails.
74535
74536 2004-04-19  Jim Meyering  <jim@meyering.net>
74537
74538         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
74539         now that readutmp.c may call `free (0)'.
74540
74541 2004-04-19  Bruno Haible  <bruno@clisp.org>
74542
74543         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
74544         * m4/inttypes_h.m4: Likewise.
74545         * m4/stdint_h.m4: Likewise.
74546         * m4/intmax_t.m4: Likewise.
74547         * m4/uintmax_t.m4: Likewise.
74548
74549 2004-04-18  Jim Meyering  <jim@meyering.net>
74550
74551         * m4/prereq.m4: Don't forbid jm_ prefix.
74552
74553         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
74554         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
74555         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
74556         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
74557         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
74558         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
74559         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
74560         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
74561         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
74562         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
74563         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
74564         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
74565         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
74566         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
74567         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
74568         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
74569         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
74570         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
74571         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
74572
74573 2004-04-18  Jim Meyering  <jim@meyering.net>
74574
74575         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
74576         failure, don't leak memory and do call END_UTMP_ENT.
74577
74578 2004-04-16  Jim Meyering  <jim@meyering.net>
74579
74580         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
74581         coreutils' stat program.
74582         (gl_PREREQ): Don't require jm_PREREQ_STAT.
74583
74584 2004-04-11  Paul Eggert  <eggert@twinsun.com>
74585
74586         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
74587         C89.
74588         (CHAR_BIT): Remove, since we assume C89.
74589         Include <stdint.h> if available, as per current Autoconf CVS advice.
74590
74591 2004-03-31  Jim Meyering  <jim@meyering.net>
74592
74593         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
74594         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
74595         * m4/xalloc.m4: Likewise.
74596
74597 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74598
74599         Merge from coreutils.
74600
74601         * m4/inttostr.m4: New file.
74602         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
74603         Require AM_STDBOOL_H and gl_TIMESPEC instead.
74604         Require gl_CLOCK_TIME.
74605         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
74606
74607 2004-03-30  Paul Eggert  <eggert@twinsun.com>
74608
74609         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
74610         not bool, to be more consistent with Unix conventions.
74611         Suggested by Bruno Haible.
74612
74613         Merge from coreutils.
74614
74615         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
74616         * lib/umaxtostr.c: New files.
74617
74618         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
74619         the usual <time.h> dance.
74620         (get_date): Change signature to support fractional time stamps.
74621         All callers changed.
74622         * lib/getdate.y: Include "getdate.h" first, as we can now
74623         assume C89 and don't need to worry about 'const'.
74624         Similarly, include "unlocked-io.h" near start, not in middle.
74625         Include <limits.h>.
74626         (textint.value): Use long int rather than int.
74627         (textint.digits): Use size_t rather than int.
74628         (BILLION, LOG10_BILLION): New constants.
74629         (parser_control): New member rel_ns.  Members day_ordinal,
74630         time_zone, month, day, hour, minutes, rel_year, rel_month,
74631         rel_day, rel_hour, rel_minutes, rel_seconds
74632         are now long int, not int.  Member seconds is now struct timespec,
74633         not int.  New member timespec_seen.  Members dates_seen, days_seen,
74634         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
74635         not int.
74636         (%union.intval): Now long int, not int.
74637         New member timespec.
74638         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
74639         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
74640         (spec): Now is a timespec or an item list.
74641         (timespec, items): New nonterminals.
74642         (time, rel, relunit, number, get_date):
74643         Add support for fractional seconds.
74644         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
74645         (gmtime, localtime, mktime): Remove decls; not needed with C89.
74646         (to_hour): First arg is now long int, not int.
74647         (to_year): Returns long int, not int.
74648         Don't treat year -70 like 70.
74649         (tm_diff): Returns long int, not int.
74650         (lookup_word): Use bool instead of int when appropriate.
74651         (yylex): Use size_t for count, not int.
74652         Detect overflow when parsing large integer constants.
74653         Add support for fractions.
74654         (get_date): Make pointers 'const' if possible.
74655         Use more-portable code to detect integer overflow.
74656         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
74657         Don't use ctime; it's not reliable if the year has >4 digits.
74658
74659         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
74660         This is for compatibility with BSD.
74661
74662         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
74663         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
74664         From coreutils' system.h.
74665
74666         * lib/userspec.c: Don't include "posixver.h".
74667         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
74668         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
74669         compatible extension.  Simplify code by removing a boolean int
74670         that was always nonzero if a string was nonnull.
74671
74672 2004-03-30  Jim Meyering  <jim@meyering.net>
74673
74674         Merge from coreutils.
74675
74676         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
74677         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
74678         on some systems one must include <grp.h> before it.
74679         Reported by Christian Krackowizer.
74680
74681 2004-03-30  Jim Meyering  <jim@meyering.net>
74682
74683         Merge from coreutils.
74684
74685         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
74686
74687         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
74688         an empty input stream.
74689
74690         * lib/readtokens.c: Include <stdbool.h>.
74691         (readtoken): Use `size_t' rather than int/long.
74692         All callers adjusted.
74693         Use `bool' rather than `int' where appropriate.
74694         Use memset rather than an explicit loop.
74695         Use x2nrealloc rather than xrealloc.
74696         Allow the use of `\0' as a delimiter.
74697         (readtokens): Likewise.
74698         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
74699
74700 2004-03-30  Jim Meyering  <jim@meyering.net>
74701
74702         * m4/realloc.m4: Remove file, since now it does no more than
74703         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
74704         the `configure.ac' section of module/realloc.
74705         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
74706
74707 2004-03-30  Bruno Haible  <bruno@clisp.org>
74708
74709         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
74710         nonnull.
74711
74712 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74713
74714         Merge changes to getloadavg.c from coreutils and Emacs.
74715
74716         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
74717         Define to an expression, not to the empty string.
74718         Include cloexec.h and xalloc.h.
74719         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
74720         Use set_cloexec_flag rather than rolling our own.
74721         * lib/cloexec.c, lib/cloexec.h: New files.
74722
74723 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74724
74725         * m4/cloexec.m4: New file.
74726
74727 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74728
74729         * lib/getopt.h: Sync with libc CVS.
74730
74731 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74732             Bruno Haible  <bruno@clisp.org>
74733
74734         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
74735         mbswidth.
74736
74737 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74738             Bruno Haible  <bruno@clisp.org>
74739
74740         * lib/mbswidth.h: Include <wchar.h> only if
74741         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
74742         <wchar.h>.
74743         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
74744
74745 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74746
74747         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
74748         Sync with libc CVS.
74749         * lib/getopt_int.h: New file, also synced from libc.
74750
74751 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74752
74753         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
74754         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
74755         Bring back getopt.c, getopt.h, getopt1.c.
74756
74757 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74758
74759         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
74760         All uses changed.  Check for sa_sigaction member; this fixes
74761         a bug first reported by Jason Andrade in
74762         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74763
74764 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74765
74766         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
74767         '#if' expressions.  Unlike the code it replaces, it does not
74768         depend on (defined _SC_PAGESIZE).  However, it does depend on
74769         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
74770         first reported by Jason Andrade in
74771         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74772
74773 2004-02-25  Simon Josefsson  <jas@extundo.com>
74774
74775         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
74776
74777 2004-02-25  Simon Josefsson  <jas@extundo.com>
74778
74779         * lib/strdup.h: New file.
74780         * lib/strdup.c: Include it.
74781         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
74782         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
74783
74784 2004-02-23  Karl Berry  <karl@gnu.org>
74785
74786         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
74787         (from fencepost.gnu.org:/gd/gnuorg).
74788
74789 2004-02-23  Karl Berry  <karl@gnu.org>
74790
74791         * config/srclistvars.sh (GNUORG) [karl]: redefine.
74792         * config/srclist.txt: add maintain/standards documents.
74793
74794 2004-02-18  Bruno Haible  <bruno@clisp.org>
74795
74796         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
74797         Reported by Derek Robert Price <derek@ximbiot.com>.
74798
74799 2004-02-16  Karl Berry  <karl@gnu.org>
74800
74801         * config/mkinstalldirs, install-sh: update from automake.
74802
74803 2004-02-06  Karl Berry  <karl@gnu.org>
74804
74805         * m4/po.m4: update from gettext 0.14.1.
74806
74807 2004-02-06  Karl Berry  <karl@gnu.org>
74808
74809         * lib/config.charset: update from gettext 0.14.1.
74810
74811 2004-02-05  Paul Eggert  <eggert@twinsun.com>
74812
74813         Add comments and code, prompted by suggestions from Bruno Haible
74814         for sh-quote.
74815         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
74816         describing the enum quoting_style values.
74817         * lib/quotearg.c (quotearg_alloc): New function.
74818         (quotearg_buffer_restyled): Treat lone { and } as special.
74819         Treat = as special.  Work around bug with older shells
74820         that "see" a '\' that is really the 2nd byte of a multibyte char.
74821         Quote empty string with shell_quoting_style.
74822
74823 2004-02-03  Bruno Haible  <bruno@clisp.org>
74824
74825         * m4/pipe.m4: New file, from GNU gettext.
74826
74827 2004-02-03  Bruno Haible  <bruno@clisp.org>
74828
74829         * lib/pipe.h: New file, from GNU gettext.
74830         * lib/pipe.c: New file, from GNU gettext.
74831
74832 2004-01-27  Bruno Haible  <bruno@clisp.org>
74833
74834         * m4/execute.m4: New file, from GNU gettext.
74835
74836 2004-01-27  Bruno Haible  <bruno@clisp.org>
74837
74838         * lib/execute.h: New file, from GNU gettext.
74839         * lib/execute.c: New file, from GNU gettext.
74840         * lib/w32spawn.h: New file, from GNU gettext.
74841
74842 2004-01-24  Paul Eggert  <eggert@twinsun.com>
74843
74844         Merge from diffutils.
74845
74846         * lib/file-type.c (file_type): Add typed memory objects.
74847         * lib/file-type.h (S_TYPEISTMO): New macro.
74848
74849         * lib/c-stack.h (c_stack_action): Remove argv argument.
74850         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
74851         (die): Don't calculate message unless segv_action returns.
74852         (get_stack_location, min_address_from_argv, max_address_from_argv,
74853         volatile stack_base, volatile_stack_size): Remove.
74854         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
74855         that every segmentation violation is a stack overflow.  (Ouch!)
74856         See Debian bug 136249 (still outstanding) for more info about why
74857         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
74858
74859 2004-01-24  Paul Eggert  <eggert@twinsun.com>
74860
74861         Exit-status fix from coreutils.
74862
74863         Use exit_failure consistently in place of EXIT_FAILURE,
74864         so that program exit statuses are consistent on failure.
74865
74866         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
74867         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
74868         * lib/argmatch.h: Comment fix to match the above.
74869         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
74870         Now a macro referring to exit_failure, instead of a separate
74871         variable.  Include "exitfail.h" to get it.
74872         * lib/xstrtol.h: Include "exitfail.h".
74873         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
74874
74875         * lib/long-options.c (parse_long_options): Use prototype
74876         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
74877         for clarity.
74878
74879 2004-01-21  Jim Meyering  <jim@meyering.net>
74880
74881         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
74882         so as not to conflict with a different-sized __mktime_internal
74883         function in GNU libc.
74884         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
74885         Problem building statically-linked `ls' reported by Michael Brunnbauer.
74886
74887 2004-01-20  Karl Berry  <karl@gnu.org>
74888
74889         * config/config.guess: update from config.
74890
74891         * config/srclistvars.sh: GNUWWWLICENSES for karl.
74892
74893 2004-01-20  Bruno Haible  <bruno@clisp.org>
74894
74895         Safer stack allocation.
74896         * lib/setenv.c: Include allocsa.h.
74897         (alloca): Remove fallback definition.
74898         (freea): Remove macro.
74899         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
74900         instead of freea.
74901
74902 2004-01-20  Bruno Haible  <bruno@clisp.org>
74903
74904         * m4/eealloc.m4: New file, from GNU gettext.
74905
74906 2004-01-20  Bruno Haible  <bruno@clisp.org>
74907
74908         * m4/allocsa.m4: New file, from GNU gettext.
74909
74910 2004-01-20  Bruno Haible  <bruno@clisp.org>
74911
74912         * lib/xallocsa.h: New file, from GNU gettext.
74913         * lib/xallocsa.c: New file, from GNU gettext.
74914
74915 2004-01-20  Bruno Haible  <bruno@clisp.org>
74916
74917         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
74918
74919 2004-01-20  Bruno Haible  <bruno@clisp.org>
74920
74921         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
74922         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
74923         specially.
74924
74925 2004-01-20  Bruno Haible  <bruno@clisp.org>
74926
74927         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
74928         patch.
74929
74930 2004-01-20  Bruno Haible  <bruno@clisp.org>
74931
74932         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
74933
74934 2004-01-20  Bruno Haible  <bruno@clisp.org>
74935
74936         * lib/eealloc.h: New file.
74937
74938 2004-01-20  Bruno Haible  <bruno@clisp.org>
74939
74940         * lib/binary-io.h: Avoid warnings on Cygwin.
74941
74942 2004-01-20  Bruno Haible  <bruno@clisp.org>
74943
74944         * lib/allocsa.h: New file, from GNU gettext.
74945         * lib/allocsa.c: New file, from GNU gettext.
74946
74947 2004-01-18  Karl Berry  <karl@gnu.org>
74948
74949         * doc/gpl.texi, doc/lgpl.texi: new files.
74950
74951 2004-01-18  Karl Berry  <karl@gnu.org>
74952
74953         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
74954         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
74955
74956 2004-01-15  Paul Eggert  <eggert@twinsun.com>
74957
74958         Merge from coreutils.
74959
74960         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
74961         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
74962         (gl_DEFAULT_POSIX2_VERSION): Move
74963         the documentation from 'configure' into 'config.hin',
74964         so that 'configure --help' isn't burdened by it and
74965         we don't have to worry about its formatting there.
74966         Reword the documentation so that it's more succinct
74967         and can be run together into a single paragraph.
74968         * m4/same.m4 (gl_SAME): Check for pathconf.
74969
74970 2004-01-15  Paul Eggert  <eggert@twinsun.com>
74971
74972         Merge from coreutils.
74973
74974         * lib/posixver.c: Include posixver.h.
74975
74976         * lib/same.c: Include <stdbool.h>, <limits.h>.
74977         (_POSIX_NAME_MAX): Define if not defined.
74978         (MIN): New macro.
74979         (same_name): If file names are silently truncated, report
74980         that the file names are the same if they are the same after
74981         the silent truncation.
74982
74983         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
74984         conversion function.
74985         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
74986         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
74987         longer needed.
74988
74989 2004-01-15  Jim Meyering  <jim@meyering.net>
74990
74991         Merge from coreutils.
74992
74993         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
74994         if no library is required.
74995         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
74996         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
74997         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
74998         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
74999         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
75000         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
75001         value, $ac_cv_search_crypt, if it's "none required".
75002         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
75003         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
75004         not gl_FUNC_GETLOADAVG.
75005         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
75006         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
75007
75008 2004-01-15  Jim Meyering  <jim@meyering.net>
75009
75010         Merge from coreutils.
75011
75012         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
75013         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
75014         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
75015
75016         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
75017         optional configure-time default.
75018
75019         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75020
75021         * lib/xreadlink.c (xreadlink): Correct outdated comment.
75022
75023 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
75024
75025         Merge from coreutils.
75026
75027         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
75028         value, $ac_cv_search_nanosleep, if it's "none required".
75029
75030 2004-01-14  Paul Eggert  <eggert@twinsun.com>
75031
75032         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
75033         with like-named macro in fnmatch.c.
75034         (EXT): Use an internal constant instead.
75035
75036         Merge fnmatch patches from glibc.
75037         * lib/fnmatch.c (mbsinit): Remove define.
75038         Add libc_hidden_ver (__fnmatch, fnmatch).
75039         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
75040         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
75041
75042 2004-01-14  Karl Berry  <karl@gnu.org>
75043
75044         * config/install-sh: update from automake.
75045
75046 2004-01-13  Karl Berry  <karl@gnu.org>
75047
75048         * config/install-sh: update from automake.
75049
75050 2004-01-09  Karl Berry  <karl@gnu.org>
75051
75052         * config/install-sh: update from automake.
75053
75054 2004-01-05  Karl Berry  <karl@gnu.org>
75055
75056         * config/config.{sub,guess}: update from config.
75057
75058 2003-12-31  Karl Berry  <karl@gnu.org>
75059
75060         * config/depcomp: update from automake.
75061
75062 2003-12-14  Karl Berry  <karl@gnu.org>
75063
75064         * lib/config.charset: update from gettext-runtime.
75065
75066 2003-12-03  Paul Eggert  <eggert@twinsun.com>
75067
75068         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
75069         Bug reported by Alfred M. Szmidt.
75070
75071 2003-12-03  Bruno Haible  <bruno@clisp.org>
75072
75073         * m4/gettext.m4: Upgrade from gettext-0.13.
75074         * m4/po.m4: Upgrade from gettext-0.13.
75075         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
75076         * m4/intmax.m4: New file, from gettext-0.13.
75077         * m4/printf-posix.m4: New file, from gettext-0.13.
75078
75079 2003-11-29  Karl Berry  <karl@gnu.org>
75080
75081         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
75082
75083 2003-11-25  Paul Eggert  <eggert@twinsun.com>
75084             Bruno Haible  <bruno@clisp.org>
75085
75086         * lib/printf-parse.h: Don't include sys/types.h.
75087         (ARG_NONE): New macro.
75088         (char_directive): Change type of *arg_index fields to size_t.
75089         * lib/printf-parse.c: Don't include sys/types.h.
75090         (SSIZE_MAX): Remove macro.
75091         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
75092         Remove unnecessary overflow check.
75093         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
75094         fields.
75095
75096 2003-11-25  Bruno Haible  <bruno@clisp.org>
75097
75098         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
75099
75100 2003-11-25  Bruno Haible  <bruno@clisp.org>
75101
75102         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
75103         gt_TYPE_SSIZE_T.
75104
75105 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75106
75107         * modules/alloca: Remove dependency on xalloc.
75108
75109 2003-11-24  Paul Eggert  <eggert@twinsun.com>
75110
75111         * lib/alloca.c: Remove dependency on xalloc module.
75112         (xalloc_die): Remove.
75113         (memory_full) [!defined emacs]: New macro.
75114         [!defined emacs]: Don't include xalloc.h.
75115         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
75116         address arithmetic overflows.  Change datatypes a bit to avoid
75117         unnecessary casts.
75118
75119 2003-11-22  Jim Meyering  <jim@meyering.net>
75120
75121         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
75122         s/size/size_t/.
75123
75124 2003-11-21  Karl Berry  <karl@gnu.org>
75125
75126         * config/config.{sub,guess}: update from config.
75127
75128 2003-11-18  Karl Berry  <karl@gnu.org>
75129
75130         * config/config.{sub,guess}: update from config.
75131
75132         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
75133
75134 2003-11-17  Paul Eggert  <eggert@twinsun.com>
75135
75136         * README: Mention that S+T cannot overflow if S is the size of
75137         an existing object and T is sufficiently small.
75138
75139 2003-11-17  Jim Meyering  <jim@meyering.net>
75140
75141         On systems without utime and without a utimes function capable of
75142         dealing with a NULL struct utimbuf* argument, this utime replacement
75143         could -- in unusual circumstances -- leak a file descriptor.
75144         * lib/utime.c: Include <unistd.h> and <errno.h>.
75145         (utime_null): Be sure to close `fd' and to preserve errno.
75146         Reported by Geoff Collyer via Arnold Robbins.
75147
75148 2003-11-17  Bruno Haible  <bruno@clisp.org>
75149
75150         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
75151         (Depends-on): Add xsize.
75152
75153 2003-11-17  Bruno Haible  <bruno@clisp.org>
75154
75155         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
75156
75157 2003-11-17  Bruno Haible  <bruno@clisp.org>
75158
75159         * lib/vasnprintf.c (alloca): Remove fallback definition.
75160         (freea): Remove definition.
75161         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
75162         Reported by Paul Eggert.
75163
75164 2003-11-16  Paul Eggert  <eggert@twinsun.com>
75165             Bruno Haible  <bruno@clisp.org>
75166
75167         Protect against address arithmetic overflow.
75168         * lib/printf-args.h: Include stddef.h.
75169         (arguments): Change type of field 'count' to size_t.
75170         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
75171         'unsigned int' where appropriate.
75172         * lib/printf-parse.h: Include sys/types.h.
75173         (char_directive): Change type of *arg_index fields to ssize_t.
75174         (char_directives): Change type of fields 'count', max_*_length to
75175         size_t.
75176         * lib/printf-parse.c: Include sys/types.h and xsize.h.
75177         (SSIZE_MAX): Define fallback value.
75178         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
75179         instead of 'int' where appropriate. Check a_allocated, d_allocated
75180         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
75181         * lib/vasnprintf.c: Include xsize.h.
75182         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
75183         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
75184         overflow. Avoid wraparound when converting a width or precision from
75185         decimal to binary.
75186
75187 2003-11-16  Bruno Haible  <bruno@clisp.org>
75188
75189         Update from GNU gettext.
75190         * lib/printf-parse.c: Generalize to it can be compiled for wide
75191         strings.
75192         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
75193         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
75194         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
75195         SNPRINTF): New macros.
75196         Don't include <alloca.h> if the file is used inside libintl.
75197         (local_wcslen): New function, for Solaris 2.5.1.
75198         (VASNPRINTF): Use it instead of wcslen.
75199
75200 2003-11-16  Bruno Haible  <bruno@clisp.org>
75201
75202         * lib/xsize.h (xmax): New function.
75203         (xsum, xsum3, xsum4): Declare as "pure" functions.
75204
75205 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75206
75207         * modules/xalloc (Files): Undo latest change, since xalloc.h
75208         no longer needs SIZE_MAX or PTRDIFF_MAX.
75209
75210 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75211
75212         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
75213         gl_PTRDIFF_MAX.
75214
75215 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75216
75217         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
75218         "return", to pacify some unknown compiler.  Problem reported
75219         by Joerg Schilling.
75220
75221 2003-11-12  Paul Eggert  <eggert@twinsun.com>
75222
75223         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
75224         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
75225         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
75226         heuristic is just as accurate as far as we know, and it removes a
75227         dependency on size_max.m4 and ptrdiff_max.m4.
75228
75229 2003-11-11  Bruno Haible  <bruno@clisp.org>
75230
75231         * modules/xsize (Files): Add m4/size_max.m4.
75232         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
75233
75234 2003-11-11  Bruno Haible  <bruno@clisp.org>
75235
75236         * m4/size_max.m4: New file.
75237         * m4/ptrdiff_max.m4: New file.
75238         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
75239         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
75240         (gl_XALLOC): Invoke it.
75241
75242 2003-11-11  Bruno Haible  <bruno@clisp.org>
75243
75244         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
75245         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
75246         defined.
75247
75248 2003-11-10  Paul Eggert  <eggert@twinsun.com>
75249
75250         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
75251         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
75252         rejected some allocations of exactly SIZE_MAX - 2 bytes.
75253         From Bruno Haible.
75254         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
75255         not (size_t) -1, since it's defined here.
75256
75257 2003-11-09  Karl Berry  <karl@gnu.org>
75258
75259         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
75260
75261 2003-11-06  Paul Eggert  <eggert@twinsun.com>
75262
75263         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
75264         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
75265         Reject sizes of exactly SIZE_MAX bytes.
75266         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
75267         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
75268
75269 2003-11-05  Bruno Haible  <bruno@clisp.org>
75270
75271         * lib/xsize.h: Include limits.h, to avoid a possible collision with
75272         SIZE_MAX defined in <limits.h> on Solaris.
75273
75274 2003-11-04  Jim Meyering  <jim@meyering.net>
75275
75276         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
75277         variable names, rather than @VAR@.
75278         * modules/poll: Likewise.
75279
75280 2003-11-04  Bruno Haible  <bruno@clisp.org>
75281
75282         * modules/xsize: New file.
75283         * modules/linebreak: Depend on xsize.
75284         * MODULES.html.sh (func_all_modules): Add xsize.
75285
75286 2003-11-04  Bruno Haible  <bruno@clisp.org>
75287
75288         * m4/xsize.m4: New file.
75289
75290 2003-11-04  Bruno Haible  <bruno@clisp.org>
75291
75292         * lib/xsize.h: New file.
75293         * lib/linebreak.c: Include xsize.h.
75294         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
75295         argument for overflow.
75296         Suggested by Paul Eggert.
75297
75298 2003-11-03  Karl Berry  <karl@gnu.org>
75299
75300         * config/config.{guess,sub}: update from config.
75301
75302 2003-11-03  Jim Meyering  <jim@meyering.net>
75303
75304         * modules/userspec (lib_SOURCES): Add userspec.h.
75305         (Include): Add "userspec.h".
75306         Improve description.
75307
75308 2003-11-03  Jim Meyering  <jim@meyering.net>
75309
75310         * lib/userspec.c: Include "userspec.h".
75311         * lib/userspec.h: New file.
75312
75313 2003-11-03  Bruno Haible  <bruno@clisp.org>
75314
75315         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
75316
75317 2003-11-03  Bruno Haible  <bruno@clisp.org>
75318
75319         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
75320         available, to avoid (extremely rare) race condition.
75321         Suggested by Paul Eggert.
75322
75323 2003-11-02  Karl Berry  <karl@gnu.org>
75324
75325         * config/srclist.txt (vasprintf.c): sync broken, sigh.
75326
75327 2003-10-31  Paul Eggert  <eggert@twinsun.com>
75328
75329         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
75330         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
75331         (read_filesystem_list): Set and use me_type_malloced.
75332         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
75333         whatever the type happens to be), for brevity and consistency.
75334         Check for size calculation overflow on Alphas running OSF/1.
75335
75336 2003-10-31  Jim Meyering  <jim@meyering.net>
75337
75338         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
75339
75340         * lib/linebuffer.c: Include <string.h> for declaration of memset.
75341
75342 2003-10-30  Paul Eggert  <eggert@twinsun.com>
75343             Bruno Haible  <bruno@clisp.org>
75344
75345         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
75346         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
75347
75348 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75349
75350         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
75351         netbsd*-gnu*.  Suggested by Robert Millan.
75352
75353 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75354
75355         * modules/group-member: Depend on stdbool.
75356
75357 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75358
75359         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
75360
75361 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75362
75363         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
75364         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
75365         after the 'gnu' in these cases.  This fixes some bugs in the
75366         previous change, and is based on suggestions by Robert Millan.
75367
75368 2003-10-29  Paul Eggert  <eggert@twinsun.com>
75369
75370         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
75371         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
75372         no longer needed.
75373         * lib/quotearg.c (quotearg_n_options): Use it.
75374         * lib/group-member.c: Include <stdbool.h>.
75375         (free_group_info): Arg is now const *; don't free arg.
75376         (get_group_info): Now returns bool and accepts struct group_info *,
75377         rather than returning a malloc'ed struct group_info *.
75378         All uses changed.  Check for overflow in internal size calculation.
75379
75380         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
75381         rather than xmalloc/xrealloc.
75382         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
75383         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
75384         conformance bug: the old code used a pointer after freeing the
75385         storage that it addressed.
75386         * lib/hash.c (hash_initialize): Simplify the code by using
75387         xalloc_oversized rather than doing it by hand.
75388         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
75389         the buffer preserved.  Use free and xmalloc instead.
75390         * lib/quotearg.c (quotearg_n_options): Likewise.
75391         Use a simpler test for size overflow.  Don't use xalloc_oversized
75392         because unsigned int might be wider than size_t (!); this suggests
75393         that we should switch from unsigned int to size_t for slot numbers.
75394
75395 2003-10-28  Paul Eggert  <eggert@twinsun.com>
75396
75397         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
75398         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
75399         NetBSD kernels.  Requested by Richard Stallman.
75400
75401 2003-10-27  Paul Eggert  <eggert@twinsun.com>
75402
75403         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
75404         to allocate the returned structure.  Do not allocate a subarray,
75405         as x2nrealloc will do that.
75406         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
75407         instead of xnrealloc.
75408         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
75409
75410 2003-10-27  Bruno Haible  <bruno@clisp.org>
75411
75412         * lib/stdbool_.h: Better support for BeOS.
75413
75414 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75415
75416         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
75417         now uses inline.
75418
75419 2003-10-26  Paul Eggert  <eggert@twinsun.com>
75420
75421         * lib/xalloc.h (xalloc_oversized): New static inline function, for
75422         callers that want to do their own size-overflow checking.  Include
75423         <stdbool.h>, since xalloc_oversized returns bool.
75424         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
75425         to use xalloc_oversized.
75426
75427         Add two functions x2realloc, x2nrealloc, for programs that grow
75428         arrays dynamically by doubling their sizes.
75429         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
75430         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
75431         New functions.
75432
75433         Port to C99 semantics for 'inline' of external functions.
75434         Bug reported by Bruno Haible.
75435         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
75436         with the old contents of xnmalloc.
75437         (xnmalloc, xmalloc): Use it.
75438         (xnrealloc_inline): New static inline function,
75439         with the old contents of xnrealloc.
75440         (xnrealloc, xrealloc): Use it.
75441
75442         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
75443         that.
75444
75445 2003-10-26  Karl Berry  <karl@gnu.org>
75446
75447         * config/srclist.txt (COPYING.DOC): no longer available from
75448         /gd/gnuorg; don't know where the ultimate source is.
75449
75450 2003-10-25  Paul Eggert  <eggert@twinsun.com>
75451
75452         Fix several address-calculation bugs in the hash modules,
75453         plus some minor code cleanup.
75454
75455         * lib/hash.h: Include <stdbool.h>, for bool.
75456         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
75457         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
75458         hash_get_n_entries, hash_get_max_bucket_length,
75459         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
75460         hash_rehash): Use size_t rather than unsigned.
75461         * lib/hash.c (struct hash_table, hash_get_n_buckets,
75462         hash_get_n_buckets_used, hash_get_n_entries,
75463         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
75464         hash_get_entries, hash_do_for_each, hash_string, is_prime,
75465         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
75466         Likewise.
75467         (SIZE_MAX): Define if not defined.
75468         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
75469         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
75470         hash_print):
75471         Use const * when possible.
75472         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
75473         (check_tuning): Fix bug: if tuning parameters were very close to
75474         0 or 1, rounding errors could have caused subscript violations.
75475         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
75476         (hash_initialize): Add 'fail:' label
75477         to free table and return NULL, and use it to simplify code.
75478         Use calloc rather than clearing the storage ourself.
75479         (hash_initialize, hash_rehash): Check for arithmetic overflow in
75480         buffer size calculations.
75481         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
75482         Include <stddef.h>, for size_t.
75483         * lib/hash-pjw.c (hash_pjw): Likewise.
75484         Switch to method described by Bruno Haible.
75485         Include <limits.h>, for CHAR_BIT.
75486         (SIZE_BITS): New macro.
75487
75488 2003-10-23  Paul Eggert  <eggert@twinsun.com>
75489
75490         * m4/getline.m4 (AM_FUNC_GETLINE):
75491         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
75492         hosts.  Problem reported by Derek Robert Price in
75493         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
75494         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
75495         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
75496
75497 2003-10-21  Paul Eggert  <eggert@twinsun.com>
75498
75499         * lib/getndelim2.c (getndelim2): When size calculation overflows,
75500         ceiling the allocation at NMAX bytes rather than silently
75501         discarding input bytes before NMAX is reached.  This makes
75502         a difference only if NMAX exceeds SIZE_MAX / 2.
75503
75504         * lib/obstack.c: Merge from glibc.
75505         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
75506         Add libc_hidden_def (_obstack_newchunk).
75507         (_obstack_free) [! defined _LIBC]: Remove.
75508         [defined _LIBC]: Make a strong alias from obstack_free, rather than
75509         a clone of the function body.
75510         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
75511         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
75512
75513         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
75514         glibc.
75515         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
75516         arg to memcpy.
75517
75518         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
75519         (obstack_ptr_grow_fast, obstack_int_grow_fast):
75520         Don't use lvalue casts, as GCC plans to remove support for them
75521         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
75522         was also present in the non-GCC version, indicating that this
75523         code had always been buggy and had never been widely used.
75524         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
75525         Use the fast variant of each macro, rather than copying the
75526         definiens of the fast variant; that way, we'll be more likely to
75527         catch future bugs in the fast variants.
75528
75529 2003-10-20  Bruno Haible  <bruno@clisp.org>
75530
75531         * modules/wait-process: New file.
75532         * MODULES.html.sh (func_all_modules): Add wait-process.
75533
75534 2003-10-20  Bruno Haible  <bruno@clisp.org>
75535
75536         * m4/wait-process.m4: New file.
75537
75538 2003-10-20  Bruno Haible  <bruno@clisp.org>
75539
75540         * lib/wait-process.h: New file, from GNU gettext.
75541         * lib/wait-process.c: New file, from GNU gettext.
75542
75543 2003-10-19  Jim Meyering  <jim@meyering.net>
75544
75545         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
75546         HPUX 10.20.
75547
75548 2003-10-18  Karl Berry  <karl@gnu.org>
75549
75550         * config/config.guess: update from config.
75551
75552 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75553
75554         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
75555         (getgroups): First arg is int, not size_t.
75556         Don't let 'free' mangle errno.
75557
75558 2003-10-16  Paul Eggert  <eggert@twinsun.com>
75559
75560         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
75561
75562 2003-10-16  Karl Berry  <karl@gnu.org>
75563
75564         * config/config.{guess,sub}: update from config.
75565
75566 2003-10-16  Jim Meyering  <jim@meyering.net>
75567
75568         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
75569         memcpy.
75570
75571 2003-10-15  Paul Eggert  <eggert@twinsun.com>
75572
75573         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
75574         (SIZE_MAX): Remove.
75575         (new_exclude, add_exclude_file): Initial size no longer needs to
75576         be a power of 2.
75577         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
75578         our own address arithmetic overflow checking.
75579
75580         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
75581         (fnmatch): Do not alloca more than 2000 wide characters;
75582         instead, use malloc for large buffers.
75583         Check for address arithmetic overflow, and return -1
75584         with errno set to ENOMEM in that case.
75585         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
75586         (NEW_PATTERN): Do not alloca more than 8000 bytes;
75587         instead, return -1.  Check for address arithmetic overflow.
75588
75589 2003-10-14  Paul Eggert  <eggert@twinsun.com>
75590
75591         Handle invalid suffixes and overflow independently, so that
75592         callers can treat them independently as needed.  Fix some bugs in
75593         suffix handling, e.g., "100k@" was not diagnosed as an invalid
75594         suffix for a human-readable blocksize.  The major caller-visible
75595         change is the addition of a new
75596         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
75597         that both overflow and suffix chars were found.
75598
75599         * lib/human.c (humblock): Don't check separately for invalid suffix
75600         char; that is xstrtoumax's job (now that its bug is fixed).
75601         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
75602         INTMAX_MAX]: New macros.
75603         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
75604         TYPE_MAXIMUM): New macros.
75605         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
75606         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
75607         if overflow occurs, as it's what __strtol does and it's more useful
75608         in practice.
75609         (__xstrtol): If __strtol reports some error other than ERANGE,
75610         reflect it to the caller as LONGINT_INVALID.  If it reports
75611         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
75612         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
75613         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
75614         value.
75615         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
75616         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
75617         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
75618         [defined UINTMAX_MAX]: New macros.
75619
75620 2003-10-14  Bruno Haible  <bruno@clisp.org>
75621
75622         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
75623
75624 2003-10-14  Bruno Haible  <bruno@clisp.org>
75625
75626         * m4/sig_atomic_t: New file, from GNU gettext.
75627         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
75628
75629 2003-10-14  Bruno Haible  <bruno@clisp.org>
75630
75631         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
75632         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
75633         Also use volatile where needed.
75634
75635 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75636
75637         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
75638         Change maintainer from Bruno Haible to 'all'.
75639
75640 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75641
75642         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
75643
75644 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75645
75646         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
75647         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
75648         and define in terms of the other primitives.
75649         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
75650         (SIZE_MAX): Define if not already defined.
75651         (array_size_overflow): New function.
75652         (xalloc_die): Abort instead of exiting if 'error' returns.
75653         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
75654         (xmalloc, xrealloc): Use them.
75655         (xcalloc): Check for address arithmetic overflow.
75656         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
75657         a bit faster than strcpy.
75658
75659 2003-10-10  Simon Josefsson  <jas@extundo.com>
75660
75661         * modules/argp (Depends-on): Add restrict and strcase.
75662
75663 2003-10-10  Simon Josefsson  <jas@extundo.com>
75664
75665         * m4/argp.m4: Add AC_C_INLINE.
75666
75667 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75668
75669         Merge getpass from libc, plus a few fixes.
75670
75671         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
75672         Include <stdbool.h>.
75673         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
75674         __fsetlocking to empty.
75675         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
75676         do include <bits/libc-lock.h>.
75677         Do not include <fcntl.h>; not needed.
75678         [_LIBC]: Include <wchar.h>.
75679         (NOTCANCEL_MODE): New macro.
75680         (flockfile, funlockfile) [_LIBC]: New macros.
75681         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
75682         [!_LIBC]: New macros.
75683         (call_fclose): New function.
75684         (getpass): Use it.  Save tty stream separately; this simplifies the
75685         code and makes it more reliable if stdin happens to equal stdout.
75686         Invoke __fsetlocking on tty.
75687         Handle thread cancellation if needed.
75688         Namespace cleanup (use __tcgetattr, __getline).
75689         Use bool for Booleans.
75690         [USE_IN_LIBIO]: Handle wide streams.
75691         [!_LIBC]: Unconditionally do the fseek, since we don't know what
75692         stream might go where.
75693
75694         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
75695         doesn't have to include <stdio.h> before us.
75696         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
75697         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
75698         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
75699         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
75700         if not declared, so that we can use getpass.c code from libc without
75701         rewriting it.
75702         (flockfile, ftrylockfile, funlockfile): New macros.
75703
75704 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75705
75706         * modules/getpass: Depend on stdbool.
75707
75708 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75709
75710         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
75711
75712 2003-10-07  Karl Berry  <karl@gnu.org>
75713
75714         * config/config.{guess,sub}: update from config.
75715
75716 2003-10-06  Jim Meyering  <jim@meyering.net>
75717             Bruno Haible  <bruno@clisp.org>
75718
75719         This lets translators provide better translations for the
75720         "Written by ..." part of --version output.
75721         * lib/version-etc.h: Include stdarg.h.
75722         (version_etc_copyright): Declare as readonly.
75723         (version_etc): Make this function variadic with a NULL-terminated list
75724         of author name strings.
75725         (version_etc_va): New declaration.
75726         * lib/version-etc.c: Include stdarg.h, stdlib.h.
75727         (version_etc_copyright): Declare as readonly.
75728         (version_etc_va): New function. Provide a different translatable string
75729         for each possible number of authors < 10. Abbreviate when there are 10
75730         authors or more.
75731         (version_etc): Make this function variadic. Call version_etc_va.
75732         Suggestion from Gary V. Vaughan.
75733
75734         * lib/long-options.h (parse_long_options): Change prototype: the
75735         authors string is moved to the end and becomes variadic.
75736         * lib/long-options.c: Include stdarg.h.
75737         (parse_long_options): Make this function variadic, too.
75738         Call version_etc_va, not version_etc.
75739
75740 2003-10-06  Bruno Haible  <bruno@clisp.org>
75741
75742         * modules/version-etc-2: Remove file.
75743         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
75744
75745 2003-10-06  Bruno Haible  <bruno@clisp.org>
75746
75747         * modules/fatal-signal: New file.
75748         * MODULES.html.sh (func_all_modules): Add fatal-signal.
75749
75750 2003-10-06  Bruno Haible  <bruno@clisp.org>
75751
75752         * m4/fatal-signal.m4: New file.
75753         * m4/signalblocking.m4: New file, from GNU gettext.
75754
75755 2003-10-06  Bruno Haible  <bruno@clisp.org>
75756
75757         * lib/version-etc-2.h: Remove file.
75758         * lib/version-etc-2.c: Remove file.
75759
75760 2003-10-06  Bruno Haible  <bruno@clisp.org>
75761
75762         * lib/fatal-signal.h: New file, from GNU gettext.
75763         * lib/fatal-signal.c: New file, from GNU gettext.
75764
75765 2003-10-05  Paul Eggert  <eggert@twinsun.com>
75766
75767         * README: Rework advice for preventing empty .o files.
75768         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
75769         not <sys/types.h>.
75770
75771 2003-10-04  Karl Berry  <karl@gnu.org>
75772
75773         * lib/argp*: update from libc.
75774
75775 2003-10-04  Karl Berry  <karl@gnu.org>
75776
75777         * config/config.{guess,sub}: update from config.
75778
75779 2003-10-02  Bruno Haible  <bruno@clisp.org>
75780
75781         * modules/lchown (Include): Add lchown.h.
75782         * modules/time_r (Include): Use "..." syntax.
75783         * modules/xgetdomainname (Include): Add xgetdomainname.h.
75784
75785 2003-10-01  Simon Josefsson  <jas@extundo.com>
75786
75787         * MODULES.html.sh (func_all_modules): Move gethostname from section
75788         'based on' to section 'lacking' POSIX:2001.
75789
75790 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
75791
75792         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
75793         to output mode on the same stream.
75794
75795 2003-09-29  Paul Eggert  <eggert@twinsun.com>
75796
75797         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
75798         Fix arg typo in previous patch.
75799
75800 2003-09-28  Jim Meyering  <jim@meyering.net>
75801
75802         * lib/error.c: Correct cpp indentation.
75803
75804 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75805
75806         * modules/free: New file.
75807
75808 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75809
75810         * m4/free.m4: New file.
75811
75812 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75813
75814         * lib/minmax.h (MIN, MAX)
75815         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
75816         Omit the special code that used __typeof__, since we worry that
75817         it could be more trouble than it's worth.  See:
75818         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
75819         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
75820
75821         * lib/free.c: New file.
75822
75823 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
75824
75825         Trivial fixes to Makefile.am parts of module listings.
75826         * modules/strstr: Append strstr.h to lib_SOURCES.
75827         * modules/strcase: Likewise, for strcase.h.
75828
75829 2003-09-27  Karl Berry  <karl@gnu.org>
75830
75831         * config/mkinstalldirs: update from automake.
75832
75833 2003-09-26  Paul Eggert  <eggert@twinsun.com>
75834
75835         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
75836         (error_tail): Do not loop, reallocating temporary buffer, since
75837         the output cannot contain more wide characters than the input
75838         contains bytes, the size must be big enough already.  This avoids
75839         one potential size overflow calculation.  Check for size overflow
75840         when calculating temporary buffer size.  Free temporary buffer
75841         when done, if it was allocated with malloc; this plugs a memory
75842         leak.  Remove casts from void * to pointers, that are no longer
75843         needed now that we're assuming C89 or better.
75844
75845         Merge error changes from glibc.
75846
75847         * lib/error.c, error.h: Update copyright notice header to match glibc.
75848         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
75849         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
75850         Disable cancellation while printing error.
75851         * lib/error.h: Prepend __ to parameter names.
75852
75853 2003-09-26  Jim Meyering  <jim@meyering.net>
75854
75855         * lib/error.c (error_tail): Move some declarations
75856         into inner scope where the local variables are used.
75857
75858 2003-09-26  Bruno Haible  <bruno@clisp.org>
75859
75860         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
75861         stpncpy().
75862         Don't define stpncpy through config.h; it's now done through stpncpy.h.
75863
75864 2003-09-26  Bruno Haible  <bruno@clisp.org>
75865
75866         * lib/stpncpy.h (gnu_stpncpy): New declaration.
75867         (stpncpy): Define as alias for gnu_stpncpy.
75868         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
75869
75870 2003-09-25  Simon Josefsson  <jas@extundo.com>
75871
75872         * lib/xgetdomainname.h: New file.
75873         * lib/xgetdomainname.c: New file.
75874
75875 2003-09-25  Simon Josefsson  <jas@extundo.com>
75876             Bruno Haible  <bruno@clisp.org>
75877
75878         * modules/getdomainname: New file.
75879         * modules/xgetdomainname: New file.
75880         * MODULES.html.sh (func_all_modules): Add getdomainname,
75881         xgetdomainname.
75882
75883 2003-09-25  Simon Josefsson  <jas@extundo.com>
75884             Bruno Haible  <bruno@clisp.org>
75885
75886         * m4/getdomainname.m4: New file.
75887
75888 2003-09-25  Simon Josefsson  <jas@extundo.com>
75889             Bruno Haible  <bruno@clisp.org>
75890
75891         * lib/getdomainname.h: New file.
75892         * lib/getdomainname.c: New file.
75893
75894 2003-09-25  Karl Berry  <karl@gnu.org>
75895
75896         * lib/argp-fmtstream.c, argp-help.c: update from libc.
75897
75898 2003-09-25  Karl Berry  <karl@gnu.org>
75899
75900         * config/install-sh: update from automake.
75901
75902 2003-09-25  Bruno Haible  <bruno@clisp.org>
75903
75904         * modules/version-etc-2: New file, from modules/version-etc with
75905         modifications.
75906         * MODULES.html.sh (func_all_modules): Add version-etc-2.
75907
75908 2003-09-25  Bruno Haible  <bruno@clisp.org>
75909
75910         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
75911         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
75912
75913 2003-09-24  Simon Josefsson  <jas@extundo.com>
75914
75915         * modules/xgethostname: Add xgethostname.h.
75916
75917 2003-09-24  Paul Eggert  <eggert@twinsun.com>
75918
75919         * lib/linebuffer.c (freebuffer): Don't free the argument, just
75920         the buffer associated with the argument.  Bug reported by
75921         Simon Josefsson.
75922
75923 2003-09-24  Paul Eggert  <eggert@twinsun.com>
75924
75925         * README: Document assumptions that 'int' is at least 32 bits
75926         wide, that integer arithmetic is 2's complement without overflow,
75927         that there are no holes in integer values, that adding sizes of
75928         two nonoverlapping objects can't overflow, and that all-bits-zero
75929         yields scalar zero.  Fix spelling and capitalization typos.
75930
75931 2003-09-19  Karl Berry  <karl@gnu.org>
75932
75933         * lib/argp.h: update from libc.
75934
75935 2003-09-17  Paul Eggert  <eggert@twinsun.com>
75936
75937         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
75938         to avoid spurious warnings like "AC_RUN_IFELSE was called before
75939         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
75940
75941 2003-09-17  Paul Eggert  <eggert@twinsun.com>
75942
75943         * gnulib-tool: Use "test -h", not "test -L", for portability
75944         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
75945         (tags_regexp): Remove, since \| doesn't conform to POSIX.
75946         (sed_extract_prog): Issue s commands one-by-one, rather than
75947         using \| in one s command.
75948
75949 2003-09-16  Paul Eggert  <eggert@twinsun.com>
75950
75951         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
75952         input error, instead of returning NULL the next time we are called
75953         (and therefore losing track of errno).
75954
75955 2003-09-16  Bruno Haible  <bruno@clisp.org>
75956
75957         * gnulib-tool (func_create_testdir): Warn about duplicated
75958         dependencies.
75959
75960 2003-09-15  Paul Eggert  <eggert@twinsun.com>
75961
75962         * modules/argmatch, modules/fatal, modules/obstack,
75963         modules/xalloc, modules/xgethostname: Sort dependencies by
75964         importance, not alphabetically.
75965
75966 2003-09-15  Paul Eggert  <eggert@twinsun.com>
75967
75968         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
75969         fails, so that the caller gets the proper errno.
75970
75971         * lib/readutmp.c (read_utmp): Likewise.
75972         Check for fstat error.  Close stream and free storage
75973         when failing.
75974
75975 2003-09-14  Karl Berry  <karl@gnu.org>
75976
75977         * config/srclist.txt (strdup.c): disable for c89 changes.
75978
75979 2003-09-14  Jim Meyering  <jim@meyering.net>
75980
75981         * lib/getloadavg.c: Correct cpp indentation.
75982         * lib/strdup.c: Likewise.
75983         * lib/vasnprintf.c: Likewise.
75984
75985 2003-09-14  Bruno Haible  <bruno@clisp.org>
75986
75987         * modules/fwriteerror: New file.
75988         * MODULES.html.sh (func_all_modules): Add fwriteerror.
75989
75990 2003-09-14  Bruno Haible  <bruno@clisp.org>
75991
75992         * lib/fwriteerror.h: New file.
75993         * lib/fwriteerror.c: New file.
75994
75995 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75996
75997         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
75998         modules/xgethostname, modules/xalloc: Depend on exit.
75999
76000 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76001
76002         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
76003
76004         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
76005         and AC_MINIX, too, so that their extensions are available.
76006
76007         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
76008         This macro has been superseded by gl_BACKUPFILE.
76009
76010         More patches to assume C89 or better.
76011
76012         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
76013
76014         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
76015         unconditionally.
76016         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
76017         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
76018         Include <string.h>, <stdlib.h> unconditionally.
76019         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
76020         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
76021         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
76022         headers or for string.h.
76023         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
76024         or strtoul.
76025
76026         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
76027         headers.
76028         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
76029         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76030         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
76031         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
76032         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76033         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
76034         memcpy, memset.
76035         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
76036         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
76037         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
76038         strtol.
76039         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
76040         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
76041         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
76042         strtoul.
76043
76044 2003-09-12  Paul Eggert  <eggert@twinsun.com>
76045
76046         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
76047         * lib/obstack.c [!defined _LIBC]: Likewise.
76048         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
76049         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
76050         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
76051
76052         More changes to assume C89 or better.
76053
76054         * lib/error.c (error_tail): Assume vprintf.
76055
76056         * lib/argmatch.c (getenv): Remove decl.
76057         * lib/progreloc.c (get_full_program_name): Define via prototype.
76058         * lib/setenv.c (clearenv): Likewise.
76059         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
76060         needed.
76061         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
76062         (malloc, memcpy): Remove decls.
76063         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
76064         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
76065         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76066         (memcpy): Remove macro.
76067         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
76068         (__P): Remove.  All uses removed.
76069         (PTR): Remove.  All uses changed to void *.
76070         (CHAR_BIT, NULL): Remove.
76071         (spaces, zeros, memset_space, memset_zero)
76072         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
76073         Remove.
76074         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
76075         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
76076         Define with prototype.
76077         Remove now-unnecessary prototype decl.
76078         (extra_args_spec): Assume ANSI C.  All uses changed.
76079         (extra_args_spec_iso): Remove.
76080         (my_strftime, emacs_strftimeu): Define via prototype.
76081         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
76082         unconditionally.
76083         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
76084         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
76085         (strtoul, strtol): Remove decls.
76086         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
76087         LONG_MAX): Remove.
76088         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
76089         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
76090         (LOCALE_PARAM_PROTO): New macro.
76091         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
76092         (INTERNAL (strtol), strtol): Define with a prototype.
76093         (PARAMS): Remove.  All uses removed.
76094         * lib/tempname.c: Include <string.h> unconditionally.
76095         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
76096         * lib/xgethostname.c (main): Define with a prototype.
76097         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
76098         Include <stdlib.h> unconditionally.
76099         (calloc, malloc, realloc, free): Remove decls.
76100         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
76101         Include <stdlib.h> unconditionally.  Sort include file names.
76102         (strtod): Remove.
76103         (xstrtod): Define with a prototype.
76104         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
76105         (strtol, strtoul): Remove decls.
76106
76107 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76108
76109         More patches to assume C89 or better.
76110         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
76111         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
76112         string.h, memchr, STDC_HEADERS.
76113
76114 2003-09-11  Paul Eggert  <eggert@twinsun.com>
76115
76116         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
76117         Include <stdlib.h>, <string.h> unconditionally.
76118         Remove now-unnecessary cast to char *.
76119         * lib/strnlen.c: Include <string.h> unconditionally.
76120         * lib/yesno.c (yesno): Define with a prototype.
76121
76122 2003-09-11  Bruno Haible  <bruno@clisp.org>
76123
76124         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
76125
76126 2003-09-10  Jim Meyering  <jim@meyering.net>
76127
76128         * lib/error.c: Correct indentation of cpp directives.
76129
76130 2003-09-10  Bruno Haible  <bruno@clisp.org>
76131
76132         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
76133         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
76134         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
76135         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
76136         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
76137         <stdlib.h> and <string.h> checks.
76138         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
76139         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
76140
76141 2003-09-10  Bruno Haible  <bruno@clisp.org>
76142
76143         * lib/strcspn.c: Include <string.h> unconditionally.
76144         * lib/strpbrk.c: Include <string.h> unconditionally.
76145         * lib/strstr.c: Include <string.h> unconditionally.
76146         * lib/unicodeio.c: Include <string.h> unconditionally.
76147         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
76148         * lib/unsetenv.c: Likewise.
76149         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
76150         * lib/yesno.c: Include <stdlib.h> unconditionally.
76151         (rpmatch): Add prototype.
76152
76153 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76154
76155         More patches to assume C89 or better.
76156         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
76157         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
76158         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
76159         or for string.h.
76160         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
76161         stdlib.h.
76162         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
76163         C headers.
76164         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
76165         string.h.
76166         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
76167         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
76168         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
76169         or for string.h.
76170         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
76171         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
76172         C headers.
76173         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
76174         memcpy.
76175         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
76176         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
76177         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
76178         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
76179         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
76180         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
76181         string.h, free.
76182         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
76183         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
76184         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
76185         C headers, or for string.h.
76186         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
76187         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
76188         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
76189         headers, memory.h, stdlib.h, string.h, strings.h.
76190         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
76191         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
76192         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
76193         strchr.
76194         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
76195         headers, memory.h, string.h.
76196         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
76197         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
76198         free.
76199         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
76200         headers.
76201         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
76202         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
76203         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
76204         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
76205         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
76206
76207 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76208
76209         More K&R removal.
76210
76211         * lib/acosl.c (main): Use a prototype.
76212         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
76213         tanl.c: Likewise.
76214
76215         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
76216
76217         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
76218         (getopt, etopt_long, getopt_long_only, _getopt_internal)
76219         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
76220         with a prototype.
76221         * lib/getopt.c (const): Remove macro.
76222         Include <string.h> unconditionally.
76223         (my_index): Remove; all uses changed to strchr.
76224         (strlen): Remove decl.
76225         (exchange): Remove forward decl; no longer needed.
76226         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
76227         Define with prototype.
76228         * lib/getopt1.c (const): Remove macro.
76229         (getopt_long, getopt_long_only, main): Define with prototype.
76230
76231         * lib/getugroups.c: Include <string.h> unconditionally.
76232
76233         * lib/getusershell.c: Include <stdlib.h> unconditionally.
76234         (getusershell, setusershell, endusershell, readname, main):
76235         Define with prototypes.
76236
76237         * lib/group-member.c: Include group-member.h first.
76238         Include <stdlib.h> unconditionally.
76239
76240         * lib/hard-locale.c: Include hard-locale.h first.
76241         Include <stdlib.h>, <string.h> unconditionally.
76242
76243         * lib/hash.c (free, malloc): Remove decls.
76244         Include <stdlib.h> unconditionally.
76245
76246         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
76247         (getenv): Do not declare.
76248
76249         * lib/idcache.c: Include <string.h> unconditionally.
76250
76251         * lib/long-options.c: Include long-options.h first, to test interface.
76252         Include <stdlib.h> unconditionally.
76253
76254         * lib/makepath.c: Include makepath.h first, to test interface.
76255         Include <stdlib.h> and <string.h> unconditionally.
76256
76257         * lib/linebuffer.c: Include <stdlib.h>.
76258         (free): Remove decl.
76259
76260         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
76261         stddef.h. rpl_malloc returns void *, not char *.
76262         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
76263         prototype.
76264
76265         * lib/md5.h: Include <limits.h> unconditionally.
76266         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
76267         (__P): Remove; all uses removed.
76268         * lib/md5.c: Include "md5.h" first.
76269         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
76270         md5_buffer, md5_process_bytes, md5_process_block):
76271         Define with prototypes.
76272         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
76273         * lib/sha.c: Include "sha.h" first.
76274         Include <stdlib.h>, <string.h> unconditionally.
76275
76276         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
76277         * lib/memcmp.c (__ptr_t): Likewise.
76278         * lib/memrchr.c (__ptr_t): Likewise.
76279         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
76280         Include <string.h> unconditionally.
76281         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
76282         * lib/memchr.c: Include <stdlib.h> unconditionally.
76283         * lib/memchr.c (LONG_MAX): Remove.
76284         * lib/memrchr.c (LONG_MAX): Likewise.
76285         * lib/memchr.c (__memchr): Define via a prototype.
76286         * lib/memrchr.c (__memrchr): Likewise.
76287         * lib/memcmp.c (__P): Remove, and remove all uses.
76288         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
76289         Remove forward decls; no longer needed.
76290         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
76291         Use types required by C89 in prototype.
76292
76293         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
76294         * lib/savedir.c: Likewise.
76295         * lib/mkdir.c (free): Remove decl.
76296         * lib/rmdir.c (rmdir): Define with a prototype.
76297         * lib/savedir.c: Include savedir.h first, to test interface.
76298
76299         * lib/mktime.c (STDC_HEADERS): Remove.
76300         Include <stdlib.h>, <string.h> unconditionally.
76301
76302         * lib/modechange.c: Include <stdlib.h> unconditionally.
76303         (malloc): Remove decl.
76304
76305         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
76306         (free): Remove decl.
76307
76308         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
76309         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
76310         (This type really should be intptr_t, but that's a C99ism.)
76311         (_obstack_memcpy): Remove: all uses changed to memcpy.
76312         Include <string.h> unconditionally.
76313         (struct obstack): Assume __STDC__ for types of members
76314         chunkfun, freefun, extra_arg.
76315         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
76316         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
76317         obstack_begin, obstack_specify_allocation,
76318         obstack_specify_allocation_with_arg, obstack_chunkfun,
76319         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
76320         Remove unprototyped decls and the macros that use them.
76321         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
76322         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
76323         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
76324         (defined __STDC__ && __STDC__)]:
76325         Remove nonprototyped code.
76326         Include <stdlib.h> unconditionally.
76327         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
76328         _obstack_allocated_p, _obstack_free, obstack_free,
76329         _obstack_memory_used, print_and_abort):
76330         Define using prototypes.
76331         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
76332         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
76333         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
76334         obstack_next_free, obstack_object_size, obstack_room) [0]:
76335         Remove unused, unprototyped code.
76336
76337         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
76338
76339         * lib/physmem.c (physmem_total, physmem_available, main): Define
76340         with prototypes.
76341
76342         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
76343         (main): Define with a prototype.
76344
76345         * lib/posixver.c (getenv): Remove decl.
76346
76347         * lib/putenv.c (malloc): Returns void *, not char *.
76348         Include <string.h> unconditionally.
76349         (strchr, memcpy, NULL): Do not define.
76350
76351         * lib/readtokens.c: Include readtokens.h first, to test interface.
76352         Include <stdlib.h>, <string.h> unconditionally.
76353         (init_tokenbuffer): Define with a prototype.
76354
76355         * lib/regex.c (PARAMS): Remove.  All uses removed.
76356         All uses of _RE_ARGS removed, too.
76357         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76358         unconditionally.
76359         (bzero): Assume memset exists.
76360         (memcmp, memcpy, NULL): Remove.
76361         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
76362         char, or assignments to local vars of type signed char.
76363         (init_syntax_once, PREFIX(extract_number_and_incr),
76364         PREFIX(print_partial_compiled_pattern),
76365         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
76366         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
76367         PREFIX(regex_grow_registers), PREFIX(regex_compile),
76368         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
76369         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
76370         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
76371         wcs_compile_range, byte_compile_range, truncate_wchar,
76372         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
76373         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
76374         count_mbs_length, wcs_re_match_2_internal,
76375         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
76376         PREFIX(alt_match_null_string_p),
76377         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
76378         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
76379         regfree, PREFIX(extract_number)): Define with prototype.  Remove
76380         now-unnecessary declaration, if any.
76381         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
76382         regcomp, regexec):
76383         Remove now-unnecessary casts among pointer types.
76384         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
76385
76386         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
76387         (free): Remove decl.
76388
76389         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
76390
76391         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
76392         (free): Remove decl.
76393
76394         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
76395         * lib/xgetcwd.c: Likewise.
76396
76397         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
76398         (free): Remove decl.
76399
76400         * lib/strchrnul.c (strchrnul): Define with a prototype.
76401         Fix bug: c_in was not converted to char before searching.
76402
76403         The following changes are not K&R related:
76404
76405         * lib/group-member.h: Include <sys/types.h>, so that this file is
76406         self-contained.
76407         * lib/makepath.h: Likewise.
76408
76409         * lib/getusershell.c (readname, default_index, line_size, readname):
76410         Use size_t, not int, for sizes.
76411         (readname): If the size overflows, report an error instead of
76412         looping forever.
76413
76414 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76415
76416         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
76417         libc.
76418
76419 2003-09-09  Paul Eggert  <eggert@twinsun.com>
76420
76421         * README: New section: portability guidelines.
76422
76423 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76424
76425         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
76426         C89 spec.
76427
76428 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
76429
76430         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
76431
76432 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76433
76434         Assume C89 or better; remove K&R cruft.
76435         A few of these changes were first proposed by Derek Robert Price
76436         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
76437
76438         * lib/addext.c: Include <string.h> unconditionally.
76439         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
76440         Don't declare getenv or malloc.
76441
76442         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
76443         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
76444         (NULL): Remove.
76445         (find_stack_direction, alloca): Use prototypes.
76446
76447         * lib/atexit.c (atexit): Define using a prototype.
76448
76449         * lib/basename.c, dirname.c, stripslash.c:
76450         Include <string.h> unconditionally.
76451
76452         * lib/bcopy.c: Include <stddef.h>.
76453         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
76454
76455         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
76456
76457         * lib/error.h (error, error_at_line, error_print_progname)
76458         [! (defined (__STDC__) && __STDC__)]: Remove decls.
76459         * lib/error.c: Include error.h first, to check interface.
76460         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76461         (VA_START): Remove; all uses changeed to va_start.
76462         (exit, strerror): Remove decls.
76463         (error_print_progname): Prototype uncondionally.
76464         Don't include <errno.h>; no longer needed.
76465         (private_strerror): Remove.
76466         (error_tail): Always define.
76467         (error, error_at_line): Assume C89 or better; always use prototypes.
76468         * lib/fatal.c: Include "fatal.h" first, to test interface.
76469         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
76470         (VA_START): Remove; all uses changed to va_start.
76471         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
76472         this case.
76473         (exit): Remove decl.
76474         (fatal): Prototype unconditionally.  Assume va_start works.
76475         Abort at end, to pacify gcc.
76476
76477         * lib/euidaccess.c (main): Define with a prototype.
76478
76479         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
76480
76481         * lib/exitfail.c: Include <stdlib.h> unconditionally.
76482
76483         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
76484         prototypes.
76485         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
76486         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
76487         (getenv): Remove decl.
76488         (fnmatch): Define using a prototype.
76489         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
76490         (FCT): Define using a prototype.
76491
76492         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
76493
76494         * lib/gethostname.c: Include <stddef.h>.
76495         (gethostname): Define with prototype.  Length is size_t, not int.
76496
76497 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76498
76499         Assume C89 or better; remove K&R cruft.
76500         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
76501         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
76502         string.h, getenv, malloc.
76503         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
76504         headers.
76505         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
76506         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
76507         do not check for strerror.
76508         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
76509         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
76510         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
76511         do not check for doprnt or vprintf.
76512         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
76513         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
76514
76515 2003-09-08  Paul Eggert  <eggert@twinsun.com>
76516
76517         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
76518         getversion.c should have been removed then, but was accidentally
76519         preserved.
76520
76521         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
76522         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
76523
76524 2003-09-08  Karl Berry  <karl@gnu.org>
76525
76526         * config/config.sub, config.guess, srclistvars.sh: update from savannah
76527                 config, forget about prep.
76528
76529         * config/depcomp, missing: update from automake.
76530
76531 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76532
76533         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
76534         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76535
76536 2003-09-07  Paul Eggert  <eggert@twinsun.com>
76537
76538         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
76539         copy_tm_result.  Bug reported by Simon Josefsson in
76540         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
76541
76542 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76543
76544         * m4/time_r.m4: New file.
76545         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
76546         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
76547         is. Check for timegm declaration.
76548         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
76549         Do not check for gmtime_r.
76550         Replace mktime if __mktime_internal does not exist and if mktime
76551         hasn't been replaced already.
76552
76553 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76554
76555         * lib/time_r.c, lib/time_r.h: New files.
76556
76557         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
76558         __localtime_r.
76559         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
76560         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
76561
76562         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
76563         __gmtime_r.
76564         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
76565         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
76566         Include <time_r.h>.
76567
76568         * lib/timegm.c: Switch to glibc implementation, with the following
76569         changes:
76570         [defined HAVE_CONFIG_H]: Include <config.h>.
76571         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
76572         (__mktime_internal) [!defined _LIBC]: New decl.
76573         (__gmtime_r) [!defined _LIBC]: New macro and function.
76574         (timegm): Use a prototype, since gnulib assumes C89.
76575         Do not bother declaring tmp to be const, as it's not really usefu.
76576         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
76577         (timegm): Declare only if HAVE_DECL_TIMEGM.
76578
76579 2003-09-06  Paul Eggert  <eggert@twinsun.com>
76580
76581         * MODULES.html.sh (func_all_modules): Add time_r.
76582         * modules/time_r: New file.
76583         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
76584         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
76585
76586 2003-09-03  Paul Eggert  <eggert@twinsun.com>
76587
76588         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
76589         Bug reported by Lute Kamstra in
76590         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
76591
76592         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
76593         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
76594         course with correspondingly smaller numbers for tomorrow and
76595         yesterday.  From Tadayoshi Funaba.  Originally installed into
76596         sh-utils on 1999-08-07, but the patch got lost (I guess during the
76597         coreutils merge?).
76598
76599 2003-08-31  Simon Josefsson  <jas@extundo.com>
76600
76601         * modules/timegm: New file.
76602         * MODULES.html.sh (func_all_modules): Add timegm.
76603
76604 2003-08-31  Simon Josefsson  <jas@extundo.com>
76605
76606         * m4/timegm.m4: New file.
76607
76608 2003-08-31  Simon Josefsson  <jas@extundo.com>
76609
76610         * lib/timegm.h: New file.
76611         * lib/timegm.c: New file.  Based on
76612         wget-1.8.2/src/http.c:mktime_from_utc.
76613
76614 2003-08-31  Karl Berry  <karl@gnu.org>
76615
76616         * lib/argp.h: update from libc.
76617
76618 2003-08-28  Bruno Haible  <bruno@clisp.org>
76619
76620         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
76621         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
76622         followed by '#define fnmatch fnmatch_posix' gives an error.
76623
76624 2003-08-28  Bruno Haible  <bruno@clisp.org>
76625
76626         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
76627         warning on QNX, which defines O_BINARY to 000000.
76628
76629 2003-08-27  Jim Meyering  <jim@meyering.net>
76630
76631         * m4/mkstemp.m4: Require that the system mkstemp be able to create
76632         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
76633         would fail after 32.  Reported by Danny Levinson.  Details here:
76634         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
76635
76636 2003-08-24  Bruno Haible  <bruno@clisp.org>
76637
76638         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
76639         MSVC7 <stdio.h> is included later.
76640
76641 2003-08-22  Simon Josefsson  <jas@extundo.com>
76642
76643         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
76644
76645 2003-08-20  Karl Berry  <karl@gnu.org>
76646
76647         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
76648
76649 2003-08-20  Bruno Haible  <bruno@clisp.org>
76650
76651         * modules/progname: New file.
76652         * MODULES.html.sh (func_all_modules): Add progname.
76653
76654 2003-08-20  Bruno Haible  <bruno@clisp.org>
76655
76656         * lib/progname.h: New file, from GNU gettext.
76657         * lib/progname.c: New file, from GNU gettext.
76658         * lib/progreloc.c: New file, from GNU gettext.
76659
76660 2003-08-19  Jim Meyering  <jim@meyering.net>
76661
76662         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
76663         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
76664
76665 2003-08-19  Bruno Haible  <bruno@clisp.org>
76666
76667         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
76668         more.
76669
76670 2003-08-19  Bruno Haible  <bruno@clisp.org>
76671
76672         * lib/xstrdup.c: Assume <string.h> exists.
76673
76674 2003-08-18  Paul Eggert  <eggert@twinsun.com>
76675
76676         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
76677         in makefile rules.
76678
76679 2003-08-18  Jim Meyering  <jim@meyering.net>
76680
76681         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
76682         * m4/lib-ld.m4: Likewise.
76683
76684 2003-08-18  Jim Meyering  <jim@meyering.net>
76685
76686         * lib/setenv.h: Indent nested cpp directive.
76687         * lib/vasnprintf.c: Remove trailing blanks.
76688
76689 2003-08-17  Simon Josefsson  <jas@extundo.com>
76690
76691         * modules/xstrndup: New file.
76692         * MODULES.html.sh (func_all_modules): Add xstrndup.
76693
76694 2003-08-17  Simon Josefsson  <jas@extundo.com>
76695
76696         * modules/argp: Fix autoconf macro name. Add more dependencies.
76697
76698 2003-08-17  Simon Josefsson  <jas@extundo.com>
76699
76700         * m4/xstrndup.m4: New file.
76701
76702 2003-08-17  Simon Josefsson  <jas@extundo.com>
76703
76704         * m4/argp.m4: New file.
76705
76706 2003-08-17  Simon Josefsson  <jas@extundo.com>
76707             Bruno Haible  <bruno@clisp.org>
76708
76709         * lib/xstrndup.h: New file.
76710         * lib/xstrndup.c: New file.
76711
76712 2003-08-17  Bruno Haible  <bruno@clisp.org>
76713
76714         * modules/strndup (Files, Include): Add lib/strndup.h.
76715
76716 2003-08-17  Bruno Haible  <bruno@clisp.org>
76717
76718         * modules/euidaccess (Files): Add lib/euidaccess.h.
76719
76720 2003-08-17  Bruno Haible  <bruno@clisp.org>
76721
76722         * lib/strndup.h: New file.
76723
76724 2003-08-17  Bruno Haible  <bruno@clisp.org>
76725
76726         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
76727         like AC_GNU_SOURCE.
76728         * modules/extensions (configure.ac): Comment out the invocation of
76729         gl_USE_SYSTEM_EXTENSIONS.
76730
76731 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76732
76733         Merges from coreutils, etc.
76734         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
76735         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
76736         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
76737         fixing a typo.
76738         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
76739         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
76740
76741 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76742
76743         Document merge from coreutils.
76744         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
76745         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
76746         * modules/utime: Add m4/utimes-null.m4.
76747
76748 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76749
76750         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
76751         space, undoing this 2003-08-12 change:
76752         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76753
76754 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76755
76756         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
76757         strtoul.c from libc, undoing this 2003-08-12 change:
76758         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76759
76760 2003-08-16  Jim Meyering  <jim@meyering.net>
76761
76762         Merges from coreutils.
76763         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
76764         prefix.  Adjust cache variables similarly.  Create 500 rather than
76765         just 300 files, to exercise bug on Darwin6.5, too.
76766         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
76767         $missing_dir.
76768         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
76769         AM_SYS_POSIX_TERMIOS.
76770         Reported by mkc@mathdogs.com.
76771         Also change use of $am_cv_sys_posix_termios
76772         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
76773         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
76774         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
76775         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
76776         in /proc/mounts until it finds one with matching device number.  This
76777         is unnecessary when the FILE argument *is* a mount point.  No stat call
76778         is necessary in that case.  So, disable the statvfs-testing code on
76779         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
76780         as RedHat bug# 84846.
76781         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76782         to 1MB, so as not to render systems with no stack size limit (e.g.,
76783         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76784         Include <unistd.h>.  On some systems,
76785         it is required for the definition of _SC_PAGESIZE.
76786
76787 2003-08-16  Jim Meyering  <jim@meyering.net>
76788
76789         Merge from coreutils.
76790         * lib/xstrtoimax.c: #else #if -> #elif.
76791         * lib/xstrtoumax.c: Likewise.
76792
76793 2003-08-16  Jim Meyering  <jim@meyering.net>
76794
76795         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
76796         * m4/utimes.m4: Removed.
76797         * m4/utimes-null.m4: Renamed from utimes.m4.
76798
76799         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76800         to 1MB, so as not to render systems with no stack size limit (e.g.,
76801         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76802         Include <unistd.h>.  On some systems,
76803         it is required for the definition of _SC_PAGESIZE.
76804
76805 2003-08-16  Jim Meyering  <jim@meyering.net>
76806         and Paul Eggert  <eggert@cs.ucla.edu>
76807
76808         Merges from coreutils, etc.
76809
76810         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
76811         using the latest version from cvs.  This avoids problems with #line
76812         directives using a vendor (Sun) compiler.
76813         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
76814         Don't set GETGROUPS_LIB here; now it's
76815         done via getgroups.m4's wrapper function.
76816         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
76817         rather than just in sh-util/configure.in, so that the
76818         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
76819         same.
76820         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
76821         AC_FUNC_GETLOADAVG where to find getloadavg.c.
76822         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
76823         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
76824         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
76825         Remove code that is now done by the newly-required macros.
76826         Append $(EXEEXT) to DF_PROG.
76827         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
76828         Do not invoke or require the following here,
76829         since prereq.m4 or some gnulib .m4 now does this for us:
76830         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
76831         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
76832         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
76833         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
76834         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
76835         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
76836         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
76837         AC_FUNC_OBSTACK.
76838         Do not replace the following functions, as this is now the job
76839         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
76840         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
76841         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
76842         atexit getpass, strdup, getpagesize.
76843         Replace 'raise'.
76844         Do not check for the following functions, as this is now the job
76845         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
76846         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
76847         setregid.
76848         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
76849         Check for sys/sysctl.h.
76850         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
76851         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
76852         of checking for ssize_t ourselves.
76853
76854         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
76855         Require every macro that gnulib/modules/* suggests for us.
76856         (jm_PREREQ_ADDEXT): New macro.
76857         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
76858         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
76859
76860         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
76861         (gl_PHYSMEM): Use it.
76862         Also check for `table' function.
76863         Check for new headers and functions.
76864         Add check for sys/sysmp.h.
76865         With suggestions from Kaveh Ghazi.
76866         Ignore headers that are present but cannot be compiled.  This
76867         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
76868         C 5.4.
76869
76870 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76871
76872         Document merge from coreutils.
76873         * modules/userspec: Depend on posixver.
76874         * modules/strftime: Depend on tzset.
76875
76876 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76877
76878         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
76879         rather than tab, after '#' in shell-script copyright notices.
76880         Suggested by Bruno Haible.
76881
76882 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76883
76884         * config/srclist-update: Use three spaces, rather than tab, after '#'
76885         in shell-script copyright notices.  Suggested by Bruno Haible.
76886         Remove unnecessary parenthesization in regular expression.
76887
76888 2003-08-15  Jim Meyering  <jim@meyering.net>
76889
76890         Merge from coreutils.
76891         * lib/xgethostname.c: Include <stdlib.h>.
76892         (xghostname): Don't exit for anything other than memory-related
76893         failure; just return NULL.
76894         * lib/userspec.c: Include "posixver.h".
76895         (parse_user_spec): Accept `.' as a separator only
76896         in pre-POSIX-200112 mode.
76897         * lib/strtoimax.c: Use #elif rather than #else #if.
76898         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
76899         Remove function, now that we can rely on a working tzset function.
76900         [!_LIBC]: Ensure that the required autoconf test has been run.
76901         [!defined _NL_CURRENT && HAVE_STRFTIME]:
76902         Use underlying_strftime for %r.
76903         * lib/sha.c: Merge in some clean-up and optimization changes from
76904         glibc.
76905         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
76906         Ensure that it is a multiple of 64.
76907         Rearrange loop exit tests so as to avoid performing an
76908         additional fread after encountering an error or EOF.
76909         * lib/realloc.c: Update copyright date.
76910
76911 2003-08-15  Jim Meyering  <jim@meyering.net>
76912         and Paul Eggert  <eggert@twinsun.com>
76913
76914         Merge from coreutils.
76915         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
76916         member but strut utmpx does not.  Needed for AIX 4.3.3.
76917         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
76918
76919 2003-08-15  Jim Meyering  <jim@meyering.net>
76920         and Paul Eggert  <eggert@cs.ucla.edu>
76921
76922         Merges from coreutils, etc.
76923         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
76924         Require gl_FUNC_TZSET_CLOBBER.
76925         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
76926         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
76927         members.
76928
76929 2003-08-14  Paul Eggert  <eggert@twinsun.com>
76930
76931         Help the merge from coreutils.
76932         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
76933         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
76934         * m4/tzset.m4: Use it too.
76935
76936 2003-08-14  Paul Eggert  <eggert@twinsun.com>
76937
76938         * modules/tzset: New file.
76939
76940 2003-08-14  Jim Meyering  <jim@meyering.net>
76941
76942         Merges from coreutils.
76943         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
76944         variable names, rather than @FNMATCH_H@.
76945         * modules/alloca: Likewise for $(ALLOCA_H).
76946
76947         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
76948         the three copies of the literal target, `fnmatch.h'.
76949         * modules/alloca (alloca.h): Likewise.
76950
76951 2003-08-14  Jim Meyering  <jim@meyering.net>
76952
76953         Merge from coreutils.
76954         * m4/tzset.m4: New file.
76955         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
76956         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
76957         otherwise, AIX 5.1 systems would end up using the latter.
76958         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
76959         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
76960         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
76961         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
76962
76963 2003-08-14  Jim Meyering  <jim@meyering.net>
76964
76965         Merge from coreutils.
76966         * lib/obstack.h: Whitespace changes.
76967         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
76968         and xcalloc return values.
76969         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
76970         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
76971         hang on OSF/1 5.1 for DIR on both local and remote file systems.
76972         Reported by (and fix confirmed by) Nelson H. F. Beebe.
76973         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76974         error from mntctl.
76975         Use mntctl's return value to drive the entry-processing loop, since
76976         we can't rely on the value of the vmt_length member in the last
76977         entry.  On some systems doing so could result in exhausting
76978         virtual memory.  Based in part on a patch from Mike Jetzer.
76979
76980 2003-08-14  Jim Meyering  <jim@meyering.net>
76981         and Paul Eggert  <eggert@twinsun.com>
76982
76983         Merges from coreutils, plus other fixes.
76984         * lib/physmem.c: Merge in portability changes from gcc/libiberty
76985         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
76986         for credits and details.  Thanks to Kaveh Ghazi for helping
76987         to keep these files in sync.
76988         (ARRAY_SIZE): Define it.
76989         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
76990         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
76991         (memcasecmp): Don't assume size_t fits in unsigned int.
76992         Remove casts and duplicate code.
76993         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
76994         (memcpy): Remove definition.
76995         Merge in some clean-up and optimization changes from glibc.
76996         [BLOCKSIZE]: Move definition to top of file.
76997         Ensure that it is a multiple of 64.
76998         Rearrange loop exit tests so as to avoid performing an
76999         additional fread after encountering an error or EOF.
77000         * lib/md5.h (md5_uintptr): Define.
77001         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
77002         return to the initial working directory.  Preserve errno
77003         for caller.
77004         * lib/idcache.c: Include "xalloc.h".
77005         (xmalloc, xrealloc): Remove decls.
77006         (getuser): Remove casts no longer required in C89.
77007         * lib/human.c: Include stdio.h, for sprintf.
77008         * lib/group-member.c: Include "xalloc.h".
77009         (xmalloc, xrealloc): Remove decls.
77010         (get_group_info): Remove casts no longer required in C89.
77011         * lib/getusershell.c (readname): Remove casts no longer required in
77012         C89.
77013         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
77014         * lib/getline.c: Whitespace fix, from coreutils.
77015
77016 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77017
77018         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
77019         Check for isascii.
77020
77021         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77022         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77023         Undo previous (whitespace-only) change.
77024
77025 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77026
77027         * lib/exclude.c: Include <ctype.h>
77028         (IN_CTYPE_DOMAIN): New macro.
77029         (is_space): New fn.
77030         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
77031         and empty lines.
77032
77033         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77034         Undo previous (whitespace-only) change.
77035
77036 2003-08-13  Paul Eggert  <eggert@twinsun.com>
77037
77038         * config/srclist-update: Change update back to the old behavior,
77039         leaving whitespace alone.  Use one 'sed' command rather than a
77040         pipeline.
77041         (fixlicense): Now a variable, not a function.
77042         (remove_trailing_blanks): Remove.
77043         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
77044         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77045         Undo previous (whitespace-only) change.
77046
77047 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77048
77049         Merge from coreutils.
77050         * modules/euidaccess: Add lib_SOURCES, include for new
77051         file euidaccess.h
77052
77053 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77054
77055         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
77056         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
77057         Normalize leading white space and remove trailing white space.
77058
77059         Merge from coreutils
77060         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
77061
77062         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
77063         0.12.1.  These files are now being upgraded automatically by
77064         ../config/srclist-update.
77065
77066 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77067
77068         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
77069         Normalize leading white space and remove trailing white space.
77070         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
77071         notice, as per ../config/srclist-update.
77072
77073         Merge from coreutils.
77074         * lib/euidaccess.h: New file.
77075         * lib/euidaccess.c: Include it.
77076         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
77077         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
77078         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
77079
77080 2003-08-12  Paul Eggert  <eggert@twinsun.com>
77081
77082         * config/srclist-update: Add copyright notice.
77083         (remove_id_lines, remove_trailing_blanks): New constants.
77084         (fixfile): Use them to normalize spacing a bit in copied files.
77085         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
77086         Normalize leading white space and remove trailing white space.
77087
77088         * config/texinfo.tex: Sync with texinfo.
77089
77090         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
77091         strtoul.c from libc, to merge coreutils whitespace changes.
77092
77093         * config/srclist.txt: Get the following m4 files from gettext:
77094         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
77095         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
77096         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
77097         wint_t.m4.
77098
77099 2003-08-12  Karl Berry  <karl@gnu.org>
77100
77101         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
77102         been made.
77103
77104 2003-08-11  Paul Eggert  <eggert@twinsun.com>
77105
77106         * modules/gnu-source, m4/gnu-source.m4:
77107         Remove; we're assuming Autoconf 2.54 or later now.
77108         Suggested by Bruno Haible.
77109         * MODULES.html.sh (func_all_modules): Remove gnu-source.
77110
77111 2003-08-11  Bruno Haible  <bruno@clisp.org>
77112
77113         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
77114
77115 2003-08-11  Bruno Haible  <bruno@clisp.org>
77116
77117         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
77118         (vasnprintf): Use it instead of wcslen.
77119
77120 2003-08-11  Bruno Haible  <bruno@clisp.org>
77121
77122         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
77123         value to ensure that _Bool promotes to int. Use #define for _Bool when
77124         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
77125
77126 2003-08-10  Karl Berry  <karl@gnu.org>
77127
77128         * lib/regex.h: update from libc (whitespace fix).
77129
77130 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77131
77132         Merge some files from coreutils.  These changes were
77133         originally made by Jim Meyering.
77134         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
77135         many older Unixes require this.
77136         * lib/alloca.c (alloca): Remove cast to argument of free;
77137         no longer needed in C89.
77138         * lib/alloca_.h, regex.h: Fix white space to match
77139         what GNU indent does.
77140
77141 2003-08-09  Paul Eggert  <eggert@twinsun.com>
77142
77143         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
77144         apparently Emacs's Unicode mode got confused before my 2003-08-05
77145         checkin.
77146
77147 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77148
77149         * m4/extensions.m4: New file.
77150         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
77151         Require gl_USE_SYSTEM_EXTENSIONS.
77152         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
77153         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
77154
77155 2003-08-08  Paul Eggert  <eggert@twinsun.com>
77156
77157         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
77158         * modules/extensions, modules/gnu-source: New files.
77159         * modules/timespec, modules/unlocked-io: Depend on extensions.
77160
77161 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77162
77163         * modules/restrict: New file.
77164         * MODULES.html.sh (func_all_modules): Add restrict.
77165         * modules/regex: Depend on restrict.
77166
77167 2003-08-07  Paul Eggert  <eggert@twinsun.com>
77168
77169         * m4/restrict.m4: New file.
77170         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
77171
77172 2003-08-07  Bruno Haible  <bruno@clisp.org>
77173
77174         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
77175         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
77176
77177 2003-08-07  Bruno Haible  <bruno@clisp.org>
77178
77179         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
77180         makes the module 'getndelim2' compatible with the module 'getline'.
77181
77182 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77183
77184         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
77185         byte with "\201" to avoid glitches when editing that source file
77186         with multi-gnome-terminal.
77187
77188 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77189
77190         * lib/bumpalloc.h: Remove.
77191
77192 2003-08-05  Paul Eggert  <eggert@twinsun.com>
77193
77194         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
77195         * modules/bumpalloc: Remove.
77196
77197 2003-08-04  Paul Eggert  <eggert@twinsun.com>
77198
77199         * lib/getloadavg.c: Change copyright notice and spacing to conform to
77200         GNU coding style.
77201
77202         Merge from coreutils.
77203         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
77204         1. From glibc.
77205         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
77206         from Karl Berry, implemented by Jim Meyering.
77207         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
77208         from Dmitry V. Levin.
77209         Remove anachronistic cast of xrealloc.
77210         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
77211         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
77212         type. Otherwise, it wouldn't compile with at least /bin/cc on
77213         ymp-cray-unicos9.0.2.X.
77214         Combine two mostly-identical uses of alloca into one.
77215         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
77216
77217 2003-08-04  Dave Love  <d.love@dl.ac.uk>
77218
77219         [From Emacs.]
77220
77221         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
77222         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
77223         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
77224         obsolete NLIST_NAME_UNION.
77225         [__GNU__]: Undef BSD and FSCALE.
77226         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
77227
77228 2003-08-03  Paul Eggert  <eggert@twinsun.com>
77229
77230         * lib/stdbool_.h (_Bool): Make it signed char, instead of
77231         an enum type, so that it's guaranteed to promote to int.  See:
77232         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
77233
77234 2003-08-03  Karl Berry  <karl@gnu.org>
77235
77236         * config/depcomp: update from automake.
77237
77238 2003-07-31  Paul Eggert  <eggert@twinsun.com>
77239
77240         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
77241         (strerror): Don't assume that a printable int fits in 14 bytes.
77242
77243 2003-07-31  Bruno Haible  <bruno@clisp.org>
77244
77245         * modules/getpass-gnu: New file.
77246         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
77247
77248 2003-07-31  Bruno Haible  <bruno@clisp.org>
77249
77250         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
77251
77252 2003-07-24  Karl Berry  <karl@gnu.org>
77253
77254         * config/missing: update from automake.
77255
77256 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
77257             Bruno Haible  <bruno@clisp.org>
77258
77259         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
77260         * lib/getline.c (getline, getdelim): Likewise.
77261         Remove _GNU_SOURCE define; now it's defined in config.h through
77262         m4/getline.m4.
77263
77264 2003-07-23  Karl Berry  <karl@gnu.org>
77265
77266         * config/config.sub: update from prep.
77267
77268 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77269
77270         * modules/xalloc (Depends-on): Add exitfail.
77271         * modules/xmemcoll: Likewise.
77272
77273 2003-07-22  Paul Eggert  <eggert@twinsun.com>
77274
77275         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
77276         over-parenthesization in macros.
77277
77278         Sync with coreutils.
77279
77280         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
77281         required by C99.
77282
77283         Use `exit_failure' for xalloc and xmemcoll instead of their own
77284         private exit-failure variables.
77285         * lib/xalloc.h (xalloc_exit_failure): Remove.
77286         * lib/xmalloc.c: Likewise.  Include exitfail.h.
77287         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
77288         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
77289         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
77290         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
77291
77292 2003-07-20  Jim Meyering  <jim@meyering.net>
77293
77294         * modules/closeout (Depends-on): Add exitfail.
77295         Suggestion from Bruno Haible.
77296
77297 2003-07-19  Karl Berry  <karl@gnu.org>
77298
77299         * config/config.sub: update from prep.
77300
77301 2003-07-18  Paul Eggert  <eggert@twinsun.com>
77302
77303         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
77304         Remove.
77305         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
77306         to test that it can stand by itself.  Include "exitfail.h".
77307         Clients should set exit_failure instead.
77308         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
77309
77310 2003-07-18  Bruno Haible  <bruno@clisp.org>
77311
77312         * modules/getndelim2: New file.
77313         * modules/getline: Share files with module getndelim2.
77314         * modules/getnline: Depend on getndelim2 instead of sharing files with
77315         it. Add getnline.c to lib_SOURCES.
77316         * MODULES.html.sh (func_all_modules): Add getndelim2.
77317
77318 2003-07-18  Bruno Haible  <bruno@clisp.org>
77319
77320         * m4/getndelim2.m4: New file.
77321         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
77322         invoke gl_PREREQ_GETNDELIM2.
77323         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
77324         gl_PREREQ_GETNDELIM2.
77325         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
77326         gl_GETNDELIM2.
77327
77328 2003-07-18  Bruno Haible  <bruno@clisp.org>
77329
77330         * lib/getndelim2.h: New file.
77331         * lib/getndelim2.c: Make into a module of its own. Include config.h,
77332         getndelim2.h.
77333         (getndelim2): Make non-static. Change return type to ssize_t.
77334         * lib/getline.h: Change argument names.
77335         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
77336         * lib/getnline.c: Include getndelim2.h.
77337
77338 2003-07-18  Andreas Schwab  <schwab@suse.de>
77339
77340         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
77341
77342 2003-07-17  Karl Berry  <karl@gnu.org>
77343
77344         * config/config.sub: update from prep.
77345
77346 2003-07-17  Bruno Haible  <bruno@clisp.org>
77347
77348         * modules/getnline: New file.
77349         * modules/getline: Add lib/getndelim2.c to source file list.
77350         * MODULES.html.sh (func_all_modules): Add getnline.
77351
77352 2003-07-17  Bruno Haible  <bruno@clisp.org>
77353
77354         * m4/getnline.m4: New file.
77355
77356 2003-07-17  Bruno Haible  <bruno@clisp.org>
77357
77358         * m4/Makefile.am.in: Remove file.
77359         * m4/Makefile.am: Remove file.
77360         * m4/Makefile.in: Remove file.
77361
77362 2003-07-17  Bruno Haible  <bruno@clisp.org>
77363
77364         * lib/getnline.h: New file.
77365         * lib/getnline.c: New file.
77366         * lib/getndelim2.c: New file, extracted from getline.c.
77367         (getndelim2): Renamed from getdelim2, with added nmax argument.
77368         * lib/getline.c: Include getndelim2.c.
77369         (getdelim2): Moved out to getndelim2.c.
77370         (getline, getdelim): Update.
77371
77372 2003-07-17  Bruno Haible  <bruno@clisp.org>
77373
77374         * lib/Makefile.am: Remove file.
77375         * lib/Makefile.in: Remove file.
77376
77377 2003-07-17  Bruno Haible  <bruno@clisp.org>
77378
77379         * configure.in: Remove file.
77380         * Makefile.in: Remove file.
77381
77382 2003-07-17  Bruno Haible  <bruno@clisp.org>
77383
77384         * MODULES.html.sh: Put the </BODY> right before </HTML>.
77385
77386 2003-07-16  Karl Berry  <karl@gnu.org>
77387
77388         * config/srclist-update: was running fixlicense twice, which caused
77389                 texinfo.tex to be nullified for some reason.  Simplify,
77390                 $gplsrc is no longer needed as far as I can see?
77391
77392 2003-07-16  Jim Meyering  <jim@meyering.net>
77393
77394         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
77395
77396 2003-07-15  Paul Eggert  <eggert@twinsun.com>
77397
77398         * config/srclist.txt: Get the following files from gettext-runtime/intl
77399         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
77400         ref-del.sin.  From Bruno Haible.
77401         * config/srclist-update (fixfile): Change grep pattern again, since the
77402         previous fix didn't work (there was another trailing $).  Use
77403         '[$]' to escape the $s.
77404
77405 2003-07-15  Karl Berry  <karl@gnu.org>
77406
77407         * lib/vasnprintf.c: update from gettext.
77408
77409 2003-07-15  Karl Berry  <karl@gnu.org>
77410
77411         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
77412         gets expanded when surrounded by '$'.
77413
77414 2003-07-15  Jim Meyering  <jim@meyering.net>
77415
77416         * modules/save-cwd: Don't depend on error.  From Derek Price.
77417
77418 2003-07-15  Jim Meyering  <jim@meyering.net>
77419
77420         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
77421
77422 2003-07-14  Simon Josefsson  <jas@extundo.com>
77423
77424         * modules/mempcpy: New file.
77425         * MODULES.html.sh (func_all_modules): Add mempcpy.
77426
77427 2003-07-14  Simon Josefsson  <jas@extundo.com>
77428
77429         * m4/mempcpy.m4: New file.
77430
77431 2003-07-14  Simon Josefsson  <jas@extundo.com>
77432
77433         * lib/mempcpy.h: New file.
77434         * lib/mempcpy.c: New file.
77435
77436 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77437
77438         * modules/getdate, modules/posixtm: Depend on mktime.
77439
77440 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77441
77442         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
77443         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
77444         unicodeio.c, unicodeio.h, unlocked-io.h:
77445         Switch from LGPL to GPL.
77446
77447 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77448
77449         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
77450         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
77451         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
77452         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
77453         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
77454         updated automatically by ../config/srclist-update.  This changes
77455         their license from LPGL to GPL.
77456
77457 2003-07-14  Paul Eggert  <eggert@twinsun.com>
77458
77459         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
77460         assumed to refer to the root of the most recent stable gettext version.
77461         * config/srclistvars.sh: Add defaults for eggert.
77462         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
77463         Match "This program" as well as "The program".  This is needed
77464         for gettext.
77465
77466 2003-07-14  Jim Meyering  <jim@meyering.net>
77467
77468         Don't emit diagnostics.  Let callers do that.
77469         * lib/save-cwd.c: Don't include "error.h".
77470         (save_cwd): Don't call error.  Ensure that errno is valid
77471         when returning nonzero.
77472
77473         * lib/save-cwd.h (restore_cwd): Update prototype.
77474         * lib/save-cwd.c (restore_cwd): Remove two parameters.
77475         Simplify.  Don't call error upon failure.  Let callers do that.
77476         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
77477         when auditing is enabled.  But don't bother updating the #if.
77478
77479 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
77480
77481         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
77482         it breaks C++ compilation.
77483         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
77484
77485 2003-07-10  Simon Josefsson  <jas@extundo.com>
77486
77487         * modules/strchrnul (Makefile.am): Add strchrnul.h.
77488
77489 2003-07-10  Jim Meyering  <jim@meyering.net>
77490
77491         * m4/clock_time.m4: Remove trailing blank.
77492         * m4/intmax_t.m4: Likewise.
77493
77494 2003-07-10  Jim Meyering  <jim@meyering.net>
77495
77496         * lib/vasnprintf.c: Remove trailing blanks.
77497         Make cpp indentation consistent.
77498
77499 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77500
77501         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
77502         posixver.c, strftime.c, strnlen.c, strverscmp.c:
77503         Switch from LGPL to GPL.
77504
77505 2003-07-09  Paul Eggert  <eggert@twinsun.com>
77506
77507         * config/srclist.txt: Sort sublists.  Add
77508         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
77509         that differ from gnulib for one reason or another; we'd like this list
77510         to be smaller but for now let's document what we have.
77511
77512 2003-07-08  Paul Eggert  <eggert@twinsun.com>
77513
77514         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
77515         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
77516         and sweeter "eval x=$x".
77517         * config/srclist.txt: Get lib/argp* from glibc.
77518
77519 2003-07-07  Paul Eggert  <eggert@twinsun.com>
77520
77521         * lib/mktime.c: Fix some boundary cases and remove need for floating
77522         point.
77523
77524         Issue a compile-time diagnostic if time_t is floating point, or if
77525         two's complement arithmetic is not in effect, or if arithmetic
77526         right shift does not propagate the sign.  These assumptions were
77527         all in the original code but they weren't checked.
77528
77529         (TIME_T_MIDPOINT, verify): New macros.
77530         (__isleap): Remove; it has integer overflow problems.
77531         (leapyear): New function, without those problems.
77532         (ydhms_tm_diff): Remove; splitting into two parts.
77533         (ydhms_diff): New function, containing the arithmetic part of
77534         the old ydhms_tm_diff function.  Issue a compile-time
77535         diagnostic if we are not using C99 integer division.
77536         Avoid casts when possible.
77537         (guess_time_tm): New function, containing the checking part of
77538         the old ydhms_tm_diff function.  Return the new value, rather than
77539         the difference between it and the old.  Accept a new argument T
77540         so that *T specifies the old value.  Check for overflow in the result.
77541
77542         (__mktime_internal): Use a time_t offset, not a long int offset.
77543         This undoes the 2003-06-04 change, which is no longer needed now
77544         that we have better overflow checking.
77545         (localtime_offset): Likewise.
77546
77547         (__mktime_internal): Avoid harmful overflow on hosts where time_t
77548         and long are 64-bit but int is only 32-bit.
77549         (ydhms_diff): Use long int to store year1 and yday1.
77550         Issue a compile-time diagnostic if long int is not wide enough.
77551
77552         (__mktime_internal): Use long int to store adjusted year and yday.
77553         Use plain C rather than preprocessor commands, if that doesn't
77554         affect efficiency.
77555         Check for overflow (and try to repair) after each probe
77556         rather than checking only at the very end.  This avoids some bugs
77557         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
77558         does not equal GMT offset at maximum time).
77559         Use integer to check for overflow rather than floating point; this
77560         is more portable to non-IEEE hosts, and is a tad faster.
77561         When we detect that we are oscillating between two values,
77562         don't check whether tm_isdst has the requested value, since
77563         we already know the answer.  When tm_isdst has the wrong value,
77564         use a different heuristic to find the right one, based on the
77565         extreme values actually observed in practice in tz2003a,
77566         rather than the (overly optimistic) "previous 3 calendar quarters".
77567
77568         (not_equal_tm, print_tm, check_result): Use "const T" rather than
77569         "T const" to accommodate glibc style.
77570         (check_result): Use less-confusing report format.  "long" -> "long int.
77571         (main): Likewise.
77572         Don't loop if the iteration overflows time_t.
77573         Allow a negative step in the iteration.
77574
77575 2003-07-06  Karl Berry  <karl@gnu.org>
77576
77577         * config/depcomp: update from automake.
77578         * config/config.sub: update from prep.
77579
77580 2003-07-03  Karl Berry  <karl@gnu.org>
77581
77582         * config/config.guess: update from prep.
77583
77584 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77585
77586         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
77587         xreadlink.c now includes it unconditionally.
77588
77589 2003-07-01  Paul Eggert  <eggert@twinsun.com>
77590
77591         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
77592         having it depend on HAVE_SYS_TYPES_H.
77593
77594 2003-07-01  Bruno Haible  <bruno@clisp.org>
77595
77596         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
77597         <sys/types.h> should be sufficient.
77598         Reported by Paul Eggert.
77599
77600 2003-06-26  Karl Berry  <karl@gnu.org>
77601
77602         * config/depcomp: update from automake.
77603
77604 2003-06-26  Bruno Haible  <bruno@clisp.org>
77605
77606         * modules/human: Depend on module stdbool.
77607
77608 2003-06-25  Bruno Haible  <bruno@clisp.org>
77609
77610         * modules/readlink: New file.
77611         * modules/xreadlink: Depend on it.
77612         * MODULES.html.sh (func_all_modules): Add readlink.
77613
77614 2003-06-25  Bruno Haible  <bruno@clisp.org>
77615
77616         * m4/readlink.m4: New file.
77617
77618 2003-06-25  Bruno Haible  <bruno@clisp.org>
77619
77620         * lib/readlink.c: New file.
77621
77622 2003-06-22  Karl Berry  <karl@gnu.org>
77623
77624         * config/srclist.txt: update mkinstalldirs from automake.
77625         * config/mkinstalldirs: update.
77626
77627 2003-06-22  Bruno Haible  <bruno@clisp.org>
77628
77629         Portability to mingw32.
77630         * m4/ssize_t.m4: New file, from GNU gettext.
77631         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
77632         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
77633
77634 2003-06-22  Bruno Haible  <bruno@clisp.org>
77635
77636         * modules/safe-read: Add m4/ssize_t.m4.
77637         * modules/xreadlink: Add m4/ssize_t.m4.
77638
77639 2003-06-20  Bruno Haible  <bruno@clisp.org>
77640
77641         Assume C89, so PARAMS isn't needed.
77642         * lib/unicodeio.h (PARAMS): Remove.
77643         * lib/unicodeio.c: Don't use PARAMS.
77644
77645 2003-06-18  Karl Berry  <karl@gnu.org>
77646
77647         * config/config.{guess,sub}: update from prep.
77648
77649 2003-06-18  Jim Meyering  <jim@meyering.net>
77650
77651         Merge changes from coreutils.
77652         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
77653         Remove explicit declarations of xmalloc and realloc.
77654         Include xalloc.h.
77655         (read_utmp): Remove anachronistic cast of xmalloc.
77656
77657 2003-06-17  Paul Eggert  <eggert@twinsun.com>
77658
77659         Assume C89, so PARAMS isn't needed.
77660         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
77661         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
77662         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
77663         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
77664         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
77665         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
77666         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
77667         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
77668         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
77669         lib/xstrtod.h, lib/xstrtol.h: Likewise.
77670         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
77671         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
77672         no longer needed. Anyway, config.h should always be included before any
77673         other file.
77674
77675 2003-06-11  Simon Josefsson  <jas@extundo.com>
77676
77677         * modules/sysexits: New file.
77678         * MODULES.html.sh (func_all_modules): Add sysexits.
77679
77680 2003-06-11  Simon Josefsson  <jas@extundo.com>
77681
77682         * lib/sysexit_.h: New file.
77683
77684 2003-06-11  Derek Price  <derek@ximbiot.com>
77685
77686         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
77687         necessary.
77688
77689 2003-06-11  Bruno Haible  <bruno@clisp.org>
77690
77691         * m4/sysexits.m4: New file.
77692
77693 2003-06-10  Simon Josefsson  <jas@extundo.com>
77694
77695         * lib/argp.h: New file, from glibc.
77696         * lib/argp-ba.c: New file, from glibc.
77697         * lib/argp-eexst.c: New file, from glibc.
77698         * lib/argp-fmtstream.c: New file, from glibc.
77699         * lib/argp-fmtstream.h: New file, from glibc.
77700         * lib/argp-fs-xinl.c: New file, from glibc.
77701         * lib/argp-help.c: New file, from glibc.
77702         * lib/argp-namefrob.h: New file, from glibc.
77703         * lib/argp-parse.c: New file, from glibc.
77704         * lib/argp-pv.c: New file, from glibc.
77705         * lib/argp-pvh.c: New file, from glibc.
77706         * lib/argp-xinl.c: New file, from glibc.
77707
77708 2003-06-10  Simon Josefsson  <jas@extundo.com>
77709
77710         * modules/strchrnul: New file.
77711
77712 2003-06-10  Simon Josefsson  <jas@extundo.com>
77713
77714         * modules/argp: New file.
77715
77716 2003-06-10  Simon Josefsson  <jas@extundo.com>
77717
77718         * m4/strchrnul.m4: New file.
77719
77720 2003-06-10  Simon Josefsson  <jas@extundo.com>
77721
77722         * lib/strchrnul.h: New file.
77723         * lib/strchrnul.c: New file.
77724
77725 2003-06-10  Bruno Haible  <bruno@clisp.org>
77726
77727         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
77728
77729 2003-06-07  Karl Berry  <karl@gnu.org>
77730
77731         * config/config.{guess,sub}: update from prep.
77732
77733 2003-06-07  Jim Meyering  <jim@meyering.net>
77734
77735         * modules/strtod: Use $(...) notation, not @...@ for
77736         AC_REPLACE'd variables.
77737         * modules/localcharset: Likewise.
77738
77739 2003-06-07  Jim Meyering  <jim@meyering.net>
77740
77741         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
77742         in place of my name in the copyright comment.
77743         Remove definition and uses of __P.
77744
77745         From coreutils.
77746         * lib/stat.c: Don't declare xmalloc explicitly.
77747         Instead, include "xalloc.h".
77748         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
77749         xrealloc, and xcalloc return values.
77750         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
77751         Improve comment.
77752         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
77753
77754 2003-06-07  Bruno Haible  <bruno@clisp.org>
77755
77756         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
77757         avoid AC_CONFIG_LINKS.
77758         * modules/fnmatch (Makefile.am): Use explicit creation rule for
77759         fnmatch.h, to avoid AC_CONFIG_LINKS.
77760         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
77761
77762 2003-06-07  Bruno Haible  <bruno@clisp.org>
77763
77764         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
77765         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
77766         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77767         directory.
77768         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
77769         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77770         directory.
77771
77772 2003-06-06  Jim Meyering  <jim@meyering.net>
77773
77774         Merge from coreutils.
77775         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
77776         Consolidate declarations and initializations of *_base* locals.
77777
77778         Merge from coreutils.
77779         This avoids a core dump on systems without GNU putenv,
77780         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
77781         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
77782         (unsetenv): New static function, from GNU libc.
77783         (rpl_putenv): Use it.
77784
77785         * lib/modechange.c: Remove trailing blanks.
77786
77787         Merge from coreutils.
77788         * lib/fsusage.c: Remove declaration of statfs.
77789         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
77790
77791         * lib/posixtm.c: Include <stdbool.h> unconditionally.
77792
77793 2003-06-06  Jim Meyering  <jim@meyering.net>
77794
77795         * lib/stdbool_.h: Renamed from stdbool.h.in.
77796
77797 2003-06-06  Jim Meyering  <jim@meyering.net>
77798             Bruno Haible  <bruno@clisp.org>
77799
77800         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
77801         Adjust Makefile.am snippet not to redirect directly to target.
77802         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
77803
77804 2003-06-05  Paul Eggert  <eggert@twinsun.com>
77805
77806         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
77807         mismatch, look in future quarters as well as past.  This fixes a
77808         bug when processing fall-backwards gaps immediately after a long
77809         period of daylight-saving time.
77810
77811         * lib/mktime.c: Assume freestanding C89 or better.
77812         (HAVE_LIMITS_H): Remove.  Assume it's 1.
77813         (__P): Remove; not used.
77814         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
77815         (mktime, not_equal_tm, print_tm, check_result,
77816         main): Use prototypes.  Use const * where appropriate.
77817         (main): Fix typo in testing code that uncovered by above changes.
77818         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
77819
77820 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77821
77822         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
77823         locale.h, localeconv.  This merges changes from coreutils.
77824
77825         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
77826         It can be removed after the next Autoconf is released.
77827         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
77828         needed.
77829
77830 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77831
77832         * lib/mktime.c: Fix Debian bug 177940
77833         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
77834         (localtime_offset): Now long int, not time_t, because we want it
77835         to be guaranteed to be signed.  All uses changed.
77836         (__mktime_internal): If overflow would occur when adding offset,
77837         don't add it.
77838
77839         Merge 'human' changes from coreutils.  Rewrite to support
77840         locale-specific notations like thousands separators.
77841         * lib/human.c: Simplify authorship notice.
77842         Include human.h immediately after config.h.
77843         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
77844         <limits.h>: Do not include, since human.h does.
77845         (SIZE_MAX, UINTMAX_MAX): New macros.
77846         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
77847         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
77848         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
77849         (power_letter): Renamed from suffixes.
77850         (generate_suffix_backwards): Remove.
77851         (adjust_value): Now takes int style (because of human.h changes)
77852         and long double value (for greater precision on some platforms).
77853         (group_number): New function.
77854         (human_readable): Use it.  Use integer options, not enum.
77855         Put the options before the sizes in the arg list.
77856         Support all the new options.
77857         The old human_readable function has been removed;
77858         use inttostr.h instead.
77859         (human_readable, default_block_size, humblock):
77860         Use uintmax_t, not int, for block sizes.
77861         (human_readable_inexact, block_size_types): Remove.
77862         (block_size_opts): New constant.
77863         (human_options): Renamed from human_block_size, with new signature
77864         that allows block sizes up to UINTMAX_MAX.  All callers changed.
77865         * lib/human.h: Add copyright and authorship notice.
77866         Include <limits.h> and <stdbool.h> unconditionally.
77867         (PARAMS): Remove.  All uses removed.
77868         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
77869         (enum human_inexact_style): Remove tag; now a nameless enum.
77870         (human_floor, human_ceiling, human_round_to_even): Now have
77871         values 2, 0, 1 rather than -1, 1, 0.
77872         (human_group_digits, human_suppress_point_zero, human_autoscale,
77873         human_base_1024, human_SI, human_B): New constants.
77874         (human_readable_inexact, human_block_size): Remove.
77875         (human_readable): Size args are now uintmax_t, not int.
77876         (human_options): New decl.
77877
77878         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
77879         unnecessary now that we assume C89 or better.  This change
77880         imported from coreutils.
77881
77882         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
77883         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
77884         in the 2003-05-30 sync from glibc.
77885
77886         .h files should stand alone, but we shouldn't include <sys/types.h>
77887         if we can get away with just <stddef.h>.
77888
77889         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
77890         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
77891         rather than <sys/types.h>, as we merely need size_t.
77892         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
77893         to get size_t.
77894         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
77895         Include <stdio.h>, to get FILE.
77896         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
77897         memcasecmp.h has included <stddef.h> and all we need is size_t.
77898         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
77899         our interface, instead of including <sys/types.h>
77900
77901 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77902
77903         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
77904         now, as glibc mktime is buggy on non-glibc systems.
77905
77906 2003-06-03  Karl Berry  <karl@gnu.org>
77907
77908         * config/config.sub: update from prep.
77909
77910 2003-06-02  Paul Eggert  <eggert@twinsun.com>
77911
77912         [from coreutils]
77913         Fix some minor time-related bugs with POSIX time arguments.
77914         Some valid time stamps were being rejected (notably -1, and
77915         time stamps before 1900 on 64-bit hosts).  And some invalid
77916         time stamps were being accepted, e.g. September 31.
77917
77918         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
77919         that we can return (time_t) -1 successfully.
77920         * lib/posixtm.c: Likewise.
77921         [HAVE_STDBOOL_H]: Include <stdbool.h>.
77922         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
77923         (t): Remove static var.
77924         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
77925         of static var.  All uses changed.
77926         (year): Do not reject years before 1900; they can occur with
77927         64-bit time_t.
77928         (posix_time_parse): Do not check for out-of-range components;
77929         that is now the caller's responsibility, since our checks were
77930         only approximations.
77931         (posixtime): Use mktime to check for out-of-range components,
77932         since it knows them exactly.
77933         If mktime returns (time_t) -1, check whether an error actually occurred
77934         by invoking localtime on -1.
77935         (main) [TEST_POSIXTIME]: Check for input data errors, and report
77936         posixtime failures better.
77937         Improve the test data (in comments only).
77938
77939 2003-06-02  Karl Berry  <karl@gnu.org>
77940
77941         * config/mkinstalldirs (version): new variable.
77942         (--version): new option.
77943         (usage): improve message.
77944
77945 2003-05-30  Karl Berry  <karl@gnu.org>
77946
77947         * lib/mktime.c: update from libc.
77948
77949 2003-05-30  Bruno Haible  <bruno@clisp.org>
77950
77951         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
77952         * config/config.rpath: Upgrade to gettext-0.12.1.
77953
77954 2003-05-30  Bruno Haible  <bruno@clisp.org>
77955
77956         * m4/gettext.m4: Upgrade to gettext-0.12.1.
77957         * m4/nls.m4: New file, from gettext-0.12.1.
77958         * m4/po.m4: New file, from gettext-0.12.1.
77959         * m4/progtest.m4: Upgrade to gettext-0.12.1.
77960
77961 2003-05-30  Bruno Haible  <bruno@clisp.org>
77962
77963         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
77964         * lib/localcharset.h: Likewise.
77965         * lib/localcharset.c: Likewise.
77966
77967 2003-05-29  Karl Berry  <karl@gnu.org>
77968
77969         * config/config.rpath: update from gettext.
77970
77971 2003-05-28  Paul Eggert  <eggert@twinsun.com>
77972
77973         Assume the headers required for C89 freestanding compilers.
77974         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
77975         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
77976         * m4/human.m4 (gl_HUMAN): Likewise.
77977         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
77978         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
77979         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77980         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
77981         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77982         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
77983
77984 2003-05-28  Paul Eggert  <eggert@twinsun.com>
77985
77986         Assume the headers required for C89 freestanding compilers.
77987         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
77988         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
77989         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
77990         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
77991         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
77992         define, since <limits.h> is guaranteed to do that.
77993         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
77994         * lib/exclude.c: Include <stdbool.h> unconditionally.
77995         * lib/tempname.c: Include <stddef.h> unconditionally.
77996         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
77997         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
77998         <stddef.h> does that.
77999         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
78000         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
78001         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
78002         needed.
78003         * lib/xstrtol.c: Likewise.
78004         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
78005         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
78006
78007         * lib/addext.c (addext): Use assignment rather than cast, to avoid
78008         warnings on some platforms.
78009
78010         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
78011         arbitrarily.
78012
78013 2003-05-26  Jim Meyering  <jim@meyering.net>
78014
78015         Merge in a change from coreutils:
78016         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
78017         that is guaranteed to be `no'.  Use `no_such_member' to indicate
78018         that condition, rather than `-1' which is slightly misleading.
78019         Change the name of the cache variable to have the gl_ prefix.
78020         Prompted by a patch from Richard Dawe for DJGPP.
78021
78022 2003-05-24  Karl Berry  <karl@gnu.org>
78023
78024         * config/config.guess: update from prep.
78025
78026 2003-05-22  Karl Berry  <karl@gnu.org>
78027
78028         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
78029
78030 2003-05-20  Karl Berry  <karl@gnu.org>
78031
78032         * config/config.guess: update from prep.
78033
78034 2003-05-18  Karl Berry  <karl@gnu.org>
78035
78036         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
78037         might actually be set by the user.
78038
78039         * config/depcomp, install-sh, mdate-sh: update from automake.
78040
78041 2003-05-17  Bruno Haible  <bruno@clisp.org>
78042
78043         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
78044         invalid expansion for AC_EGREP_CPP.
78045         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
78046         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
78047         Suggested by Akim Demaille <akim@epita.fr> in
78048         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
78049
78050 2003-05-12  Jim Meyering  <jim@meyering.net>
78051
78052         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
78053         the space-padded-by-default conversion specifiers, %e, %k, %l.
78054
78055 2003-05-12  Bruno Haible  <bruno@clisp.org>
78056
78057         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
78058         the string is longer than 4 KB.
78059
78060 2003-05-11  Karl Berry  <karl@gnu.org>
78061
78062         * config/config.{guess,sub}: update from prep.
78063
78064 2003-05-09  Bruno Haible  <bruno@clisp.org>
78065
78066         * modules/error: Add m4/strerror_r.m4 to file list.
78067
78068 2003-05-03  Bruno Haible  <bruno@clisp.org>
78069
78070         Upgrade to Unicode-4.0.
78071         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
78072         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
78073         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
78074         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
78075         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
78076         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
78077         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
78078         Change width of U+E0100..U+E01EF from 1 to 0.
78079
78080 2003-04-25  Jim Meyering  <jim@meyering.net>
78081
78082         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
78083         of type size_t, not int.
78084
78085 2003-04-25  Bruno Haible  <bruno@clisp.org>
78086
78087         * lib/copy-file.c: Include <stddef.h>, for size_t.
78088
78089 2003-04-21  Paul Eggert  <eggert@twinsun.com>
78090
78091         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
78092         code which expansion is under static control.  Patch imported from
78093         Akim Demaille's patch to Bison; see
78094         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
78095
78096 2003-04-14  Bruno Haible  <bruno@clisp.org>
78097
78098         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
78099
78100 2003-04-11  Jim Meyering  <jim@meyering.net>
78101
78102         Merge changes from Coreutils.
78103
78104         2003-03-22  Jim Meyering  <jim@meyering.net>
78105
78106         * lib/strftime.c (widen): Cast alloca return value to proper type.
78107
78108         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
78109
78110         From GNU libc.
78111         * lib/strftime.c (my_strftime): Handle very large width
78112         specifications for numeric values correctly.  Improve checks for
78113         overflow.
78114
78115         2003-01-19  Jim Meyering  <jim@meyering.net>
78116
78117         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
78118         definitions.
78119         (nl_get_alt_digit) [! defined my_strftime]: Define.
78120         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
78121         _nl_get_alt_digit and _nl_get_walt_digit.
78122
78123         * lib/strftime.c (my_strftime): Merge in locale-related changes from
78124         libc. These changes have no effect outside of _LIBC.
78125
78126 2003-04-10  Bruno Haible  <bruno@clisp.org>
78127
78128         * modules/findprog: New file.
78129         * MODULES.html.sh (func_all_modules): Add it.
78130
78131 2003-04-10  Bruno Haible  <bruno@clisp.org>
78132
78133         * m4/findprog.m4: New file.
78134         * m4/eaccess.m4: New file.
78135
78136 2003-04-10  Bruno Haible  <bruno@clisp.org>
78137
78138         * lib/findprog.h: New file, from GNU gettext.
78139         * lib/findprog.c: New file, from GNU gettext.
78140
78141 2003-04-05  Jim Meyering  <jim@meyering.net>
78142
78143         Merge changes from Coreutils.
78144
78145         * lib/exclude.h (PARAMS): Remove definition and uses.
78146         * lib/exclude.c: Remove uses of `PARAMS'.
78147
78148         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
78149         Add test-cases for DOS filenames. Declare program_name.
78150         (main): Set up program_name.  Patch by Rich Dawe.
78151
78152         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78153         error from mntctl.
78154         Use mntctl's return value to drive the entry-processing loop, since
78155         we can't rely on the value of the vmt_length member in the last
78156         entry.  On some systems doing so could result in exhausting
78157         virtual memory.  Based in part on a patch from Mike Jetzer.
78158
78159 2003-04-04  Bruno Haible  <bruno@clisp.org>
78160
78161         * modules/linebreak: New file.
78162         * MODULES.html.sh (func_all_modules): Add it.
78163
78164 2003-04-04  Bruno Haible  <bruno@clisp.org>
78165
78166         * m4/linebreak.m4: New file.
78167
78168 2003-04-04  Bruno Haible  <bruno@clisp.org>
78169
78170         * lib/linebreak.h: New file, from GNU gettext.
78171         * lib/linebreak.c: New file, from GNU gettext with slight
78172         modifications.
78173         * lib/lbrkprop.h: New file, from GNU gettext.
78174
78175 2003-04-03  Bruno Haible  <bruno@clisp.org>
78176
78177         * modules/utf8-ucs4: New file.
78178         * modules/utf16-ucs4: New file.
78179         * modules/ucs4-utf8: New file.
78180         * modules/ucs4-utf16: New file.
78181         * MODULES.html.sh (func_all_modules): Add them.
78182
78183 2003-04-03  Bruno Haible  <bruno@clisp.org>
78184
78185         * m4/utf-ucs4.m4: New file.
78186         * m4/ucs4-utf.m4: New file.
78187
78188 2003-04-03  Bruno Haible  <bruno@clisp.org>
78189
78190         * lib/utf8-ucs4.h: New file, from GNU gettext.
78191         * lib/utf16-ucs4.h: New file, from GNU gettext.
78192         * lib/ucs4-utf8.h: New file, from GNU gettext.
78193         * lib/ucs4-utf16.h: New file, from GNU gettext.
78194
78195 2003-04-02  Bruno Haible  <bruno@clisp.org>
78196
78197         * modules/binary-io: New file.
78198         * MODULES.html.sh (func_all_modules): Add it.
78199
78200 2003-04-02  Bruno Haible  <bruno@clisp.org>
78201
78202         * lib/binary-io.h: New file, from GNU gettext.
78203
78204 2003-04-01  Bruno Haible  <bruno@clisp.org>
78205
78206         * modules/pathname: New file.
78207         * MODULES.html.sh (func_all_modules): Add it.
78208
78209 2003-04-01  Bruno Haible  <bruno@clisp.org>
78210
78211         * lib/pathname.h: New file, from GNU gettext.
78212         * lib/concatpath.c: New file, from GNU gettext.
78213
78214 2003-03-30  Bruno Haible  <bruno@clisp.org>
78215
78216         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
78217
78218 2003-03-30  Bruno Haible  <bruno@clisp.org>
78219
78220         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
78221         function chown() doesn't exist.
78222
78223 2003-03-28  Bruno Haible  <bruno@clisp.org>
78224
78225         * modules/copy-file: New file.
78226         * MODULES.html.sh (func_all_modules): Add it.
78227
78228 2003-03-28  Bruno Haible  <bruno@clisp.org>
78229
78230         * m4/copy-file.m4: New file.
78231
78232 2003-03-28  Bruno Haible  <bruno@clisp.org>
78233
78234         * lib/copy-file.h: New file, from GNU gettext.
78235         * lib/copy-file.c: New file, from GNU gettext.
78236
78237 2003-03-18  Jim Meyering  <jim@meyering.net>
78238
78239         * lib/quote.c (quote_n): Fix typo in comment.
78240
78241 2003-03-18  Bruno Haible  <bruno@clisp.org>
78242
78243         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
78244         checking.
78245         * m4/onceonly_2_57.m4: Likewise.
78246
78247 2003-03-17  Bruno Haible  <bruno@clisp.org>
78248
78249         * m4/onceonly.m4: Require autoconf 2.54 or newer.
78250         (m4_quote): Remove macro.
78251         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
78252
78253 2003-03-14  Jim Meyering  <jim@meyering.net>
78254
78255         Merge changes from Coreutils.
78256         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
78257         to be const, in order to avoid warnings.
78258         (obstack_room): Likewise.
78259         (obstack_empty_p): Likewise.
78260
78261 2003-03-14  Bruno Haible  <bruno@clisp.org>
78262
78263         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
78264         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
78265
78266 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78267
78268         Merge changes from Bison.
78269         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
78270         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
78271         when compiling Bison 1.875's `bitset bset = obstack_alloc
78272         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
78273         * lib/hash.c: Include <stdbool.h> unconditionally.
78274
78275 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78276
78277         * m4/onceonly.m4 (m4_quote): New macro.
78278         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
78279         Quote AC_FOREACH variable-expansions properly.
78280
78281 2003-03-13  Paul Eggert  <eggert@twinsun.com>
78282
78283         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
78284
78285 2003-03-09  Paul Eggert  <eggert@twinsun.com>
78286
78287         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
78288         Reported by Bruce Becker; see:
78289         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
78290
78291 2003-03-03  Paul Eggert  <eggert@twinsun.com>
78292             Bruno Haible  <bruno@clisp.org>
78293
78294         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
78295         Reported by John Hughes, see
78296         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
78297
78298 2003-02-20  Bruno Haible  <bruno@clisp.org>
78299
78300         * MODULES.html.sh (func_all_modules): Add poll.
78301
78302 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78303
78304         * modules/poll: New file.
78305
78306 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78307
78308         * lib/poll_.h: New file.
78309         * lib/poll.c: New file.
78310
78311 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
78312
78313         * m4/poll.m4: New file.
78314
78315 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78316
78317         * modules/mathl: New file.
78318
78319 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78320
78321         * lib/mathl.h: New file.
78322         * lib/acosl.c: New file.
78323         * lib/asinl.c: New file.
78324         * lib/atanl.c: New file.
78325         * lib/ceill.c: New file.
78326         * lib/cosl.c: New file.
78327         * lib/expl.c: New file.
78328         * lib/floorl.c: New file.
78329         * lib/frexpl.c: New file.
78330         * lib/ldexpl.c: New file.
78331         * lib/logl.c: New file.
78332         * lib/sincosl.c: New file.
78333         * lib/sinl.c: New file.
78334         * lib/sqrtl.c: New file.
78335         * lib/tanl.c: New file.
78336         * lib/trigl.c: New file.
78337         * lib/trigl.h: New file.
78338
78339 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
78340
78341         * m4/mathl.m4: New file.
78342
78343 2003-02-18  Bruno Haible  <bruno@clisp.org>
78344
78345         * MODULES.html.sh (func_all_modules): Add mathl.
78346
78347 2003-02-17  Bruno Haible  <bruno@clisp.org>
78348
78349         * modules/mkdtemp: New module.
78350         * MODULES.html.sh (func_all_modules): Add it.
78351
78352 2003-02-17  Bruno Haible  <bruno@clisp.org>
78353
78354         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
78355
78356 2003-02-17  Bruno Haible  <bruno@clisp.org>
78357
78358         * lib/mkdtemp.h: New file, from GNU gettext.
78359         * lib/mkdtemp.c: New file, from GNU gettext.
78360
78361 2003-02-02  Jim Meyering  <jim@meyering.net>
78362
78363         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
78364         e.g. glibc-2.2.93.
78365
78366 2003-01-31  Bruno Haible  <bruno@clisp.org>
78367
78368         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
78369         'rpl_rename'.
78370         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
78371         'rpl_strnlen'.
78372         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
78373         'rpl_strtod'.
78374         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
78375         'rpl_utime'.
78376
78377 2003-01-31  Bruno Haible  <bruno@clisp.org>
78378
78379         * lib/rename.c: #undef rename before defining rpl_rename.
78380         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
78381
78382 2003-01-30  Bruno Haible  <bruno@clisp.org>
78383
78384         * modules/vasnprintf, modules/vasprintf: New modules.
78385         * MODULES.html.sh (func_all_modules): Add them.
78386
78387 2003-01-30  Bruno Haible  <bruno@clisp.org>
78388
78389         * m4/signed.m4: New file, from GNU gettext.
78390         * m4/longdouble.m4: New file, from GNU gettext.
78391         * m4/wchar_t.m4: New file, from GNU gettext.
78392         * m4/wint_t.m4: New file, from GNU gettext.
78393         * m4/vasnprintf.m4: New file.
78394         * m4/vasprintf.m4: New file.
78395
78396 2003-01-30  Bruno Haible  <bruno@clisp.org>
78397
78398         * lib/printf-args.h: New file, from GNU gettext.
78399         * lib/printf-args.c: New file, from GNU gettext.
78400         * lib/printf-parse.h: New file, from GNU gettext.
78401         * lib/printf-parse.c: New file, from GNU gettext.
78402         * lib/vasnprintf.h: New file, from GNU gettext.
78403         * lib/vasnprintf.c: New file, from GNU gettext.
78404         * lib/asnprintf.c: New file, from GNU gettext.
78405         * lib/vasprintf.h: New file, from GNU gettext with modifications.
78406         * lib/vasprintf.c: New file, from GNU gettext.
78407         * lib/asprintf.c: New file, from GNU gettext.
78408
78409 2003-01-29  Bruno Haible  <bruno@clisp.org>
78410
78411         * modules/stpncpy: New module.
78412         * MODULES.html.sh (func_all_modules): Add it.
78413
78414 2003-01-29  Bruno Haible  <bruno@clisp.org>
78415
78416         * m4/stpncpy.m4: New file.
78417
78418 2003-01-29  Bruno Haible  <bruno@clisp.org>
78419
78420         * lib/stpncpy.h: New file, from GNU gettext with modifications.
78421         * lib/stpncpy.c: New file, from GNU gettext with modifications.
78422
78423 2003-01-28  Bruno Haible  <bruno@clisp.org>
78424
78425         * modules/c-ctype: New module.
78426         * MODULES.html.sh (func_all_modules): Add it.
78427
78428 2003-01-28  Bruno Haible  <bruno@clisp.org>
78429
78430         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
78431         Paul Eggert.
78432         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
78433         Paul Eggert.
78434
78435 2003-01-27  Bruno Haible  <bruno@clisp.org>
78436
78437         * modules/xsetenv: New module.
78438         * MODULES.html.sh (func_all_modules): Add it.
78439
78440 2003-01-27  Bruno Haible  <bruno@clisp.org>
78441
78442         * lib/xsetenv.h: New file, from GNU gettext.
78443         * lib/xsetenv.c: New file, from GNU gettext.
78444
78445 2003-01-23  Jim Meyering  <jim@meyering.net>
78446
78447         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
78448         from working on systems without dirfd (at least Irix and OSF1/Tru64).
78449
78450 2003-01-23  Bruno Haible  <bruno@clisp.org>
78451
78452         * modules/minmax: New module.
78453         * MODULES.html.sh (func_all_modules): Add it.
78454
78455 2003-01-23  Bruno Haible  <bruno@clisp.org>
78456
78457         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
78458         Eggert.
78459
78460 2003-01-22  Bruno Haible  <bruno@clisp.org>
78461
78462         * modules/exit: New module.
78463         * MODULES.html.sh (func_all_modules): Add it.
78464
78465 2003-01-22  Bruno Haible  <bruno@clisp.org>
78466
78467         * lib/exit.h: New file, from GNU gettext.
78468
78469 2003-01-19  Bruno Haible  <bruno@clisp.org>
78470
78471         * gnulib-tool: Recognize option --extract-maintainer.
78472         (func_get_maintainer): New function.
78473         * modules/*: Add Maintainer entry.
78474
78475 2003-01-16  Jim Meyering  <jim@meyering.net>
78476
78477         * m4/regex.m4: The `regex' struct is both input and output.
78478         Initialize it before each use.  Patch by Tim Waugh.
78479
78480 2003-01-16  Bruno Haible  <bruno@clisp.org>
78481
78482         * MODULES.html.sh: Add a table of contents. Add the module name as
78483         leftmost column. Add hyperlinks.
78484
78485 2003-01-15  Bruno Haible  <bruno@clisp.org>
78486
78487         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
78488
78489 2003-01-15  Bruno Haible  <bruno@clisp.org>
78490
78491         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
78492         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
78493         suffix.
78494
78495 2003-01-15  Bruno Haible  <bruno@clisp.org>
78496
78497         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
78498
78499 2003-01-15  Bruno Haible  <bruno@clisp.org>
78500
78501         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
78502         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
78503
78504 2003-01-14  Jim Meyering  <jim@meyering.net>
78505
78506         * lib/same.c (same_name): Tweak a comment.
78507
78508 2003-01-14  Bruno Haible  <bruno@clisp.org>
78509
78510         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
78511         when a string comparison is sufficient.
78512
78513 2003-01-14  Bruno Haible  <bruno@clisp.org>
78514
78515         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
78516         'unsigned int'.
78517
78518 2003-01-14  Bruno Haible  <bruno@clisp.org>
78519
78520         * lib/hash-pjw.c: Add comment about low quality of this function.
78521
78522 2003-01-13  Bruno Haible  <bruno@clisp.org>
78523
78524         * modules/stpcpy: Distribute lib/stpcpy.h.
78525         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
78526
78527 2003-01-13  Bruno Haible  <bruno@clisp.org>
78528
78529         * modules/*: Add a description.
78530         * modules/strpbrk: Fix Makefile.am snippet.
78531         * modules/strtoimax: Fix dependencies.
78532         * modules/strtoumax: Likewise.
78533
78534 2003-01-13  Bruno Haible  <bruno@clisp.org>
78535
78536         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
78537         * modules/alloca (Makefile.am): All object files depend on alloca.h.
78538         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
78539
78540 2003-01-13  Bruno Haible  <bruno@clisp.org>
78541
78542         * gnulib-tool (func_create_testdir): Store config/* files in the main
78543         directory.
78544         * config.rpath: Move to ...
78545         * config/config.rpath: ... here.
78546         * modules/gettext: Contains config/config.rpath, not config.rpath.
78547         * modules/iconv: Likewise.
78548
78549 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78550
78551         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78552         to avoid collisions with libcurses and libreadline.
78553
78554         * m4/getstr.m4: Remove.
78555         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
78556
78557 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78558
78559         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78560         to avoid collisions with libcurses and libreadline.
78561
78562         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
78563         * lib/getstr.h, getstr.c: Remove.
78564         * lib/getline.c: Include "getline.h", to check interface.
78565         Move body of old getstr.c here: this defines MIN_CHUNK and
78566         declares getdelim2, which is renamed from getstr.
78567         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
78568
78569         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
78570         All uses changed.
78571         * lib/linebuffer.h: Likewise.
78572         (readline): Remove backward-compatibility macro.
78573
78574 2003-01-12  Paul Eggert  <eggert@twinsun.com>
78575
78576         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
78577         to avoid collisions with libcurses and libreadline.
78578         * getstr: Remove.
78579         * MODULES.html.sh: Remove getstr.
78580         * modules/getline: Depend on unlocked-io, not getstr.
78581
78582 2003-01-12  Jim Meyering  <jim@meyering.net>
78583
78584         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
78585
78586 2003-01-10  Bruno Haible  <bruno@clisp.org>
78587
78588         * modules/alloca: Change Makefile.am requirements. Simplify Include
78589         requirements. Add lib/alloca_.h to file list.
78590
78591 2003-01-10  Bruno Haible  <bruno@clisp.org>
78592
78593         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
78594
78595 2003-01-10  Bruno Haible  <bruno@clisp.org>
78596
78597         * lib/alloca_.h: New file.
78598         * lib/getdate.y: Unconditionally include alloca.h.
78599         * lib/makepath.c: Likewise.
78600         * lib/setenv.c: Likewise.
78601         * lib/userspec.c: Likewise.
78602
78603 2003-01-09  Karl Berry  <karl@gnu.org>
78604
78605         * MODULES.html.sh: include `dirname $0` in PATH, to find
78606         gnulib-tool.
78607
78608 2003-01-09  Bruno Haible  <bruno@clisp.org>
78609
78610         * modules/stdbool: Change configure.ac, Makefile.am requirements.
78611         Simplify Include requirements. Add lib/stdbool.h.in to file list.
78612
78613 2003-01-09  Bruno Haible  <bruno@clisp.org>
78614
78615         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
78616
78617 2003-01-09  Bruno Haible  <bruno@clisp.org>
78618
78619         * lib/stdbool.h.in: New file.
78620
78621 2003-01-09  Bruno Haible  <bruno@clisp.org>
78622
78623         * gnulib-tool (func_all_modules): Ignore files ending in ~.
78624         * MODULES.html.sh: Likewise.
78625
78626 2003-01-08  Jim Meyering  <jim@meyering.net>
78627
78628         * lib/full-write.c: Undefine and define-away `const' after inclusion
78629         of errno.h, not before.  Suggestion from Bruno Haible.
78630
78631 2003-01-08  Bruno Haible  <bruno@clisp.org>
78632
78633         * modules/full-read: Depend on full-write.
78634
78635 2003-01-08  Bruno Haible  <bruno@clisp.org>
78636
78637         * lib/safe-read.c: Include specification header first, to ensure its
78638         selfcontainedness.
78639         * lib/full-write.c: Likewise.
78640
78641 2003-01-07  Jim Meyering  <jim@meyering.net>
78642
78643         * lib/full-write.c: Rework so that it may serve to define full_read,
78644         too.
78645         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
78646
78647 2003-01-07  Bruno Haible  <bruno@clisp.org>
78648
78649         * lib/strtoimax.c: Include <stdint.h> as an alternative to
78650         <inttypes.h>.
78651         * lib/xstrtol.h: Likewise.
78652         * lib/xstrtoimax.c: Likewise.
78653         * lib/xstrtoumax.c: Likewise.
78654         * lib/human.h: Likewise.
78655
78656         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
78657         on systems that have <inttypes.h> but not <stdint.h>.
78658
78659 2003-01-07  Bruno Haible  <bruno@clisp.org>
78660
78661         * MODULES.html.sh: Add copyright notice.
78662         (missed_files): Omit CVS directory entries.
78663         (func_module): Make it work with sed-3.02.
78664         * MODULES.txt: Remove file.
78665
78666 2003-01-06  Jim Meyering  <jim@meyering.net>
78667
78668         * lib/version-etc.c: Update year in translatable copyright string.
78669
78670 2003-01-03  Karl Berry  <karl@gnu.org>
78671
78672         * config/config.{guess,sub}: update from prep.
78673
78674 2003-01-02  Karl Berry  <karl@gnu.org>
78675
78676         * doc/COPYING.DOC: belatedly updated to 1.2.
78677
78678 2003-01-01  Karl Berry  <karl@gnu.org>
78679
78680         * gnulib-tool (func_verify_module): report module name $module in
78681         error message, not $1.
78682         * gnulib-tool (create-testdir): don't complain if destdir couldn't
78683         be created, only if it doesn't exist.
78684         * gnulib-tool (last_checkin_date): don't expand the $Date here.
78685
78686 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78687
78688         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
78689
78690 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78691
78692         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
78693         memcmp if strcoll doesn't work.
78694
78695 2002-12-31  Bruno Haible  <bruno@clisp.org>
78696
78697         * lib/utime.c (utime_null): No need to call ftruncate if the file was
78698         nonempty.
78699
78700 2002-12-31  Bruno Haible  <bruno@clisp.org>
78701
78702         * lib/memcoll.c (STRCOLL): New macro.
78703         (memcoll): Use it.
78704
78705 2002-12-31  Bruno Haible  <bruno@clisp.org>
78706
78707         * lib/localcharset.h: New file.
78708         * lib/localcharset.c: Include it.
78709         * lib/unicodeio.c: Likewise.
78710
78711 2002-12-31  Bruno Haible  <bruno@clisp.org>
78712
78713         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
78714         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
78715
78716 2002-12-31  Bruno Haible  <bruno@clisp.org>
78717
78718         * lib/getline.h: Include <stddef.h>, for size_t.
78719
78720         * lib/unicodeio.h: Include <stddef.h>, for size_t.
78721         * lib/unicodeio.c: Don't include <stddef.h>.
78722
78723 2002-12-31  Bruno Haible  <bruno@clisp.org>
78724
78725         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
78726         HAVE_TM_ZONE.
78727
78728 2002-12-24  Karl Berry  <karl@gnu.org>
78729
78730         * config/config.guess: update from prep.
78731
78732 2002-12-24  Bruno Haible  <bruno@clisp.org>
78733
78734         General infrasructure.
78735         * m4/README: Rewritten.
78736         * m4/onceonly.m4: New file.
78737         * m4/onceonly_2_57.m4: New file.
78738
78739         Module atexit.
78740         * m4/atexit.m4: New file.
78741
78742         Module strtod.
78743         * m4/strtod.m4: New file.
78744
78745         Module strtol.
78746         * m4/strtol.m4: New file.
78747
78748         Module strtoul.
78749         * m4/strtoul.m4: New file.
78750
78751         Module memchr.
78752         * m4/memchr.m4: New file.
78753
78754         Module memcmp.
78755         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
78756         (jm_FUNC_MEMCMP): Invoke it.
78757
78758         Module memcpy.
78759         * m4/memcpy.m4: New file.
78760
78761         Module memmove.
78762         * m4/memmove.m4: New file.
78763
78764         Module memset.
78765         * m4/memset.m4: New file.
78766
78767         Module strcspn.
78768         * m4/strcspn.m4: New file.
78769
78770         Module strpbrk.
78771         * m4/strpbrk.m4: New file.
78772
78773         Module strstr.
78774         * m4/strstr.m4: New file.
78775
78776         Module strerror.
78777         * m4/strerror.m4: New file.
78778
78779         Module mktime.
78780         * m4/mktime.m4: Renamed from jm-mktime.m4.
78781         (gl_PREREQ_MKTIME): New macro.
78782         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
78783
78784         Module malloc.
78785         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
78786         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
78787         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
78788
78789         Module realloc.
78790         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
78791         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
78792         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
78793
78794         Module strftime.
78795         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
78796         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
78797         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
78798         gl_TM_GMTOFF.
78799         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
78800
78801         Module xalloc.
78802         * m4/xalloc.m4: New file.
78803
78804         Module alloca.
78805         * m4/alloca.m4: New file.
78806
78807         Module putenv.
78808         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
78809         (jm_FUNC_PUTENV): Invoke it.
78810
78811         Module setenv.
78812         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
78813         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
78814         when invoked twice.
78815         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
78816         gt_FUNC_SETENV.
78817
78818         Module memrchr.
78819         * m4/memrchr.m4: New file.
78820
78821         Module stpcpy.
78822         * m4/stpcpy.m4: New file.
78823
78824         Module strcase.
78825         * m4/strcase.m4: New file.
78826
78827         Module strdup.
78828         * m4/strdup.m4: New file.
78829
78830         Module strnlen.
78831         * m4/strnlen.m4: New file.
78832
78833         Module strndup.
78834         * m4/strndup.m4: New file.
78835
78836         Module xstrtod.
78837         * m4/xstrtod.m4: New file.
78838
78839         Module xstrtol.
78840         * m4/xstrtol.m4: New file.
78841
78842         Module getdate.
78843         * m4/getdate.m4: New file.
78844
78845         Module unlocked-io.
78846         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
78847         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
78848         * m4/jm-glibc-io.m4n: Remove file.
78849
78850         Module long-options.
78851         * m4/long-options.m4: New file.
78852
78853         Module md5.
78854         * m4/md5.m4: New file.
78855
78856         Module sha.
78857         * m4/sha.m4: New file.
78858
78859         Module getstr.
78860         * m4/getstr.m4: New file.
78861
78862         Module getline.
78863         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
78864         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
78865         <sys/types.h>, for size_t. Use the function name gnu_getline, not
78866         simply getline. Infoke gl_PREREQ_GETLINE.
78867
78868         Module obstack.
78869         * m4/obstack.m4: New file.
78870
78871         Module hash.
78872         * m4/hash.m4: New file.
78873
78874         Module readtokens.
78875         * m4/readtokens.m4: New file.
78876
78877         Module strverscmp.
78878         * m4/strverscmp.m4: New file.
78879
78880         Module stdbool.
78881         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
78882         OSF/1.
78883
78884         Module strtoll.
78885         * m4/strtoll.m4: New file.
78886
78887         Module strtoull.
78888         * m4/strtoull.m4: New file.
78889
78890         Module strtoimax.
78891         * m4/strtoimax.m4: New file.
78892
78893         Module strtoumax.
78894         * m4/strtoumax.m4: New file.
78895
78896         Module xstrtoimax.
78897         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
78898         jm_AC_PREREQ_XSTRTOIMAX.
78899         Moved the strtol prerequisites to strtol.m4.
78900         Moved the strtoll prerequisites to strtoll.m4.
78901         Moved the strtoimax prerequisites to strtoimax.m4.
78902
78903         Module xstrtoumax.
78904         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
78905         jm_AC_PREREQ_XSTRTOUMAX.
78906         Moved the strtoul prerequisites to strtoul.m4.
78907         Moved the strtoull prerequisites to strtoull.m4.
78908         Moved the strtoumax prerequisites to strtoumax.m4.
78909
78910         Module chown.
78911         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
78912         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
78913
78914         Module dup2.
78915         * m4/dup2.m4: New file.
78916
78917         Module ftruncate.
78918         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
78919         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
78920
78921         Module getgroups.
78922         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
78923         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
78924
78925         Module gettimeofday.
78926         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
78927         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
78928         gl_PREREQ_GETTIMEOFDAY.
78929
78930         Module mkdir.
78931         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
78932         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
78933
78934         Module mkstemp.
78935         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
78936         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
78937         jm_AC_TYPE_UINTMAX_T.
78938         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
78939
78940         Module stat.
78941         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
78942         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
78943
78944         Module lstat.
78945         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
78946         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
78947
78948         Module timespec.
78949         * m4/timespec.m4 (gl_TIMESPEC): New macro.
78950         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
78951         * m4/st_mtim.m4: Indentation.
78952
78953         Module nanosleep.
78954         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
78955         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
78956         gl_PREREQ_NANOSLEEP.
78957
78958         Module regex.
78959         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
78960         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
78961         (gl_REGEX): New macro.
78962
78963         Module rename.
78964         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
78965         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
78966
78967         Module rmdir.
78968         * m4/rmdir.m4: New file.
78969
78970         Module utime.
78971         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
78972         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
78973         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
78974
78975         Module dirname.
78976         * m4/dirname.m4: New file.
78977
78978         Module getopt.
78979         * m4/getopt.m4: New file.
78980
78981         Module unistd-safer.
78982         * m4/unistd-safer.m4: New file.
78983
78984         Module fnmatch.
78985         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
78986         declaration.
78987         (gl_PREREQ_FNMATCH_EXTRA): New macro.
78988         (gl_FUNC_FNMATCH_POSIX): New macro.
78989         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
78990         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
78991         simply fnmatch.
78992
78993         Module exclude.
78994         * m4/exclude.m4: New file.
78995
78996         Module human.
78997         * m4/human.m4: New file.
78998
78999         Module acl.
79000         * m4/acl.m4: Nop.
79001
79002         Module backupfile.
79003         * m4/backupfile.m4: New file.
79004         * m4/d-ino.m4: Indentation.
79005
79006         Module fsusage.
79007         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
79008         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
79009         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
79010
79011         Module dirfd.
79012         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
79013         requirements.
79014
79015         Module euidaccess.
79016         * m4/euidaccess.m4: New file.
79017
79018         Module file-type.
79019         * m4/file-type.m4: New file.
79020
79021         Module fileblocks.
79022         * m4/fileblocks.m4: New file.
79023
79024         Module filemode.
79025         * m4/filemode.m4: New file.
79026
79027         Module isdir.
79028         * m4/isdir.m4: New file.
79029
79030         Module lchown.
79031         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
79032         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
79033
79034         Module makepath.
79035         * m4/makepath.m4: New file.
79036
79037         Module modechange.
79038         * m4/modechange.m4: New file.
79039
79040         Module mountlist.
79041         * m4/mountlist.m4: New file.
79042         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
79043         Indentation.
79044
79045         Module path-concat.
79046         * m4/path-concat.m4: New file.
79047
79048         Module pathmax.
79049         * m4/pathmax.m4: New file.
79050
79051         Module same.
79052         * m4/same.m4: New file.
79053
79054         Module save-cwd.
79055         * m4/save-cwd.m4: New file.
79056
79057         Module savedir.
79058         * m4/savedir.m4: New file.
79059
79060         Module xgetcwd.
79061         * m4/xgetcwd.m4: New file.
79062         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
79063
79064         Module xreadlink.
79065         * m4/xreadlink.m4: New file.
79066
79067         Module safe-read.
79068         * m4/safe-read.m4: New file.
79069
79070         Module safe-write.
79071         * m4/safe-write.m4: New file.
79072
79073         Module closeout.
79074         * m4/closeout.m4: New file.
79075
79076         Module stdio-safer.
79077         * m4/stdio-safer.m4: New file.
79078
79079         Module getpass.
79080         * m4/getpass.m4: New file.
79081
79082         Module getugroups.
79083         * m4/getugroups.m4: New file.
79084
79085         Module group-member.
79086         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
79087         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
79088
79089         Module idcache.
79090         * m4/idcache.m4: New file.
79091
79092         Module userspec.
79093         * m4/userspec.m4: New file.
79094
79095         Module gettime.
79096         * m4/clock_time.m4: New file.
79097         * m4/gettime.m4: New file.
79098
79099         Module settime.
79100         * m4/settime.m4: New file.
79101
79102         Module posixtm.
79103         * m4/posixtm.m4: New file.
79104
79105         Module gethostname.
79106         * m4/gethostname.m4: New file.
79107
79108         Module canon-host.
79109         * m4/canon-host.m4: New file.
79110
79111         Module gettext.
79112         * m4/codeset.m4: New file, from gettext-0.11.5.
79113         * m4/gettext.m4: New file, from gettext-0.11.5.
79114         * m4/glibc21.m4: New file, from gettext-0.11.5.
79115         * m4/iconv.m4: New file, from gettext-0.11.5.
79116         * m4/intdiv0.m4: New file, from gettext-0.11.5.
79117         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
79118         * m4/inttypes.m4: New file, from gettext-0.11.5.
79119         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
79120         * m4/isc-posix.m4: New file, from gettext-0.11.5.
79121         * m4/lcmessage.m4: New file, from gettext-0.11.5.
79122         * m4/lib-ld.m4: New file, from gettext-0.11.5.
79123         * m4/lib-link.m4: New file, from gettext-0.11.5.
79124         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
79125         * m4/progtest.m4: New file, from gettext-0.11.5.
79126         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
79127         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
79128         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
79129
79130         Module localcharset.
79131         * m4/localcharset.m4: New file.
79132
79133         Module hard-locale.
79134         * m4/hard-locale.m4: New file.
79135
79136         Module mbswidth.
79137         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
79138         onceonly macros.
79139         * m4/mbrtowc.m4: Add comment.
79140
79141         Module memcasecmp.
79142         * m4/memcasecmp.m4: New file.
79143
79144         Module memcoll.
79145         * m4/memcoll.m4: New file.
79146
79147         Module unicodeio.
79148         * m4/unicodeio.m4: New file.
79149
79150         Module rpmatch.
79151         * m4/rpmatch.m4: New file.
79152
79153         Module yesno.
79154         * m4/yesno.m4: New file.
79155
79156         Module exitfail.
79157         * m4/exitfail.m4: New file.
79158
79159         Module c-stack.
79160         * m4/c-stack.m4 (gl_C_STACK): New macro.
79161         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
79162
79163         Module error.
79164         * m4/error.m4 (gl_ERROR): New macro.
79165         (jm_PREREQ_ERROR): Use onceonly macros.
79166
79167         Module fatal.
79168         * m4/fatal.m4: New file.
79169
79170         Module getloadavg.
79171         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
79172         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
79173
79174         Module getpagesize.
79175         * m4/getpagesize.m4: New file.
79176
79177         Module getusershell.
79178         * m4/getusershell.m4: New file.
79179
79180         Module physmem.
79181         * m4/physmem.m4: New file.
79182
79183         Module posixver.
79184         * m4/posixver.m4: New file.
79185
79186         Module quotearg.
79187         * m4/quotearg.m4: New file.
79188
79189         Module quote.
79190         * m4/quote.m4: New file.
79191
79192         Module readutmp.
79193         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
79194
79195         Module sig2str.
79196         * m4/sig2str.m4: New file.
79197
79198         Other.
79199         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
79200         ulonglong.m4.
79201         * m4/intmax_t.m4: New file.
79202         * m4/d-type.m4: Indentation.
79203         * m4/jm-macros.m4: Update.
79204         * m4/prereq.m4 (jm_PREREQ): Update.
79205         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
79206         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
79207         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
79208         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
79209         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
79210         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
79211         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
79212         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
79213         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
79214         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
79215         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
79216         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
79217         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
79218         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
79219         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
79220         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
79221         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
79222         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
79223         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
79224
79225 2002-12-24  Bruno Haible  <bruno@clisp.org>
79226
79227         * MODULES.txt: Update according to m4/ changes.
79228
79229         Module gettext.
79230         * config.rpath: New file, from gettext-0.11.5.
79231
79232         * modules/*: New module descriptions.
79233         * gnulib-tool: New file.
79234         * MODULES.html.sh: New file.
79235
79236 2002-12-21  Karl Berry  <karl@gnu.org>
79237
79238         * doc/fdl.texi: update to version 1.2.
79239
79240 2002-12-19  Karl Berry  <karl@gnu.org>
79241
79242         * config/config.guess: update from prep.
79243
79244 2002-12-18  Bruno Haible  <bruno@clisp.org>
79245
79246         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
79247         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
79248
79249 2002-12-17  Bruno Haible  <bruno@clisp.org>
79250
79251         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
79252         stdlib.h, string.h.
79253
79254 2002-12-17  Bruno Haible  <bruno@clisp.org>
79255
79256         * lib/canon-host.c (strdup): Remove unused declaration.
79257
79258         * lib/fsusage.c: Include full_read.h.
79259         (get_fs_usage): Use full_read instead of safe_read.
79260
79261         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
79262
79263 2002-12-12  Karl Berry  <karl@gnu.org>
79264
79265         * config/config.guess: update from prep.
79266
79267 2002-12-11  Bruno Haible  <bruno@clisp.org>
79268
79269         * m4/setenv.m4: New file, from gettext-0.11.5.
79270
79271 2002-12-11  Bruno Haible  <bruno@clisp.org>
79272
79273         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
79274         not unsetenv().
79275         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
79276         modifications:
79277
79278         2002-12-11  Bruno Haible  <bruno@clisp.org>
79279
79280                 * setenv.c (alloca): Fall back to malloc.
79281                 (freea): New macro.
79282                 (setenv): Use freea() to free memory allocated with alloca().
79283
79284         2002-11-13  Bruno Haible  <bruno@clisp.org>
79285
79286                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
79287                 function declarations.
79288                 * unsetenv.c (unsetenv): Likewise.
79289
79290         2002-03-04  Bruno Haible  <bruno@clisp.org>
79291
79292                 Portability to AIX 4.3.3.
79293                 * unsetenv.c: New file, extracted from setenv.c.
79294                 * setenv.c: Move the unsetenv() function to unsetenv.c.
79295
79296         2001-12-20  Bruno Haible  <bruno@clisp.org>
79297
79298                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
79299                 use malloc instead. For SunOS 4.
79300
79301         2001-12-11  Bruno Haible  <bruno@clisp.org>
79302
79303                 * setenv.c: Declare alloca.
79304                 (compar_fn_t): New typedef.
79305                 (KNOWN_VALUE, STORE_VALUE): Use it.
79306
79307         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
79308         setenv.h.
79309
79310 2002-12-10  Paul Eggert  <eggert@twinsun.com>
79311
79312         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
79313         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
79314         Choose values that are less likely to collide with system fnmatch
79315         options.
79316         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
79317         defined (e.g., a pure POSIX system).
79318         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
79319         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
79320
79321 2002-12-06  Paul Eggert  <eggert@twinsun.com>
79322
79323         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
79324         a pain in practice to deal with generated m4 files.  This change
79325         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
79326
79327         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
79328         and jm-glibc-io.m4, as they are no longer a special case.
79329         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
79330         kludge and the auto-generation stuff.  Check only whether the
79331         functions are declared, not whether they exist, since older hosts
79332         that don't declare the functions can't use the optimization anyway.
79333
79334 2002-12-06  Jim Meyering  <jim@meyering.net>
79335
79336         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
79337
79338         Merge in changes from libc's misc/error.c, in preparation
79339         for the merge of gnulib's changes back into libc.
79340
79341         * lib/error.c (_): Define only if not already defined.
79342         Move definition to follow all #include directives.
79343         Include unlocked-io.h only if !_LIBC.
79344         [_LIBC]: Include <libio/libioP.h>.
79345         [USE_IN_LIBIO]: Include <libio/iolibio.h>
79346         (fflush): Tweak definition to use INTUSE.
79347         (putc): Define.
79348
79349 2002-12-05  Paul Eggert  <eggert@twinsun.com>
79350
79351         * lib/alloca.c [defined emacs]: Include "lisp.h".
79352         (xalloc_die) [defined emacs]: New macro.
79353         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
79354         [! defined emacs]: Include <xalloc.h>.
79355         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
79356         (pointer): Typedef to POINTER_TYPE *.
79357         (malloc): Remove decl; we now always use xmalloc.
79358         (alloca): Use old-style definition, since Emacs needs this.
79359         Check for arithmetic overflow when computing combined size.
79360
79361 2002-12-04  Paul Eggert  <eggert@twinsun.com>
79362
79363         Do not generate unlocked-io.h automatically, since it's easier to
79364         maintain it by hand.
79365
79366         * lib/unlocked-io.h: New file, from GNU diffutils,
79367         but with proper copyright notice and attribution.
79368         * lib/gen-uio: Remove.
79369         * lib/Makefile.am: Add copyright notice.
79370         (libfetish_a_SOURCES): Add unlocked-io.h.
79371         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
79372         (DISTCLEANFILES, io_functions): Remove macros.
79373         (EXTRA_DIST): Remove gen_uio.
79374         (unlocked-io.h): Remove rule.
79375
79376 2002-12-04  Jim Meyering  <jim@meyering.net>
79377
79378         Reflect the fact that stat.c and lstat.c are no longer generated.
79379         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
79380         (DISTCLEANFILES): Likewise.
79381         (EXTRA_DIST): Likewise.
79382         (all_local): Don't depend on stat.c or lstat.c.
79383         (stat.c, lstat.c): Remove rules.
79384         (EXTRA_DIST): Remove xstat.in.
79385
79386         * lib/xstat.in: Remove file.  Contents moved into stat.c.
79387         * lib/stat.c: New file.  Contents mostly from xstat.in.
79388         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
79389         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
79390
79391         * lib/safe-read.c: Rework so that it may serve to define safe_write,
79392         too.
79393         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
79394
79395 2002-12-03  Jim Meyering  <jim@meyering.net>
79396
79397         * lib/safe-read.c, safe-write.c: Change variable names and comments,
79398         but not semantics, to minimize the differences between these two files.
79399         (safe_read): Change comment to mention SAFE_READ_ERROR.
79400
79401         * lib/safe-read.c (IS_EINTR): Define.
79402         (safe_read): Use IS_EINTR in place of in-function cpp directives.
79403
79404 2002-12-02  Jim Meyering  <jim@meyering.net>
79405
79406         * lib/safe-read.c (EINTR): Define.
79407         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79408         (INT_MAX): Provide fallback.
79409         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
79410
79411         * lib/safe-read.h (SAFE_READ_ERROR): Define.
79412
79413 2002-12-02  Bruno Haible  <bruno@clisp.org>
79414
79415         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
79416         Define, taken from safe-read.c.
79417         (INT_MAX): Provide fallback.
79418         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
79419         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
79420
79421         * lib/safe-read.c (EINTR): Remove definition.
79422         (safe_read): Don't use EINTR if it is absent.
79423
79424 2002-12-01  Jim Meyering  <jim@meyering.net>
79425
79426         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
79427         zero.
79428         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
79429
79430 2002-11-27  Paul Eggert  <eggert@twinsun.com>
79431
79432         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
79433         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
79434         with `if (! (value < limit)) abort ();', for readability.
79435
79436 2002-11-26  Karl Berry  <karl@gnu.org>
79437
79438         * lib/strdup.c: copy from libc again, with jim's ok.
79439         * lib/.cppi-disable: re-add strdup.c
79440
79441 2002-11-25  Karl Berry  <karl@gnu.org>
79442
79443         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
79444         instead of "strtol.c".
79445
79446 2002-11-25  Karl Berry  <karl@gnu.org>
79447
79448         * config/install-sh: update from automake for variable quoting, $0 in
79449         error msgs, etc.
79450
79451         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
79452         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
79453         entry.
79454
79455 2002-11-25  Jim Meyering  <jim@meyering.net>
79456
79457         * lib/mktime.c: Sync from libc, now that it has the latest fix.
79458
79459 2002-11-24  Karl Berry  <karl@gnu.org>
79460
79461         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
79462         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
79463
79464 2002-11-24  Jim Meyering  <jim@meyering.net>
79465
79466         Update from coreutils:
79467
79468         * lib/mktime.c: Merge in changes from libc.
79469
79470         Avoid a link-time failure on some Linux systems.
79471         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
79472         (otherwise).
79473         (__mon_yday): Declare with the STATIC attribute.
79474         (__mktime_internal): Likewise.
79475         Based on a report from Greg Schafer.
79476
79477 2002-11-23  Jim Meyering  <jim@meyering.net>
79478
79479         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
79480         Use `unsigned', not `int', as type of index.
79481
79482         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
79483
79484         * lib/fsusage.c: Remove unneeded parentheses around operands of
79485         `defined'.
79486
79487 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79488
79489         * lib/quotearg.h: Allow multiple inclusion by surrounding with
79490         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
79491         so that we can be included first.
79492         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
79493         * lib/quotearg.c: Include quotearg.h immediately after config.h.
79494         No need to include stddef.h or sys/types.h any more.
79495         Surround local include files with "", not "<>".
79496         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
79497         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
79498         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
79499         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
79500         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
79501         (ISPRINT): Remove; no longer needed now that we assume C89.
79502
79503         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
79504         Preserve errno.
79505
79506         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
79507         quotearg_char): Use SIZE_MAX rather than
79508         (size_t) -1 when we are talking about "infinity".
79509
79510         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
79511
79512 2002-11-22  Paul Eggert  <eggert@twinsun.com>
79513
79514         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
79515         hint that one should use `if (! x) abort ();' rather than `assert
79516         (x);', and anyway it's one less thing to worry about configuring.
79517         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
79518         hash_rehash, hash_insert): Use abort rather than assert.
79519
79520 2002-11-22  Bruno Haible  <bruno@clisp.org>
79521
79522         * lib/safe-read.h: Assume C89. Add comments.
79523         (safe_read): Change return type to size_t.
79524         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
79525         byte counts > SSIZE_MAX correctly.
79526         * lib/safe-write.h: New file.
79527         * lib/safe-write.c: New file.
79528         * lib/full-read.h: New file.
79529         * lib/full-read.c: New file.
79530         * lib/full-write.h: Assume C89. Add comments.
79531         * lib/full-write.c: Include safe-write.h.
79532         (full_write): Rewritten to use safe_write.
79533         Suggested by Jim Meyering and Paul Eggert.
79534
79535 2002-11-21  Jim Meyering  <jim@meyering.net>
79536
79537         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
79538
79539         Merge in changes from the coreutils.
79540
79541         2002-09-25  Paul Eggert  <eggert@twinsun.com>
79542         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
79543         <stdint.h>.
79544         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
79545         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
79546         int.  Work more efficiently if X is the same width as uintmax_t.
79547         Do not compare X to -1, to avoid bogus compiler warning.
79548         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
79549         Don't assume that f_frsize and f_bsize are the same type.
79550
79551         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
79552         warning on FreeBSD.
79553
79554         * lib/makepath.c (make_path): Restore umask *before* creating the final
79555         component.
79556         (make_path): Minor reformatting.
79557
79558         * lib/xmalloc.c: Adjust to work with new autoconf macros,
79559         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
79560         HAVE_MALLOC/HAVE_REALLOC.
79561
79562         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
79563         dummy ones.  At least on GNU/Linux systems, `auto' means something
79564         else.
79565         From Michael Stone.
79566
79567 2002-11-21  Bruno Haible  <bruno@clisp.org>
79568
79569         Remove case insensitive option matching.
79570         * lib/argmatch.h (argcasematch): Remove declaration.
79571         (ARGCASEMATCH): Remove macro.
79572         (__xargmatch_internal): Remove case_sensitive argument.
79573         (XARGMATCH): Update.
79574         (XARGCASEMATCH): Remove macro.
79575         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
79576         case_sensitive argument.
79577         (argcasematch): Remove function.
79578         (__xargmatch_internal): Remove case_sensitive argument.
79579         (main): Use XARGMATCH instead of XARGCASEMATCH.
79580
79581         * lib/xmalloc.c: Change compile-time error message. Add comment about
79582         required autoconf version.
79583
79584 2002-11-20  Paul Eggert  <eggert@twinsun.com>
79585
79586         Merge argmatch cleanups from Bison.  Assume C89.
79587
79588         * lib/argmatch.c: Include config.h here, not in argmatch.h.
79589         Include stdlib.h, for EXIT_FAILURE.
79590         Always include <string.h>, since we assume C89.
79591         (EXIT_FAILURE): Remove pre-C89 bug workaround.
79592         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
79593         Include <stddef.h> instead, since it's all we need for size_t.
79594         (PARAMS): Remove.  All uses removed.
79595         (ARRAY_CARDINALITY): Do not bother to #undef.
79596         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
79597         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79598         Remove unnecessary parentheses.
79599         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
79600         Insert necessary parentheses.
79601         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
79602         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
79603
79604 2002-11-19  Bruno Haible  <bruno@clisp.org>
79605
79606         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
79607         * lib/mbswidth.h: Include <stddef.h>, for size_t.
79608
79609         * lib/mbswidth.h (PARAMS): Remove macro.
79610         (mbswidth, mbsnwidth): Use ANSI C function declarations.
79611         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
79612
79613         * lib/gcd.h (PARAMS): Remove macro.
79614         (gcd): Use ANSI C function declarations.
79615         * lib/gcd.c (gcd): Likewise.
79616
79617 2002-11-15  Bruno Haible  <bruno@clisp.org>
79618
79619         * lib/strcspn.c: Include <stddef.h>.
79620         (strcspn): Use ANSI C function declaration. Change return type to
79621         size_t. Use NULL.
79622         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
79623         (strpbrk): Use NULL.
79624         * lib/strpbrk.h (PARAMS): Remove macro.
79625         (strpbrk): Use ANSI C function declaration.
79626         * lib/strstr.c: Don't include <sys/types.h>.
79627         * lib/strstr.h (PARAMS): Remove macro.
79628         (strstr): Use ANSI C function declarations.
79629
79630 2002-11-14  Karl Berry  <karl@gnu.org>
79631
79632         * config/mkinstalldirs: `do' on separate line, instead of
79633         `for var; do'.
79634
79635 2002-11-06  Bruno Haible  <bruno@clisp.org>
79636
79637         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
79638         * lib/gcd.c (gcd): Likewise.
79639
79640 2002-11-05  Bruno Haible  <bruno@clisp.org>
79641
79642         * lib/gcd.h: New file, from gettext-0.11.5.
79643         * lib/gcd.c: New file, from gettext-0.11.5.
79644
79645 2002-11-05  Bruno Haible  <bruno@clisp.org>
79646
79647         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79648         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79649         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79650         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79651
79652         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
79653         <libintl.h>.
79654         * lib/makepath.c: Include gettext.h instead of <locale.h> and
79655         <libintl.h>.
79656
79657         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
79658         * lib/human.c: Include gettext.h instead of <libintl.h>.
79659         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
79660         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
79661         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
79662         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
79663         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
79664         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
79665         (textdomain): Remove definition.
79666         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
79667
79668         * lib/long-options.c: Remove include of <libintl.h> and definition of
79669         _.
79670         * lib/same.c: Remove include of <libintl.h> and definition of _.
79671
79672 2002-11-04  Owen Taylor  <otaylor@redhat.com>
79673
79674         * lib/config.charset: A few additions for Solaris.
79675
79676 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79677
79678         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
79679         * lib/localcharset.c (locale_charset): Declare as extern "C".
79680
79681 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79682
79683         * lib/config.charset: msdos in uk_UA uses CP1125.
79684
79685 2002-11-04  Bruno Haible  <bruno@clisp.org>
79686
79687         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
79688         * lib/strcase.h: New file, from GNU gettext-0.11.5.
79689         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
79690         * lib/strstr.h: New file, from GNU gettext-0.11.5.
79691         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
79692
79693 2002-11-04  Bruno Haible  <bruno@clisp.org>
79694
79695         * lib/localcharset.c (locale_charset): Don't return an empty string.
79696
79697 2002-11-04  Bruno Haible  <bruno@clisp.org>
79698
79699         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
79700         aliases.
79701
79702 2002-11-04  Bruno Haible  <bruno@clisp.org>
79703
79704         * lib/config.charset: Update for newest glibc. Add canonical names
79705         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
79706
79707 2002-11-04  Bruno Haible  <bruno@clisp.org>
79708
79709         * lib/config.charset: Add support for NetBSD.
79710
79711 2002-11-04  Bruno Haible  <bruno@clisp.org>
79712
79713         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
79714
79715 2002-11-01  Bruno Haible  <bruno@clisp.org>
79716
79717         * configure.in: Add AC_CONFIG_AUX_DIR call.
79718         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
79719         test/Makefile.
79720         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
79721
79722 2002-09-28  Karl Berry  <karl@gnu.org>
79723
79724         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
79725         installed automake until the next release, since changes have been
79726         made.
79727
79728 2002-09-25  Karl Berry  <karl@gnu.org>
79729
79730         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
79731         * lib/getopt*: copy from libc/posix.
79732         * lib/gettext.h: copy from gettext.
79733         * lib/.cppi-disable: add strdup.c, gettext.h.
79734
79735 2002-09-25  Karl Berry  <karl@gnu.org>
79736
79737         * config/srclist.txt: enable gettext.h check.
79738         * config/config.{guess,sub}: update from prep.
79739         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
79740                 from automake 1.6.3.
79741         See srclist*.
79742
79743 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
79744
79745         * regex.c (PATFETCH): Remove the translating fetch.
79746         (PATFETCH_RAW): Rename to PATFETCH.
79747         (set_image_of_range): New fun.
79748         (SET_RANGE_TABLE_WORK_AREA): Use it.
79749         (regex_compile): Don't translate the pattern chars so eagerly.
79750         Only do it when inserting an `exactn' bytecode or when handling
79751         a char-range.
79752         (mutually_exclusive_p): Avoid empty statement.
79753
79754 2002-07-06  Jim Meyering  <meyering@lucent.com>
79755
79756         * m4/README: Don't mention Makefile.am.in.
79757         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
79758
79759 2002-07-01  Jim Meyering  <meyering@lucent.com>
79760
79761         * lib/c-stack.c: Include sys/time.h.
79762         From Volker Borchert.
79763
79764 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79765
79766         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
79767
79768 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79769
79770         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
79771         New macro.  Use it uniformly instead of
79772         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
79773         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
79774         reported by Vin Shelton.
79775
79776 2002-06-22  Paul Eggert  <eggert@twinsun.com>
79777
79778         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
79779         Do not assume SA_SIGINFO behavior.
79780         Bug reported by Jim Meyering on NetBSD 1.5.2.
79781
79782 2002-06-22  Jim Meyering  <meyering@lucent.com>
79783
79784         * m4/c-stack.m4: New file, from diffutils-2.8.2.
79785         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
79786
79787         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
79788         now that configure.ac uses AC_GNU_SOURCE.
79789         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
79790         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
79791
79792         Update to latest tools.  Suggestions from Paul Eggert.
79793         * m4/stdbool.m4: New file, from diffutils-2.8.2.
79794         * m4/gnu-source.m4: Update from diffutils-2.8.2.
79795         * m4/fnmatch.m4: Likewise.
79796         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
79797         to AC_HEADER_STDBOOL
79798
79799 2002-06-22  Jim Meyering  <meyering@lucent.com>
79800
79801         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
79802         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
79803
79804 2002-06-22  Jim Meyering  <meyering@lucent.com>
79805
79806         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
79807
79808         * lib/exitfail.c, exitfail.h: Likewise.
79809         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
79810
79811         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
79812         of fnmatch.h.
79813         (EXTRA_DIST): Add fnmatch_loop.c.
79814         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
79815
79816         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
79817         * lib/fnmatch.c: Update from diffutils-2.8.2.
79818         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
79819         * lib/fnmatch.h: Remove file.
79820
79821 2002-06-21  Jim Meyering  <meyering@lucent.com>
79822
79823         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
79824         * m4/mbrtowc.m4: Likewise.
79825
79826         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
79827         * m4/mbswidth.m4: Reflect name change:
79828         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
79829         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79830
79831         * m4/lib-link.m4: Update from gettext-0.11.2.
79832         * m4/gettext.m4: Likewise.
79833
79834         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
79835         From Alfred M. Szmidt.
79836
79837 2002-06-18  Paul Eggert  <eggert@twinsun.com>
79838
79839         * lib/file-type.h: Report an error if neither S_ISREG nor
79840         S_IFREG is defined, instead of using a test specific to glibc
79841         2.2.  This should be safe, since POSIX requires S_ISREG and
79842         Unix Version 7 had S_IFREG.  We don't need to check for
79843         <sys/types.h> since we don't use any symbols that it defines.
79844
79845 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
79846
79847         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
79848         $@-t, so that each temporary file name is unique and valid in the first
79849         8 characters, for operation under DOS.
79850
79851 2002-06-15  Paul Eggert  <eggert@twinsun.com>
79852
79853         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
79854
79855 2002-06-15  Jim Meyering  <meyering@lucent.com>
79856
79857         Work even with DJGPP 2.03, which lacks support for symlinks.
79858         From Richard Dawe.
79859         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
79860         is defined.
79861         * lib/lchown.c (S_ISLNK): Likewise.
79862
79863 2002-06-15  Jim Meyering  <meyering@lucent.com>
79864
79865         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
79866         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
79867         have been included before this file.
79868
79869 2002-06-14  Jim Meyering  <meyering@lucent.com>
79870
79871         * lib/file-type.h: Use the version from diffutils-2.8.2.
79872         * lib/file-type.c: Likewise.
79873
79874 2002-06-07  Jim Meyering  <meyering@lucent.com>
79875
79876         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
79877         They're needed at least for NetBSD 1.5.2.
79878         ($statxfs_includes): Include those same headers.
79879         ($statxfs_includes): Include sys/vfs.h if available.
79880         ($statxfs_includes): Likewise for sys/statvfs.h.
79881         Check for the following members in both structs statfs and statvfs:
79882         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
79883
79884 2002-06-01  Jim Meyering  <meyering@lucent.com>
79885
79886         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
79887         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
79888
79889 2002-05-28  Jim Meyering  <meyering@lucent.com>
79890
79891         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
79892         Reported by Volker Borchert.
79893
79894 2002-05-27  Jim Meyering  <meyering@lucent.com>
79895
79896         Fix a problem seen only on nonconforming systems whereby ls.c's
79897         use of localtime, and then of gettimeofday would cause trouble:
79898         the localtime call used to initialize rpl_gettimeofday's save
79899         mechanism would clobber ls's current local time information so
79900         that in any long listing the first file would always be listed
79901         with date 1970-01-01.  Analysis by Volker Borchert.
79902
79903         * lib/gettimeofday.c (localtime): Undefine.
79904         (rpl_localtime): New function.
79905
79906 2002-05-27  Jim Meyering  <meyering@lucent.com>
79907
79908         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
79909         localtime.
79910
79911         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
79912         use the replacement function; it wouldn't resolve at link time.
79913         Reported by Volker Borchert.
79914
79915 2002-05-22  Jim Meyering  <meyering@lucent.com>
79916
79917         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
79918         file-type.h.
79919         * lib/file-type.h: New file.
79920         * lib/file-type.c (file_type): New file/function.  Extracted from
79921         diffutils.
79922
79923 2002-04-30  Jim Meyering  <meyering@lucent.com>
79924
79925         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
79926
79927 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79928
79929         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
79930
79931 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79932
79933         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
79934         Do not check for alloca.h (no longer used) or stdbool.h (was never
79935         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
79936
79937 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79938
79939         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
79940
79941 2002-04-29  Jim Meyering  <meyering@lucent.com>
79942
79943         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
79944         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
79945         Use AC_FUNC_STRNLEN here instead.
79946
79947         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
79948         With autoconf-2.53a, it's part of AC_PROG_CC.
79949
79950 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79951
79952         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
79953         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
79954
79955 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79956
79957         * lib/sig2str.h, lib/sig2str.c: New files.
79958         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
79959
79960 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79961
79962         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
79963         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
79964         of 127, since 64 is the largest conceivable number for ancient
79965         nonstandard hosts.
79966         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
79967
79968 2002-04-28  Jim Meyering  <meyering@lucent.com>
79969
79970         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
79971
79972 2002-04-24  Jim Meyering  <meyering@lucent.com>
79973
79974         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
79975         (jm_PREREQ): Use it.
79976
79977         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
79978         mach/mach.h fcntl.h.
79979         Check for this function: setlocale.
79980
79981 2002-04-24  Jim Meyering  <meyering@lucent.com>
79982
79983         * lib/gettext.h: New file, from Gettext.
79984         * lib/Makefile.am (INCLUDES): Remove -I../intl.
79985         (libfetish_a_SOURCES): Add gettext.h.
79986
79987 2002-04-16  Jim Meyering  <meyering@lucent.com>
79988
79989         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
79990         ut_pid, ut_id, ut_exit.
79991
79992 2002-04-16  Jim Meyering  <meyering@lucent.com>
79993
79994         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
79995         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
79996         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
79997
79998 2002-04-12  Jim Meyering  <meyering@lucent.com>
79999
80000         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
80001         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
80002         existence of the getmntinfo function.  Needed for Darwin 5.3.
80003
80004         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
80005         This is necessary at least on Darwin 5.3.
80006
80007         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
80008         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
80009         strnlen.o in the library, and that makes some versions of ranlib
80010         object.
80011
80012 2002-04-12  Jim Meyering  <meyering@lucent.com>
80013
80014         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
80015
80016 2002-04-09  Jim Meyering  <meyering@lucent.com>
80017
80018         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
80019         to be more precise.  Rather than saying we're checking whether the
80020         function `works', say what we're testing.
80021         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
80022         Reported by Bruno Haible.
80023
80024 2002-03-10  Jim Meyering  <meyering@lucent.com>
80025
80026         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
80027         Suggestion from Santiago Vila.
80028
80029 2002-03-08  Jim Meyering  <meyering@lucent.com>
80030
80031         * lib/rename.c: Mention that this wrapper is needed also on
80032         mips-dec-ultrix4.4 systems.
80033
80034 2002-03-02  Jim Meyering  <meyering@lucent.com>
80035
80036         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
80037         not HAVE_CLOCK_SETTIME.
80038
80039 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80040
80041         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
80042         Check for clock_settime.
80043
80044 2002-02-27  Paul Eggert  <eggert@twinsun.com>
80045
80046         * lib/nanosleep.h: Rename to....
80047         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
80048
80049         * lib/gettime.c: New file.
80050         * lib/settime.c: New file.
80051         * lib/stime.c: Remove.
80052
80053         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
80054         timespec.h.  Remove nanosleep.h.
80055
80056 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80057
80058         * m4/acl.m4: New file.
80059         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
80060         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
80061
80062 2002-02-25  Paul Eggert  <eggert@twinsun.com>
80063
80064         * lib/acl.c, lib/acl.h: New files.
80065         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
80066
80067 2002-02-24  Jim Meyering  <meyering@lucent.com>
80068
80069         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
80070         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
80071         cause trouble.  Reported by Nelson Beebe.
80072
80073 2002-02-23  Paul Eggert  <eggert@twinsun.com>
80074
80075         * lib/path-concat.c (xpath_concat): Reorder code to pacify
80076         compilers that don't know that xalloc_die never returns.
80077
80078 2002-02-20  Jim Meyering  <meyering@lucent.com>
80079
80080         * lib/getdate.c: Regenerate using bison-1.33.
80081
80082 2002-02-17  Jim Meyering  <meyering@lucent.com>
80083
80084         * config/config.guess (main): Don't use `head -1'; it's no longer
80085         portable. Use `sed 1q' instead.
80086
80087 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
80088
80089         * m4/codeset.m4: Upgrade to gettext-0.11.
80090         * m4/gettext.m4: Upgrade to gettext-0.11.
80091         * m4/glibc21.m4: Upgrade to gettext-0.11.
80092         * m4/iconv.m4: Upgrade to gettext-0.11.
80093         * m4/isc-posix.m4: Upgrade to gettext-0.11.
80094         * m4/lcmessage.m4: Upgrade to gettext-0.11.
80095         * m4/lib-ld.m4: New file, from gettext-0.11.
80096         * m4/lib-link.m4: New file, from gettext-0.11.
80097         * m4/lib-prefix.m4: New file, from gettext-0.11.
80098         * m4/progtest.m4: Upgrade to gettext-0.11.
80099
80100 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80101
80102         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
80103         (jm_PREREQ): Use it.
80104
80105 2002-02-15  Paul Eggert  <eggert@twinsun.com>
80106
80107         * lib/posixver.c, lib/posixver.h: New files.
80108         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80109
80110 2002-02-02  Paul Eggert  <eggert@twinsun.com>
80111             Bruno Haible  <bruno@clisp.org>
80112
80113         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
80114         (fwrite_success_callback): New declaration.
80115         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
80116         print_unicode_char. Call failure callback instead of error.
80117         (fwrite_success_callback): New function.
80118         (exit_failure_callback): New function.
80119         (fallback_failure_callback): New function.
80120         (print_unicode_char): Call unicode_to_mb.
80121
80122 2002-01-26  Jim Meyering  <meyering@lucent.com>
80123
80124         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
80125         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
80126
80127 2002-01-26  Jim Meyering  <meyering@lucent.com>
80128
80129         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
80130
80131 2002-01-22  Paul Eggert  <eggert@twinsun.com>
80132
80133         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
80134
80135 2002-01-22  Jim Meyering  <meyering@lucent.com>
80136
80137         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
80138         Otherwise, some versions of automake would omit the rule that makes
80139         Makefile from Makefile.in.
80140
80141 2002-01-21  Paul Eggert  <eggert@twinsun.com>
80142
80143         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
80144         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
80145         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
80146         (memcoll): Set errno to zero if there is no error.
80147
80148         * lib/quotearg.c (quotearg_buffer_restyled):
80149         Fix bug with quoting buffers containing NUL when backslashing escapes.
80150         This bug was exposed by the other changes in this patch.
80151         (quotearg_n_options): New arg ARGSIZE.
80152         All callers changed.
80153         (quoting_options_from_style): New function.
80154         (quotearg_n_style): Use it.
80155         (quotearg_n_style_mem): New function.
80156
80157         * lib/quotearg.h (quotearg_n_style_mem): New function.
80158
80159 2002-01-19  Jim Meyering  <meyering@lucent.com>
80160
80161         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
80162         Remove useless quotes: DF_PROG="df".
80163         * m4/strnlen.m4: New file.
80164
80165 2002-01-16  Paul Eggert  <eggert@twinsun.com>
80166
80167         * lib/backupfile.c (ISDIGIT): Comment fix.
80168         * lib/getdate.y (ISDIGIT): Likewise.
80169         * lib/posixtm.c (ISDIGIT, year): Likewise.
80170         * lib/strverscmp.c (ISDIGIT): Likewise.
80171         * lib/userspec.c (ISDIGIT): Likewise.
80172
80173 2002-01-16  Jim Meyering  <meyering@lucent.com>
80174
80175         * lib/getdate.y: Add three semicolons, each just before a closing
80176         brace. Bison (as of version 1.31) no longer papers over that mistake.
80177
80178 2002-01-05  Jim Meyering  <meyering@lucent.com>
80179
80180         * lib/version-etc.c (version_etc_copyright): Update copyright year.
80181
80182 2001-12-19  Paul Eggert  <eggert@twinsun.com>
80183
80184         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
80185         not silently exit merely because the output buffer happens to
80186         have nothing pending.
80187
80188 2001-12-18  Paul Eggert  <eggert@twinsun.com>
80189
80190         See the big note in ../ChangeLog.
80191         * lib/human.c (suffixes): Prefer K to k for 1024.
80192         (generate_suffix_backwards): New function.
80193         (human_readable_inexact): Use it.
80194         * lib/xstrtol.c (__xstrtol): If there is no number but there
80195         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
80196         Accept 'K' as well as 'k'.
80197
80198 2001-12-15  Jim Meyering  <meyering@lucent.com>
80199
80200         * lib/regex.h (__restrict_arr): Update from libc.
80201
80202         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
80203         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
80204         (STREQ): Define.
80205
80206 2001-12-14  Jim Meyering  <meyering@lucent.com>
80207
80208         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
80209         Suggestion from Bruno Haible.
80210
80211 2001-12-10  Jim Meyering  <meyering@lucent.com>
80212
80213         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
80214         xrealloc, Instead, include "xalloc.h".
80215         (initbuffer): Don't cast xmalloc return value to char*.
80216         (readline): Reword comment.
80217         Don't cast xrealloc return value to char*
80218         Return NULL, not 0.
80219
80220 2001-12-09  Jim Meyering  <meyering@lucent.com>
80221
80222         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
80223         about `signed and unsigned type in conditional expression'.
80224         * lib/posixtm.c (posix_time_parse): Likewise.
80225
80226         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
80227
80228         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
80229         to avoid a pedantic warning.
80230
80231         * lib/getstr.c: Don't include assert.h.
80232         (getstr): Remove warning-evoking assertions.
80233         Return -1 if offset parameter is out of bounds.
80234         Change the type of a local from int to size_t.
80235
80236         * lib/strftime.c (my_strftime_localtime_r): Include this function
80237         definition in the `#if ! HAVE_TM_GMTOFF' block.
80238
80239         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
80240         Include xalloc.h instead.
80241
80242 2001-12-02  Jim Meyering  <meyering@lucent.com>
80243
80244         * lib/tempname.c: Don't declare getenv, thus reverting the change of
80245         2001-11-18.  It's no longer necessary, now that stdlib.h is always
80246         included.
80247
80248         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
80249         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
80250
80251 2001-11-30  Akim Demaille  <akim@epita.fr>
80252
80253         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
80254         before being defined.
80255
80256 2001-11-27  Paul Eggert  <eggert@twinsun.com>
80257
80258         * lib/quotearg.h (quotearg_n, quotearg_n_style):
80259         First arg is int, not unsigned.
80260         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
80261         (SIZE_MAX, UINT_MAX): New macros.
80262         (quotearg_n_options): Abort if N is negative.
80263         Avoid overflow check on hosts where size_t is 64 bits and int
80264         is 32 bits, as overflow is impossible there.
80265         Fix off-by-one typo that caused unnecessary reallocation.
80266
80267 2001-11-27  Jim Meyering  <meyering@lucent.com>
80268
80269         * lib/tempname.c: Merge with version from libc.
80270         * lib/regex.c: Likewise.
80271
80272         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
80273         systems for which STDC_HEADERS is 0, it was not included, resulting in
80274         a warning about an integer-to-pointer conversion problem with getenv.
80275         Reported by Volker Borchert.
80276
80277 2001-11-26  Jim Meyering  <meyering@lucent.com>
80278
80279         * lib/gtod.h: Remove file.
80280         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
80281         * lib/gettimeofday.c: Don't include gtod.h.
80282         (GTOD_init): Remove function.
80283         (rpl_gettimeofday): Do its job here instead, rather than aborting.
80284         Suggestion from Volker Borchert.
80285
80286 2001-11-23  Jim Meyering  <meyering@lucent.com>
80287
80288         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
80289         it.
80290         * lib/hash.c (struct hash_table): Define it here instead.
80291
80292 2001-11-22  Jim Meyering  <meyering@lucent.com>
80293
80294         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
80295
80296 2001-11-20  Jim Meyering  <meyering@lucent.com>
80297
80298         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
80299         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
80300
80301 2001-11-19  Jim Meyering  <meyering@lucent.com>
80302
80303         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
80304         directory.  Use "conftestXXXXXX" as the template.
80305         Suggestion from Paul Eggert.
80306
80307         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
80308         immediately, so the test doesn't mistakenly hit the max-open-files
80309         limit.
80310
80311 2001-11-18  Paul Eggert  <eggert@twinsun.com>
80312
80313         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
80314         (TEMPORARIES): New macro.
80315         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
80316         removes an artificial limitation (e.g. HP-UX 10.20, where
80317         TMP_MAX is 17576).
80318
80319 2001-11-18  Jim Meyering  <meyering@lucent.com>
80320
80321         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
80322
80323 2001-11-18  Jim Meyering  <meyering@lucent.com>
80324
80325         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
80326         on SunOS 4.
80327
80328         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
80329         files will be created before anything else.
80330
80331 2001-11-17  Paul Eggert  <eggert@twinsun.com>
80332
80333         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
80334         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
80335
80336 2001-11-17  Jim Meyering  <meyering@lucent.com>
80337
80338         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
80339         Prompted by a report from Bob Proulx.
80340
80341         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
80342         Instead, require UTILS_FUNC_MKSTEMP.
80343
80344 2001-11-17  Jim Meyering  <meyering@lucent.com>
80345
80346         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
80347         Now, that's done as part of AC_FUNC_STRTOD.
80348
80349 2001-11-17  Jim Meyering  <meyering@lucent.com>
80350
80351         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
80352         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
80353         rather than group writable.  Patch by Juan F. Codagnone.
80354
80355         * lib/readtokens.c: Remove explicit declarations of xmalloc and
80356         xrealloc, Instead, include "xalloc.h".
80357
80358         * lib/mountlist.c: Include unlocked-io.h after all system headers.
80359         Remove explicit declarations of xmalloc, xrealloc,
80360         and xstrdup.  Instead, include "xalloc.h".
80361
80362         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
80363         unlocked-io.h.
80364         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
80365         Likewise.
80366         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
80367
80368         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
80369         Reported by Padraig Brady.
80370
80371         * lib/mkstemp.c: #undef mkstemp.
80372         Include config.h.
80373         (rpl_mkstemp): Rename from mkstemp.
80374         Protoize.
80375
80376 2001-11-16  Jim Meyering  <meyering@lucent.com>
80377
80378         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
80379         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
80380         determine the amount of total physical memory, use pstat_getstatic.
80381         HPUX-11 doesn't define _SC_PHYS_PAGES.
80382         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
80383         If sysconf couldn't be used to determine the amount of available
80384         physical memory, use both pstat_getstatic and pstat_getdynamic.
80385         Based on a patch from Bob Proulx.
80386
80387 2001-11-10  Jim Meyering  <meyering@lucent.com>
80388
80389         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
80390         (jm_PREREQ): Use it.
80391
80392 2001-11-09  Jim Meyering  <meyering@lucent.com>
80393
80394         * m4/jm-macros.m4: Require autoconf-2.52f.
80395         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
80396         Use these AC_-prefixed names, not the AM_-prefixed ones.
80397
80398         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
80399
80400 2001-11-05  Jim Meyering  <meyering@lucent.com>
80401
80402         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
80403
80404 2001-11-04  Jim Meyering  <meyering@lucent.com>
80405
80406         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
80407         $DEFS.
80408
80409 2001-11-03  Jim Meyering  <meyering@lucent.com>
80410
80411         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
80412         of AC_DEFUN.
80413
80414         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
80415         know the name of the variable in the macro definition.
80416
80417 2001-11-03  Jim Meyering  <meyering@lucent.com>
80418
80419         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
80420         in argmatch_to_argument call.
80421
80422         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
80423         argument.
80424
80425         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
80426         e.g., a fault due to an attempt to free a NULL pointer.
80427
80428 2001-11-01  Jim Meyering  <meyering@lucent.com>
80429
80430         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
80431         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
80432
80433 2001-11-01  Jim Meyering  <meyering@lucent.com>
80434
80435         * lib/dirfd.c, lib/dirfd.h: New files.
80436         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
80437
80438         * lib/hash.c (hash_print) [TESTING]: Clean up.
80439
80440 2001-10-22  Paul Eggert  <eggert@twinsun.com>
80441
80442         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
80443         to avoid a warning if -Wall.
80444
80445 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
80446
80447         * README: New file
80448         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
80449         (per RMS's instructions, this is now the canonical source)
80450         * lgpl/, gpl/: New directories.
80451
80452 2001-10-21  Paul Eggert  <eggert@twinsun.com>
80453
80454         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
80455
80456 2001-10-21  Jim Meyering  <meyering@lucent.com>
80457
80458         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
80459         this code would end up calling gettext even in packages built
80460         with --disable-nls.
80461         * lib/getopt.c (_): Likewise.
80462         * lib/regex.c (_): Likewise.
80463
80464 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80465
80466         * m4/error.m4 (jm_PREREQ_ERROR):
80467         Do not invoke AC_CHECK_FUNCS with strerror_r, as
80468         AC_FUNC_STRERROR_R does that.
80469         Check for strerror declaration.
80470
80471         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
80472         are supposed to have them these days.
80473         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
80474         Merge changes from latest Autoconf CVS.
80475         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
80476         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
80477         POSIX decided to standardize on the int flavor of strerror_r.
80478
80479 2001-10-20  Paul Eggert  <eggert@twinsun.com>
80480
80481         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
80482         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
80483         Use strerror_r that is only a macro, even if it is not a function.
80484         (strerror): Check for HAVE_DECL_STRERROR before declaring.
80485         (private_strerror): Use prototypes, not old-style function definition.
80486         (print_errno_message): New function.
80487         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
80488         char*-flavored one.
80489         (error_tail, error, error_at_line): Use it.
80490
80491 2001-10-11  Jim Meyering  <meyering@lucent.com>
80492
80493         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
80494         and quote_n (1, ... to avoid clobbering a buffer.
80495
80496 2001-10-05  Jim Meyering  <meyering@lucent.com>
80497
80498         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
80499         hash-pjw.h.
80500         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
80501         * lib/hash-pjw.h: New file.
80502
80503 2001-09-30  Jim Meyering  <meyering@lucent.com>
80504
80505         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
80506         `struct fsstat' has the `f_fstypename' member.
80507         Use that to define FS_TYPE, which is now used to make
80508         the getfsstat link test tighter.
80509
80510 2001-09-30  Jim Meyering  <meyering@lucent.com>
80511
80512         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
80513         Include <sys/ucred.h>, for Apple Darwin.
80514         Include sys/mount.h and sys/fs_types.h only if available.
80515         (FS_TYPE): Define.
80516         (read_filesystem_list): Use FS_TYPE.
80517
80518 2001-09-29  Paul Eggert  <eggert@twinsun.com>
80519
80520         * lib/exclude.c (excluded_filename): 0 -> false, since it's
80521         a boolean context.
80522
80523 2001-09-29  Jim Meyering  <meyering@lucent.com>
80524
80525         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80526         [one-argument getmntent function]): Include stdio.h before mntent.h.
80527         SunOS 4.1.x needs it for the declaration of `FILE'.
80528         Patch by Volker Borchert.
80529
80530         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
80531         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
80532         sys/fs_types.h, and make the link-test for getfsstat guard #include
80533         directives with appropriate #if HAVE_*_H tests so that we can
80534         detect getfsstat on Apple Darwin1.3.7 systems.
80535         Reported by Nelson Beebe.
80536         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
80537
80538 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80539
80540         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80541         #defines strtoimax.  Also treat the other strto* functions
80542         like strtoimax.
80543
80544         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80545         Check for strtoul and strtoumax,
80546         as those declarations are made even in the signed case.
80547         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
80548         Likewise, for strtol and strtoimax.
80549
80550 2001-09-28  Paul Eggert  <eggert@twinsun.com>
80551
80552         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
80553         #defines strtoimax.  Also treat the other strto* functions
80554         like strtoimax.
80555
80556         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
80557         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
80558         (strtoimax, strtoumax): Do not declare if already defined as a macro.
80559
80560 2001-09-26  Jim Meyering  <meyering@lucent.com>
80561
80562         Most macros in unlocked-io.h had the wrong number of arguments.
80563         * lib/gen-uio: New script.
80564         (USE_UNLOCKED_IO): Define to 1 if not already defined.
80565         * lib/unlocked-io.hin: Remove file.
80566         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
80567         rather than trying to embed it here.
80568         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
80569         Reported by Padraig Brady.
80570
80571 2001-09-25  Volker Borchert  <bt@teknon.de>
80572
80573         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
80574         `result'.
80575
80576 2001-09-24  Jim Meyering  <meyering@lucent.com>
80577
80578         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
80579
80580 2001-09-23  Jim Meyering  <meyering@lucent.com>
80581
80582         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
80583         instead of the mere test for existence of mntent.h.  The latter
80584         would get a false-positive on AIX 3.4 systems.
80585         In the outer getmntent if-block, don't die if neither of the getmntent
80586         tests succeeds.  Instead, just fall through and continue with the
80587         remaining tests.
80588
80589 2001-09-23  Jim Meyering  <meyering@lucent.com>
80590
80591         * lib/mountlist.c: Remove useless parentheses in #if directives.
80592         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
80593         the deprecated MOUNTED symbol is no longer defined in mntent.h.
80594
80595 2001-09-22  Jim Meyering  <meyering@lucent.com>
80596
80597         * m4/gettext.m4: New file.  From gettext.
80598         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
80599         * m4/progtest.m4: Likewise
80600         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
80601         * m4/glibc21.m4: Likewise.
80602
80603         * m4/libintl.m4: Remove.  No longer used.
80604
80605 2001-09-22  Jim Meyering  <meyering@lucent.com>
80606
80607         * lib/localcharset.c: Update from latest gettext.
80608         * lib/config.charset: Likewise.
80609
80610 2001-09-20  Jim Meyering  <meyering@lucent.com>
80611
80612         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
80613         strtoimax.
80614         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
80615         strtoumax.
80616
80617 2001-09-20  Jim Meyering  <meyering@lucent.com>
80618
80619         * lib/xstrtol.c (strtoimax): Guard declaration with
80620         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
80621         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
80622         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
80623         (strtoumax): Likewise, for completeness (it wasn't necessary).
80624
80625 2001-09-17  Paul Eggert  <eggert@twinsun.com>
80626
80627         * lib/strtoimax.c (HAVE_LONG_LONG):
80628         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
80629         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
80630         to work around bug in IBM C compiler.
80631
80632 2001-09-17  Jim Meyering  <meyering@lucent.com>
80633
80634         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
80635         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
80636         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
80637         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
80638         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
80639         whenever the right hand side need not be expanded by the shell.
80640
80641 2001-09-16  Paul Eggert  <eggert@twinsun.com>
80642
80643         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
80644         library.  It's not correct, as some older glibcs are buggy.
80645         fnmatch wasn't fixed until glibc 2.2.
80646
80647         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
80648         special shell magic here.
80649
80650 2001-09-16  Jim Meyering  <meyering@lucent.com>
80651
80652         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
80653         * m4/jm-macros.m4: Require it.
80654
80655 2001-09-16  Jim Meyering  <meyering@lucent.com>
80656
80657         * lib/mkdir.c: New file.
80658
80659 2001-09-15  Jim Meyering  <meyering@lucent.com>
80660
80661         * m4/jm-macros.m4: Check for help2man.
80662
80663 2001-09-11  Jim Meyering  <meyering@lucent.com>
80664
80665         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
80666         The body, by Paul Eggert, was moved here from configure.in.
80667         * m4/jm-macros.m4: Require UTILS_HOST_OS.
80668
80669 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80670
80671         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
80672         (jm_PREREQ): Use it.
80673
80674 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80675
80676         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
80677         Use ssize_t, not int, to store result of readlink.
80678         Check for ssize_t overflow as well as size_t overflow,
80679         as POSIX says the result of readlink is implementation-defined
80680         when ssize_t overflows.
80681         Remove unnecessary cast to char*.
80682         Use free+malloc instead of realloc, as the storage doesn't need
80683         to be preserved and it's clearer and can be more efficient that way.
80684         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
80685         * lib/xreadlink.h (xreadlink): Update prototype.
80686
80687 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80688
80689         * lib/xgetcwd.c: Revert some of the previous change; intead,
80690         fix the HAVE_GETCWD_NULL code to behave more like the
80691         !HAVE_GETCWD_NULL code used to.
80692
80693         Include "xalloc.h".
80694         (xgetcwd): Do not return NULL when memory is exhausted; instead,
80695         invoke xalloc_die.
80696
80697 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80698
80699         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
80700         sys/param.h, as pathmax.h includes them.
80701
80702 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80703
80704         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
80705         (jm_PREREQ_XGETCWD): New macro.
80706
80707         * m4/getcwd.m4: New file.
80708
80709 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80710
80711         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
80712         like the HAVE_GETCWD_NULL code.
80713         Include pathmax.h if not HAVE_GETCWD.
80714         Do not include xalloc.h.
80715         (INITIAL_BUFFER_SIZE): New symbol.
80716         Do not use xmalloc / xrealloc, since the caller is responsible for
80717         handling errors.  Preserve errno around `free' during failure.
80718         Do not overrun buffer when using getwd.
80719
80720 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80721
80722         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
80723         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
80724         getcwd (NULL, 0).
80725
80726 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80727
80728         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
80729         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
80730         spotted by Jim Meyering.
80731
80732 2001-09-03  Jim Meyering  <meyering@lucent.com>
80733
80734         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
80735         failure.
80736
80737 2001-09-02  Jim Meyering  <meyering@lucent.com>
80738
80739         * lib/error.c: Update from GNU libc.
80740
80741 2001-09-01  Jim Meyering  <meyering@lucent.com>
80742
80743         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
80744         Used by df.
80745
80746 2001-09-01  Jim Meyering  <meyering@lucent.com>
80747
80748         * lib/xreadlink.c: New file.
80749         * lib/xreadlink.h: New file.
80750         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
80751         xreadlink.h.
80752
80753         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
80754         doesn't conflict with sparc Solaris 7's definition in
80755         /usr/include/sys/int_types.h.
80756
80757         * lib/exclude.c: Use `""', not `<>' to #include non-system header
80758         files.
80759         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
80760         and strncasecmp as r-values.  Unixware didn't have declarations.
80761
80762 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80763
80764         * lib/xstrtol.h: Add copyright notice.
80765         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
80766         LONGINT_INVALID_SUFFIX_CHAR.
80767
80768 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80769
80770         * lib/xstrtol.c (strtoimax): New decl.
80771
80772 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80773
80774         * lib/xgetcwd.c: Don't include pathmax.h.
80775         Include stdlib.h and unistd.h if available.
80776         Include xalloc.h.
80777         (xmalloc, xstrdup, free): Remove decls.
80778         (xgetcwd): Don't assume sizes fit in unsigned.
80779         Check for overflow when computing sizes.
80780         Simplify reallocation code.
80781
80782 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80783
80784         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
80785         a directory's st_size can have an arbitrary value, so the old
80786         usage could waste an arbitrary amount of memory.  All uses
80787         changed.
80788         * lib/savedir.h: Update prototype.
80789
80790 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80791
80792         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
80793
80794         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
80795         old strtoimax.c.
80796
80797         Also, make the following further changes to make this file's
80798         configuration more similar to that of strtol.c:
80799         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
80800         (strtoumax, uintmax_t, strtoull, strtol): Remove.
80801         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
80802         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
80803         changed to signed values.
80804
80805         And make the following changes as well:
80806         Fix copyright notice, as 1999 was missing.
80807         (verify): New macro.
80808         (strtoimax): Check sizes at compile-time, not run-time.
80809         Prefer strtol to strtoll if both work.
80810         (main): Remove; it was not that useful and was a pain to maintain.
80811
80812         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
80813
80814 2001-08-31  Jim Meyering  <meyering@lucent.com>
80815
80816         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
80817         Use an initial, malloc'd, buffer of length 128 rather than
80818         a statically allocated one of length 1024.
80819
80820 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80821
80822         Simplify code, partly by assuming autoconf 2.52 semantics.
80823
80824         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
80825
80826         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
80827         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
80828         All uses removed.
80829         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
80830         Move AC_REQUIRE to next-to-top level, to avoid confusion.
80831         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
80832         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
80833         jm_AC_HEADER_INTTYPES_H.
80834         * m4/jm-macros.m4 (jm_MACROS): Likewise.
80835
80836         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
80837
80838         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80839         Quote first arg of AC_DEFUN.
80840         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
80841         since they are needed to parse the include file even if we need
80842         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
80843         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
80844         but with opposite signedness.
80845
80846 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80847
80848         Merge 'exclude' changes from tar 1.13.22.
80849         This fixes one or two unlikely storage allocation overflow bugs,
80850         but doesn't change user-visible behavior otherwise.
80851
80852 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80853
80854         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
80855         (jm_PREREQ_EXCLUDE): New macro.
80856
80857 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80858
80859         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
80860         tm to be declared.
80861
80862 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80863
80864         * lib/hash.c: Remove '2001' from copyright notice.
80865
80866 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80867
80868         * lib/full-write.h: New file.
80869         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
80870         * lib/full-write.c: Correct credits, as cccp.c no longer
80871         exists and anyway it was so heavily changed from the old cccp
80872         code as to be unrecognizable.  Include full-write.h.
80873         (full_write): Return size_t, with short writes meaning failure.
80874         All callers changed.  This fixes a bug with large buffers
80875         on 64-bit hosts.
80876         * lib/utime.c: Include full-write.h.
80877
80878 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80879
80880         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
80881         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
80882         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
80883         Include if available.
80884         (<xalloc.h>): Include
80885         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
80886         (verify): New macro.  Use it to verify that EXCLUDE macros do not
80887         collide with FNM macros.
80888         (struct patopts): New struct.
80889         (struct exclude): Use it, as exclude patterns now come with options.
80890         (new_exclude): Support above changes.
80891         (new_exclude, add_exclude_file):
80892         Initial size must now be a power of two to simplify overflow checking.
80893         (free_exclude, fnmatch_no_wildcards): New function.
80894         (excluded_filename): No longer requires options arg, as the options
80895         are determined by add_exclude.  Now returns bool, not int.
80896         (excluded_filename, add_exclude):
80897         Add support for the fancy new exclusion options.
80898         (add_exclude, add_exclude_file): Now takes int options arg.
80899         Check for arithmetic overflow when computing sizes.
80900         (add_exclude_file): xrealloc might modify errno, so don't
80901         realloc until after errno might be used.
80902
80903         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
80904         New macros.
80905         (free_exclude): New decl.
80906         (add_exclude, add_exclude_file): Now takes int options arg.
80907         (excluded_filename): No longer requires options arg, as the options
80908         are determined by add_exclude.  Now returns bool, not int.
80909
80910 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80911
80912         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
80913
80914 2001-08-27  Jim Meyering  <meyering@lucent.com>
80915
80916         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
80917
80918         * lib/version-etc.c (N_): Remove definition.
80919         Revert most of last change.
80920         Instead, simply don't mark the `Copyright...' string for translation.
80921         Based on advice from Paul Eggert.
80922
80923         * lib/strtoxmax.c: Tweak comment.
80924
80925 2001-08-26  Jim Meyering  <meyering@lucent.com>
80926
80927         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
80928
80929         * m4/xstrtoimax.m4: New file.
80930         * m4/xstrtoumax.m4: Add comments explaining why we
80931         AC_REPLACE_FUNCS(strtol).
80932
80933 2001-08-26  Jim Meyering  <meyering@lucent.com>
80934
80935         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
80936         of copyright with `%s' so translators don't get an untranslated
80937         message in 2002.
80938         (COPYRIGHT_YEAR): Define.
80939         (version_etc): Use fprintf rather than fputs.
80940         Suggestion from Ulrich Drepper.
80941
80942         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
80943
80944         * lib/strtoll.c: New file, from GNU libc.
80945         * lib/xstrtoimax.c: New file.
80946
80947         * lib/xstrtol.h: Add xstrtoimax.
80948         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
80949         * lib/strtoimax.c: New file.  Likewise, but first define
80950         STRTOUXMAX_SIGNED.
80951
80952         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
80953         ...
80954         * lib/strtoxmax.c: ... then renamed to this.
80955
80956 2001-08-18  Paul Eggert  <eggert@twinsun.com>
80957
80958         * m4/inttypes.m4: Add AC_PREREQ(2.13).
80959         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
80960         (jm_AC_TYPE_INTMAX_T): New macro.
80961         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
80962
80963         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
80964
80965         * m4/longlong.m4: Renamed from ulonglong.m4.
80966         * m4/inttypes.m4: Renamed from inttypes_h.m4.
80967         * m4/uintmax_t.m4: Removed.
80968
80969 2001-08-13  Paul Eggert  <eggert@twinsun.com>
80970
80971         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
80972         Port to Solaris 8, where 'sed' requires a space after the 'r'
80973         command, and where sh dislikes "$/".  Clean up the spacing a bit.
80974         Redirect output to $tmp just once.
80975
80976 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
80977
80978         * lib/addext.c (<errno.h>): Include.
80979         (errno): Declare if not defined.
80980         (addext): Work correctly when pathconf returns -1 and leaves
80981         errno alone because there is no limit.  Also, work even if
80982         pathconf returns a value greater than SIZE_MAX.
80983
80984 2001-08-12  Jim Meyering  <meyering@lucent.com>
80985
80986         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
80987         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
80988         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
80989         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
80990         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
80991         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
80992         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
80993         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
80994         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
80995         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
80996         utime.m4, utimes.m4, xstrtoumax.m4:
80997         Quote the first argument in each use of AC_DEFUN.
80998
80999 2001-08-12  Jim Meyering  <meyering@lucent.com>
81000
81001         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
81002         Simply `return getcwd (NULL, 0);'.
81003         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
81004         Use 1300 as initial value for length, not PATH_MAX.
81005
81006         * lib/pathmax.h: Clean up cpp syntax.
81007
81008 2001-08-12  Jim Meyering  <meyering@lucent.com>
81009
81010         * lib/gettimeofday.c: New file.
81011         * lib/gtod.h: New file.
81012         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
81013
81014 2001-08-05  Jim Meyering  <meyering@lucent.com>
81015
81016         * m4/jm-macros.m4: Require autoconf-2.52.
81017
81018 2001-08-04  Jim Meyering  <meyering@lucent.com>
81019
81020         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
81021         stmt, to get in sync with glibc.
81022
81023 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81024
81025         The following changes are from gettext 0.10.39 as maintained by
81026         Bruno Haible.
81027
81028         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
81029         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
81030         with inverted sense.  All uses changed.
81031
81032         * lib/mbswidth.c: Don't include <limits.h>.
81033         Include <stdlib.h> and <string.h> unconditionally.
81034         (iswcntrl, mbsinit, ISCNTRL): New macros.
81035         (mbsnwidth): Use K&R style function declarations.
81036         Don't bother checking for MB_LEN_MAX == 1, since the compiler
81037         can optimize it when MB_CUR_MAX == 1.
81038         The width of control characters is zero, not 1.
81039
81040 2001-08-03  Paul Eggert  <eggert@twinsun.com>
81041
81042         The following changes are from gettext 0.10.39 as maintained by
81043         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
81044
81045         * m4/codeset.m4: Upgrade to serial AM1.
81046         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
81047         all uses changed.  Quote first arg of AC_DEFUN.
81048         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
81049
81050         * m4/iconv.m4: Upgrade to serial AM2.
81051         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
81052         Add --with-libconv-prefix.
81053         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
81054         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
81055         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
81056         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
81057         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
81058
81059         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
81060         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
81061         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
81062         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
81063         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
81064         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
81065         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
81066         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
81067         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81068
81069         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
81070         string.h any more.
81071
81072         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
81073         not the default value.
81074
81075         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
81076         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
81077         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
81078         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
81079         Also check for iswcntrl, used for wcwidth fallback.
81080         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
81081         to Autoconf 2.13.
81082
81083 2001-08-03  Jim Meyering  <meyering@lucent.com>
81084
81085         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
81086         as it was in the original.  Reported by Paul Eggert.
81087
81088 2001-07-16  Jim Meyering  <meyering@lucent.com>
81089
81090         * m4/gettimeofday.m4: New file.
81091         Prompted by a report from Bernhard Baehr.
81092
81093 2001-07-15  Jim Meyering  <meyering@lucent.com>
81094
81095         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
81096         stuff. Now it's in ../Makefile.cfg.
81097
81098 2001-07-15  Jim Meyering  <meyering@lucent.com>
81099
81100         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
81101         (BUILT_SOURCES): Add unlocked-io.h.
81102         (io_functions): Define.
81103         (unlocked-io.h): New rule.
81104         (DISTCLEANFILES): Add unlocked-io.h.
81105         (all-local): Depend on unlocked-io.h, to ensure it is created.
81106
81107         * lib/unlocked-io.hin: New file
81108
81109         * lib/regex.c: Update from glibc.
81110
81111 2001-07-05  Jim Meyering  <meyering@lucent.com>
81112
81113         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
81114         recommendation.
81115         (libfetish_a_SOURCES): Put all .h files here instead.
81116         Remove a thus-exposed (better checks in automake) duplicate and
81117         two unnecessary .h files.
81118
81119 2001-07-04  Jim Meyering  <meyering@lucent.com>
81120
81121         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
81122         that generates jm-glibc-io.m4 so that it doesn't trigger any make
81123         distcheck failure.
81124
81125 2001-07-02  Jim Meyering  <meyering@lucent.com>
81126
81127         The following changes were prompted by suggestions from Bruno Haible.
81128
81129         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
81130         is now generated.
81131         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
81132         definition of EXTRA_DIST.
81133         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
81134         ensure that the generated file is created/updated whenever the list
81135         of $(unlocked_functions) is changed.
81136         (jm-glibc-io.m4): New rule.
81137         (unlocked-io.h): New rule -- currently unused.
81138
81139 2001-06-24  Jim Meyering  <meyering@lucent.com>
81140
81141         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
81142         unmatched right bracket, rather than kludging it with an extra,
81143         falsely-matching quote in a comment.  Patch by Akim Demaille.
81144
81145 2001-06-11  Jim Meyering  <meyering@lucent.com>
81146
81147         * lib/regex.c: Update from GNU libc.
81148
81149 2001-05-27  Jim Meyering  <meyering@lucent.com>
81150
81151         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
81152         Check for ut_type in struct utmp.
81153
81154 2001-05-27  Jim Meyering  <meyering@lucent.com>
81155
81156         * lib/readutmp.h (UT_TYPE): Define.
81157
81158 2001-05-24  Jim Meyering  <meyering@lucent.com>
81159
81160         * lib/argmatch.c: Include "quote.h".
81161         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
81162         quote function.  Reported by Göran Uddeborg.
81163
81164 2001-05-22  Jim Meyering  <meyering@lucent.com>
81165
81166         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
81167         now that we use the package-supplied version unconditionally.
81168         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
81169
81170 2001-05-21  Jim Meyering  <meyering@lucent.com>
81171
81172         * m4/regex.m4: Change a couple backticks to single quotes to avoid
81173         shell syntax errors.
81174
81175 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81176
81177         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
81178
81179 2001-05-20  Paul Eggert  <eggert@twinsun.com>
81180
81181         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
81182         Don't bother to check library strftime, since
81183         we'll be using our own my_strftime function anyway.
81184         Define my_strftime instead of strftime.
81185
81186 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
81187
81188         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
81189         which is not yet declared.
81190
81191 2001-05-15  Jim Meyering  <meyering@lucent.com>
81192
81193         * m4/regex.m4: Use proper quoting so brackets appear in the test
81194         program.
81195         Reported by, and with help from, Bruno Haible.
81196
81197 2001-05-13  Jim Meyering  <meyering@lucent.com>
81198
81199         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
81200         undefined.
81201
81202 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81203
81204         dirname code cleanup.  base_name now behaves more compatibly
81205         with POSIX basename when given file names that have trailing
81206         slashes, and similarly for dir_name.  Add new primitives
81207         base_len and dir_len.  Put the directory-name-related decls
81208         into dirname.h.
81209
81210         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
81211         * lib/backupfile.c (base_name): Likewise.
81212         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
81213         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
81214         * lib/makepath.c (strip_trailing_slashes): Likewise.
81215         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
81216         ISSLASH): Likewise.
81217         * lib/rename.c (strip_trailing_slashes): Likewise.
81218         * lib/same.c (base_name): Likewise.
81219         * lib/stripslash.c (ISSLASH): Likewise.
81220
81221         * lib/addext.c: Include <dirname.h> after size_t is defined.
81222         * lib/backupfile.c: Likewise.
81223
81224         * lib/addext.c (addext): Use base_len to trim redundant
81225         trailing slashes instead of doing it ourselves.
81226         But do not trim the last slash if it is not redundant.
81227
81228         * lib/backupfile.c (find_backup_file_name,
81229         max_backup_version): Use base_len instead of rolling it ourselves.
81230         Handle the case of "" and (on DOS) "C:" correctly.
81231
81232         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
81233         needed. Include <string.h>, <dirname.h>.
81234         (base_name): Allow file names ending in slashes, other than names
81235         that are all slashes.  In this case, return the basename followed
81236         by the slashes.  This is more general, and can be used in places
81237         where the original base_name purposely had an assertion failure.
81238         (base_len): New function.
81239
81240         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
81241         Do not include <assert.h>; no longer needed.
81242         Include xalloc.h.
81243         (memrchr): Remove decl.
81244         (dir_name_r): Remove.
81245         (dir_len): Renamed from dirlen.  All callers changed.
81246         Rewrite in terms of base_name, for simplicity and consistency.
81247         (dir_name): Never return NULL.  All callers changed.
81248         Do not include <stdlib.h> in test program; no longer needed.
81249         return 0; is fine for test program.
81250
81251         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
81252         New macros.
81253         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
81254
81255         * lib/path-concat.c (path_concat): Use base_len to compute
81256         base length, not strlen; this means we cannot rely on memcpy
81257         to null-terminate.
81258
81259         * lib/same.c (STREQ): Remove.
81260         (same_name): Handle the case where the basename ends in trailing '/'.
81261
81262         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
81263         a slash was stripped.  Do not strip the last slash after a
81264         file system prefix.
81265
81266 2001-05-11  Paul Eggert  <eggert@twinsun.com>
81267
81268         * lib/Makefile.am (libfetish_a_SOURCES):
81269         Add strftime.c, since we now compile it on all hosts.
81270
81271         * lib/strftime.c (my_strftime):
81272         Define to nstrftime if emacs, but only if my_strftime is not defined.
81273         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
81274         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
81275         Add one more extra argument: a nanoseconds value.
81276         All uses changed.
81277         (ns): New macro.
81278         (my_strftime function): Add %N format.
81279         (emacs_strftimeu): Renamed from emacs_strftime,
81280         with extra ut argument.
81281
81282 2001-05-09  Paul Eggert  <eggert@twinsun.com>
81283
81284         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
81285
81286 2001-04-21  Jim Meyering  <meyering@lucent.com>
81287
81288         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
81289         doesn't interfere.
81290
81291 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
81292
81293         * m4/ftruncate.m4: Check for chsize.
81294         Link with ftruncate.o unconditionally if ftruncate is missing.
81295         This was required when cross-compiling to i586-mingw32msvc.
81296
81297 2001-04-08  Jim Meyering  <meyering@lucent.com>
81298
81299         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
81300         recomputed; that's necessary when the offset spans a DST transition.
81301         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
81302
81303 2001-04-02  Jim Meyering  <meyering@lucent.com>
81304
81305         * lib/regex.h, regex.c: Update from GNU libc.
81306
81307 2001-03-24  Jim Meyering  <meyering@lucent.com>
81308
81309         * m4/jm-macros.m4: Require autoconf-2.49d.
81310
81311 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
81312
81313         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
81314
81315 2001-03-19  Paul Eggert  <eggert@twinsun.com>
81316
81317         * lib/version-etc.c (version_etc_copyright): Update to 2001.
81318
81319 2001-03-17  Jim Meyering  <meyering@lucent.com>
81320
81321         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
81322         now that the version in autoconf is equivalent.
81323         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
81324
81325         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
81326         Suggestion from Akim Demaille.
81327
81328         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
81329         (jm_PREREQ_TEMPNAME): New function.
81330
81331 2001-03-16  Paul Eggert  <eggert@twinsun.com>
81332
81333         * lib/tempname.c (uint64_t): Define to uintmax_t if
81334         not defined, and if UINT64_MAX is not defined.
81335         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
81336         Reported by John David Anglin.
81337
81338 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
81339
81340         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
81341         resolve alias if codeset is empty.
81342         * lib/config.charset (BeOS): Use wildcard syntax.
81343
81344 2001-03-13  Jim Meyering  <meyering@lucent.com>
81345
81346         * lib/path-concat.c (path_concat)
81347         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
81348         concatenating e.g., `C:' and `foo'.
81349         From Bruno Haible.
81350
81351 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81352
81353         * lib/localcharset.c (locale_charset): Don't use
81354         setlocale(LC_CTYPE,NULL). Don't return NULL.
81355         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
81356
81357 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
81358
81359         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
81360         support for DOS/DJGPP.
81361
81362 2001-03-01  Paul Eggert  <eggert@twinsun.com>
81363
81364         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
81365         lacks mkstemp.  Compile our own tempname.c if we compile our own
81366         mkstemp.c, as mkstemp relies on tempname.
81367
81368 2001-03-01  Jim Meyering  <meyering@lucent.com>
81369
81370         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
81371         AH_VERBATIM really does output its argument verbatim.
81372
81373 2001-02-28  Paul Eggert  <eggert@twinsun.com>
81374
81375         * lib/Makefile.am (libfetish_a_SOURCES):
81376         Add dup-safer.c, fopen-safer.c.
81377         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
81378
81379         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
81380         * lib/unistd-safer.h: New files.
81381
81382 2001-02-25  Paul Eggert  <eggert@twinsun.com>
81383
81384         The mkstemp replacement is taken from glibc 2.2.2, with some
81385         portability fixes for use outside glibc, as follows:
81386
81387         * lib/tempname.c (struct_stat64): New macro.
81388         (direxists, __gen_tempname): Use it.
81389         This avoids a portability problem with Solaris 8.
81390
81391         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
81392         (<stddef.h>, <stdint.h>, <string.h>):
81393         Include only if STDC_HEADERS || _LIBC.
81394         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
81395         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
81396         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
81397         (__set_errno): Define this macro if <errno.h> doesn't.
81398         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
81399         Define these macros if <stdio.h> doesn't.
81400         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
81401         Define these macros if <sys/stat.h>
81402         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
81403         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
81404         __xstat64): Define if not _LIBC.
81405         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
81406         (__gen_tempname): Invoke gettimeofday only if
81407         HAVE_GETTIMEOFDAY || _LIBC;
81408         otherwise, fall back on plain "time".
81409         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
81410
81411         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
81412
81413         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
81414
81415 2001-02-18  Paul Eggert  <eggert@twinsun.com>
81416
81417         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
81418
81419 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81420
81421         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
81422         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
81423         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
81424         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81425
81426 2001-02-17  Paul Eggert  <eggert@twinsun.com>
81427
81428         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
81429         Remove workaround macros for hosts that have mbrtowc but not
81430         mbstate_t, as we now insist on proper declarations for both
81431         before using mbrtowc.
81432
81433 2001-02-17  Jim Meyering  <meyering@lucent.com>
81434
81435         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
81436         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
81437         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
81438         UnixWare 7.1.1.
81439
81440         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
81441         rather than AC_CACHE_VAL.
81442
81443 2001-02-17  Jim Meyering  <meyering@lucent.com>
81444
81445         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
81446         around included file name.
81447
81448         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
81449
81450         * lib/strftime.c: Update from GNU libc (the only changes were to
81451         comments).
81452
81453 2001-02-17  Jim Meyering  <meyering@lucent.com>
81454
81455         * lib/regex.c: Update from libc.
81456
81457 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
81458
81459         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
81460         clash.
81461
81462 2001-02-16  Paul Eggert  <eggert@twinsun.com>
81463
81464         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
81465         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
81466         Reported by Mark Hounschell via Paul Eggert.
81467
81468 2001-02-07  Jim Meyering  <meyering@lucent.com>
81469
81470         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
81471
81472 2001-02-05  Jim Meyering  <meyering@lucent.com>
81473
81474         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
81475         it includes the patch required for `large file' support with at least
81476         HP-UX's 10.20 /bin/cc.
81477
81478 2001-02-03  Jim Meyering  <meyering@lucent.com>
81479
81480         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
81481         AS_IF, now that it works once again (mysteriously).
81482         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81483
81484 2001-01-30  Jim Meyering  <meyering@lucent.com>
81485
81486         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
81487         * m4/chown.m4: Rename conftestchown to conftest.chown.
81488         * m4/rename.m4: s/conftestdir/conftest.d1/ and
81489         s/conftestdir2/conftest.d2/.
81490         * m4/utimes.m4: s/conftestdata/conftest.data/
81491         Inspired by Pavel Roskin's change in autoconf.
81492
81493 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
81494
81495         * lib/config.charset: Update for FreeBSD 4.2.
81496
81497 2001-01-27  Jim Meyering  <meyering@lucent.com>
81498
81499         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
81500         a use of AS_IF.
81501         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
81502
81503 2001-01-26  Jim Meyering  <meyering@lucent.com>
81504
81505         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
81506         quotearg.c includes it.
81507
81508 2001-01-26  Jim Meyering  <meyering@lucent.com>
81509
81510         * lib/quotearg.c: Include stddef.h.
81511         * lib/quote.c: Include stddef.h.
81512         Reported by Axel Kittenberger.
81513
81514         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
81515         line in double quotes so that it evokes a better diagnostic.
81516         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
81517         Reported by Axel Kittenberger.
81518
81519 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
81520
81521         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
81522         as if it was a `charset'.
81523
81524 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81525
81526         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
81527         has const.
81528
81529 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
81530
81531         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
81532         to avoid a warning.  Add back 'const' to inptr.
81533
81534 2001-01-20  Jim Meyering  <meyering@lucent.com>
81535
81536         Be sure that headers are checked before used in code compiled
81537         for the type checks.
81538         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
81539         In place of that, invoke jm_CHECK_ALL_TYPES.
81540         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
81541         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
81542         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
81543         The check for ssize_t was mistakenly run before the test for unistd.h.
81544
81545         The configure-time check for stdbool.h was missing.
81546         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
81547         (jm_PREREQ_HASH): New function.
81548
81549 2001-01-17  Jim Meyering  <meyering@lucent.com>
81550
81551         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
81552         for autoconf-2.49c.
81553         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
81554
81555 2001-01-16  Jim Meyering  <meyering@lucent.com>
81556
81557         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
81558         From Bruno Haible.
81559
81560 2001-01-14  Jim Meyering  <meyering@lucent.com>
81561
81562         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
81563         foo and bar.  Create conftestdir/ in the script, not in the C code.
81564         Remove directories in the script, not in the C code.
81565         Remove conftestdir{,2} before trying to create the directory.
81566         Make the entire configure script fail if the mkdir fails.
81567
81568 2001-01-14  Jim Meyering  <meyering@lucent.com>
81569
81570         * lib/rename.c: New file.  From Volker Borchert.
81571         Include stdlib.h, string.h or strings.h, and xalloc.h.
81572         Use strip_trailing_slashes rather than open-coding it.
81573
81574 2001-01-03  Paul Eggert  <eggert@twinsun.com>
81575
81576         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
81577
81578 2001-01-03  Jim Meyering  <meyering@lucent.com>
81579
81580         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
81581         of local `inptr' to avoid warning with some system declarations of
81582         iconv.
81583
81584 2001-01-02  Volker Borchert  <bt@teknon.de>
81585
81586         * m4/rename.m4: New file.
81587         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
81588
81589 2001-01-01  Jim Meyering  <meyering@lucent.com>
81590
81591         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
81592         even on systems with utmpx.h.  It's necessary for the declaration of
81593         utmp's ut_user member.  Reported by Andreas Jaeger.
81594
81595         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
81596         available. They are required for the declarations of getgrgid and
81597         getpwuid resp.
81598         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
81599         Reported by Andreas Jaeger.
81600
81601 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
81602
81603         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
81604         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
81605         so `make install' also works in VPATH builds.
81606
81607 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
81608
81609         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
81610         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
81611         can be used in subdirectories.
81612
81613 2000-12-29  Paul Eggert  <eggert@twinsun.com>
81614
81615         * lib/modechange.c: Do not assume that mode_t uses the
81616         traditional octal encoding.  E.g. "chmod 1 FOO" should set
81617         the other-execute bit of FOO even if S_IXOTH != 1.
81618
81619         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
81620         WOTH, XOTH, ALLM): New macros.
81621         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
81622          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
81623         Use them.
81624         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
81625         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
81626         (mode_compile):
81627         No need to use uintmax_t; unsigned long is long enough.
81628         Don't bother to get suffix since we don't use it.
81629
81630 2000-12-26  Jim Meyering  <meyering@lucent.com>
81631
81632         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
81633         better with autoheader.
81634
81635 2000-12-24  Jim Meyering  <meyering@lucent.com>
81636
81637         * lib/hash.c (is_prime): Return explicit boolean values.
81638         (hash_get_first): Return NULL to appease Irix5.6's 89.
81639         Reported by Nelson Beebe.
81640
81641 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
81642
81643         * lib/localcharset.c (locale_charset): Add support for Win32.
81644
81645 2000-12-18  Paul Eggert  <eggert@twinsun.com>
81646
81647         * lib/physmem.h, lib/physmem.c: New files.
81648
81649         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
81650         (noinst_HEADERS): Add physmem.h.
81651
81652         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
81653         't' for compatibility with Solaris 8 sort.
81654
81655 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
81656
81657         * lib/config.charset: Add support for BeOS.
81658
81659 2000-12-17  Jim Meyering  <meyering@lucent.com>
81660
81661         * m4/dos.m4 (jm_AC_DOS): New file and macro.
81662         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
81663
81664 2000-12-16  Jim Meyering  <meyering@lucent.com>
81665
81666         This bug had a serious impact on chown: `chown N:M FILE' (for integer
81667         N and M) would have treated it like `chown N:N FILE'.
81668
81669         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
81670
81671 2000-12-16  Jim Meyering  <meyering@lucent.com>
81672
81673         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
81674         SHELLS_FILE to a file name that's useful on djgpp systems.
81675         Include stdlib.h.
81676         (ADDITIONAL_DEFAULT_SHELLS): Define.
81677         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
81678         Based mostly on a patch from Prashant TR.
81679
81680 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
81681
81682         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
81683         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
81684         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
81685
81686 2000-12-08  Andreas Schwab  <schwab@suse.de>
81687
81688         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
81689         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
81690
81691 2000-12-07  Jim Meyering  <meyering@lucent.com>
81692
81693         * lib/stripslash.c (ISSLASH): Define.
81694         (strip_trailing_slashes): Use ISSLASH rather than comparing against
81695         `/'.
81696         From Prashant TR.
81697
81698         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
81699         (dir_name_r): Declare this function as static.
81700         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
81701         manifest itself on a name containing a mix of slashes and
81702         backslashes.
81703         Make this function work with names starting with a DOS-style
81704         drive letter and colon prefix.
81705         (dir_name): Append `.' if necessary.
81706         Based mostly on patches from Prashant TR and Eli Zaretskii.
81707
81708         * lib/dirname.h (dir_name_r): Remove prototype.
81709
81710 2000-12-06  Paul Eggert  <eggert@twinsun.com>
81711
81712         * m4/off_t-format.m4: Remove this file.
81713         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
81714
81715 2000-12-06  Jim Meyering  <meyering@lucent.com>
81716
81717         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
81718         replacement strtoull, we may well need the replacement strtoul, too.
81719         Check for declarations of strtoul and strtoull.
81720         Check for strtol.  Mainly as a cue to cause automake to include
81721         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
81722         Check for limits.h -- strtol.c needs it.
81723
81724 2000-12-05  Jim Meyering  <meyering@lucent.com>
81725
81726         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
81727
81728 2000-12-04  Jim Meyering  <meyering@lucent.com>
81729
81730         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
81731         Also include memory.h, stdlib.h, unistd.h if appropriate.
81732         Reported by Andreas Jaeger (conflicting declaration of malloc).
81733
81734 2000-12-02  Jim Meyering  <meyering@lucent.com>
81735
81736         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
81737         * m4/jm-macros.m4 (jm_MACROS): require it.
81738
81739 2000-12-02  Jim Meyering  <meyering@lucent.com>
81740
81741         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
81742
81743 2000-12-01  Paul Eggert  <eggert@twinsun.com>
81744
81745         * lib/memrchr.c: Include <config.h> before any system include file.
81746
81747 2000-11-30  Jim Meyering  <meyering@lucent.com>
81748
81749         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
81750
81751 2000-11-30  Jim Meyering  <meyering@lucent.com>
81752
81753         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
81754
81755 2000-11-29  Paul Eggert  <eggert@twinsun.com>
81756
81757         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
81758
81759 2000-11-26  Jim Meyering  <meyering@lucent.com>
81760
81761         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
81762
81763 2000-11-22  Paul Eggert  <eggert@twinsun.com>
81764
81765         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
81766         size of (size_t) -1; it's not portable.
81767
81768 2000-11-17  Jim Meyering  <meyering@lucent.com>
81769
81770         * lib/strstr.c: Update from GNU libc.
81771
81772 2000-11-17  Akim Demaille  <akim@epita.fr>
81773
81774         * lib/obstack.h: Formatting changes.
81775         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
81776         prevent type checking.
81777         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
81778         cast the value to (void *): assigning a `foo *' to a `void *'
81779         variable is valid.
81780         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
81781
81782 2000-11-16  Jim Meyering  <meyering@lucent.com>
81783
81784         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
81785
81786 2000-11-11  Jim Meyering  <meyering@lucent.com>
81787
81788         * lib/error.c: Add a couple #includes, merging from GNU libc version.
81789
81790 2000-11-10  Jim Meyering  <meyering@lucent.com>
81791
81792         * lib/obstack.h: Update from GNU libc.
81793         * lib/obstack.c: Likewise.
81794
81795 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
81796
81797         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
81798
81799 2000-11-06  Paul Eggert  <eggert@twinsun.com>
81800
81801         * lib/getusershell.c (setusershell): Use rewind rather than
81802         fseek/fseeko, to avoid configuration hassles with fseeko.
81803         Don't bother opening SHELLS_FILE if shellstream is NULL;
81804         it's not necessary.
81805
81806 2000-11-05  Jim Meyering  <meyering@lucent.com>
81807
81808         * lib/makepath.h (make_dir): Declare.
81809         * lib/makepath.c (make_dir): Remove `static' attribute.
81810         Tweak a comment.
81811
81812 2000-11-04  Jim Meyering  <meyering@lucent.com>
81813
81814         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
81815
81816 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
81817
81818         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
81819         last one in a bucket, advance to the next bucket.
81820
81821 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
81822
81823         * lib/fnmatch.c: Do not comment out all the code if we are using
81824         the GNU C library, because in some cases we are replacing buggy
81825         code in the GNU C library itself.
81826
81827 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
81828
81829         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
81830         (regex_compile): Catch bogus \(\1\).
81831
81832 2000-10-30  Paul Eggert  <eggert@twinsun.com>
81833
81834         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
81835         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
81836         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
81837
81838 2000-10-30  Paul Eggert  <eggert@twinsun.com>
81839
81840         * lib/error.h, getline.h, modechange.h:
81841         Remove "2000" from Copyright line, as the file hasn't been
81842         changed this year other than in the copyright notice.
81843
81844         * lib/xalloc.h: Add "2000" to Copyright line, as this file
81845         was changed this year.
81846
81847 2000-10-29  Jim Meyering  <meyering@lucent.com>
81848
81849         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
81850         renaming.
81851         * m4/ls-mntd-fs.m4: Likewise
81852
81853 2000-10-29  Jim Meyering  <meyering@lucent.com>
81854
81855         * lib/xstat.in: Fix grammar in comment.
81856
81857 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
81858
81859         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
81860         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
81861         doesn't define __restrict_arr.
81862
81863 2000-10-28  Jim Meyering  <meyering@lucent.com>
81864
81865         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
81866         (jm_PREREQ_MEMCHR): New function.
81867
81868 2000-10-28  Jim Meyering  <meyering@lucent.com>
81869
81870         * lib/memchr.c: Update from libc.
81871         Adjust for portability:
81872         [HAVE_STDLIB_H]: Include stdlib.h.
81873         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
81874         Undef __memchr, too.
81875         [!weak_alias]: Define __memchr to memchr.
81876
81877         * lib/regex.c: Update from libc.
81878         * lib/regex.h: Likewise.
81879         * lib/getopt1.c: Likewise.
81880         * lib/memcmp.c: Likewise.
81881
81882         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
81883         Avoid using fseek, when possible -- it's broken by design.
81884         Patch by Ulrich Drepper.
81885
81886 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
81887
81888         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
81889         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
81890         Giving in to popular pressure to shut up the compiler with casts.
81891
81892 2000-10-26  Jim Meyering  <meyering@lucent.com>
81893
81894         * lib/strftime.c: Update from libc.
81895
81896 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
81897
81898         * regex.c: More `unsigned char' -> `re_char' changes.
81899         Also change several `int' into `re_wchar_t'.
81900         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
81901         (PUSH_FAILURE_POINTER): Don't cast any more.
81902         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
81903         We want GCC to complain, since this piece of code makes
81904         re_match non-reentrant, which *should* be fixed.
81905         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
81906         (EXTEND_BUFFER): Use RETALLOC.
81907         (SET_LIST_BIT): Don't cast.
81908         (re_wchar_t): New type.
81909         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
81910         that those two functions will always properly return.
81911         (IMMEDIATE_QUIT_CHECK): Cast to void.
81912         (analyse_first): Use recursion rather than an explicit stack.
81913         (re_compile_fastmap): Can't fail anymore.
81914         (re_search_2): Don't check re_compile_fastmap for failure.
81915         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
81916         Now also sets the new value (passed in a new argument).
81917         (re_match_2_internal): Use it.
81918         Also, use a new var `reg' of type size_t when looping through regs
81919         rather than reuse the inappropriate `mcnt'.
81920
81921 2000-10-25  Jim Meyering  <meyering@lucent.com>
81922
81923         * lib/obstack.c: Update from libc.
81924
81925 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
81926
81927         * regex.c (regex_compile): Change the way of handling a range from
81928         a char less than 256 to a char not less than 256.
81929
81930 2000-10-24  Andrew Innes  <andrewi@gnu.org>
81931
81932         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
81933         NT-Emacs only.
81934         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
81935         so that re_search functions only quit when callers expect them to.
81936
81937 2000-10-23  Jim Meyering  <meyering@lucent.com>
81938
81939         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
81940         wrong.  That set_locale call must not have any side effects.
81941         From Paul Eggert.
81942
81943 2000-10-22  Jim Meyering  <meyering@lucent.com>
81944
81945         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
81946         [CYCLIC]: Remove now-unused definition.
81947
81948         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
81949         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
81950         Suggestion from Ulrich Drepper.
81951
81952 2000-10-21  Jim Meyering  <meyering@lucent.com>
81953
81954         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
81955         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
81956         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
81957
81958 2000-10-21  Jim Meyering  <meyering@lucent.com>
81959
81960         * lib/dirname.c (memrchr): Declare if necessary.
81961         (dir_name): Remove the restriction that there be no
81962         trailing slashes.  Now, this code skips past them, effectively
81963         ignoring them.
81964         [TEST_DIRNAME] (main): New unit tests.
81965
81966         * lib/memrchr.c: New file from GNU libc.
81967         Undef __memrchr, too.
81968         [!weak_alias]: Define __memrchr to memrchr.
81969         Guard weak_alias use with `#ifdef weak_alias'.
81970
81971 2000-10-21  Jim Meyering  <meyering@lucent.com>
81972
81973         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
81974         (dir_name): Use dir_name_r.
81975         * lib/dirname.h (dir_name_r): Declare it.
81976
81977 2000-10-17  Jim Meyering  <meyering@lucent.com>
81978
81979         * lib/quote.h (PARAMS): Define and use.
81980         Reported by Akim Demaille.
81981
81982         * lib/getopt.c: Update from libc.
81983
81984 2000-10-16  Jim Meyering  <meyering@lucent.com>
81985
81986         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
81987         setlocale.
81988         From Jan Fedak.
81989
81990 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
81991
81992         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
81993
81994 2000-09-25  Jim Meyering  <meyering@lucent.com>
81995
81996         * lib/md5.h (rol): Define (from GnuPG).
81997
81998         * lib/sha.c: Give credit (GnuPG) where due.
81999         (M): Use rol rather than open-coding it.
82000         Add a FIXME comment.
82001
82002 2000-09-21  Jim Meyering  <meyering@lucent.com>
82003
82004         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
82005         Reported by Michael Stone.
82006
82007 2000-09-20  Jim Meyering  <meyering@lucent.com>
82008
82009         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
82010         (noinst_HEADERS): Add sha.h.
82011         Based on code from Scott G. Miller and from GnuPG.
82012
82013 2000-09-18  Jim Meyering  <meyering@lucent.com>
82014
82015         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
82016         LIBS. Otherwise, everyone ends up linking with -lelf for some
82017         configurations.
82018         Reported by Mike Stone.
82019
82020 2000-09-15  Jim Meyering  <meyering@lucent.com>
82021
82022         * lib/regex.c: Update from libc.
82023
82024 2000-09-10  Jim Meyering  <meyering@lucent.com>
82025
82026         * lib/getopt.c (_getopt_internal): Update from glibc.
82027
82028 2000-09-09  Jim Meyering  <meyering@lucent.com>
82029
82030         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
82031         think it should be used as a general replacement for isascii.
82032         * lib/fnmatch.c: Likewise.
82033         * lib/mbswidth.c: Likewise
82034         * lib/regex.c: Likewise.
82035
82036         Don't use atoi.
82037         * lib/userspec.c: Include sys/param.h and limits.h.
82038         Include xstrtol.h.
82039         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82040         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
82041         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
82042         UID, GID.  Check range.
82043
82044 2000-09-06  Jim Meyering  <meyering@lucent.com>
82045
82046         * lib/getopt.c (_getopt_internal): Update from glibc.
82047
82048 2000-08-30  Jim Meyering  <meyering@lucent.com>
82049
82050         * lib/strftime.c: Merge in changes from GNU libc.
82051
82052 2000-08-26  Jim Meyering  <meyering@lucent.com>
82053
82054         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
82055         * m4/fpending.m4: New file.
82056
82057 2000-08-26  Jim Meyering  <meyering@lucent.com>
82058
82059         * lib/closeout.c: Include "__fpending.h".
82060         (close_stdout_status): Return right away if there's nothing to flush.
82061
82062         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
82063         * lib/__fpending.c: New file.
82064         * lib/__fpending.h: New file.
82065
82066 2000-08-20  Jim Meyering  <meyering@lucent.com>
82067
82068         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
82069         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
82070         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
82071
82072 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
82073
82074         Improve fileutils installation on systems where running
82075         programs (like install) can't be unlinked.
82076         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
82077         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
82078
82079 2000-08-07  Paul Eggert  <eggert@twinsun.com>
82080
82081         Standardize on "memory exhausted" instead of "Memory exhausted"
82082         or "virtual memory exhausted".
82083         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
82084         "virtual memory exhausted".
82085         * lib/same.c (same_name): Invoke xalloc_die instead of printing
82086         our own message.
82087         * lib/userspec.c (parse_user_spec): Likewise.
82088         * lib/bumpalloc.h: comment fix
82089         * lib/same.c, userspec.c: Include xalloc.h.
82090
82091         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
82092         not char *const and pointing to a constant array.
82093         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
82094         (xrealloc): Comment fix.
82095
82096         * lib/userspec.c (parse_user_spec):
82097         Don't translate a message until just before returning,
82098         to avoid unnecessary translation.
82099
82100 2000-08-07  Jim Meyering  <meyering@lucent.com>
82101
82102         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
82103         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
82104         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
82105         getgroups.c, gethostname.c, getopt.h, group-member.c,
82106         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
82107         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
82108         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
82109         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
82110         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
82111         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
82112         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
82113         yesno.c: Back out Copyright date changes for each file with no change
82114         this year.  This eases coordination with other programs using the same
82115         source code modules.  From Paul Eggert.
82116
82117 2000-08-06  Paul Eggert  <eggert@twinsun.com>
82118
82119         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
82120         not char, for compatibility with glibc 2.1.3 strftime.c.
82121
82122 2000-08-03  Greg McGary  <greg@mcgary.org>
82123
82124         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
82125         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
82126         (EXTEND_BUFFER): Use them.
82127
82128 2000-08-01  Jim Meyering  <meyering@lucent.com>
82129
82130         * lib/dirname.c (ISSLASH): Define.
82131         (BACKSLASH_IS_PATH_SEPARATOR): Define.
82132         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
82133         both `\' and `/' may be use as path separators.
82134         Based on a patch from Prashant TR.
82135
82136 2000-07-31  Paul Eggert  <eggert@twinsun.com>
82137
82138         * lib/quotearg.c (quotearg_n_options): Don't make the initial
82139         slot vector a constant, since it might get modified.
82140
82141 2000-07-31  Jim Meyering  <meyering@lucent.com>
82142
82143         * lib/xmalloc.c: Use `virtual memory exhausted', not
82144         `Memory exhausted'.
82145         * lib/obstack.c (print_and_abort): Likewise.
82146
82147 2000-07-30  Paul Eggert  <eggert@twinsun.com>
82148
82149         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
82150         buffer, so that the caller can always quote one small
82151         component of a "memory exhausted" message in slot 0.
82152         From a suggestion by Jim Meyering.
82153
82154 2000-07-30  Jim Meyering  <meyering@lucent.com>
82155
82156         * lib/makepath.c (make_path): Quote the other instance, too.
82157
82158         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
82159         (STATIC_BUF_SIZE): Define.
82160         (quotearg_n_options): Use only statically allocated storage when
82161         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
82162         than STATIC_BUF_SIZE.
82163
82164 2000-07-29  Jim Meyering  <meyering@lucent.com>
82165
82166         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
82167         * lib/dirname.c (dir_name): Likewise.
82168
82169         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
82170         `/'.
82171
82172         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
82173         (dir_name): Assert that there are no trailing slashes.
82174
82175 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
82176
82177         * lib/mbswidth.h (mbswidth): Add a flags argument.
82178         (mbswidth): New declaration.
82179         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
82180         * lib/mbswidth.c (mbswidth): Add a flags argument.
82181         (mbsnwidth): New function.
82182
82183 2000-07-24  Jim Meyering  <meyering@lucent.com>
82184
82185         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
82186
82187 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82188
82189         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
82190
82191 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82192
82193         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
82194         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
82195         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
82196         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
82197         invoke multibyte primitives.
82198
82199 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82200
82201         * lib/quotearg.c:
82202         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
82203         so that mbstate_t is always defined.
82204
82205         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
82206         be 1 in at least one GCC installation, and this configuration
82207         error is likely to be common.  Ignoring MB_LEN_MAX hurts
82208         performance on hosts that have mbrtowc but have only unibyte
82209         locales, but I assume these hosts are rare.
82210
82211 2000-07-23  Paul Eggert  <eggert@twinsun.com>
82212
82213         * lib/mbswidth.c (_XOPEN_SOURCE):
82214         Don't define; this causes problems on Solaris 7.
82215         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
82216
82217 2000-07-23  Jim Meyering  <meyering@lucent.com>
82218
82219         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
82220         too: getgrgid, getpwuid, getuid.
82221
82222 2000-07-23  Jim Meyering  <meyering@lucent.com>
82223
82224         * lib/basename.c (base_name): Add an assertion.
82225
82226 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
82227
82228         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
82229         shadow its mbsinit function.
82230
82231 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82232
82233         * lib/mbswidth.h: New file.
82234         * lib/mbswidth.c: New file.
82235         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
82236         (noinst_HEADERS): Add mbswidth.h.
82237
82238 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
82239
82240         * lib/config.charset: Add support for FreeBSD. Improve support for
82241         HP-UX and IRIX 6.
82242
82243 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
82244
82245         * m4/mbswidth.m4: New file.
82246         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
82247
82248 2000-07-15  Jim Meyering  <meyering@lucent.com>
82249
82250         * lib/makepath.c: Include quote.h.
82251         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
82252         corresponding argument in a `quote (...)' call.
82253         Give better diagnostics.
82254
82255         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
82256         (noinst_HEADERS): Add quote.h.
82257
82258         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
82259         from tar's src/misc.c.
82260         * lib/quote.h: New file.  Prototypes for same.
82261
82262 2000-07-14  Paul Eggert  <eggert@twinsun.com>
82263
82264         From a suggestion by Bruno Haible.
82265         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
82266         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
82267         to decide whether to define the BeOS workaround macro;
82268         this adjusts to the change to AC_MBSTATE_T.
82269
82270 2000-07-14  Jim Meyering  <meyering@lucent.com>
82271
82272         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
82273         jm_AC_TYPE_UINTMAX_T.
82274
82275 2000-07-13  Paul Eggert  <eggert@twinsun.com>
82276
82277         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
82278
82279         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
82280         quotearg_buffer_restyled): Add support for
82281         clocale_quoting_style.  Undo previous change to
82282         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
82283         and "{RIGHT QUOTATION MARK}" msgids.
82284
82285 2000-07-10  Paul Eggert  <eggert@twinsun.com>
82286
82287         From a suggestion by Bruno Haible.
82288         * m4/mbstate_t.m4 (AC_MBSTATE_T):
82289         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
82290         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
82291         and mbstate_t, to a single-part test that simply defines mbstate_t.
82292         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
82293         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
82294
82295 2000-07-10  Jim Meyering  <meyering@lucent.com>
82296
82297         * m4/strerror_r.m4: Mirror the correction made in autoconf.
82298
82299         * m4/gnu-source.m4: Output to confdefs.h directly.
82300         Suggestion from Akim Demaille.
82301
82302 2000-07-09  Paul Eggert  <eggert@twinsun.com>
82303
82304         The old behavior of quoting `like this' doesn't look good with
82305         newer, ISO-style fonts.  See:
82306         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
82307
82308         Instead, quote "like this" by default.  Let the translator
82309         tailor the locale-specific quoting behavior by providing
82310         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
82311
82312         * lib/quotearg.c (N_): New macro.
82313         (gettext_default): New function.
82314         (quotearg_buffer_restyled): Use
82315         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
82316         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
82317
82318 2000-07-09  Jim Meyering  <meyering@lucent.com>
82319
82320         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
82321         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
82322
82323         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
82324         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
82325
82326 2000-07-09  Jim Meyering  <meyering@lucent.com>
82327
82328         * lib/Most files: Update copyright dates to include 2000.
82329
82330 2000-07-08  Jim Meyering  <meyering@lucent.com>
82331
82332         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
82333         if not defined.
82334         (xgethostname): Remove now-unnecessary #ifdef.
82335         Move declaration of `err' into loop where it's used.
82336
82337 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82338         and Bruno Haible  <haible@clisp.cons.org>
82339
82340         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
82341         only if the test for an object-type mbstate_t fails.  This
82342         prevents us from mistakenly reporting that mbstate_t is a
82343         system object type after we "#define mbstate_t int" to work
82344         around its lack.
82345
82346 2000-07-05  Paul Eggert  <eggert@twinsun.com>
82347         and Bruno Haible  <haible@clisp.cons.org>
82348
82349         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
82350
82351 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82352
82353         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
82354         to strerror_r.
82355         Include <ctype.h> for use of isalpha.
82356
82357 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82358
82359         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
82360         by allocating a larger buffer. Test the gethostname return value for
82361         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
82362         returns an error and ENAMETOOLONG isn't defined.
82363
82364 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
82365
82366         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
82367         dimension.
82368
82369 2000-07-04  Jim Meyering  <meyering@lucent.com>
82370
82371         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
82372         of the deprecated AC_CHECKING.
82373
82374 2000-07-04  Jim Meyering  <meyering@lucent.com>
82375
82376         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
82377         Reported by Bruno Haible.
82378
82379 2000-07-04  Jim Meyering  <meyering@lucent.com>
82380
82381         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
82382         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
82383         lacks mbrtowc.
82384
82385 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82386
82387         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
82388         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
82389
82390 2000-07-03  Paul Eggert  <eggert@twinsun.com>
82391         and Bruno Haible  <haible@clisp.cons.org>
82392
82393         * lib/quotearg.c (mbrtowc):
82394         Assign to *pwc, and return 1 only if result is nonzero.
82395         (iswprint): Use ISPRINT when substituting our own mbrtowc.
82396
82397 2000-07-03  Jim Meyering  <meyering@lucent.com>
82398
82399         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
82400
82401 2000-07-03  Jim Meyering  <meyering@lucent.com>
82402
82403         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
82404         This is necessary to get a definition of e.g., UTMP_FILE on
82405         HP-UX 10.20.
82406         From Bob Proulx.
82407
82408 2000-07-02  Jim Meyering  <meyering@lucent.com>
82409
82410         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
82411
82412         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
82413         AC_LIBOBJ(function_name).
82414         * m4/chown.m4: Likewise.
82415         * m4/fnmatch.m4: Likewise.
82416         * m4/ftruncate.m4: Likewise.
82417         * m4/getgroups.m4: Likewise.
82418         * m4/getline.m4: Likewise.
82419         * m4/group-member.m4: Likewise.
82420         * m4/jm-macros.m4: Likewise.
82421         * m4/lstat.m4: Likewise.
82422         * m4/malloc.m4: Likewise.
82423         * m4/memcmp.m4: Likewise.
82424         * m4/nanosleep.m4: Likewise.
82425         * m4/putenv.m4: Likewise.
82426         * m4/realloc.m4: Likewise.
82427         * m4/regex.m4: Likewise.
82428         * m4/stat.m4: Likewise.
82429         * m4/strftime.m4: Likewise.
82430
82431 2000-07-02  Jim Meyering  <meyering@lucent.com>
82432
82433         * lib/quotearg.c (mbstate_t): Don't define here.
82434
82435 2000-07-02  Jim Meyering  <meyering@lucent.com>
82436
82437         * lib/nanosleep.c (SIGCONT): Define if not already defined.
82438
82439 2000-07-01  Jim Meyering  <meyering@lucent.com>
82440
82441         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
82442
82443 2000-07-01  Jim Meyering  <meyering@lucent.com>
82444
82445         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
82446         problem.
82447
82448 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82449
82450         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
82451         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
82452
82453 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
82454
82455         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
82456         per change in ../m4/ls-mntd-fs.m4.
82457         (read_filesystem_list): Ignore symbolic links.
82458
82459 2000-06-29  Jim Meyering  <meyering@lucent.com>
82460
82461         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
82462         for declaration of strcmp.
82463
82464         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
82465
82466         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
82467         Avoid warning by casting result to `char *' to remove `const'.
82468
82469 2000-06-28  Jim Meyering  <meyering@lucent.com>
82470
82471         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
82472         included by quotearg.c, for which we perform this test.  From
82473         Bruno Haible.
82474
82475 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82476
82477         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
82478         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
82479         <utmpx.h> exists, put readutmp.o into LIBOBJS.
82480
82481 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
82482
82483         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
82484
82485 2000-06-26  Paul Eggert  <eggert@twinsun.com>
82486
82487         savedir now sets errno on failure and invokes xmalloc to get memory.
82488         Fix a couple of other minor bugs while we're at it.
82489
82490         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
82491         (NAMLEN): Remove macro.
82492         (malloc, realloc): Remove decls.
82493         (stpcpy): Likewise.
82494         ("xalloc.h"): Include.
82495         (NAME_SIZE_DEFAULT): New macro.
82496         (savedir): Use xmalloc / xrealloc to allocate memory.
82497         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
82498         Skip "" directory entries.
82499         Use strlen to calculate directory entry length, since the old method
82500         is rarely used these days and isn't worth supporting.
82501         Don't use a pointer after freeing it.
82502         Check for integer overflow when calculating allocation size.
82503         Use memcpy to copy entries, instead of stpcpy.
82504         Set errno properly when returning NULL.
82505         Check for readdir error.
82506
82507 2000-06-26  Jim Meyering  <meyering@lucent.com>
82508
82509         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
82510
82511 2000-06-25  Jim Meyering  <meyering@lucent.com>
82512
82513         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
82514         Linux header bug when _XOPEN_SOURCE is defined to 500.
82515
82516 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82517
82518         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
82519         deficiency.
82520
82521 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
82522
82523         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
82524         Include xalloc.h.
82525         Don't include <stdlib.h>.  Don't declare malloc, realloc.
82526
82527 2000-06-24  Jim Meyering  <meyering@lucent.com>
82528
82529         * m4/strerror_r.m4: Revive this file -- to try out an experimental
82530         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
82531         for which strerror does return char*, but which lacks a conveniently
82532         accessible declaration of the function.  If the compile-test says
82533         strerror_r doesn't work, then resort to a `run'-test that works on
82534         BeOS and segfaults on DEC Unix.
82535
82536 2000-06-24  Jim Meyering  <meyering@lucent.com>
82537
82538         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
82539
82540 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82541
82542         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
82543         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
82544
82545 2000-06-23  Paul Eggert  <eggert@twinsun.com>
82546
82547         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
82548         (mbrtowc, mbstate_t): Define substitutes if
82549         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
82550         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
82551         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
82552
82553 2000-06-23  Jim Meyering  <meyering@lucent.com>
82554
82555         * m4/afs.m4: Add missing AC_MSG_RESULT.
82556         Reported by Bruno Haible.
82557
82558         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
82559         Suggestion from Bruno Haible.
82560
82561 2000-06-23  Jim Meyering  <meyering@lucent.com>
82562
82563         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
82564
82565 2000-06-21  Jim Meyering  <meyering@lucent.com>
82566
82567         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
82568
82569 2000-06-21  Jim Meyering  <meyering@lucent.com>
82570
82571         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
82572         (noinst_HEADERS): Add getstr.h.
82573
82574         * lib/getline.c (getstr): Move into a separate file.
82575         * lib/getstr.c (getstr): New file, extracted from getline.c, with
82576         the following changes: new parameter, delim2; both delim[12]
82577         parameters have type `int', not `char'.  The latter would lose
82578         with 8-bit delimiters.
82579         * lib/getstr.h: New file.
82580
82581 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82582
82583         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
82584         than 1024, return a memory chunk of least possible size, instead
82585         of size PATH_MAX + 2. In the loop, increment the size proportionally.
82586         Use free/xmalloc instead of xrealloc to avoid copying for very long
82587         paths.
82588
82589 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82590
82591         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
82592         the empty string.
82593
82594 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
82595
82596         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
82597         address, not strdup.  Include <stdlib.h> and don't declare free().
82598
82599 2000-06-19  Jim Meyering  <meyering@lucent.com>
82600
82601         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
82602
82603 2000-06-18  Jim Meyering  <meyering@lucent.com>
82604
82605         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
82606
82607         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
82608         `checking whether...' message to be consistent with that of the
82609         lstat test.
82610
82611 2000-06-18  Jim Meyering  <meyering@lucent.com>
82612
82613         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
82614         Besides, these days every porting target provides a mkdir function.
82615
82616         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
82617         needed. (this snippet comes from src/system.h).
82618
82619 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
82620
82621         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
82622
82623 2000-06-15  Paul Eggert  <eggert@twinsun.com>
82624
82625         * lib/human.c (adjust_value): New function.
82626         (human_readable_inexact): Apply rounding style even when
82627         printing approximate values.
82628
82629 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82630
82631         * lib/human.c (human_readable_inexact): Allow an input block
82632         size that is not a multiple of the output block size, and vice versa.
82633         Reported by Piergiorgio Sartor.
82634
82635 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82636
82637         * lib/getdate.y (get_date): Apply relative times after time
82638         zone indicator, not before.  Reported by Todd A. Jacobs.
82639
82640 2000-06-13  Jim Meyering  <meyering@lucent.com>
82641
82642         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
82643
82644         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
82645
82646 2000-06-12  Paul Eggert  <eggert@twinsun.com>
82647
82648         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
82649
82650 2000-06-12  Jim Meyering  <meyering@lucent.com>
82651
82652         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
82653         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
82654         optional argument.
82655         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
82656         the optional argument, `lib'.
82657
82658 2000-06-08  Jim Meyering  <meyering@lucent.com>
82659
82660         * m4/largefile.m4: Remove file (now that it's part of autoconf).
82661
82662 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82663
82664         Rewrite largefile configuration so that we don't need to run
82665         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
82666         AC_CANONICAL_HOST in configure.in -- jmm]
82667
82668         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
82669         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
82670         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
82671         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
82672         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
82673         All uses changed.
82674         Instead of inspecting the output of getconf, try to compile the
82675         test program without and with the macro definition.
82676         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
82677         for getconf.  Instead, check for the needed flags by compiling
82678         test programs.
82679
82680 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82681
82682         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
82683
82684 2000-06-04  Jim Meyering  <meyering@lucent.com>
82685
82686         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
82687         SunOS 4.1.4 for which gid_t is an unsigned type.
82688
82689 2000-06-03  Jim Meyering  <meyering@lucent.com>
82690
82691         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
82692         now that autoconf requires that.
82693
82694         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
82695         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
82696         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
82697
82698 2000-06-03  Jim Meyering  <meyering@lucent.com>
82699
82700         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
82701
82702 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82703
82704         * m4/glibc21.m4: New file.
82705         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
82706
82707 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82708
82709         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
82710         newer, don't install charset.alias.
82711         * lib/config.charset: Change the Linux/glibc rules so they become empty
82712         on glibc-2.1 or newer.
82713
82714 2000-06-02  Jim Meyering  <meyering@lucent.com>
82715
82716         * lib/mountlist.c: Back out last change.  Instead, do this...
82717         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
82718         me_dummy member using the same `ignore'-testing code.
82719         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
82720         fs_type strings.
82721         From Mark D. Roth.
82722
82723 2000-05-29  Jim Meyering  <meyering@lucent.com>
82724
82725         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
82726         mounts with the `ignore' attribute.  Based on a patch from
82727         Mark D. Roth.
82728
82729 2000-05-28  Jim Meyering  <meyering@lucent.com>
82730
82731         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
82732         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82733         * m4/stat.m4: Likewise.
82734         * m4/lstat.m4: Likewise.
82735         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
82736
82737         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
82738         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
82739
82740 2000-05-26  Jim Meyering  <meyering@lucent.com>
82741
82742         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
82743
82744 2000-05-24  Jim Meyering  <meyering@lucent.com>
82745
82746         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
82747         autoconf requires that.
82748         * m4/lib-check.m4: Likewise.
82749         * m4/jm-macros.m4: Likewise.
82750         * m4/strftime.m4: Likewise.
82751
82752         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
82753         AC_CHECK_DECLS, now that autoconf requires that.
82754
82755 2000-05-22  Jim Meyering  <meyering@lucent.com>
82756
82757         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82758         * m4/lstat.m4: Likewise.
82759
82760 2000-05-22  Jim Meyering  <meyering@lucent.com>
82761
82762         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
82763
82764 2000-05-20  Jim Meyering  <meyering@lucent.com>
82765
82766         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
82767         (jm_PREREQ): Use it.
82768
82769 2000-05-18  Jim Meyering  <meyering@lucent.com>
82770
82771         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
82772         back, too, since it may have been modified by allocate_entry.
82773         (hash_delete): Rewrite to use neither the assignment operator
82774         nor the comma operator in an if-expression.
82775
82776 2000-05-15  Paul Eggert  <eggert@twinsun.com>
82777
82778         * lib/closeout.c:
82779         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
82780         Remove; no longer needed.
82781         "quotearg.h": Add include.
82782         (file_name): Do not bother to explicitly initialize to NULL; it's less
82783         efficient on some hosts.
82784         (close_stdout_status): Remove test as to whether stdout was already
82785         closed; it breaks for the case "echo x | sort >&-".
82786         Quote file name colons.
82787         Do not assume that _("write error") lacks format strings.
82788
82789 2000-05-15  Jim Meyering  <meyering@lucent.com>
82790
82791         * lib/version-etc.c (version_etc_copyright): Update the copyright
82792         string used in all --version output.
82793
82794 2000-05-14  Jim Meyering  <meyering@lucent.com>
82795
82796         * lib/closeout.c (close_stdout_set_file_name): New function.
82797         (close_stdout_status): Use new file-scoped global.
82798         Return right away if fstat says the stdout file descriptor is invalid.
82799         * lib/closeout.h (close_stdout_set_file_name): Declare.
82800
82801 2000-05-10  Jim Meyering  <meyering@lucent.com>
82802
82803         * lib/closeout.c [default_exit_status]: New file-scoped variable.
82804         (close_stdout_set_status): New function.
82805         * lib/closeout.h (close_stdout_set_status): Declare.
82806
82807 2000-05-09  Jim Meyering  <meyering@lucent.com>
82808
82809         * m4/gettext.m4: Rename this...
82810         * m4/libintl.m4: ...to this.
82811
82812 2000-05-08  Jim Meyering  <meyering@lucent.com>
82813
82814         * lib/long-options.c: Don't include closeout.h.
82815         (parse_long_options): Don't call close_stdout for --version.
82816
82817 2000-05-06  Paul Eggert  <eggert@twinsun.com>
82818
82819         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
82820         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
82821         2.1.3 bug.  This avoids a clash when files like regex.c define
82822         _GNU_SOURCE.
82823
82824 2000-05-06  Jim Meyering  <meyering@lucent.com>
82825
82826         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
82827         (AC_REPLACE_FUNCS): Add strnlen.
82828
82829         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
82830         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
82831
82832         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
82833         AC_SEARCH_LIBS call for nanosleep.
82834         (LIB_NANOSLEEP): Set and AC_SUBST.
82835
82836 2000-05-06  Jim Meyering  <meyering@lucent.com>
82837
82838         * lib/strnlen.c: Undefine __strnlen and strnlen.
82839         [!weak_alias]: Define __strnlen to strnlen.
82840
82841         * lib/atexit.c: New file, from libiberty.
82842
82843 2000-05-06  Jim Meyering  <meyering@lucent.com>
82844
82845         * lib/closeout.c (close_stdout_status): Also check for errors on the
82846         stderr stream.
82847
82848 2000-05-05  Jim Meyering  <meyering@lucent.com>
82849
82850         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
82851         AC_SEARCH_LIBS call for clock_gettime.
82852         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
82853
82854         * m4/search-libs.m4: Update from autoconf.
82855
82856         su doesn't work on Solaris 2.6.
82857         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
82858         <shadow.h>.  Reported by Dragos Harabor.
82859
82860 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
82861
82862         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
82863         memcpy instead of xmalloc, xrealloc, path_concat.
82864         (locale_charset): Treat empty environment variables as absent.
82865         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
82866
82867 2000-05-04  Jim Meyering  <meyering@lucent.com>
82868
82869         * lib/getopt.c: Update from glibc.
82870         * lib/obstack.c: Likewise.
82871         * lib/obstack.h: Likewise.
82872         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
82873         file
82874
82875         * lib/regex.h: Likewise.
82876         * lib/strndup.c: Likewise.
82877         * lib/strnlen.c: New file, from glibc.
82878
82879 2000-05-03  Jim Meyering  <meyering@lucent.com>
82880
82881         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
82882
82883 2000-05-02  Paul Eggert  <eggert@twinsun.com>
82884
82885         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
82886         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
82887         compile-time test, rather than inspecting host and OS, to
82888         decide whether to define _LARGEFILE_SOURCE.
82889
82890 2000-05-01  Jim Meyering  <meyering@lucent.com>
82891
82892         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
82893
82894         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
82895         Based on a patch from Bruno Haible.
82896
82897 2000-05-01  Jim Meyering  <meyering@lucent.com>
82898
82899         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
82900
82901 2000-04-29  Jim Meyering  <meyering@lucent.com>
82902
82903         * lib/path-concat.c: Declare strdup only if it's not defined.
82904         * lib/canon-host.c: Likewise.
82905
82906 2000-04-28  Jim Meyering  <meyering@lucent.com>
82907
82908         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
82909         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
82910         is included first, then limits.h is included by locale.h by libintl.h.
82911         From John David Anglin.
82912
82913 2000-04-25  Jim Meyering  <meyering@lucent.com>
82914
82915         * lib/makepath.c (S_IRWXUGO): Define.
82916         (make_path): Always perform explicit chmod if MODE specifies any
82917         of the `special' permission bits.  Prompted by a bug report against
82918         install from Mate Wierdl and Joost van Baal.
82919
82920 2000-04-18  Jim Meyering  <meyering@lucent.com>
82921
82922         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
82923         (jm_PREREQ): Use it.
82924
82925 2000-04-18  Jim Meyering  <meyering@lucent.com>
82926
82927         * lib/README: New file.
82928
82929         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
82930         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
82931
82932 2000-04-17  Jim Meyering  <meyering@lucent.com>
82933
82934         Get it right :-)
82935         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
82936         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
82937         Suggestion from Akim Demaille.
82938
82939 2000-04-17  Jim Meyering  <meyering@lucent.com>
82940
82941         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
82942         the definition of it to rpl_strftime also defined-away the system's
82943         declaration.
82944
82945 2000-04-15  Jim Meyering  <meyering@lucent.com>
82946
82947         Use `C' to denote so-called `contiguous' files, the same way
82948         that tar does.
82949         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
82950         (ftypelet): Use S_ISCTG.
82951         From Michael Deutschmann.
82952
82953 2000-04-14  Jim Meyering  <meyering@lucent.com>
82954
82955         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
82956         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
82957         clobbered.
82958
82959 2000-04-14  Jim Meyering  <meyering@lucent.com>
82960
82961         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
82962
82963 2000-04-13  Jim Meyering  <meyering@lucent.com>
82964
82965         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
82966         AH_VERBATIM to insert required #ifndef into config.h.in.
82967         Suggestion from Akim Demaille.
82968
82969 2000-04-12  Jim Meyering  <meyering@lucent.com>
82970
82971         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
82972         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
82973         Christian Krackowizer.
82974
82975         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
82976         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
82977         (AC_SYS_LARGEFILE): Require.
82978         (AM_C_PROTOTYPES): Require.
82979
82980 2000-04-08  Jim Meyering  <meyering@lucent.com>
82981
82982         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
82983         names don't conflict.  Reported by Eli Zaretskii.
82984
82985 2000-04-07  Jim Meyering  <meyering@lucent.com>
82986
82987         * lib/putenv.c: Move inclusion of errno.h so it follows that of
82988         sys/types.h, to work around system header problems on AIX 3.2.5.
82989         From Bruno Haible.
82990
82991 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
82992
82993         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
82994         bug.  Deal with the different error behavior of Irix iconv.
82995
82996 2000-04-05  Paul Eggert  <eggert@twinsun.com>
82997
82998         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
82999         IRIX if the installer said otherwise.
83000
83001 2000-04-05  Jim Meyering  <meyering@lucent.com>
83002
83003         Portability tweaks required for ultrix4.3.
83004         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
83005         (jm_CHECK_DECLS): Add getutent to the list of functions.
83006         (_jm_DECL_HEADERS): Add utmpx.h.
83007         From John David Anglin.
83008
83009         * m4/strftime.m4: Back out the 2000-04-02 change.
83010         Instead of that change, simply undefine putenv in the test program.
83011
83012 2000-04-05  Jim Meyering  <meyering@lucent.com>
83013
83014         Portability tweaks required for ultrix4.3.
83015         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
83016         getutent.
83017         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
83018         * lib/canon-host.c: Declare strdup.
83019         * lib/path-concat.c: Likewise.
83020         From John David Anglin.
83021
83022 2000-04-04  Jim Meyering  <meyering@lucent.com>
83023
83024         Be more DOS 8.3-friendly.
83025         * lib/ref-add.sin: Renamed from ref-add.sed.in.
83026         * lib/ref-del.sin: Renamed from ref-del.sed.in.
83027         * lib/Makefile.am: Reflect renaming.
83028         Reported by Eli Zaretskii.
83029
83030         Use a temporary file name that won't clash with `charset.alias'
83031         in the DOS 8.3 name space.
83032         * lib/Makefile.am (charset_tmp): Define.
83033         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
83034         (uninstall-local): Likewise.
83035         Reported by Eli Zaretskii.
83036
83037 2000-04-03  Jim Meyering  <meyering@lucent.com>
83038
83039         * m4/gettext.m4: Fix typo in comment.
83040
83041         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
83042         textutils/configure.in).  Suggestion from Paul Eggert.
83043         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
83044
83045 2000-04-02  Paul Eggert  <eggert@twinsun.com>
83046
83047         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
83048         variable in the shell rather than using putenv, which isn't
83049         portable.  This avoids the configure-time inter-test dependency
83050         on the potentially-renamed putenv function.
83051
83052 2000-03-30  Paul Eggert  <eggert@twinsun.com>
83053
83054         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
83055         before checking struct stat.st_blksize, so that
83056         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
83057
83058 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83059
83060         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
83061         since strftime.c uses HAVE_STRFTIME to decide whether to use
83062         the underlying strftime.
83063
83064 2000-03-29  Paul Eggert  <eggert@twinsun.com>
83065
83066         * lib/time/strftime.c (my_strftime): Make sure we call the system
83067         strftime, not ourselves, when invoking the underlying strftime.
83068
83069 2000-03-24  Jim Meyering  <meyering@lucent.com>
83070
83071         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
83072         (charset_alias): Define.
83073         (install-exec-local): Factor out common code.
83074         (uninstall-local): Split lines longer than 80.
83075         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
83076         (SUFFIXES): Define.
83077         (.sed.in.sed): New rule.  Don't redirect directly to $@.
83078         (CLEANFILES): Add ref-add.sed and ref-del.sed.
83079
83080 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
83081
83082         * lib/config.charset: Output a line containing "Packages using this
83083         file".
83084         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
83085         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
83086         ref-del.sed): New rules.
83087
83088 2000-03-17  Jim Meyering  <meyering@lucent.com>
83089
83090         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
83091         Otherwise, include <strings.h>
83092
83093 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
83094
83095         * lib/unicodeio.c (utf8_wctomb): New function.
83096         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
83097         format instead of in UCS-4 with platform dependent endianness.
83098
83099 2000-03-10  Jim Meyering  <meyering@lucent.com>
83100
83101         * m4/lib-check.m4: Look for getspnam in -lgen, too.
83102         From Marco Franzen.
83103
83104 2000-03-07  Paul Eggert  <eggert@twinsun.com>
83105
83106         * lib/savedir.c (savedir): Work even if directory size is
83107         negative; this can happen with some screwy NFS configurations.
83108
83109 2000-03-06  Jim Meyering  <meyering@lucent.com>
83110
83111         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
83112         if it's NULL (because we ran out of memory).  From Bruno Haible.
83113
83114 2000-03-05  Jim Meyering  <meyering@lucent.com>
83115
83116         * lib/localcharset.c ("path-concat.h"): Include.
83117         (get_charset_aliases): Use path_concat instead of ANSI string
83118         concatenation.
83119
83120         * lib/unicodeio.h (PARAMS): Define.
83121         Use it to guard prototype.
83122
83123 2000-03-04  Jim Meyering  <meyering@lucent.com>
83124
83125         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
83126         for lib/localcharset.c.
83127
83128 2000-03-04  Jim Meyering  <meyering@lucent.com>
83129
83130         * lib/Makefile.am (install-exec-local): Create $(libdir) before
83131         installing into it.
83132         (uninstall-local): Uncomment this rule so `make distcheck' works
83133         once again.
83134
83135         * lib/unicodeio.c (<errno.h>): Include it.
83136         (errno): Declare if not defined.
83137
83138         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
83139
83140         * lib/config.charset: New version, incorporating remarks from a linux
83141         i18n mailing list.  From Bruno Haible.
83142
83143 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
83144
83145         * m4/codeset.m4: New file.
83146         * m4/iconv.m4: New file.
83147         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
83148
83149 2000-03-03  Jim Meyering  <meyering@lucent.com>
83150
83151         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
83152
83153 2000-03-02  Jim Meyering  <meyering@lucent.com>
83154
83155         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
83156         the messages come out on separate lines.
83157
83158         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
83159         rather than jm_CHECK_DECLARATIONS.
83160         * m4/decl.m4: Remove now-unused file.
83161
83162         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
83163         geteuid.
83164
83165 2000-03-02  Jim Meyering  <meyering@lucent.com>
83166
83167         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
83168
83169 2000-03-01  Jim Meyering  <meyering@lucent.com>
83170
83171         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
83172         * lib/unicodeio.c: Likewise.
83173
83174 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
83175
83176         * lib/config.charset: New file.
83177         * lib/localcharset.c: New file.
83178         * lib/unicodeio.h, lib/unicodeio.c: New files.
83179         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
83180         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
83181         (noinst_HEADERS): Add unicodeio.h.
83182         (all-local, install-exec-local, charset.alias): New targets.
83183
83184 2000-02-28  Paul Eggert  <eggert@twinsun.com>
83185
83186         * lib/quotearg.c (ALERT_CHAR): New macro.
83187         (quotearg_buffer_restyled): Use it.
83188
83189 2000-02-27  Jim Meyering  <meyering@lucent.com>
83190
83191         * m4/check-decl.m4: Add getenv to the list.
83192
83193 2000-02-27  Jim Meyering  <meyering@lucent.com>
83194
83195         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
83196         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
83197
83198         * lib/backupfile.c: Guard inclusion of stdlib.h with
83199         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
83200         Declare malloc if needed.
83201
83202         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
83203         `#ifndef HAVE_DECL..'
83204         now that autoconf always defines the HAVE_DECL_ symbols.
83205         * lib/human.c: Likewise.
83206         * lib/same.c: Likewise.
83207         * lib/strtoumax.c: Likewise.
83208
83209         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
83210         declaration check was not run.
83211         * lib/hash.c: Likewise.
83212         * lib/human.c: Likewise.
83213         * lib/same.c: Likewise.
83214         * lib/strtoumax.c: Likewise.
83215
83216         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
83217         `.', then first look up the entire `.'-containing string as a login
83218         name.
83219
83220 2000-02-23  Jim Meyering  <meyering@lucent.com>
83221
83222         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
83223         in place of my hack.
83224
83225 2000-02-18  Paul Eggert  <eggert@twinsun.com>
83226
83227         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
83228         (textint): New typedef.
83229         (parser_control): Member year changed from int to textint.
83230         All uses changed.
83231         (YYSTYPE): Removed; replaced by %union with int and textint members.
83232         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
83233         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
83234         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
83235         (tSNUMBER, tUNUMBER): Now of type <textintval>.
83236         (date, number, to_year): Use width of number in digits, not its value,
83237         to determine whether it's a 2-digit year, or a 2-digit time.
83238         (yylex): Store number of digits of numeric tokens.
83239         Reported by John Kendall.
83240
83241         (parser_control): Changed from struct parser_control to typedef (for
83242         consistency).  All uses changed.
83243
83244         (tID): Removed; not used.
83245         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
83246
83247 2000-02-14  Paul Eggert  <eggert@twinsun.com>
83248
83249         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
83250         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
83251
83252 2000-02-12  Jim Meyering  <meyering@lucent.com>
83253
83254         * lib/userspec.c (ISDIGIT): Define it.
83255         (isdigit): Remove definition.
83256         (is_number): Use ISDIGIT, not isdigit.
83257         <libintl.h>: Include.
83258         (_ and N_): Define.
83259         (parse_user_spec): Mark translatable strings.
83260
83261 2000-02-10  Jim Meyering  <meyering@lucent.com>
83262
83263         With these changes, nanosleep.[ch] are finally enough like the other
83264         lib/* replacement files to compile on a few more losing systems.
83265
83266         * lib/nanosleep.h: Don't include config.h.
83267         Remove prototype from declaration of nanosleep.
83268         (PARAMS): Remove now-unneeded definition.
83269         * lib/nanosleep.c: #undef nanosleep.
83270         (rpl_nanosleep): Rename from nanosleep.
83271
83272 2000-02-10  Jim Meyering  <meyering@lucent.com>
83273
83274         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
83275         gnu_nanosleep to rpl_nanosleep.
83276
83277 2000-02-09  Jim Meyering  <meyering@lucent.com>
83278
83279         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
83280         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
83281
83282 2000-02-08  Akim Demaille  <akim@epita.fr>
83283
83284         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
83285         `[' and `]' and remove uses of `changequote'.
83286         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
83287         (AC_SYS_LARGEFILE): Likewise.
83288         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83289         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
83290         of changequote.
83291         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
83292         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
83293         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
83294         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
83295
83296 2000-02-05  Jim Meyering  <meyering@lucent.com>
83297
83298         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
83299         Remove explicit use of AC_HEADER_TIME.  It is required by
83300         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
83301         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
83302         in autoconf whereby the expansion of the latter ended up preceding
83303         the expansion of its prerequisite, AC_HEADER_TIME.
83304         Reported by Volker Borchert.
83305
83306 2000-02-03  Jim Meyering  <meyering@lucent.com>
83307
83308         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
83309
83310 2000-02-03  Jim Meyering  <meyering@lucent.com>
83311
83312         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
83313         rather than with `#if HAVE_UTMPNAME'.
83314
83315 2000-02-02  Jim Meyering  <meyering@lucent.com>
83316
83317         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
83318         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
83319         Reported by Eli Zaretskii.
83320
83321 2000-02-01  Jim Meyering  <meyering@lucent.com>
83322
83323         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
83324
83325 2000-01-31  Jim Meyering  <meyering@lucent.com>
83326
83327         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
83328         functions.  Add the time.h and sys/time.h headers along with the
83329         AC_REQUIRE'ment of AC_HEADER_TIME.
83330
83331 2000-01-31  Jim Meyering  <meyering@lucent.com>
83332
83333         * lib/nanosleep.h (nanosleep): Guard declaration with
83334         `#if ! HAVE_DECL_NANOSLEEP'.
83335         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
83336         the declaration in that vendor's sys/timers.h.
83337         Reported by Christian Krackowizer.
83338
83339         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
83340         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
83341         (ISPRINT): Likewise.
83342         Reported by Tom Tromey.
83343
83344 2000-01-30  Jim Meyering  <meyering@lucent.com>
83345
83346         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
83347
83348         * m4/prereq.m4 (utmp_includes): Define.
83349         Check for ut_user and ut_name members in both struct utmpx
83350         and struct utmp.
83351
83352 2000-01-30  Jim Meyering  <meyering@lucent.com>
83353
83354         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
83355         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
83356         header files where only utmpx.ut_user is declared.
83357
83358         * lib/readutmp.h (UT_USER): Define.
83359
83360 2000-01-29  Jim Meyering  <meyering@lucent.com>
83361
83362         * m4/lib-check.m4: New file containing library-related checks from
83363         fileutils and sh-utils (textutils had none).
83364
83365 2000-01-28  Jim Meyering  <meyering@lucent.com>
83366
83367         * m4/perl.m4: Change format of warning message to look more like that
83368         from the missing script.  Suggestion from François Pinard.
83369
83370 2000-01-25  Jim Meyering  <meyering@lucent.com>
83371
83372         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
83373         well as time.h in the compile check.
83374         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
83375         Fix typo in cross-compiling case: s/yes/no/.
83376
83377 2000-01-23  Jim Meyering  <meyering@lucent.com>
83378
83379         * m4/jm-macros.m4: Move df-related tests here from
83380         fileutils/configure.in
83381
83382         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
83383         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
83384
83385         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
83386         s/space/ac_fsusage_space/.
83387         (jm_FILE_SYSTEM_USAGE): Take two parameters.
83388
83389         * m4/ftruncate.m4: New file (derived from part of
83390         fileutils/configure.in).
83391         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
83392         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
83393
83394         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
83395         AC_SUBST these here, rather than just in sh-util/configure.in, so
83396         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
83397         all the same.
83398         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
83399         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
83400         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
83401         (AC_SUBST(POW_LIBM)): Likewise.
83402         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
83403
83404 2000-01-23  Jim Meyering  <meyering@lucent.com>
83405
83406         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
83407         obstack.c.
83408
83409 2000-01-22  Jim Meyering  <meyering@lucent.com>
83410
83411         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
83412
83413         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
83414
83415         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
83416         configure.in
83417         (AC_CHECK_HEADERS): Likewise for sh-utils.
83418         (AC_CHECK_HEADERS): Likewise for textutils.
83419         Merge the three lists of headers.
83420
83421         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
83422         from fileutils' configure.in.
83423
83424         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
83425         code. Moved tests into their own function (_jm_DECL_HEADERS) in
83426         check-decl.m4.
83427
83428         * m4/check-decl.m4: Use #if rather than #ifdef.
83429         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
83430         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
83431         (_jm_DECL_HEADERS): Define new function.
83432         (jm_CHECK_DECLARATIONS): Require it.
83433
83434 2000-01-22  Jim Meyering  <meyering@lucent.com>
83435
83436         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
83437         [! HAVE_DECL_STRTOULL]: Declare strtoull.
83438         Required for some AIX systems.  Reported by Christian Krackowizer.
83439         [TESTING] (main): New function.
83440
83441         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
83442         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
83443         letters.
83444
83445         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
83446         iswprint.
83447
83448         * lib/strverscmp.c (ISDIGIT): Define.
83449         (strverscmp): Use ISDIGIT, not isdigit.
83450
83451 2000-01-19  Jim Meyering  <meyering@lucent.com>
83452
83453         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
83454         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
83455         defines `struct timespec' in <sys/time.h>
83456
83457         * m4/c-bs-a.m4: Remove uses of changequote altogether.
83458         Thanks to Akim for explaining.
83459
83460 2000-01-17  Paul Eggert  <eggert@twinsun.com>
83461
83462         * lib/nanosleep.c (nanosleep):
83463         Don't use SA_INTERRUPT to decide whether to call sigaction, as
83464         POSIX.1 doesn't require SA_INTERRUPT and some systems
83465         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
83466         it's been part of POSIX.1 since day 1 (in 1988).
83467
83468 2000-01-17  Jim Meyering  <meyering@lucent.com>
83469
83470         * lib/interlock: Remove unused file.  Reported by François Pinard.
83471
83472 2000-01-16  Paul Eggert  <eggert@twinsun.com>
83473
83474         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
83475         alert, backslash, formfeed, and vertical tab unnecessarily in
83476         shell quoting style.
83477
83478 2000-01-16  Jim Meyering  <meyering@lucent.com>
83479
83480         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
83481         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
83482         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
83483         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
83484
83485 2000-01-16  Jim Meyering  <meyering@lucent.com>
83486
83487         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
83488         because the latter didn't work.
83489
83490 2000-01-15  Jim Meyering  <meyering@lucent.com>
83491
83492         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
83493         (AC_REPLACE_FUNCS): Add memcpy and memset.
83494         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
83495         Add strpbrk.
83496         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
83497
83498 2000-01-12  Jim Meyering  <meyering@lucent.com>
83499
83500         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
83501         (jm_PREREQ): Use it.
83502         (jm_PREREQ_READUTMP): New macro.
83503         (jm_PREREQ): Use it.
83504
83505 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83506
83507         Quote multibyte characters correctly.
83508         * m4/c-bs-a.m4: New file.
83509         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
83510         (jm_PREREQ): Use it.
83511
83512 2000-01-11  Paul Eggert  <eggert@twinsun.com>
83513
83514         * m4/uintmax_t.m4: Port to autoconf 2.13.
83515
83516 2000-01-08  Jim Meyering  <meyering@ascend.com>
83517
83518         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
83519         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
83520
83521 2000-01-04  Jim Meyering  <meyering@ascend.com>
83522
83523         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
83524         jm_STRUCT_DIRENT_D_TYPE.
83525         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
83526         jm_STRUCT_DIRENT_D_INO.
83527         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
83528         jm_STRUCT_UTIMBUF.
83529         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
83530         renamings.
83531         * m4/utime.m4: Likewise.
83532
83533         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
83534         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
83535
83536 2000-01-03  Paul Eggert  <eggert@twinsun.com>
83537
83538         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
83539         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
83540
83541 2000-01-02  Jim Meyering  <meyering@ascend.com>
83542
83543         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
83544         remember if this is necessary.
83545
83546 1999-12-26  Jim Meyering  <meyering@ascend.com>
83547
83548         * m4/jm-macros.m4: Use it here.
83549         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
83550
83551 1999-12-23  Jim Meyering  <meyering@ascend.com>
83552
83553         * m4/jm-macros.m4: Check for clock_gettime (moved from
83554         fileutils/configure.in)
83555         Check for gettimeofday.
83556
83557 1999-12-20  Jim Meyering  <meyering@ascend.com>
83558
83559         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
83560         autoconf-2.14a-1999-12-20.
83561
83562 1999-12-19  Jim Meyering  <meyering@ascend.com>
83563
83564         * m4/lstat-slash.m4: New file.
83565         * m4/jm-macros.m4: Use the new macro:
83566         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83567
83568 1999-12-07  Jim Meyering  <meyering@ascend.com>
83569
83570         * m4/perl.m4: Require that File::Compare be available, too.
83571         Too many systems seem to lack it.
83572
83573         * m4/strftime.m4: Add checks for most of the cpp macros tested in
83574         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
83575
83576 1999-11-18  Paul Eggert  <eggert@twinsun.com>
83577
83578         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
83579         problem with the QNX 4.25 shell, which doesn't propagate exit
83580         status of failed commands inside shell assignments.
83581
83582 1999-11-17  Jim Meyering  <meyering@ascend.com>
83583
83584         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
83585
83586 1999-11-07  Jim Meyering  <meyering@ascend.com>
83587
83588         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
83589
83590 1999-11-06  Jim Meyering  <meyering@ascend.com>
83591
83592         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
83593         * m4/jm-macros.m4 (jm_MACROS): Use it here.
83594
83595 1999-11-05  Jim Meyering  <meyering@ascend.com>
83596
83597         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
83598         configure.in of textutils, fileutils, and sh-utils into this one
83599         (shared between those packages) file.
83600         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
83601         AC_STRUCT_ST_BLKSIZE.
83602
83603 1999-11-03  Jim Meyering  <meyering@ascend.com>
83604
83605         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
83606         of AC_CHECK_TYPE checks includes unistd.h.
83607         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
83608         Suggestion from Akim Demaille.
83609
83610 1999-10-30  Jim Meyering  <meyering@ascend.com>
83611
83612         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
83613         m4-quoted string.
83614         * m4/ls-mntd-fs.m4: Likewise.
83615         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
83616         * m4/jm-winsz1.m4: Likewise.
83617
83618         * m4/const.m4: Remove file, since the fix made it into the experimental
83619         version of autoconf.
83620         * m4/mktime.m4: Likewise.
83621
83622         * m4/check-type.m4: Remove file, now that the latest version of
83623         AC_CHECK_TYPE takes a third arg to specify additional #includes.
83624
83625         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
83626         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
83627         AC_CHECK_TYPE.
83628
83629 1999-10-04  Jim Meyering  <meyering@ascend.com>
83630
83631         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
83632
83633 1999-09-22  Paul Eggert  <eggert@twinsun.com>
83634
83635         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
83636         2.95.1 bug with HP-UX 10.20.
83637
83638 1999-09-17  Jim Meyering  <meyering@ascend.com>
83639
83640         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
83641         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
83642         due to missing strdup (against sh-utils-2.0).
83643
83644 1999-08-29  Jim Meyering  <meyering@ascend.com>
83645
83646         * m4/jm-macros.m4: Require jm_BISON.
83647         * m4/bison.m4: New file.
83648
83649 1999-08-17  Paul Eggert  <eggert@twinsun.com>
83650
83651         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
83652         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
83653
83654 1999-08-05  Jim Meyering  <meyering@ascend.com>
83655
83656         * m4/getline.m4: Rename test file from conftestdata to conftest.data
83657         to avoid conflicts with `conftest' on 8+3 filesystems.
83658         Suggestion from Eli Zaretskii.
83659
83660 1999-08-04  Jim Meyering  <meyering@ascend.com>
83661
83662         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
83663         fileutils and sh-utils (textutils's getline test was inadequate).
83664         (AM_FUNC_GETLINE): Run this test.
83665         (AC_CHECK_FUNCS): Check for getdelim.
83666         Reported by Bob Proulx.
83667
83668 1999-08-02  Jim Meyering  <meyering@ascend.com>
83669
83670         * m4/jm-macros.m4: Add a comment.
83671
83672 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83673
83674         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
83675         <inttypes.h> defines strtoumax as a macro (and not as a
83676         function).
83677
83678 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83679
83680         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
83681         that we can shift, multiply and divide unsigned long long
83682         values; Ultrix cc can't do it.
83683
83684 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83685
83686         * m4/mktime.m4: New file, which is a preview of what should appear
83687         in the next public autoconf release.
83688
83689 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83690
83691         * m4/lfs.m4: Remove this file.
83692         * m4/largefile.m4: New file.  It contains the old contents of
83693         lfs.m4, except that all names with prefix AC_LFS have been
83694         changed to use the prefix AC_SYS_LARGEFILE instead, to be
83695         compatible with future autoconf versions.  Also, some minor m4
83696         quoting problems have been fixed.
83697
83698 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83699
83700         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
83701         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
83702         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
83703         and simplify the shell code.
83704
83705 1999-08-01  Jim Meyering  <meyering@ascend.com>
83706
83707         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
83708         m4.
83709
83710 1999-07-20  Jim Meyering  <meyering@ascend.com>
83711
83712         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
83713
83714 1999-07-15  Jim Meyering  <meyering@ascend.com>
83715
83716         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
83717
83718 1999-05-22  Jim Meyering  <meyering@ascend.com>
83719
83720         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
83721
83722 1999-05-20  Jim Meyering  <meyering@ascend.com>
83723
83724         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
83725         Add a colon after each `then' in case $4 is empty.
83726
83727 1999-05-16  Jim Meyering  <meyering@ascend.com>
83728
83729         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
83730
83731 1999-05-10  Jim Meyering  <meyering@ascend.com>
83732
83733         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
83734
83735         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
83736         AC_FUNC_MKTIME.
83737
83738 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
83739
83740         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
83741
83742 1999-05-04  Paul Eggert  <eggert@twinsun.com>
83743
83744         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
83745         not CPPFLAGS, so that linking works correctly in IRIX.
83746
83747 1999-04-30  Paul Eggert  <eggert@twinsun.com>
83748
83749         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
83750
83751 1999-04-20  Paul Eggert  <eggert@twinsun.com>
83752
83753         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
83754         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
83755         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
83756         jm_AC_TYPE_UNSIGNED_LONG_LONG.
83757         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
83758
83759         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
83760
83761 1999-04-20  Jim Meyering  <meyering@ascend.com>
83762
83763         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
83764         AC_REPLACE xstroull if necessary.  From Paul Eggert.
83765         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
83766
83767 1999-04-18  Jim Meyering  <meyering@ascend.com>
83768
83769         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
83770         * m4/jm-macros.m4: Use it.
83771
83772 1999-04-06  Jim Meyering  <meyering@ascend.com>
83773
83774         * m4/strftime.m4: Remove test for %f.
83775
83776 1999-03-29  Jim Meyering  <meyering@ascend.com>
83777
83778         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
83779         superset of the AC_TYPE_* checks in the textutils, fileutils,
83780         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
83781         AC_TYPE_PID_T.
83782
83783 1999-03-28  Jim Meyering  <meyering@ascend.com>
83784
83785         * m4/jm-macros.m4: Define GNU_PACKAGE here.
83786         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
83787         replaced e.g., in the *.sh files of the sh-utils.
83788
83789 1999-03-20  Jim Meyering  <meyering@ascend.com>
83790
83791         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
83792         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
83793         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
83794
83795 1999-03-19  Jim Meyering  <meyering@ascend.com>
83796
83797         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
83798
83799 1999-03-12  Jim Meyering  <meyering@ascend.com>
83800
83801         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
83802
83803 1999-03-07  Jim Meyering  <meyering@ascend.com>
83804
83805         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
83806         declared.
83807
83808 1999-02-17  Jim Meyering  <meyering@ascend.com>
83809
83810         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
83811         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
83812
83813 1999-02-07  Jim Meyering  <meyering@ascend.com>
83814
83815         * m4/group-member.m4: New file -- extracted from sh-utils'
83816         configure.in.
83817
83818         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
83819         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
83820
83821 1999-02-06  Jim Meyering  <meyering@ascend.com>
83822
83823         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
83824         * m4/fnmatch.m4: Likewise.
83825         * m4/getgroups.m4: Likewise.
83826         * m4/lstat.m4: Likewise.
83827         * m4/malloc.m4: Likewise.
83828         * m4/putenv.m4: Likewise.
83829         * m4/realloc.m4: Likewise.
83830         * m4/regex.m4: Likewise.
83831         * m4/stat.m4: Likewise.
83832         * m4/strftime.m4: Likewise.
83833         Suggestion from Alain Magloire.
83834
83835         * m4/chown.m4: Use `.$ac_objext', not `.o'.
83836         * m4/fnmatch.m4: Likewise.
83837         * m4/getgroups.m4: Likewise.
83838         * m4/getline.m4: Likewise.
83839         * m4/lstat.m4: Likewise.
83840         * m4/malloc.m4: Likewise.
83841         * m4/memcmp.m4: Likewise.
83842         * m4/putenv.m4: Likewise.
83843         * m4/realloc.m4: Likewise.
83844         * m4/regex.m4: Likewise.
83845         * m4/stat.m4: Likewise.
83846         * m4/strftime.m4: Likewise.
83847         Suggestion from Alain Magloire.
83848
83849         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
83850         an argument.
83851
83852         * m4/regex.m4: Add a run-time Test for proper operation of
83853         re_compile_pattern.
83854
83855 1999-01-31  Jim Meyering  <meyering@ascend.com>
83856
83857         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
83858
83859 1999-01-30  Jim Meyering  <meyering@ascend.com>
83860
83861         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
83862
83863         * m4/jm-mktime.m4: Make this a wrapper around the official
83864         AM_FUNC_MKTIME rather than my private copy, now that the official one
83865         is up to date.
83866         * m4/mktime.m4: Remove file.
83867
83868         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
83869         * m4/uptime.m4: Likewise.
83870         * m4/uintmax_t.m4: Likewise.
83871
83872 1999-01-28  Jim Meyering  <meyering@ascend.com>
83873
83874         * m4/jm-macros.m4: Use jm_AFS.
83875         * m4/afs.m4: New file (from fileutils' configure.in).
83876
83877         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
83878         * m4/chown.m4: Likewise.
83879         * m4/d-ino.m4: Likewise.
83880         * m4/d-type.m4: Likewise.
83881         * m4/fnmatch.m4: Likewise.
83882         * m4/getgroups.m4: Likewise.
83883         * m4/gettext.m4: Likewise.
83884         * m4/jm-mktime.m4: Likewise.
83885         * m4/jm-winsz2.m4: Likewise.
83886         * m4/lcmessage.m4: Likewise.
83887         * m4/ls-mntd-fs.m4: Likewise.
83888         * m4/malloc.m4: Likewise.
83889         * m4/memcmp.m4: Likewise.
83890         * m4/putenv.m4: Likewise.
83891         * m4/realloc.m4: Likewise.
83892         * m4/st_mtim.m4: Likewise.
83893         * m4/strftime.m4: Likewise.
83894
83895 1999-01-16  Jim Meyering  <meyering@ascend.com>
83896
83897         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
83898         (ARGMATCH_DIE_DECL): Define.
83899
83900 1999-01-12  Jim Meyering  <meyering@ascend.com>
83901
83902         * m4/Makefile.am.in: Rewrite to avoid using fmt.
83903         Reported by Lars Hecking.
83904
83905 1999-01-10  Jim Meyering  <meyering@ascend.com>
83906
83907         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
83908         gross kludge.
83909         * m4/inttypes_h.m4: Likewise.
83910         * m4/lstat.m4: Likewise.
83911         * m4/malloc.m4: Likewise.
83912         * m4/readdir.m4: Likewise.
83913         * m4/realloc.m4: Likewise.
83914         * m4/st_dm_mode.m4: Likewise.
83915         * m4/stat.m4: Likewise.
83916         * m4/utimbuf.m4: Likewise.
83917         * m4/utimes.m4: Likewise.
83918
83919         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
83920         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
83921         comments in config.h.in are meaningful.
83922
83923         * m4/jm-macros.m4: Require autoconf-2.13 here.
83924
83925         * m4/regex.m4: By default, don't use the included regex.c on systems
83926         with glibc 2.  Suggestion from Uli Drepper.
83927
83928 1999-01-02  Jim Meyering  <meyering@ascend.com>
83929
83930         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
83931
83932 1998-12-18  Jim Meyering  <meyering@ascend.com>
83933
83934         * m4/Makefile.am.in (Makefile.am): Simplify rule.
83935         Based on a suggestion from Lars Hecking.
83936
83937 1998-11-16  Paul Eggert  <eggert@twinsun.com>
83938
83939         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
83940
83941 1998-11-16  Jim Meyering  <meyering@ascend.com>
83942
83943         * m4/lfs.m4: Double-quote the `uname...` expression.
83944
83945 1998-11-14  Jim Meyering  <meyering@ascend.com>
83946
83947         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
83948         * m4/stat.m4: Likewise.
83949
83950 1998-11-03  Jim Meyering  <meyering@ascend.com>
83951
83952         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
83953         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
83954
83955 1998-10-18  Jim Meyering  <meyering@ascend.com>
83956
83957         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
83958
83959 1998-10-17  Jim Meyering  <meyering@ascend.com>
83960
83961         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
83962         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
83963         calls for those previously hard-coded headers.  Instead, take a new
83964         parameter.
83965         (jm_CHECK_DECLARATIONS): Reflect interface change.
83966         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
83967         (jm_CHECK_DECL_LOCALTIME_R): New macro.
83968
83969         * m4/mktime.m4: Test for spring-forward gap before long-running test.
83970
83971 1998-10-14  Jim Meyering  <meyering@ascend.com>
83972
83973         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
83974         instead of "TZ=America/Vancouver".  From Paul Eggert.
83975
83976 1998-10-11  Jim Meyering  <meyering@ascend.com>
83977
83978         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
83979         This adds a test for a recently added compatibility fix for mktime.c.
83980         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
83981
83982 1998-09-27  Jim Meyering  <meyering@ascend.com>
83983
83984         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
83985
83986         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
83987         ../configure.in, including a change from Gordon Matzigkeit to allow
83988         cross-compiling for the Hurd.
83989
83990         * m4/glibc.m4: New file/macro to test for the GNU C Library
83991         versions 1 and 2.  From Gordon Matzigkeit.
83992         Indent.
83993
83994 1998-09-21  Jim Meyering  <meyering@ascend.com>
83995
83996         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
83997
83998 1998-08-18  Paul Eggert  <eggert@twinsun.com>
83999
84000         Port nanosecond-resolution times to UnixWare 2.1.2 and
84001         pedantic Solaris 2.6.
84002
84003         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
84004         AC_STRUCT_ST_MTIM.
84005         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
84006         Generate name of ns member, instead of just 1 or undef.
84007         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
84008
84009 1998-08-15  Jim Meyering  <meyering@ascend.com>
84010
84011         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
84012         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
84013         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
84014         instead of jm_TYPE_SSIZE_T.
84015
84016 1998-08-12  Jim Meyering  <meyering@ascend.com>
84017
84018         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
84019
84020 1998-08-02  Jim Meyering  <meyering@ascend.com>
84021
84022         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
84023         in acconfig.h manually.
84024
84025 1998-07-31  Paul Eggert  <eggert@twinsun.com>
84026
84027         * m4/st_mtim.m4: New file.
84028
84029 1998-07-28  Jim Meyering  <meyering@ascend.com>
84030
84031         * m4/utimes.m4: Undef stat.
84032
84033 1998-07-25  Jim Meyering  <meyering@ascend.com>
84034
84035         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
84036         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
84037
84038 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
84039
84040         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
84041         uid and gid actually remain unchanged.
84042
84043 1998-07-07  Jim Meyering  <meyering@ascend.com>
84044
84045         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
84046
84047 1998-07-04  Jim Meyering  <meyering@ascend.com>
84048
84049         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
84050         to prove that this macro can be used in packages without regex.c.
84051
84052 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
84053
84054         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
84055         is to be used.
84056
84057 1998-07-03  Jim Meyering  <meyering@ascend.com>
84058
84059         * m4/gettext.m4: Add -lintl if it's found to be necessary.
84060
84061         * m4/gettext.m4: New file -- from gettext-0.10.35.
84062         * m4/lcmessage.m4: Likewise.
84063         * m4/progtest.m4: Likewise.
84064
84065         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
84066         * m4/jm-macros.m4: Require the new macro.
84067
84068 1998-06-29  Jim Meyering  <meyering@ascend.com>
84069
84070         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
84071         for the definition of NGROUPS (used in a system header included
84072         by sys/mount.h).
84073
84074 1998-06-28  Jim Meyering  <meyering@ascend.com>
84075
84076         * m4/ls-mntd-fs.m4: New file.
84077         * m4/fstypename.m4: New file.
84078
84079         * m4/jm-macros.m4: Require the new macro.
84080         * m4/jm-glibc-io.m4: New file.
84081
84082 1998-05-19  Jim Meyering  <meyering@ascend.com>
84083
84084         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
84085         * m4/lchown.m4: New file.
84086
84087         * m4/Makefile.am.in: New file.
84088         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
84089
84090 1998-05-14  Jim Meyering  <meyering@ascend.com>
84091
84092         * m4/Makefile.am (EXTRA_DIST): Add them.
84093         * m4/jm-macros.m4: New file.
84094         * m4/utimbuf.m4: New file.
84095
84096 1998-05-12  Jim Meyering  <meyering@ascend.com>
84097
84098         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
84099
84100 1998-05-11  Jim Meyering  <meyering@ascend.com>
84101
84102         * m4/isc-posix.m4: New file.
84103
84104 1998-05-10  Jim Meyering  <meyering@ascend.com>
84105
84106         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
84107
84108 1998-05-09  Jim Meyering  <meyering@ascend.com>
84109
84110         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
84111         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
84112         with automake.
84113
84114         * m4/ssize_t.m4: New file.
84115         * m4/mktime.m4: Remove file -- the new automake has this now.
84116
84117 1998-04-26  Jim Meyering  <meyering@ascend.com>
84118
84119         * m4/assert.m4: New file.
84120         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
84121
84122 1998-04-05  Jim Meyering  <meyering@ascend.com>
84123
84124         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
84125         (jm_PREREQ): Use it here.
84126
84127 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
84128
84129         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
84130         in acconfig.h.
84131
84132 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
84133
84134         * m4/prereq.m4: New file.
84135         * m4/error.m4: New file.
84136         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
84137
84138 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
84139
84140         * m4/getline.m4: Don't set am_cv_func_working_getline before the
84141         cache-check for the same variable -- that defeated the purpose of
84142         the test; the test program was never run.  This was a problem only
84143         on systems with losing getline functions -- HP-UX 10.20 is one.
84144         Reported by Bjorn Helgaas.
84145
84146 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
84147
84148         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
84149
84150 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
84151
84152         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
84153
84154         * m4/const.m4: New file.  Use an initializer in this declaration
84155         typedef int charset[2]; const charset x;
84156         Reported by Bob Glickstein.
84157
84158 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
84159
84160         * m4/chown.m4: Fix reversed types on -1 args to chown.
84161         From Kaveh Ghazi.
84162
84163 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
84164
84165         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
84166         Add lseek and memchr.
84167
84168         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
84169         T.E.Dickey <dickey@clark.net> said that some older preprocessors
84170         have a 20-character limit on names.
84171
84172 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
84173
84174         * m4/inttypes_h.m4: New file.
84175         * m4/uintmax_t.m4: New file.
84176         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
84177
84178
84179         -----
84180
84181         Local Variables:
84182         coding: utf-8
84183         End:
84184
84185         Copyright (C) 1997-2011 Free Software Foundation, Inc.
84186
84187         Copying and distribution of this file, with or without
84188         modification, are permitted provided the copyright notice
84189         and this notice are preserved.